/* ============================================================
   comunidadec.lat — Clean Light Editorial + High-FOMO UI
   Pure White & Cool Gray Surfaces + Crisp Slate + Urgent Accents
   100% Responsive from 180px Watch Screens to 4K Desktop
   ============================================================ */

:root {
  /* === CORE LIGHT PALETTE === */
  --bg-page: #F1F5F9;           /* Cool Light Gray Canvas */
  --surface-white: #FFFFFF;     /* Pure White Cards & Header */
  --surface-subtle: #F8FAFC;    /* Soft Gray Panels */
  --border-light: #E2E8F0;
  --border-strong: #CBD5E1;

  --ink-primary: #0F172A;       /* Deep Slate */
  --ink-secondary: #475569;
  --ink-muted: #64748B;

  /* === CONVERSION & URGENCY === */
  --wa-green: #16A34A;          /* Trustworthy Emerald WhatsApp CTA */
  --wa-green-hover: #15803D;
  --wa-green-soft: #DCFCE7;

  --amber-warn: #D97706;        /* Medium Urgency */
  --amber-soft: #FEF3C7;

  --alert-red: #DC2626;         /* Critical Countdown & Explosion */
  --alert-red-hover: #B91C1C;
  --alert-red-soft: #FEE2E2;

  /* === ASH / EXPIRED === */
  --ash-bg: #F1F5F9;
  --ash-border: #CBD5E1;
  --ash-ink: #64748B;

  /* === TYPOGRAPHY === */
  --font-sans: 'Plus Jakarta Sans', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.14);

  --container-max: 1320px;
}

*, *::before, *::after {
  box-sizing: border-box;
  min-width: 0;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: clamp(12px, 2.5vw, 15px);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(8px, 2.2vw, 20px);
}

/* === HEADER === */
.site-header {
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-light);
  padding: clamp(10px, 2vw, 16px) 0;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-primary);
  max-width: 100%;
}

.brand__logo {
  width: clamp(32px, 8vw, 42px);
  height: clamp(32px, 8vw, 42px);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ink-primary);
}

.brand__title {
  margin: 0;
  font-size: clamp(1.05rem, 4.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.brand__tag {
  margin: 2px 0 0;
  font-size: clamp(0.68rem, 2vw, 0.82rem);
  color: var(--ink-secondary);
  font-weight: 500;
  max-width: 560px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lang-switcher {
  display: flex;
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 2vw, 0.75rem);
  font-weight: 700;
  padding: 6px 8px;
  text-decoration: none;
  color: var(--ink-secondary);
  border-right: 1px solid var(--border-light);
  text-transform: uppercase;
}
.lang-btn:last-child { border-right: 0; }
.lang-btn.is-active {
  background: var(--ink-primary);
  color: var(--surface-white);
}

.btn-publish {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink-primary);
  color: var(--surface-white);
  font-size: clamp(0.68rem, 2.2vw, 0.82rem);
  font-weight: 700;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--ink-primary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.15s ease;
}
.btn-publish:hover {
  background: #1E293B;
}

/* === CLEAN FILTER TABS + MAIN CONTAINER === */
.board-wrap {
  margin-top: 14px;
}

.folder-tabs {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 8px);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 10px;
}
.folder-tabs::-webkit-scrollbar { display: none; }

.filter-pill {
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 2.2vw, 0.82rem);
  font-weight: 700;
  padding: 7px 14px;
  background: var(--surface-white);
  color: var(--ink-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.12s ease;
}
.filter-pill:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}
.filter-pill.is-active {
  background: var(--ink-primary);
  color: var(--surface-white);
  border-color: var(--ink-primary);
}

.black-board {
  background: transparent;
  padding: 0;
}

.board-pulse-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-white);
  color: var(--ink-primary);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: clamp(0.68rem, 2.2vw, 0.8rem);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--alert-red);
  flex-shrink: 0;
  animation: blip-ping 1.5s infinite;
}

/* === MONETAG AD SLOTS === */
.ad-slot {
  position: relative;
  background: var(--surface-white);
  color: var(--ink-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
}

.ad-slot__label {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--bg-page);
  color: var(--ink-muted);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.ad-slot__placeholder {
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 2vw, 0.72rem);
  color: var(--ink-muted);
  text-align: center;
  padding: 6px 0;
}

