/* ==========================================================================
   LUXURY DESIGN SYSTEM & CORE VARIABLES (IRD GROUP)
   ========================================================================== */

:root {
  /* Fonts - Sophisticated Serif and Clean Modern Sans pairing */
  --font-headings: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;

  /* Refined Luxury Dark Mode (Obsidian Warm Slate) */
  --bg-main: #030304;
  --bg-surface: rgba(10, 10, 12, 0.7);
  --bg-surface-solid: #09090b;
  --bg-card: rgba(14, 14, 18, 0.5);
  --bg-input: rgba(6, 6, 8, 0.95);
  
  --border-color: rgba(197, 168, 128, 0.05);
  --border-hover: rgba(197, 168, 128, 0.12);

  --text-main: #f5f4f0; /* Soft Warm Ivory */
  --text-muted: #828a96;
  --text-inverse: #030304;

  /* Luxury Accent (Muted Satin Gold / Warm Bronze) */
  --accent-gold: #c5a880;
  --accent-gold-hover: #b4966e;
  --accent-glow-alpha: rgba(197, 168, 128, 0.04);

  /* State Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;

  /* Effects */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 32px 72px rgba(0, 0, 0, 0.7);
  --glass-blur: blur(28px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

  /* Transition curves */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Luxury Light Mode override (Pristine Warm Linen) */
.theme-light {
  --bg-main: #f6f5f2;
  --bg-surface: rgba(255, 255, 255, 0.8);
  --bg-surface-solid: #ffffff;
  --bg-card: rgba(238, 236, 231, 0.5);
  --bg-input: rgba(255, 255, 255, 0.95);

  --border-color: rgba(150, 125, 91, 0.16);
  --border-hover: rgba(150, 125, 91, 0.32);

  --text-main: #21262d;
  --text-muted: #647084;
  --text-inverse: #ffffff;
  
  --accent-gold: #967d5b;
  --accent-gold-hover: #80694c;
  --accent-glow-alpha: rgba(150, 125, 91, 0.03);
  
  --glass-shadow: 0 8px 32px 0 rgba(150, 125, 91, 0.03);
}

.theme-light .global-luxury-header {
  background: rgba(246, 245, 242, 0.7);
  border-bottom: 1px solid rgba(150, 125, 91, 0.08);
}

/* ==========================================================================
   RESET & CORE LAYOUT
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Headings Serif pairings */
h1, h2, h3, h4, .portal-brand, .shop-brand, .drawer-title, .modal-header h2 {
  font-family: var(--font-headings);
  font-weight: 500;
  letter-spacing: 0.5px;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
  outline: none;
}

/* Custom luxury scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(197, 168, 128, 0.15);
  border-radius: 99px;
  border: 1px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(197, 168, 128, 0.35);
}

/* ==========================================================================
   PERSISTENT GLOBAL LUXURY HEADER (Always static, never breaks translate engine)
   ========================================================================== */

.global-luxury-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 100000;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 5, 7, 0.45);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.portal-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-brand span {
  color: var(--accent-gold);
}

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

.portal-nav-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  transition: var(--transition-fast);
  cursor: pointer;
  text-transform: uppercase;
}
.portal-nav-link:hover, .portal-nav-link.active {
  color: var(--accent-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: var(--transition-fast);
}
.header-icon-btn:hover {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.02);
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: var(--transition-fast);
}
.theme-toggle-btn:hover {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.02);
}

/* --- CUSTOM LUXURY LANGUAGE DROPDOWN SELECT --- */
.luxury-lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-trigger-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  transition: var(--transition-fast);
}
.lang-trigger-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-gold);
}

.lang-trigger-btn i {
  color: var(--accent-gold);
  font-size: 11px;
}

.lang-options-menu {
  position: absolute;
  top: 40px;
  right: 0;
  width: 170px;
  background: rgba(8, 9, 12, 0.95);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-hover);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  z-index: 100002;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-fast);
}
.lang-options-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}
.lang-option:hover {
  color: var(--text-main);
  background: rgba(197, 168, 128, 0.05);
}

/* ==========================================================================
   GLOBAL GOOGLE TRANSLATE BANNER FRAME HACKS (REMOVES WHITE TOP BAR COMPLETE)
   ========================================================================== */

/* Overwrites Google injected top offsets on html and body */
html {
  top: 0px !important;
  margin-top: 0px !important;
}

body {
  top: 0px !important;
  margin-top: 0px !important;
  position: static !important;
}

