/* ============================================================
   QRKavach — Account Panel & Auth Screens
   Follows Figma design system exactly.
   All colours / radii come from :root tokens defined here;
   no overrides to qrkavach-public.css.
   ============================================================ */

/* ── Google Fonts are enqueued via PHP; fallback stacks below ─ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Typography */
  --qk-auth-font-heading: 'Manrope', system-ui, sans-serif;
  --qk-auth-font-body:    'Inter',   system-ui, sans-serif;

  /* Page / surface */
  --qk-auth-bg:           #F6F6F9;
  --qk-auth-card-outer:   #F0F0F3;
  --qk-auth-card-inner:   #ffffff;
  --qk-auth-shadow:       0px 0px 40px rgba(0, 47, 123, 0.06);

  /* Text */
  --qk-auth-heading:      #2D2F31;
  --qk-auth-subtext:      #5A5C5E;
  --qk-auth-muted:        #757779;
  --qk-auth-placeholder:  #6B7280;

  /* Icon / border */
  --qk-auth-icon:         #ACADAF;
  --qk-auth-border-inner: #E7E8EB;
  --qk-auth-input-border: #ACADAF;

  /* Links */
  --qk-auth-link:         #0253CD;

  /* Input backgrounds */
  --qk-input-bg-reg:      #f2f7ff;   /* registration inputs */
  --qk-input-bg-login:    #f2f7ff;   /* login inputs */
  --qk-input-bg-profile:  #f2f7ff;   /* profile / dashboard inputs */
  --qk-input-bg-form:     #f2f7ff;   /* sticker form inputs */
  --qk-input-bg-dark:     #f2f7ff;   /* sticker number monospace input */

  /* Purple brand accent */
  --qk-auth-purple:       #6A1CF6;
  --qk-auth-purple-2:     #811CD9;
  --qk-auth-purple-light: rgba(172, 142, 255, 0.20);
  --qk-auth-btn-gradient: linear-gradient(179deg, #6A1CF6 0%, #811CD9 100%);
  --qk-auth-btn-shadow:   0px 10px 30px rgba(106, 28, 246, 0.30);
  --qk-auth-btn-text:     #F7F0FF;
  --qk-auth-outline-ring: rgba(106, 28, 246, 0.20);

  /* Password strength bars */
  --qk-str-active:        #6A1CF6;
  --qk-str-empty:         #DBDDE0;
  --qk-str-weak:          #EF4444;
  --qk-str-fair:          #F59E0B;

  /* Toggle */
  --qk-toggle-on:         #6A1CF6;
  --qk-toggle-off:        #ACADAF;

  /* Blob backgrounds */
  --qk-blob-purple:       rgba(172, 142, 255, 0.10);
  --qk-blob-blue:         rgba(194, 208, 255, 0.20);

  /* Danger */
  --qk-danger-red:        #B41340;
  --qk-danger-light:      rgba(247, 75, 109, 0.20);
}

/* ── Reset (scoped to account screens only) ────────────────── */
.qk-auth-page *,
.qk-account-shell * {
  box-sizing: border-box;
}

/* ============================================================
   AUTH SCREENS — Registration & Login
   ============================================================ */

.qk-auth-page {
  min-height: 100vh;
  font-family: var(--qk-auth-font-body);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

/* ── Background blobs ──────────────────────────────────────── */
.qk-blob {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
}
.qk-blob--purple {
  width: 500px; height: 500px;
  top: -100px; right: -100px;
  background: var(--qk-blob-purple);
  filter: blur(60px);
}
.qk-blob--blue {
  width: 600px; height: 600px;
  bottom: -150px; left: -150px;
  background: var(--qk-blob-blue);
  filter: blur(60px);
}

/* ── Auth container ────────────────────────────────────────── */
.qk-auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Single-column (registration) */
.qk-auth-container--single {
  max-width: 512px;
  margin: 0 auto;
}

/* Two-column (login) */
.qk-auth-container--split {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Outer frame ───────────────────────────────────────────── */
.qk-auth-outer {
  background: var(--qk-auth-card-outer);
  border-radius: 32px;
  padding: 4px;
}

/* ── Inner card — single column ────────────────────────────── */
.qk-auth-inner {
  background: var(--qk-auth-card-inner);
  border-radius: 29.6px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: var(--qk-auth-shadow);
}

/* ── Inner card — split (login) ────────────────────────────── */
.qk-auth-inner--split {
  display: flex;
  flex-direction: row;
  border-radius: 29.6px;
  overflow: hidden;
  box-shadow: var(--qk-auth-shadow);
}

/* ── Brand panel (login left column) ──────────────────────── */
.qk-auth-brand-panel {
  width: 550px;
  flex-shrink: 0;
  padding: 56px 48px;
  background: linear-gradient(117deg, #6A1CF6 0%, #811CD9 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.qk-auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.qk-auth-brand-logo {
  font-family: var(--qk-auth-font-heading);
  font-weight: 800;
  font-size: 30px;
  color: #F7F0FF;
  margin: 0;
  position: relative;
  z-index: 1;
}
.qk-auth-brand-headline {
  font-family: var(--qk-auth-font-heading);
  font-weight: 800;
  font-size: 36px;
  line-height: 45px;
  color: #ffffff;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.qk-auth-brand-body {
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.90);
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.qk-auth-feature-card {
  margin-top: 48px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  outline: 1px rgba(255, 255, 255, 0.10) solid;
  padding: 20px 24px;
  position: relative;
  z-index: 1;
}
.qk-auth-feature-icon {
  width: 40px; height: 40px;
  background: var(--qk-auth-purple-light);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.qk-auth-feature-icon svg { color: #fff; }
.qk-auth-feature-card h3 {
  font-family: var(--qk-auth-font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  margin: 0 0 4px;
}
.qk-auth-feature-card p {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.60);
  margin: 0 0 12px;
}
.qk-auth-progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.20);
  overflow: hidden;
}
.qk-auth-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.80);
  width: 85%;
}

/* ── Form panel (login right column) ──────────────────────── */
.qk-auth-form-panel {
  flex: 1;
  background: var(--qk-auth-card-inner);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Icon pod (registration) ───────────────────────────────── */
.qk-auth-icon-pod {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--qk-auth-purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.qk-auth-icon-pod svg { color: var(--qk-auth-purple); }

/* ── Auth headings ─────────────────────────────────────────── */
.qk-auth-header { display: flex; flex-direction: column; gap: 8px; }
.qk-auth-title {
  font-family: var(--qk-auth-font-heading);
  font-weight: 800;
  font-size: 30px;
  line-height: 36px;
  color: var(--qk-auth-heading);
  margin: 0;
}
.qk-auth-subtitle {
  font-size: 16px;
  line-height: 26px;
  color: var(--qk-auth-subtext);
  margin: 0;
}

/* ── Auth form ─────────────────────────────────────────────── */
.qk-auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.qk-auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qk-auth-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--qk-auth-subtext);
}
.qk-auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.qk-auth-forgot {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--qk-auth-purple);
  text-decoration: none;
}
.qk-auth-forgot:hover { text-decoration: underline; }

.qk-auth-input-wrap {
  position: relative;
}
.qk-auth-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--qk-auth-icon);
  pointer-events: none;
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
}
.qk-auth-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--qk-auth-font-body);
  font-size: 16px;
  color: var(--qk-auth-heading);
  border-radius: 12px;
  padding: 18px 16px 18px 48px;
  transition: box-shadow 0.15s;
}
.qk-auth-input-wrap input::placeholder { color: var(--qk-auth-placeholder); }
.qk-auth-input-wrap input:focus {
  box-shadow: 0 0 0 3px var(--qk-auth-outline-ring);
}

/* Registration inputs */
.qk-auth-input-wrap--reg input { background: var(--qk-input-bg-reg); }
/* Login inputs */
.qk-auth-input-wrap--login input { background: var(--qk-input-bg-login); }

/* Eye toggle (password) */
.qk-auth-eye-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--qk-auth-icon);
  display: flex; align-items: center;
}

