/* ============================================================
   VidDown Pro — SnapLoad-style Design System
   ============================================================ */

/* ── Fonts ──────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500&display=swap');

/* ── Custom properties — Dark (default) ──────────────────────── */
:root {
  --brand:       #0F6E56;
  --brand-light: #1D9E75;
  --brand-pale:  rgba(29,158,117,0.12);
  --accent:      #EF9F27;
  --dark:        #0d0d0d;
  --dark-2:      #1a1a1a;
  --dark-3:      #262626;
  --muted:       #888;
  --text:        #e8e8e8;
  --text-dim:    #aaa;
  --border:      rgba(255,255,255,0.08);
  --radius:      14px;
  --font-head:   'Space Grotesk', system-ui, sans-serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --shadow:      0 8px 32px rgba(0,0,0,0.4);
}

/* ── Custom properties — Light mode ─────────────────────────── */
[data-bs-theme="light"] {
  --dark:     #f0f2f5;
  --dark-2:   #ffffff;
  --dark-3:   #e8ebf0;
  --text:     #111827;
  --text-dim: #4b5563;
  --muted:    #9ca3af;
  --border:   rgba(0,0,0,0.09);
  --shadow:   0 8px 32px rgba(0,0,0,0.1);
}

/* Light mode specific overrides */
[data-bs-theme="light"] body { background: var(--dark); color: var(--text); }

[data-bs-theme="light"] .navbar-main {
  background: rgba(240,242,245,0.92);
  border-bottom-color: var(--border);
}
[data-bs-theme="light"] .navbar-main .nav-link         { color: var(--text-dim) !important; }
[data-bs-theme="light"] .navbar-main .nav-link:hover   { color: var(--brand) !important; }
[data-bs-theme="light"] .navbar-main .nav-link.active  { color: var(--brand) !important; }
[data-bs-theme="light"] .brand-snap                    { color: var(--brand); }
[data-bs-theme="light"] .brand-load                    { color: var(--text); }

[data-bs-theme="light"] .hero-section {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(29,158,117,0.1) 0%, transparent 70%), var(--dark);
}
[data-bs-theme="light"] .hero-title  { color: var(--text); }
[data-bs-theme="light"] .hero-title span { color: var(--brand); }

