:root {
  --page: #fff;
  --panel: #f7f7fa;
  --ink: #18181d;
  --subtle: #656570;
  --edge: #e9e9ef;
  --purple: #6848ed;
  --glass: rgba(255, 255, 255, 0.88);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #101115;
  --panel: #191a20;
  --ink: #eeedf2;
  --subtle: #b4b1bf;
  --edge: #2d2e37;
  --purple: #b29bff;
  --glass: rgba(16, 17, 21, 0.9);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
  max-width: 100vw;
}
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  max-width: 100vw;
  background: var(--page);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.25s,
    color 0.25s;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
header img {
  width: 30px;
  height: 30px;
}
.brand-accent {
  color: var(--purple);
}
.brand-dark {
  display: none;
}
:root[data-theme="dark"] .brand-dark {
  display: block;
}
:root[data-theme="dark"] .brand-light {
  display: none;
}
.push {
  margin-left: auto;
}
a {
  color: var(--purple);
}
main {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  min-height: calc(100dvh - 160px);
}
footer {
  max-width: 1220px;
  margin: 0 auto;
  padding: 22px 24px 28px;
  border-top: 1px solid var(--edge);
  font-size: 11px;
  line-height: 1.7;
  color: var(--subtle);
}
footer a {
  color: inherit;
  text-decoration: none;
}
footer a:hover {
  color: var(--purple);
}
.muted,
small {
  color: var(--subtle);
}
button,
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--edge);
  border-radius: 11px;
}
button {
  cursor: pointer;
  min-height: 38px;
  transition:
    background-color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
button:hover {
  border-color: var(--purple);
}
button.primary {
  background: var(--ink);
  color: var(--page);
  border-color: var(--ink);
}
button:disabled,
.plan-action:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: var(--subtle);
  background: var(--panel);
  border-color: var(--edge);
}
input,
select {
  min-height: 44px;
}
input::placeholder,
textarea::placeholder {
  color: var(--subtle);
  opacity: 0.75;
}
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}
.card,
section:not(.pricing-overview),
dialog {
  color: var(--ink);
  background: var(--page);
  border-color: var(--edge);
  border-radius: 18px;
  box-shadow: none;
}
dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--edge);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(21, 18, 34, 0.18);
  width: min(680px, 94vw);
  max-height: 90vh;
  padding: 28px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}
dialog * {
  box-sizing: border-box;
  max-width: 100%;
}
:root[data-theme="dark"] dialog {
  background: #181921;
  border-color: #2e303c;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}
dialog::backdrop {
  background: rgba(16, 17, 23, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
dialog[open] {
  animation: modal-enter 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.dialog-dismiss {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--subtle);
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  z-index: 10;
}
.dialog-dismiss:hover {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--edge);
}
dialog.dialog-compact,
dialog.auth-dialog {
  width: min(440px, 94vw);
  padding: 32px 28px 26px;
}
dialog.no-default-actions .actions,
dialog.auth-dialog .actions,
dialog.dialog-compact .actions {
  display: none !important;
}

/* Auth modal and dialog component styling */
.modal-header {
  margin-bottom: 20px;
}
.modal-header.text-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--purple);
  background: color-mix(in srgb, var(--purple) 10%, var(--page));
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  width: fit-content;
}
.modal-title {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.3;
}
.modal-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--subtle);
  margin: 0;
}
.dialog-alert {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dialog-alert.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}
:root[data-theme="dark"] .dialog-alert.error {
  background: #2b1717;
  color: #f87171;
  border-color: #481d1d;
}
.dialog-alert.success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #dcfce7;
}
:root[data-theme="dark"] .dialog-alert.success {
  background: #132719;
  color: #4ade80;
  border-color: #1c3c26;
}
.auth-modal-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.field-toggle-btn {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 11px;
  color: var(--purple);
  cursor: pointer;
  min-height: unset;
}
.field-toggle-btn:hover {
  text-decoration: underline;
}
.auth-modal-form input {
  width: 100%;
  min-height: 44px;
  border-radius: 11px;
  padding: 10px 14px;
  font-size: 13px;
  border: 1px solid var(--edge);
  background: var(--page);
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.auth-modal-form input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 16%, transparent);
}
.field-hint {
  font-size: 11px;
  color: var(--subtle);
  line-height: 1.4;
}
.dialog-submit-btn {
  width: 100%;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 11px;
  margin-top: 4px;
  cursor: pointer;
}
.verify-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--purple) 12%, var(--page));
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.verify-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 30px;
  background: var(--panel);
  border: 1px solid var(--edge);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 10px;
}
.verify-email-pill button {
  background: transparent;
  border: 0;
  color: var(--purple);
  font-size: 11px;
  padding: 0;
  min-height: unset;
  text-decoration: underline;
  cursor: pointer;
}
.auth-code-input {
  text-align: center !important;
  font-family: monospace, ui-monospace, Consolas, sans-serif !important;
  font-size: 24px !important;
  letter-spacing: 8px !important;
  font-weight: 700 !important;
  min-height: 52px !important;
}
.dialog-form-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--edge);
  text-align: center;
  font-size: 12px;
  color: var(--subtle);
}
.dialog-link-btn {
  background: transparent;
  border: 0;
  color: var(--purple);
  font-size: 12px;
  font-weight: 500;
  padding: 2px 4px;
  min-height: unset;
  cursor: pointer;
}
.dialog-link-btn:hover:not(:disabled) {
  text-decoration: underline;
}
.dialog-link-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: var(--subtle);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--edge);
}
.auth-divider span {
  padding: 0 12px;
}
.google-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  background: var(--panel, #ffffff);
  color: var(--ink, #1f1f1f);
  border: 1px solid var(--edge, #dadce0);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.google-auth-btn:hover {
  background: var(--surface, #f8fafd);
  border-color: var(--purple, #7c3aed);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.mfa-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--surface, #f8fafd);
  border-radius: 12px;
  border: 1px solid var(--edge);
  margin: 12px 0 16px;
}
.mfa-qr-img {
  width: 180px;
  height: 180px;
  background: #ffffff;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  object-fit: contain;
}
.mfa-secret-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.mfa-secret-label {
  font-size: 12px;
  color: var(--subtle);
}
.mfa-secret-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel, #ffffff);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px dashed var(--edge);
}
.mfa-secret-code {
  font-family: monospace, ui-monospace, Consolas, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--purple, #7c3aed);
  user-select: all;
}
pre {
  background: var(--panel);
  color: var(--ink);
}
td,
th {
  border-color: var(--edge);
}
th {
  color: var(--subtle);
}
.badge,
.plan-badge {
  color: var(--purple);
  background: color-mix(in srgb, var(--purple) 9%, var(--page));
}
#notice {
  display: none;
  margin: 0 auto 24px;
  max-width: 800px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
}
#notice.notice-alert {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  animation: slideDownNotice 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDownNotice {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#notice.notice-alert.error {
  background: #fff1f2;
  border: 1.5px solid #fecdd3;
  border-left: 5px solid #e11d48;
  color: #9f1239;
}
#notice.notice-alert.success {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-left: 5px solid #16a34a;
  color: #14532d;
}
#notice.notice-alert.info {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-left: 5px solid #2563eb;
  color: #1e40af;
}
[data-theme="dark"] #notice.notice-alert.error {
  background: #251216;
  border: 1.5px solid #5c1d28;
  border-left: 5px solid #f43f5e;
  color: #fecdd3;
  box-shadow: 0 8px 28px rgba(225, 29, 72, 0.22);
}
[data-theme="dark"] #notice.notice-alert.success {
  background: #112316;
  border: 1.5px solid #166534;
  border-left: 5px solid #22c55e;
  color: #bbf7d0;
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.2);
}
[data-theme="dark"] #notice.notice-alert.info {
  background: #121e33;
  border: 1.5px solid #1d3557;
  border-left: 5px solid #3b82f6;
  color: #bfdbfe;
}
.notice-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notice-alert.error .notice-icon-wrap {
  color: #dc2626;
}
.notice-alert.success .notice-icon-wrap {
  color: #16a34a;
}
.notice-alert.info .notice-icon-wrap {
  color: #2563eb;
}
.notice-body-text {
  flex: 1;
  word-break: break-word;
}
.notice-dismiss-btn {
  background: transparent !important;
  border: 0 !important;
  padding: 4px !important;
  min-height: unset !important;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}
