/* Radio Atomic — radio-atomic.com
   "Late-night broadcast" identity: warm near-black, electric purple, gold premium. */

:root {
  --bg: #0A0A0F;
  --bg2: #12121C;
  --bg3: #1A1A28;
  --sunken: #060609;
  --purple: #6C63FF;
  --purple-light: #9B94FF;
  --purple-deep: #4C1D95;
  --gold: #F5A623;
  --gold2: #FF6B35;
  --text: #F4F2FF;
  --muted: #9C9AB4;
  --faint: #5C5A70;
  --hairline: rgba(255,255,255,0.08);
  --card: rgba(255,255,255,0.03);
  --max: 1180px;
  --r: 18px;
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: 'Cairo', 'Inter', sans-serif; }

/* Atmospheric background glows */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 12% -5%, rgba(108,99,255,0.18), transparent 60%),
    radial-gradient(55vw 55vw at 100% 8%, rgba(245,166,35,0.10), transparent 55%),
    radial-gradient(50vw 50vw at 50% 110%, rgba(108,99,255,0.10), transparent 60%);
}
/* Subtle grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }

/* Typography */
h1, h2, h3 { font-family: 'Unbounded', 'Cairo', sans-serif; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: 'Cairo', sans-serif; font-weight: 800; letter-spacing: 0; }
.eyebrow {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--purple-light); display: inline-block; margin-bottom: 14px;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-family: 'Cairo', sans-serif; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--purple-light)); color: #fff; box-shadow: 0 10px 30px rgba(108,99,255,0.35); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(108,99,255,0.5); transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1205; box-shadow: 0 10px 30px rgba(245,166,35,0.3); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.05); border-color: var(--hairline); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px);
  background: rgba(10,10,15,0.72); border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Unbounded', 'Cairo', sans-serif; font-weight: 700; font-size: 18px; }
.brand .eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 22px; }
.brand .eq i { width: 3px; background: var(--purple-light); border-radius: 3px; animation: eq 1s ease-in-out infinite; }
.brand .eq i:nth-child(1){height:40%;animation-delay:0s} .brand .eq i:nth-child(2){height:90%;animation-delay:.15s}
.brand .eq i:nth-child(3){height:55%;animation-delay:.3s} .brand .eq i:nth-child(4){height:75%;animation-delay:.45s}
@keyframes eq { 0%,100%{transform:scaleY(.4)} 50%{transform:scaleY(1)} }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { background: rgba(255,255,255,0.05); border: 1px solid var(--hairline); color: var(--text); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; cursor: pointer; }
.lang-toggle:hover { background: rgba(255,255,255,0.1); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* Hero */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
.hero h1 .grad { background: linear-gradient(120deg, var(--purple-light), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 20px; font-size: 1.18rem; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 38px; }
.hero-stats .s strong { font-family: 'Unbounded', sans-serif; font-size: 1.7rem; display: block; }
[dir="rtl"] .hero-stats .s strong { font-family: 'Cairo', sans-serif; }
.hero-stats .s span { color: var(--muted); font-size: 13px; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 26px; border: 1px solid var(--hairline); box-shadow: 0 30px 80px rgba(0,0,0,0.5); aspect-ratio: 16/10; object-fit: cover; }
.hero-visual .glow { position: absolute; inset: -10% -6% auto auto; width: 70%; height: 70%; background: radial-gradient(circle, rgba(108,99,255,0.5), transparent 70%); filter: blur(40px); z-index: -1; }
.float-card {
  position: absolute; bottom: 18px; inset-inline-start: -18px; background: rgba(18,18,28,0.9);
  backdrop-filter: blur(10px); border: 1px solid var(--hairline); border-radius: 16px; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.float-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 12px var(--purple); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* Feature cards */
.grid { display: grid; gap: 18px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-feat {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r); padding: 26px;
  transition: transform .2s ease, border-color .2s ease, background .2s;
}
.card-feat:hover { transform: translateY(-4px); border-color: rgba(108,99,255,0.4); background: rgba(108,99,255,0.05); }
.card-feat .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: rgba(108,99,255,0.14); border: 1px solid rgba(108,99,255,0.3); margin-bottom: 16px; }
.card-feat h3 { font-size: 1.15rem; font-family: 'Inter', sans-serif; font-weight: 700; }
[dir="rtl"] .card-feat h3 { font-family: 'Cairo', sans-serif; }
.card-feat p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }

/* Category showcase */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat {
  position: relative; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; border: 1px solid var(--hairline);
  display: flex; align-items: flex-end; padding: 14px; color: #fff; font-weight: 700; font-size: 15px;
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,6,9,0.15), rgba(6,6,9,0.82)); z-index: -1; }
.cat:hover img { transform: scale(1.08); }
.cat span { text-shadow: 0 2px 8px rgba(0,0,0,0.6); }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step { position: relative; padding: 26px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: 'Unbounded', sans-serif; font-size: 2.2rem; color: var(--purple); opacity: .55; }
.step h3 { font-size: 1.1rem; margin: 8px 0; font-family:'Inter',sans-serif; font-weight:700; }
[dir="rtl"] .step h3 { font-family:'Cairo',sans-serif; }
.step p { color: var(--muted); font-size: .95rem; }

