/* =========================================================
   TradEx | Maytham Sharhan — Cinematic dark podcast theme
   ========================================================= */

:root {
  /* Brand */
  --orange: #ff6b00;
  --orange-bright: #ff8124;
  --orange-deep: #d94f00;
  --orange-glow: rgba(255, 107, 0, 0.45);

  /* Cinematic dark surfaces */
  --bg: #0a0a0c;
  --bg-2: #0f0f12;
  --panel: #141418;
  --panel-2: #1a1a20;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --ink: #f5f5f7;
  --ink-soft: #b6b6bf;
  --ink-mute: #80808c;

  /* Effects */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 20px 50px rgba(255, 107, 0, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 80px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

img,
iframe {
  max-width: 100%;
  display: block;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cairo", system-ui, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  font-family: "Manrope", system-ui, sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: var(--orange);
  color: #fff;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Shared typography ---------- */
.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--orange-bright);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.4;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 var(--orange-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--orange-glow); }
  70% { box-shadow: 0 0 0 9px rgba(255, 107, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

.btn.primary {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(255, 107, 0, 0.4);
}

.btn.ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.icon-play {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 10px solid currentColor;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  inset-inline: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px var(--pad);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding: 11px var(--pad);
  background: rgba(10, 10, 12, 0.78);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(255, 107, 0, 0.3));
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand-logo {
  transform: scale(1.06) rotate(-3deg);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--ink-mute);
  font-size: 0.72rem;
  font-weight: 700;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 700;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.lang-toggle:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

.lang-toggle .lang-ic {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.lang-toggle svg {
  width: 18px;
  height: 18px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.header-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  transition: all 0.25s var(--ease);
}

.header-social a:hover {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(120px, 16vh, 200px) var(--pad) 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.08);
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.55) 45%, rgba(10, 10, 12, 0.2) 70%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.7) 0%, transparent 30%, rgba(10, 10, 12, 0.96) 100%);
}

.hero-glow {
  position: absolute;
  top: 12%;
  inset-inline-start: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--orange-glow), transparent 65%);
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  flex: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-content h1 {
  margin-bottom: 22px;
}

.hero-lead {
  max-width: 540px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  color: var(--ink-mute);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-stats dd {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.hero-stats dd span {
  color: var(--orange-bright);
}

/* Now-playing card */
.now-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(18, 18, 22, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.2);
}

.now-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.now-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-bright);
  font-size: 0.82rem;
  font-weight: 800;
}

.now-platform {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}

.now-thumb {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.now-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.now-thumb:hover img {
  transform: scale(1.06);
}

.now-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.5));
}

.now-play {
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s var(--ease);
}

.now-thumb:hover .now-play {
  transform: scale(1.12);
}

.now-title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.5;
  margin: 16px 0 10px;
}

.now-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-mute);
  font-size: 0.88rem;
  font-weight: 600;
}

.dot-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}

/* Hero marquee */
.hero-marquee {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: clamp(36px, 5vh, 64px) auto 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.m-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

@keyframes marquee {
  to { transform: translateX(50%); }
}

html[lang="en"] .marquee-track {
  animation-name: marquee-ltr;
}

@keyframes marquee-ltr {
  to { transform: translateX(-50%); }
}

/* =========================================================
   SECTION WRAPPERS
   ========================================================= */
.value-strip,
.episode,
.episodes,
.about,
.guests,
.join {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(64px, 9vw, 130px) var(--pad);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.section-head.narrow {
  max-width: 600px;
}

.section-sub {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* =========================================================
   VALUE STRIP
   ========================================================= */
.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: clamp(50px, 7vw, 90px);
  padding-bottom: clamp(50px, 7vw, 90px);
}

.value-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.value-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.5s var(--ease);
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-num {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--orange-bright);
}

.value-card h3 {
  margin-bottom: 10px;
}

.value-card p {
  color: var(--ink-soft);
}

/* =========================================================
   FEATURED EPISODE
   ========================================================= */
.episode {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 107, 0, 0.08), transparent 70%);
}

.episode-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: 26px;
  align-items: start;
}

.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.episode-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
}

.episode-side h3 {
  margin-bottom: 18px;
}

.chapter-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.chapter-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.chapter-list li:hover {
  background: rgba(255, 107, 0, 0.08);
  transform: translateX(-4px);
}

.chapter-list span {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 107, 0, 0.14);
  color: var(--orange-bright);
  font-size: 0.82rem;
  font-weight: 900;
}

.watch-link {
  width: 100%;
}

.episode-note {
  margin-top: 16px;
  color: var(--ink-mute);
  font-size: 0.9rem;
  text-align: center;
}

/* =========================================================
   ARCHIVE
   ========================================================= */
.episodes {
  background: var(--bg-2);
  max-width: none;
}

.episodes > .section-head,
.episodes > .episode-cards {
  max-width: var(--maxw);
  margin-inline: auto;
}

.episode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ep-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.ep-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.ep-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.ep-card:hover .ep-thumb img {
  transform: scale(1.07);
}

.ep-thumb.placeholder {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px),
    var(--panel-2);
  color: var(--ink-mute);
}

.ep-thumb.placeholder .icon-play {
  border-right-width: 16px;
  border-top-width: 10px;
  border-bottom-width: 10px;
  opacity: 0.4;
}

.ep-badge {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.6);
  color: var(--ink-soft);
  backdrop-filter: blur(6px);
}

.ep-badge.live {
  background: var(--orange);
  color: #fff;
}

.soon .ep-badge {
  position: static;
  align-self: flex-start;
  margin-bottom: 12px;
  background: rgba(255, 107, 0, 0.12);
  color: var(--orange-bright);
}

.ep-play {
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.35s var(--ease);
}

.ep-thumb:hover .ep-play {
  opacity: 1;
  transform: scale(1);
}

.ep-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.ep-cat {
  margin-bottom: 10px;
  color: var(--orange-bright);
  font-size: 0.8rem;
  font-weight: 800;
}

.ep-body h3 {
  margin-bottom: 10px;
}

.ep-body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.ep-link {
  margin-top: 16px;
  color: var(--orange-bright);
  font-weight: 800;
  font-size: 0.95rem;
  transition: opacity 0.25s var(--ease);
}

.ep-link:hover {
  opacity: 0.8;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.about-media {
  display: grid;
  place-items: center;
}

.about-logo-wrap {
  position: relative;
  width: min(330px, 80%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 107, 0, 0.18), transparent 60%);
}

.about-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255, 107, 0, 0.3);
  animation: spin 26s linear infinite;
}

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

.about-logo-wrap img {
  width: 70%;
  filter: drop-shadow(0 18px 40px rgba(255, 107, 0, 0.3));
}

.about-copy h2 {
  margin-bottom: 18px;
}

.about-copy p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 620px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.about-tags span {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 0, 0.28);
  background: rgba(255, 107, 0, 0.08);
  color: var(--orange-bright);
  font-weight: 800;
  font-size: 0.9rem;
}

/* =========================================================
   GUESTS
   ========================================================= */
.guests {
  background:
    radial-gradient(800px 500px at 10% 0%, rgba(255, 107, 0, 0.07), transparent 70%);
}

.guest-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  align-items: stretch;
}

.guest-tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.guest-tab {
  text-align: start;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-soft);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.guest-tab:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.guest-tab.active {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.guest-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 46px);
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
}

