/* ==========================================================================
   SAMMOURTECH DIGITAL STORE — ROYAL DARK GOLD PREMIUM DESIGN v3.0
   ========================================================================== */

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

/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:             #060408;
  --bg-surface:     #0c090f;
  --bg-card:        rgba(18, 12, 24, 0.85);
  --bg-card-hover:  rgba(26, 16, 36, 0.95);
  --bg-glass:       rgba(18, 12, 24, 0.65);

  /* Borders */
  --border:         rgba(255, 200, 50, 0.08);
  --border-hover:   rgba(255, 200, 50, 0.55);
  --border-subtle:  rgba(255, 255, 255, 0.04);

  /* Brand Colors – Gold & Purple */
  --primary:        #ffc832;
  --primary-dim:    #d4a017;
  --primary-glow:   rgba(255, 200, 50, 0.28);

  --accent:         #c084fc;
  --accent-glow:    rgba(192, 132, 252, 0.28);

  --gold-bright:    #ffe066;
  --gold-dim:       #b8860b;

  --success:        #10b981;
  --success-glow:   rgba(16, 185, 129, 0.3);

  --danger:         #f43f5e;
  --warning:        #f59e0b;

  /* Text */
  --text-main:      #f8f0ff;
  --text-secondary: #c4a8e0;
  --text-muted:     #7a5f9a;

  /* Radii */
  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Typography */
  --font-ar:   'Cairo', sans-serif;
  --font-en:   'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Motion */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.3s var(--ease);
  --transition-fast: all 0.15s var(--ease);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Glow Background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 200, 50, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 95% 50%, rgba(192, 132, 252, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 5% 80%, rgba(255, 200, 50, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(10, 6, 16, 0.95) 0%, transparent 80%);
  pointer-events: none;
}

/* Grid Overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,200,50,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,200,50,0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2d1a4a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }

.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.text-white { color: #fff; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* Flexbox Helpers */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header / Navbar ───────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem 0;
  background: rgba(6, 4, 8, 0.72);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 200, 50, 0.12);
  transition: var(--transition);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,200,50,0.35), rgba(192,132,252,0.25), transparent);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── Brand Logo (SammourTech SVG Style) ───────────────────────────────── */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(255, 200, 50, 0.5)) drop-shadow(0 0 24px rgba(192, 132, 252, 0.25));
  transition: var(--transition);
}

.brand-logo:hover .brand-logo-img {
  filter: drop-shadow(0 0 16px rgba(255, 200, 50, 0.7)) drop-shadow(0 0 32px rgba(192, 132, 252, 0.4));
  transform: scale(1.04);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  font-family: var(--font-en);
  background: linear-gradient(135deg, #ffc832 0%, #ffe8a0 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }

/* Buy CTA */
.btn-buy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
  font-weight: 800;
  border: none;
}
.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45);
  filter: brightness(1.1);
  color: #fff;
}
.btn-buy::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}
.btn-buy:hover::after { left: 125%; }

/* Primary – Gold */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #d4a017 100%);
  color: #1a0a00;
  box-shadow: 0 4px 18px rgba(255, 200, 50, 0.25);
  font-weight: 800;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 200, 50, 0.45);
  color: #0a0400;
}

/* Secondary */
.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(255, 200, 50, 0.06);
  border-color: rgba(255, 200, 50, 0.3);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Danger */
.btn-danger {
  background: rgba(244, 63, 94, 0.12);
  color: var(--danger);
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.btn-danger:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--danger);
}

/* Sizes */
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; border-radius: var(--radius-md); }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero-section {
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Floating Orbs */
.hero-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 50, 0.10) 0%, transparent 70%);
  top: -250px;
  right: -150px;
  animation: float-orb 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.08) 0%, transparent 70%);
  bottom: -200px;
  left: -150px;
  animation: float-orb 10s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ── Hero Logo ─────────────────────────────────────────────────────────── */
.hero-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-brand-img {
  height: 72px;
  width: auto;
  filter:
    drop-shadow(0 0 18px rgba(255, 200, 50, 0.6))
    drop-shadow(0 0 40px rgba(255, 200, 50, 0.25))
    drop-shadow(0 0 80px rgba(192, 132, 252, 0.2));
  animation: logo-pulse 4s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 18px rgba(255, 200, 50, 0.6))
      drop-shadow(0 0 40px rgba(255, 200, 50, 0.25));
  }
  50% {
    filter:
      drop-shadow(0 0 28px rgba(255, 200, 50, 0.9))
      drop-shadow(0 0 60px rgba(255, 200, 50, 0.4))
      drop-shadow(0 0 100px rgba(192, 132, 252, 0.3));
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  background: rgba(255, 200, 50, 0.08);
  border: 1px solid rgba(255, 200, 50, 0.28);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(255, 200, 50, 0.25); box-shadow: 0 0 0 0 rgba(255,200,50,0); }
  50% { border-color: rgba(255, 200, 50, 0.6); box-shadow: 0 0 20px rgba(255,200,50,0.12); }
}

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 900;
  margin-bottom: 1.35rem;
  line-height: 1.2;
  background: linear-gradient(160deg, #ffffff 0%, #ffc832 45%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  position: relative;
}