.notice-dismiss-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08) !important;
}

/* Auth card inline alert styling */
.auth-inline-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13.5px;
  line-height: 1.5;
  animation: slideDownNotice 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-inline-alert.error {
  background: #fff1f2;
  border: 1.5px solid #fecdd3;
  color: #9f1239;
}
.auth-inline-alert.success {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  color: #14532d;
}
.auth-inline-alert.info {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1e40af;
}
[data-theme="dark"] .auth-inline-alert.error {
  background: #251216;
  border: 1.5px solid #5c1d28;
  color: #fecdd3;
}
[data-theme="dark"] .auth-inline-alert.success {
  background: #112316;
  border: 1.5px solid #166534;
  color: #bbf7d0;
}
[data-theme="dark"] .auth-inline-alert.info {
  background: #121e33;
  border: 1.5px solid #1d3557;
  color: #bfdbfe;
}
.auth-alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.auth-inline-alert.error .auth-alert-icon {
  color: #dc2626;
}
.auth-inline-alert.success .auth-alert-icon {
  color: #16a34a;
}
.auth-inline-alert.info .auth-alert-icon {
  color: #2563eb;
}
.auth-alert-text {
  flex: 1;
  word-break: break-word;
}
.auth-alert-text p {
  margin: 0;
  font-weight: 500;
}

/* Admin Dashboard & Management UI */
.admin-card-wrap {
  max-width: 1140px;
  margin: 0 auto 36px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.admin-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--edge);
}
.admin-top-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-top-title h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.admin-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 20px;
  background: color-mix(in srgb, var(--purple) 12%, var(--page));
  color: var(--purple);
  border: 1px solid color-mix(in srgb, var(--purple) 25%, transparent);
}
.admin-mfa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 20px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
[data-theme="dark"] .admin-mfa-badge {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.3);
}
.admin-tabs-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}
.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  background: var(--surface) !important;
  color: var(--subtle) !important;
  border: 1px solid var(--edge) !important;
  white-space: nowrap;
  min-height: unset !important;
  cursor: pointer;
  transition: all 0.18s ease;
}
.admin-tab-btn:hover {
  color: var(--ink) !important;
  border-color: var(--purple) !important;
}
.admin-tab-btn.active {
  background: var(--purple) !important;
  color: #ffffff !important;
  border-color: var(--purple) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--purple) 35%, transparent);
}
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.admin-kpi-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--purple);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.admin-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.admin-kpi-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-kpi-icon-wrap.blue {
  background: #eff6ff;
  color: #2563eb;
}
.admin-kpi-icon-wrap.purple {
  background: #f5f3ff;
  color: #7c3aed;
}
.admin-kpi-icon-wrap.cyan {
  background: #ecfeff;
  color: #0891b2;
}
.admin-kpi-icon-wrap.amber {
  background: #fffbeb;
  color: #d97706;
}
.admin-kpi-icon-wrap.emerald {
  background: #f0fdf4;
  color: #16a34a;
}
.admin-kpi-icon-wrap.rose {
  background: #fff1f2;
  color: #e11d48;
}

