﻿/* ================================================================
   SalonLoop  ·  Majestic Gold & Onyx  ·  v5.0  LUXURY EDITION
   ================================================================ */

/* ──────────────── DESIGN TOKENS ──────────────── */
:root {
  /* Gold palette */
  --g1: #fef9ec;
  --g2: #f0d080;
  --g3: #d4af37;
  --g4: #9a7b20;
  --g5: #5c4510;
  --gold-grad:  linear-gradient(135deg, #fef9ec 0%, #d4af37 48%, #9a7b20 100%);
  --gold-shine: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.22) 50%, transparent 75%);

  /* Dark surfaces */
  --bg:        #07070a;
  --surface:   rgba(16, 14, 10, 0.86);
  --surface-2: rgba(24, 20, 14, 0.94);
  --surface-3: rgba(32, 27, 18, 0.98);

  /* Borders */
  --border:    rgba(212,175,55,0.11);
  --border-md: rgba(212,175,55,0.24);
  --border-hi: rgba(212,175,55,0.46);

  /* Text */
  --text:       #f2ead4;
  --text-muted: rgba(242,234,212,0.50);
  --text-dim:   rgba(242,234,212,0.25);

  /* Status */
  --success: #34d399;
  --danger:  #f87171;
  --warning: #fbbf24;

  /* Shadows & glows */
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.45);
  --shadow-md: 0 10px 32px rgba(0,0,0,0.65);
  --shadow-lg: 0 22px 64px rgba(0,0,0,0.78);
  --shadow-xl: 0 36px 88px rgba(0,0,0,0.85);
  --glow-gold: 0 0 40px rgba(212,175,55,0.18), 0 0 80px rgba(212,175,55,0.07);
  --glow-hi:   0 0 22px rgba(212,175,55,0.55);

  /* Radius */
  --r-xs:   6px;
  --r-sm:  12px;
  --r-md:  20px;
  --r-lg:  26px;
  --r-xl:  36px;
  --r-full: 9999px;
  /* legacy aliases */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  /* Motion */
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* z-index */
  --z-bg:      -1;
  --z-base:     1;
  --z-float:   10;
  --z-overlay: 100;
  --z-dock:   1000;
}

/* Light theme overrides */
body.theme-light {
  --bg:        #f6f2e9;
  --surface:   rgba(255,252,244,0.90);
  --surface-2: rgba(255,250,238,0.97);
  --surface-3: rgba(255,248,230,1.00);
  --border:    rgba(150,116,26,0.11);
  --border-md: rgba(150,116,26,0.22);
  --border-hi: rgba(150,116,26,0.44);
  --text:       #180f00;
  --text-muted: rgba(24,15,0,0.52);
  --text-dim:   rgba(24,15,0,0.26);
  --shadow-md:  0 10px 32px rgba(120,90,10,0.10);
  --shadow-lg:  0 22px 64px rgba(120,90,10,0.15);
  --glow-gold:  0 0 30px rgba(150,116,26,0.14);
}

/* ──────────────── RESET ──────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { width: 100%; min-height: 100vh; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--g3); }

/* ──────────────── BODY ──────────────── */
body {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ──────────────── BACKGROUND SYSTEM ──────────────── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  overflow: hidden;
  pointer-events: none;
}

/* Faint grid of dots */
.bg-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(212,175,55,0.055) 1px, transparent 1px);
  background-size: 40px 40px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.orb-gold  { width: 750px; height: 750px; top: -20%; left: -12%; background: radial-gradient(circle, rgba(212,175,55,0.20) 0%, transparent 68%); animation: orb-drift 22s ease-in-out infinite alternate; }
.orb-amber { width: 550px; height: 550px; bottom: -12%; right: -8%; background: radial-gradient(circle, rgba(139,105,20,0.17) 0%, transparent 68%); animation: orb-drift 28s ease-in-out infinite alternate-reverse; }
.orb-warm  { width: 420px; height: 420px; top: 40%; left: 38%; background: radial-gradient(circle, rgba(90,64,8,0.16) 0%, transparent 68%); animation: orb-drift 35s ease-in-out infinite alternate; }

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(28px, -22px) scale(1.07); }
  100% { transform: translate(-18px, 32px) scale(0.95); }
}