/* Podcaster band */
.band { background: linear-gradient(135deg, rgba(108,99,255,0.12), rgba(245,166,35,0.06)); border: 1px solid var(--hairline); border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.band img { border-radius: 20px; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--hairline); }
.band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.band p { color: var(--muted); margin: 14px 0 22px; }

/* CTA */
.cta-band { text-align: center; background: radial-gradient(60% 120% at 50% 0%, rgba(108,99,255,0.18), transparent), var(--bg2); border: 1px solid var(--hairline); border-radius: 28px; padding: 56px 28px; }
.cta-band h2 { font-size: clamp(1.8rem,4vw,2.8rem); }
.cta-band p { color: var(--muted); margin: 14px auto 26px; max-width: 50ch; }

/* Footer */
footer { border-top: 1px solid var(--hairline); padding: 48px 0 32px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 14px; }
[dir="rtl"] footer h4 { letter-spacing: 0; }
footer ul { list-style: none; display: grid; gap: 10px; }
footer a { color: var(--muted); font-size: 14px; }
footer a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--hairline); color: var(--faint); font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Legal / prose pages */
.prose-hero { padding: 60px 0 20px; }
.prose-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose-hero p { color: var(--muted); margin-top: 12px; }
.prose { max-width: 800px; padding-bottom: 40px; }
.prose h2 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.35rem; margin: 34px 0 12px; color: var(--text); }
[dir="rtl"] .prose h2 { font-family: 'Cairo', sans-serif; }
.prose h3 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.08rem; margin: 22px 0 8px; }
[dir="rtl"] .prose h3 { font-family: 'Cairo', sans-serif; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose ul { padding-inline-start: 22px; margin-bottom: 14px; }
.prose strong { color: var(--text); }
.prose a { color: var(--purple-light); text-decoration: underline; }

/* Upload page */
.upload-wrap { max-width: 640px; margin-inline: auto; }
.upload-card { background: var(--bg2); border: 1px solid var(--hairline); border-radius: 24px; padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--hairline); border-radius: 12px; padding: 13px 15px;
  color: var(--text); font-size: 15px; font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--purple); }
