/* ─── Variables & Tokens (Premium Soft Light Ocean Blue Theme) ─── */
:root {
  --bg: #f8fafc;        /* Soft Slate 50 */
  --bg-card: #ffffff;   /* Pure White */
  --surface: rgba(255, 255, 255, 0.85);
  --border: rgba(148, 163, 184, 0.12); /* Very soft slate */
  --border-strong: rgba(37, 99, 235, 0.22); /* Soft Royal Blue border */
  --text: #0f172a;      /* Deep Slate 900 */
  --text-dim: #475569;  /* Slate 600 */
  --muted: #64748b;     /* Slate 500 */
  
  --primary: #2563eb;   /* Royal Blue 600 */
  --primary-hover: #1d4ed8;
  --accent: #0ea5e9;    /* Sky Blue 500 */
  --accent-hover: #0284c7;
  --warning: #f59e0b;   /* Amber 500 */
  --warning-hover: #d97706;
  --success: #10b981;   /* Emerald 500 */
  --success-hover: #059669;
  --danger: #ef4444;    /* Red 500 */
  
  --grad-primary: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #4f46e5 100%);
  --grad-hover: linear-gradient(135deg, #38bdf8 0%, #1d4ed8 50%, #4338ca 100%);
  
  --shadow-soft: 
    0 1px 2px rgba(0,0,0,0.015),
    0 8px 30px rgba(148, 163, 184, 0.08),
    0 1px 1px rgba(255, 255, 255, 0.8) inset;
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.06);
  --shadow-card: 
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 12px 40px rgba(100, 116, 139, 0.06);
    
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Basic Resets ────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light;
}

body {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "JetBrains Mono", monospace !important;
  font-size: 13px !important;
}

/* ─── Background Decoration ───────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  animation: floatOrb 22s ease-in-out infinite;
  will-change: transform;
}

.orb-primary {
  top: -200px;
  left: -150px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
}

.orb-secondary {
  top: 30%;
  right: -250px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
  animation-delay: -7s;
}

.orb-accent {
  bottom: -200px;
  left: 25%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  animation-delay: -14s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -20px, 0) scale(1.03); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(37, 99, 235, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 0%, #000 30%, transparent 75%);
}

/* ─── Layout ──────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 10px;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.25);
}

.brand-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav a {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}

.nav a:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.1);
}

.nav-external {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(37, 99, 235, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.15) !important;
}

.nav-external:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(37, 99, 235, 0.12)) !important;
}

.container {
  width: 100%;
  max-width: 1200px; /* Centered, cohesive layout */
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;
}

/* ─── Hero Section ────────────────────────────────────── */
.hero {
  padding: 10px 8px 28px;
  text-align: center;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  color: var(--primary);
  margin-bottom: 18px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.7; }
}

.hero-title {
  margin: 0;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-title .grad {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  margin: 12px auto 0;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ─── Widget Dashboard Grid ────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 12px;
  animation: fadeUp 0.7s var(--ease) both;
}

.dashboard-main-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-side-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─── Tabs List Navigation ────────────────────────────── */
.tab-list {
  display: flex;
  background: rgba(226, 232, 240, 0.5); /* Soft slate 200 */
  padding: 6px;
  border-radius: 16px;
  gap: 4px;
  border: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 12px 10px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text-dim);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s var(--ease);
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.4);
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.05);
}

.tab-icon {
  font-size: 14px;
}

/* ─── Deck / Card Containers ─────────────────────────── */
.deck {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  position: relative;
  overflow: hidden;
}

.deck::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, transparent 40%, transparent 60%, rgba(14, 165, 233, 0.02) 100%);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
  animation: tabFadeIn 0.4s var(--ease) both;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-intro {
  margin-bottom: 20px;
}

.panel-intro h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
}

.panel-intro p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ─── Form Elements ───────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.field-label {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
}

.lbl-desc {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
}

.input-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: all 0.25s var(--ease);
}

.input-wrap:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

.input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.input-wrap input {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  color: var(--text);
  border: 0;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}

.input-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: -1;
  filter: blur(8px);
}

.input-wrap:focus-within .input-glow {
  opacity: 0.08;
}

/* Stepper Component */
.number-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-sm);
  padding: 4px;
  width: 100%;
  max-width: 190px;
}

.number-stepper input {
  flex: 1;
  background: transparent;
  border: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  outline: none;
  width: 50px;
  -moz-appearance: textfield;
}

.number-stepper input::-webkit-outer-spin-button,
.number-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.step-btn {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 0;
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-dim);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s var(--ease);
}

.step-btn:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn-submit {
  width: 100%;
  appearance: none;
  border: 0;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s var(--ease);
}

.btn-arrow {
  transition: transform 0.2s var(--ease);
}

.btn-submit:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-submit.primary {
  background: var(--grad-primary);
  box-shadow: 0 4px 18px -4px rgba(99, 102, 241, 0.4);
}

.btn-submit.primary:hover {
  background: var(--grad-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 24px -4px rgba(99, 102, 241, 0.5);
}

.btn-submit.accent {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  box-shadow: 0 4px 18px -4px rgba(6, 182, 212, 0.35);
}

.btn-submit.accent:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 24px -4px rgba(6, 182, 212, 0.45);
}