.ad-slot--infeed {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.ad-slot--modal {
  background: var(--surface-subtle);
  margin-bottom: 0;
  width: 100%;
}

/* === REFERRAL PARTNER STRIP === */
.ref-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.ref-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface-white);
  color: var(--ink-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-decoration: none;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.ref-chip:hover {
  border-color: var(--ink-primary);
  transform: translateY(-1px);
}
.ref-chip__badge {
  background: var(--bg-page);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.ref-chip__title {
  font-weight: 700;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ref-chip__cta {
  color: var(--wa-green);
  font-weight: 800;
  flex-shrink: 0;
}

/* === CARDS GRID === */
.bomb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 2vw, 16px);
}

@media (min-width: 680px) {
  .bomb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1060px) {
  .bomb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* === CLEAN WHITE EDITORIAL CARD === */
.bomb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(10px, 2.2vw, 14px);
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}

.bomb-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.bomb-card__star {
  display: none; /* Removed toy star for serious editorial look */
}

.bomb-card__top {
  display: grid;
  grid-template-columns: clamp(68px, 24vw, 100px) 1fr;
  gap: clamp(8px, 2vw, 12px);
  align-items: start;
  cursor: pointer;
}

.bomb-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.bomb-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bomb-card__photos-count {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(15, 23, 42, 0.82);
  color: #FFF;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}

.bomb-card__info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bomb-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.bomb-card__badge {
  font-family: var(--font-mono);
  font-size: clamp(0.56rem, 1.8vw, 0.66rem);
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}

.bomb-card__price-pill {
  font-family: var(--font-sans);
  font-size: clamp(0.74rem, 2.2vw, 0.88rem);
  font-weight: 800;
  padding: 2px 8px;
  background: var(--bg-page);
  color: var(--ink-primary);
  border-radius: 6px;
}
.bomb-card__price-pill.is-free {
  background: var(--wa-green-soft);
  color: var(--wa-green-hover);
}

.bomb-card__title {
  margin: 0;
  font-size: clamp(0.82rem, 2.5vw, 0.98rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.bomb-card__desc-short {
  margin: 0;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bottom Row: Clean Countdown Box + Share + WhatsApp */
.bomb-card__bottom {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.bomb-card__fuse-bar {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  overflow: hidden;
  flex: 1 1 auto;
}

.bomb-card__timer-label {
  background: var(--bg-page);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 1.5vw, 0.58rem);
  font-weight: 700;
  padding: 2px 6px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bomb-card__timer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 6px;
  color: var(--ink-primary);
}

.bomb-card__timer {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 2.5vw, 0.95rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bomb-card__cta-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.bomb-card__cta-buttons {
  display: flex;
  align-items: stretch;
  gap: 5px;
}

.btn-share-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-subtle);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: clamp(0.65rem, 2vw, 0.78rem);
  font-weight: 700;
  padding: 7px 9px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.btn-share-card:hover {
  background: var(--bg-page);
  border-color: var(--ink-primary);
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wa-green);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: clamp(0.66rem, 2vw, 0.78rem);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--wa-green);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease;
}
.btn-wa:hover { background: var(--wa-green-hover); }

.bomb-card__clicks {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  text-align: right;
  color: var(--ink-muted);
}

/* === MICRO-SCREENS (Galaxy S2 320px, Galaxy S8 360px, Smartwatch <= 260px) === */
@media (max-width: 340px) {
  .bomb-card__top {
    grid-template-columns: 56px 1fr;
    gap: 6px;
  }
  .bomb-card__bottom {
    flex-direction: column;
    gap: 6px;
  }
  .bomb-card__cta-buttons { width: 100%; }
  .btn-wa { flex: 1; padding: 7px 6px; }
  .bomb-card__clicks { text-align: center; }
}

@media (max-width: 240px) {
  .brand__logo { display: none; }
  .bomb-card__top { grid-template-columns: 1fr; }
  .bomb-card__media { aspect-ratio: 16 / 9; }
  .bomb-card__desc-short { display: none; }
  .bomb-svg { width: 24px; height: 17px; }
}

/* === URGENCY STATES (Clean FOMO Hierarchy) === */
.bomb-card[data-urgency="normal"] .bomb-card__badge {
  background: var(--wa-green-soft);
  color: var(--wa-green-hover);
}

.bomb-card[data-urgency="medium"] {
  border-color: #FCD34D;
}
.bomb-card[data-urgency="medium"] .bomb-card__badge {
  background: var(--amber-soft);
  color: var(--amber-warn);
}
.bomb-card[data-urgency="medium"] .bomb-card__timer-inner {
  color: var(--amber-warn);
}

.bomb-card[data-urgency="critical"] {
  border-color: var(--alert-red);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.14);
}
.bomb-card[data-urgency="critical"] .bomb-card__badge {
  background: var(--alert-red);
  color: #FFFFFF;
  animation: pulse-crit 1.2s infinite;
}
.bomb-card[data-urgency="critical"] .bomb-card__fuse-bar {
  border-color: #FCA5A5;
  background: var(--alert-red-soft);
}
.bomb-card[data-urgency="critical"] .bomb-card__timer-label {
  background: var(--alert-red);
  color: #FFFFFF;
}
.bomb-card[data-urgency="critical"] .bomb-card__timer-inner {
  color: var(--alert-red);
}
.bomb-card[data-urgency="critical"] .btn-wa {
  background: var(--alert-red);
  border-color: var(--alert-red);
}
.bomb-card[data-urgency="critical"] .btn-wa:hover {
  background: var(--alert-red-hover);
}

@keyframes pulse-crit {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

/* === EXPLODED & ASH STATES === */
.bomb-card__explosion { display: none; }

.bomb-card[data-state="exploded"] .bomb-card__explosion {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: radial-gradient(circle, #FEF3C7 0%, var(--alert-red) 50%, rgba(15,23,42,0.8) 90%);
  animation: blast-burst 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes blast-burst {
  0% { opacity: 1; transform: scale(0.2); }
  45% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.4); }
}

.bomb-card[data-state="ash"] {
  background: var(--ash-bg);
  border: 1px dashed var(--ash-border);
  filter: grayscale(1);
  opacity: 0.78;
}
.bomb-card[data-state="ash"] .bomb-card__badge {
  background: var(--ash-ink);
  color: #FFFFFF;
}
.bomb-card[data-state="ash"] .bomb-card__media::after {
  content: attr(data-ash-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #F8FAFC;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.62rem;
  line-height: 1.2;
}
.bomb-card[data-state="ash"] .btn-wa {
  background: var(--border-strong);
  border-color: var(--border-strong);
  color: var(--ash-ink);
  pointer-events: none;
  text-decoration: line-through;
}

/* === INLINE SVG BOMB === */
.bomb-svg { flex-shrink: 0; overflow: visible; }
.fuse-spark .spark-core { animation: spark-flicker 0.2s infinite alternate; }
.fuse-spark .spark-rays { transform-origin: center; animation: spark-spin 0.5s linear infinite; }
[data-urgency="critical"] .fuse-spark .spark-rays { animation-duration: 0.2s; }
[data-state="ash"] .fuse-spark, [data-state="ash"] .fuse-burn { display: none; }
@keyframes spark-flicker {
  from { opacity: 0.75; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.2); }
}
@keyframes spark-spin { to { transform: rotate(360deg); } }

/* === ANONYMOUS PUBLIC RADAR SECTION === */
.radar-section {
  background: var(--surface-white);
  color: var(--ink-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(12px, 2.5vw, 20px);
  margin: 20px 0 28px;
  box-shadow: var(--shadow-sm);
}

.radar-header { margin-bottom: 12px; }
.radar-title {
  margin: 0;
  font-size: clamp(0.9rem, 3vw, 1.15rem);
  font-weight: 800;
}
.radar-sub {
  font-size: clamp(0.68rem, 2vw, 0.78rem);
  color: var(--ink-muted);
}

.radar-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}
@media (max-width: 520px) {
  .radar-layout { grid-template-columns: 1fr; }
}

.radar-scope {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid var(--wa-green);
  background:
    radial-gradient(circle, transparent 32%, rgba(22, 163, 74, 0.18) 33%, transparent 35%),
    radial-gradient(circle, transparent 64%, rgba(22, 163, 74, 0.18) 65%, transparent 67%),
    #F0FDF4;
  overflow: hidden;
  margin: 0 auto;
}
.radar-scope__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(22, 163, 74, 0.38) 0deg, transparent 70deg);
  animation: radar-sweep 2.4s linear infinite;
}
.radar-blip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wa-green);
  transform: translate(-50%, -50%);
  animation: blip-ping 1.6s infinite;
}
.radar-blip--crit { background: var(--alert-red); }
@keyframes radar-sweep { to { transform: rotate(360deg); } }
@keyframes blip-ping {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  70% { opacity: 0.4; box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); }
}