[data-theme="dark"] .admin-kpi-icon-wrap.blue {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}
[data-theme="dark"] .admin-kpi-icon-wrap.purple {
  background: rgba(124, 58, 237, 0.18);
  color: #c4b5fd;
}
[data-theme="dark"] .admin-kpi-icon-wrap.cyan {
  background: rgba(8, 145, 178, 0.18);
  color: #67e8f9;
}
[data-theme="dark"] .admin-kpi-icon-wrap.amber {
  background: rgba(217, 119, 6, 0.18);
  color: #fde68a;
}
[data-theme="dark"] .admin-kpi-icon-wrap.emerald {
  background: rgba(22, 163, 74, 0.18);
  color: #86efac;
}
[data-theme="dark"] .admin-kpi-icon-wrap.rose {
  background: rgba(225, 29, 72, 0.18);
  color: #fda4af;
}

.admin-kpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--edge) 60%, transparent);
  font-size: 11.5px;
  color: var(--subtle);
}
.admin-kpi-card:hover .admin-kpi-footer {
  color: var(--purple);
}
.admin-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--edge);
}
.admin-quick-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--subtle);
  margin-right: 8px;
}
.admin-action-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px !important;
  font-size: 12.5px !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  min-height: unset !important;
  cursor: pointer;
  transition: all 0.15s ease;
}
.admin-kpi-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--subtle);
}
.admin-kpi-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  font-family: monospace, ui-monospace, sans-serif;
}
.admin-table-container {
  overflow-x: auto;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel);
}
.admin-table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.admin-table-container th {
  background: var(--surface);
  color: var(--subtle);
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--edge);
  white-space: nowrap;
}
.admin-table-container td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--edge);
  color: var(--ink);
  vertical-align: middle;
}
.admin-table-container tr:last-child td {
  border-bottom: none;
}
.admin-table-container tr:hover td {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
}
.status-badge.active,
.status-badge.paid,
.status-badge.completed {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.status-badge.pending {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.status-badge.revoked,
.status-badge.expired,
.status-badge.failed {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
[data-theme="dark"] .status-badge.active,
[data-theme="dark"] .status-badge.paid,
[data-theme="dark"] .status-badge.completed {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.3);
}
[data-theme="dark"] .status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.3);
}
[data-theme="dark"] .status-badge.revoked,
[data-theme="dark"] .status-badge.expired,
[data-theme="dark"] .status-badge.failed {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}
.admin-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-mfa-required-card {
  max-width: 540px;
  margin: 30px auto;
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.admin-mfa-required-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: color-mix(in srgb, var(--purple) 12%, var(--page));
  color: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pricing-overview {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}
.pricing-intro {
  max-width: 740px;
  text-align: center;
  margin: 12px auto 34px;
  padding: 0;
  position: relative;
}
.pricing-intro::after {
  content: none;
}
.pricing-intro h1 {
  font-size: clamp(29px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -1.5px;
  text-wrap: balance;
  margin: 0 0 14px;
  color: var(--ink);
}
.pricing-intro p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
  color: var(--subtle);
}
.catalog-status {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 22px;
  color: var(--subtle);
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--edge);
  border-radius: 20px;
  padding: 24px 20px 20px;
  background: var(--page);
  box-shadow: 0 3px 18px #15122203;
  transition:
    transform 0.22s,
    border-color 0.22s,
    box-shadow 0.22s;
}
.pricing-card.featured {
  border-color: color-mix(in srgb, var(--purple) 40%, var(--edge));
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--purple) 5%, var(--page)),
    var(--page) 80%
  );
}
.pricing-card.owned {
  border-color: var(--purple);
}
@media (hover: hover) {
  .pricing-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--purple) 65%, var(--edge));
    box-shadow: 0 15px 32px #5430b90c;
  }
}
.plan-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plan-heading h2 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.plan-badge {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-description {
  font-size: 12px;
  min-height: 20px;
  line-height: 1.5;
  color: var(--subtle);
  margin: 9px 0 22px;
}
.plan-price {
  margin: 0 0 20px;
}
.plan-price strong {
  display: block;
  color: var(--ink);
  font-size: 29px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plan-price span {
  display: block;
  color: var(--subtle);
  font-size: 11px;
  margin-top: 8px;
  line-height: 1.5;
}
.plan-action {
  width: 100%;
  min-height: 42px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
}
.plan-action.primary:not(:disabled) {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.plan-benefits {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 20px 0 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--edge);
}
.plan-benefits li {
  display: block;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.plan-benefits li:first-child {
  font-weight: 600;
}
.plan-footnote {
  margin: auto 0 0;
  padding-top: 25px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--subtle);
}
.pricing-terms:empty {
  display: none;
}
.account-menu {
  position: relative;
  flex: none;
}
.account-menu > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--edge);
  background: var(--page);
  border-radius: 11px;
  font-size: 12px;
  user-select: none;
  color: var(--ink);
  transition: all 0.18s ease;
}
.account-menu > summary::-webkit-details-marker,
.account-menu > summary::marker {
  display: none;
}
.account-menu > summary::after {
  content: none;
}
.account-menu[open] > summary {
  border-color: var(--purple);
  background: color-mix(in srgb, var(--purple) 8%, var(--page));
  color: var(--purple);
}
.account-menu > summary:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: color-mix(in srgb, var(--purple) 6%, var(--page));
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 242px;
  padding: 8px;
  background: var(--page);
  border: 1px solid var(--edge);
  border-radius: 15px;
  box-shadow: 0 16px 48px #15122212;
  z-index: 50;
}
.account-email {
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.5;
  margin: 6px 9px 7px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--edge);
  overflow-wrap: anywhere;
}
.account-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  min-height: 39px;
  font-size: 12px;
  border-radius: 8px;
}
.account-dropdown button.nested {
  padding-left: 20px;
  color: var(--subtle);
}
.account-dropdown button.nested::before {
  content: none;
}
.account-dropdown button:hover,
.account-dropdown button[aria-current="page"] {
  background: var(--panel);
  color: var(--purple);
}
.account-dropdown button.danger {
  color: #b42318;
  border-top: 1px solid var(--edge);
  margin-top: 5px;
  border-radius: 0;
}
.icon-btn {
  width: auto;
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--edge);
  background: var(--page);
  border-radius: 11px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  flex: none;
}
.icon-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: color-mix(in srgb, var(--purple) 6%, var(--page));
}
.icon-btn:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
#theme-toggle {
  width: auto;
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
}
.theme-icon-sun {
  display: none;
}
.theme-icon-moon {
  display: block;
}
:root[data-theme="dark"] .theme-icon-sun {
  display: block;
}
:root[data-theme="dark"] .theme-icon-moon {
  display: none;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 32px auto 40px;
  padding: 32px !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 48px #15122205 !important;
}
.auth-heading {
  margin-bottom: 25px;
}
.auth-brand-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.4px;
}
.auth-heading h1 {
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: -0.7px;
  margin: 10px 0;
}
.auth-heading p {
  font-size: 12px;
  margin: 0;
  color: var(--subtle);
}
.auth-card form {
  max-width: none;
}
.auth-card label {
  font-size: 12px;
  gap: 8px;
  margin: 16px 0;
}
.auth-card input {
  min-height: 46px;
}
.auth-options {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: -4px 0 18px;
}
.text-button {
  background: transparent;
  border: 0;
  padding: 4px 0;
  min-height: 26px;
  color: var(--purple);
  font-size: 11px;
}
.auth-submit {
  width: 100%;
  min-height: 44px;
}
.auth-signup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 21px;
  font-size: 12px;
  color: var(--subtle);
}
.auth-signup button {
  border: 0;
  padding: 6px;
  background: transparent;
  color: var(--purple);
}
.auth-privacy:empty {
  display: none;
}
.auth-privacy {
  font-size: 11px;
  color: var(--subtle);
  margin: 20px 0 0;
}
.page-error {
  max-width: 520px;
  margin: 50px auto;
  padding: 38px 28px !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 20px !important;
  background: var(--page);
  border: 1px solid var(--edge);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
:root[data-theme="dark"] .page-error {
  background: #181921;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.3);
}
.page-error-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #fff1f2;
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
:root[data-theme="dark"] .page-error-icon {
  background: #251216;
  color: #fb7185;
}
.page-error h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}
.page-error .error-detail-text {
  font-size: 13px;
  color: var(--subtle);
  margin: 0 0 22px;
  line-height: 1.6;
  max-width: 440px;
}
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
  animation: shake-input 0.3s ease;
}
@keyframes shake-input {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-4px);
  }
  40%,
  80% {
    transform: translateX(4px);
  }
}
.tabs {
  background: var(--panel);
  border-color: var(--edge);
}
.tabs button {
  color: var(--subtle);
  background: transparent;
  border-color: transparent;
}
.tabs button[aria-current="page"] {
  background: var(--page);
  color: var(--ink);
}
@keyframes clean-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .pricing-intro,
  .auth-card {
    animation: clean-enter 0.45s backwards;
  }
  .pricing-card {
    animation: clean-enter 0.5s backwards;
  }
  .pricing-card:nth-child(2) {
    animation-delay: 55ms;
  }
  .pricing-card:nth-child(3) {
    animation-delay: 110ms;
  }
  .pricing-card:nth-child(4) {
    animation-delay: 165ms;
  }
  .account-menu[open] .account-dropdown {
    animation: clean-enter 0.15s backwards;
  }
}
@media (max-width: 1040px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-card {
    padding: 24px;
  }
  .pricing-intro {
    margin-top: 4px;
  }
}
@media (max-width: 560px) {
  header {
    height: 66px;
    padding: 10px 16px;
    gap: 9px;
  }
  .portal-brand {
    font-size: 18px;
    gap: 7px;
  }
  header img {
    width: 27px;
    height: 27px;
  }
  main {
    padding: 30px 16px 36px;
  }
  .pricing-intro {
    margin-bottom: 25px;
  }
  .pricing-intro h1 {
    font-size: 31px;
    letter-spacing: -1px;
  }
  .pricing-intro p {
    font-size: 12px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pricing-card {
    padding: 24px;
  }
  .account-menu > summary {
    padding: 0 9px;
    width: auto;
    height: 36px;
    min-height: 36px;
  }
  #theme-toggle {
    padding: 0 9px;
    width: auto;
    height: 36px;
    min-height: 36px;
  }
  .account-dropdown {
    width: min(242px, calc(100vw - 28px));
  }
  .auth-card {
    padding: 25px !important;
    margin: 10px auto;
  }
  .auth-heading h1 {
    font-size: 23px;
  }
  footer {
    padding: 20px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Account Hub & Clean Page Enhancements
   ========================================================================== */

.account-view-container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.account-subnav-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 14px;
  margin: 0 auto 24px;
  scrollbar-width: none;
}
.account-subnav-tabs::-webkit-scrollbar {
  display: none;
}
.account-subnav-tabs button {
  background: transparent;
  border: 0;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 500;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.account-subnav-tabs button:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--subtle) 12%, transparent);
}
.account-subnav-tabs button[aria-current="page"],
.account-subnav-tabs button.active-subnav-tab {
  background: var(--page);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
:root[data-theme="dark"] .account-subnav-tabs button[aria-current="page"],
:root[data-theme="dark"] .account-subnav-tabs button.active-subnav-tab {
  background: #252631;
  color: #f1f0f7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.account-panel {
  background: var(--page);
  border: 1px solid var(--edge);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s;
}
:root[data-theme="dark"] .account-panel {
  background: #181921;
  border-color: #2b2c37;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.panel-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--purple) 12%, var(--page));
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.panel-header-text {
  flex: 1;
  min-width: 0;
}
.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.panel-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.count-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--edge);
  color: var(--subtle);
  white-space: nowrap;
}
.panel-desc {
  font-size: 13px;
  color: var(--subtle);
  margin: 0;
  line-height: 1.5;
}

