/* ==========================================================================
   GOLD ENALTUS - MINIMALIST LUXURY COMING SOON
   Ultra-Clean, Aesthetic, Focused on 3D Motion & Smart Countdown
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Cairo:wght@300;400;600;700;800&family=Cinzel:wght@500;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Obsidian & Metallic Liquid Gold Palette */
  --bg-deep: #040507;
  --bg-card: rgba(12, 16, 24, 0.65);

  --gold-100: #FFFDF0;
  --gold-200: #FFF6D1;
  --gold-300: #FFE699;
  --gold-400: #FFDF73;
  --gold-500: #D4AF37;
  --gold-600: #B8860B;
  --gold-700: #8C6207;

  --gold-gradient: linear-gradient(135deg, #FFF8E1 0%, #F5DE7A 25%, #D4AF37 55%, #996515 85%, #E6C687 100%);
  --gold-gradient-text: linear-gradient(135deg, #FFFFFF 0%, #FFF3B0 30%, #D4AF37 70%, #996515 100%);
  --gold-gradient-btn: linear-gradient(135deg, #D4AF37 0%, #FFDF73 50%, #B8860B 100%);
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-glow-intense: rgba(255, 223, 115, 0.6);

  --border-gold-subtle: rgba(212, 175, 55, 0.2);
  --border-gold-bright: rgba(212, 175, 55, 0.7);

  --text-primary: #FFFFFF;
  --text-secondary: rgba(230, 235, 245, 0.75);
  --text-muted: rgba(200, 205, 220, 0.45);

  /* Typography */
  --font-serif-en: 'Cinzel', Georgia, serif;
  --font-sans-en: 'Outfit', -apple-system, sans-serif;
  --font-serif-ar: 'Amiri', serif;
  --font-sans-ar: 'Cairo', -apple-system, sans-serif;

  --font-title: var(--font-serif-ar);
  --font-body: var(--font-sans-ar);

  --glass-blur: blur(24px) saturate(180%);
  --shadow-gold-card: 0 15px 35px -5px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(212, 175, 55, 0.15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body.is-ltr {
  --font-title: var(--font-serif-en);
  --font-body: var(--font-sans-en);
}

body.is-rtl {
  --font-title: var(--font-serif-ar);
  --font-body: var(--font-sans-ar);
  direction: rtl;
}

/* 3D Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
}

/* Subtle Golden Ambient Glow */
.ambient-glow-top {
  position: fixed;
  top: -15vh;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 50vh;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0.03) 55%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

/* App Container */
.app-container.minimal-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 1.5rem;
}

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

.brand-crest {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(12, 16, 24, 0.85) 100%);
  border: 1px solid var(--border-gold-bright);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
}

.brand-crest::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
  transform: rotate(35deg);
  animation: shineReflect 4s infinite ease-in-out;
}

.brand-crest svg {
  width: 24px;
  height: 24px;
  fill: var(--gold-400);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif-en);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.status-badge-minimal {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-300);
  backdrop-filter: var(--glass-blur);
}

.status-pulse-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00E676;
  box-shadow: 0 0 8px #00E676;
  animation: pulseDot 2s infinite ease-in-out;
}

.icon-btn, .lang-toggle-btn {
  background: rgba(15, 20, 30, 0.6);
  border: 1px solid var(--border-gold-subtle);
  color: var(--gold-300);
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  backdrop-filter: var(--glass-blur);
}

.icon-btn:hover, .lang-toggle-btn:hover {
  border-color: var(--gold-500);
  background: rgba(212, 175, 55, 0.15);
  color: #FFF;
}

.sound-bars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.sound-bars span {
  width: 2px;
  background: var(--gold-400);
  border-radius: 1px;
  height: 4px;
}

