/* ═══════════════════════════════════════════════════════════════
   M R INTERNATIONAL — LUXURY DESIGN SYSTEM v6.0 "OBSIDIAN & CHAMPAGNE"
   $100M-grade visual layer: loaded after styles.css, overrides all.
   ═══════════════════════════════════════════════════════════════ */

/* ═════ 1. PREMIUM PALETTE — Obsidian / Champagne / Ivory ═════ */
:root {
  --bg-primary: #050508;
  --bg-secondary: #0B0B12;
  --bg-tertiary: #10101A;
  --bg-card: rgba(14, 14, 22, 0.72);
  --bg-card-hover: rgba(20, 20, 32, 0.9);
  --bg-glass: rgba(12, 12, 20, 0.6);
  --text-primary: #F8F6F1;
  --text-secondary: #ADA9A0;
  --text-muted: #726E66;
  --border-color: rgba(233, 206, 147, 0.09);
  --border-hover: rgba(233, 206, 147, 0.28);
  --gold: #D4AF6A;
  --gold-bright: #E9CE93;
  --gold-deep: #A8823E;
  --gold-hover: #E9CE93;
  --gold-light: rgba(212, 175, 106, 0.14);
  --gold-glow: rgba(212, 175, 106, 0.45);
  --champagne-gradient: linear-gradient(135deg, #A8823E 0%, #D4AF6A 25%, #F3E3B8 50%, #D4AF6A 75%, #A8823E 100%);
  --royal: #6D5A9E;
  --emerald: #3E7C5B;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --ease-luxe: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.35s var(--ease-luxe);
  --transition-slow: 0.7s var(--ease-luxe);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
  --shadow-md: 0 12px 32px -8px rgba(0,0,0,0.55);
  --shadow-lg: 0 32px 64px -16px rgba(0,0,0,0.65);
  --shadow-gold: 0 8px 40px -6px rgba(212,175,106,0.35);
  --shadow-gold-lg: 0 20px 70px -10px rgba(212,175,106,0.45);
  /* Consistent spacing scale */
  --space-xs: 8px; --space-sm: 16px; --space-md: 24px;
  --space-lg: 40px; --space-xl: 64px; --space-2xl: 96px; --space-3xl: 140px;
}

[data-theme="light"] {
  --bg-primary: #FAF7F0;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F3EDE0;
  --bg-card: rgba(255,255,255,0.92);
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(250,247,240,0.85);
  --text-primary: #26221C;
  --text-secondary: #6B655B;
  --text-muted: #9B958A;
  --border-color: rgba(168,130,62,0.16);
  --border-hover: rgba(168,130,62,0.4);
  --gold: #B08D46;
  --gold-bright: #C9A55C;
  --gold-deep: #8A6B2E;
  --gold-light: rgba(176,141,70,0.1);
  --gold-glow: rgba(176,141,70,0.3);
  --shadow-gold: 0 8px 40px -6px rgba(176,141,70,0.25);
}

/* ═════ 2. GLOBAL BASE UPGRADES ═════ */
html { scroll-padding-top: 90px; }

body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(212,175,106,0.055), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(109,90,158,0.05), transparent 60%),
    var(--bg-primary);
  letter-spacing: 0.01em;
}

/* Fine-grain film grain for cinematic depth */
body::before {
  content: "";
  position: fixed; inset: 0;
  width: auto; height: auto;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none; z-index: 1;
  animation: none;
}
body::after {
  content: "";
  position: fixed;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(212,175,106,0.05), transparent 65%);
  top: -22vh; right: -18vw;
  pointer-events: none; z-index: 0;
  animation: luxeAmbient 26s ease-in-out infinite;
  bottom: auto; left: auto;
}
@keyframes luxeAmbient {
  0%,100% { opacity: 0.55; transform: translate3d(0,0,0) scale(1); }
  33% { opacity: 0.95; transform: translate3d(-40px,30px,0) scale(1.08); }
  66% { opacity: 0.7; transform: translate3d(20px,-20px,0) scale(1.04); }
}

