/*
 * webhits.lt – one stylesheet for every page, on top of Bootstrap 5.3 (grid, forms, modals,
 * accordion, alerts). Replaces the old site's per-page <style> blocks; same look: dark navy header
 * with sky/indigo accents, white rounded cards on a light page.
 */

:root {
  --wh-bg: #020617;
  --wh-bg-2: #07111f;
  --wh-glass: rgba(15, 23, 42, .92);
  --wh-border: rgba(148, 163, 184, .15);
  --wh-text: #e5e7eb;
  --wh-muted: #94a3b8;
  --wh-accent: #38bdf8;
  --wh-accent-2: #6366f1;
  --page-bg: #f5f6fa;
  --ink: #0f172a;
  --ink-muted: #64748b;
  --line: #e5edf7;
  --brand: #2563eb;
  --radius: 18px;
  --shadow: 0 16px 38px rgba(15, 23, 42, .07);
}

/* ---------- Base ---------- */
body { background: var(--page-bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
.section-gap { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 1rem; }
.panel-kicker, .leaderboard-kicker, .form-kicker { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand); font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .3rem; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.panel-heading h2, .panel-heading h3 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.panel-heading p { margin: .25rem 0 0; color: var(--ink-muted); font-size: .9rem; }
.sidebar-title { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 800; margin-bottom: .9rem; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.5rem; text-align: center; color: var(--ink-muted); }
.empty-state i { font-size: 1.6rem; color: #94a3b8; }
.empty-state strong { color: var(--ink); }
.progress-line { display: block; height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.progress-line > span { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--wh-accent), var(--wh-accent-2)); }
.progress-line.is-amber > span { background: linear-gradient(90deg, #f59e0b, #f97316); }
.rank-index { width: 30px; height: 30px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #eef2ff; color: #3730a3; font-weight: 800; font-size: .85rem; }
.rank-index.is-small { width: 26px; height: 26px; font-size: .75rem; }
.favicon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; background: #fff; box-shadow: 0 8px 18px rgba(15, 23, 42, .10); }
.favicon.is-small { width: 34px; height: 34px; border-radius: 10px; }
.site-cell { display: flex; gap: .85rem; align-items: center; min-width: 0; }
.site-cell-text { min-width: 0; }
.site-title { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.site-url { display: block; max-width: 280px; margin-top: .2rem; overflow: hidden; color: var(--ink-muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.category-pill { display: inline-block; padding: .36rem .7rem; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.stat-chip { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-width: 86px; padding: .45rem .65rem; border-radius: .75rem; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.stat-chip.is-rating { background: #fff7ed; color: #c2410c; }
.stat-chip.is-visitors { background: #e0f2fe; color: #075985; }
.badge-top { flex-shrink: 0; padding: 5px 10px; border-radius: 10px; background: #7c7cff; color: #fff; font-size: .72rem; font-weight: 700; }
.alert { border-radius: 14px; }

/* ---------- Header + navigation ---------- */
.wh-hero { background: radial-gradient(520px 220px at 12% 16%, rgba(56, 189, 248, .20), transparent 58%), radial-gradient(420px 200px at 88% 10%, rgba(99, 102, 241, .18), transparent 60%), linear-gradient(180deg, var(--wh-bg) 0%, var(--wh-bg-2) 100%); color: var(--wh-text); }
.wh-nav { position: sticky; top: 0; z-index: 1030; backdrop-filter: blur(14px); background: linear-gradient(90deg, rgba(2, 6, 23, .8), rgba(2, 6, 23, .53)); border-bottom: 1px solid var(--wh-border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 900; font-size: 1.1rem; }
.logo:hover { color: #fff; }
.logo .dot { color: var(--wh-accent); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--wh-border); border-radius: 999px; color: var(--wh-text); transition: .2s ease; }
.nav-pill:hover { background: var(--wh-bg); color: #fff; }
.hamburger { display: none; background: none; border: 0; color: var(--wh-text); font-size: 1.8rem; line-height: 1; }
.wh-dropdown { position: relative; }
.wh-drop-btn { display: flex; align-items: center; gap: 8px; padding: 9px 4px; background: none; border: 0; color: var(--wh-text); }
.wh-drop-btn.is-user { color: var(--wh-accent); }
.wh-drop-btn.is-admin { color: #a5b4fc; }
.wh-drop-btn .bi-chevron-down { font-size: .75rem; transition: transform .2s; }
.wh-dropdown.is-open .bi-chevron-down { transform: rotate(180deg); }
.wh-drop-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 10; min-width: 230px; padding: 8px; background: var(--wh-glass); border: 1px solid var(--wh-border); border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .2s ease; }
.wh-dropdown.is-open .wh-drop-menu { opacity: 1; transform: none; pointer-events: auto; }
.wh-drop-menu a, .wh-drop-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 12px; border: 0; border-radius: 12px; background: none; color: var(--wh-text); text-align: left; }
.wh-drop-menu a:hover, .wh-drop-menu button:hover { background: var(--wh-bg); color: #fff; }
.wh-drop-menu .is-danger { color: #f87171; }
.wh-drop-menu form { margin: 0; }
.wh-drop-note { display: block; padding: 6px 12px 8px; color: var(--wh-muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid var(--wh-border); margin-bottom: 4px; }
.btn-main, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: 999px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: .2s ease; }
.btn-main { background: linear-gradient(90deg, var(--wh-accent), var(--wh-accent-2)); color: #fff; }
.btn-main:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { border-color: var(--wh-border); color: var(--wh-text); background: transparent; }
.btn-ghost:hover { color: #fff; background: rgba(2, 6, 23, .6); }

/* ---------- Hero ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; gap: 28px; min-height: 250px; padding-top: 28px; padding-bottom: 32px; }
.hero-grid.is-single { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.hero-text h1 { margin: 0; color: #fff; font-size: clamp(1.8rem, 3vw, 2.45rem); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.hero-text h1 span { background: linear-gradient(90deg, var(--wh-accent), var(--wh-accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text > p { max-width: 640px; margin: 12px 0 16px; color: var(--wh-muted); font-size: .98rem; }
.hero-link { color: var(--wh-accent); }
.hero-link:hover { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn-main, .hero-actions .btn-ghost { padding: 9px 16px; font-size: .9rem; }
.hero-description { max-width: 640px; margin: -4px 0 16px; color: #cbd5e1; font-size: .92rem; line-height: 1.55; }
.desc-toggle { margin-left: .35rem; padding: 0; border: 0; background: none; color: var(--wh-accent); font-weight: 700; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .75rem; color: var(--wh-muted); font-size: .9rem; }
.back-link:hover { color: #fff; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.hero-card { overflow: hidden; border: 1px solid rgba(148, 163, 184, .18); border-radius: 20px; background: linear-gradient(180deg, rgba(2, 6, 23, .76), rgba(2, 6, 23, .94)); box-shadow: 0 24px 60px rgba(15, 23, 42, .34); animation: card-in .6s ease both; }
@keyframes card-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.card-head { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.card-title { display: flex; align-items: center; gap: 12px; }
.card-title strong { display: block; color: #fff; font-size: 1rem; }
.card-title small { color: var(--wh-muted); font-size: .75rem; }
.pulse-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: #59f838; box-shadow: 0 0 12px #52f838; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.hero-list { display: none; flex-direction: column; gap: 10px; margin: 0; padding: 12px 14px 14px; list-style: none; }
.hero-list.is-active { display: flex; animation: card-in .45s ease both; }
.hero-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 10px 12px; border: 1px solid rgba(148, 163, 184, .13); border-radius: 14px; background: rgba(15, 23, 42, .54); color: var(--wh-text); transition: .2s ease; }
a.hero-item:hover { color: var(--wh-text); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124, 124, 255, .25); }
.hero-item.is-empty { border-style: dashed; }
.hero-item-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hero-item .favicon { width: 34px; height: 34px; border-radius: 11px; }
.hero-item .text { min-width: 0; }
.hero-item .text strong { display: block; max-width: 260px; overflow: hidden; color: #fff; font-size: .92rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.hero-item .text small { color: var(--wh-muted); font-size: .75rem; }
.item-action, .rank-icon { width: 34px; height: 34px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(56, 189, 248, .12); color: var(--wh-accent); }

/* ---------- Home: stats strip ---------- */
.launch-wrap { margin-top: 14px; }
.launch-stats { display: flex; align-items: center; gap: 12px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.launch-copy { display: flex; align-items: center; gap: 10px; min-width: 250px; padding: 8px 10px; }
.launch-copy strong { display: block; font-size: .95rem; line-height: 1.1; }
.launch-copy span:not(.launch-icon) { display: block; color: var(--ink-muted); font-size: .76rem; }
.launch-icon { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--wh-accent)); color: #fff; box-shadow: 0 10px 24px rgba(37, 99, 235, .24); }
.quick-stats { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; }
.stat-item { display: flex; align-items: center; gap: 8px; }
.stat-item i { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #e0f2fe; color: #0369a1; }
.stat-item strong { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1; }
.stat-item span { color: var(--ink-muted); font-size: .7rem; white-space: nowrap; }
.stats-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 24px rgba(37, 99, 235, .18); transition: .2s; }
.stats-btn:hover { background: #1d4ed8; color: #fff; transform: translateY(-2px); }

/* ---------- Sidebar ---------- */
.sidebar > * + * { margin-top: 1rem; }
.categories-panel { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.categories-more { display: flex; flex-direction: column; gap: 6px; }
.categories-more[hidden] { display: none; }
.category-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 9px 10px; border: 1px solid transparent; border-radius: 13px; background: #f8fafc; color: var(--ink); transition: .18s ease; }
.category-link:hover { transform: translateY(-1px); background: #eef6ff; border-color: #bfdbfe; color: #075985; }
.category-link.is-muted { background: #fff; color: #334155; }
.category-main { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: .86rem; font-weight: 700; }
.category-main i { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: #dbeafe; color: var(--brand); }
.category-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-count { min-width: 32px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 800; }
.category-more-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 4px; padding: 10px; border: 0; border-radius: 12px; background: #eff6ff; color: #1d4ed8; font-weight: 700; }
.category-more-btn.is-open i { transform: rotate(180deg); }
.toprated-head { display: flex; align-items: center; gap: 10px; margin-bottom: .75rem; }
.toprated-head h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.toprated-head p { margin: 0; color: var(--ink-muted); font-size: .78rem; }
.toprated-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }
.toprated-card { display: flex; gap: 10px; padding: 10px; border-radius: 14px; transition: .18s; }
.toprated-card:hover { background: #f8fafc; color: inherit; }
.toprated-rank { width: 28px; flex-shrink: 0; font-size: 1.2rem; font-weight: 800; text-align: center; }
.toprated-main { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
.toprated-site { display: flex; align-items: center; gap: 8px; min-width: 0; }
.toprated-site img { flex-shrink: 0; border-radius: 8px; }
.toprated-site > span { min-width: 0; }
.toprated-site strong { display: block; overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.toprated-site small, .toprated-meta { color: var(--ink-muted); font-size: .74rem; }
.toprated-score { color: #c2410c; font-size: .8rem; font-weight: 700; }
.news-mini { display: flex; gap: 12px; padding: 10px; border-radius: 12px; transition: .2s; }
.news-mini:hover { background: #f8fafc; color: inherit; }
.news-thumb { width: 80px; height: 60px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; background: #e2e8f0; color: var(--ink-muted); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-mini-text strong { display: -webkit-box; overflow: hidden; margin-bottom: 4px; font-size: .88rem; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-mini-text small { color: var(--ink-muted); font-size: .75rem; }

/* ---------- Leaderboard ---------- */
.leaderboard-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(15, 23, 42, .08); }
.leaderboard-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--line); background: radial-gradient(circle at top left, rgba(59, 130, 246, .18), transparent 34%), linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%); }
.leaderboard-head h2 { margin: 0; font-size: 1.45rem; font-weight: 800; }
.leaderboard-head p { margin: .25rem 0 0; color: var(--ink-muted); font-size: .9rem; }
.leaderboard-summary { min-width: 96px; padding: .7rem .9rem; text-align: center; background: #fff; border: 1px solid #dbeafe; border-radius: 14px; box-shadow: 0 10px 24px rgba(37, 99, 235, .08); }
.leaderboard-summary span { display: block; color: var(--ink-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.leaderboard-summary strong { display: block; font-size: 1.35rem; line-height: 1.1; }
.leaderboard-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.leaderboard-table th { padding: .95rem 1rem; border-bottom: 1px solid #e2e8f0; background: #f8fafc; color: #475569; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.leaderboard-table td { padding: 1rem; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.leaderboard-table tbody tr { transition: background .18s ease, box-shadow .18s ease; }
.leaderboard-table tbody tr:hover { background: #f8fbff; box-shadow: inset 4px 0 0 #60a5fa; }
.leaderboard-table .col-place { width: 60px; font-weight: 800; }
.leaderboard-table .col-stat { width: 120px; }
.leaderboard-table tr.top-rank { box-shadow: inset 5px 0 0 var(--rank-color); }
.leaderboard-table tr.top-rank-1 { --rank-color: #f59e0b; background: linear-gradient(90deg, rgba(245, 158, 11, .16), rgba(255, 255, 255, .9) 48%); }
.leaderboard-table tr.top-rank-2 { --rank-color: #64748b; background: linear-gradient(90deg, rgba(100, 116, 139, .14), rgba(255, 255, 255, .9) 48%); }
.leaderboard-table tr.top-rank-3 { --rank-color: #b45309; background: linear-gradient(90deg, rgba(180, 83, 9, .13), rgba(255, 255, 255, .9) 48%); }
.rank-badge { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: #fff; box-shadow: 0 10px 22px rgba(15, 23, 42, .16); }
.rank-badge.rank-1 { background: linear-gradient(135deg, #f97316, #facc15); }
.rank-badge.rank-2 { background: linear-gradient(135deg, #475569, #94a3b8); }
.rank-badge.rank-3 { background: linear-gradient(135deg, #92400e, #f59e0b); }
.rank-number { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #f1f5f9; color: #334155; font-size: .9rem; }
.top-label { padding: .18rem .48rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .03em; }

/* ---------- About, FAQ, how it works, partners ---------- */
.about-section { margin-top: 2.5rem; }
.seo-text { color: #444; font-size: .95rem; line-height: 1.6; }
.seo-text h2, .faq-title, .how-title { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.faq-title { margin: 2rem 0 1rem; text-align: center; }
.faq .accordion-item { margin-bottom: .5rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(15, 23, 42, .04); }
.faq .accordion-button { font-weight: 600; }
.how-section { margin-top: 3rem; padding: 3rem 0; background: linear-gradient(180deg, #fff, #f1f5f9); }
.how-title { margin-bottom: 1.5rem; text-align: center; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.how-card { padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s; }
.how-card:hover { transform: translateY(-4px); }
.how-card h3 { margin: .75rem 0 .35rem; font-size: 1rem; font-weight: 800; }
.how-card p { margin: 0; color: var(--ink-muted); font-size: .88rem; }
.how-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 14px; color: #fff; font-size: 1.2rem; }
.how-icon-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.how-icon-2 { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.how-icon-3 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.how-icon-4 { background: linear-gradient(135deg, #10b981, #34d399); }
.how-icon-5 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.how-icon-6 { background: linear-gradient(135deg, #ef4444, #f87171); }
.partners-section { padding: 2.5rem 0 3rem; }
.partners-head { margin-bottom: 1.25rem; text-align: center; }
.partners-head h2 { margin: .5rem 0 .25rem; font-size: 1.4rem; font-weight: 800; }
.partners-head p { color: var(--ink-muted); }
.badge-discount { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: linear-gradient(90deg, #ef4444, #f97316); color: #fff; font-weight: 800; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.partner-card { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-align: center; font-size: .85rem; font-weight: 700; transition: .2s; }
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.partner-card img { max-width: 100%; height: auto; }

/* ---------- Footer ---------- */
.pro-footer { margin-top: 3rem; padding-top: 3rem; background: linear-gradient(135deg, #0b0f1a, #141a2a); color: var(--wh-text); }
.footer-brand { font-size: 1.6rem; font-weight: 700; }
.footer-brand i { color: #4f8cff; }
.footer-text { opacity: .85; }
.footer-title { margin-bottom: .75rem; font-weight: 600; }
.footer-links { padding: 0; list-style: none; }
.footer-links li { margin-bottom: .35rem; }
.footer-links a, .footer-links button { padding: 0; border: 0; background: none; color: #cbd5f5; transition: .3s; }
.footer-links a:hover, .footer-links button:hover { padding-left: 4px; color: #4f8cff; }
.footer-stat { display: inline-flex; flex-direction: column; padding: .75rem 1.2rem; border-radius: .75rem; background: rgba(255, 255, 255, .08); text-align: center; }
.footer-stat strong { color: #4f8cff; font-size: 1.4rem; }
.footer-counter { display: block; margin-top: .75rem; }
.footer-bottom { margin-top: 2rem; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .08); background: radial-gradient(420px 120px at 78% 0%, rgba(56, 189, 248, .12), transparent 58%), #0f1220; color: #9aa0b5; font-size: 13px; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dev-credit { display: inline-flex; align-items: center; gap: 7px; padding: 5px 7px 5px 12px; border: 1px solid rgba(125, 211, 252, .22); border-radius: 999px; background: linear-gradient(135deg, rgba(15, 23, 42, .82), rgba(2, 6, 23, .94)); }
.credit-label { color: var(--wh-muted); font-weight: 700; }
.credit-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 999px; background: rgba(56, 189, 248, .12); color: #7dd3fc; }
.dev-credit a { padding: 6px 10px; border-radius: 999px; background: rgba(56, 189, 248, .10); color: #fff; font-weight: 800; }
.dev-credit a:hover { color: #7dd3fc; }
.modal-dark { background: var(--ink); color: var(--wh-text); }
.modal-dark .modal-header { border-color: rgba(255, 255, 255, .1); }
.rules-list { margin: 0; padding-left: 1.2rem; }

/* ---------- Category page ---------- */
.info-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem; align-items: center; }
.info-copy h2 { font-size: 1.35rem; font-weight: 800; }
.info-copy p { margin: 0; color: var(--ink-muted); }
.info-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.info-points div { display: flex; flex-direction: column; gap: .3rem; padding: .9rem; background: #f8fafc; border-radius: 14px; }
.info-points i { color: var(--brand); font-size: 1.2rem; }
.info-points span { color: var(--ink-muted); font-size: .82rem; }

/* ---------- Site page ---------- */
.stats-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.stats-panel-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.rank-mini { min-width: 180px; padding: .6rem .8rem; border-radius: 14px; background: #f8fafc; border: 1px solid var(--line); }
.rank-mini > div { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; font-size: .85rem; font-weight: 700; }
.rank-mini.is-extreme, .rank-mini.is-elite { background: #fff1f2; border-color: #fecdd3; }
.rank-mini.is-very-high, .rank-mini.is-high { background: #fff7ed; border-color: #fed7aa; }
.rank-mini.is-mid-plus, .rank-mini.is-medium { background: #eff6ff; border-color: #bfdbfe; }
.rank-mini.is-growing, .rank-mini.is-starter { background: #f0fdf4; border-color: #bbf7d0; }
.public-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 1rem; }
.public-metric { display: flex; align-items: center; gap: .75rem; padding: .85rem; background: #f8fafc; border-radius: 14px; }
.public-metric small { display: block; color: var(--ink-muted); }
.public-metric strong { font-size: 1.4rem; }
.metric-icon { width: 42px; height: 42px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: #fff; }
.metric-icon.is-blue { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.metric-icon.is-green { background: linear-gradient(135deg, #16a34a, #4ade80); }
.metric-icon.is-orange { background: linear-gradient(135deg, #ea580c, #fbbf24); }
.metric-icon.is-live { background: linear-gradient(135deg, #dc2626, #f87171); }
.stats-table { display: flex; flex-direction: column; gap: .35rem; }
.stats-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 1rem; padding: .55rem .7rem; border-radius: 12px; }
.stats-row:hover { background: #f8fafc; }
.stats-row.is-weekend { background: #f1f5f9; }
.stats-date strong { display: block; font-size: .88rem; }
.stats-date span { color: var(--ink-muted); font-size: .76rem; }
.bar-line { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: .6rem; }
.bar-line + .bar-line { margin-top: 4px; }
.bar-label { color: var(--ink-muted); font-size: .76rem; white-space: nowrap; }
.bar { display: block; height: 10px; width: var(--w, 0%); min-width: 2px; border-radius: 999px; }
.bar.is-total { background: linear-gradient(90deg, #6c63ff, #8b85ff); }
.bar.is-unique { background: linear-gradient(90deg, #3f3d56, #64748b); }
.stats-summary { margin-top: 1rem; font-size: .9rem; }
.stats-summary p { margin-bottom: .25rem; }
.stats-legend { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--ink-muted); font-size: .8rem; }
.legend-dot { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 50%; vertical-align: middle; }
.legend-dot.is-total { background: #6c63ff; }
.legend-dot.is-unique { background: #3f3d56; }
.legend-dot.is-weekend { background: #cbd5e1; }
.after-table-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.after-table-grid .panel + .panel { margin-top: 0; }
.insight-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.insight-head h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.insight-head small { color: var(--ink-muted); font-size: .78rem; }
.insight-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #eef2ff; color: #4338ca; }
.insight-icon.is-info { background: #e0f2fe; color: #0369a1; }
.insight-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid #f1f5f9; }
.insight-row small { display: block; color: var(--ink-muted); font-size: .75rem; }
.insight-text { margin: 0; color: #334155; font-size: .92rem; }
.rating-card { position: sticky; top: 90px; }
.rating-top { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.rating-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }
.rating-title { margin: 0; font-size: 1.05rem; font-weight: 800; }
.rating-sub { color: var(--ink-muted); font-size: .8rem; }
.rating-stars { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-bottom: .75rem; }
.star { cursor: pointer; color: #cbd5e1; font-size: 1.45rem; line-height: 1; transition: color .15s, transform .15s; }
.star input { position: absolute; opacity: 0; pointer-events: none; }
.star.is-hover, .star.is-selected { color: #f59e0b; }
.star:hover { transform: scale(1.15); }
.star:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.rating-btn { width: 100%; padding: .65rem; border: 0; border-radius: 12px; background: linear-gradient(90deg, #f59e0b, #f97316); color: #fff; font-weight: 700; }
.rating-avg { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.rating-avg .progress-line { flex: 1; }
.avg-value span { font-size: 1.6rem; font-weight: 800; }
.avg-value small { color: var(--ink-muted); }
.rating-meta { margin: .5rem 0 0; color: var(--ink-muted); font-size: .85rem; }
.rating-message { margin-top: .75rem; padding: .6rem .8rem; border-radius: 12px; background: #ecfdf5; color: #047857; font-size: .88rem; font-weight: 600; }

/* ---------- News ---------- */
.news-search { position: relative; display: flex; gap: .5rem; max-width: 560px; margin-bottom: 1.5rem; }
.news-search i { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); color: var(--ink-muted); }
.news-search input { flex: 1; padding: .7rem 1rem .7rem 2.6rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.news-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: .2s; }
.news-card:hover { transform: translateY(-3px); color: inherit; box-shadow: 0 24px 50px rgba(15, 23, 42, .12); }
.news-cover { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--wh-bg), #1e3a8a); color: rgba(255, 255, 255, .6); font-weight: 800; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; }
.news-card-meta { display: flex; justify-content: space-between; color: var(--ink-muted); font-size: .78rem; }
.news-card-title { font-size: 1.05rem; line-height: 1.3; }
.news-card-excerpt { color: var(--ink-muted); font-size: .9rem; }
.article-cover { margin-bottom: 1.5rem; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-cover img { display: block; width: 100%; max-height: 460px; object-fit: cover; }
.article-paper { padding: 1.75rem; }
.article-lead { color: var(--ink-muted); font-size: 1.15rem; }
.article-content { font-size: 1.02rem; line-height: 1.75; overflow-wrap: anywhere; }
.article-content h2, .article-content h3 { margin: 1.6rem 0 .75rem; font-weight: 800; }
.article-content img { max-width: 100%; height: auto; border-radius: 14px; }
.article-content a { color: var(--brand); text-decoration: underline; }
.article-content table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.article-content td, .article-content th { padding: .4rem .6rem; border: 1px solid var(--line); }
.sidecard { position: sticky; top: 90px; }
.side-link { display: block; padding: .75rem 0; border-top: 1px solid #f1f5f9; }
.side-link strong { display: block; font-size: .92rem; }
.side-link small { color: var(--ink-muted); }

/* ---------- Account pages ---------- */
.auth-section { padding: 2.5rem 0; }
.auth-box { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); max-width: 980px; margin: 0 auto; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 30px 70px rgba(15, 23, 42, .12); }
.auth-info { padding: 2.5rem; background: radial-gradient(400px 200px at 0% 0%, rgba(56, 189, 248, .25), transparent 60%), linear-gradient(160deg, #0f172a, #1e1b4b); color: #e2e8f0; }
.auth-info h2 { color: #fff; font-size: 1.6rem; font-weight: 800; }
.auth-info p { color: #cbd5e1; }
.auth-info ul { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.auth-info li { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.auth-info li i { color: #4ade80; }
.auth-form { padding: 2.5rem; }
.auth-title { margin-bottom: 1.25rem; font-size: 1.5rem; font-weight: 800; }
.form-subtitle { color: var(--ink-muted); }
.form-group { position: relative; margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: .35rem; font-size: .88rem; font-weight: 600; }
.form-group .form-control { padding: .7rem .9rem; border-radius: 12px; }
.form-group.has-toggle .form-control { padding-right: 2.8rem; }
.pw-toggle { position: absolute; right: 10px; bottom: 8px; padding: 2px 6px; border: 0; background: none; color: var(--ink-muted); }
.btn-auth { display: flex; width: 100%; align-items: center; justify-content: center; gap: .5rem; margin-top: .5rem; padding: .8rem; border: 0; border-radius: 12px; background: linear-gradient(90deg, var(--brand), var(--wh-accent-2)); color: #fff; font-weight: 700; }
.btn-auth:hover { color: #fff; filter: brightness(1.08); }
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--ink-muted); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem; border: 1px solid #cbd5e1; border-radius: 12px; font-weight: 600; }
.btn-google:hover { background: #f8fafc; color: var(--ink); }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.25rem; color: var(--ink-muted); font-size: .88rem; }
.auth-links a { color: var(--brand); }
.auth-status { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.auth-status-icon { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: #ecfdf5; color: #059669; font-size: 1.4rem; }

/* ---------- Dashboard ---------- */
.dashboard-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.dash-stat { display: flex; align-items: center; gap: .75rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.dash-stat strong { display: block; font-size: 1.2rem; }
.dash-stat span:not(.dash-icon) { color: var(--ink-muted); font-size: .8rem; }
.dash-stat.is-link:hover { border-color: #bfdbfe; color: inherit; transform: translateY(-2px); }
.dash-icon { width: 42px; height: 42px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #e0f2fe; color: #0369a1; }
.limit-pill { flex-shrink: 0; padding: .35rem .75rem; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: .8rem; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.color-row { display: flex; gap: 1.5rem; margin-bottom: 1rem; }
.dashboard-table td { vertical-align: middle; }
.counter-code { max-width: 300px; margin: 0 0 .4rem; padding: .6rem; border-radius: 10px; background: #f5f6fa; font-size: .72rem; white-space: pre-wrap; word-break: break-all; }
.counter-code.is-large { max-width: none; padding: 15px; font-size: .85rem; text-align: left; }
.mini-action { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #334155; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.mini-action:hover { background: #f8fafc; }
.mini-action.is-edit { border-color: #bfdbfe; color: #1d4ed8; }
.mini-action.is-delete { border-color: #fecaca; color: #dc2626; }
.action-stack { display: flex; flex-direction: column; gap: .4rem; }
.action-stack.is-row { flex-direction: row; flex-wrap: wrap; }
.action-stack form { margin: 0; }
.code-modal-head { background: linear-gradient(135deg, #4f46e5, #6366f1); color: #fff; }

/* ---------- Owner statistics ---------- */
.analytics-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-context { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.site-context h2 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.site-picker { min-width: 240px; }
.site-picker label { display: block; margin-bottom: .3rem; color: var(--ink-muted); font-size: .78rem; font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.metric-card { display: flex; align-items: center; gap: .85rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.metric-card small { display: block; color: var(--ink-muted); font-size: .78rem; }
.metric-card strong { display: block; font-size: 1.45rem; line-height: 1.15; }
.metric-card em { font-size: .75rem; font-style: normal; color: var(--ink-muted); }
.metric-card em.is-up { color: #16a34a; }
.metric-card em.is-down { color: #dc2626; }
.metric-card.is-slim { flex-direction: column; align-items: flex-start; gap: .2rem; }
.metric-card.is-slim strong { font-size: 1.15rem; }
.analytics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.analytics-grid .panel + .panel { margin-top: 0; }
.analytics-panel.is-wide { grid-column: span 2; }
.chart-box { position: relative; height: 260px; }
.rank-list { display: flex; flex-direction: column; }
.rank-row, .visit-row { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid #f1f5f9; }
.rank-row > div, .visit-row > div { flex: 1; min-width: 0; }
.rank-row small, .visit-row small { display: block; color: var(--ink-muted); font-size: .75rem; }
.visit-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.ref-link { display: block; min-width: 0; }
.ref-link strong { display: block; }
.ref-link small { display: block; max-width: 360px; overflow: hidden; color: var(--ink-muted); text-overflow: ellipsis; white-space: nowrap; }
.ref-link.is-muted { color: var(--ink-muted); }
.source-pill { padding: .25rem .6rem; border-radius: 999px; background: #f1f5f9; font-size: .75rem; font-weight: 600; }

/* ---------- Admin ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.stat-box { display: flex; flex-direction: column; gap: .2rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.stat-box span { color: var(--ink-muted); font-size: .8rem; }
.stat-box strong { font-size: 1.45rem; }
.stat-box small { color: var(--ink-muted); font-size: .75rem; }
.admin-list { margin: 0; padding: 0; list-style: none; }
.admin-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid #f1f5f9; }
.admin-list a { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; font-weight: 600; }
.admin-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.admin-filter .form-control { flex: 1 1 260px; }
.admin-filter .form-select { flex: 0 1 200px; }
.role-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px; background: #f1f5f9; font-size: .78rem; font-weight: 600; }
.role-pill.is-admin { background: #eef2ff; color: #4338ca; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hamburger { display: block; }
  .nav-right { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: 8px; }
  .nav-right.is-open { display: flex; }
  .wh-drop-menu { position: static; display: none; margin-top: 4px; opacity: 1; transform: none; pointer-events: auto; box-shadow: none; }
  .wh-dropdown.is-open .wh-drop-menu { display: block; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 18px; padding-top: 22px; }
  .launch-stats { flex-wrap: wrap; }
  .launch-copy { min-width: 100%; }
  .quick-stats { order: 3; width: 100%; flex-wrap: wrap; }
  .stats-btn { margin-left: auto; }
  .leaderboard-head { flex-direction: column; align-items: flex-start; }
  .leaderboard-table thead { display: none; }
  .leaderboard-table tbody, .leaderboard-table tr { display: block; }
  .leaderboard-table tr { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "place site site" ". rating visitors"; align-items: center; gap: .6rem .75rem; padding: 1rem; border-bottom: 1px solid #eef2f7; }
  .leaderboard-table td { padding: 0; border: 0; }
  .leaderboard-table td.col-place { grid-area: place; width: auto; }
  .leaderboard-table td.col-site { grid-area: site; min-width: 0; }
  .leaderboard-table td.col-category { display: none; }
  .leaderboard-table td.col-rating { grid-area: rating; width: auto; }
  .leaderboard-table td.col-visitors { grid-area: visitors; width: auto; }
  .leaderboard-table .favicon { width: 36px; height: 36px; }
  .info-card { grid-template-columns: 1fr; }
  .auth-box { grid-template-columns: 1fr; }
  .dashboard-overview, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-panel.is-wide { grid-column: auto; }
  .analytics-toolbar { flex-direction: column; align-items: stretch; }
  .rating-card, .sidecard { position: static; }
}

@media (max-width: 575.98px) {
  .quick-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .stats-btn { width: 100%; justify-content: center; }
  .info-points { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: .4rem; }
  .bar-line { grid-template-columns: 95px 1fr; }
  .public-metrics, .dashboard-overview, .metric-grid { grid-template-columns: 1fr; }
  .auth-info, .auth-form { padding: 1.5rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .site-url { max-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