.guest-sector {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.12);
  color: var(--orange-bright);
  font-size: 0.84rem;
  font-weight: 800;
}

.guest-card h3 {
  max-width: 680px;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.25;
  margin-bottom: 14px;
}

.guest-card p {
  color: var(--ink-soft);
  font-size: 1.04rem;
  max-width: 640px;
}

.voice-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.voice-points li {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

/* =========================================================
   JOIN
   ========================================================= */
.join {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.join-copy h2 {
  margin-bottom: 16px;
}

.join-copy > p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 480px;
}

.contact-card {
  display: grid;
  gap: 14px;
  max-width: 440px;
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.contact-card > span {
  font-weight: 800;
}

.contact-card .social-links {
  flex-wrap: wrap;
}

.contact-card .social-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 0, 0.25);
  background: rgba(255, 107, 0, 0.08);
  color: var(--orange-bright);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s var(--ease);
}

.contact-card .social-links a:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.join-form {
  display: grid;
  gap: 16px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  box-shadow: var(--shadow);
}

.join-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-mute);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15);
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--orange-bright);
  font-weight: 800;
  font-size: 0.92rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(40px, 5vw, 64px) var(--pad) 28px;
}

.footer-top {
  max-width: var(--maxw);
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.93rem;
  transition: all 0.25s var(--ease);
}

.footer-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: all 0.25s var(--ease);
}

.footer-social a:hover {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-mute);
  font-size: 0.88rem;
}

.footer-bottom strong {
  color: var(--ink-soft);
}

/* =========================================================
   CART BUTTON (header)
   ========================================================= */
.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.cart-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

.cart-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: -5px;
  inset-inline-end: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.5);
}

/* =========================================================
   STORE
   ========================================================= */
/* =========================================================
   STORE — mobile-first compact e-commerce design
   ========================================================= */
.store {
  background:
    radial-gradient(700px 460px at 90% 0%, rgba(255, 107, 0, 0.07), transparent 70%);
}

/* Align every block inside the store on the same centered axis */
.store > .section-head,
.store > .store-toolbar,
.store > .store-grid {
  max-width: 1180px;
  margin-inline: auto;
}

.store-toolbar { margin-bottom: 22px; }

.store-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
  margin: 0 calc(var(--pad) * -1);
  padding-inline: var(--pad);
}
.store-filters::-webkit-scrollbar { display: none; }
.store-filters { scrollbar-width: none; }

.store-filter {
  flex: none;
  scroll-snap-align: start;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.store-filter:hover { border-color: var(--line-strong); color: var(--ink); }
.store-filter.active {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.35);
}

/* Mobile-first grid: 2 columns on phones, 3 on tablets, 4 on desktops
   Capped width so cards never get oversized on big screens. */
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 1180px;
  margin-inline: auto;
}
@media (min-width: 640px)  { .store-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1040px) { .store-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: fadeUp 0.45s var(--ease) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.product:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Image area — shorter so card stays compact on all sizes */
.product-media {
  position: relative;
  aspect-ratio: 5 / 4;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 50% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 75%),
    linear-gradient(180deg, #17171d, #0d0d11);
}
.product-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}
.product-art svg {
  width: clamp(56px, 42%, 110px);
  height: auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 20px color-mix(in srgb, var(--accent) 45%, transparent));
  transition: transform 0.4s var(--ease);
}
.product:hover .product-art svg {
  transform: translateY(-4px) scale(1.06);
}

/* Badges (top corners) */
.product-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
}
.product-badge.hot { background: var(--orange); }
.product-discount {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Card body — compact */
.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 14px 14px;
  gap: 8px;
}
.product-name {
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(0.96rem * 1.35 * 2);
}
.product-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stars {
  direction: ltr;
  position: relative;
  display: inline-block;
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 1.5px;
  color: #3a3a44;
}
.stars::before { content: "★★★★★"; }
.stars i {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  color: #ffb020;
}
.stars i::before { content: "★★★★★"; }
.rating-num { color: var(--ink-soft); font-size: 0.74rem; font-weight: 700; }

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.product-price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.product-price b {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
}
.product-price s {
  color: var(--ink-mute);
  font-size: 0.74rem;
  font-weight: 700;
}

/* Icon-only add button — compact, friendly tap target */
.product-add {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.product-add svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-add:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 22px rgba(255, 107, 0, 0.5);
}
.product-add:active { transform: scale(0.96); }
.product-add.added {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}

/* Tiny screens (≤ 360px) — slightly tighter so 2 cols still breathe */
@media (max-width: 360px) {
  .store-grid { gap: 10px; }
  .product-body { padding: 10px 11px 12px; gap: 6px; }
  .product-name { font-size: 0.9rem; min-height: calc(0.9rem * 1.35 * 2); }
  .product-price b { font-size: 0.94rem; }
  .product-add { width: 36px; height: 36px; }
}

/* =========================================================
   CART DRAWER
   ========================================================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  animation: overlayIn 0.3s var(--ease) forwards;
}

@keyframes overlayIn {
  to { opacity: 1; }
}

.cart-drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.7);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
}

.cart-head h3 {
  font-size: 1.3rem;
}

.cart-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.cart-close:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.cart-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  animation: fadeUp 0.3s var(--ease) both;
}

.cart-item-art {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cart-item-art svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: rgba(0, 0, 0, 0.78);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-info h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
}

.cart-item-info span {
  color: var(--orange-bright);
  font-size: 0.86rem;
  font-weight: 800;
}

.cart-item-side {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}

.qty button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.qty button:hover {
  background: rgba(255, 107, 0, 0.18);
  color: var(--orange-bright);
}

.qty span {
  min-width: 26px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.cart-remove {
  border: 0;
  background: none;
  color: var(--ink-mute);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.cart-remove:hover {
  color: #ff5a5a;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px;
  text-align: center;
  color: var(--ink-mute);
}

.cart-empty svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
  margin-bottom: 6px;
}

.cart-empty p {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.cart-empty span {
  font-size: 0.9rem;
}

.cart-foot {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  gap: 14px;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
}

.cart-total strong {
  font-size: 1.3rem;
  color: var(--orange-bright);
}

.order-fields {
  display: grid;
  gap: 10px;
}

.order-fields input,
.order-fields textarea {
  padding: 12px 14px;
  font-size: 0.92rem;
}

.order-note {
  min-height: 20px;
  margin: 0;
  color: #4ade80;
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
}

/* =========================================================
   SUBSCRIBE STRIP
   ========================================================= */
.subscribe {
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(255, 107, 0, 0.06), transparent 70%),
    var(--bg-2);
  padding: clamp(64px, 9vw, 110px) var(--pad);
  border-block: 1px solid var(--line);
}

.subscribe-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.subscribe-copy {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
  text-align: center;
  margin-inline: auto;
}

.subscribe-copy .section-label {
  justify-content: center;
}

.subscribe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sub-card {
  --sub-color: var(--orange);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.sub-card:hover {
  transform: translateY(-4px);
  border-color: var(--sub-color);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--sub-color) 22%, transparent);
}

.sub-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--sub-color) 18%, #000 0%);
  color: var(--sub-color);
  flex: none;
}

.sub-ic svg {
  width: 26px;
  height: 26px;
  display: block;
}

.sub-meta {
  display: grid;
  line-height: 1.2;
}