::selection { background: rgba(212,175,106,0.35); color: #fff; }

/* Luxe scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-deep), var(--gold));
  border-radius: 8px; border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-bright); }

/* ═════ 3. SIGNATURE KEYFRAMES — MAX ANIMATIONS ═════ */
@keyframes luxeFadeUp { from { opacity:0; transform: translateY(36px); } to { opacity:1; transform: translateY(0); } }
@keyframes luxeFadeDown { from { opacity:0; transform: translateY(-24px); } to { opacity:1; transform: translateY(0); } }
@keyframes luxeScaleIn { from { opacity:0; transform: scale(0.92); } to { opacity:1; transform: scale(1); } }
@keyframes luxeBlurIn { from { opacity:0; filter: blur(14px); transform: scale(1.03); } to { opacity:1; filter: blur(0); transform: scale(1); } }
@keyframes luxeSlideLeft { from { opacity:0; transform: translateX(48px); } to { opacity:1; transform: translateX(0); } }
@keyframes luxeSlideRight { from { opacity:0; transform: translateX(-48px); } to { opacity:1; transform: translateX(0); } }
@keyframes textShine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 24px rgba(212,175,106,0.18), 0 0 0 1px rgba(212,175,106,0.18) inset; }
  50% { box-shadow: 0 0 56px rgba(212,175,106,0.4), 0 0 0 1px rgba(212,175,106,0.35) inset; }
}
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes sheenSweep {
  0% { transform: translateX(-150%) skewX(-20deg); }
  100% { transform: translateX(250%) skewX(-20deg); }
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes goldDust {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-110vh) translateX(30px); opacity: 0; }
}
@keyframes rippleFx {
  to { transform: scale(4); opacity: 0; }
}
@keyframes shakeX {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-8px); }
  40%,80% { transform: translateX(8px); }
}
@keyframes successPop {
  0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); }
}
@keyframes auroraMove {
  0%,100% { transform: translate(0,0) rotate(0deg) scale(1); }
  33% { transform: translate(6%, -4%) rotate(6deg) scale(1.1); }
  66% { transform: translate(-5%, 5%) rotate(-4deg) scale(0.96); }
}
@keyframes otpPulse {
  0% { box-shadow: 0 0 0 0 rgba(212,175,106,0.5); }
  100% { box-shadow: 0 0 0 12px rgba(212,175,106,0); }
}

/* ═════ 4. SCROLL PROGRESS BAR ═════ */
#luxe-scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--champagne-gradient);
  background-size: 200% 100%;
  animation: borderFlow 4s linear infinite;
  z-index: 100000;
  box-shadow: 0 0 12px rgba(212,175,106,0.7);
  transition: width 0.12s ease-out;
}

/* ═════ 5. GRADIENT / SHINE TEXT ═════ */
.text-gradient-gold, .luxury-hero h1 .gold, .gold-shine {
  background: linear-gradient(110deg, #A8823E 20%, #F3E3B8 40%, #D4AF6A 50%, #F3E3B8 60%, #A8823E 80%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 5s linear infinite;
}

/* ═════ 6. BUTTONS — Champagne with sheen sweep + spring hover ═════ */
.btn-premium, .luxury-btn, .login-button, button[type="submit"].w-full {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-luxe), filter 0.3s ease;
  will-change: transform;
}
.btn-premium::after, .luxury-btn::after, .login-button::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 40%;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-150%) skewX(-20deg);
  pointer-events: none;
}
.btn-premium:hover::after, .luxury-btn:hover::after, .login-button:hover::after {
  animation: sheenSweep 0.9s var(--ease-luxe);
}
.btn-premium:hover, .luxury-btn:hover, .login-button:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: var(--shadow-gold-lg);
}
.btn-premium:active, .luxury-btn:active, .login-button:active {
  transform: translateY(-1px) scale(0.985);
}

/* Ripple element injected by luxury-fx.js */
.luxe-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: rippleFx 0.65s var(--ease-luxe) forwards;
  pointer-events: none;
}

