/* ══════════════════════════════════════════
   VOOMCOMIX — PREMIUM STYLESHEET
   style.css  |  Desktop-first (1440–1920px)
══════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg:            #ffffff;
  --bg2:           #f8f8f8;
  --bg3:           #f0f0f0;
  --card:          #ffffff;
  --border:        #e8e8e8;
  --border-strong: #d0d0d0;

  /* Accent palette — Webtoon-inspired green + red pulse */
  --accent:        #ec1561;   /* logo pink */
  --accent-dark:   #c20f4f;
  --accent-glow:   rgba(236, 21, 97, 0.18);
  --accent2:       #7b2ff7;   /* logo purple */
  --gold:          #f59e0b;

  --text:          #0d0d0d;
  --text-soft:     #333333;
  --muted:         #777777;
  --faint:         #b8b8b8;

  --font-display:  'Bebas Neue', sans-serif;
  --font-body:     'Outfit', sans-serif;

  --radius:        10px;
  --radius-lg:     16px;
  --radius-xl:     20px;

  --shadow-xs:     0 1px 4px rgba(0,0,0,.06);
  --shadow-sm:     0 2px 12px rgba(0,0,0,.08);
  --shadow-md:     0 6px 24px rgba(0,0,0,.10);
  --shadow-lg:     0 16px 48px rgba(0,0,0,.14);
  --shadow-accent: 0 8px 32px rgba(0,199,60,.22);

  --thumb-w:       160px;
  --thumb-h:       213px;

  --content-max:   1440px;
  --section-px:    40px;
}

/* ── KEYFRAMES ── */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);   }
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 199, 60, 0.45); }
  50%       { box-shadow: 0 0 0 9px rgba(0, 199, 60, 0);  }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); }
img { display: block; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--faint); }

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  padding: 0 var(--section-px);
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 100%;
}

/* Logo */
.header-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-logo-wrap img { height: 52px; width: auto; }
.logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2.5px;
  color: var(--text);
  flex-shrink: 0;
  line-height: 1;
}
.logo span { color: var(--accent); }

/* Center nav */
.nav-center {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  margin-left: 24px;
}
.nav-center a {
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-center a:hover,
.nav-center a.active {
  color: var(--text);
  background: var(--bg3);
}

/* Type links */
.nav-type-links { display: flex; gap: 4px; }
.nav-type-links a {
  padding: 6px 13px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  border: 1.5px solid var(--border);
  color: var(--muted);
  transition: all .18s;
}
.nav-type-links a.manga:hover  { color: #ff4d8d; border-color: #ff4d8d; background: rgba(255,77,141,.06); }
.nav-type-links a.comic:hover  { color: #e07d20; border-color: #e07d20; background: rgba(224,125,32,.06); }
.nav-type-links a.novel:hover  { color: #00c73c; border-color: #00c73c; background: rgba(0,199,60,.06); }

/* ── SEARCH ── */
.search-wrap {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: auto;
}
.search-input-row {
  display: flex;
  align-items: center;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.search-input-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.search-icon {
  padding: 0 12px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.search-input-row input {
  background: none;
  border: none;
  padding: 9px 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  width: 210px;
  transition: width .25s;
  outline: none;
}
.search-input-row input:focus { width: 260px; }
.search-input-row input::placeholder { color: var(--faint); }
.search-clear {
  padding: 0 10px;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  display: none;
  transition: color .18s;
}
.search-clear:hover { color: var(--text); }
.search-clear.show  { display: block; }

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 320px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: none;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  animation: fadeUp .18s ease;
}
.search-dropdown.show { display: block; }
.search-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  padding: 12px 16px 4px;
}
.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  cursor: pointer;
  transition: background .15s;
  font-size: 13px;
}
.recent-item:hover { background: var(--bg3); }
.recent-item-left  { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.recent-remove {
  background: none;
  border: none;
  color: var(--faint);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all .15s;
}
.recent-remove:hover { color: var(--accent2); background: rgba(230,57,70,.1); }
.clear-all-recent {
  width: 100%;
  padding: 9px 16px;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: color .15s;
}
.clear-all-recent:hover { color: var(--accent2); }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background .15s;
}
.search-result-item:hover { background: var(--bg3); }
.search-result-thumb {
  width: 38px;
  height: 52px;
  border-radius: 6px;
  background: var(--bg3);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-info .title { font-size: 13px; font-weight: 600; }
.search-result-info .meta  { font-size: 11px; color: var(--muted); }
.search-no-result { padding: 18px 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* ── NAV RIGHT ── */
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── BUTTONS ── */
.btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
  line-height: 1;
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

.btn-writer {
  background: linear-gradient(135deg, #f4a261, var(--accent2));
  color: #fff;
  border: none;
}
.btn-writer:hover { opacity: .88; transform: translateY(-1px); }

.btn-download {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-download:hover { opacity: .88; transform: translateY(-1px); }

/* ── USER MENU ── */
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2.5px solid var(--accent);
  display: none;
}
.user-menu { position: relative; }
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 210px;
  overflow: hidden;
  display: none;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  animation: fadeUp .18s ease;
}
.user-dropdown.show { display: block; }
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s;
  color: var(--text);
}
.user-dropdown-item:hover { background: var(--bg3); }
.user-dropdown-item.danger { color: var(--accent2); }
.user-dropdown-divider { border-top: 1px solid var(--border); margin: 4px 0; }

/* ════════════════════════════════════════
   SECTION SYSTEM
════════════════════════════════════════ */
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 1.5px;
  line-height: 1;
  color: var(--text);
}
.section-heading span { color: var(--accent); }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border: 1.5px solid var(--accent-glow);
  border-radius: 8px;
  transition: all .2s;
}
.view-all-link:hover {
  background: var(--accent-glow);
  gap: 9px;
}

/* ════════════════════════════════════════
   TRENDING SECTION  (hero centerpiece)
════════════════════════════════════════ */
.trending-section {
  padding: 48px var(--section-px) 40px;
  max-width: var(--content-max);
  margin: 0 auto;
}
.trending-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

/* Grid — large cards, 5–7 across on wide screens */
.trending-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 32px;
}

/* Individual card */
.trending-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .28s cubic-bezier(.25,.46,.45,.94);
}
.trending-card:hover { transform: translateY(-8px); }

