/* ============================================================
   JANOSCI SCIENTIFIC WORKZ — Base Styles
   Theme: Lighter Navy & Elegant Gold
   Font: Poppins + Inter
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS VARIABLES (Lighter & Cleaner) ────────────────────── */
:root {
  /* Safe areas / chrome */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-nav-h: 72px;
  --content-bottom-mobile: calc(var(--bottom-nav-h) + var(--safe-bottom));

  /* Janosci premium palette */
  --color-primary:   #0F172A;
  --color-secondary: #1E293B;
  --color-accent:    #3B82F6;
  --color-success:   #10B981;
  --color-bg:        #F8FAFC;
  --color-text:      #0F172A;
  --color-muted:     #64748B;
  --color-border:    #E2E8F0;

  --navy:        var(--color-primary);
  --navy-light:  var(--color-secondary);
  --navy-dark:   #020617;
  --navy-mid:    #1E293B;
  --navy-deep:   #0F172A;
  --ink:         var(--color-primary);
  --gold:        var(--color-accent);
  --gold-light:  #60A5FA;
  --gold-dark:   #2563EB;
  --gold-pale:   rgba(59, 130, 246, .12);

  --white:       #ffffff;
  --off-white:   #f8fafc;
  --light-bg:    var(--color-bg);
  --border:      var(--color-border);
  --border-dark: #cbd5e0;

  --text-dark:   var(--color-text);
  --text-body:   #475569;
  --text-muted:  var(--color-muted);
  --text-light:  #94a3b8;

  --success:     var(--color-success);
  --danger:      #e53e3e;
  --warning:     #ed8936;
  --info:        #3182ce;

  /* Shadows (Softer) */
  --shadow-xs:   0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:   0 2px 8px rgba(26, 54, 93, .06);
  --shadow-md:   0 4px 20px rgba(26, 54, 93, .08);
  --shadow-lg:   0 8px 36px rgba(26, 54, 93, .12);
  --shadow-xl:   0 16px 56px rgba(26, 54, 93, .16);

  /* Shape */
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   18px;
  --radius-xl:   26px;
  --radius-full: 9999px;

  /* Transitions */
  --transition:  all 0.25s ease;
  --transition-slow: all 0.4s ease;

  /* Layout */
  --navbar-h:    76px;
  --ann-h:       42px;
}

@media (max-width: 1024px) {
  :root { --navbar-h: 70px; }
}
@media (max-width: 900px) {
  :root { --navbar-h: 66px; }
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--navbar-h) + 16px);
}
html:has(body.has-annbar) {
  scroll-padding-top: calc(var(--navbar-h) + var(--ann-h) + 12px);
}
body {
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--light-bg);
  background-image:
    radial-gradient(ellipse 100% 60% at 100% 0%, rgba(26, 54, 93, 0.055), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(214, 158, 46, 0.045), transparent 50%);
  background-attachment: fixed;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea, select { outline: none; font-family: inherit; }
ul, ol { list-style: none; }

/* Headings use Poppins */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { color: var(--text-body); }