.hero-subtitle {
  color: #c4a8e0;
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 2.75rem;
  line-height: 1.85;
  font-weight: 500;
}

/* Feature Highlights */
.hero-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.hero-feat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #c4a8e0;
  background: rgba(255, 200, 50, 0.04);
  border: 1px solid rgba(255, 200, 50, 0.14);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.hero-feat-item:hover {
  border-color: rgba(255, 200, 50, 0.35);
  color: var(--primary);
  background: rgba(255, 200, 50, 0.08);
  transform: translateY(-2px);
}

.hero-feat-item i { color: var(--primary); width: 16px; height: 16px; }

/* ── Search Bar ────────────────────────────────────────────────────────── */
.search-container {
  max-width: 580px;
  margin: 0 auto 3.5rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1.05rem 1.4rem 1.05rem 3.35rem;
  background: rgba(18, 12, 24, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 200, 50, 0.16);
  border-radius: var(--radius-full);
  color: #fff;
  font-family: inherit;
  font-size: 0.97rem;
  transition: var(--transition);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,200,50,0.04);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow:
    0 0 0 3px rgba(255, 200, 50, 0.12),
    0 8px 36px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(255, 200, 50, 0.08);
  background: rgba(18, 12, 24, 0.95);
}

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

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition);
}

.search-input:focus ~ .search-icon { color: var(--primary); }

/* ── Section Header ─────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
  font-family: var(--font-en);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.6rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 0.75rem auto 0;
  box-shadow: 0 0 12px rgba(255,200,50,0.4);
}

/* ── Software Grid ─────────────────────────────────────────────────────── */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.6rem;
  margin-bottom: 5rem;
}

/* ── Software Card ─────────────────────────────────────────────────────── */
.software-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Top glow line */
.software-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  transition: width 0.45s var(--ease);
}

/* Ambient inner glow */
.software-card::after {
  content: '';
  position: absolute;
  top: -60%;
  right: -60%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 200, 50, 0.04) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.software-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 200, 50, 0.35);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(255, 200, 50, 0.07);
  background: var(--bg-card-hover);
}

.software-card:hover::before { width: 85%; }
.software-card:hover::after { opacity: 1; }

.software-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.software-icon {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1a0e2a, #120820);
  border: 1px solid rgba(255, 200, 50, 0.12);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,200,50,0.05);
}

.software-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.software-meta { flex: 1; min-width: 0; }

.software-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #fff;
}

.software-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* ── Badges ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.58rem;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.badge-version {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.badge-os {
  background: rgba(255, 200, 50, 0.1);
  color: var(--primary);
  border: 1px solid rgba(255, 200, 50, 0.2);
}

.badge-size {
  background: rgba(192, 132, 252, 0.1);
  color: var(--accent);
}

.software-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Price Box ─────────────────────────────────────────────────────────── */
.software-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.price-current {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--primary);
  text-shadow: 0 0 24px rgba(255, 200, 50, 0.4);
}

.price-free {
  color: var(--success);
  font-size: 1.2rem;
  font-weight: 800;
}

.price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-family: var(--font-mono);
}

.software-card-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 200, 50, 0.1);
}

/* ── Card ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

/* ── Modal ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 8, 0.92);
  backdrop-filter: blur(20px) saturate(0.8);
  -webkit-backdrop-filter: blur(20px) saturate(0.8);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s var(--ease);
}

.modal-box {
  background: linear-gradient(180deg, #14082a 0%, #0c0618 100%);
  border: 1px solid rgba(255, 200, 50, 0.22);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.35rem;
  position: relative;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.75),
    0 0 70px rgba(255, 200, 50, 0.07),
    inset 0 1px 0 rgba(255, 200, 50, 0.1);
}

/* Modal top glow bar */
.modal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,200,50,0.15);
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--danger);
  color: var(--danger);
  transform: rotate(90deg);
}

/* ── Form Elements ─────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: rgba(18, 12, 24, 0.7);
  border: 1px solid rgba(255, 200, 50, 0.12);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 200, 50, 0.12), 0 0 24px rgba(255,200,50,0.06);
  background: rgba(18, 12, 24, 0.92);
}

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

select.form-control {
  cursor: pointer;
  appearance: none;
}

/* ── Skeleton ──────────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #12081e 0%, #1e0e34 50%, #12081e 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

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

/* ── Tags ──────────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.tag-success { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.tag-warning { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.tag-danger  { background: rgba(244, 63, 94, 0.12);  color: var(--danger); }
.tag-primary { background: rgba(255, 200, 50, 0.1);   color: var(--primary); }

/* ── Alert / Notice ────────────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #4ade80;
}
.alert-danger {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.25);
  color: #fb7185;
}
.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

/* ── Table ─────────────────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  padding: 0.75rem 1rem;
  text-align: right;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 200, 50, 0.08);
}

.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:hover td { background: rgba(255, 200, 50, 0.025); }

/* ── Stat Cards ────────────────────────────────────────────────────────── */
.stat-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  opacity: 0.08;
  filter: blur(24px);
}