.panel-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--purple) 6%, var(--page));
  border: 1px solid color-mix(in srgb, var(--purple) 18%, transparent);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.panel-note svg {
  flex: none;
  margin-top: 2px;
  color: var(--purple);
}

.panel-empty-state {
  text-align: center;
  padding: 44px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.empty-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--edge);
  color: var(--subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.panel-empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}
.panel-empty-state p {
  font-size: 13px;
  color: var(--subtle);
  margin: 0 0 18px;
  max-width: 440px;
  line-height: 1.6;
}
.empty-action-btn {
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--edge);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.empty-action-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.status-pill.active,
.status-pill.fulfilled {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #dcfce7;
}
.status-pill.active .dot,
.status-pill.fulfilled .dot {
  background: #16a34a;
}
:root[data-theme="dark"] .status-pill.active,
:root[data-theme="dark"] .status-pill.fulfilled {
  background: #132719;
  color: #4ade80;
  border-color: #1c3c26;
}
:root[data-theme="dark"] .status-pill.active .dot,
:root[data-theme="dark"] .status-pill.fulfilled .dot {
  background: #4ade80;
}
.status-pill.pending {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fef3c7;
}
.status-pill.pending .dot {
  background: #d97706;
  animation: pulse-dot 1.5s infinite;
}
:root[data-theme="dark"] .status-pill.pending {
  background: #2b2111;
  color: #fbbf24;
  border-color: #453314;
}
:root[data-theme="dark"] .status-pill.pending .dot {
  background: #fbbf24;
}
.status-pill.revoked {
  background: var(--panel);
  color: var(--subtle);
  border: 1px solid var(--edge);
}
.status-pill.revoked .dot {
  background: var(--subtle);
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* Desktop Approval View */
.desktop-approval-panel {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.desktop-connect-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: none;
}
.desktop-connect-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  gap: 8px;
  margin: 0;
}
.desktop-code-input {
  font-family: monospace, ui-monospace, Consolas, sans-serif !important;
  font-size: 24px !important;
  letter-spacing: 6px !important;
  text-align: center !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  min-height: 52px !important;
  border-radius: 12px !important;
}
.desktop-submit-btn {
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 11px;
}