/* Film grain */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}
body.theme-light .grain-overlay { opacity: 0.022; }

/* ──────────────── KEYFRAMES ──────────────── */
@keyframes shimmer-sweep {
  from { transform: translateX(-130%) skewX(-18deg); }
  to   { transform: translateX(360%) skewX(-18deg); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 1; }
}
@keyframes orbit-spin  { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes float-up    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes rise-card   { from { opacity:0; transform: translateY(28px) scale(0.97); } to { opacity:1; transform:none; } }
@keyframes drop-in     { from { opacity:0; transform: translateY(-18px) scale(0.97); } to { opacity:1; transform:none; } }
@keyframes slide-in-r  { from { opacity:0; transform: translateX(32px); } to { opacity:1; transform:none; } }
@keyframes slide-in-l  { from { opacity:0; transform: translateX(-32px); } to { opacity:1; transform:none; } }
@keyframes dock-rise   { from { opacity:0; transform: translateY(100%); } to { opacity:1; transform: translateY(0); } }
@keyframes spinner     { to { transform: rotate(360deg); } }

/* ──────────────── TYPOGRAPHY ──────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', 'El Messiri', serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

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

.muted  { color: var(--text-muted); }
.hidden { display: none !important; }

/* ──────────────── GLASS ──────────────── */
.glass {
  background: var(--surface);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}

/* ──────────────── GRADIENT BORDER ──────────────── */
/* Applied via ::before — set isolation:isolate on parent */
.grd-border {
  position: relative;
  isolation: isolate;
}
.grd-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212,175,55,0.55), rgba(212,175,55,0.07) 50%, rgba(212,175,55,0.28));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

/* ──────────────── BUTTONS ──────────────── */
.btn-gold,
.btn-gold-3d,
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gold-grad);
  color: #1a0d00;
  font-family: 'Jost', sans-serif;
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 6px 0 var(--g5), var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.14s var(--ease), box-shadow 0.14s var(--ease);
  margin-top: 0.5rem;
}
.btn-gold::after,
.btn-gold-3d::after,
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-shine);
  animation: shimmer-sweep 3.2s ease-in-out infinite;
  pointer-events: none;
}
.btn-gold:hover,
.btn-gold-3d:hover,
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 var(--g5), var(--shadow-lg), var(--glow-hi);
}
.btn-gold:active,
.btn-gold-3d:active,
.btn-primary:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--g5), var(--shadow-sm);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: var(--surface-2);
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.22s var(--ease);
}
.btn-secondary:hover {
  border-color: var(--g3);
  color: var(--g2);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: all 0.2s var(--ease);
}
.text-btn:hover {
  color: var(--g2);
  border-color: var(--border-md);
  background: rgba(212,175,55,0.09);
  transform: translateY(-1px);
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all 0.24s var(--bounce);
  flex-shrink: 0;
}
.icon-btn:hover {
  background: rgba(212,175,55,0.12);
  border-color: var(--border-md);
  color: var(--g2);
  transform: translateY(-2px) scale(1.06);
}
.icon-btn.danger-btn:hover {
  background: rgba(248,113,113,0.12);
  border-color: rgba(248,113,113,0.3);
  color: #fca5a5;
}