.sub-meta small {
  color: var(--ink-mute);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.sub-meta strong {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink);
}

.sub-yt { --sub-color: #ff3030; }
.sub-sp { --sub-color: #1ed760; }
.sub-ap { --sub-color: #c64bd1; }
.sub-an { --sub-color: #6c5ce7; }

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(64px, 9vw, 130px) var(--pad);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.faq-item[open] {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--orange-bright);
}

.faq-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.12);
  color: var(--orange-bright);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}

.faq-toggle::before {
  width: 14px;
  height: 2.2px;
}

.faq-toggle::after {
  width: 2.2px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.faq-item[open] .faq-toggle {
  background: var(--orange);
  color: #fff;
  transform: rotate(180deg);
}

.faq-item[open] .faq-toggle::after {
  transform: scaleY(0);
}

.faq-item > p {
  padding: 0 24px 22px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.85;
  animation: faqIn 0.35s var(--ease);
}

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   FLOATING ACTIONS
   ========================================================= */
.wa-fab {
  position: fixed;
  z-index: 70;
  bottom: 24px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.wa-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 44px rgba(37, 211, 102, 0.6);
}

.wa-fab svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 2;
}

.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: waPulse 2.2s ease-out infinite;
  z-index: 1;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.55; }
  80%, 100% { transform: scale(1.7); opacity: 0; }
}

.to-top {
  position: fixed;
  z-index: 70;
  bottom: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(20, 20, 24, 0.88);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}

.to-top:not([hidden]) {
  opacity: 1;
  transform: none;
}

.to-top:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.to-top svg {
  width: 20px;
  height: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .wa-pulse { animation: none; }
}

/* =========================================================
   BLOG — listing
   ========================================================= */
.blog-hero {
  padding: clamp(140px, 18vh, 220px) var(--pad) clamp(40px, 6vh, 80px);
  text-align: center;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(255, 107, 0, 0.12), transparent 65%),
    var(--bg);
}
.blog-hero-inner { max-width: 760px; margin: 0 auto; }
.blog-hero h1 { font-size: clamp(2rem, 5vw, 3.8rem); margin-bottom: 16px; }
.blog-hero .hero-lead { color: var(--ink-soft); margin: 0 auto; }

.blog-list {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 60px) var(--pad) clamp(80px, 10vw, 120px);
}

.blog-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.blog-filter {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-soft);
  font-weight: 800; font-size: 0.88rem;
  transition: all 0.25s var(--ease);
}
.blog-filter:hover { border-color: var(--line-strong); color: var(--ink); }
.blog-filter.active {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  border-color: transparent; color: #fff;
  box-shadow: var(--shadow-glow);
}

.blog-empty { text-align: center; color: var(--ink-mute); padding: 60px 20px; }

.blog-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.blog-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.blog-card-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); }
.blog-card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.blog-card:hover .blog-card-cover img { transform: scale(1.05); }
.blog-card-cover-stub {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  color: rgba(255, 107, 0, 0.5);
  font-size: 3rem; font-weight: 900;
}
.blog-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-cat {
  color: var(--orange-bright);
  font-size: 0.78rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.blog-card h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.4; }
.blog-card p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.blog-meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 0.82rem;
}
.blog-meta .blog-date { margin-inline-start: auto; }

/* =========================================================
   ARTICLE — single
   ========================================================= */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(140px, 16vh, 200px) var(--pad) clamp(80px, 10vw, 120px);
}
.article-head { margin-bottom: 32px; }
.article-crumb { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 14px; }
.article-crumb a { color: var(--orange-bright); font-weight: 700; }
.article-crumb a:hover { text-decoration: underline; }
.article-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  color: var(--ink-mute);
  font-size: 0.92rem;
}
.article-cover {
  margin: 30px 0 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.article-cover img { width: 100%; height: auto; display: block; }

.article-body { font-size: 1.08rem; line-height: 1.95; color: var(--ink); }
.article-body p { margin: 0 0 1.1em; }
.article-body h2 { font-size: 1.6rem; font-weight: 900; margin: 2em 0 0.6em; line-height: 1.3; }
.article-body h3 { font-size: 1.3rem; font-weight: 800; margin: 1.8em 0 0.5em; }
.article-body ul,
.article-body ol { padding-inline-start: 1.5em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: 0.4em; }
.article-body strong { color: var(--orange-bright); font-weight: 900; }
.article-body a { color: var(--orange-bright); text-decoration: underline; }
.article-body blockquote {
  margin: 1.5em 0;
  padding: 18px 24px;
  border-inline-start: 4px solid var(--orange);
  background: rgba(255, 107, 0, 0.08);
  border-radius: 8px;
  color: var(--ink-soft);
  font-style: italic;
}
.article-body img {
  max-width: 100%; height: auto;
  border-radius: 12px;
  margin: 1.4em 0;
  display: block;
}
.article-body code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 5px;
}

.article-reactions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 50px 0 40px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.react-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-weight: 800; font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.react-btn:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.react-btn.active {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  border-color: transparent; color: #fff;
  box-shadow: var(--shadow-glow);
}

.comments-section { margin-top: 30px; }
.comments-section h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 22px; }

.comment-form {
  display: grid; gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  margin-top: 24px;
}
.comment-row { display: grid; }
.comment-row input,
.comment-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.comment-row input::placeholder,
.comment-row textarea::placeholder { color: var(--ink-mute); }
.comment-row input:focus,
.comment-row textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15);
}
.comment-row textarea { resize: vertical; }
.comment-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.comment-foot small { color: var(--ink-mute); font-size: 0.82rem; }
.comment-note { margin: 0; min-height: 22px; font-weight: 800; font-size: 0.9rem; }

.comments-list { display: grid; gap: 16px; }
.comments-empty { text-align: center; color: var(--ink-mute); padding: 30px; }

/* =========================================================
   FACEBOOK-STYLE COMMENTS
   ========================================================= */
.fb-style .comments-list { gap: 14px; }

.comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.comment-avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff8124, #d94f00);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
  user-select: none;
}

.comment-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-bubble {
  align-self: flex-start;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.comment-bubble strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--ink);
}
.comment-bubble p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}

.comment-meta {
  padding-inline-start: 14px;
}
.comment-time {
  color: var(--ink-mute);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Compact Facebook-style input row */
.fb-form {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-top: 18px;
}
.fb-form .comment-avatar-me {
  background: linear-gradient(135deg, rgba(255, 129, 36, 0.6), rgba(217, 79, 0, 0.6));
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.25);
}
.comment-input-wrap {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}
.fb-form input[name="guest_name"],
.fb-form textarea[name="content"] {
  width: 100%;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font: inherit;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fb-form input[name="guest_name"]::placeholder,
.fb-form textarea[name="content"]::placeholder { color: var(--ink-mute); }
.fb-form input[name="guest_name"]:focus,
.fb-form textarea[name="content"]:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}
.comment-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.comment-submit-row small { color: var(--ink-mute); font-size: 0.78rem; }
.fb-form .comment-note { margin: 0; min-height: 18px; font-weight: 800; font-size: 0.86rem; }