/* ── Password strength ─────────────────────────────────────── */
.qk-auth-strength {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.qk-auth-str-bars {
  display: flex;
  gap: 4px;
}
.qk-auth-str-bar {
  flex: 1;
  height: 4px;
  border-radius: 9999px;
  background: var(--qk-str-empty);
  transition: background 0.2s;
}
.qk-auth-str-bar--weak   { background: var(--qk-str-weak); }
.qk-auth-str-bar--fair   { background: var(--qk-str-fair); }
.qk-auth-str-bar--strong { background: var(--qk-str-active); }
.qk-auth-str-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--qk-auth-purple);
}

/* ── Remember me / Terms ───────────────────────────────────── */
.qk-auth-remember,
.qk-auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.qk-auth-checkbox {
  width: 20px; height: 20px;
  border-radius: 8px;
  border: 1px solid var(--qk-auth-input-border);
  background: var(--qk-input-bg-reg);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--qk-auth-purple);
}
.qk-auth-remember label,
.qk-auth-terms label {
  font-size: 14px;
  font-weight: 500;
  color: var(--qk-auth-subtext);
  line-height: 20px;
}
.qk-auth-terms a,
.qk-auth-remember a {
  color: var(--qk-auth-link);
  font-weight: 600;
  text-decoration: none;
}

/* ── Submit button ─────────────────────────────────────────── */
.qk-auth-submit {
  width: 100%;
  padding: 18px 24px;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  background: var(--qk-auth-btn-gradient);
  box-shadow: var(--qk-auth-btn-shadow);
  color: var(--qk-auth-btn-text);
  font-family: var(--qk-auth-font-heading);
  font-weight: 800;
  font-size: 16px;
  transition: opacity 0.15s, transform 0.1s;
}
.qk-auth-submit:hover { opacity: 0.93; }
.qk-auth-submit:active { transform: scale(0.99); }
.qk-auth-submit:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── OR divider ────────────────────────────────────────────── */
.qk-auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
}
.qk-auth-divider hr {
  flex: 1;
  border: none;
  border-top: 1px solid var(--qk-auth-border-inner);
}
.qk-auth-divider span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--qk-auth-muted);
  white-space: nowrap;
}

/* ── Social button ─────────────────────────────────────────── */
.qk-auth-social {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--qk-input-bg-reg);
  outline: 1px rgba(172, 173, 175, 0.30) solid;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--qk-auth-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--qk-auth-heading);
  transition: background 0.15s;
}
.qk-auth-social:hover { background: #E1E2E6; }
.qk-auth-social img { width: 20px; height: 20px; }

/* ── Status message ────────────────────────────────────────── */
.qk-auth-status {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
}
.qk-auth-status.show { display: block; }
.qk-auth-status--error   { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.qk-auth-status--success { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }

/* ── Auth footer ───────────────────────────────────────────── */
.qk-auth-footer {
  border-top: 1px solid var(--qk-auth-border-inner);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.qk-auth-footer p {
  font-size: 14px;
  color: var(--qk-auth-subtext);
  margin: 0;
}
.qk-auth-signin-link,
.qk-auth-register-link {
  display: inline-block;
  padding: 8px 24px;
  outline: 1px solid var(--qk-auth-outline-ring);
  border-radius: 9999px;
  font-family: var(--qk-auth-font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--qk-auth-purple);
  text-decoration: none;
  transition: background 0.15s;
}
.qk-auth-signin-link:hover,
.qk-auth-register-link:hover { background: var(--qk-auth-purple-light); }

/* ============================================================
   ACCOUNT PANEL SHELL
   ============================================================ */

.qk-account-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--qk-auth-bg);
  font-family: var(--qk-auth-font-body);
}

/* ── Top Navigation Bar ────────────────────────────────────── */
.qk-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: rgba(246, 246, 249, 0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0px 1px 2px rgba(49, 46, 129, 0.05);
  display: flex;
  align-items: center;
}
.qk-topbar__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.qk-topbar__left {
  display: flex;
  align-items: center;
  gap: 32px;
}
.qk-topbar__wordmark {
  font-family: var(--qk-auth-font-heading);
  font-weight: 800;
  font-size: 24px;
  line-height: 32px;
  color: var(--qk-auth-purple);
  text-decoration: none;
}
.qk-topbar__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.qk-topbar__nav-link {
  font-family: var(--qk-auth-font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #475569;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.qk-topbar__nav-link--active,
.qk-topbar__nav-link:hover {
  color: var(--qk-auth-purple);
  border-bottom-color: var(--qk-auth-purple);
}
.qk-topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* Bell button */
.qk-topbar__bell {
  position: relative;
  width: 40px; height: 40px;
  background: var(--qk-input-bg-reg);
  border: none;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--qk-auth-subtext);
}
.qk-topbar__bell-dot {
  position: absolute;
  top: 7.6px; right: 7.6px;
  width: 7.6px; height: 7.6px;
  background: var(--qk-danger-red);
  border-radius: 9999px;
  display: none;
}
.qk-topbar__bell-dot.show { display: block; }
/* Avatar */
.qk-topbar__avatar-wrap { position: relative; }
.qk-topbar__avatar {
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: #AC8EFF;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--qk-auth-font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  border: none;
}
.qk-topbar__avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Dropdown */
.qk-topbar__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 47, 123, 0.12);
  outline: 1px rgba(172, 173, 175, 0.20) solid;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 200;
}
.qk-topbar__dropdown.open { display: flex; }
.qk-topbar__dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--qk-auth-border-inner);
}
.qk-topbar__dropdown-header strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--qk-auth-heading);
}
.qk-topbar__dropdown-header span {
  font-size: 12px;
  color: var(--qk-auth-muted);
}
.qk-topbar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 15px;
  color: var(--qk-auth-heading);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s;
}
.qk-topbar__dropdown-item:hover { background: var(--qk-input-bg-reg); }
.qk-topbar__dropdown-item--danger { color: var(--qk-danger-red); }
.qk-topbar__dropdown-divider {
  border: none;
  border-top: 1px solid var(--qk-auth-border-inner);
  margin: 0;
}
/* Hamburger (mobile) */
.qk-topbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--qk-auth-heading);
  padding: 4px;
}

/* ── Account body ──────────────────────────────────────────── */
.qk-account-body {
  display: flex;
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* ── Left Sidebar ──────────────────────────────────────────── */
.qk-account-sidebar {
  width: 256px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  align-self: flex-start;
}
.qk-sidebar-section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--qk-auth-muted);
  padding: 0 16px 24px;
}
.qk-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qk-sidebar-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  color: var(--qk-auth-subtext);
  font-weight: 400;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.qk-sidebar-nav__item:hover {
  background: var(--qk-auth-purple-light);
  color: var(--qk-auth-purple);
}
.qk-sidebar-nav__item--active {
  background: var(--qk-auth-purple-light);
  color: var(--qk-auth-purple);
  font-weight: 600;
}
.qk-sidebar-nav__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qk-sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #E1E2E6;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Main content area ─────────────────────────────────────── */
.qk-account-main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  min-width: 0;
}

/* ── Tab panels ────────────────────────────────────────────── */
.qk-account-tab { display: none; }
.qk-account-tab--active { display: block; }

/* ============================================================
   SHARED BUTTON STYLES
   ============================================================ */

.qk-btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(90deg, #6A1CF6 0%, #811CD9 100%);
  box-shadow: 0px 4px 6px -4px rgba(106,28,246,0.20), 0px 10px 15px -3px rgba(106,28,246,0.20);
  color: #F7F0FF;
  font-family: var(--qk-auth-font-body);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
}
.qk-btn--primary:hover { opacity: 0.90; }
.qk-btn--primary:disabled { opacity: 0.55; cursor: not-allowed; }