/* Mini row-action buttons (icon-btn + mini combo) */
.mini,
.icon-btn.mini {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: auto;
  height: auto;
  background: rgba(212,175,55,0.08);
  border: 1px solid var(--border);
  color: var(--g2);
  padding: 0.32rem 0.72rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.18s var(--ease);
  border-radius: 8px;
}
.mini:hover,
.icon-btn.mini:hover { background: var(--g3); color: #1a0d00; transform: translateY(-1px); border-color: transparent; }
.mini.danger,
.icon-btn.mini.danger { background: rgba(248,113,113,0.09); border-color: rgba(248,113,113,0.22); color: #fca5a5; }
.mini.danger:hover,
.icon-btn.mini.danger:hover { background: var(--danger); color: #fff; border-color: transparent; }

/* ──────────────── FORMS ──────────────── */
.vip-form { display: flex; flex-direction: column; gap: 1.1rem; }

/* Floating label field */
.field-wrap { position: relative; }

.field-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-start: 1rem;
  font-size: 1.1rem;
  color: var(--text-dim);
  pointer-events: none;
  transition: color 0.22s var(--ease);
  z-index: 3;
}

.vip-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.96rem;
  outline: none;
  transition: all 0.24s var(--ease);
  position: relative;
  z-index: 2;
  /* top padding for float label, icon padding */
  padding: 1.3rem 1rem 0.55rem 3rem;
}
html[dir="ltr"] .vip-input { padding-left: 3rem; padding-right: 1rem; }
html[dir="rtl"] .vip-input { padding-right: 3rem; padding-left: 1rem; }
body.theme-light .vip-input { background: rgba(255,255,255,0.65); }

.vip-input::placeholder { color: transparent; }
.vip-input:focus {
  border-color: var(--g3);
  background: rgba(212,175,55,0.055);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.13), inset 0 1px 3px rgba(0,0,0,0.18);
}
.vip-input:focus + .float-label,
.vip-input:not(:placeholder-shown) + .float-label {
  top: 0.52rem;
  transform: none;
  font-size: 0.64rem;
  color: var(--g3);
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
}
.vip-input:focus ~ .field-icon,
.vip-input:not(:placeholder-shown) ~ .field-icon { color: var(--g3); }

.float-label {
  position: absolute;
  inset-inline-start: 3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.93rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.22s var(--ease);
  z-index: 3;
}
html[dir="ltr"] .float-label { left: 3rem; right: auto; }
html[dir="rtl"] .float-label { right: 3rem; left: auto; }

/* ── Panel form inputs (no float label) ── */
.vip-form input:not(.vip-input),
.vip-form select,
.vip-form textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.8rem 1rem;
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  width: 100%;
  transition: all 0.22s var(--ease);
}
.vip-form input:not(.vip-input):focus,
.vip-form select:focus,
.vip-form textarea:focus {
  border-color: var(--g3);
  background: rgba(212,175,55,0.05);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.11);
}
.vip-form input::placeholder,
.vip-form textarea::placeholder { color: var(--text-dim); }
body.theme-light .vip-form input:not(.vip-input),
body.theme-light .vip-form select,
body.theme-light .vip-form textarea { background: rgba(255,255,255,0.65); }

/* Form grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.2rem;
  padding: 1.3rem;
  background: rgba(212,175,55,0.025);
  border: 1px dashed var(--border-md);
  border-radius: var(--r-md);
  margin-bottom: 1rem;
}
.form-grid-wide { grid-template-columns: repeat(3, 1fr); }
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.67rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 700;
}
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input,
.form-grid select,
.form-grid textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.72rem 0.95rem;
  color: var(--text);
  font-size: 0.91rem;
  outline: none;
  transition: all 0.2s var(--ease);
  margin-top: 0.15rem;
}
body.theme-light .form-grid input,
body.theme-light .form-grid select,
body.theme-light .form-grid textarea { background: rgba(255,255,255,0.65); }
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--g3);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.10);
}
/* .btn-gold inside form-grid spans full width */
.form-grid .btn-gold,
.form-grid .btn-gold-3d,
.form-grid .btn-primary { grid-column: 1 / -1; width: 100%; }