/* Cover image wrapper */
.trending-card-img {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg3);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .28s, border-color .28s;
}
.trending-card:hover .trending-card-img {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

/* Image zoom on hover */
.trending-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94);
}
.trending-card:hover .trending-card-img img { transform: scale(1.07); }

/* Gradient overlay — appears on hover */
.trending-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .28s;
  border-radius: inherit;
}
.trending-card:hover .trending-card-img::after { opacity: 1; }

/* "Read Now" overlay button */
.trending-card-img .read-overlay-btn {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  padding: 7px 18px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 2;
  transition: opacity .22s, transform .22s;
  pointer-events: none;
}
.trending-card:hover .trending-card-img .read-overlay-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Badges */
.trending-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .6px;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.trending-card-lang {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0,0,0,.65);
  color: #fff;
  letter-spacing: .4px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Card info block */
.trending-card-info {
  padding: 11px 2px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.trending-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
  color: var(--text);
  height: 35px;
}
.trending-card-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: center;
}
.trending-card-genre { font-size: 11px; color: var(--muted); }

/* Read Now button below card */
.read-now-btn {
  display: block;
  margin-top: 10px;
  padding: 8px 0;
  background: var(--accent);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.read-now-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

/* Hide legacy scroll arrows */
.trending-scroll-btn,
.trending-slider, .slider-dots, .trending-thumbs,
.slide, .slider-arrow, .slider-dot, .slide-details,
.slide-cover, .trending-thumb { display: none !important; }

/* ════════════════════════════════════════
   BOOKS SECTION  (Top Manga / Comic / Novel)
════════════════════════════════════════ */
.books-section {
  padding: 40px var(--section-px);
  border-top: 1px solid var(--border);
  max-width: var(--content-max);
  margin: 0 auto;
}
.books-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--thumb-w), 1fr));
  gap: 32px;
}

/* Book card */
.book-card {
  cursor: pointer;
  transition: transform .28s cubic-bezier(.25,.46,.45,.94);
  display: flex;
  flex-direction: column;
}
.book-card:hover { transform: translateY(-6px); }

.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  height: auto;
  border-radius: var(--radius);
  background: var(--bg3);
  margin-bottom: 9px;
  border: 1px solid var(--border);
  transition: border-color .25s, box-shadow .25s;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.25,.46,.45,.94); }
.book-card:hover .book-cover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(0,199,60,.15);
}
.book-card:hover .book-cover img { transform: scale(1.05); }

.book-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
  color: var(--text);
}
.book-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  overflow: hidden;
  margin-bottom: 7px;
}