/* ═════ 7. GLASS CARDS + SPOTLIGHT HOVER ═════ */
.contact-card, .luxury-product-card, .card-shine, .glass-card, .hero-stat,
.feature-card, .partner-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--border-color);
  transition: transform 0.45s var(--ease-luxe), box-shadow 0.45s var(--ease-luxe), border-color 0.35s ease;
}
.luxe-spotlight { position: relative; overflow: hidden; }
.luxe-spotlight::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(212,175,106,0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.luxe-spotlight:hover::before { opacity: 1; }

.luxury-product-card:hover, .contact-card:hover, .glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}
.luxury-product-card img { transition: transform 0.8s var(--ease-luxe); }
.luxury-product-card:hover img { transform: scale(1.07); }

/* Animated gold border for featured elements */
.luxe-border-flow {
  position: relative;
  background-clip: padding-box;
}
.luxe-border-flow::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent 20%, rgba(212,175,106,0.7), rgba(243,227,184,0.9), rgba(212,175,106,0.7), transparent 80%);
  background-size: 300% 300%;
  animation: borderFlow 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ═════ 8. INPUTS & TEXT BOXES — floating focus, useful & beautiful ═════ */
.premium-input, .form-input, input[type="text"], input[type="email"],
input[type="password"], input[type="tel"], input[type="number"],
input[type="search"], textarea, select {
  background: rgba(255,255,255,0.035) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-primary) !important;
  padding: 15px 18px !important;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, transform 0.25s var(--ease-luxe);
  caret-color: var(--gold);
}
[data-theme="light"] .premium-input, [data-theme="light"] .form-input,
[data-theme="light"] input, [data-theme="light"] textarea, [data-theme="light"] select {
  background: #FFFFFF !important;
  border-color: rgba(168,130,62,0.25) !important;
}
.premium-input::placeholder, input::placeholder, textarea::placeholder {
  color: var(--text-muted); opacity: 0.8;
}
.premium-input:hover, .form-input:hover, input:hover, textarea:hover {
  border-color: rgba(212,175,106,0.28) !important;
  background: rgba(255,255,255,0.05) !important;
}
.premium-input:focus, .form-input:focus, input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 4px rgba(212,175,106,0.14), 0 8px 24px -8px rgba(212,175,106,0.25) !important;
  background: rgba(255,255,255,0.055) !important;
  transform: translateY(-1px);
}
textarea { min-height: 140px; resize: vertical; }

/* Field with icon + inline validation */
.luxe-field { position: relative; margin-bottom: 22px; }
.luxe-field .luxe-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-secondary);
  margin-bottom: 9px;
}
.luxe-field .luxe-label i { color: var(--gold); font-size: 12px; }
.luxe-field .field-icon {
  position: absolute; right: 16px; bottom: 15px;
  color: var(--text-muted); font-size: 14px;
  transition: color 0.3s ease, transform 0.3s var(--ease-spring);
  cursor: pointer;
  background: none; border: none;
}
.luxe-field .field-icon:hover { color: var(--gold); transform: scale(1.15); }
.luxe-field.valid input { border-color: rgba(62,124,91,0.6) !important; }
.luxe-field.invalid input { border-color: rgba(220,80,80,0.6) !important; animation: shakeX 0.5s ease; }
.luxe-hint { font-size: 12px; color: var(--text-muted); margin-top: 7px; display: flex; align-items: center; gap: 6px; }

/* Character counter for textareas */
.luxe-char-count {
  position: absolute; right: 12px; bottom: 10px;
  font-size: 11px; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* ═════ 9. NAVBAR POLISH ═════ */
#main-navbar {
  backdrop-filter: blur(24px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.4) !important;
  border-bottom: 1px solid var(--border-color) !important;
  transition: transform 0.4s var(--ease-luxe), background 0.4s ease, box-shadow 0.4s ease !important;
}
.nav-link { position: relative; transition: color 0.3s ease; }
.nav-link::after {
  content: "";
  position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 2px;
  background: var(--champagne-gradient);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.35s var(--ease-luxe);
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }

/* ═════ 10. SECTION RHYTHM — proper padding everywhere ═════ */
section, .section { padding: clamp(64px, 8vw, 120px) clamp(20px, 5vw, 48px); }
.max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl { padding-left: clamp(16px, 3vw, 32px); padding-right: clamp(16px, 3vw, 32px); }
.luxury-hero { padding-top: clamp(110px, 14vh, 170px) !important; padding-bottom: clamp(70px, 9vh, 120px) !important; }
footer { padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 48px) 32px !important; }
.section-heading, h2.section-title { margin-bottom: clamp(32px, 4vw, 56px); }

/* ═════ 11. REVEAL SYSTEM (driven by luxury-fx.js) ═════ */
[data-reveal] { opacity: 0; will-change: transform, opacity; }
[data-reveal].revealed { animation: luxeFadeUp 0.9s var(--ease-luxe) forwards; }
[data-reveal="left"].revealed { animation-name: luxeSlideRight; }
[data-reveal="right"].revealed { animation-name: luxeSlideLeft; }
[data-reveal="scale"].revealed { animation-name: luxeScaleIn; }
[data-reveal="blur"].revealed { animation-name: luxeBlurIn; }
.reveal, .fade-up { transition: opacity 0.9s var(--ease-luxe), transform 0.9s var(--ease-luxe); }

/* Stagger children utility */
.luxe-stagger > * { opacity: 0; }
.luxe-stagger.revealed > * { animation: luxeFadeUp 0.8s var(--ease-luxe) forwards; }
.luxe-stagger.revealed > *:nth-child(1) { animation-delay: 0.05s; }
.luxe-stagger.revealed > *:nth-child(2) { animation-delay: 0.13s; }
.luxe-stagger.revealed > *:nth-child(3) { animation-delay: 0.21s; }
.luxe-stagger.revealed > *:nth-child(4) { animation-delay: 0.29s; }
.luxe-stagger.revealed > *:nth-child(5) { animation-delay: 0.37s; }
.luxe-stagger.revealed > *:nth-child(6) { animation-delay: 0.45s; }
.luxe-stagger.revealed > *:nth-child(n+7) { animation-delay: 0.53s; }

/* ═════ 12. PAGE TRANSITION ═════ */
.page-transition { animation: luxeBlurIn 0.55s var(--ease-luxe); }

/* ═════ 13. TOASTS — glass, gold accent ═════ */
#toast-container > div {
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--border-color) !important;
  border-left: 3px solid var(--gold) !important;
  box-shadow: var(--shadow-md), 0 0 24px rgba(212,175,106,0.12);
  animation: luxeSlideLeft 0.5s var(--ease-spring);
  border-radius: var(--radius-md) !important;
}