.stat-card.gold::before { background: var(--primary); }
.stat-card.purple::before { background: var(--accent); }
.stat-card.green::before  { background: var(--success); }
.stat-card.red::before    { background: var(--danger); }

.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 200, 50, 0.1);
  text-align: center;
  background: rgba(6, 4, 8, 0.6);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,200,50,0.3), rgba(192,132,252,0.2), transparent);
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 200, 50, 0.2); }
  50%       { box-shadow: 0 0 35px rgba(255, 200, 50, 0.5); }
}

/* ── Divider ───────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2rem 0;
}

/* ── Download Page ─────────────────────────────────────────────────────── */
.download-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  position: relative;
}

.download-card {
  background: linear-gradient(180deg, #14082a 0%, #0c0618 100%);
  border: 1px solid rgba(255, 200, 50, 0.22);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.75),
    0 0 80px rgba(255, 200, 50, 0.06);
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.download-icon-wrap {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,200,50,0.15), rgba(192,132,252,0.1));
  border: 1px solid rgba(255,200,50,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  box-shadow: 0 0 30px rgba(255,200,50,0.12);
  animation: glow-pulse 3s ease-in-out infinite;
}

.download-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.65rem;
}

.download-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.download-progress {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.download-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 0.5s var(--ease);
  box-shadow: 0 0 12px rgba(255,200,50,0.4);
}

/* ── Timer ─────────────────────────────────────────────────────────────── */
.token-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.token-timer.warning { color: var(--warning); }
.token-timer.danger  { color: var(--danger); }

/* ── Admin Panel ───────────────────────────────────────────────────────── */
.admin-header {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 200, 50, 0.1);
  margin-bottom: 2rem;
}

.admin-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.admin-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── Login Page ─────────────────────────────────────────────────────────── */
.login-card {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem;
  background: linear-gradient(180deg, #14082a 0%, #0c0618 100%);
  border: 1px solid rgba(255, 200, 50, 0.18);
  border-radius: var(--radius-xl);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(255, 200, 50, 0.06);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

/* ── Stats Grid ────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { padding: 3.5rem 0 2.5rem; }
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.75rem); }
  .hero-subtitle { font-size: 1rem; }
  .software-grid { grid-template-columns: 1fr; }
  .hero-brand-img { height: 56px; }
  .modal-box { padding: 1.75rem; }
  .download-card { padding: 2rem 1.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-features { gap: 0.6rem; }
  .hero-feat-item { font-size: 0.78rem; padding: 0.38rem 0.8rem; }
  .brand-name { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .software-card { padding: 1.35rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 0.85rem 1.5rem; font-size: 0.92rem; }
  .hero-title { font-size: 1.8rem; }
}

/* ── Input File ────────────────────────────────────────────────────────── */
.file-drop-zone {
  border: 2px dashed rgba(255, 200, 50, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255, 200, 50, 0.02);
}

.file-drop-zone:hover {
  border-color: rgba(255, 200, 50, 0.45);
  background: rgba(255, 200, 50, 0.05);
}

.file-drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(255, 200, 50, 0.08);
  box-shadow: 0 0 30px rgba(255, 200, 50, 0.1);
}

/* ── Upload Progress ───────────────────────────────────────────────────── */
.upload-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 0.4s var(--ease);
  box-shadow: 0 0 14px rgba(255, 200, 50, 0.4);
}

/* ── Tooltip / Copy ────────────────────────────────────────────────────── */
.copy-btn {
  cursor: pointer;
  background: rgba(255, 200, 50, 0.06);
  border: 1px solid rgba(255, 200, 50, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
  font-family: var(--font-en);
}

.copy-btn:hover {
  background: rgba(255, 200, 50, 0.14);
  border-color: rgba(255, 200, 50, 0.4);
}

/* ── Section Spacing ───────────────────────────────────────────────────── */
.section-gap { margin-bottom: 3.5rem; }
.section-gap-sm { margin-bottom: 2rem; }

/* ── Shine / Shimmer ───────────────────────────────────────────────────── */
.shine {
  position: relative;
  overflow: hidden;
}
.shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: skewX(-25deg);
  animation: shine 3.5s infinite;
}
@keyframes shine {
  0%   { left: -75%; }
  30%  { left: 125%; }
  100% { left: 125%; }
}

/* ── Glow Text ─────────────────────────────────────────────────────────── */
.glow-gold {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(255, 200, 50, 0.5), 0 0 40px rgba(255, 200, 50, 0.2);
}
.glow-purple {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(192, 132, 252, 0.5), 0 0 40px rgba(192, 132, 252, 0.2);
}

/* ── No Results ────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* ── Announcement Bar ──────────────────────────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, rgba(255,200,50,0.1), rgba(192,132,252,0.08), rgba(255,200,50,0.1));
  border-bottom: 1px solid rgba(255, 200, 50, 0.12);
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.03em;
}

/* ── Payment success ───────────────────────────────────────────────────── */
.success-icon-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 2px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: glow-pulse 3s ease-in-out infinite;
}