/* ──────────────── NOTICES ──────────────── */
.notice { padding: 0.75rem 1.1rem; border-radius: 12px; font-size: 0.9rem; font-weight: 500; border: 1px solid transparent; }
.notice:empty { display: none; }
.notice-muted   { background: rgba(212,175,55,0.05); color: var(--text-muted); border-color: var(--border); }
.notice-success { background: rgba(52,211,153,0.08); color: #6ee7b7; border-color: rgba(52,211,153,0.22); }
.notice-danger  { background: rgba(248,113,113,0.08); color: #fca5a5; border-color: rgba(248,113,113,0.22); }

/* ──────────────── LOGIN ──────────────── */
.login-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  position: relative;
  z-index: var(--z-base);
}

/* LEFT — Visual */
.login-visual {
  position: relative;
  overflow: hidden;
}

#goldParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 28% 62%, rgba(212,175,55,0.16) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(7,7,10,0.15), rgba(7,7,10,0.55));
  pointer-events: none;
  z-index: 1;
}

/* Orbital brand */
.brand-orbital {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

.orbital-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid;
}
.ring-1 {
  width: 116px; height: 116px;
  border-color: rgba(212,175,55,0.42);
  box-shadow: 0 0 18px rgba(212,175,55,0.12);
  animation: orbit-spin 11s linear infinite;
}
.ring-2 {
  width: 210px; height: 210px;
  border-color: rgba(212,175,55,0.17);
  border-style: dashed;
  animation: orbit-spin 22s linear infinite reverse;
}
.ring-3 {
  width: 330px; height: 330px;
  border-color: rgba(212,175,55,0.08);
  animation: orbit-spin 42s linear infinite;
}

.brand-mark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 82px; height: 82px;
  display: grid;
  place-items: center;
  background: var(--gold-grad);
  border-radius: 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #1a0d00 !important;
  box-shadow: var(--glow-hi), var(--shadow-lg);
  animation: float-up 4.5s ease-in-out infinite;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-shine);
  animation: shimmer-sweep 3s ease-in-out infinite;
}

/* Brand copy */
.luxury-copy {
  position: absolute;
  inset-inline-start: 8%;
  bottom: 9%;
  z-index: 3;
  max-width: 76%;
  animation: slide-in-l 1s var(--bounce) both;
  animation-delay: 0.35s;
}

.kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 1rem;
  background: rgba(212,175,55,0.10);
  border: 1px solid var(--border-md);
  border-radius: var(--r-full);
  color: var(--g2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  margin-bottom: 1rem;
}

.kicker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--g3);
  box-shadow: 0 0 8px var(--g3);
  animation: pulse-glow 2s ease-in-out infinite;
  flex-shrink: 0;
}

.luxury-copy h1 {
  font-size: clamp(3.8rem, 7.5vw, 8rem);
  line-height: 0.93;
  margin-bottom: 1.1rem;
  text-shadow: 0 4px 32px rgba(212,175,55,0.18);
}

.luxury-copy > p {
  color: var(--text-muted);
  font-size: clamp(0.88rem, 1.15vw, 1.08rem);
  line-height: 1.72;
  max-width: 430px;
  margin-bottom: 1.4rem;
}

.feature-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.75rem;
  background: rgba(212,175,55,0.07);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pill i { color: var(--g3); font-size: 0.85rem; }

/* RIGHT — Form panel */
.login-form-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.8rem;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4.5vw, 3.8rem);
  z-index: var(--z-base);
  background: var(--surface-2);
  backdrop-filter: blur(44px) saturate(170%);
  -webkit-backdrop-filter: blur(44px) saturate(170%);
  border-inline-start: 1px solid var(--border);
  overflow: hidden;
  animation: slide-in-r 1s var(--bounce) both;
  animation-delay: 0.2s;
}

/* Corner accent glow */
.login-form-wrap::before {
  content: "";
  position: absolute;
  top: -80px;
  inset-inline-end: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(212,175,55,0.11) 0%, transparent 68%);
  pointer-events: none;
}
/* Bottom accent */
.login-form-wrap::after {
  content: "";
  position: absolute;
  bottom: -60px;
  inset-inline-start: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(212,175,55,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.form-logo { position: relative; z-index: 1; }

.logo-orb {
  width: 66px; height: 66px;
  display: grid;
  place-items: center;
  background: var(--gold-grad);
  border-radius: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a0d00;
  box-shadow: var(--glow-hi), 0 8px 24px rgba(0,0,0,0.4);
  transform: rotate(-5deg);
  transition: transform 0.5s var(--bounce);
  overflow: hidden;
  position: relative;
}
.logo-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-shine);
  animation: shimmer-sweep 3s ease-in-out infinite;
}
.logo-orb:hover { transform: rotate(0deg) scale(1.1); }