/* Device Cards */
.device-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.device-item-card {
  background: var(--page);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 18px 20px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
:root[data-theme="dark"] .device-item-card {
  background: #14151b;
}
.device-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.device-item-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.device-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--edge);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.device-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--ink);
}
.device-license {
  font-size: 11px;
  color: var(--subtle);
}
.device-license code {
  font-family: monospace;
  background: var(--panel);
  padding: 2px 5px;
  border-radius: 4px;
}
.device-specs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.spec-chip {
  font-size: 11px;
  color: var(--subtle);
  background: var(--panel);
  border: 1px solid var(--edge);
  padding: 4px 9px;
  border-radius: 8px;
  white-space: nowrap;
}
.device-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--edge);
  font-size: 11px;
  color: var(--subtle);
}
.danger-btn {
  background: transparent;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  min-height: 32px;
  cursor: pointer;
  transition: all 0.15s;
}
:root[data-theme="dark"] .danger-btn {
  border-color: #481d1d;
  color: #f87171;
}
.danger-btn:hover {
  background: #fef2f2;
  border-color: #dc2626;
}
:root[data-theme="dark"] .danger-btn:hover {
  background: #2b1717;
  border-color: #f87171;
}

/* Order Cards */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--page);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.18s ease;
}
:root[data-theme="dark"] .order-item-card {
  background: #14151b;
}
.order-item-card:hover {
  border-color: var(--purple);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}