/* Hides Google translate toolbar banner iframe container */
.goog-te-banner-frame, 
.goog-te-banner-frame.skiptranslate,
.goog-te-banner,
.goog-te-banner.skiptranslate,
iframe.goog-te-banner-frame,
iframe.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
#goog-gt-tt,
#goog-gt-tt.skiptranslate,
.goog-te-balloon-frame,
.goog-te-balloon-frame.skiptranslate {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  top: -9999px !important;
  left: -9999px !important;
  pointer-events: none !important;
}

/* Hide standard google translate element widgets */
#google_translate_element {
  display: none !important;
  visibility: hidden !important;
}

/* ==========================================================================
   GLOBAL INTRO PRELOADER
   ========================================================================== */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #030304;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.logo-animation {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.logo-animation .letter {
  font-size: 64px;
  font-family: var(--font-headings);
  font-weight: 800;
  color: #ffffff;
  display: inline-block;
  letter-spacing: 4px;
  animation: bounceLetter 2s infinite ease-in-out;
  text-shadow: 0 0 30px rgba(197, 168, 128, 0.25);
}

.logo-animation .letter:nth-child(2) {
  animation-delay: 0.15s;
}

.logo-animation .letter:nth-child(3) {
  animation-delay: 0.3s;
}

.progress-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #c5a880, #e2d1b9);
  border-radius: 99px;
  animation: fillProgress 1.6s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

/* ==========================================================================
   AMBIENT FLOATING SHAPES
   ========================================================================== */

.ambient-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.06;
  transition: var(--transition-smooth);
}

.glow-1 {
  width: 50vw;
  height: 50vw;
  top: -15vw;
  right: -15vw;
  background: radial-gradient(circle, var(--accent-gold, #c5a880) 0%, transparent 70%);
}

.glow-2 {
  width: 60vw;
  height: 60vw;
  bottom: -20vw;
  left: -20vw;
  background: radial-gradient(circle, var(--accent-gold, #c5a880) 0%, transparent 70%);
}

/* ==========================================================================
   GLOBAL TOAST MESSAGES SYSTEM
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.toast {
  background: rgba(12, 13, 18, 0.95);
  border-left: 3px solid var(--accent-gold);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  color: #ffffff;
  backdrop-filter: var(--glass-blur);
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
  transform: translateX(120%);
  animation: slideToastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: var(--transition-smooth);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.toast.toast-success { border-left-color: var(--color-success); }
.toast.toast-warning { border-left-color: var(--color-warning); }
.toast.toast-danger { border-left-color: var(--color-danger); }

.toast i {
  font-size: 16px;
}
.toast-success i { color: var(--color-success); }
.toast-warning i { color: var(--color-warning); }
.toast-danger i { color: var(--color-danger); }

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 11px;
  color: #94a3b8;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes bounceLetter {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translateY(-16px) scale(1.02);
    opacity: 1;
    color: #c5a880;
  }
}

@keyframes fillProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes slideToastIn {
  to {
    transform: translateX(0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (CROSS-DEVICE COMPATIBILITY)
   ========================================================================== */

@media (max-width: 992px) {
  .global-luxury-header {
    padding: 0 4%;
    height: 64px;
  }
  .portal-brand {
    font-size: 16px;
    letter-spacing: 1px;
  }
  .nav-links {
    gap: 16px;
  }
  .portal-nav-link {
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important; /* Hide nav links on mobile/tablets to ensure zero overlap */
  }
  .global-luxury-header {
    padding: 0 16px;
    height: 60px;
  }
  .portal-brand {
    font-size: 15px;
  }
  .header-actions {
    gap: 6px;
  }
  .lang-trigger-btn {
    padding: 4px 8px;
    font-size: 11px;
    height: 30px;
  }
  .lang-trigger-btn span {
    display: none; /* Hide language text label on mobile, keeping globe icon and down arrow */
  }
  .header-icon-btn, .theme-toggle-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  #header-cta-btn .btn {
    padding: 4px 10px !important;
    font-size: 10px !important;
    height: 30px !important;
  }
}

@media (max-width: 480px) {
  .portal-brand span {
    display: none; /* Hide 'GROUP' or 'ADMIN' on tiny phone screens to prevent any overlap */
  }
}

/* ==========================================================================
   GOOGLE TRANSLATE DYNAMIC ELEMENTS SUPPRESSION
   ========================================================================== */
.goog-te-banner-frame, 
.goog-te-banner-frame.skiptranslate,
.goog-te-banner, 
.goog-te-banner.skiptranslate,
iframe.goog-te-banner-frame, 
iframe.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
#goog-gt-tt, 
#goog-gt-tt.skiptranslate,
.goog-te-balloon-frame, 
.goog-te-balloon-frame.skiptranslate {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  top: -9999px !important;
  left: -9999px !important;
}

body, html {
  top: 0px !important;
  margin-top: 0px !important;
}