/* New comment animation (after posting) */
.comment-new .comment-bubble {
  animation: bubble-pop 0.45s cubic-bezier(0.16, 1, 0.3, 1) both,
             bubble-highlight 2.2s ease-out 0.4s both;
}
@keyframes bubble-pop {
  0%   { opacity: 0; transform: translateY(6px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bubble-highlight {
  0%   { background: rgba(255, 129, 36, 0.22); border-color: var(--orange-bright); }
  100% { background: rgba(255, 255, 255, 0.05); border-color: var(--line); }
}

@media (max-width: 540px) {
  .comment-avatar { width: 34px; height: 34px; font-size: 0.92rem; }
  .comment-bubble { padding: 9px 12px; }
  .fb-form { padding: 10px; gap: 8px; border-radius: 14px; }
}

/* =========================================================
   MEMBER AUTH PAGES — professional split layout
   ========================================================= */
.lang-fab {
  position: fixed;
  top: 20px;
  inset-inline-end: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(20, 20, 24, 0.85);
  backdrop-filter: blur(12px);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.lang-fab:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}
.lang-fab svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
html[lang="en"] body { font-family: "Manrope", "Cairo", system-ui, sans-serif; }

.auth-page {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(440px, 1.05fr);
  min-height: 100vh;
}

/* ----- Decorative brand panel (right in RTL, left in LTR) ----- */
.auth-side {
  position: relative;
  padding: 40px clamp(30px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  background:
    radial-gradient(620px 540px at 28% 20%, rgba(255, 107, 0, 0.18), transparent 60%),
    linear-gradient(150deg, #0a0a0c 0%, #141418 60%, #0f0f12 100%);
  border-inline-end: 1px solid var(--line);
}
.auth-side::before,
.auth-side::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.auth-side::before {
  inset-block-start: -120px;
  inset-inline-end: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.32), transparent 70%);
}
.auth-side::after {
  inset-block-end: -100px;
  inset-inline-start: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.18), transparent 70%);
}

.auth-side-brand {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 14px;
}
.auth-side-brand img {
  width: 58px; height: 58px;
  filter: drop-shadow(0 12px 30px rgba(255,107,0,0.5));
}
.auth-side-brand strong { display: block; font-size: 1.4rem; font-weight: 900; }
.auth-side-brand small  { color: var(--ink-mute); font-size: 0.78rem; font-weight: 700; }

.auth-side-content { position: relative; z-index: 2; }
.auth-side-content h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #fff 0%, #ffb077 70%, var(--orange-bright) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-side-content p {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.75;
}

.auth-perks {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 12px;
}
.auth-perks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.94rem;
  backdrop-filter: blur(8px);
}
.auth-perks li .perk-icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.25), rgba(255, 107, 0, 0.08));
  color: var(--orange-bright);
  flex: none;
}
.auth-perks li svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ----- Glowing logo + animated rings (centerpiece) ----- */
.auth-rings {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 24px auto;
  display: grid;
  place-items: center;
  z-index: 2;
}
.auth-rings .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 129, 36, 0.55);
  opacity: 0;
  animation: auth-ripple 4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.auth-rings .ring:nth-child(2) { animation-delay: 1.2s; }
.auth-rings .ring:nth-child(3) { animation-delay: 2.4s; }

@keyframes auth-ripple {
  0%   { transform: scale(0.35); opacity: 0; border-width: 3px; }
  10%  { opacity: 0.9; }
  100% { transform: scale(1.0); opacity: 0; border-width: 1px; }
}

.auth-rings .core {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 129, 36, 0.55) 0%, rgba(255, 107, 0, 0.18) 45%, transparent 75%),
    radial-gradient(circle, rgba(20, 20, 24, 0.95), rgba(10, 10, 12, 0.95));
  box-shadow:
    0 0 0 1px rgba(255, 129, 36, 0.35),
    0 18px 60px rgba(255, 107, 0, 0.35),
    inset 0 0 40px rgba(255, 107, 0, 0.18);
  animation: auth-breath 4s ease-in-out infinite;
}
.auth-rings .core img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(255, 107, 0, 0.6));
}
@keyframes auth-breath {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 1px rgba(255,129,36,0.35), 0 18px 60px rgba(255,107,0,0.35), inset 0 0 40px rgba(255,107,0,0.18); }
  50%      { transform: scale(1.04); box-shadow: 0 0 0 1px rgba(255,129,36,0.5), 0 24px 80px rgba(255,107,0,0.55), inset 0 0 50px rgba(255,107,0,0.28); }
}

.auth-side-foot {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink-mute);
  font-size: 0.82rem;
}
.auth-side-foot a { color: var(--ink-mute); }
.auth-side-foot a:hover { color: var(--orange-bright); }

/* ----- Form side ----- */
.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(30px, 5vw, 60px) clamp(20px, 4vw, 48px);
  background: var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  animation: authIn 0.5s var(--ease) both;
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.auth-card h1 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 900;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.auth-sub {
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ----- Inputs with floating icon ----- */
.auth-form { display: grid; gap: 18px; }

.field { display: grid; gap: 8px; }
.field-label {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.field-label .req { color: var(--orange-bright); }

.field-wrap { position: relative; }
.field input {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input::placeholder { color: var(--ink-mute); }
.field input:hover { border-color: rgba(255, 255, 255, 0.22); }
.field input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.18);
}

.field-hint {
  color: var(--ink-mute);
  font-size: 0.78rem;
  font-weight: 600;
  margin-inline-start: 4px;
}

/* Phone field with country-code dropdown */
.phone-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}
.phone-cc {
  padding: 15px 32px 15px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2380808c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat,
    rgba(255, 255, 255, 0.04);
  background-position: left 10px center;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-width: 130px;
  direction: ltr;
  text-align: start;
  transition: all 0.25s var(--ease);
}
.phone-cc:hover { border-color: rgba(255, 255, 255, 0.22); }
.phone-cc:focus {
  outline: none;
  border-color: var(--orange);
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.18);
}
.phone-cc option, .phone-cc optgroup {
  background: var(--bg-2);
  color: var(--ink);
}
.phone-row input[type="tel"] {
  padding: 15px 18px;
  direction: ltr;
  text-align: start;
}

.auth-form .btn.primary {
  width: 100%;
  padding: 15px;
  margin-top: 6px;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.auth-form .btn.primary[disabled],
.auth-form .btn.primary.loading {
  opacity: 0.7;
  cursor: progress;
}
.auth-form .btn .spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

.auth-note {
  margin: 0; min-height: 22px;
  font-weight: 800; font-size: 0.92rem;
  text-align: center;
  padding: 4px 0;
}
.auth-note.ok   { color: #4ade80; }
.auth-note.err  { color: #f87171; }
.auth-note.warn { color: #fbbf24; }

.auth-bottom {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 24px 0 0;
}
.auth-bottom a { color: var(--orange-bright); font-weight: 800; }
.auth-bottom a:hover { text-decoration: underline; }

.auth-divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink-mute);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 24px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: ""; flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-alert {
  padding: 14px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #f87171;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
}

/* ----- account.php — profile + verify ----- */
.account-card h1 { margin-bottom: 22px; }

.verify-box {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 0, 0.4);
  background:
    radial-gradient(400px 200px at 80% 0%, rgba(255, 107, 0, 0.15), transparent 70%),
    rgba(255, 107, 0, 0.06);
  margin-bottom: 26px;
  display: grid; gap: 14px;
}
.verify-box h3 {
  margin: 0;
  font-size: 1.15rem;
  display: flex; align-items: center; gap: 8px;
}
.verify-box p { margin: 0; color: var(--ink-soft); }
.verify-box .btn { width: 100%; padding: 14px; }

/* OTP digits row — fixed-size, centered, fits inside any card.
   `direction: ltr` forces the boxes to lay out left-to-right even on
   an RTL page, so the visual order matches the DOM/typing order. */
.otp-input {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  margin: 10px auto 0;
  padding: 0;
  width: max-content;
  max-width: 100%;
  direction: ltr;
}
.otp-input input {
  flex: none;
  width: 46px;
  height: 56px;
  padding: 0;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 900;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -moz-appearance: textfield;
}
.otp-input input::-webkit-outer-spin-button,
.otp-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.otp-input input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 107, 0, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.22);
}
.otp-input input.filled {
  border-color: var(--orange-bright);
  background: rgba(255, 107, 0, 0.08);
  color: var(--orange-bright);
}
@media (max-width: 460px) {
  .otp-input { gap: 6px; }
  .otp-input input { width: 40px; height: 50px; font-size: 1.2rem; }
}
@media (max-width: 360px) {
  .otp-input input { width: 36px; height: 46px; font-size: 1.05rem; }
}