.qk-btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 9999px;
  background: transparent;
  outline: 1px rgba(172, 173, 175, 0.30) solid;
  color: var(--qk-auth-purple);
  font-family: var(--qk-auth-font-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.qk-btn--outline:hover { background: var(--qk-auth-purple-light); }

.qk-btn--primary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(164deg, #6A1CF6 0%, #811CD9 100%);
  box-shadow: 0px 8px 10px -6px rgba(106,28,246,0.30), 0px 20px 25px -5px rgba(106,28,246,0.30);
  color: #ffffff;
  font-family: var(--qk-auth-font-body);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.qk-btn--primary-lg:hover { opacity: 0.90; }

.qk-btn--ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: var(--qk-auth-subtext);
  font-family: var(--qk-auth-font-body);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.15s;
}
.qk-btn--ghost:hover { color: var(--qk-auth-heading); }

.qk-btn--new-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  background: #E1E2E6;
  color: var(--qk-auth-heading);
  font-family: var(--qk-auth-font-body);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.qk-btn--new-profile:hover { background: #DBDDE0; }

/* ============================================================
   DASHBOARD TAB
   ============================================================ */

.qk-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 40px;
}
.qk-dash-header__left h1 {
  font-family: var(--qk-auth-font-heading);
  font-weight: 800;
  font-size: 36px;
  line-height: 40px;
  color: var(--qk-auth-heading);
  margin: 0 0 8px;
}
.qk-dash-header__left p {
  font-size: 16px;
  color: var(--qk-auth-subtext);
  margin: 0;
}
.qk-dash-header__actions { display: flex; gap: 12px; flex-shrink: 0; }

/* Section headings */
.qk-dash-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.qk-dash-section-header h2 {
  font-family: var(--qk-auth-font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--qk-auth-heading);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.qk-dash-count-badge {
  padding: 2px 8px;
  background: #C2D0FF;
  border-radius: 9999px;
  font-family: var(--qk-auth-font-heading);
  font-weight: 700;
  font-size: 12px;
  color: #0040A3;
}
.qk-view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--qk-auth-purple);
  text-decoration: none;
  cursor: pointer;
}
.qk-view-all:hover { text-decoration: underline; }

/* Two-column dashboard layout */
.qk-dash-content-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.qk-dash-left {
  flex: 1;
  min-width: 0;
}
.qk-dash-right {
  width: 300px;
  flex-shrink: 0;
}

/* Asset cards grid — 2 columns */
.qk-assets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}
.qk-dash-qr-notice {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #92400E;
  line-height: 1.5;
}
.qk-dash-qr-notice__icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.qk-dash-pending-notice {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #1E40AF;
  line-height: 1.5;
}
.qk-asset-card {
  padding: 20px;
  background: #ffffff;
  border: 1px solid #E7E8EB;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 3.5px;
}
.qk-asset-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
.qk-asset-card__icon-pod {
  width: 48px; height: 48px;
  border-radius: 9999px;
  background: var(--qk-auth-purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qk-auth-purple);
}
.qk-asset-card__icon-pod--blue  { background: rgba(194, 208, 255, 0.20); color: #0253CD; }
.qk-asset-card__icon-pod--lilac { background: rgba(204, 155, 255, 0.20); color: #811CD9; }
.qk-asset-card__privacy { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.qk-asset-card__privacy-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--qk-auth-muted);
}
/* Privacy toggle (44×24 in asset cards) */
.qk-privacy-toggle {
  position: relative;
  width: 44px; height: 24px;
  border-radius: 9999px;
  cursor: pointer;
  border: none;
  background: var(--qk-toggle-off);
  transition: background 0.2s;
  flex-shrink: 0;
}
.qk-privacy-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #D1D5DB;
  transition: left 0.2s;
}
.qk-privacy-toggle--on {
  background: var(--qk-toggle-on);
}
.qk-privacy-toggle--on::after {
  left: 22px;
  border-color: transparent;
}
.qk-asset-card__name {
  font-family: var(--qk-auth-font-heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: var(--qk-auth-heading);
  padding-top: 12.5px;
  margin: 0;
}
.qk-asset-card__id {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 12px;
  font-size: 13px;
  color: var(--qk-auth-subtext);
}
.qk-asset-card__id svg {
  flex-shrink: 0;
  color: var(--qk-auth-muted);
}
.qk-asset-card__footer {
  border-top: 1px solid var(--qk-auth-border-inner);
  padding-top: 14px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Stats (left side) */
.qk-asset-card__stats {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qk-asset-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--qk-auth-subtext);
}
.qk-asset-card__stat svg { flex-shrink: 0; opacity: 0.65; }
.qk-asset-card__stat-value {
  font-weight: 700;
  color: var(--qk-auth-heading);
  font-size: 14px;
}
.qk-asset-card__stat-label {
  font-size: 12px;
  color: var(--qk-auth-muted);
}

/* Action links (right side) */
.qk-asset-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.qk-asset-card__preview,
.qk-asset-card__edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.qk-asset-card__preview {
  color: var(--qk-auth-subtext);
  background: var(--qk-auth-card-outer);
}
.qk-asset-card__preview:hover {
  background: #E1E2E6;
  color: var(--qk-auth-heading);
}
.qk-asset-card__edit {
  color: var(--qk-auth-purple);
  background: var(--qk-auth-purple-light);
}
.qk-asset-card__edit:hover {
  background: rgba(172, 142, 255, 0.35);
  color: var(--qk-auth-purple);
}

/* Add asset placeholder */
.qk-asset-add-placeholder {
  padding: 67.5px 20px;
  background: rgba(240, 240, 243, 0.50);
  border-radius: 24px;
  outline: 2px rgba(172, 173, 175, 0.30) solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  width: 100%;
}
.qk-asset-add-placeholder:hover { background: rgba(240, 240, 243, 0.80); }
.qk-asset-add-icon {
  width: 40px; height: 40px;
  background: #E1E2E6;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qk-auth-subtext);
  margin-bottom: 8px;
}
.qk-asset-add-placeholder span {
  font-size: 14px;
  font-weight: 700;
  color: var(--qk-auth-subtext);
}

/* Alerts */
.qk-alerts-container {
  background: var(--qk-input-bg-reg);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.qk-alert-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.qk-alert-icon-pod {
  width: 40px; height: 40px;
  border-radius: 9999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qk-alert-icon-pod--emergency { background: var(--qk-danger-light); color: var(--qk-danger-red); }
.qk-alert-icon-pod--message   { background: rgba(194, 208, 255, 0.20); color: #0253CD; }
.qk-alert-icon-pod--activated { background: var(--qk-auth-purple-light); color: var(--qk-auth-purple); }
.qk-alert-body { flex: 1; }
.qk-alert-body h4 {
  font-family: var(--qk-auth-font-heading);
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: var(--qk-auth-heading);
  margin: 0 0 2px;
}
.qk-alert-body p {
  font-size: 12px;
  line-height: 16px;
  color: var(--qk-auth-subtext);
  margin: 0 0 4px;
}
.qk-alert-body time {
  font-size: 10px;
  color: var(--qk-auth-muted);
}
.qk-clear-alerts {
  display: block;
  text-align: center;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--qk-auth-purple);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
}

/* Alerts clear row */
.qk-alerts-clear {
  text-align: center;
  padding: 8px 0 0;
}

/* Empty state text */
.qk-empty-state {
  color: var(--qk-auth-muted);
  font-size: 14px;
  padding: 16px 0;
  margin: 0;
}

/* Promo card */
.qk-promo-card {
  background: #f7fafc;
  border-radius: 24px;
  border: 1px solid var(--qk-border);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.qk-promo-card__watermark {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(12deg);
  opacity: 0.20;
  font-size: 120px;
  line-height: 1;
  color: #F6F6F9;
  pointer-events: none;
  user-select: none;
}
.qk-promo-card h3 {
  font-family: var(--qk-auth-font-heading);
  font-weight: 800;
  font-size: 18px;
  line-height: 28px;
  color: #F6F6F9;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}
.qk-promo-card p {
  font-size: 12px;
  line-height: 19.5px;
  color: #D2D4D8;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}
.qk-promo-card__btn {
  display: inline-block;
  padding: 8px 16px;
  background: #F6F6F9;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #2D2F31;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* ============================================================
   PROFILE TAB
   ============================================================ */

.qk-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 16px;
}
.qk-profile-header h1 {
  font-family: var(--qk-auth-font-heading);
  font-weight: 800;
  font-size: 36px;
  line-height: 40px;
  color: var(--qk-auth-heading);
  margin: 0 0 8px;
}
.qk-profile-header p {
  font-size: 16px;
  color: var(--qk-auth-subtext);
  margin: 0;
}

/* Avatar section */
.qk-profile-avatar-section {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--qk-auth-border-inner);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}
.qk-avatar-wrap { position: relative; flex-shrink: 0; }
.qk-avatar {
  width: 90px; height: 90px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12), 0 0 0 3px #ffffff;
}
.qk-avatar-initials {
  width: 90px; height: 90px;
  border-radius: 16px;
  background: var(--qk-auth-purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--qk-auth-font-heading);
  font-weight: 800;
  font-size: 32px;
  color: var(--qk-auth-purple);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12), 0 0 0 3px #ffffff;
}
.qk-avatar-edit-btn {
  position: absolute;
  bottom: -8px; right: -8px;
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: var(--qk-auth-purple);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 6px -4px rgba(0,0,0,0.10), 0 10px 15px -3px rgba(0,0,0,0.10);
}
.qk-avatar-info { display: flex; flex-direction: column; gap: 8px; }
.qk-avatar-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qk-avatar-name-row h2 {
  font-family: var(--qk-auth-font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: var(--qk-auth-heading);
  margin: 0;
}
.qk-plan-badge-pill {
  padding: 4px 12px;
  background: rgba(172, 142, 255, 0.30);
  outline: 1px rgba(106, 28, 246, 0.20) solid;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--qk-auth-purple);
}
.qk-avatar-hint { font-size: 14px; color: var(--qk-auth-subtext); margin: 0; }
.qk-avatar-actions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}
.qk-btn--upload {
  padding: 8px 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  outline: 1px rgba(172,173,175,0.10) solid;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--qk-auth-heading);
  transition: background 0.15s;
}
.qk-btn--upload:hover { background: #f5f5f5; }
.qk-btn--remove-avatar {
  padding: 8px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--qk-danger-red);
}

/* Personal information card */
.qk-profile-info-section {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--qk-auth-border-inner);
  padding: 28px;
  margin-bottom: 20px;
}
.qk-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.qk-section-heading svg { color: var(--qk-auth-purple); }
.qk-section-heading h3 {
  font-family: var(--qk-auth-font-heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: var(--qk-auth-heading);
  margin: 0;
}

/* 2-column field grid */
.qk-profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.qk-profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qk-profile-field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--qk-auth-subtext);
  line-height: 16px;
}
.qk-profile-field input,
.qk-profile-field textarea {
  width: 100%;
  background: var(--qk-input-bg-profile);
  border: none;
  outline: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--qk-auth-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--qk-auth-heading);
  transition: box-shadow 0.15s;
  box-sizing: border-box;
}
.qk-profile-field textarea { resize: none; min-height: 80px; }
.qk-profile-field input:focus,
.qk-profile-field textarea:focus { box-shadow: 0 0 0 3px var(--qk-auth-outline-ring); }