.form-header { position: relative; z-index: 1; }
.form-header h2 { font-size: 2.4rem; margin-bottom: 0.4rem; }
.form-header .muted { font-size: 0.88rem; line-height: 1.5; }

.login-form-wrap .vip-form { position: relative; z-index: 1; }

.form-footer {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ──────────────── APP SHELL ──────────────── */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.1rem clamp(0.8rem, 2.5vw, 2.2rem) 5.8rem;
  gap: 1.1rem;
  position: relative;
  z-index: var(--z-base);
  /* Extra bottom space for dock + safe area */
  padding-bottom: calc(5.8rem + env(safe-area-inset-bottom, 0px));
}

/* ──────────────── TOP BAR ──────────────── */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  animation: drop-in 0.6s var(--bounce) both;
  position: sticky;
  top: 1.1rem;
  z-index: var(--z-float);
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.top-logo {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  background: var(--gold-grad);
  border-radius: 13px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a0d00;
  box-shadow: var(--glow-gold);
  flex-shrink: 0;
}

.top-bar h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0;
  line-height: 1.1;
}
.top-bar .muted { font-size: 0.68rem; letter-spacing: 0.5px; margin-top: 0.1rem; display: block; }
.top-actions { display: flex; gap: 0.45rem; align-items: center; }

/* ──────────────── CONTENT WRAP ──────────────── */
.content-wrap { display: flex; flex-direction: column; gap: 1.1rem; flex: 1; }

/* ──────────────── STATS GRID ──────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0.95rem;
}

.stat-card,
.stat-card-gold {
  position: relative;
  padding: 1.55rem 1.4rem;
  background: var(--surface);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: transform 0.4s var(--bounce), box-shadow 0.3s var(--ease);
  animation: rise-card 0.6s var(--bounce) both;
  isolation: isolate;
}

/* Gradient border via ::before */
.stat-card::before,
.stat-card-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212,175,55,0.50), rgba(212,175,55,0.06) 50%, rgba(212,175,55,0.26));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s;
}

/* Background glow orb */
.stat-card::after,
.stat-card-gold::after {
  content: "";
  position: absolute;
  top: -35%; right: -12%;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(212,175,55,0.17) 0%, transparent 72%);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.5s var(--ease);
  z-index: 0;
}

.stat-card:nth-child(1), .stat-card-gold:nth-child(1) { animation-delay: 0.04s; }
.stat-card:nth-child(2), .stat-card-gold:nth-child(2) { animation-delay: 0.12s; }
.stat-card:nth-child(3), .stat-card-gold:nth-child(3) { animation-delay: 0.20s; }
.stat-card:nth-child(4), .stat-card-gold:nth-child(4) { animation-delay: 0.28s; }

.stat-card:hover,
.stat-card-gold:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--glow-gold);
}
.stat-card:hover::after,
.stat-card-gold:hover::after { transform: scale(1.5); }

/* Stat Icon */
.stat-icon-wrap {
  width: 54px; height: 54px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--gold-grad);
  border-radius: 17px;
  font-size: 1.5rem;
  color: #1a0d00;
  box-shadow: 0 4px 14px rgba(212,175,55,0.38), inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* Stat Body */
.stat-body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.stat-body p {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.32rem;
}
.stat-body h4 {
  font-family: 'Space Grotesk', 'Jost', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -1px;
}