/* Badges */
.book-type-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .3px;
  flex-shrink: 0;
}
.badge-manga  { background: rgba(255,77,141,.12); color: #cc2e6e; }
.badge-comic  { background: rgba(224,125,32,.12);  color: #a85a10; }
.badge-novel  { background: rgba(0,199,60,.13);   color: #007a28; }

.book-lang-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg3);
  color: var(--muted);
  border: 1px solid var(--border);
  letter-spacing: .3px;
  flex-shrink: 0;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-new      { background: rgba(0,199,60,.12);  color: #007a28; }
.badge-hot      { background: rgba(230,57,70,.12); color: #a81821; }
.badge-trending { background: rgba(83,74,183,.12); color: #3c3489; }

/* ════════════════════════════════════════
   NEW RELEASES
════════════════════════════════════════ */
.new-releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.new-release-card {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  cursor: pointer;
  transition: border-color .22s, box-shadow .22s, transform .22s;
  align-items: flex-start;
}
.new-release-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,199,60,.1);
  transform: translateY(-2px);
}
.new-release-img {
  width: 60px;
  height: 84px;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bg3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid var(--border);
  transition: border-color .22s;
}
.new-release-card:hover .new-release-img { border-color: var(--accent); }
.new-release-img img { width: 100%; height: 100%; object-fit: cover; }
.new-release-info   { flex: 1; min-width: 0; }
.new-release-title  {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.new-release-author {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.new-release-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.new-release-stats { display: none; }

/* ════════════════════════════════════════
   TAGS
════════════════════════════════════════ */
.tags-section {
  padding: 36px var(--section-px);
  border-top: 1px solid var(--border);
  max-width: var(--content-max);
  margin: 0 auto;
}
.tags-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  padding: 8px 18px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
  color: var(--muted);
  background: var(--bg);
}
.tag-pill:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ════════════════════════════════════════
   BENEFITS
════════════════════════════════════════ */
.benefits-section {
  padding: 52px var(--section-px);
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 32px;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}
.benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.benefit-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,199,60,.1);
}
.benefit-icon  { font-size: 30px; margin-bottom: 14px; }
.benefit-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--text); }
.benefit-desc  { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ════════════════════════════════════════
   WRITER CTA
════════════════════════════════════════ */
.writer-cta {
  padding: 64px var(--section-px);
  border-top: 1px solid var(--border);
  text-align: center;
  background: linear-gradient(160deg, rgba(0,199,60,.04) 0%, rgba(244,162,97,.04) 100%);
}
.writer-cta h2 {
  font-family: var(--font-display);
  font-size: 52px;
  letter-spacing: 2.5px;
  margin-bottom: 14px;
  color: var(--text);
}
.writer-cta p {
  color: var(--muted);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-large {
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .22s;
  border: none;
  font-family: var(--font-body);
}
.btn-large-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}
.btn-large-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0,199,60,.3);
}
.btn-large-ghost {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
}
.btn-large-ghost:hover { border-color: var(--text); }