.field textarea { min-height: 90px; resize: vertical; }
.dropzone { border: 1.5px dashed rgba(108,99,255,0.4); border-radius: 16px; padding: 30px; text-align: center; cursor: pointer; transition: .2s; background: rgba(108,99,255,0.04); }
.dropzone:hover { border-color: var(--purple); background: rgba(108,99,255,0.08); }
.dropzone .big { font-size: 34px; }
.dropzone .fn { color: var(--purple-light); font-weight: 700; margin-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 8px 14px; border-radius: 999px; background: var(--bg3); border: 1px solid var(--hairline); cursor: pointer; font-size: 13px; color: var(--muted); }
.tag.on { background: rgba(108,99,255,0.18); border-color: var(--purple); color: var(--purple-light); }
.note { background: rgba(245,166,35,0.08); border: 1px solid rgba(245,166,35,0.25); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--gold); display: flex; gap: 8px; }
.result { border-radius: 14px; padding: 16px; margin-top: 16px; font-size: 14px; }
.result.ok { background: rgba(46,213,115,0.1); border: 1px solid rgba(46,213,115,0.3); color: #6ee7a8; }
.result.pending { background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.3); color: var(--gold); }
.result.bad { background: rgba(255,71,87,0.1); border: 1px solid rgba(255,71,87,0.3); color: #ff8a94; }
.bar { height: 6px; background: var(--bg3); border-radius: 6px; overflow: hidden; margin-top: 14px; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,var(--purple),var(--purple-light)); transition: width .3s; }

/* Account bar */
.acc-bar { background: var(--bg2); border: 1px solid var(--hairline); border-radius: 18px; padding: 18px 20px; margin-bottom: 18px; }
.acc-hint { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.acc-row { display: flex; gap: 10px; margin-bottom: 12px; }
.acc-row input { flex: 1; background: var(--bg); border: 1px solid var(--hairline); border-radius: 11px; padding: 11px 13px; color: var(--text); font-family: inherit; font-size: 14px; }
.acc-row input:focus { outline: none; border-color: var(--purple); }
.acc-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acc-in span { color: var(--text); font-size: 14px; }
@media (max-width: 560px) { .acc-row { flex-direction: column; } }

/* Admin panel */
.admin-gate { max-width: 420px; margin: 60px auto; text-align: center; }
.admin-gate input { width: 100%; background: var(--bg); border: 1px solid var(--hairline); border-radius: 12px; padding: 13px 15px; color: var(--text); font-size: 15px; margin: 14px 0; font-family: inherit; }
.admin-stats { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; margin-bottom: 20px; }
.admin-stat { background: var(--bg2); border: 1px solid var(--hairline); border-radius: 14px; padding: 14px; text-align: center; }
.admin-stat strong { font-family: 'Unbounded', sans-serif; font-size: 1.5rem; display: block; }
.admin-stat span { color: var(--muted); font-size: 12px; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-tab { padding: 9px 16px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--hairline); color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 600; }
.admin-tab.on { background: rgba(108,99,255,0.18); border-color: var(--purple); color: var(--purple-light); }
.mod-card { background: var(--bg2); border: 1px solid var(--hairline); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.mod-card .top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.mod-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 7px; }
.mod-badge.pending { background: rgba(245,166,35,0.15); color: var(--gold); }
.mod-badge.rejected { background: rgba(255,71,87,0.15); color: #ff8a94; }
.mod-badge.approved { background: rgba(46,213,115,0.15); color: #6ee7a8; }
.mod-meta { color: var(--faint); font-size: 12px; margin: 6px 0; }
.mod-reasons { background: rgba(255,71,87,0.07); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: #ff8a94; margin: 8px 0; }
.mod-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.mod-actions button { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--bg3); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 600; }
.mod-actions .ok { background: rgba(46,213,115,0.15); border-color: rgba(46,213,115,0.4); color: #6ee7a8; }
.mod-actions .bad { background: rgba(255,71,87,0.12); border-color: rgba(255,71,87,0.4); color: #ff8a94; }
.mod-actions .play { background: rgba(108,99,255,0.15); border-color: var(--purple); color: var(--purple-light); }
@media (max-width: 700px) { .admin-stats { grid-template-columns: repeat(3,1fr); } }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; }
  .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; } .band img { order: -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; background: var(--bg2); padding: 20px 22px; border-bottom: 1px solid var(--hairline); gap: 16px; }
  .menu-btn { display: block; }
}
@media (max-width: 560px) {
  .cols-3, .cols-4, .cat-grid, .foot-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
}