/* Shimmer sweep */
.stat-shimmer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
}
.stat-shimmer::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -40%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.048), transparent);
  animation: shimmer-sweep 4.5s ease-in-out infinite;
}
.stat-card-gold:nth-child(2) .stat-shimmer::after { animation-delay: 1.1s; }
.stat-card-gold:nth-child(3) .stat-shimmer::after { animation-delay: 2.2s; }
.stat-card-gold:nth-child(4) .stat-shimmer::after { animation-delay: 3.3s; }

/* ──────────────── PANEL ──────────────── */
.panel {
  padding: 1.8rem;
  animation: rise-card 0.6s var(--bounce) both;
  animation-delay: 0.32s;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.panel-head h2 {
  font-size: 1.7rem;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.panel-head h3 {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ──────────────── TOOLBAR ──────────────── */
.toolbar {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.search-input {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.72rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.22s var(--ease);
}
body.theme-light .search-input { background: rgba(255,255,255,0.62); }
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus {
  border-color: var(--g3);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.10);
}

/* ──────────────── TABLE ──────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(212,175,55,0.015);
}
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table-wrap thead th {
  background: rgba(212,175,55,0.065);
  color: var(--text-muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-weight: 700;
  padding: 1rem 1.05rem;
  text-align: start;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table-wrap tbody td {
  padding: 0.88rem 1.05rem;
  border-bottom: 1px solid rgba(212,175,55,0.048);
  font-size: 0.9rem;
  color: var(--text);
  vertical-align: middle;
}
.table-wrap tbody tr { transition: background 0.16s var(--ease); }
.table-wrap tbody tr:hover { background: rgba(212,175,55,0.042); }
.table-wrap tbody tr:last-child td { border-bottom: none; }
.row-actions { display: flex; gap: 0.35rem; justify-content: flex-end; flex-wrap: wrap; }

/* ──────────────── PAGER ──────────────── */
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.pager button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.2s var(--ease);
}
.pager button:hover:not(:disabled) {
  background: var(--gold-grad);
  color: #1a0d00;
  border-color: transparent;
  transform: translateY(-2px);
}
.pager button:disabled { opacity: 0.28; cursor: not-allowed; }

/* ──────────────── DASHBOARD ──────────────── */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 0.95rem;
  margin-top: 0.4rem;
}
.dash-card {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  backdrop-filter: blur(16px);
  transition: transform 0.35s var(--bounce), border-color 0.24s;
}
.dash-card:hover { transform: translateY(-4px); border-color: var(--border-md); }
.dash-card h4 {
  font-size: 0.7rem;
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-card h4::before {
  content: "";
  width: 3px; height: 15px;
  background: var(--gold-grad);
  border-radius: 3px;
  flex-shrink: 0;
}
.metric-list { display: flex; flex-direction: column; gap: 0.38rem; }
.metric-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.58rem 0.82rem;
  background: rgba(212,175,55,0.03);
  border-radius: 10px;
  font-size: 0.88rem;
  border: 1px solid transparent;
  transition: all 0.17s var(--ease);
}
.metric-list li:hover { border-color: var(--border); background: rgba(212,175,55,0.07); }
.metric-list li strong { color: var(--g3); font-weight: 700; }

.sparkline { display: flex; align-items: flex-end; gap: 3px; height: 72px; padding: 0.4rem 0; }
.spark-bar {
  flex: 1;
  background: var(--gold-grad);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  opacity: 0.72;
  transition: transform 0.24s var(--ease), opacity 0.2s;
}
.spark-bar:hover { transform: scaleY(1.1); opacity: 1; }

/* ──────────────── DOCK ──────────────── */
.dock,
.dock-majestic {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 0;
  background: rgba(9, 8, 6, 0.97);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-top: 1px solid var(--border-md);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.60), 0 -1px 0 rgba(212,175,55,0.18);
  z-index: var(--z-dock);
  overflow-x: auto;
  scrollbar-width: none;
  animation: dock-rise 0.7s var(--bounce) both;
  animation-delay: 0.45s;
  /* Safe area for notch phones */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.theme-light .dock,
body.theme-light .dock-majestic {
  background: rgba(250, 247, 238, 0.97);
  border-top-color: rgba(150,116,26,0.18);
  box-shadow: 0 -4px 24px rgba(120,90,10,0.12), 0 -1px 0 rgba(150,116,26,0.22);
}
.dock::-webkit-scrollbar,
.dock-majestic::-webkit-scrollbar { display: none; }

/* Top gold accent line */
.dock-majestic::before,
.dock::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 2px;
  background: var(--gold-grad);
  border-radius: 0 0 4px 4px;
  opacity: 0.7;
  pointer-events: none;
}