.verify-form { display: grid; gap: 12px; margin-top: 6px; }

.verified-box {
  padding: 16px 20px;
  border-radius: 14px;
  background:
    radial-gradient(400px 200px at 80% 0%, rgba(74, 222, 128, 0.15), transparent 70%),
    rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #86efac;
  font-weight: 800;
  text-align: center;
  margin-bottom: 26px;
}

.profile-list {
  display: grid;
  gap: 18px;
  margin: 0 0 26px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.profile-list dt {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-mute);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
  text-align: start;
}
.profile-list dd {
  display: block;
  margin: 0;
  font-weight: 800;
  color: var(--ink);
  font-size: 1.02rem;
  text-align: start;
  word-break: break-word;
  unicode-bidi: plaintext;  /* lets LTR content (phone, email) sit naturally in an RTL block */
}
/* Force every value to follow the container direction regardless of inner dir attributes. */
html[dir="rtl"] .profile-list dd { text-align: right; direction: rtl; }
html[dir="ltr"] .profile-list dd { text-align: left;  direction: ltr; }

.account-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.account-actions .btn { flex: 1; min-width: 140px; }

/* ----- Responsive: stack on small screens ----- */
@media (max-width: 900px) {
  .auth-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .auth-side { display: none; }
  .auth-main {
    padding: 36px 20px;
    min-height: 100vh;
  }
  .auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }
  /* Small brand badge at top of the form on mobile */
  .auth-card::before {
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    background: url("assets/tradex-logo.png") center/contain no-repeat;
    filter: drop-shadow(0 8px 24px rgba(255, 107, 0, 0.5));
  }
}
@media (max-width: 460px) {
  .otp-input { gap: 6px; }
  .otp-input input { font-size: 1.2rem; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1040px) {
  .nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .now-card {
    max-width: 460px;
  }

  .episode-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-tags {
    justify-content: center;
  }

  .about-copy .section-label {
    justify-content: center;
  }

  .join {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .header-social {
    display: none;
  }

  .brand-copy small {
    display: none;
  }

  .value-strip,
  .episode-cards {
    grid-template-columns: 1fr;
  }

  .subscribe-grid {
    grid-template-columns: 1fr;
  }

  .wa-fab {
    width: 50px;
    height: 50px;
    bottom: 18px;
    left: 18px;
  }

  .wa-fab svg {
    width: 24px;
    height: 24px;
  }

  .to-top {
    width: 42px;
    height: 42px;
    bottom: 18px;
    right: 18px;
  }

  .guest-shell {
    grid-template-columns: 1fr;
  }

  .guest-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    gap: 22px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 440px) {
  .hero {
    padding-top: 120px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .guest-tabs {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MOBILE HAMBURGER MENU + DRAWER
   ========================================================= */
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.menu-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 8, 10, 0.97);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  padding: 88px 28px 32px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.32s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
html[dir="rtl"] .mobile-drawer {
  transform: translateX(100%);
}
.mobile-drawer.open,
html[dir="rtl"] .mobile-drawer.open {
  transform: translateX(0);
}
.mobile-drawer a {
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--ink);
  display: block;
}
.mobile-drawer a:hover,
.mobile-drawer a:focus {
  color: var(--orange-bright);
}
.mobile-drawer-actions {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.mobile-drawer-actions .btn {
  width: 100%;
  justify-content: center;
}
.mobile-drawer-close {
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
body.drawer-open {
  overflow: hidden;
}

@media (max-width: 1040px) {
  .menu-btn {
    display: inline-flex;
  }
  .header-actions .header-cta,
  .header-actions .header-social {
    display: none;
  }
  .site-header {
    grid-template-columns: auto 1fr auto;
  }
}
@media (min-width: 1041px) {
  .mobile-drawer {
    display: none !important;
  }
}

/* =========================================================
   CHAT WIDGET — floating sales assistant
   ========================================================= */
.chat-fab {
  position: fixed;
  inset-inline-start: 18px;
  bottom: 88px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8124, #d94f00);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(255, 107, 0, 0.45);
  font-weight: 900;
  font-size: 0.94rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(255, 107, 0, 0.55); }
.chat-fab:active { transform: translateY(0); }
.chat-fab svg {
  width: 22px; height: 22px;
  color: #fff;
}
.chat-fab-pulse {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid rgba(255, 129, 36, 0.6);
  animation: chat-fab-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes chat-fab-pulse {
  0%   { transform: scale(1);   opacity: 0.65; }
  100% { transform: scale(1.4); opacity: 0; }
}
.chat-fab-label { white-space: nowrap; }

@media (max-width: 540px) {
  .chat-fab { padding: 10px 14px 10px 10px; font-size: 0.88rem; }
}

/* ----- Panel ----- */
.chat-panel {
  position: fixed;
  inset-inline-start: 18px;
  bottom: 88px;
  width: 380px;
  max-width: calc(100vw - 36px);
  height: 560px;
  max-height: calc(100vh - 120px);
  z-index: 60;
  background: linear-gradient(180deg, #14141a, #0c0c10);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom left;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease;
}
.chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 540px) {
  .chat-panel {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    border: 0;
  }
}

/* ----- Head ----- */
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.18), rgba(255, 107, 0, 0.05));
  border-bottom: 1px solid var(--line);
}
.chat-bot-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff8124, #d94f00);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.4);
  flex: none;
}
.chat-avatar svg { width: 22px; height: 22px; }
.chat-bot-text { min-width: 0; }
.chat-bot-text strong { display: block; font-size: 1rem; font-weight: 900; line-height: 1.2; }
.chat-bot-text small  { color: var(--ink-mute); font-size: 0.78rem; font-weight: 700; }
.chat-close {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease);
}
.chat-close:hover { background: rgba(255, 255, 255, 0.12); }
.chat-close svg { width: 18px; height: 18px; }

/* ----- Messages ----- */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 999px; }

.chat-msg { display: flex; max-width: 88%; }
.chat-msg.bot  { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }

.chat-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.94rem;
  line-height: 1.55;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.chat-msg.bot .chat-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink);
  border-start-start-radius: 6px;
}
.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, #ff8124, #d94f00);
  color: #fff;
  border-end-end-radius: 6px;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
}
.chat-bubble p { margin: 0; }
.chat-bubble p + p { margin-top: 8px; }

/* Typing indicator */
.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}
.chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange-bright);
  opacity: 0.4;
  animation: chat-typing 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-4px); }
}

/* Error pill */
.chat-msg.error .chat-bubble {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.4);
  color: #fca5a5;
}

/* ----- Input form ----- */
.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--line);
}
.chat-form textarea {
  flex: 1;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}
.chat-form textarea::placeholder { color: var(--ink-mute); }
.chat-send {
  flex: none;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff8124, #d94f00);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.35);
  transition: transform 0.2s var(--ease);
}
.chat-send:hover { transform: scale(1.06); }
.chat-send:active { transform: scale(0.95); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.chat-send svg { width: 18px; height: 18px; }

/* =========================================================
   AUTH GATE — "sign in to comment / chat" blocks
   ========================================================= */
.comment-auth-cta {
  margin-top: 24px;
  padding: 28px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(255, 107, 0, 0.12), transparent 70%),
    var(--panel);
  text-align: center;
}
.comment-auth-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 129, 36, 0.25), rgba(217, 79, 0, 0.15));
  color: var(--orange-bright);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.25);
}
.comment-auth-icon svg { width: 26px; height: 26px; }
.comment-auth-cta h3 {
  font-size: 1.2rem;
  font-weight: 900;
  margin: 0 0 8px;
  color: var(--ink);
}
.comment-auth-cta p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}
.comment-auth-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.comment-auth-actions .btn { min-width: 120px; }

.comment-as-line {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-mute);
  padding: 4px 2px;
}
.comment-as-line strong {
  color: var(--orange-bright);
  font-weight: 800;
}

/* Chat auth gate (inside the chat panel) */
.chat-auth-cta {
  margin: auto;
  padding: 28px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.chat-auth-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 129, 36, 0.3), rgba(217, 79, 0, 0.2));
  color: var(--orange-bright);
  box-shadow: 0 10px 28px rgba(255, 107, 0, 0.3);
}
.chat-auth-icon svg { width: 28px; height: 28px; }
.chat-auth-cta h3 {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0;
  color: var(--ink);
}
.chat-auth-cta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 280px;
}
.chat-auth-actions {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 240px;
}
.chat-auth-actions .btn { width: 100%; justify-content: center; }

/* =========================================================
   VERIFIED BADGE — custom image OR default blue checkmark
   ========================================================= */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-inline-start: 4px;
  line-height: 1;
  width: 18px;
  height: 18px;
  flex: none;
}
.verified-badge svg,
.verified-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(29, 155, 240, 0.35));
}

/* Animated state (pulse + shine sweep) */
.verified-badge.animated {
  position: relative;
  animation: badge-pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.verified-badge.animated::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 155, 240, 0.45), transparent 65%);
  z-index: -1;
  animation: badge-glow 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}
@keyframes badge-glow {
  0%, 100% { opacity: 0.4; transform: scale(1);   }
  50%      { opacity: 1;   transform: scale(1.35); }
}

@media (prefers-reduced-motion: reduce) {
  .verified-badge.animated,
  .verified-badge.animated::after { animation: none; }
}

/* Slightly elevate official commenters with a soft blue ring on the avatar */
.comment-official .comment-avatar {
  box-shadow:
    0 0 0 2px rgba(29, 155, 240, 0.5),
    0 4px 14px rgba(255, 107, 0, 0.35);
}
.comment-official .comment-bubble {
  border-color: rgba(29, 155, 240, 0.35);
}

/* =========================================================
   FOUNDER BADGE — animated orange/white pill
   ========================================================= */
.founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  margin-inline-start: 4px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  background:
    linear-gradient(
      120deg,
      #ff8124 0%,
      #ffb077 25%,
      #ffffff 50%,
      #ffb077 75%,
      #ff8124 100%
    );
  background-size: 220% 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 107, 0, 0.45),
    0 4px 14px rgba(255, 107, 0, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  animation: founder-shimmer 3.5s linear infinite, founder-pulse 2.2s ease-in-out infinite;
  white-space: nowrap;
  flex: none;
}
.founder-badge svg {
  width: 12px;
  height: 12px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

@keyframes founder-shimmer {
  0%   { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}
@keyframes founder-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.45), 0 4px 14px rgba(255, 107, 0, 0.4); }
  50%      { box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.65), 0 6px 22px rgba(255, 107, 0, 0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .founder-badge { animation: none; }
}

/* Avatar with profile picture (overrides letter style) */
.comment-avatar.has-img { padding: 0; overflow: hidden; background: #14141a; }
.comment-avatar.has-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   HEADER PROFILE DROPDOWN
   ========================================================= */
.profile-trigger { position: relative; }

.profile-avatar-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.profile-avatar-btn:hover { border-color: var(--orange-bright); transform: scale(1.05); }

.profile-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff8124, #d94f00);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-lg { width: 54px; height: 54px; font-size: 1.4rem; }

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  /* Anchor menu's near edge to the trigger so it opens INTO the page */
  inset-inline-end: 0;
  inset-inline-start: auto;
  width: 280px;
  max-width: calc(100vw - 24px);
  background: linear-gradient(180deg, #14141a, #0c0c10);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  z-index: 70;
}
.profile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

/* Mobile: float as a top-anchored sheet so it never clips */
@media (max-width: 540px) {
  .profile-menu {
    position: fixed;
    top: 70px;
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    width: auto;
    max-width: none;
  }
}

.profile-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.profile-menu-id { min-width: 0; flex: 1; }
.profile-menu-id strong { display: block; font-size: 0.98rem; font-weight: 900; color: var(--ink); }
.profile-menu-id small { color: var(--ink-mute); font-size: 0.78rem; }

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: start;
  text-decoration: none;
  transition: background 0.15s var(--ease);
}
.profile-menu-item:hover { background: rgba(255, 255, 255, 0.06); }
.profile-menu-item svg { width: 18px; height: 18px; flex: none; color: var(--ink-soft); }
.profile-menu-item.danger { color: #f87171; }
.profile-menu-item.danger svg { color: #f87171; }
.profile-menu-item.danger:hover { background: rgba(248, 113, 113, 0.1); }

@media (max-width: 540px) {
  .profile-menu { width: 260px; }
}

/* =========================================================
   ACCOUNT PAGE — avatar section
   ========================================================= */
.account-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.account-avatar-wrap {
  position: relative;
  width: 124px;
  height: 124px;
}
.account-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff8124, #d94f00);
  color: #fff;
  font-size: 2.6rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(255, 107, 0, 0.45);
  border: 3px solid var(--line-strong);
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-avatar-btn {
  position: absolute;
  bottom: 4px;
  inset-inline-end: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8124, #d94f00);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 2px solid #0a0a0c;
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.5);
  transition: transform 0.2s var(--ease);
}
.account-avatar-btn:hover { transform: scale(1.08); }
.account-avatar-btn svg { width: 16px; height: 16px; }
.account-avatar-hint {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.account-avatar-hint strong { color: var(--ink); font-weight: 900; display: block; margin-bottom: 4px; }
.account-avatar-hint [data-kind="pending"] { color: var(--orange-bright); }
.account-avatar-hint [data-kind="ok"]      { color: #4ade80; }
.account-avatar-hint [data-kind="err"]     { color: #f87171; }
.account-avatar-remove {
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  font-size: 0.84rem;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
  font-weight: 700;
}
.account-avatar-remove:hover { color: #f87171; }

/* =========================================================
   PROFILE PAGE — modern redesign
   ========================================================= */
.account-main {
  display: block;
  padding: 36px 18px 64px;
  min-height: 100vh;
}
.account-wrap {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

/* ---------- HERO ---------- */
.profile-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #14141a, #0c0c10);
  padding: 28px 26px;
}
.profile-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 20% 20%, rgba(255, 107, 0, 0.22), transparent 65%),
    radial-gradient(50% 70% at 95% 80%, rgba(29, 155, 240, 0.12), transparent 70%);
  pointer-events: none;
}
.profile-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.profile-hero-avatar-wrap {
  position: relative;
  width: 124px;
  height: 124px;
  flex: none;
}
.profile-hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff8124, #d94f00);
  color: #fff;
  font-size: 2.6rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(255, 107, 0, 0.45);
}
.profile-hero-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-hero-avatar-btn {
  position: absolute;
  bottom: 4px;
  inset-inline-end: 4px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8124, #d94f00);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 3px solid #0c0c10;
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.5);
  transition: transform 0.2s var(--ease);
}
.profile-hero-avatar-btn:hover { transform: scale(1.08); }
.profile-hero-avatar-btn svg { width: 16px; height: 16px; }

.profile-hero-name {
  flex: 1;
  min-width: 240px;
}
.profile-hero-name h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 900;
  margin: 0;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, #ffb077 70%, var(--orange-bright) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.profile-hero-sub {
  margin: 6px 0 14px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-weight: 700;
}

