/* ==========================================================================
   SEEYOUSOON SUPER-APP — Q-ROLLER-UI STYLESHEET
   Covers Q1 (Byt roll), Q11 (Ansök), Q12 (Granskas), Q13 (Godkänd),
   Q14 (Avslagen), Q15 (Behörighet saknas), Q16 (Admin Hem)
   Strictly complies with Section 8: Zero inline styles, < 500 lines.
   ========================================================================== */

.q-screen {
  position: relative;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--text, #f8fafc);
  background-color: var(--bg-canvas, #090B10);
  box-sizing: border-box;
  overflow-x: hidden;
  padding-bottom: calc(var(--safe-bottom, 20px) + 24px);
}

.q-aurora-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 8%, rgba(139, 92, 246, 0.14) 0%, rgba(9, 11, 16, 0) 70%),
              radial-gradient(circle at 12% 35%, rgba(236, 72, 153, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 88% 65%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  z-index: 0;
}

.q-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  gap: 12px;
}

.q-btn-back {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 26, 41, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-shrink: 0;
}

.q-btn-back:active { transform: scale(0.95); }

.q-title-group {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.q-title {
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: #ffffff;
  line-height: 1.25;
}

.q-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.q-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple, #a855f7);
  box-shadow: 0 0 8px var(--purple, #a855f7);
}

.q-dot-live--amber {
  background: var(--live, #f59e0b);
  box-shadow: 0 0 8px #f59e0b;
}

.q-badge-bankid {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 9999px;
  background: rgba(14, 18, 30, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--ok, #10b981);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.q-badge-bankid--amber {
  border-color: rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}

.q-trust-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 12px;
}

.q-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(20, 26, 41, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 600;
  color: #cbc3d7;
  backdrop-filter: blur(12px);
}

.q-body {
  position: relative;
  z-index: 2;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.q-card {
  position: relative;
  background: rgba(20, 26, 41, 0.65);
  border: 1px solid rgba(168, 85, 247, 0.16);
  border-radius: 20px;
  padding: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.08);
}

.q-card-amber {
  background: rgba(28, 23, 18, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.06), 0 8px 30px -6px rgba(245, 158, 11, 0.1);
}

.q-card-green {
  background: rgba(14, 30, 22, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.06), 0 8px 30px -6px rgba(16, 185, 129, 0.1);
}

.q-card-rose {
  background: rgba(32, 16, 20, 0.7);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.06), 0 8px 30px -6px rgba(239, 68, 68, 0.1);
}

.q-role-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}

.q-role-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(168, 85, 247, 0.3);
}

.q-role-item:active { transform: scale(0.98); }

.q-role-item.is-active {
  background: rgba(139, 92, 246, 0.14);
  border: 2px solid var(--purple, #a855f7);
  box-shadow: 0 0 24px -2px rgba(139, 92, 246, 0.3), inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
}

.q-role-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--purple, #d0bcff);
  flex-shrink: 0;
}

.q-role-icon-box--amber {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.q-role-info {
  flex: 1;
  min-width: 0;
}

.q-role-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
  gap: 8px;
}

.q-role-name {
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.q-role-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 10px;
  font-weight: 700;
  color: #34d399;
}

.q-role-desc {
  font-size: 12px;
  color: #cbc3d7;
  line-height: 1.35;
  margin: 0;
}

.q-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 28px;
  margin: 12px 0;
}

.q-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.q-timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.q-timeline-dot {
  position: absolute;
  left: -28px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #111318;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.q-timeline-step.is-done .q-timeline-dot {
  border-color: var(--ok, #10b981);
  background: rgba(16, 185, 129, 0.2);
  color: var(--ok, #10b981);
}

.q-timeline-step.is-current .q-timeline-dot {
  border-color: var(--live, #f59e0b);
  background: rgba(245, 158, 11, 0.2);
  color: var(--live, #f59e0b);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.q-timeline-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.q-timeline-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
}

.q-lock-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
}

.q-lock-icon-halo {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--purple, #d0bcff);
  margin-bottom: 16px;
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.25);
}

.q-lock-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(168, 85, 247, 0.35);
  animation: q-spin 18s linear infinite;
}

@keyframes q-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.q-lock-icon-halo--green {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.q-lock-ring--green {
  border-color: rgba(16, 185, 129, 0.4);
}

.q-lock-heading {
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 8px;
}

.q-lock-desc {
  font-size: 13px;
  color: #cbc3d7;
  max-width: 320px;
  line-height: 1.45;
  margin: 0 0 16px;
}

.q-mt-xs { margin-top: 6px; }
.q-mt-sm { margin-top: 10px; }
.q-mt-md { margin-top: 14px; }
.q-mt-lg { margin-top: 20px; }
.q-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.q-btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(139, 92, 246, 0.5), inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, filter 0.2s ease;
  text-decoration: none;
}

.q-btn-primary:active {
  transform: scale(0.97);
  filter: brightness(1.1);
}

.q-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border-radius: 16px;
  background: rgba(20, 26, 41, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
  text-decoration: none;
}

.q-btn-secondary:active { transform: scale(0.97); }

.q-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.q-admin-stat-card {
  background: rgba(20, 26, 41, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.q-admin-stat-val {
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.q-admin-stat-lbl {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}