.radar-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}
.radar-stat {
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.radar-stat__label {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  font-weight: 700;
}
.radar-stat__val {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.radar-countries {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.country-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bg-page);
  color: var(--ink-secondary);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 3px 9px;
}

/* === MODAL & CAROUSEL === */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: clamp(6px, 2vw, 16px);
}
.modal-backdrop[hidden] { display: none; }

.modal {
  width: min(640px, 100%);
  max-height: 94dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border-light);
}

.modal__badge {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(0.72rem, 2.3vw, 0.88rem);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal__header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon {
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 2vw, 0.78rem);
  font-weight: 700;
  padding: 6px 10px;
  background: var(--surface-white);
  color: var(--ink-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}
.btn-icon:hover { background: var(--bg-page); }

.modal__close {
  width: 32px;
  height: 32px;
  font-weight: 800;
  background: var(--ink-primary);
  color: #FFF;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.carousel {
  position: relative;
  background: #0F172A;
}
.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  scroll-snap-align: start;
}
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-primary);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-weight: 800;
  cursor: pointer;
}
.carousel__nav--prev { left: 8px; }
.carousel__nav--next { right: 8px; }
.carousel__counter {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(15, 23, 42, 0.8);
  color: #FFF;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.modal__body {
  padding: clamp(12px, 2.5vw, 18px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal__top-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.modal__price {
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  font-weight: 800;
  background: var(--bg-page);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}
.modal__price.is-free {
  background: var(--wa-green-soft);
  color: var(--wa-green-hover);
}

.modal__title {
  margin: 0;
  font-size: clamp(0.95rem, 3vw, 1.2rem);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.modal__desc {
  margin: 0;
  white-space: pre-line;
  color: var(--ink-secondary);
  font-size: clamp(0.8rem, 2.3vw, 0.92rem);
}

.modal__share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal__footer {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface-subtle);
  border-top: 1px solid var(--border-light);
}

.btn-wa--modal {
  display: flex;
  width: 100%;
  padding: 12px;
  font-size: clamp(0.75rem, 2.5vw, 0.9rem);
}
.btn-wa--modal.is-dead {
  background: var(--border-strong);
  border-color: var(--border-strong);
  color: var(--ash-ink);
  pointer-events: none;
  text-decoration: line-through;
}

/* === PUBLISH FORM & ADMIN PANELS === */
.publish-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin: 18px 0 36px;
  align-items: start;
}
@media (max-width: 860px) {
  .publish-layout { grid-template-columns: 1fr; }
}

.panel {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(12px, 2.5vw, 20px);
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 12px; }
.form-label {
  display: block;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 4px;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 9px 11px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--ink-primary);
  background: #FFF;
}

.duration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 6px;
}
.duration-option input { display: none; }
.duration-option span {
  display: block;
  text-align: center;
  font-size: clamp(0.68rem, 2vw, 0.78rem);
  font-weight: 700;
  padding: 8px 4px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.duration-option input:checked + span {
  background: var(--ink-primary);
  color: #FFF;
  border-color: var(--ink-primary);
}

.alert-box {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.alert-box--error { background: var(--alert-red-soft); color: var(--alert-red-hover); border: 1px solid #FCA5A5; }
.alert-box--ok { background: var(--wa-green-soft); color: var(--wa-green-hover); border: 1px solid #86EFAC; }

/* === FOOTER === */
.site-footer {
  background: var(--surface-white);
  color: var(--ink-secondary);
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
}

.footer-disclaimer {
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  color: var(--ink-muted);
  max-width: 900px;
  margin: 0 0 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  font-weight: 600;
}
.footer-links a {
  color: var(--ink-primary);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }

.empty-state {
  grid-column: 1 / -1;
  background: var(--surface-white);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  color: var(--ink-muted);
  font-weight: 600;
}
