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

:root {
  --bg-deep:       #060c18;
  --bg-dark:       #080e1c;
  --bg-card:       #0d1526;
  --bg-card-hover: #111c35;
  --bg-surface:    #0f1a30;

  --blue-bright:   #3b82f6;
  --blue-light:    #60a5fa;
  --blue-glow:     rgba(59, 130, 246, 0.35);
  --blue-border:   rgba(59, 130, 246, 0.25);

  --purple:        #818cf8;
  --purple-glow:   rgba(129, 140, 248, 0.3);

  --gold:          #f59e0b;
  --gold-glow:     rgba(245, 158, 11, 0.3);

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

  --pink:          #f43f5e;
  --pink-glow:     rgba(244, 63, 94, 0.35);

  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #475569;

  --border:        rgba(255, 255, 255, 0.07);
  --border-active: rgba(59, 130, 246, 0.5);

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     24px;

  --nav-h:         64px;
}

html, body {
  height: 100%;
  font-family: 'Outfit', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background ───────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(59,130,246,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(129,140,248,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(16,185,129,0.04) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

/* dot grid */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(59,130,246,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none; z-index: 0;
}

.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.18; animation: drift 18s ease-in-out infinite;
}
.orb1 { width: 300px; height: 300px; background: var(--blue-bright); top: -80px; left: -60px; animation-delay: 0s; }
.orb2 { width: 250px; height: 250px; background: var(--purple); bottom: 100px; right: -60px; animation-delay: -6s; }
.orb3 { width: 200px; height: 200px; background: var(--green); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -12s; }

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

/* ── Loader ───────────────────────────────────────────────────────────────── */
.loader-overlay {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-deep);
  transition: opacity 0.4s, visibility 0.4s;
}
.loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { position: relative; display: flex; align-items: center; justify-content: center; }
.loader-ring {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid rgba(59,130,246,0.15);
  border-top-color: var(--blue-bright);
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 20px var(--blue-glow);
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text {
  position: absolute; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.25em; color: var(--blue-light);
}

/* ── App wrapper ──────────────────────────────────────────────────────────── */
.app-wrap {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  height: 100dvh; overflow: hidden;
}

/* ── Search section ───────────────────────────────────────────────────────── */
.search-section { padding: 12px 14px 0; flex-shrink: 0; position: relative; }

.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: rgba(13, 21, 38, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;           /* جلوگیری از overflow فیلتر */
  min-width: 0;
}
.search-bar:focus-within {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12), 0 0 20px rgba(59,130,246,0.08);
}
.search-ico { color: var(--text-muted); flex-shrink: 0; }
.search-bar input {
  flex: 1; min-width: 0; border: none; background: transparent;
  color: var(--text-primary); font-family: inherit;
  font-size: 0.9rem; outline: none;
}
.search-bar input::placeholder { color: var(--text-muted); }
.total-badge {
  font-size: 0.68rem; color: var(--text-muted); white-space: nowrap;
  padding: 3px 7px; background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.15); border-radius: 20px;
  flex-shrink: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis;
}

.filter-btn {
  display: flex; align-items: center; gap: 4px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--radius-sm); padding: 5px 9px;
  color: var(--blue-light); cursor: pointer;
  font-family: inherit; font-size: 0.73rem; font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap; flex-shrink: 0;
}
.filter-btn:hover, .filter-btn.open {
  background: rgba(59,130,246,0.2);
  box-shadow: 0 0 12px var(--blue-glow);
}
.filter-label { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Category Dropdown */
.cat-dropdown {
  position: absolute; top: calc(100% + 6px); left: 14px; right: 14px;
  z-index: 50;
  background: rgba(10, 16, 32, 0.95);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(59,130,246,0.1);
  max-height: 280px; overflow-y: auto;
  animation: slideDown 0.18s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }
.cat-dropdown.hidden { display: none; }
.cat-dropdown-inner { padding: 6px; }

.drop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.15s;
  border: 1px solid transparent;
}
.drop-item:hover { background: rgba(59,130,246,0.08); }
.drop-item.active {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.3);
}
.drop-item .d-emoji { font-size: 1.2rem; }
.drop-item .d-name { flex: 1; font-size: 0.88rem; font-weight: 500; color: var(--text-primary); }
.drop-item .d-count {
  font-size: 0.73rem; color: var(--blue-light);
  background: rgba(59,130,246,0.12); padding: 2px 7px;
  border-radius: 12px; font-weight: 600;
}