.profile-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}
.profile-chip.ok   { background: rgba(74, 222, 128, 0.12); border-color: rgba(74, 222, 128, 0.4); color: #4ade80; }
.profile-chip.warn { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.4); color: #fbbf24; }

.profile-avatar-note {
  margin: 10px 0 0;
  font-size: 0.84rem;
  font-weight: 700;
}
.profile-avatar-note[data-kind="pending"] { color: var(--orange-bright); }
.profile-avatar-note[data-kind="ok"]      { color: #4ade80; }
.profile-avatar-note[data-kind="err"]     { color: #f87171; }
.profile-avatar-remove {
  display: inline-block;
  margin-top: 8px;
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  font-size: 0.82rem;
  text-decoration: underline;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.profile-avatar-remove:hover { color: #f87171; }

/* ---------- CARDS ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 720px) { .profile-grid { grid-template-columns: 1fr; } }

.profile-card {
  background: linear-gradient(180deg, #14141a, #0c0c10);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.profile-card.warn-card {
  border-color: rgba(251, 191, 36, 0.35);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(251, 191, 36, 0.08), transparent 60%),
    linear-gradient(180deg, #14141a, #0c0c10);
}

.profile-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.profile-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 129, 36, 0.25), rgba(217, 79, 0, 0.15));
  color: var(--orange-bright);
  font-size: 1.2rem;
  flex: none;
}
.profile-card-icon.warn {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(251, 191, 36, 0.1));
  color: #fbbf24;
}
.profile-card-head h2 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--ink);
}
.profile-card-head p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 0.84rem;
}

.profile-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.profile-info-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}
.profile-info-list li + li { margin-top: 6px; }
.profile-info-label {
  color: var(--ink-mute);
  font-size: 0.86rem;
  font-weight: 700;
}
.profile-info-value {
  color: var(--ink);
  font-weight: 800;
  font-size: 0.94rem;
  text-align: end;
  word-break: break-word;
  min-width: 0;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}
.profile-pill.ok   { background: rgba(74, 222, 128, 0.15);  color: #4ade80; }
.profile-pill.warn { background: rgba(251, 191, 36, 0.15);  color: #fbbf24; }

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-actions .btn {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.profile-actions .btn svg { width: 18px; height: 18px; }

.btn.danger {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #f87171;
}
.btn.danger:hover {
  background: rgba(248, 113, 113, 0.22);
  border-color: #f87171;
}

@media (max-width: 540px) {
  .profile-hero { padding: 22px 18px; }
  .profile-hero-content { gap: 16px; }
  .profile-hero-avatar-wrap { width: 96px; height: 96px; }
  .profile-hero-avatar { font-size: 2rem; }
  .profile-hero-name { min-width: 0; width: 100%; }
  .profile-card { padding: 18px; }
}

/* Password / edit forms in the profile cards */
.profile-form { display: grid; gap: 14px; }
.profile-field { display: grid; gap: 6px; }
.profile-field span {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-soft);
}
.profile-field input {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.profile-field input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}
.profile-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.profile-form-foot .auth-note {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  min-height: 18px;
}
.profile-form-foot .auth-note[data-kind="pending"] { color: var(--orange-bright); }
.profile-form-foot .auth-note[data-kind="ok"]      { color: #4ade80; }
.profile-form-foot .auth-note[data-kind="err"]     { color: #f87171; }

/* =========================================================
   MAGAZINE BLOG — "خلاصات السوق"
   ========================================================= */
.mag-hero {
  padding: clamp(80px, 12vw, 140px) var(--pad) clamp(32px, 5vw, 56px);
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(255, 107, 0, 0.16), transparent 60%),
    linear-gradient(180deg, #0c0c10, #0a0a0c);
  border-bottom: 1px solid var(--line);
}
.mag-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.mag-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.4);
  color: var(--orange-bright);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
}
.mag-hero-inner h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #fff 0%, #ffb077 65%, var(--orange-bright) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mag-lead {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto;
}

.mag-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) var(--pad);
}

/* ---------- Filters (horizontal scroll on mobile) ---------- */
.mag-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
  margin: 0 0 28px;
  scrollbar-width: none;
}
.mag-filters::-webkit-scrollbar { display: none; }
.mag-filter {
  flex: none;
  scroll-snap-align: start;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.mag-filter:hover { border-color: var(--line-strong); color: var(--ink); }
.mag-filter.active {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.35);
}

.mag-empty {
  text-align: center;
  color: var(--ink-mute);
  padding: 60px 20px;
  font-size: 1rem;
}

/* ---------- Featured / hero article ---------- */
.mag-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  margin-bottom: 36px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #14141a, #0c0c10);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
}
.mag-featured:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
@media (max-width: 760px) {
  .mag-featured { grid-template-columns: 1fr; }
}

.mag-featured-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 50% 30%, rgba(255, 107, 0, 0.22), transparent 75%),
    linear-gradient(180deg, #17171d, #0d0d11);
}
.mag-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.mag-featured:hover .mag-featured-media img { transform: scale(1.04); }
.mag-featured-stub {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.mag-featured-stub span {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  color: var(--orange-bright);
  opacity: 0.45;
}
.mag-featured-cat {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.mag-featured-body {
  padding: clamp(22px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.mag-featured-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.4);
  color: var(--orange-bright);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex: none;
}

/* Top row: author byline on one side, featured tag on the other */
.mag-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

/* Bottom row: meta on one side, stats on the other */
.mag-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.mag-stats {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-mute);
  font-size: 0.84rem;
  font-weight: 700;
  flex: none;
}
.mag-card-foot .mag-meta { gap: 6px; margin: 0; flex: 1; min-width: 0; }
.mag-featured-body h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 900;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}
.mag-featured-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mag-cta {
  display: inline-block;
  color: var(--orange-bright);
  font-weight: 900;
  margin-top: 4px;
}