/* Email field — input wrapper with verified badge */
.qk-profile-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.qk-profile-input-wrap input { padding-right: 80px; }
.qk-verified-badge {
  position: absolute;
  right: 10px;
  background: #DCFCE7;
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #15803D;
  white-space: nowrap;
}

.qk-input-readonly {
  cursor: default !important;
  opacity: 0.72;
  pointer-events: none;
}
.qk-field-hint {
  display: block;
  font-size: 11px;
  color: var(--qk-auth-muted);
  margin-top: 5px;
  line-height: 1.4;
}

.qk-unverified-badge {
  position: absolute;
  right: 10px;
  background: #FEF3C7;
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #B45309;
  white-space: nowrap;
}
.qk-verify-now-btn {
  background: none;
  border: none;
  padding: 0;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--qk-auth-purple);
  cursor: pointer;
  text-decoration: underline;
  display: inline-block;
}
.qk-verify-now-btn:hover { color: var(--qk-auth-purple-2); }

/* Phone field */
.qk-phone-field {
  display: flex;
  gap: 8px;
}
.qk-phone-country {
  width: 95px;
  flex-shrink: 0;
  background: var(--qk-input-bg-profile);
  border: none;
  outline: none;
  border-radius: 12px;
  padding: 14px 10px;
  font-family: var(--qk-auth-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--qk-auth-heading);
  cursor: pointer;
}
.qk-phone-number {
  flex: 1;
  min-width: 0;
}
.qk-profile-footer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
}

/* ============================================================
   STICKER FORM (Add / Activate / Edit)
   ============================================================ */

.qk-sticker-form {
  max-width: 672px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 32px 0;
}

/* Section heading pattern */
.qk-sticker-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.qk-sticker-section-pod {
  width: 40px; height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qk-sticker-section-pod--purple { background: rgba(106, 28, 246, 0.10); color: var(--qk-auth-purple); }
.qk-sticker-section-pod--red    { background: rgba(247, 75, 109, 0.20); color: var(--qk-danger-red); }
.qk-sticker-section-head h2 {
  font-family: var(--qk-auth-font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: var(--qk-auth-heading);
  margin: 0;
}
.qk-sticker-section-head__note {
  font-family: var(--qk-auth-font-heading);
  font-size: 14px;
  font-weight: 400;
  color: var(--qk-auth-muted);
  margin-left: 4px;
}

/* Sticker number card */
.qk-sticker-input-card {
  background: #ffffff;
  box-shadow: 0px -8px 30px rgba(0, 47, 123, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qk-sticker-input-card label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--qk-auth-muted);
  line-height: 20px;
}
.qk-sticker-input-wrap {
  position: relative;
}
.qk-sticker-number-input {
  width: 100%;
  background: var(--qk-input-bg-dark);
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 20px 56px 20px 16px;
  font-family: 'Liberation Mono', 'Courier New', monospace;
  font-size: 18px;
  color: var(--qk-auth-placeholder);
  transition: box-shadow 0.15s;
}
.qk-sticker-number-input:focus { box-shadow: 0 0 0 3px var(--qk-auth-outline-ring); }
.qk-sticker-scan-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--qk-auth-purple);
  cursor: pointer;
  display: flex; align-items: center;
}

/* Notification preferences */
.qk-notif-list {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
}
.qk-notif-item {
  background: #ffffff;
  height: 64px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--qk-auth-bg);
}
.qk-notif-item:last-child { border-bottom: none; }
.qk-notif-item__left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qk-notif-item__icon { color: var(--qk-auth-muted); flex-shrink: 0; }
.qk-notif-item__label {
  font-size: 16px;
  font-weight: 600;
  color: var(--qk-auth-heading);
}

/* Toggle — 48×24 (notification rows) */
.qk-toggle-lg {
  position: relative;
  width: 48px; height: 24px;
  border-radius: 9999px;
  background: var(--qk-toggle-off);
  outline: 1px #6B7280 solid;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, outline 0.2s;
}
.qk-toggle-lg::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  width: 16px; height: 16px;
  border-radius: 9999px;
  background: #ffffff;
  transition: left 0.2s;
}
.qk-toggle-lg--on {
  background: var(--qk-toggle-on);
  outline: 1px rgba(0,0,0,0) solid;
}
.qk-toggle-lg--on::after { left: 28px; }

/* Toggle — 56×28 (status card) */
.qk-toggle-xl {
  position: relative;
  width: 56px; height: 28px;
  border-radius: 9999px;
  background: var(--qk-toggle-off);
  outline: 1px #6B7280 solid;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, outline 0.2s;
}
.qk-toggle-xl::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  width: 20px; height: 20px;
  border-radius: 9999px;
  background: #ffffff;
  transition: left 0.2s;
}
.qk-toggle-xl--on {
  background: var(--qk-toggle-on);
  outline: 1px rgba(0,0,0,0) solid;
}
.qk-toggle-xl--on::after { left: 32px; }