.dock-item,
.dock-item-gold {
  position: relative;
  flex: 1;
  min-width: 68px;
  max-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0.85rem 0.3rem 0.7rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.22s var(--ease), background 0.22s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

/* Icon */
.dock-item i,
.dock-item-gold i {
  font-size: 1.55rem;
  line-height: 1;
  transition: transform 0.28s var(--bounce), color 0.22s var(--ease), filter 0.22s;
  display: block;
}

/* Label */
.dock-item span,
.dock-item-gold span {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  white-space: nowrap;
  line-height: 1;
  transition: color 0.22s var(--ease);
  opacity: 0.72;
}

/* Active indicator dot above icon */
.dock-item::before,
.dock-item-gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 28px; height: 2.5px;
  background: var(--gold-grad);
  border-radius: 0 0 6px 6px;
  transition: transform 0.32s var(--bounce), opacity 0.22s;
  opacity: 0;
}

/* Hover */
.dock-item:hover,
.dock-item-gold:hover {
  color: var(--g2);
  background: rgba(212,175,55,0.07);
}
.dock-item:hover i,
.dock-item-gold:hover i {
  transform: translateY(-3px) scale(1.12);
  filter: drop-shadow(0 2px 6px rgba(212,175,55,0.35));
}
.dock-item:hover span,
.dock-item-gold:hover span { opacity: 1; }

/* Active */
.dock-item.active,
.dock-item-gold.active {
  color: var(--g2);
}
.dock-item.active i,
.dock-item-gold.active i {
  color: var(--g3);
  transform: translateY(-4px) scale(1.18);
  filter: drop-shadow(0 0 8px rgba(212,175,55,0.60));
}
.dock-item.active span,
.dock-item-gold.active span {
  color: var(--g3);
  opacity: 1;
  font-weight: 700;
}
.dock-item.active::before,
.dock-item-gold.active::before {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

/* Ripple on click */
.dock-item:active i,
.dock-item-gold:active i { transform: translateY(-2px) scale(1.04); }

/* ──────────────── RESPONSIVE ──────────────── */
@media (max-width: 1100px) {
  .form-grid-wide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .login-split { grid-template-columns: 1fr; }
  .login-visual { min-height: 280px; max-height: 38vh; }
  .luxury-copy { bottom: 7%; inset-inline-start: 6%; max-width: 92%; }
  .luxury-copy h1 { font-size: clamp(2.8rem, 10vw, 4.5rem); }
  .login-form-wrap { border-inline-start: none; border-top: 1px solid var(--border); }
  .brand-orbital { top: 48%; }
  .ring-3 { display: none; }
}
@media (max-width: 640px) {
  .app-shell { padding: 0.75rem 0.75rem 5.2rem; padding-bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px)); }
  .top-bar { padding: 0.7rem 1rem; top: 0.75rem; }
  .stats-grid { gap: 0.7rem; }
  .stat-card, .stat-card-gold { padding: 1.1rem 1rem; gap: 0.75rem; }
  .stat-icon-wrap { width: 44px; height: 44px; font-size: 1.22rem; border-radius: 13px; }
  .stat-body h4 { font-size: 1.85rem; }
  .dock, .dock-majestic { gap: 0.15rem; padding: 0.38rem 0.45rem; }
  .dock-item, .dock-item-gold { width: 40px; height: 40px; font-size: 1.1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid-wide { grid-template-columns: 1fr; }
  .panel { padding: 1.1rem; }
  .login-form-wrap { padding: 2rem 1.5rem; }
}