[data-bs-theme="light"] .dl-card     { background: #fff; border-color: var(--border); box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
[data-bs-theme="light"] .url-input-wrap { background: var(--dark-3); border-color: rgba(0,0,0,0.12); }
[data-bs-theme="light"] .url-input-wrap input { color: var(--text); }
[data-bs-theme="light"] .url-input-wrap input::placeholder { color: var(--muted); }
[data-bs-theme="light"] .url-input-wrap .input-icon { color: var(--muted); }

[data-bs-theme="light"] .pill { background: var(--dark-3); color: var(--text-dim); border-color: var(--border); }
[data-bs-theme="light"] .pill:hover { color: var(--brand); border-color: var(--brand-light); }

[data-bs-theme="light"] .result-card       { background: #fff; border-color: var(--border); }
[data-bs-theme="light"] .result-thumb-placeholder { background: var(--dark-3); }
[data-bs-theme="light"] .result-title      { color: var(--text); }
[data-bs-theme="light"] .format-btn        { background: var(--dark-3); border-color: var(--border); color: var(--text); }
[data-bs-theme="light"] .format-btn:hover,
[data-bs-theme="light"] .format-btn.selected { border-color: var(--brand-light); color: var(--brand); }

[data-bs-theme="light"] .stats-strip    { background: #fff; }
[data-bs-theme="light"] .loading-bar    { background: var(--dark-3); }

[data-bs-theme="light"] .feat-card      { background: #fff; border-color: var(--border); }
[data-bs-theme="light"] .feat-card h5   { color: var(--text); }
[data-bs-theme="light"] .feat-card:hover { border-color: rgba(29,158,117,0.35); }

[data-bs-theme="light"] .platform-card  { background: #fff; border-color: var(--border); }

[data-bs-theme="light"] .accordion-item    { background: #fff !important; border-color: var(--border) !important; }
[data-bs-theme="light"] .accordion-button { background: #fff !important; color: var(--text) !important; }
[data-bs-theme="light"] .accordion-button::after { filter: none; opacity: .5; }
[data-bs-theme="light"] .accordion-button:not(.collapsed) { color: var(--brand) !important; }
[data-bs-theme="light"] .accordion-body   { background: #fff; color: var(--text-dim); }

[data-bs-theme="light"] section[style*="background:var(--dark-2)"] { background: #f8faf9 !important; }

[data-bs-theme="light"] .blog-card       { background: #fff; border-color: var(--border); }
[data-bs-theme="light"] .blog-card h5 a  { color: var(--text); }

[data-bs-theme="light"] .site-footer     { background: #f0f2f5; border-top-color: var(--border); }
[data-bs-theme="light"] .footer-link     { color: var(--text-dim); }
[data-bs-theme="light"] .footer-divider  { border-color: var(--border) !important; }
[data-bs-theme="light"] .footer-brand    { color: var(--text) !important; }

[data-bs-theme="light"] .theme-toggle-btn { background: var(--dark-3); border-color: var(--border); color: var(--text); }

/* Admin light overrides */
[data-bs-theme="light"] .admin-sidebar   { background: #fff; border-right-color: var(--border); }
[data-bs-theme="light"] .admin-topbar    { background: #fff; border-bottom-color: var(--border); }
[data-bs-theme="light"] .admin-main      { background: var(--dark); }
[data-bs-theme="light"] .card-vd         { background: #fff; border-color: var(--border); }
[data-bs-theme="light"] .card-vd .card-header-vd { color: var(--text); border-bottom-color: var(--border); }
[data-bs-theme="light"] .stat-card       { background: #fff; border-color: var(--border); }
[data-bs-theme="light"] .stat-card .stat-value { color: var(--text); }
[data-bs-theme="light"] .table-vd        { color: var(--text); }
[data-bs-theme="light"] .table-vd thead th  { background: var(--dark-3); color: var(--muted); }
[data-bs-theme="light"] .table-vd td,
[data-bs-theme="light"] .table-vd th        { border-color: var(--border); }
[data-bs-theme="light"] .sidebar-nav .nav-link { color: var(--text-dim); }
[data-bs-theme="light"] .sidebar-nav .nav-link:hover,
[data-bs-theme="light"] .sidebar-nav .nav-link.active { color: var(--brand); background: var(--brand-pale); }

/* ── Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.brand-font { font-family: var(--font-head); }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar-main {
  background: rgba(13,13,13,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: .65rem 0;
}

.navbar-main .navbar-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -.5px;
  text-decoration: none;
}
.brand-snap { color: var(--brand-light); }
.brand-load { color: #fff; }

.navbar-main .nav-link {
  color: var(--text-dim) !important;
  font-size: .88rem;
  font-weight: 500;
  padding: .5rem .85rem !important;
  transition: color .2s;
  border-radius: 8px;
}
.navbar-main .nav-link:hover { color: #fff !important; }
.navbar-main .nav-link.active { color: var(--brand-light) !important; }

.btn-nav {
  background: var(--brand);
  color: #fff !important;
  border-radius: 8px;
  padding: 6px 18px !important;
  font-size: .87rem;
  font-weight: 600;
  border: none;
  transition: background .2s;
}
.btn-nav:hover { background: var(--brand-light) !important; color: #fff !important; }

.navbar-toggler { border: none !important; }
.navbar-toggler-icon { filter: invert(1); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero-section {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(29,158,117,0.18) 0%, transparent 70%), var(--dark);
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(29,158,117,0.15);
  color: var(--brand-light);
  border: 1px solid rgba(29,158,117,0.3);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .5px;
  padding: 5px 16px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin-bottom: 1rem;
  color: #fff;
}
.hero-title span { color: var(--brand-light); }

.hero-subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2.2rem;
  line-height: 1.65;
}

/* ── Download card ───────────────────────────────────────────── */
.dl-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.url-input-wrap {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: border-color .2s;
}
.url-input-wrap:focus-within { border-color: var(--brand-light); }

.url-input-wrap .input-icon {
  color: var(--muted);
  padding: 0 .75rem 0 1rem;
  flex-shrink: 0;
}

.url-input-wrap input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: .95rem;
  padding: .8rem .5rem;
  flex: 1;
  outline: none;
}
.url-input-wrap input::placeholder { color: var(--muted); }

.btn-download-main {
  background: var(--brand-light);
  color: #fff;
  border: none;
  border-radius: 8px !important;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: .72rem 1.5rem;
  margin: 4px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, transform .1s;
  flex-shrink: 0;
}
.btn-download-main:hover  { background: var(--brand); }
.btn-download-main:active { transform: scale(.98); }

/* ── Loading bar ─────────────────────────────────────────────── */
.loading-bar {
  height: 3px;
  background: var(--dark-3);
  border-radius: 99px;
  overflow: hidden;
  margin-top: .75rem;
  display: none;
}
.loading-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  width: 0%;
  border-radius: 99px;
  transition: width .35s ease;
}

/* ── Platform pills ──────────────────────────────────────────── */
.platform-pills {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.pill {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .78rem;
  padding: 5px 14px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  text-decoration: none;
}
.pill:hover { border-color: var(--brand-light); color: var(--brand-light); }

/* ── Media result card ───────────────────────────────────────── */
.result-card {
  display: none;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 720px;
  margin: 1.5rem auto 0;
  animation: fadeUp .3s ease both;
}

.result-thumb {
  width: 120px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}
.result-thumb-placeholder {
  width: 120px;
  height: 75px;
  background: var(--dark-3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 2rem;
  flex-shrink: 0;
}

.result-title { font-weight: 600; font-size: .95rem; margin-bottom: 4px; color: #fff; font-family: var(--font-head); }
.result-meta  { font-size: .8rem; color: var(--text-dim); }

/* ── Format buttons ──────────────────────────────────────────── */
.format-btn {
  background: var(--dark-3);
  border: 1.5px solid rgba(255,255,255,0.1);
  color: var(--text);
  border-radius: 8px;
  font-size: .82rem;
  padding: 9px 14px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  height: 100%;
}
.format-btn:hover,
.format-btn.selected { border-color: var(--brand-light); color: var(--brand-light); }
.format-btn .badge-qual {
  display: block;
  font-size: .7rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}
.format-btn .badge-size {
  display: block;
  font-size: .7rem;
  color: var(--muted);
  margin-top: 2px;
}
.no-audio-badge {
  display: inline-block;
  font-size: .65rem;
  background: rgba(239,159,39,0.15);
  color: var(--accent);
  border-radius: 4px;
  padding: 1px 5px;
  margin-top: 3px;
}

/* ── Stats strip ─────────────────────────────────────────────── */
.stats-strip {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--brand-light);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: .8rem; color: var(--text-dim); }

/* ── Section headings ────────────────────────────────────────── */
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -.8px;
  color: #fff;
}

/* ── How it works steps ──────────────────────────────────────── */
.step-num {
  width: 40px;
  height: 40px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-connector {
  width: 1px;
  background: var(--border);
  flex-grow: 1;
  min-height: 28px;
}

/* ── Feature cards ───────────────────────────────────────────── */
.feat-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  height: 100%;
  transition: border-color .25s;
}
.feat-card:hover { border-color: rgba(29,158,117,0.4); }

.feat-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-pale);
  color: var(--brand-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.feat-card h5 { font-family: var(--font-head); font-weight: 600; font-size: 1rem; margin-bottom: .5rem; color: #fff; }
.feat-card p  { font-size: .87rem; color: var(--text-dim); margin: 0; line-height: 1.6; }

/* ── Platform grid ───────────────────────────────────────────── */
.platform-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1rem;
  text-align: center;
  transition: border-color .2s;
  cursor: pointer;
}
.platform-card:hover { border-color: rgba(29,158,117,0.5); }
.platform-card i    { font-size: 1.8rem; display: block; margin-bottom: .5rem; }
.platform-card span { font-size: .82rem; color: var(--text-dim); }

.yt-color     { color: #FF0000; }
.ig-color     { color: #E1306C; }
.tt-color     { color: #69C9D0; }
.tw-color     { color: #1DA1F2; }
.fb-color     { color: #1877F2; }
.vimeo-color  { color: #1AB7EA; }
.reddit-color { color: #FF4500; }
.pin-color    { color: #E60023; }
.sc-color     { color: #FF5500; }
.twitch-color { color: #9146FF; }
.dm-color     { color: #0096DC; }
.li-color     { color: #0A66C2; }

/* ── FAQ Accordion ───────────────────────────────────────────── */
.accordion-item {
  background: var(--dark-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  margin-bottom: 10px;
  overflow: hidden;
}
.accordion-button {
  background: var(--dark-2) !important;
  color: var(--text) !important;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  box-shadow: none !important;
}
.accordion-button::after { filter: invert(1) opacity(.5); }
.accordion-button:not(.collapsed) { color: var(--brand-light) !important; }
.accordion-body {
  background: var(--dark-2);
  color: var(--text-dim);
  font-size: .88rem;
  line-height: 1.65;
  padding-top: 0;
}

/* ── CTA Banner ──────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--brand) 0%, #0F4F3A 100%);
  padding: 4rem 0;
  text-align: center;
}
.cta-section h2 { color: #fff; }
.btn-cta {
  background: #fff;
  color: var(--brand);
  font-family: var(--font-head);
  font-weight: 600;
  border: none;
  border-radius: .75rem;
  padding: .75rem 2rem;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: opacity .2s;
}
.btn-cta:hover { opacity: .9; color: var(--brand); }

/* ── Blog cards ──────────────────────────────────────────────── */
.blog-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s;
  height: 100%;
}
.blog-card:hover { border-color: rgba(29,158,117,0.4); }
.blog-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.blog-card-body { padding: 1.25rem; }
.blog-category-badge {
  display: inline-block;
  background: var(--brand-pale);
  color: var(--brand-light);
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}
.blog-card h5 a { color: #fff; text-decoration: none; transition: color .2s; }
.blog-card h5 a:hover { color: var(--brand-light); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  color: var(--text-dim);
}
.footer-brand {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-bottom: .5rem;
}
.footer-heading {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-link {
  color: var(--text-dim);
  font-size: .86rem;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  transition: color .2s;
}
.footer-link:hover { color: var(--brand-light); }
.footer-divider { border-color: var(--border) !important; }

/* ── Page content (CMS pages) ────────────────────────────────── */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.85;
  color: var(--text);
}
.page-content h1, .page-content h2, .page-content h3 { color: #fff; font-family: var(--font-head); margin-top: 2rem; }
.page-content a { color: var(--brand-light); }
.page-content img { max-width: 100%; border-radius: var(--radius); }
.page-content pre  { background: var(--dark-3); padding: 1.25rem; border-radius: 8px; overflow-x: auto; }
.page-content code { background: var(--dark-3); padding: .15em .4em; border-radius: .3rem; font-size: .9em; color: var(--accent); }

/* ── Admin layout ────────────────────────────────────────────── */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--dark-2);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  flex-shrink: 0;
  transition: all .3s;
}
.admin-sidebar .sidebar-brand {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-head);
  color: #fff;
  text-decoration: none;
}
.sidebar-nav { padding: 1rem .75rem; }
.sidebar-nav .nav-section {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .75rem .75rem .35rem;
  margin-top: .5rem;
}
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .9rem;
  border-radius: 8px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: .88rem;
  transition: all .2s;
  text-decoration: none;
}
.sidebar-nav .nav-link i { font-size: 1rem; width: 1.2rem; text-align: center; }
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active { color: var(--brand-light); background: var(--brand-pale); }

.admin-main { flex: 1; min-width: 0; padding: 2rem; background: var(--dark); }

.admin-topbar {
  background: var(--dark-2);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Admin cards / tables ────────────────────────────────────── */
.card-vd {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-vd .card-header-vd {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-family: var(--font-head);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
}

.stat-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: #fff; font-family: var(--font-head); }
.stat-card .stat-label { font-size: .82rem; color: var(--text-dim); }

.table-vd { color: var(--text); }
.table-vd thead th {
  background: var(--dark-3);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
}
.table-vd td, .table-vd th { border-color: var(--border); vertical-align: middle; }
.table-vd tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ── Admin alerts ────────────────────────────────────────────── */
.alert-vd-success { background: rgba(29,158,117,.1); border: 1px solid rgba(29,158,117,.3); color: var(--brand-light); border-radius: 8px; padding: .85rem 1.1rem; }
.alert-vd-error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: #f87171; border-radius: 8px; padding: .85rem 1.1rem; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary-vd {
  background: var(--brand-light);
  color: #fff;
  border: none;
  font-weight: 600;
  font-family: var(--font-head);
  border-radius: 8px;
  padding: .6rem 1.4rem;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn-primary-vd:hover  { background: var(--brand); color: #fff; }
.btn-primary-vd:active { transform: scale(.98); }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination .page-link {
  color: var(--text-dim);
  background: var(--dark-2);
  border-color: var(--border);
  border-radius: 6px;
  margin: 0 2px;
}
.pagination .page-link:hover { background: var(--dark-3); color: var(--brand-light); }
.pagination .page-item.active .page-link { background: var(--brand-light); border-color: var(--brand-light); color: #fff; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb-item a { color: var(--brand-light); text-decoration: none; }
.breadcrumb-item.active,
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-dim); }

/* ── Scroll to top ───────────────────────────────────────────── */
#scrollTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-light);
  color: #fff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: background .2s;
}
#scrollTop:hover { background: var(--brand); }

/* ── Toast ───────────────────────────────────────────────────── */
.toast-container-vd {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

/* ── Quill (admin editor) ────────────────────────────────────── */
.ql-toolbar  { background: var(--dark-3) !important; border-color: var(--border) !important; }
.ql-container { background: var(--dark-2) !important; border-color: var(--border) !important; color: var(--text) !important; min-height: 280px; font-family: var(--font-body) !important; }
.ql-editor.ql-blank::before { color: var(--muted) !important; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeUp .35s ease both; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { padding: 3.5rem 0 2.5rem; }
  .dl-card { padding: 1.25rem; }
  .admin-sidebar { position: fixed; left: -260px; z-index: 1050; transition: left .3s; height: 100vh; overflow-y: auto; }
  .admin-sidebar.open { left: 0; }
  .admin-main { padding: 1.25rem; }
}