/* ═════ 14. LOGIN v6 — "SHOCK & AWE" AUTH EXPERIENCE ═════ */
.auth-v6 {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Left cinematic panel */
.auth-v6-visual {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(40px, 5vw, 72px);
  overflow: hidden;
  border-right: 1px solid var(--border-color);
  min-height: 100vh;
}
.auth-v6-visual .aurora {
  position: absolute; inset: -20%;
  background:
    radial-gradient(42% 42% at 28% 32%, rgba(212,175,106,0.22), transparent 70%),
    radial-gradient(38% 38% at 72% 62%, rgba(109,90,158,0.2), transparent 70%),
    radial-gradient(30% 30% at 55% 25%, rgba(62,124,91,0.14), transparent 70%);
  filter: blur(48px);
  animation: auroraMove 18s ease-in-out infinite;
}
.auth-v6-visual .visual-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.35;
  mix-blend-mode: luminosity;
  transition: opacity 1.2s ease;
}
.auth-v6-visual .visual-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 50% 50%, transparent 30%, rgba(5,5,8,0.85) 100%);
}
.auth-v6-visual .brand-row {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  animation: luxeFadeDown 0.9s var(--ease-luxe) both;
}
.auth-v6-visual .brand-row img {
  width: 52px; height: 52px; object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(212,175,106,0.55));
}
.auth-v6-visual .visual-copy { position: relative; z-index: 2; max-width: 520px; }
.auth-v6-visual .visual-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 22px;
  animation: luxeFadeUp 0.9s 0.15s var(--ease-luxe) both;
}
.auth-v6-visual .visual-copy .eyebrow::before {
  content: ""; width: 36px; height: 1px; background: var(--champagne-gradient);
}
.auth-v6-visual .visual-copy h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 1.12; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  animation: luxeBlurIn 1.1s 0.25s var(--ease-luxe) both;
}
.auth-v6-visual .visual-copy p {
  font-size: 1.02rem; color: var(--text-secondary); line-height: 1.7;
  animation: luxeFadeUp 0.9s 0.4s var(--ease-luxe) both;
}
.auth-v6-visual .trust-row {
  position: relative; z-index: 2;
  display: flex; gap: clamp(20px, 3vw, 44px); flex-wrap: wrap;
  animation: luxeFadeUp 0.9s 0.55s var(--ease-luxe) both;
}
.auth-v6-visual .trust-item { display: flex; flex-direction: column; gap: 4px; }
.auth-v6-visual .trust-item b {
  font-size: 1.5rem; font-weight: 800; color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.auth-v6-visual .trust-item span {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
}

/* Right form panel */
.auth-v6-panel {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 64px);
  position: relative;
  min-height: 100vh;
}
.auth-v6-panel .panel-glow {
  position: absolute; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(212,175,106,0.09), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
  border-radius: 50%;
}
.auth-card-v6 {
  position: relative; z-index: 2;
  width: 100%; max-width: 460px;
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: clamp(30px, 4vw, 48px);
  box-shadow: var(--shadow-lg), 0 0 80px -20px rgba(212,175,106,0.2);
  animation: luxeScaleIn 0.8s 0.2s var(--ease-spring) both;
}
.auth-card-v6 .auth-head { text-align: center; margin-bottom: 30px; }
.auth-card-v6 .auth-head .badge-secure {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid var(--border-color);
  background: var(--gold-light);
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 18px;
}
.auth-card-v6 h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 700;
  color: var(--text-primary); margin-bottom: 8px;
}
.auth-card-v6 .auth-sub { font-size: 0.94rem; color: var(--text-secondary); }

/* Auth mode tabs */
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 5px; gap: 5px;
  margin-bottom: 26px;
  position: relative;
}
.auth-tab {
  padding: 11px 8px;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-secondary);
  background: transparent; border: none; cursor: pointer;
  transition: all 0.35s var(--ease-luxe);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-tab i { font-size: 12px; }
.auth-tab.active {
  background: linear-gradient(135deg, rgba(212,175,106,0.22), rgba(212,175,106,0.1));
  color: var(--gold-bright);
  box-shadow: 0 4px 16px -4px rgba(212,175,106,0.3), inset 0 0 0 1px rgba(212,175,106,0.3);
}
.auth-mode { display: none; }
.auth-mode.active { display: block; animation: luxeFadeUp 0.5s var(--ease-luxe); }

/* OTP boxes v6 */
.otp-grid-v6 {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px; margin: 18px 0;
}
.otp-box-v6 {
  aspect-ratio: 0.88;
  text-align: center;
  font-size: 24px !important; font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0 !important;
  border-radius: var(--radius-md) !important;
  transition: all 0.25s var(--ease-spring);
}
.otp-box-v6:focus { transform: translateY(-3px) scale(1.05); animation: otpPulse 1.2s ease-out; }
.otp-box-v6.filled {
  border-color: var(--gold) !important;
  background: var(--gold-light) !important;
  color: var(--gold-bright) !important;
}

/* OTP meta row */
.otp-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--text-muted); margin-bottom: 18px;
}
.otp-meta .otp-timer { color: var(--gold-bright); font-weight: 600; font-variant-numeric: tabular-nums; }
.otp-meta button {
  background: none; border: none; color: var(--gold);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: color 0.25s ease;
}
.otp-meta button:hover:not(:disabled) { color: var(--gold-bright); text-decoration: underline; }
.otp-meta button:disabled { color: var(--text-muted); cursor: not-allowed; }