/* Emergency contacts */
.qk-emergency-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qk-emergency-card {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qk-emergency-card input {
  width: 100%;
  background: var(--qk-input-bg-form);
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 13px 12px;
  font-family: var(--qk-auth-font-body);
  font-size: 14px;
  color: var(--qk-auth-heading);
  transition: box-shadow 0.15s;
}
.qk-emergency-card input::placeholder { color: var(--qk-auth-placeholder); }
.qk-emergency-card input:focus { box-shadow: 0 0 0 3px var(--qk-auth-outline-ring); }
.qk-emergency-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.qk-max-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--qk-auth-muted);
}

/* Status & vacation card */
.qk-status-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.qk-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.qk-status-row__info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--qk-auth-heading);
  margin: 0 0 4px;
}
.qk-status-row__info p {
  font-size: 14px;
  color: var(--qk-auth-muted);
  margin: 0;
}
.qk-status-divider {
  border: none;
  border-top: 1px solid var(--qk-auth-border-inner);
  margin: 0;
}
.qk-vacation-dates {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.qk-date-field {
  position: relative;
  height: 63px;
}
.qk-date-field label {
  position: absolute;
  top: 0; left: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--qk-auth-muted);
  line-height: 15px;
}
.qk-date-field input[type="date"] {
  position: absolute;
  top: 19px; left: 0;
  width: 280px;
  background: var(--qk-input-bg-form);
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 12px;
  font-family: var(--qk-auth-font-body);
  font-size: 14px;
  color: var(--qk-auth-heading);
}

/* Owner profile selector */
.qk-profile-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
}
.qk-profile-select-wrap {
  flex: 1;
  position: relative;
}
.qk-profile-select-wrap select {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border-radius: 12px;
  border: none;
  outline: none;
  padding: 16px 48px 16px 16px;
  font-family: var(--qk-auth-font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--qk-auth-heading);
  appearance: none;
  cursor: pointer;
}
.qk-select-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--qk-auth-muted);
  pointer-events: none;
}

/* Vehicle details */
.qk-vehicle-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.qk-vehicle-field {
  display: flex;
  flex-direction: column;
  gap: 8.5px;
  padding-bottom: 16px;
}
.qk-vehicle-field:last-child { padding-bottom: 0; }
.qk-vehicle-field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--qk-auth-muted);
  line-height: 16px;
}
.qk-vehicle-field input,
.qk-vehicle-field select {
  width: 100%;
  background: var(--qk-input-bg-form);
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 14px 12px;
  font-family: var(--qk-auth-font-body);
  font-size: 16px;
  color: var(--qk-auth-placeholder);
  transition: box-shadow 0.15s;
}
.qk-vehicle-field input:focus,
.qk-vehicle-field select:focus { box-shadow: 0 0 0 3px var(--qk-auth-outline-ring); }
.qk-show-vehicle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--qk-auth-border-inner);
  margin-top: 8px;
}
.qk-show-vehicle-row span {
  font-size: 14px;
  font-weight: 500;
  color: var(--qk-auth-subtext);
}

/* ============================================================
   MY PROFILES TAB
   ============================================================ */

.qk-profiles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qk-profile-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qk-profile-card--default { border-color: #16A34A; }
.qk-profile-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.qk-profile-card__name {
  font-family: var(--qk-auth-font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--qk-auth-heading);
  margin: 0;
}
.qk-profile-card__phone {
  font-size: 14px;
  color: var(--qk-auth-subtext);
}
.qk-profile-card__actions {
  display: flex;
  gap: 8px;
}
.qk-add-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border: 2px dashed rgba(106, 28, 246, 0.30);
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--qk-auth-purple);
  transition: background 0.15s;
}
.qk-add-profile-btn:hover { background: var(--qk-auth-purple-light); }

/* ============================================================
   MY ORDERS TAB
   ============================================================ */

.qk-orders-plan-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  margin-bottom: 32px;
}
.qk-orders-plan-card h2 {
  font-family: var(--qk-auth-font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--qk-auth-heading);
  margin: 0 0 16px;
}
.qk-usage-bar {
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: #E1E2E6;
  overflow: hidden;
  margin: 8px 0;
}
.qk-usage-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--qk-auth-purple);
  transition: width 0.3s;
}
.qk-plan-upgrade-card {
  background: var(--qk-auth-purple-light);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--qk-auth-outline-ring);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.qk-orders-table-wrap { overflow-x: auto; }
.qk-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.qk-orders-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--qk-auth-muted);
  border-bottom: 1px solid var(--qk-auth-border-inner);
}
.qk-orders-table td {
  padding: 12px;
  color: var(--qk-auth-subtext);
  border-bottom: 1px solid var(--qk-auth-border-inner);
}
.qk-orders-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--qk-auth-muted);
  font-size: 15px;
}

/* Pending plan-upgrade notice */
.qk-plan-pending-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.qk-plan-pending-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #D97706;
}
.qk-plan-pending-notice strong {
  display: block;
  margin-bottom: 2px;
  color: #78350F;
}