/* ---------- Meta line (date/read/reactions) ---------- */
.mag-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--ink-mute);
  font-size: 0.84rem;
  font-weight: 700;
}
.mag-meta .mag-dot { color: var(--ink-mute); opacity: 0.6; }
.mag-date { margin-inline-start: auto; }

/* ---------- Grid of remaining articles ---------- */
.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .mag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .mag-grid { grid-template-columns: 1fr; } }

.mag-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
}
.mag-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.mag-card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(70% 70% at 50% 30%, rgba(255, 107, 0, 0.18), transparent 70%),
    linear-gradient(180deg, #17171d, #0d0d11);
}
.mag-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.mag-card:hover .mag-card-cover img { transform: scale(1.05); }
.mag-card-stub {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.mag-card-stub span {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 900;
  color: var(--orange-bright);
  opacity: 0.45;
}
.mag-card-cat {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.mag-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.mag-card-body h3 {
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mag-card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mag-card-body .mag-meta { margin-top: auto; padding-top: 8px; }

/* ---------- Toolbar (filters + write button) ---------- */
.mag-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  flex-wrap: wrap;
}
.mag-toolbar .mag-filters { margin: 0; flex: 1; min-width: 0; }
.mag-write-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(255, 107, 0, 0.4);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.mag-write-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 107, 0, 0.55); }
.mag-write-btn svg { width: 18px; height: 18px; }
.mag-write-btn.ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  box-shadow: none;
}
.mag-write-btn.ghost:hover { border-color: var(--orange-bright); color: var(--orange-bright); transform: none; }

/* ---------- Featured: no-cover state (compact, balanced) ---------- */
.mag-featured { position: relative; }
.mag-featured-link { display: block; color: inherit; text-decoration: none; }
.mag-featured.no-cover {
  max-width: 760px;
  margin-inline: auto;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255, 107, 0, 0.16), transparent 65%),
    radial-gradient(50% 70% at 0% 100%, rgba(29, 155, 240, 0.07), transparent 70%),
    linear-gradient(180deg, #14141a, #0c0c10);
}
.mag-featured.no-cover .mag-featured-body {
  padding: clamp(22px, 3.5vw, 32px);
}
.mag-featured.no-cover h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
}
.mag-featured.no-cover p {
  font-size: 0.96rem;
}
.mag-meta-cat {
  background: rgba(255, 107, 0, 0.18);
  color: var(--orange-bright);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.78rem;
}

/* ---------- Card no-cover state ---------- */
.mag-card-wrap { position: relative; }
.mag-card { position: relative; }
.mag-card.no-cover {
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(255, 107, 0, 0.14), transparent 65%),
    var(--panel);
}
.mag-card.no-cover .mag-card-body { padding-top: 48px; }
.mag-card-pill {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.2);
  color: var(--orange-bright);
  font-size: 0.74rem;
  font-weight: 900;
  z-index: 2;
  border: 1px solid rgba(255, 107, 0, 0.35);
}

/* ---------- Author byline — unified, balanced, Medium-style ---------- */
.mag-byline,
.mag-byline.compact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
  padding: 0;
  background: transparent;
  border: 0;
}
.mag-byline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff8124, #d94f00);
  color: #fff;
  font-weight: 900;
  font-size: 0.88rem;
  text-transform: uppercase;
  overflow: hidden;
  flex: none;
  border: 1.5px solid rgba(255, 107, 0, 0.4);
}
.mag-byline-avatar.has-img { background: #14141a; }
.mag-byline-avatar img { width: 100%; height: 100%; object-fit: cover; }

.mag-byline-text {
  min-width: 0;
  display: grid;
  gap: 1px;
  line-height: 1.25;
}
.mag-byline-text strong {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
}
.mag-byline-text small {
  color: var(--ink-mute);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Featured (no-cover) — center within centered body */
.mag-featured.no-cover .mag-byline {
  justify-content: center;
}

/* ---------- Article page byline — same balanced style ---------- */
.article-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 14px 0 18px;
  background: transparent;
  border: 0;
}
.article-byline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff8124, #d94f00);
  color: #fff;
  font-weight: 900;
  font-size: 0.88rem;
  text-transform: uppercase;
  overflow: hidden;
  flex: none;
  border: 1.5px solid rgba(255, 107, 0, 0.4);
}
.article-byline-avatar.has-img { background: #14141a; }
.article-byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-byline-text {
  min-width: 0;
  display: grid;
  gap: 1px;
  line-height: 1.25;
}
.article-byline-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}
.article-byline-name strong { font-weight: 800; color: var(--ink); }
.article-byline-job {
  color: var(--ink-mute);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---------- Delete button (owner only) ---------- */
.mag-delete-btn {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
}
.mag-card-wrap:hover .mag-delete-btn,
.mag-featured:hover .mag-delete-btn,
.mag-delete-btn:focus {
  opacity: 1;
  transform: scale(1);
}
.mag-delete-btn:hover { background: #dc2626; }
.mag-delete-btn svg { width: 16px; height: 16px; }

/* Always visible on touch devices */
@media (hover: none) {
  .mag-delete-btn { opacity: 1; transform: scale(1); }
}

/* =========================================================
   WRITE ARTICLE PAGE
   ========================================================= */
.write-main {
  padding: clamp(80px, 11vw, 120px) 18px 60px;
  min-height: 100vh;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(255, 107, 0, 0.08), transparent 60%),
    var(--bg);
}
.write-wrap { max-width: 760px; margin: 0 auto; }

.write-card {
  background: linear-gradient(180deg, #14141a, #0c0c10);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 32px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.write-card-head {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.write-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.write-author > div strong { display: block; font-weight: 900; font-size: 1.02rem; }
.write-author > div small  { color: var(--ink-mute); font-size: 0.84rem; }
.write-author .comment-avatar { width: 44px; height: 44px; }

.write-form { display: grid; gap: 18px; }
.write-field { display: grid; gap: 6px; }
.write-field > span {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink-soft);
}
.write-field input,
.write-field textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.write-field input:focus,
.write-field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}
.write-field textarea { resize: vertical; min-height: 80px; line-height: 1.7; }
.write-field textarea[name="content"] { min-height: 320px; }

.write-counter {
  color: var(--ink-mute);
  font-size: 0.78rem;
  text-align: end;
  font-weight: 700;
}

.write-rules {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 107, 0, 0.06);
  border: 1px solid rgba(255, 107, 0, 0.25);
}
.write-rules strong { display: block; margin-bottom: 8px; color: var(--orange-bright); font-weight: 900; }
.write-rules ul {
  margin: 0;
  padding-inline-start: 22px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.8;
}

.write-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.write-actions .btn { min-width: 130px; justify-content: center; }
.write-note { margin: 0; min-height: 20px; font-weight: 800; font-size: 0.9rem; text-align: center; }
.write-note[data-kind="pending"] { color: var(--orange-bright); }
.write-note[data-kind="ok"]      { color: #4ade80; }
.write-note[data-kind="err"]     { color: #f87171; }