:root[data-theme="dark"] .order-item-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.order-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.order-plan-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--purple) 12%, var(--page));
  color: var(--purple);
  letter-spacing: 0.5px;
  flex: none;
}
.order-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.order-id-label {
  font-size: 11px;
  color: var(--subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-id-label code {
  font-family: monospace;
}
.order-amount {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.order-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.order-cta-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9px;
  min-height: 34px;
}

/* Session Cards */
.session-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.session-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--page);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 16px 20px;
}
:root[data-theme="dark"] .session-item-card {
  background: #14151b;
}
.session-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.session-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--edge);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.session-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--ink);
}
.session-time {
  font-size: 11px;
  color: var(--subtle);
}
.session-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* License Cards & Claim */
.license-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.license-item-card {
  background: var(--page);
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 20px;
}
:root[data-theme="dark"] .license-item-card {
  background: #14151b;
}
.license-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.license-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.license-id-code {
  font-size: 11px;
  color: var(--subtle);
}
.license-id-code code {
  font-family: monospace;
  background: var(--panel);
  padding: 2px 6px;
  border-radius: 4px;
}
.license-key-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 11px;
  background: var(--panel);
  border: 1px solid var(--edge);
  margin-bottom: 12px;
}
.key-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--subtle);
}
.key-masked {
  font-family: monospace, ui-monospace, Consolas;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ink);
}
.license-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--subtle);
  margin-bottom: 10px;
}
.scope-tag {
  font-size: 11px;
  background: color-mix(in srgb, var(--purple) 10%, var(--page));
  color: var(--purple);
  padding: 3px 9px;
  border-radius: 12px;
  font-weight: 500;
}
.license-instruction {
  font-size: 11.5px;
  color: var(--subtle);
  line-height: 1.55;
  margin: 0 0 16px;
}
.license-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.claim-key-card {
  background: var(--page);
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 22px;
}
:root[data-theme="dark"] .claim-key-card {
  background: #181921;
}
.claim-key-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink);
}
.claim-key-card p {
  font-size: 12px;
  color: var(--subtle);
  margin: 0 0 14px;
}
.claim-form-row {
  display: flex;
  gap: 10px;
  max-width: none;
}
.claim-input {
  flex: 1;
  min-height: 40px;
  font-size: 13px;
  font-family: monospace;
}

/* Payment Modal / Order Dialog */
dialog.order-dialog {
  width: min(780px, 95vw);
  max-height: 90vh;
  padding: 24px 22px;
}
.order-checkout-container {
  display: flex;
  flex-direction: column;
}
.order-modal-header {
  margin-bottom: 16px;
}
.order-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.order-modal-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.order-id-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--subtle);
}
.order-id-bar code {
  font-family: monospace;
  background: var(--panel);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
}
.order-checkout-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 14px;
}
@media (max-width: 660px) {
  .order-checkout-grid {
    grid-template-columns: 1fr;
  }
}
.order-qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.qr-img-frame {
  padding: 10px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--edge);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 290px;
  box-sizing: border-box;
}
.qr-img-frame img.qr {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
}
.qr-caption {
  font-size: 11px;
  color: var(--subtle);
  line-height: 1.4;
  margin: 8px 0 0;
  max-width: 270px;
}
.order-details-panel {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.order-detail-card {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--edge);
}
.order-detail-card.highlight-card {
  background: color-mix(in srgb, var(--purple) 8%, var(--page));
  border-color: color-mix(in srgb, var(--purple) 25%, transparent);
}
:root[data-theme="dark"] .order-detail-card.highlight-card {
  background: #201b2f;
  border-color: #423265;
}
.order-detail-card.code-card {
  background: color-mix(in srgb, #f59e0b 8%, var(--page));
  border-color: color-mix(in srgb, #f59e0b 25%, transparent);
}
:root[data-theme="dark"] .order-detail-card.code-card {
  background: #271e12;
  border-color: #553e1a;
}
.detail-label {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--subtle);
  margin-bottom: 2px;
}
.detail-val-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.order-amount-big {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.4px;
}
.transfer-code-text {
  font-family: monospace, ui-monospace, Consolas;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
}
.detail-hint {
  font-size: 10px;
  color: var(--subtle);
  line-height: 1.35;
  margin-top: 2px;
  display: block;
}
.copy-btn {
  width: 26px;
  height: 26px;
  min-height: 26px;
  border-radius: 6px;
  border: 1px solid var(--edge);
  background: var(--page);
  color: var(--subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex: none;
  transition: all 0.15s ease;
}
.copy-btn:hover {
  color: var(--purple);
  border-color: var(--purple);
  background: var(--panel);
}
.copy-btn.copied {
  border-color: #16a34a;
  background: #f0fdf4;
}
:root[data-theme="dark"] .copy-btn.copied {
  background: #132719;
  border-color: #1c3c26;
}
.order-bank-rows {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--edge);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
}
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.info-label {
  color: var(--subtle);
}
.info-val {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.order-modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}
.order-check-btn {
  flex: 1;
  min-height: 40px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 10px;
}
.order-close-btn {
  padding: 0 16px;
  min-height: 40px;
  font-size: 12.5px;
  border-radius: 10px;
}
.order-policies-details {
  margin-top: 16px;
  border-top: 1px solid var(--edge);
  padding-top: 12px;
  font-size: 12px;
}
.order-policies-details summary {
  cursor: pointer;
  color: var(--subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  padding: 4px 0;
  font-size: 11.5px;
  font-weight: 500;
}
.order-policies-details summary:hover {
  color: var(--ink);
}
.order-policies-details[open] summary svg.chevron {
  transform: rotate(180deg);
}
svg.chevron {
  transition: transform 0.2s ease;
}
.order-policies-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--subtle);
  font-size: 11.5px;
  line-height: 1.65;
}
.order-policies-list li {
  margin-bottom: 6px;
}
.order-fulfilled-banner {
  padding: 24px 20px;
  border-radius: 16px;
  background: color-mix(in srgb, #16a34a 8%, var(--page));
  border: 1px solid color-mix(in srgb, #16a34a 25%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 20px;
}
.fulfilled-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
}
:root[data-theme="dark"] .fulfilled-icon-wrap {
  background: #132719;
  color: #4ade80;
}
.order-fulfilled-banner h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.order-fulfilled-banner p {
  font-size: 13px;
  color: var(--subtle);
  margin: 0;
  max-width: 480px;
  line-height: 1.6;
}


/* ==========================================================================
   ELGLABS & DUBISUB REFERENCE DESIGN: LANDING, ANIMATIONS & SPOTLIGHT CARDS
   ========================================================================== */

#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}
header, main, footer {
  position: relative;
  z-index: 1;
}

/* --- Sticky Glassmorphism Header --- */
header.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 68px;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--edge);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: block;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
header.nav.scrolled {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  border-bottom-color: color-mix(in srgb, var(--purple) 25%, var(--edge));
}