/* Order status pill */
.qk-order-status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.qk-order-status-pill--processing,
.qk-order-status-pill--pending    { background: #FEF9C3; color: #854D0E; }
.qk-order-status-pill--completed  { background: #DCFCE7; color: #166534; }
.qk-order-status-pill--on-hold    { background: #E0F2FE; color: #075985; }
.qk-order-status-pill--cancelled,
.qk-order-status-pill--failed     { background: #FEE2E2; color: #991B1B; }
.qk-order-status-pill--refunded   { background: #F3E8FF; color: #6B21A8; }

/* View Order button */
.qk-orders-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #4C41E0;
  border: 1.5px solid rgba(76,65,224,0.30);
  background: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.qk-orders-view-btn:hover {
  background: #F0EEFF;
  border-color: rgba(76,65,224,0.60);
  color: #4C41E0;
}

/* ============================================================
   INLINE FORM STATUS
   ============================================================ */

.qk-form-status {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}
.qk-form-status.show { display: block; }
.qk-form-status--success { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.qk-form-status--error   { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }

/* ============================================================
   HOMEPAGE ALIGNMENT — Panel overrides
   Scoped to .qk-account-shell so auth screens keep purple theme
   ============================================================ */

/* White background — matches homepage */
.qk-account-shell {
  background: #ffffff;
}

/* Sidebar — add right border, match homepage bg */
.qk-account-sidebar {
  border-right: 1px solid var(--qk-border);
  background: #ffffff;
}

/* Sidebar nav: blue active/hover (matches homepage --qk-blue) */
.qk-account-shell .qk-sidebar-nav__item:hover {
  background: var(--qk-blue-light);
  color: var(--qk-blue);
}
.qk-account-shell .qk-sidebar-nav__item--active {
  background: var(--qk-blue-light);
  color: var(--qk-blue);
}

/* Sidebar logout — use homepage red token */
.qk-account-shell .qk-sidebar-nav__item--logout,
.qk-account-shell .qk-sidebar-nav__item--logout .qk-sidebar-nav__icon {
  color: var(--qk-red);
}

/* Section page-level headings — consistent with homepage h2 size */
.qk-account-shell .qk-profile-header h1 {
  font-family: var(--qk-font);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--qk-primary);
}
.qk-account-shell .qk-profile-header p {
  color: var(--qk-muted);
}

/* Primary buttons inside panel — homepage blue-purple gradient */
.qk-account-shell .qk-btn--primary {
  background: var(--qk-gradient);
  box-shadow: 0 4px 14px rgba(37,99,235,0.30);
  color: #ffffff;
  font-family: var(--qk-font);
  border-radius: var(--qk-radius);
}
.qk-account-shell .qk-btn--primary:hover {
  opacity: 0.92;
  box-shadow: 0 6px 20px rgba(37,99,235,0.40);
}
.qk-account-shell .qk-btn--primary-lg {
  background: var(--qk-gradient);
  box-shadow: 0 4px 14px rgba(37,99,235,0.30);
  font-family: var(--qk-font);
  border-radius: var(--qk-radius);
}
.qk-account-shell .qk-btn--primary-lg:hover {
  opacity: 0.92;
}

/* Outline button — homepage blue instead of purple */
.qk-account-shell .qk-btn--outline {
  color: var(--qk-blue);
  outline-color: rgba(37,99,235,0.25);
}
.qk-account-shell .qk-btn--outline:hover {
  background: var(--qk-blue-light);
}

/* Profile info + avatar cards — white with border */
.qk-account-shell .qk-profile-info-section,
.qk-account-shell .qk-profile-avatar-section {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--qk-border);
  box-shadow: var(--qk-shadow-sm);
}

/* Section heading icon accent — homepage blue */
.qk-account-shell .qk-section-heading svg {
  color: var(--qk-blue);
}

/* Asset cards — visible border + shadow */
.qk-account-shell .qk-asset-card {
  border: 1px solid #E7E8EB;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 20px;
}

/* Asset count badge — homepage blue palette */
.qk-account-shell .qk-dash-count-badge {
  background: var(--qk-blue-light);
  color: var(--qk-blue);
}

/* Alerts container — homepage soft bg */
.qk-account-shell .qk-alerts-container {
  background: var(--qk-bg-soft);
  border-radius: var(--qk-radius-lg);
  border: 1px solid var(--qk-border);
}

/* Accent links — homepage blue */
.qk-account-shell .qk-view-all,
.qk-account-shell .qk-asset-card__history,
.qk-account-shell .qk-clear-alerts {
  color: var(--qk-blue);
}

/* Orders: plan card */
.qk-account-shell .qk-orders-plan-card {
  border-radius: var(--qk-radius-lg);
  border: 1px solid var(--qk-border);
  box-shadow: var(--qk-shadow-sm);
}

/* Upgrade CTA card — gradient bg matching homepage CTA style */
.qk-account-shell .qk-plan-upgrade-card {
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--qk-radius-lg);
}
.qk-account-shell .qk-plan-upgrade-card h3 {
  color: var(--qk-blue);
}

/* Plan badge pill — homepage purple-light */
.qk-account-shell .qk-plan-badge-pill {
  background: var(--qk-purple-light);
  outline-color: rgba(147,51,234,0.20);
  color: var(--qk-purple);
}

/* Avatar initials — homepage gradient */
.qk-account-shell .qk-avatar-initials {
  background: var(--qk-blue-light);
  color: var(--qk-blue);
}
.qk-account-shell .qk-avatar-edit-btn {
  background: var(--qk-gradient);
}

/* Status + vacation cards */
.qk-account-shell .qk-status-card {
  border-radius: var(--qk-radius-lg);
  border: 1px solid var(--qk-border);
}

/* Sticker pod accent */
.qk-account-shell .qk-sticker-section-pod--purple {
  background: var(--qk-blue-light);
  color: var(--qk-blue);
}

/* Dashboard loading + section spacing helpers */
#qkAssetGridLoading {
  color: var(--qk-muted);
  padding: 16px 0;
}
#qkAlertsLoading {
  color: var(--qk-muted);
  font-size: 14px;
}
.qk-dash-section-header--alerts {
  margin-top: 0;
}
.qk-promo-card--mt {
  margin-top: 24px;
}
#qkStickerFormWrap {
  display: none;
  margin-top: 40px;
}

/* ── Support Tab ──────────────────────────────────────────── */
.qk-support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.qk-support-card {
  padding: 1.5rem;
  background: var(--qk-bg-soft);
  border-radius: var(--qk-radius-lg);
  border: 1px solid var(--qk-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow var(--qk-transition-md), border-color var(--qk-transition-md);
}
.qk-support-card:hover {
  box-shadow: var(--qk-shadow);
  border-color: rgba(37,99,235,0.20);
}
.qk-support-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--qk-radius-lg);
  background: var(--qk-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qk-blue);
  flex-shrink: 0;
}
.qk-support-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--qk-primary);
  margin: 0;
}
.qk-support-card p {
  font-size: 0.875rem;
  color: var(--qk-muted);
  margin: 0;
  line-height: 1.6;
}
.qk-support-card a.qk-support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--qk-blue);
  text-decoration: none;
  margin-top: auto;
}
.qk-support-card a.qk-support-link:hover { text-decoration: underline; }
.qk-support-card a.qk-support-link svg { width: 14px; height: 14px; }

.qk-support-faq {
  background: var(--qk-bg-soft);
  border-radius: var(--qk-radius-lg);
  border: 1px solid var(--qk-border);
  overflow: hidden;
}
.qk-support-faq__item {
  border-bottom: 1px solid var(--qk-border);
}
.qk-support-faq__item:last-child { border-bottom: none; }
.qk-support-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--qk-primary);
  gap: 1rem;
  transition: background var(--qk-transition);
}
.qk-support-faq__q:hover { background: rgba(37,99,235,0.04); }
.qk-support-faq__q svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--qk-muted); transition: transform var(--qk-transition-md); }
.qk-support-faq__item.is-open .qk-support-faq__q svg { transform: rotate(180deg); }
.qk-support-faq__a {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.875rem;
  color: var(--qk-muted);
  line-height: 1.7;
}
.qk-support-faq__item.is-open .qk-support-faq__a { display: block; }

/* ============================================================
   ALERT HISTORY TAB
   ============================================================ */

.qk-alerts-page { display: flex; flex-direction: column; gap: 24px; }

/* Tab header (shared pattern) */
.qk-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.qk-tab-title {
  font-family: var(--qk-auth-font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--qk-auth-heading);
  margin: 0 0 4px;
}
.qk-tab-subtitle {
  font-size: 14px;
  color: var(--qk-auth-subtext);
  margin: 0;
}

/* Filter bar */
.qk-alerts-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid var(--qk-auth-border-inner);
  border-radius: 16px;
  padding: 20px 24px;
}
.qk-alerts-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qk-alerts-filter-group--grow { flex: 1; min-width: 180px; }
.qk-alerts-filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--qk-auth-subtext);
}
.qk-alerts-filter-input {
  height: 40px;
  padding: 0 14px;
  background: var(--qk-auth-card-outer);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  color: var(--qk-auth-heading);
  outline: none;
  transition: border-color 0.15s;
  min-width: 160px;
}
.qk-alerts-filter-input:focus { border-color: var(--qk-auth-purple); }
.qk-alerts-filter-actions { display: flex; align-items: center; gap: 8px; padding-bottom: 2px; }

/* Table card */
.qk-alerts-table-card {
  background: #ffffff;
  border: 1px solid var(--qk-auth-border-inner);
  border-radius: 16px;
  overflow: hidden;
}

/* Loading & empty */
.qk-alerts-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 24px;
  font-size: 14px;
  color: var(--qk-auth-subtext);
}
.qk-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--qk-auth-border-inner);
  border-top-color: var(--qk-auth-purple);
  border-radius: 50%;
  animation: qk-spin 0.7s linear infinite;
}
@keyframes qk-spin { to { transform: rotate(360deg); } }

.qk-alerts-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--qk-auth-subtext);
  font-size: 14px;
  text-align: center;
}
.qk-alerts-empty svg { opacity: 0.35; }

/* Table */
.qk-alerts-table-wrap { overflow-x: auto; }
.qk-alerts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.qk-alerts-table thead { background: var(--qk-auth-card-outer); }
.qk-alerts-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--qk-auth-subtext);
  white-space: nowrap;
}
.qk-alerts-table td {
  padding: 14px 16px;
  color: var(--qk-auth-heading);
  border-bottom: 1px solid var(--qk-auth-border-inner);
  vertical-align: top;
}
.qk-alerts-table tbody tr:last-child td { border-bottom: none; }
.qk-alerts-table tbody tr:hover td { background: rgba(106,28,246,0.02); }