/* ════════════════════════════════════════
   UPDATES
════════════════════════════════════════ */
.updates-section {
  padding: 44px var(--section-px);
  border-top: 1px solid var(--border);
  max-width: var(--content-max);
  margin: 0 auto;
}
.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.update-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color .2s, transform .2s;
}
.update-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.update-type  { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.update-title { font-weight: 700; font-size: 14px; margin-bottom: 7px; color: var(--text); }
.update-text  { font-size: 13px; color: var(--muted); line-height: 1.65; }
.update-date  { font-size: 11px; color: var(--faint); margin-top: 12px; }

/* ════════════════════════════════════════
   AD UNITS
════════════════════════════════════════ */
.ad-unit {
  width: 100%;
  text-align: center;
  padding: 16px var(--section-px);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
}
.ad-unit ins[data-adsbygoogle-status="done"] { display: block !important; }

/* ════════════════════════════════════════
   SKELETON LOADER
════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, #e4e4e4 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--radius);
}
.cover-placeholder {
  width: 100%;
  height: var(--thumb-h);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 1px solid var(--border);
}

/* ════════════════════════════════════════
   MODAL
════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px;
  overflow-y: auto;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 430px;
  position: relative;
  animation: modalIn .25s cubic-bezier(.34,1.56,.64,1);
  margin: auto;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all .18s;
}
.modal-close:hover { color: var(--text); background: var(--border); }
.modal h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 4px; letter-spacing: 1.5px; }
.modal p.subtitle { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

.modal-tabs {
  display: flex;
  gap: 3px;
  background: var(--bg3);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 18px;
}
.modal-tab {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  color: var(--muted);
  transition: all .18s;
  border: none;
  background: transparent;
  font-family: var(--font-body);
}
.modal-tab.active { background: var(--card); color: var(--text); box-shadow: var(--shadow-xs); }

.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.role-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
  transition: all .18s;
}
.role-option:hover,
.role-option.selected { border-color: var(--accent); background: rgba(0,199,60,.05); }
.role-option .role-icon { font-size: 22px; margin-bottom: 5px; }
.role-option .role-name { font-size: 12px; font-weight: 700; }
.role-option .role-desc { font-size: 10px; color: var(--muted); margin-top: 2px; }

.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 5px;
}
.form-group input {
  width: 100%;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 10px 13px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder { color: var(--faint); }

.modal-submit {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  margin-top: 4px;
}
.modal-submit:hover { background: var(--accent-dark); box-shadow: var(--shadow-accent); }
.modal-submit:disabled { opacity: .5; cursor: not-allowed; }
.modal-footer-link { text-align: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.modal-footer-link a { color: var(--accent); font-weight: 600; }

.modal-error {
  background: rgba(230,57,70,.08);
  border: 1px solid rgba(230,57,70,.25);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  color: var(--accent2);
  margin-bottom: 12px;
  display: none;
}
.modal-error.show { display: block; }
.modal-success {
  background: rgba(0,199,60,.08);
  border: 1px solid rgba(0,199,60,.25);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  color: var(--accent-dark);
  margin-bottom: 12px;
  display: none;
}
.modal-success.show { display: block; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  font-size: 14px;
  z-index: 600;
  transform: translateY(70px);
  opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  max-width: 290px;
  box-shadow: var(--shadow-md);
}
.toast.show    { transform: translateY(0); opacity: 1; }
.toast.success { border-color: var(--accent); }
.toast.error   { border-color: var(--accent2); }

/* ── INSTALL MODAL ── */
.install-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px;
}
.install-modal-overlay.show { display: flex; }
.install-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  width: 100%;
  max-width: 390px;
  position: relative;
  animation: modalIn .25s cubic-bezier(.34,1.56,.64,1);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.install-modal-icon { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 18px; overflow: hidden; }
.install-modal-icon img { width: 100%; height: 100%; object-fit: cover; }
.install-modal h3 { font-family: var(--font-display); font-size: 28px; letter-spacing: 1.5px; margin-bottom: 8px; }
.install-modal p  { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 22px; }
.install-modal-btns { display: flex; gap: 10px; flex-direction: column; }
.install-btn-main {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  animation: pulse-green 2.4s infinite;
}
.install-btn-main:hover    { opacity: .9; }
.install-btn-main:disabled { opacity: .5; cursor: not-allowed; animation: none; }
.install-btn-close {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.install-btn-close:hover { color: var(--text); border-color: var(--border-strong); }
.install-already {
  background: rgba(0,199,60,.08);
  border: 1px solid rgba(0,199,60,.25);
  border-radius: 9px;
  padding: 12px;
  font-size: 13px;
  color: var(--accent-dark);
  margin-bottom: 18px;
  display: none;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px var(--section-px) 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.75; max-width: 240px; margin-top: 13px; }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--muted); transition: color .18s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-emails { margin-top: 14px; }
.footer-emails a { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; transition: color .18s; }
.footer-emails a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: var(--content-max);
  margin: 0 auto;
}
.footer-bottom p { font-size: 12px; color: var(--faint); }

/* ════════════════════════════════════════
   MOBILE — hide desktop elements
   (mobile layout not in scope, just safety)
════════════════════════════════════════ */
.mob-hamburger,
.mob-header-right,
.mob-explore-panel,
.mob-search-panel,
.mob-panel-backdrop,
.mob-user-avatar,
.mob-login-btn,
.mob-search-icon-btn { display: none !important; }

#mobileSearchBar,
#mobileAllStories,
#mobileContest,
#mobilelogin,
#mobileDownload,
#mobileSearch,
#desktopDownload,
.nav-type-links-mobile,
.btn-mobile-search,
#mobileTypeLinks,
.pwa-banner,
.app-bottom-nav { display: none !important; }

/* ════════════════════════════════════════
   DESKTOP RESPONSIVE ADJUSTMENTS
════════════════════════════════════════ */
@media (min-width: 1600px) {
  :root {
    --section-px: 60px;
    --thumb-w: 175px;
  }
  .trending-row { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
}

@media (min-width: 1920px) {
  :root {
    --section-px: 80px;
    --thumb-w: 190px;
  }
  .trending-row { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}