/* ── LAYOUT ────────────────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-left, 0px)) 0 max(1rem, env(safe-area-inset-right, 0px));
}
@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-xs { padding: 1.5rem 0; }

/* ── TYPOGRAPHY UTILITIES ──────────────────────────────────── */
.text-navy    { color: var(--navy) !important; }
.text-gold    { color: var(--gold) !important; }
.text-white   { color: var(--white) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.font-bold    { font-weight: 700; }
.font-semibold{ font-weight: 600; }
.font-medium  { font-weight: 500; }
.text-xs      { font-size: .75rem; }
.text-sm      { font-size: .875rem; }
.text-base    { font-size: 1rem; }
.text-lg      { font-size: 1.125rem; }
.text-xl      { font-size: 1.25rem; }
.text-2xl     { font-size: 1.5rem; }
.text-3xl     { font-size: 1.875rem; }
.uppercase    { text-transform: uppercase; }
.italic       { font-style: italic; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Entrance animations */
.animate-in,
.animate-up,
.animate-scale,
.animate-left,
.animate-right {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.animate-in { transform: translateY(24px); }
.animate-up { transform: translateY(32px); }
.animate-scale { transform: scale(0.9); }
.animate-left { transform: translateX(-32px); }
.animate-right { transform: translateX(32px); }
.animate-in.visible,
.animate-up.visible,
.animate-scale.visible,
.animate-left.visible,
.animate-right.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}
.animate-scale.visible { transform: scale(1); }
.animate-left.visible { transform: translateX(0); }
.animate-right.visible { transform: translateX(0); }

/* ── BACKGROUND UTILITIES ──────────────────────────────────── */
.bg-navy    { background: var(--navy); }
.bg-gold    { background: var(--gold); }
.bg-white   { background: var(--white); }
.bg-light   { background: var(--light-bg); }
.bg-off-white { background: var(--off-white); }

/* ── SPACING UTILITIES ─────────────────────────────────────── */
.mt-1 { margin-top: .5rem; }  .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.p-2  { padding: 1rem; }  .p-3  { padding: 1.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }

/* ── FLEX / GRID UTILITIES ─────────────────────────────────── */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.items-center { align-items: center; }
.flex-wrap    { flex-wrap: wrap; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── DISPLAY UTILITIES ─────────────────────────────────────── */
.hidden   { display: none !important; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full   { width: 100%; }
.h-full   { height: 100%; }

/* ── BORDER / SHAPE UTILITIES ──────────────────────────────── */
.rounded    { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.shadow     { box-shadow: var(--shadow-md); }
.shadow-lg  { box-shadow: var(--shadow-lg); }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: .01em;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #ffffff;
  border-color: transparent;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(13,27,75,.3);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  border-color: transparent;
  font-weight: 700;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(212,160,23,.35);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #ffffff;
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
}
.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: #ffffff;
  color: var(--navy);
}
.btn-danger  { background: var(--danger);  color: #fff; border-color: var(--danger); }
.btn-danger:hover  { background: #dc2626; color: #fff; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #059669; color: #fff; }
.btn-sm  { padding: .45rem 1.1rem; font-size: .82rem; }
.btn-lg  { padding: .9rem 2.2rem; font-size: 1rem; }
.btn-xl  { padding: 1.1rem 2.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon  { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

/* ── FORMS ─────────────────────────────────────────────────── */
.form-group  { margin-bottom: 1.25rem; }
.form-label  {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy);
  margin-bottom: .45rem;
}
.form-control {
  width: 100%;
  padding: .72rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: .92rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  font-family: inherit;
}
.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,27,75,.1);
  background: var(--white);
}
.form-control::placeholder { color: var(--text-light); }
.input-group { position: relative; }
.input-group .form-control { padding-left: 2.75rem; }
.input-group .input-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: .9rem;
}
.input-group .input-suffix {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
}
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint  { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: .3rem; }

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
}
.card-header h3 { font-size: .95rem; margin: 0; color: var(--navy); }
.card-body   { padding: 1.4rem; }
.card-footer {
  padding: .9rem 1.4rem;
  border-top: 1px solid var(--border);
  background: var(--off-white);
}

/* ── STAT CARDS (Admin) ────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.stat-icon.navy    { background: rgba(13,27,75,.1);   color: var(--navy); }
.stat-icon.gold    { background: rgba(212,160,23,.12); color: var(--gold-dark); }
.stat-icon.success { background: rgba(16,185,129,.1);  color: var(--success); }
.stat-icon.danger  { background: rgba(239,68,68,.1);   color: var(--danger); }
.stat-icon.info    { background: rgba(59,130,246,.1);  color: var(--info); }
.stat-info { flex: 1; }
.stat-value { font-size: 1.55rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text-muted); margin-top: .2rem; font-weight: 500; }
.stat-change { font-size: .72rem; font-weight: 600; margin-top: .2rem; }
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ── FLASH MESSAGES ────────────────────────────────────────── */
.flash-message {
  padding: .9rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-weight: 500;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  animation: slideDown .3s ease;
}
.flash-success { background: rgba(16,185,129,.1);  border: 1px solid rgba(16,185,129,.3);  color: #065f46; }
.flash-error   { background: rgba(239,68,68,.1);   border: 1px solid rgba(239,68,68,.3);   color: #991b1b; }
.flash-info    { background: rgba(59,130,246,.1);  border: 1px solid rgba(59,130,246,.3);  color: #1e40af; }
.flash-warning { background: rgba(245,158,11,.1);  border: 1px solid rgba(245,158,11,.3);  color: #92400e; }
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }

/* ── BADGES ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .18rem .55rem;
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-navy    { background: rgba(13,27,75,.1);   color: var(--navy); }
.badge-gold    { background: rgba(212,160,23,.15); color: var(--gold-dark); }
.badge-success { background: rgba(16,185,129,.1);  color: var(--success); }
.badge-danger  { background: rgba(239,68,68,.1);   color: var(--danger); }
.badge-warning { background: rgba(245,158,11,.1);  color: #92400e; }
.badge-info    { background: rgba(59,130,246,.1);  color: var(--info); }

/* ── TABLES ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
thead tr { background: var(--navy); }
thead th {
  padding: .85rem 1rem;
  text-align: left;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  color: #ffffff;
  letter-spacing: .04em;
  text-transform: uppercase;
}
tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
tbody tr:hover { background: rgba(13,27,75,.02); }
tbody tr:last-child { border-bottom: none; }
tbody td { padding: .8rem 1rem; font-size: .87rem; color: var(--text-body); }

/* ── PAGINATION ────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.page-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 600;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-body);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.page-btn:hover { border-color: var(--navy); color: var(--navy); }
.page-btn.active { background: var(--navy); border-color: var(--navy); color: #ffffff; }

/* ── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: .4rem;
  font-size: .83rem; color: var(--text-muted);
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--navy); font-weight: 600; }

/* ── SECTION HEADERS ───────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  background: rgba(212,160,23,.12);
  color: var(--gold-dark);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .3rem .9rem;
  border-radius: var(--radius-full);
  margin-bottom: .65rem;
  border: 1px solid rgba(212,160,23,.2);
}
.section-header h2 { color: var(--navy); margin-bottom: .65rem; }
.section-header p  { color: var(--text-muted); max-width: 540px; margin: 0 auto; font-size: .95rem; }
.section-divider {
  width: 52px; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: .85rem auto 0;
}

/* ── ORDER STATUS ──────────────────────────────────────────── */
.order-status {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .7rem; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.status-pending    { background: rgba(245,158,11,.1);  color: #92400e; }
.status-confirmed  { background: rgba(59,130,246,.1);  color: #1e40af; }
.status-processing { background: rgba(139,92,246,.1);  color: #5b21b6; }
.status-shipped    { background: rgba(16,185,129,.1);  color: #065f46; }
.status-delivered  { background: rgba(16,185,129,.15); color: #064e3b; }
.status-cancelled  { background: rgba(239,68,68,.1);   color: #991b1b; }

/* ── RESPONSIVE GRID ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section  { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }
  .container { padding: 0 max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left)); }
  .section-header { margin-bottom: 2.25rem; }
  h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
  h2 { font-size: clamp(1.25rem, 4vw, 1.7rem); }
}
@media (max-width: 480px) {
  .btn-lg { padding: .8rem 1.6rem; font-size: .92rem; }
  .btn-xl { padding: .9rem 2rem; font-size: .95rem; }
}

/* ── APP SHELL (storefront pages; avoids Tailwind body overrides) ─ */
.app-body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.ui-crystal {
  background-color: #eef3fb;
  background-image:
    radial-gradient(ellipse 95% 65% at 100% 0%, rgba(37, 99, 235, 0.08), transparent 58%),
    radial-gradient(ellipse 70% 52% at 0% 100%, rgba(56, 189, 248, 0.08), transparent 55%);
}
.ui-crystal .card,
.ui-crystal .section-card,
.ui-crystal .blog-card,
.ui-crystal .stat-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.97));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ui-crystal .card:hover,
.ui-crystal .blog-card:hover,
.ui-crystal .stat-card:hover {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}
.ui-crystal .btn {
  border-radius: 12px;
}
.ui-crystal .btn-primary {
  background: linear-gradient(135deg, #12336a 0%, #1e4a8d 55%, #2463b0 100%);
}
.ui-crystal .btn-gold {
  background: linear-gradient(135deg, #f5bf32 0%, #ffd75f 100%);
}
.ui-crystal .form-control {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.96);
}
.ui-crystal .form-control:focus {
  border-color: #1e4a8d;
  box-shadow: 0 0 0 4px rgba(30, 74, 141, 0.13);
}

.page-wrapper {
  min-height: 100vh;
  padding-top: calc(var(--navbar-h) + 0.75rem);
}
/* Home: hero block already offsets for fixed navbar + announcement */
.page-wrapper:has(> .hero) {
  padding-top: 0;
}

/* Auth pages: same header/footer; centered card below nav */
.page-wrapper--auth {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3.5rem;
  min-height: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 0%, rgba(26, 54, 93, 0.06), transparent 55%),
    linear-gradient(180deg, var(--off-white) 0%, var(--light-bg) 100%);
}
.auth-stack {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.auth-visual {
  text-align: center;
  margin-bottom: 1.25rem;
}
.auth-visual-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: var(--shadow-md);
}
.auth-visual h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.35rem;
}
.auth-visual p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-card-elevated {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--white);
}
@media (max-width: 480px) {
  .page-wrapper--auth {
    padding: 1.25rem 0.85rem 4rem;
  }
}

.demo-hint {
  margin-top: 1.25rem;
  padding: 1rem;
  background: rgba(26, 54, 93, 0.06);
  border-radius: var(--radius);
  font-size: 0.82rem;
  border: 1px dashed rgba(26, 54, 93, 0.15);
  color: var(--text-body);
  line-height: 1.55;
}
.demo-hint code {
  background: rgba(26, 54, 93, 0.08);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
}
.otp-banner {
  text-align: center;
  padding: 0.65rem 1rem;
  background: rgba(214, 158, 46, 0.12);
  border: 1px solid rgba(214, 158, 46, 0.35);
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.otp-input {
  text-align: center;
  font-size: 1.55rem !important;
  letter-spacing: 0.4rem;
  font-weight: 800;
  padding: 0.8rem !important;
}
.link-btn {
  background: none;
  border: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.text-navy { color: var(--navy) !important; }
.font-bold { font-weight: 700 !important; }

/* ── AUTH (login / register; replaces legacy Flat UI) ─ */
.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
  font-family: 'Inter', 'Poppins', system-ui, sans-serif;
  background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 42%, var(--navy-light) 100%);
  background-attachment: fixed;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
.auth-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 15% 0%, rgba(214, 158, 46, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 100%, rgba(255, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.auth-page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}
.auth-page--wide {
  max-width: 560px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  overflow: hidden;
}
.auth-card-header {
  text-align: center;
  padding: 2rem 1.75rem 1.35rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}
.auth-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-md);
}
.auth-card-header h1 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}
.auth-card-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.auth-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem;
  background: var(--light-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.auth-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  font-family: inherit;
}
.auth-tab:hover {
  color: var(--navy);
  background: rgba(26, 54, 93, 0.06);
}
.auth-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
}
.auth-tab i {
  font-size: 0.85rem;
  opacity: 0.9;
}
.auth-tab-content {
  display: none;
}
.auth-tab-content.active {
  display: block;
  animation: slideDown 0.25s ease;
}
.auth-divider {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 1.35rem 0;
  position: relative;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 5.5rem);
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-footer {
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--off-white);
}
.auth-footer a {
  color: var(--navy);
  font-weight: 600;
}
.auth-footer a:hover {
  color: var(--gold-dark);
}
@media (max-width: 480px) {
  .auth-card-body {
    padding: 1.25rem 1.15rem 1.5rem;
  }
  .auth-card-header {
    padding: 1.65rem 1.15rem 1.1rem;
  }
  .auth-tab {
    font-size: 0.74rem;
    padding: 0.55rem 0.35rem;
  }
  .auth-tab span,
  .auth-tab {
    flex-wrap: wrap;
  }
}