/* Primary auth button */
.auth-btn-v6 {
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: none; cursor: pointer;
  font-size: 15px; font-weight: 700; letter-spacing: 0.03em;
  color: #171204;
  background: var(--champagne-gradient);
  background-size: 200% auto;
  box-shadow: var(--shadow-gold);
  position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, background-position 0.6s ease;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.auth-btn-v6:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold-lg); background-position: right center; }
.auth-btn-v6:active { transform: translateY(-1px) scale(0.98); }
.auth-btn-v6:disabled { opacity: 0.65; cursor: wait; transform: none; }
.auth-btn-v6 .btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(23,18,4,0.25); border-top-color: #171204;
  border-radius: 50%;
  animation: ringSpin 0.7s linear infinite;
  display: none;
}
.auth-btn-v6.loading .btn-spinner { display: inline-block; }
.auth-btn-v6.loading .btn-label { opacity: 0.75; }

/* Secondary + links */
.auth-alt-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 6px 0 20px; font-size: 13px;
}
.auth-alt-row a, .auth-link {
  color: var(--gold); font-weight: 600;
  transition: color 0.25s ease;
}
.auth-alt-row a:hover, .auth-link:hover { color: var(--gold-bright); text-decoration: underline; }
.auth-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0;
  color: var(--text-muted); font-size: 11.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}
.auth-foot { text-align: center; font-size: 13.5px; color: var(--text-secondary); }