/* Alert type badges */
.qk-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}
.qk-alert-badge--call      { background: rgba(194,208,255,0.30); color: #0040A3; }
.qk-alert-badge--whatsapp  { background: rgba(34,197,94,0.15);   color: #15803D; }
.qk-alert-badge--sms       { background: rgba(172,142,255,0.20); color: #6A1CF6; }
.qk-alert-badge--email     { background: rgba(245,166,35,0.15);  color: #92400E; }
.qk-alert-badge--push      { background: rgba(99,102,241,0.15);  color: #4338CA; }
.qk-alert-badge--support   { background: rgba(100,116,139,0.15); color: #475569; }
.qk-alert-badge--default   { background: var(--qk-auth-card-outer); color: var(--qk-auth-subtext); }

/* Delivery status */
.qk-delivery-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.qk-delivery-badge--delivered { background: #DCFCE7; color: #15803D; }
.qk-delivery-badge--pending   { background: rgba(245,166,35,0.15); color: #92400E; }
.qk-delivery-badge--failed    { background: #FEE2E2; color: #DC2626; }
.qk-delivery-badge--blocked   { background: rgba(100,116,139,0.15); color: #475569; }

/* Message cell — wraps across multiple lines */
.qk-alerts-table .qk-alert-msg {
  display: block;
  max-width: 280px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
  color: var(--qk-auth-subtext);
  font-size: 13px;
}
.qk-alert-date { font-size: 13px; }
.qk-alert-date small { display: block; color: var(--qk-auth-muted); font-size: 11px; }

/* Clickable alert rows */
.qk-alert-row { cursor: pointer; }
.qk-alert-row:hover td { background: rgba(106,28,246,0.04) !important; }

/* ── Alert Detail Modal ── */
.qk-ad-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: background .2s;
}
.qk-ad-overlay--visible { background: rgba(0,0,0,0.52); }
.qk-ad-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
}
.qk-ad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--qk-auth-border-inner);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-radius: 18px 18px 0 0;
}
.qk-ad-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--qk-auth-heading);
}
.qk-ad-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--qk-auth-subtext);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1;
}
.qk-ad-close:hover { background: var(--qk-auth-card-outer); }
.qk-ad-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 0; }
.qk-ad-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--qk-auth-border-inner);
}
.qk-ad-row:last-child { border-bottom: none; }
.qk-ad-row--full { flex-direction: column; gap: 6px; }
.qk-ad-label {
  flex: 0 0 0px;
  min-width: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--qk-auth-subtext);
  padding-top: 1px;
}
.qk-ad-value {
  flex: 1;
  font-size: 13.5px;
  color: var(--qk-auth-heading);
  word-break: break-word;
}
.qk-ad-message {
  font-size: 13.5px;
  color: var(--qk-auth-heading);
  background: var(--qk-auth-card-outer);
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.6;
  word-break: break-word;
}

/* Sub-tab navigation */
.qk-alerts-subtabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--qk-auth-border-inner);
  padding-bottom: 0;
}
.qk-alerts-subtab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--qk-auth-subtext);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  border-radius: 0;
  transition: color .15s, border-color .15s;
  font-family: inherit;
}
.qk-alerts-subtab:hover { color: var(--qk-auth-heading); }
.qk-alerts-subtab--active {
  color: var(--qk-auth-purple);
  border-bottom-color: var(--qk-auth-purple);
}

/* Pagination */
.qk-alerts-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--qk-auth-border-inner);
}
.qk-alerts-page-info { font-size: 13px; color: var(--qk-auth-subtext); }

/* Small button modifier */
.qk-btn--sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 9999px;
  gap: 6px;
}
.qk-btn.qk-btn--sm { display: inline-flex; align-items: center; }

/* ============================================================
   RESPONSIVE — MOBILE (≤ 767px)
   ============================================================ */

@media (max-width: 767px) {
  /* Auth */
  .qk-auth-page { padding: 24px 16px; align-items: flex-start; }
  .qk-auth-inner { padding: 32px 24px; }
  .qk-auth-inner--split { flex-direction: column; }
  .qk-auth-brand-panel {
    width: 100%;
    padding: 32px 24px;
    border-radius: 0;
  }
  .qk-auth-brand-headline { font-size: 24px; line-height: 32px; margin-top: 16px; }
  .qk-auth-brand-body { font-size: 14px; }
  .qk-auth-feature-card { margin-top: 24px; }
  .qk-auth-form-panel { padding: 32px 24px; }

  /* Topbar */
  .qk-topbar__nav { display: none; }
  .qk-topbar__hamburger { display: flex; }

  /* Sidebar — bottom tab bar */
  .qk-account-sidebar {
    width: 100%;
    min-height: auto;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    top: auto;
    z-index: 90;
    flex-direction: row;
    padding: 8px 0;
    background: #ffffff;
    box-shadow: 0 -1px 0 rgba(0,0,0,0.08);
    border-radius: 0;
    justify-content: space-around;
    align-items: center;
  }
  .qk-sidebar-section-label { display: none; }
  .qk-sidebar-nav {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    gap: 0;
  }
  .qk-sidebar-nav__item {
    flex-direction: column;
    gap: 4px;
    padding: 6px 8px;
    font-size: 10px;
    border-radius: 8px;
    flex: 1;
    justify-content: center;
    align-items: center;
  }
  .qk-sidebar-footer { display: none; }

  .qk-account-main { padding: 16px 16px 80px; }

  /* Dashboard */
  .qk-dash-header { flex-direction: column; align-items: flex-start; }
  .qk-dash-header__actions { flex-direction: column; width: 100%; }
  .qk-dash-header__actions .qk-btn--primary,
  .qk-dash-header__actions .qk-btn--outline { width: 100%; justify-content: center; }
  .qk-dash-content-row { flex-direction: column; }
  .qk-dash-right { width: 100%; }
  .qk-assets-grid { grid-template-columns: 1fr; }
  .qk-alerts-filter-bar { flex-direction: column; align-items: stretch; }
  .qk-alerts-filter-group--grow { min-width: unset; }
  .qk-alerts-filter-input { min-width: unset; width: 100%; }
  .qk-alerts-filter-actions { justify-content: flex-end; }
  .qk-alerts-table th:nth-child(5),
  .qk-alerts-table td:nth-child(5) { display: none; } /* hide Reason on mobile */

  /* Profile */
  .qk-profile-header { flex-direction: column; align-items: flex-start; }
  .qk-profile-avatar-section { flex-direction: column; align-items: flex-start; }
  .qk-profile-fields { grid-template-columns: 1fr; }

  /* Orders upgrade card */
  .qk-plan-upgrade-card { flex-direction: column; align-items: flex-start; }

  /* Support grid */
  .qk-support-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   UTILITY CLASSES — replaces inline styles
   ============================================================ */

/* Auth form: full-width submit button */
.qk-auth-form .qk-btn {
  width: 100%;
  justify-content: center;
}

/* Disabled social login button */
.qk-auth-social[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

/* Hidden file input (avatar upload) */
#qkAvatarFile {
  display: none;
}

/* Sidebar logout item */
.qk-sidebar-nav__item--logout,
.qk-sidebar-nav__item--logout .qk-sidebar-nav__icon {
  color: var(--qk-danger-red);
}

/* Mobile sidebar overlay — hidden by default, shown by JS */
.qk-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 89;
}

/* Legacy profile field height variants — no longer used */

/* Password section — extra top spacing */
.qk-profile-info-section--mt {
  margin-top: 32px;
}

/* Password form footer — extra top padding */
#qkPasswordForm .qk-profile-footer-actions {
  padding-top: 16px;
}

/* Orders: plan card header row */
.qk-orders-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.qk-orders-plan-header h2 {
  margin: 0 0 4px;
}
.qk-orders-plan-header p {
  font-size: 14px;
  color: var(--qk-auth-muted);
  margin: 0;
}

/* Orders: usage label above bar */
.qk-orders-usage-label {
  font-size: 13px;
  color: var(--qk-auth-subtext);
  margin-bottom: 6px;
}

/* Upgrade card inner copy */
.qk-plan-upgrade-card h3 {
  font-family: var(--qk-auth-font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--qk-auth-purple);
  margin: 0 0 8px;
}
.qk-plan-upgrade-card p {
  font-size: 14px;
  color: var(--qk-auth-subtext);
  margin: 0;
}