.btn-submit.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  box-shadow: 0 4px 18px -4px rgba(245, 158, 11, 0.35);
}

.btn-submit.warning:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 24px -4px rgba(245, 158, 11, 0.45);
}

.btn-submit.success {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  box-shadow: 0 4px 18px -4px rgba(16, 185, 129, 0.35);
}

.btn-submit.success:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 24px -4px rgba(16, 185, 129, 0.45);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Spinner */
@keyframes claim-spin { to { transform: rotate(360deg); } }
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: claim-spin 0.7s linear infinite;
  margin-right: 4px;
}

/* ─── Result & Outputs Parsing Styles ──────────────────── */
.result-box {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  animation: fadeUp 0.4s var(--ease) both;
}

.result-title {
  font-size: 16px;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  color: var(--success);
  margin-bottom: 14px;
}

.kv {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kv-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  font-size: 13.5px;
}

.kv-row .k {
  color: var(--text-dim);
  font-weight: 600;
  min-width: 90px;
  flex-shrink: 0;
}

.kv-row .v {
  font-family: "JetBrains Mono", monospace;
  word-break: break-all;
  color: var(--text);
  font-weight: 500;
  user-select: all;
}

.kv-row a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.kv-row a:hover {
  text-decoration: underline;
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.copy-btn {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.03));
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.copy-btn:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.06));
  border-color: var(--primary);
  color: var(--text);
}

.copy-btn.copied {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: var(--success) !important;
  color: var(--success-hover) !important;
}

.codex-mailtip {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(236, 72, 153, 0.03));
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 13px;
  line-height: 1.6;
}

.codex-mailtip-h {
  font-weight: 700;
  font-size: 13.5px;
  color: #b45309;
  margin-bottom: 4px;
  font-family: "Outfit", sans-serif;
}

.codex-mailtip-b {
  color: #78350f;
}

.codex-mailtip-b a {
  color: #d97706;
  text-decoration: underline;
  font-weight: 600;
}

.pwd-tip {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #991b1b;
  font-size: 12.5px;
  line-height: 1.5;
}

.pwd-tip b {
  color: var(--danger);
  font-weight: 700;
}

.warranty-link-box {
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.03);
  text-decoration: none;
  color: #b45309;
  transition: all 0.2s var(--ease);
}

.warranty-link-box:hover {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.4);
}

.warranty-link-title {
  font-weight: 700;
  font-size: 13.5px;
}

.warranty-link-desc {
  font-size: 11.5px;
  opacity: 0.8;
  margin-top: 2px;
}

/* ─── Alerts ──────────────────────────────────────────── */
.alert {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
  animation: fadeUp 0.3s var(--ease);
}

.alert.error {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.25);
  color: #991b1b;
}

/* ─── Risk & Warn Panel ────────────────────────────────── */
.risk-card {
  margin-top: 8px;
  background: rgba(148, 163, 184, 0.03);
  border: 1px solid var(--border);
  padding: 20px 24px;
}

.risk-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.risk-list {
  padding-left: 18px;
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
}

.risk-list li {
  margin-bottom: 6px;
}

.risk-list li:last-child {
  margin-bottom: 0;
}

/* ─── Footer ──────────────────────────────────────────── */
.foot {
  margin-top: auto;
  padding: 40px 20px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.foot-line.dim {
  opacity: 0.65;
  font-size: 11px;
  margin-top: 3px;
}

/* ─── Animations ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ─── Responsive Adjustments ──────────────────────────── */
@media (max-width: 600px) {
  .container {
    padding: 24px 16px 48px;
  }
  .hero-title {
    font-size: 28px;
  }
  .deck {
    padding: 20px;
  }
  .topbar {
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 24px;
  }
  .brand-text {
    font-size: 16px;
  }
  .nav a {
    padding: 6px 10px;
    font-size: 12.5px;
  }
  .nav-external {
    display: none; /* Hide store link on mobile to preserve space */
  }
}

/* ─── Reduced Motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .orb {
    animation: none;
  }
}

/* Custom prominent button for Mailbox link with micro-interactions matching ocean blue gradient */
.nav-mailbox-btn {
  background: var(--grad-primary) !important;
  color: #ffffff !important;
  border: 1px solid rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
  animation: pulseButton 2.2s ease-in-out infinite !important;
}

.nav-mailbox-btn:hover {
  background: var(--grad-hover) !important;
  border-color: rgba(37, 99, 235, 0.6) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45) !important;
}

@keyframes pulseButton {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transform: translateY(0) scale(1);
  }
  50% {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px) scale(1.04);
  }
}

/* ─── Support Guide Card ─────────────────────────────── */
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  position: relative;
  overflow: hidden;
}

.support-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, transparent 40%, transparent 60%, rgba(14, 165, 233, 0.02) 100%);
}

.support-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.support-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.support-item:last-child {
  margin-bottom: 0;
}

