/* ============================================================
   COIIN.X — Design System
   الهوية البصرية الكاملة — أسود فحمي وذهبي فاخر
   ============================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* الألوان الأساسية */
  --gold-primary:    #C8A94A;
  --gold-light:      #E8C96A;
  --gold-dark:       #9A7C2C;
  --gold-glow:       rgba(200, 169, 74, 0.25);
  --gold-gradient:   linear-gradient(135deg, #C8A94A 0%, #F0D878 50%, #C8A94A 100%);

  /* الخلفيات */
  --bg-base:         #050505;
  --bg-dark:         #0A0A0A;
  --bg-card:         #111111;
  --bg-card-hover:   #181818;
  --bg-elevated:     #1A1A1A;
  --bg-input:        #141414;
  --bg-overlay:      rgba(0,0,0,0.7);

  /* الحدود */
  --border-gold:     rgba(200, 169, 74, 0.3);
  --border-subtle:   rgba(255,255,255,0.06);
  --border-medium:   rgba(255,255,255,0.12);

  /* النصوص */
  --text-primary:    #F0F0F0;
  --text-secondary:  #A0A0A0;
  --text-muted:      #606060;
  --text-gold:       #C8A94A;

  /* الظلال */
  --shadow-gold:     0 0 30px rgba(200, 169, 74, 0.15);
  --shadow-card:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-button:   0 4px 20px rgba(200, 169, 74, 0.3);

  /* الانتقالات */
  --transition-fast:   0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* الأشكال */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* المسافات */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* الخطوط */
  --font-primary: 'Tajawal', 'Cairo', Arial, sans-serif;
}

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

html {
  direction: rtl;
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }

.text-gold { color: var(--text-gold); }
.text-muted { color: var(--text-muted); }
.text-secondary-color { color: var(--text-secondary); }

/* ── Gold Gradient Text ───────────────────────────────────── */
.gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}
.btn:hover::before { background: rgba(255,255,255,0.08); }

.btn-gold {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: var(--shadow-button);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 169, 74, 0.45);
  color: #000;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-gold);
  color: var(--text-gold);
}
.btn-outline:hover {
  background: var(--gold-glow);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-subtle);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 40px; font-size: 1.125rem; }
.btn-full { width: 100%; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-smooth);
}

.card-gold {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* ── Form Elements ────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-md); }

.form-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  direction: rtl;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: var(--bg-elevated);
}

.form-control::placeholder { color: var(--text-muted); }

.form-error {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: var(--space-xs);
}

/* ── Navigation ───────────────────────────────────────────── */
.navbar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  padding: 14px 0 !important;
  background: rgba(5, 5, 5, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  transition: all var(--transition-smooth) !important;
  display: block !important;
  box-sizing: border-box !important;
}

.navbar.scrolled {
  padding: 10px 0 !important;
  background: rgba(5, 5, 5, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.6) !important;
  border-bottom-color: var(--border-gold) !important;
}

.navbar-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 var(--space-lg) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

.navbar-logo {
  display: flex !important;
  align-items: center !important;
  gap: var(--space-sm) !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.navbar-logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: var(--space-lg) !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.navbar-nav li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.navbar-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 4px;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-smooth);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--text-gold);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
  transform: scaleX(1);
}

.navbar-actions {
  display: flex !important;
  align-items: center !important;
  gap: var(--space-sm) !important;
  flex-shrink: 0 !important;
}

/* ── Logo Icon ────────────────────────────────────────────── */
.logo-icon {
  width: 44px;
  height: 44px;
  position: relative;
}