/* Order history header — top spacing */
.qk-dash-section-header--mt {
  margin-top: 32px;
}

/* ============================================================
   PLAN USAGE WIDGET (Dashboard tab)
   ============================================================ */

.qk-usage-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid var(--qk-auth-border-inner);
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qk-usage-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.qk-usage-card__title {
  font-family: var(--qk-auth-font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--qk-auth-heading);
  margin: 0;
}
.qk-usage-card__plan-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--qk-auth-purple-light);
  color: var(--qk-auth-purple);
  vertical-align: middle;
}
.qk-usage-card__upgrade-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--qk-auth-purple);
  text-decoration: none;
}
.qk-usage-card__upgrade-link:hover { text-decoration: underline; }

.qk-usage-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qk-usage-row__labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.qk-usage-row__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--qk-auth-subtext);
}
.qk-usage-row__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--qk-auth-heading);
}
.qk-usage-row__value--unlimited { color: #16A34A; }
.qk-usage-row__value--over      { color: #DC2626; }

.qk-usage-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: #E1E2E6;
  overflow: hidden;
}
.qk-usage-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--qk-auth-purple);
  transition: width 0.3s;
}
.qk-usage-bar-fill.qk-usage-bar--warn { background: #F59E0B; }
.qk-usage-bar-fill.qk-usage-bar--over { background: #DC2626; }

.qk-usage-bar-msg {
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
}
.qk-usage-bar-msg a { font-weight: 600; text-decoration: underline; }
.qk-usage-bar-msg--warn { color: #92400E; }
.qk-usage-bar-msg--over { color: #DC2626; }
.qk-usage-bar-msg--over a { color: #DC2626; }

.qk-usage-divider {
  border: none;
  border-top: 1px solid var(--qk-auth-border-inner);
  margin: 4px 0;
}

/* Profiles: loading placeholder */
.qk-profiles-loading p {
  color: var(--qk-auth-muted);
  padding: 16px 0;
}

/* Profile form wrap — hidden by default, shown by JS */
#qkProfileFormWrap {
  display: none;
  margin-top: 24px;
}

/* Section heading with top margin */
.qk-section-heading--mt {
  margin-top: 24px;
}

/* MAX 3 badge inside section heading */
.qk-max-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--qk-auth-muted);
  letter-spacing: 1.2px;
}

/* Sticker form: hint text below activation input */
.qk-sticker-hint {
  font-size: 12px;
  color: var(--qk-auth-muted);
  margin: 0;
}

/* Section head variants */
.qk-sticker-section-head--between {
  justify-content: space-between;
}
.qk-sticker-section-head--between .qk-sticker-head-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Vacation dates block — hidden by default, shown by JS */
#qkVacationDates {
  display: none;
}

/* Second date field spacing */
.qk-date-field--mt {
  margin-top: 12px;
}

/* Vacation message wrapper */
.qk-vacation-msg {
  margin-top: 16px;
}
.qk-vacation-msg label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--qk-auth-muted);
  display: block;
  margin-bottom: 6px;
}
.qk-vacation-msg input {
  width: 100%;
  background: var(--qk-input-bg-form);
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--qk-auth-font-body);
  font-size: 14px;
  color: var(--qk-auth-heading);
}

/* Sticker form status — top spacing */
.qk-form-status--mt {
  margin-top: 24px;
}

/* ============================================================
   MY STICKERS TAB
   ============================================================ */

/* Filter bar */
.qk-stickers-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.qk-stickers-filter-bar__title h2 {
  font-family: var(--qk-auth-font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--qk-auth-heading);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.qk-stickers-filter-bar__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Status dropdown */
.qk-stickers-select {
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--qk-auth-border-inner);
  border-radius: 10px;
  background: #f2f7ff;
  font-family: var(--qk-auth-font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--qk-auth-heading);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}
.qk-stickers-select:focus { border-color: var(--qk-auth-purple); }

/* Search input */
.qk-stickers-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.qk-stickers-search-icon {
  position: absolute;
  left: 12px;
  color: var(--qk-auth-muted);
  pointer-events: none;
}
.qk-stickers-search {
  height: 40px;
  padding: 0 12px 0 34px;
  border: 1.5px solid var(--qk-auth-border-inner);
  border-radius: 10px;
  background: #f2f7ff;
  font-family: var(--qk-auth-font-body);
  font-size: 13px;
  color: var(--qk-auth-heading);
  width: 220px;
  outline: none;
  transition: border-color 0.15s, width 0.2s;
}
.qk-stickers-search:focus {
  border-color: var(--qk-auth-purple);
  width: 260px;
}
.qk-stickers-search::-webkit-search-cancel-button { display: none; }

/* Clear button */
.qk-stickers-clear-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--qk-auth-border-inner);
  border-radius: 10px;
  background: #f2f7ff;
  font-family: var(--qk-auth-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--qk-auth-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.qk-stickers-clear-btn:hover {
  border-color: var(--qk-auth-purple);
  color: var(--qk-auth-purple);
}

/* Status badge on sticker cards (in My Stickers tab) */
.qk-stk-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}
.qk-stk-badge--active     { background: #DCFCE7; color: #15803D; }
.qk-stk-badge--inactive   { background: #F3F4F6; color: #6B7280; }
.qk-stk-badge--incomplete { background: #FEF3C7; color: #B45309; }
.qk-stk-badge--vacation   { background: #DBEAFE; color: #1D4ED8; }
.qk-stk-badge--lost       { background: #FEE2E2; color: #B91C1C; }
.qk-stk-badge--cancelled  { background: #F3F4F6; color: #374151; }
.qk-stk-badge--unassigned { background: #F3F4F6; color: #9CA3AF; }

/* Responsive */
@media (max-width: 600px) {
  .qk-stickers-filter-bar { flex-direction: column; align-items: flex-start; }
  .qk-stickers-filter-bar__controls { width: 100%; }
  .qk-stickers-search, .qk-stickers-search:focus { width: 100%; }
  .qk-stickers-select { width: 100%; }
}

/* ============================================================
   PENDING APPROVAL SCREEN
   ============================================================ */

/* Centred variant of auth inner card */
.qk-auth-inner--centered {
  align-items: center;
  text-align: center;
}

/* Danger icon pod (rejected state) */
.qk-auth-icon-pod--danger {
  background: rgba(180, 19, 64, 0.10);
  color: var(--qk-danger-red);
}

/* Link-styled submit button (wraps an <a> tag) */
.qk-auth-submit--link {
  display: block;
  width: 100%;
}

/* ── Approval progress steps ─────────────────────────────── */
.qk-approval-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 320px;
}

.qk-approval-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: 88px;
}

.qk-approval-step__icon {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qk-approval-step span {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

/* Done — green */
.qk-approval-step--done .qk-approval-step__icon {
  background: #F0FDF4;
  color: #15803D;
  border: 1.5px solid #BBF7D0;
}
.qk-approval-step--done span { color: #15803D; }

/* Waiting — purple (current step) */
.qk-approval-step--waiting .qk-approval-step__icon {
  background: var(--qk-auth-purple-light);
  color: var(--qk-auth-purple);
  border: 1.5px solid rgba(106, 28, 246, 0.25);
}
.qk-approval-step--waiting span { color: var(--qk-auth-purple); font-weight: 700; }

/* Inactive — grey */
.qk-approval-step--inactive .qk-approval-step__icon {
  background: #F0F0F3;
  color: var(--qk-auth-muted);
  border: 1.5px solid #E1E2E6;
}
.qk-approval-step--inactive span { color: var(--qk-auth-muted); }

/* Connector line between steps */
.qk-approval-step__connector {
  flex: 1;
  height: 1.5px;
  background: #E1E2E6;
  margin-top: 20px;
  min-width: 8px;
}

/* Hint text below steps */
.qk-approval-hint {
  font-size: 13px;
  color: var(--qk-auth-muted);
  line-height: 1.6;
  margin: 0;
  text-align: center;
  max-width: 340px;
}