/* ── Scroll content ───────────────────────────────────────────────────────── */
.scroll-content {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 10px 14px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-content::-webkit-scrollbar { display: none; }
.scroll-content.hidden { display: none; }

/* ── Section ─────────────────────────────────────────────────────────────── */
.section { margin-bottom: 18px; }
.section.hidden { display: none; }
.section-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.section-line { flex: 1; height: 1px; background: var(--border); }
.section-title {
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.18em; padding: 3px 0;
}
.accent-gold  { color: var(--gold); text-shadow: 0 0 12px var(--gold-glow); }
.accent-green { color: var(--green); text-shadow: 0 0 12px var(--green-glow); }
.accent-pink  { color: var(--pink); text-shadow: 0 0 12px var(--pink-glow); }

/* ── Featured carousel ─────────────────────────────────────────────────────── */
.featured-wrap { position: relative; }
.featured-track {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 2px;
  cursor: grab; user-select: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
.featured-track:active { cursor: grabbing; }
.featured-track::-webkit-scrollbar { display: none; }
.featured-track.no-select { user-select: none; pointer-events: none; }

.featured-card {
  flex: 0 0 88%; min-width: 0;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-height: 200px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.4s ease both;
}
.featured-card:hover {
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 24px rgba(59,130,246,0.2);
}
.featured-img {
  width: 100%; height: 180px; object-fit: cover;
  display: block; transition: opacity 0.3s;
}
.featured-placeholder {
  width: 100%; height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(129,140,248,0.08));
}
.featured-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px 14px 14px;
  background: linear-gradient(to top, rgba(6,10,24,0.97) 0%, rgba(6,10,24,0.7) 60%, transparent 100%);
}
.featured-source {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--blue-light); margin-bottom: 4px; text-transform: uppercase;
}
.featured-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); line-height: 1.35; }
.featured-sub {
  font-size: 0.75rem; color: var(--text-secondary); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-wish {
  position: absolute; top: 10px; right: 10px;
  background: rgba(8,14,26,0.75); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 50%;
  width: 34px; height: 34px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 2;
}
.featured-wish:hover { background: rgba(244,63,94,0.15); border-color: var(--pink); }
.featured-wish svg { pointer-events: none; }
.featured-wish.active svg { fill: var(--pink); stroke: var(--pink); }

/* Dots */
.carousel-dots {
  display: flex; justify-content: center; gap: 5px;
  margin-top: 10px;
}
.dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(59,130,246,0.25); cursor: pointer;
  transition: all 0.3s;
}
.dot.active { width: 20px; background: var(--blue-bright); box-shadow: 0 0 8px var(--blue-glow); }

/* ── File grid ────────────────────────────────────────────────────────────── */
.file-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; list-style: none;
}

.file-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  animation: fadeUp 0.35s ease both;
  position: relative;
}
.file-card:hover {
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 16px rgba(59,130,246,0.15), 0 4px 16px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}
.file-card:active { transform: scale(0.98); }

@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }

.card-thumb {
  position: relative; width: 100%; padding-top: 75%;
  background: linear-gradient(135deg, rgba(59,130,246,0.05), rgba(129,140,248,0.05));
  overflow: hidden;
}
.card-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.3s;
}
.card-thumb img.loaded { opacity: 1; }
.card-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--text-muted);
}
.card-type-pill {
  position: absolute; bottom: 6px; left: 6px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 10px; text-transform: uppercase;
}
.pill-photo    { background: rgba(59,130,246,0.25); color: #93c5fd; }
.pill-video    { background: rgba(129,140,248,0.25); color: #a5b4fc; }
.pill-document { background: rgba(245,158,11,0.2); color: #fcd34d; }
.pill-audio    { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.pill-other    { background: rgba(148,163,184,0.15); color: #cbd5e1; }

/* تگ زیرنویس */
.subtitle-tag {
  position: absolute; bottom: 6px; right: 6px;
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 10px;
  background: rgba(16,185,129,0.22); color: #6ee7b7;
  border: 1px solid rgba(16,185,129,0.4);
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 6px rgba(16,185,129,0.2);
  pointer-events: none;
}

/* Wish button on card */
.card-wish {
  position: absolute; top: 6px; right: 6px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(8,14,26,0.75); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; z-index: 2;
}
.card-wish:hover { background: rgba(244,63,94,0.15); border-color: var(--pink); }
.card-wish.active svg { fill: var(--pink); stroke: var(--pink); }
.card-wish svg { pointer-events: none; width: 14px; height: 14px; color: var(--text-secondary); }

.card-body { padding: 9px 10px 10px; }
.card-title {
  font-size: 0.8rem; font-weight: 600; color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-caption {
  font-size: 0.7rem; color: var(--text-secondary);
  margin-top: 4px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Skeleton */
.skel-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.skel-thumb { width: 100%; padding-top: 75%; }
.skel-body  { padding: 9px 10px 10px; }
.skel-line  { height: 12px; border-radius: 6px; margin-bottom: 6px; }
.skel-line.s{ width: 60%; }
.shimmer    { background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── State boxes ─────────────────────────────────────────────────────────── */
.state-box {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 48px 20px; text-align: center;
}
.state-box.hidden { display: none; }
.state-icon { font-size: 2.8rem; margin-bottom: 12px; }
.state-text { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.state-sub  { font-size: 0.82rem; color: var(--text-muted); }

/* ── Load more ───────────────────────────────────────────────────────────── */
.load-more-wrap { display: flex; justify-content: center; padding: 8px 0 6px; }
.load-more-wrap.hidden { display: none; }
.load-more-btn {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 30px; padding: 10px 28px;
  color: var(--blue-light); font-family: inherit;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.load-more-btn:hover {
  background: rgba(59,130,246,0.16);
  box-shadow: 0 0 16px rgba(59,130,246,0.2);
}
.lm-text { display: inline; }
.lm-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(96,165,250,0.3); border-top-color: var(--blue-light); border-radius: 50%; animation: spin 0.8s linear infinite; }
.lm-spin.hidden { display: none; }
.lm-text.hidden { display: none; }

.bottom-spacer { height: 80px; }

/* ── Bottom Nav ──────────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  background: rgba(7, 12, 24, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(59,130,246,0.15);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-muted); font-family: inherit;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 8px; position: relative; transition: color 0.2s;
}
.nav-btn.active { color: var(--blue-light); }
.nav-btn.active svg { filter: drop-shadow(0 0 6px var(--blue-glow)); }
.nav-btn svg { transition: all 0.2s; }

.wish-count {
  position: absolute; top: 6px; right: calc(50% - 18px);
  background: var(--pink); color: #fff;
  font-size: 0.58rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 1.5px solid var(--bg-dark);
}
.wish-count.hidden { display: none; }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-overlay.hidden { display: none; }

.modal-card {
  background: var(--bg-surface);
  border: 1px solid rgba(59,130,246,0.2);
  border-top: 1px solid rgba(59,130,246,0.3);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%; max-width: 500px;
  height: 96dvh;
  overflow-y: auto;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px rgba(0,0,0,0.7), 0 0 40px rgba(59,130,246,0.1);
  scrollbar-width: none;
  animation: slideUp 0.28s cubic-bezier(0.32,0.72,0,1);
}
.modal-card::-webkit-scrollbar { display: none; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-top-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.modal-close {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 50%; width: 32px; height: 32px;
  color: var(--text-secondary); cursor: pointer;
  font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text-primary); }
.modal-wish-btn {
  background: rgba(244,63,94,0.08); border: 1px solid rgba(244,63,94,0.25);
  border-radius: 50%; width: 36px; height: 36px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; color: var(--text-muted);
}
.modal-wish-btn:hover { background: rgba(244,63,94,0.15); color: var(--pink); }
.modal-wish-btn.active { background: rgba(244,63,94,0.2); color: var(--pink); border-color: var(--pink); }
.modal-wish-btn.active svg { fill: var(--pink); stroke: var(--pink); }

.modal-thumb { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 14px; background: var(--bg-card); min-height: 60px; }
.modal-thumb img { width: 100%; max-height: 240px; object-fit: contain; display: block; }
.modal-thumb-placeholder { min-height: 100px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }

.modal-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; padding: 3px 10px; border-radius: 20px;
  margin-bottom: 8px; text-transform: uppercase;
}
.modal-badge.pill-photo    { background: rgba(59,130,246,0.15); color: #93c5fd; border: 1px solid rgba(59,130,246,0.3); }
.modal-badge.pill-video    { background: rgba(129,140,248,0.15); color: #a5b4fc; border: 1px solid rgba(129,140,248,0.3); }
.modal-badge.pill-document { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }
.modal-badge.pill-audio    { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }
.modal-badge.pill-other    { background: rgba(148,163,184,0.1); color: #cbd5e1; border: 1px solid var(--border); }

/* Hashtags & links in modal */
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.modal-hashtag {
  font-size: 0.75rem; font-weight: 600; padding: 4px 10px;
  border-radius: 20px; cursor: default;
  background: rgba(129,140,248,0.12); color: var(--purple);
  border: 1px solid rgba(129,140,248,0.25);
  transition: background 0.15s;
}
.modal-hashtag:hover { background: rgba(129,140,248,0.22); }
.modal-link-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 600; padding: 4px 10px;
  border-radius: 20px; text-decoration: none;
  background: rgba(16,185,129,0.1); color: var(--green);
  border: 1px solid rgba(16,185,129,0.25);
  transition: background 0.15s;
  word-break: break-all;
}
.modal-link-chip:hover { background: rgba(16,185,129,0.2); }

.modal-title   { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); line-height: 1.4; margin-bottom: 8px; }
.modal-caption {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 12px; white-space: pre-line;   /* خطوط جدید بعد نقطه رندر می‌شود */
}
.modal-meta    { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.meta-tag {
  font-size: 0.73rem; color: var(--blue-light);
  background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.15);
  padding: 3px 10px; border-radius: 20px;
}

.modal-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue-bright), #2563eb);
  color: #fff; text-decoration: none; font-family: inherit;
  font-size: 0.9rem; font-weight: 600; padding: 13px 20px;
  border-radius: var(--radius-md); transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(59,130,246,0.35);
}
.modal-btn:hover { box-shadow: 0 6px 24px rgba(59,130,246,0.5); transform: translateY(-1px); }
.modal-btn.hidden { display: none; }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.glass       { backdrop-filter: blur(12px); }
.glass-heavy { backdrop-filter: blur(20px); }