/* Error / success banners */
.auth-error-v6, .auth-success-v6 {
  display: none;
  align-items: flex-start; gap: 10px;
  font-size: 13.5px; line-height: 1.5;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.auth-error-v6.show { display: flex; animation: shakeX 0.5s ease; }
.auth-success-v6.show { display: flex; animation: luxeScaleIn 0.4s var(--ease-spring); }
.auth-error-v6 { background: rgba(220,80,80,0.1); border: 1px solid rgba(220,80,80,0.3); color: #F0A3A3; }
.auth-success-v6 { background: rgba(62,124,91,0.12); border: 1px solid rgba(62,124,91,0.35); color: #9BD8B4; }

/* Password strength v6 */
.pw-meter-v6 { display: flex; gap: 6px; margin-top: 10px; }
.pw-meter-v6 span {
  flex: 1; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,0.08);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.pw-meter-v6[data-score="1"] span:nth-child(-n+1) { background: #E05555; }
.pw-meter-v6[data-score="2"] span:nth-child(-n+2) { background: #E0A155; }
.pw-meter-v6[data-score="3"] span:nth-child(-n+3) { background: #D4AF6A; box-shadow: 0 0 8px rgba(212,175,106,0.5); }
.pw-meter-v6[data-score="4"] span { background: #3E9C6B; box-shadow: 0 0 8px rgba(62,156,107,0.5); }
.pw-label-v6 { font-size: 11.5px; margin-top: 7px; color: var(--text-muted); }

/* Success overlay after login (shock factor) */
#auth-success-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,5,8,0.88);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
#auth-success-overlay.show { opacity: 1; pointer-events: auto; }
#auth-success-overlay .success-inner { text-align: center; }
#auth-success-overlay .success-ring {
  width: 110px; height: 110px; margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 1px solid rgba(212,175,106,0.45);
  display: flex; align-items: center; justify-content: center;
  animation: successPop 0.7s var(--ease-spring), glowPulse 2.4s ease-in-out infinite;
}
#auth-success-overlay .success-ring i { font-size: 44px; color: var(--gold-bright); }
#auth-success-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem; color: var(--text-primary); margin-bottom: 8px;
  animation: luxeFadeUp 0.6s 0.2s var(--ease-luxe) both;
}
#auth-success-overlay p { color: var(--text-secondary); animation: luxeFadeUp 0.6s 0.35s var(--ease-luxe) both; }

/* Gold dust particles container (login + hero) */
.luxe-particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1;
}
.luxe-particles .dust {
  position: absolute; bottom: -10px;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px 1px rgba(212,175,106,0.65);
  animation: goldDust linear infinite;
}

/* ═════ 15. INVOICE — $100M presentation ═════ */
.invoice-container {
  background: #FFFFFF !important;
  border-radius: 18px !important;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,0.55), 0 0 0 1px rgba(212,175,106,0.25) !important;
  position: relative;
  overflow: hidden;
}
.invoice-container::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--champagne-gradient);
  background-size: 200% auto;
}
.invoice-container::after {
  content: "M R INTERNATIONAL";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(-28deg);
  font-size: 84px; font-weight: 900; letter-spacing: 12px;
  color: rgba(184,148,79,0.045);
  white-space: nowrap; pointer-events: none;
}
.invoice-header { border-bottom: 2px solid #D4AF6A !important; position: relative; }
.invoice-table th {
  background: linear-gradient(135deg, #171204, #2E2410) !important;
  color: #E9CE93 !important;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px !important;
}
.invoice-table tr:nth-child(even) td { background: #FBF7EE; }
.invoice-table tr:hover td { background: #F6EEDD; }

/* ═════ 16. CHATBOT WINDOW POLISH ═════ */
#chat-window {
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-lg), 0 0 60px -12px rgba(212,175,106,0.25) !important;
  backdrop-filter: blur(24px) !important;
  animation: luxeScaleIn 0.45s var(--ease-spring);
}
#chat-toggle {
  animation: floatY 4s ease-in-out infinite;
  box-shadow: var(--shadow-gold) !important;
}

/* ═════ 17. LOADER v6 ═════ */
#loader h2 { animation: textShine 4s linear infinite; }

/* ═════ 18. MOBILE OVERHAUL — phone view fixed ═════ */
@media (max-width: 1024px) {
  .auth-v6 { grid-template-columns: 1fr; }
  .auth-v6-visual {
    min-height: auto;
    padding: 96px clamp(20px, 5vw, 40px) 40px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    gap: 28px;
  }
  .auth-v6-visual .visual-copy h1 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
  .auth-v6-visual .trust-row { display: none; }
  .auth-v6-panel { min-height: auto; padding: 40px 20px 72px; }
}

@media (max-width: 768px) {
  section, .section { padding: 56px 18px; }
  .luxury-hero { padding-top: 96px !important; padding-bottom: 56px !important; }
  .auth-card-v6 { padding: 28px 20px; border-radius: var(--radius-xl); }
  .otp-grid-v6 { gap: 7px; }
  .otp-box-v6 { font-size: 20px !important; border-radius: 10px !important; }
  .auth-tabs { margin-bottom: 20px; }
  .auth-tab { font-size: 12.5px; padding: 10px 4px; }
  body::before { opacity: 0.02; }
  .luxe-spotlight::before { display: none; }
  /* Kill heavy hover transforms on touch */
  .luxury-product-card:hover, .contact-card:hover { transform: none; }
  /* Comfortable tap targets */
  .auth-btn-v6 { padding: 15px 20px; }
  input, select, textarea { font-size: 16px !important; }
  /* Card & grid rhythm */
  .grid { gap: 16px; }
  h1 { letter-spacing: -0.02em; }
  #toast-container { left: 14px; right: 14px; top: auto; bottom: 14px; }
}

@media (max-width: 420px) {
  .auth-v6-visual { padding: 88px 16px 32px; }
  .auth-v6-panel { padding: 28px 14px 60px; }
  .auth-card-v6 { padding: 24px 16px; }
  .otp-box-v6 { font-size: 18px !important; }
  .auth-card-v6 h2 { font-size: 1.45rem; }
}

/* ═════ 19. ACCESSIBILITY & PERFORMANCE ═════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; }
  .luxe-stagger > * { opacity: 1 !important; }
}

@media print {
  body::before, body::after, #luxe-scroll-progress, .luxe-particles { display: none !important; }
  .invoice-container::after { color: rgba(184,148,79,0.06) !important; }
}