header.nav .wrap {
  max-width: 1200px;
  width: 100%;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  padding: 4px 0;
}
.nav-brand-logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-brand-text {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-brand-text .mark {
  color: var(--purple);
}

/* Center Pill Nav Bar with Tab Switching Effects */
.nav-pill-group {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  border: 1px solid var(--edge);
  backdrop-filter: blur(12px);
  position: relative;
  gap: 2px;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.nav-pill-group:hover {
  border-color: color-mix(in srgb, var(--purple) 35%, var(--edge));
}
.nav-pill-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--subtle);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.2s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  user-select: none;
}
.nav-pill-item:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--page) 65%, transparent);
}
.nav-pill-item.active {
  color: var(--purple);
  font-weight: 600;
  background: var(--page);
  border-color: color-mix(in srgb, var(--purple) 30%, transparent);
  box-shadow: 0 2px 10px -2px rgba(104, 72, 237, 0.16), 0 1px 3px rgba(0, 0, 0, 0.04);
}
:root[data-theme="dark"] .nav-pill-item.active {
  color: #c4b5fd;
  background: color-mix(in srgb, var(--purple) 18%, var(--panel));
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 2px 12px -2px rgba(167, 139, 250, 0.22);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.theme-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.theme-btn:hover {
  border-color: var(--purple);
  transform: scale(1.05);
}
.theme-btn svg {
  width: 17px;
  height: 17px;
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.35s ease;
}
.theme-btn .sun {
  transform: none;
  opacity: 1;
}
.theme-btn .moon {
  transform: translateY(130%) rotate(-60deg);
  opacity: 0;
}
:root[data-theme="dark"] .theme-btn .sun {
  transform: translateY(-130%) rotate(60deg);
  opacity: 0;
}
:root[data-theme="dark"] .theme-btn .moon {
  transform: none;
  opacity: 1;
}
.account-summary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--edge);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.account-summary-btn:hover {
  border-color: var(--purple);
}
.account-avatar-pill {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}
.menu-btn span:first-child { transform: translate(-50%, -4px); }
.menu-btn span:last-child { transform: translate(-50%, 3px); }
.nav.open .menu-btn span:first-child { transform: translate(-50%, -0.5px) rotate(45deg); }
.nav.open .menu-btn span:last-child { transform: translate(-50%, -0.5px) rotate(-45deg); }
.m-menu {
  display: none;
}
@media (max-width: 860px) {
  .nav-pill-group { display: none; }
  .menu-btn { display: grid; }
  .m-menu {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.7, 0, 0.2, 1);
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--page);
    border-bottom: 1px solid var(--edge);
    box-shadow: 0 24px 40px -20px rgba(0,0,0,0.25);
    overflow: hidden;
  }
  .nav.open .m-menu {
    grid-template-rows: 1fr;
  }
  .m-inner {
    overflow: hidden;
    padding: 16px 24px 24px;
  }
  .m-nav-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
  }
  .m-nav-item {
    display: block;
    padding: 12px 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--edge);
    transition: color 0.2s ease, padding-left 0.2s ease;
  }
  .m-nav-item:hover, .m-nav-item.active {
    color: var(--purple);
    padding-left: 6px;
  }
  .m-cta-btn {
    width: 100%;
  }
}

/* --- Custom Cursor & Magnetic Interactions --- */
.magnetic {
  translate: var(--gx, 0px) var(--gy, 0px);
  transition: translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.2s ease, background-color 0.4s ease, border-color 0.3s ease;
}

.cursor-dot, .cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--purple);
  transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease, margin 0.25s ease;
}
.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid color-mix(in srgb, var(--purple) 85%, transparent);
  transition: opacity 0.3s ease, width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), margin 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease;
}
.cursor-on .cursor-dot, .cursor-on .cursor-ring {
  opacity: 1;
}
.cursor-hot .cursor-ring {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-color: var(--purple);
  background: color-mix(in srgb, var(--purple) 12%, transparent);
}
.cursor-hot .cursor-dot {
  width: 0;
  height: 0;
  margin: 0;
  opacity: 0;
}
.cursor-card .cursor-ring {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-color: color-mix(in srgb, var(--purple) 60%, transparent);
  background: color-mix(in srgb, var(--purple) 6%, transparent);
}
.cursor-text .cursor-ring {
  width: 3px;
  height: 24px;
  margin: -12px 0 0 -1.5px;
  border-radius: 2px;
  background: var(--purple);
  border-width: 0;
}
.cursor-text .cursor-dot {
  opacity: 0;
}
.cursor-down .cursor-ring {
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
}
html.has-cursor, html.has-cursor * {
  cursor: none !important;
}