.support-num {
  width: 22px;
  height: 22px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-family: "JetBrains Mono", monospace;
}

.support-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ─── Mailbox Redirection Guidance Card ─────────────── */
.mailbox-redirect-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06) 0%, rgba(37, 99, 235, 0.03) 100%);
  text-decoration: none;
  color: #0369a1;
  transition: all 0.25s var(--ease);
  animation: pulseRedirect 2s infinite alternate;
}

.mailbox-redirect-box:hover {
  border-color: rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(37, 99, 235, 0.06) 100%);
  transform: translateY(-1.5px);
}

@keyframes pulseRedirect {
  0% {
    box-shadow: 0 4px 15px -4px rgba(14, 165, 233, 0.15);
  }
  100% {
    box-shadow: 0 4px 22px 2px rgba(14, 165, 233, 0.35);
  }
}

.redirect-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.redirect-content {
  flex: 1;
}

.redirect-title {
  font-weight: 700;
  font-size: 14px;
  color: #0369a1;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.redirect-desc {
  font-size: 11.5px;
  color: #475569;
  margin-top: 3px;
  line-height: 1.4;
}

.redirect-arrow {
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.2s var(--ease);
  color: #2563eb;
}

.mailbox-redirect-box:hover .redirect-arrow {
  transform: translateX(4px);
}

/* ─── Mailbox Modal Overlay & Card ──────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  animation: fadeIn 0.3s var(--ease) both;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-card {
  width: 95vw;
  max-width: 1320px;
  height: 85vh;
  max-height: 820px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  box-shadow: 
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 24px 60px rgba(15, 23, 42, 0.15);
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleUp 0.35s var(--ease) both;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--danger);
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 24px;
  flex-shrink: 0;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 8px;
}

.modal-title-row h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  letter-spacing: -0.02em;
}

.modal-subtitle {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.modal-panel-left {
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-panel-right {
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 1px solid var(--border);
  padding-left: 28px;
}

/* Custom scrollbars inside modal columns */
.modal-panel-left::-webkit-scrollbar,
.modal-panel-right::-webkit-scrollbar {
  width: 6px;
}
.modal-panel-left::-webkit-scrollbar-track,
.modal-panel-right::-webkit-scrollbar-track {
  background: transparent;
}
.modal-panel-left::-webkit-scrollbar-thumb,
.modal-panel-right::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 99px;
}
.modal-panel-left::-webkit-scrollbar-thumb:hover,
.modal-panel-right::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Input elements styling inside modal input-wraps */
.modal-card .input-wrap input,
.modal-card .input-wrap select,
.modal-card .input-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  color: var(--text);
  border: 0;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  font-family: inherit;
  transition: all 0.25s var(--ease);
  border-radius: var(--radius-sm);
}

.modal-card .input-wrap textarea {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  line-height: 1.55;
  min-height: 200px;
  resize: vertical;
}

.modal-card .input-wrap select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Modal specific button class definitions to replace unstyled default buttons */
.modal-card .btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 11px 22px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s var(--ease);
  position: relative;
}

.modal-card .btn-arrow {
  transition: transform 0.2s var(--ease);
}

.modal-card .btn:hover .btn-arrow {
  transform: translateX(3px);
}

.modal-card .btn.primary {
  color: #ffffff;
  background: var(--grad-primary);
  background-size: 200% 200%;
  box-shadow: 0 4px 15px -4px rgba(37, 99, 235, 0.4), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  animation: animateGrad 5s linear infinite;
}

.modal-card .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -4px rgba(37, 99, 235, 0.5), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.modal-card .btn.primary:active {
  transform: translateY(0);
}

.modal-card .btn.primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  animation: none;
}

.modal-card .btn.ghost {
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.modal-card .btn.ghost:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  border-color: var(--border-strong);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive adjustments for modal */
@media (max-width: 900px) {
  .modal-body-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .modal-panel-right {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 10px;
  }
  .modal-card {
    padding: 20px;
    width: 95vw;
    height: 90vh;
    max-height: none;
  }
}

/* ─── Email List & Cards (Ported from Mailbox) ────────── */
.mail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mail-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.4s var(--ease) both;
}

.mail-card:hover {
  border-color: var(--border-strong);
  background: rgba(248, 250, 252, 0.85);
  transform: translateY(-1px);
}

.mail-card.expanded {
  border-color: var(--primary);
  background: #ffffff;
}

.mail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.mail-from {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  word-break: break-all;
  flex: 1;
}

.mail-date {
  color: var(--muted);
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  flex-shrink: 0;
}

.mail-subject {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.5;
}

.mail-otp {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(251, 113, 133, 0.12));
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #b45309;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.mail-otp:hover {
  transform: scale(1.05);
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.15);
}

.mail-body {
  margin-top: 14px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: #334155;
  max-height: 450px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  animation: slideDown 0.3s var(--ease) both;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mbx-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  animation: fadeUp 0.35s var(--ease) both;
}

.mbx-bar .lbl {
  color: var(--muted);
}

.mbx-bar .val {
  color: var(--accent-hover);
  font-family: "JetBrains Mono", monospace;
}