.logo-cx {
  font-size: 1rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 30%, rgba(200, 169, 74, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(200, 169, 74, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, #050505 0%, #080808 100%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,169,74,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,74,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at center, black 20%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(200, 169, 74, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--text-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── Section ──────────────────────────────────────────────── */
.section {
  padding: var(--space-3xl) var(--space-lg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(200, 169, 74, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--text-gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-md);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ── Steps/How It Works ───────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  transition: all var(--transition-smooth);
}

.step-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.step-number {
  width: 52px;
  height: 52px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-weight: 800;
  font-size: 1.2rem;
  color: #000;
  box-shadow: var(--shadow-button);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Stats ────────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-xl) var(--space-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: var(--space-xs);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand-name {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.footer-heading {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--text-gold); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Alert / Toast ────────────────────────────────────────── */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.alert-success {
  background: rgba(74, 200, 100, 0.1);
  border: 1px solid rgba(74, 200, 100, 0.3);
  color: #4ac864;
}

.alert-error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff6b6b;
}

.alert-warning {
  background: rgba(200, 169, 74, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--text-gold);
}

/* ── Loading Spinner ──────────────────────────────────────── */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Mobile Menu / Three-Dots Toggle Button ──────────────── */
.hamburger,
.header-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  min-width: 44px !important;
  min-height: 44px !important;
  width: 44px !important;
  height: 44px !important;
  padding: 8px !important;
  background: rgba(200, 169, 74, 0.08) !important;
  border: 1px solid rgba(200, 169, 74, 0.45) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  outline: none !important;
  transition: all var(--transition-fast) !important;
  flex-shrink: 0 !important;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1002;
}

.hamburger:hover,
.header-menu-btn:hover {
  background: rgba(200, 169, 74, 0.16) !important;
  border-color: var(--gold-primary) !important;
  box-shadow: var(--shadow-gold) !important;
}

.hamburger:focus-visible,
.header-menu-btn:focus-visible {
  outline: 2px solid var(--gold-primary) !important;
  outline-offset: 2px !important;
}

/* Three dots / Hamburger icon bars */
.three-dots-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
}

.three-dots-icon .dot,
.hamburger span {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--gold-primary);
  box-shadow: 0 0 4px rgba(240, 216, 120, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.hamburger.active span:nth-child(1),
.header-menu-btn.active .three-dots-icon .dot:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2),
.header-menu-btn.active .three-dots-icon .dot:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3),
.header-menu-btn.active .three-dots-icon .dot:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu Backdrop & Base (Global) */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 2px solid var(--border-gold);
  padding: 16px 20px 24px;
  animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  z-index: 1001;
  max-height: calc(100dvh - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.mobile-menu.open {
  display: block !important;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.mobile-menu-backdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

html.mobile-menu-open,
body.mobile-menu-open {
  overflow: hidden !important;
}

/* ── Responsive Viewports ─────────────────────────────────── */
@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .navbar-nav { display: none !important; }
  .hamburger, .header-menu-btn { display: flex !important; }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 16px !important;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .navbar-container {
    padding: 0 12px !important;
  }
  .navbar-logo-text {
    font-size: 1.25rem !important;
    letter-spacing: 1px !important;
  }
  .navbar-logo .logo-svg svg {
    width: 36px !important;
    height: 36px !important;
  }
}

/* Very Small Mobile: 320px - 430px */
@media (max-width: 480px) {
  .hero-title { font-size: 1.9rem; }
  .hero-cta { flex-direction: column; }
  .btn-lg { padding: 14px 20px; font-size: 0.95rem; }

  .navbar-container {
    padding: 0 10px !important;
  }

  /* Hide secondary ghost login button in top navbar to prevent crowding; it is prominent in mobile menu */
  #nav-login-btn {
    display: none !important;
  }

  #nav-register-btn {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
  }

  .navbar-logo-text {
    font-size: 1.15rem !important;
  }
}

@media (max-width: 360px) {
  .navbar-container {
    padding: 0 8px !important;
    gap: 6px !important;
  }
  .navbar-logo {
    gap: 6px !important;
  }
  .navbar-logo-text {
    font-size: 1.05rem !important;
    letter-spacing: 0.5px !important;
  }
  .navbar-logo .logo-svg svg {
    width: 32px !important;
    height: 32px !important;
  }
  #nav-register-btn {
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
  }
}

/* ── Site Splash Screen ───────────────────────────────────── */
.site-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #060606;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: all;
}

.site-splash.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 74, 0.16) 0%, rgba(200, 169, 74, 0.04) 45%, transparent 70%);
  animation: splashPulse 3s ease-in-out infinite alternate;
}

@keyframes splashPulse {
  0%   { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.splash-composition-wrapper {
  position: relative;
  width: clamp(230px, 68vw, 290px);
  height: clamp(230px, 68vw, 290px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Elegant Rotating Circular Loading Ring surrounding the visual composition */
.splash-orbit-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  animation: splashRingRotate 2.6s linear infinite;
}

.splash-ring-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 16px rgba(240, 216, 120, 0.45));
}

@keyframes splashRingRotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.splash-inner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: splashFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes splashFadeIn {
  0%   { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

.splash-logo-wrap {
  margin: 0 auto 8px;
  width: clamp(54px, 14vw, 72px);
  height: clamp(54px, 14vw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  filter: drop-shadow(0 4px 18px rgba(200, 169, 74, 0.55));
}

.splash-dynamic-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.splash-fallback-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.splash-fallback-logo svg {
  width: 100%;
  height: 100%;
}

.splash-site-name {
  font-size: clamp(1.45rem, 4.6vw, 1.95rem);
  font-weight: 900;
  margin: 0;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2.5px;
  line-height: 1.2;
}

.splash-tagline {
  color: rgba(240, 240, 240, 0.85);
  font-size: clamp(0.8rem, 2.6vw, 0.92rem);
  margin: 14px auto 0;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.95;
  text-align: center;
  max-width: 90vw;
  letter-spacing: 0.3px;
}

.splash-sub-footer {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom, 20px));
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: splashFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
  z-index: 10;
}

.splash-dots-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.s-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px rgba(240, 216, 120, 0.6);
  animation: sDotPulse 1.4s infinite ease-in-out;
}

.s-dot:nth-child(2) { animation-delay: 0.2s; }
.s-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes sDotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.15); opacity: 1; }
}

.splash-preparing-text {
  color: rgba(240, 216, 120, 0.9);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ── Respect Prefers Reduced Motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .site-splash {
    display: none !important;
  }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-in     { animation: fadeInUp 0.6s ease forwards; }
.animate-fade   { animation: fadeIn 0.4s ease forwards; }

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ── Gold Glow Ring ───────────────────────────────────────── */
.glow-ring {
  position: relative;
}
.glow-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--gold-gradient);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}
.glow-ring:hover::before { opacity: 1; }

/* ── Task Card ────────────────────────────────────────────── */
.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all var(--transition-smooth);
}

.task-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.task-reward {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  background: rgba(200, 169, 74, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.task-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-published { background: rgba(74,200,100,0.12); color: #4ac864; border: 1px solid rgba(74,200,100,0.3); }
.badge-pending   { background: rgba(200,169,74,0.12); color: var(--gold-primary); border: 1px solid var(--border-gold); }
.badge-approved  { background: rgba(74,200,100,0.12); color: #4ac864; border: 1px solid rgba(74,200,100,0.3); }
.badge-rejected  { background: rgba(255,80,80,0.12); color: #ff6b6b; border: 1px solid rgba(255,80,80,0.3); }

/* ── Skeleton Loading ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