/* Click Ripple */
.ripple {
  position: fixed;
  z-index: 9998;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  pointer-events: none;
  border: 1.5px solid var(--purple);
  animation: rippleFx 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes rippleFx {
  to {
    transform: scale(7.5);
    opacity: 0;
  }
}

/* --- Card Spotlight, 3D Tilt & Glowing Border --- */
.card {
  position: relative;
  isolation: isolate;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 20px;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--ps, 1));
  transform-style: preserve-3d;
  will-change: transform;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--purple) 15%, transparent), transparent 60%);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--purple) 75%, transparent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.card.is-hot::before, .card.is-hot::after {
  opacity: 1;
}
.card.is-hot {
  box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--purple) 35%, transparent);
}

/* --- Hero & Giới thiệu Section --- */
.hero {
  position: relative;
  text-align: center;
  min-height: calc(85vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px 40px;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 840px;
  margin: 0 auto;
}
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 6px 18px 6px 7px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--edge);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.06);
  transition: border-color 0.25s, transform 0.2s, background-color 0.25s, box-shadow 0.25s;
}
.hero .badge:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--purple) 25%, transparent);
}
.badge-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.badge-dot img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}
.hero .badge .chev {
  color: var(--subtle);
  transition: transform 0.2s;
  font-size: 15px;
}
.hero .badge:hover .chev {
  transform: translateX(3px);
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 26px auto 0;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--purple) 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede {
  color: var(--subtle);
  font-size: clamp(15.5px, 1.6vw, 18.5px);
  line-height: 1.65;
  max-width: 58ch;
  margin: 22px auto 0;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn.primary {
  background: var(--ink);
  color: var(--page);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -8px rgba(0,0,0,0.25);
}
:root[data-theme="dark"] .btn.primary {
  background: #f1f0f7;
  color: #0b0b0f;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--edge);
}
.btn.ghost:hover {
  transform: translateY(-2px);
  background: var(--panel);
  border-color: var(--purple);
}
.btn .arrow {
  transition: transform 0.2s ease;
}
.btn:hover .arrow {
  transform: translateX(4px);
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero .badge { animation: heroReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero h1 { animation: heroReveal 0.7s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero .lede { animation: heroReveal 0.7s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero .ctas { animation: heroReveal 0.7s 0.24s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* --- Features Section & 2 Tracks --- */
.landing-section {
  padding: 72px 0 32px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 14px;
}
.section-title {
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 16px;
}
.section-desc {
  color: var(--subtle);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 60ch;
  margin-bottom: 36px;
}
.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}
.track {
  padding: clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
}
.track .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.track h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.track p {
  color: var(--subtle);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}
.track ul {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.track li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--edge);
  font-size: 14px;
  color: var(--ink);
  transition: color 0.2s, padding-left 0.2s;
}
.track li:hover {
  padding-left: 6px;
}
.track li:hover span:first-child {
  color: var(--purple);
}
.track li span:last-child {
  color: var(--subtle);
  font-size: 12.5px;
  font-family: monospace;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--page);
  border: 1px solid var(--edge);
}
@media (max-width: 768px) {
  .tracks { grid-template-columns: 1fr; }
}

/* --- 4-Step Process --- */
.steps {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step-counter;
}
.steps li {
  padding: 26px 22px;
  counter-increment: step-counter;
  display: flex;
  flex-direction: column;
}
.steps li::before {
  content: counter(step-counter, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  font-family: monospace;
  color: var(--purple);
  margin-bottom: 18px;
  transition: transform 0.3s;
}
.steps li:hover::before {
  transform: translateX(4px) scale(1.15);
}
.steps li h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}
.steps li p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--subtle);
  margin: 0;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* --- Contact Section --- */
.contact-section {
  margin: 72px 0 54px;
}
.contact-card {
  text-align: center;
  padding: clamp(40px, 7vw, 84px) clamp(20px, 4vw, 56px);
}
.contact-card h2 {
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 700;
  max-width: 22ch;
  margin: 0 auto;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}
.contact-card .free {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px auto 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--purple) 12%, var(--page));
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
}
.contact-card .lede {
  margin: 18px auto 0;
  font-size: 16px;
  max-width: 54ch;
  color: var(--subtle);
  line-height: 1.6;
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  align-items: center;
  margin-top: 36px;
}
.mail-pill {
  font-family: monospace;
  font-size: 15px;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--page);
  border: 1px solid var(--edge);
  color: var(--ink);
  user-select: all;
}
.copied-hint {
  flex-basis: 100%;
  min-height: 1.2em;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple);
  margin-top: 6px;
  transition: opacity 0.3s;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--edge);
  padding: 32px 0 40px;
  font-size: 13px;
  color: var(--subtle);
}
.site-footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--subtle);
  text-decoration: none;
  transition: color 0.2s;
}
.gh-link:hover {
  color: var(--ink);
}
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}