.icon-btn.active .sound-bars span:nth-child(1) {
  animation: waveBar 0.8s infinite alternate ease-in-out;
}
.icon-btn.active .sound-bars span:nth-child(2) {
  animation: waveBar 1.1s infinite alternate ease-in-out 0.2s;
}
.icon-btn.active .sound-bars span:nth-child(3) {
  animation: waveBar 0.9s infinite alternate ease-in-out 0.4s;
}

/* ==========================================================================
   CENTER HERO SHOWCASE (CLEAN, BOLD & SPACIOUS)
   ========================================================================== */
.hero-center-showcase {
  text-align: center;
  padding: 2.5rem 1rem;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pretitle-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.25rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Brand Title */
.hero-brand-title {
  font-family: var(--font-serif-en);
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.1em;
  margin-top: 1rem;
  margin-bottom: 3rem;
  display: flex;
  gap: 0.4em;
  justify-content: center;
  flex-wrap: wrap;
  direction: ltr;
}

.brand-word {
  color: #FFFFFF;
}

.gold-shimmer-text {
  background: var(--gold-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldSheen 6s linear infinite;
  text-shadow: 0 0 35px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   OFFICIAL COUNTDOWN (MINIMALIST & CLEAN)
   ========================================================================== */
.minimal-countdown {
  width: 100%;
  max-width: 820px;
  margin-bottom: 2.8rem;
}

.countdown-cycle-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--gold-300);
  margin-bottom: 1.75rem;
  backdrop-filter: var(--glass-blur);
}

.countdown-cycle-badge svg {
  width: 14px;
  height: 14px;
  fill: var(--gold-400);
  animation: spinSlow 12s linear infinite;
}

/* 4 Countdown Cards */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.countdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem 0.75rem 1.4rem;
  text-align: center;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-gold-card);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.countdown-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold-bright);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.85), 0 0 25px rgba(212, 175, 55, 0.25);
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0.85;
}

.card-gauge-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-bg-ring {
  fill: none;
  stroke: rgba(212, 175, 55, 0.1);
  stroke-width: 5;
}

.gauge-progress-ring {
  fill: none;
  stroke: url(#goldRingGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 263.89;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s ease-out;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
}

.countdown-number-val {
  position: absolute;
  font-family: var(--font-serif-en);
  font-size: 2.35rem;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.countdown-unit-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-300);
  text-transform: uppercase;
}

/* Slim Minimal Progress Bar */
.slim-progress-wrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.slim-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.slim-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold-gradient);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 10px var(--gold-glow-intense);
  transition: width 1s ease;
}

/* ==========================================================================
   MINIMAL NOTIFY INPUT BAR
   ========================================================================== */
.minimal-notify-box {
  width: 100%;
  max-width: 540px;
}

.notify-form {
  display: flex;
  background: rgba(14, 18, 26, 0.8);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-pill);
  padding: 5px;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.notify-form:focus-within {
  border-color: var(--gold-400);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.35);
}

.notify-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 1.25rem;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.notify-input::placeholder {
  color: var(--text-muted);
}

.notify-btn {
  height: 46px;
  padding: 0 1.6rem;
  background: var(--gold-gradient-btn);
  color: #0b0d13;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

body.is-rtl .notify-btn svg {
  transform: rotate(180deg);
}

.notify-btn:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.vip-error-msg {
  display: none;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #FF7B7B;
}

.vip-error-msg.visible {
  display: block;
}

.notify-success-badge {
  display: none;
  margin-top: 0.85rem;
  padding: 0.75rem 1.25rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--gold-200);
  animation: fadeInScale 0.4s ease forwards;
}

.notify-success-badge.visible {
  display: block;
}

/* ==========================================================================
   FOOTER (MINIMAL ONE-LINER)
   ========================================================================== */
.minimal-footer {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-divider {
  color: var(--gold-500);
}

.social-links-minimal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 20, 30, 0.6);
  border: 1px solid var(--border-gold-subtle);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.social-link-icon:hover {
  border-color: var(--gold-400);
  background: rgba(212, 175, 55, 0.2);
  color: #FFF;
  transform: translateY(-2px);
}
