/* ═══════════════════════════════════════════════════════════
   슬기로운 웹서핑 생활 (슬웹생) — Main Stylesheet
   Premium Dark Mode + Glassmorphism Design
   ═══════════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 229, 160, 0.3);
    
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent: #00e5a0;
    --accent-dim: rgba(0, 229, 160, 0.15);
    --accent-cyan: #00d4ff;
    --accent-purple: #a855f7;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;
    
    --star-filled: #fbbf24;
    --star-empty: #374151;
    
    --vote-up: #22c55e;
    --vote-down: #ef4444;
    
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 229, 160, 0.1);
    
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-w: 1280px;
    --header-h: 72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: all 0.25s ease; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Background Gradient ── */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(ellipse 600px 400px at 10% 20%, rgba(0, 229, 160, 0.06), transparent),
        radial-gradient(ellipse 500px 500px at 80% 10%, rgba(0, 212, 255, 0.04), transparent),
        radial-gradient(ellipse 400px 400px at 50% 80%, rgba(168, 85, 247, 0.03), transparent);
    z-index: -1;
    pointer-events: none;
}

/* ── Layout ── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ══════════════ HEADER ══════════════ */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; }
.logo-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #000; font-weight: 900;
}
.logo-text { color: var(--text-primary); }
.logo-text span { color: var(--accent); }

/* Navigation */
.nav-main { display: flex; align-items: center; gap: 6px; }
.nav-main a {
    padding: 8px 14px; border-radius: var(--radius-xs);
    font-size: 0.88rem; font-weight: 500; color: var(--text-secondary);
    transition: all 0.2s;
}
.nav-main a:hover, .nav-main a.active {
    color: var(--accent); background: var(--accent-dim);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none; background: none; border: none; color: var(--text-primary);
    padding: 8px; cursor: pointer;
}
.menu-toggle svg { width: 28px; height: 28px; }

/* Category dropdown */
.cat-dropdown { position: relative; }
.cat-dropdown-btn {
    padding: 8px 14px; border-radius: var(--radius-xs);
    font-size: 0.88rem; font-weight: 500; color: var(--text-secondary);
    background: none; display: flex; align-items: center; gap: 4px;
    transition: all 0.2s;
}
.cat-dropdown-btn:hover { color: var(--accent); background: var(--accent-dim); }
.cat-dropdown-menu {
    position: absolute; top: 100%; left: 0;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 8px;
    min-width: 220px; display: none; z-index: 100;
    box-shadow: var(--shadow);
}
.cat-dropdown-menu.show { display: block; }
.cat-dropdown-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius-xs);
    font-size: 0.88rem; color: var(--text-secondary);
}
.cat-dropdown-menu a:hover { background: var(--accent-dim); color: var(--accent); }
.cat-icon { font-size: 1.1rem; width: 24px; text-align: center; }

/* Search bar in header */
.header-search {
    display: flex; align-items: center; position: relative;
}
.header-search input {
    background: var(--bg-glass); border: 1px solid var(--border);
    border-radius: 24px; padding: 8px 16px 8px 40px;
    color: var(--text-primary); font-size: 0.88rem;
    width: 240px; outline: none; transition: all 0.3s;
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search input:focus {
    border-color: var(--accent); width: 300px;
    box-shadow: 0 0 20px rgba(0, 229, 160, 0.1);
}
.header-search svg {
    position: absolute; left: 14px; color: var(--text-muted);
    width: 16px; height: 16px; pointer-events: none;
}

/* ══════════════ HERO SECTION ══════════════ */
.hero {
    padding: 80px 0 60px; text-align: center;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 160, 0.08), transparent 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 24px;
    background: var(--accent-dim); color: var(--accent);
    font-size: 0.82rem; font-weight: 600; margin-bottom: 20px;
    border: 1px solid rgba(0, 229, 160, 0.2);
}
.hero-badge .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.hero h1 {
    font-size: 3rem; font-weight: 900; line-height: 1.2;
    margin-bottom: 16px; letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent) 70%, var(--accent-cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.15rem; color: var(--text-secondary);
    max-width: 580px; margin: 0 auto 32px;
}
.hero-search {
    max-width: 560px; margin: 0 auto; position: relative;
}
.hero-search input {
    width: 100%; padding: 18px 24px 18px 52px;
    background: var(--bg-glass); border: 1px solid var(--border);
    border-radius: 16px; font-size: 1.05rem;
    color: var(--text-primary); outline: none;
    transition: all 0.3s;
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(0, 229, 160, 0.12);
}
.hero-search svg {
    position: absolute; left: 20px; top: 50%;
    transform: translateY(-50%); color: var(--text-muted);
    width: 20px; height: 20px; pointer-events: none;
}
.hero-search button {
    position: absolute; right: 6px; top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--accent), #00c98a);
    color: #000; font-weight: 700; font-size: 0.9rem;
    padding: 12px 24px; border-radius: 12px;
    transition: all 0.2s;
}
.hero-search button:hover { transform: translateY(-50%) scale(1.03); }

/* ══════════════ SECTIONS ══════════════ */
.section { padding: 48px 0; }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px;
}
.section-title {
    font-size: 1.5rem; font-weight: 800; display: flex;
    align-items: center; gap: 10px;
}
.section-title .icon {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    background: var(--accent-dim);
}
.section-more {
    font-size: 0.88rem; color: var(--accent); font-weight: 600;
    display: flex; align-items: center; gap: 4px;
}
.section-more:hover { gap: 8px; }

/* ══════════════ CARDS (갤러리형 리스트) ══════════════ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.review-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.review-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.card-thumb {
    position: relative; width: 100%;
    aspect-ratio: 16/10; overflow: hidden;
    background: var(--bg-secondary);
}
.card-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.review-card:hover .card-thumb img { transform: scale(1.05); }
.card-badge {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 10px; border-radius: var(--radius-xs);
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    background: rgba(0, 0, 0, 0.6); color: var(--accent);
    backdrop-filter: blur(8px);
}
.card-trusted {
    position: absolute; top: 12px; right: 12px;
    padding: 4px 8px; border-radius: var(--radius-xs);
    background: rgba(0, 229, 160, 0.2); color: var(--accent);
    font-size: 0.7rem; font-weight: 700;
    border: 1px solid rgba(0, 229, 160, 0.3);
}
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-name {
    font-size: 1.05rem; font-weight: 700; margin-bottom: 6px;
    color: var(--text-primary);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.card-excerpt {
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5;
    margin-bottom: 14px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px; border-top: 1px solid var(--border);
}
.card-meta .stars { font-size: 0.82rem; }

/* ══════════════ STARS ══════════════ */
.stars { display: inline-flex; align-items: center; gap: 1px; }
.star { color: var(--star-empty); font-size: 1rem; line-height: 1; }
.star.filled { color: var(--star-filled); }
.star.half {
    background: linear-gradient(90deg, var(--star-filled) 50%, var(--star-empty) 50%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stars-lg .star { font-size: 1.5rem; }
.rating-num {
    font-size: 0.85rem; font-weight: 700; color: var(--accent);
    margin-left: 6px;
}

/* ══════════════ VOTE BUTTONS ══════════════ */
.vote-box { display: flex; gap: 12px; }
.vote-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--radius-xs);
    background: var(--bg-glass); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 0.88rem; font-weight: 600;
    transition: all 0.2s;
}
.vote-btn:hover { background: var(--bg-glass-hover); }
.vote-up:hover, .vote-up.active { border-color: var(--vote-up); color: var(--vote-up); }
.vote-down:hover, .vote-down.active { border-color: var(--vote-down); color: var(--vote-down); }
.vote-btn svg { width: 18px; height: 18px; }
.vote-btn.voted { pointer-events: none; opacity: 0.7; }
@keyframes vote-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.vote-btn.pop { animation: vote-pop 0.3s ease; }

/* ══════════════ REVIEW DETAIL ══════════════ */
.review-detail { padding: 40px 0 60px; }
.review-hero {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    margin-bottom: 40px;
}
.review-image {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16/10;
}
.review-image img { width: 100%; height: 100%; object-fit: cover; }
.review-info { display: flex; flex-direction: column; justify-content: center; }
.review-category-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: var(--radius-xs);
    background: var(--accent-dim); color: var(--accent);
    font-size: 0.78rem; font-weight: 600; margin-bottom: 12px;
    width: fit-content;
}
.review-title {
    font-size: 2rem; font-weight: 800; margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.review-rating-wrap {
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 16px; padding: 16px;
    background: var(--bg-glass); border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.review-rating-big {
    font-size: 2.2rem; font-weight: 900; color: var(--accent);
}
.review-excerpt {
    font-size: 1rem; color: var(--text-secondary); line-height: 1.7;
    margin-bottom: 20px;
}
.review-url {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), #00c98a);
    color: #000; font-weight: 700; font-size: 0.9rem;
    transition: all 0.2s; margin-bottom: 16px;
}
.review-url:hover { transform: scale(1.02); box-shadow: 0 4px 20px rgba(0, 229, 160, 0.3); }
.review-content {
    background: var(--bg-glass); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    line-height: 1.8; font-size: 1rem;
}
.review-content h2, .review-content h3 {
    color: var(--accent); margin: 24px 0 12px;
}
.review-content p { margin-bottom: 16px; }
.review-content img {
    border-radius: var(--radius-sm); margin: 16px 0;
}

/* ══════════════ COMMENTS ══════════════ */
.comments-section { margin-top: 48px; }
.comment-form {
    background: var(--bg-glass); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    margin-bottom: 24px;
}
.comment-form h3 { font-size: 1.1rem; margin-bottom: 16px; }
.form-row { display: flex; gap: 12px; margin-bottom: 12px; }
.form-input {
    flex: 1; padding: 12px 16px; background: var(--bg-secondary);
    border: 1px solid var(--border); border-radius: var(--radius-xs);
    color: var(--text-primary); font-size: 0.9rem; outline: none;
    transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { min-height: 100px; resize: vertical; }
.form-submit {
    padding: 12px 28px; border-radius: var(--radius-xs);
    background: linear-gradient(135deg, var(--accent), #00c98a);
    color: #000; font-weight: 700; font-size: 0.9rem;
    transition: all 0.2s;
}
.form-submit:hover { transform: translateY(-1px); }

.star-select { display: flex; gap: 4px; margin-bottom: 12px; direction: rtl; }
.star-select input { display: none; }
.star-select label {
    font-size: 1.6rem; color: var(--star-empty); cursor: pointer;
    transition: color 0.15s;
}
.star-select label:hover, .star-select label:hover ~ label,
.star-select input:checked ~ label { color: var(--star-filled); }

.comment-item {
    background: var(--bg-glass); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 18px;
    margin-bottom: 12px;
}
.comment-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.comment-nick { font-weight: 700; color: var(--accent); font-size: 0.92rem; }
.comment-time { font-size: 0.78rem; color: var(--text-muted); }
.comment-text { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }

/* ══════════════ TRUSTED SITES ══════════════ */
.trusted-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}
.trusted-card {
    display: flex; align-items: center; gap: 18px;
    padding: 20px; background: var(--bg-glass);
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: all 0.3s;
}
.trusted-card:hover {
    border-color: var(--accent); box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.trusted-img {
    width: 72px; height: 72px; border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0; background: var(--bg-secondary);
}
.trusted-img img { width: 100%; height: 100%; object-fit: cover; }
.trusted-info { flex: 1; }
.trusted-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.trusted-desc { font-size: 0.82rem; color: var(--text-muted); }
.trusted-tag {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    background: var(--accent-dim); color: var(--accent);
    font-size: 0.7rem; font-weight: 700; margin-top: 6px;
}

/* ══════════════ CATEGORY CARDS ══════════════ */
.cat-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.cat-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; padding: 20px 12px;
    background: var(--bg-glass); border: 1px solid var(--border);
    border-radius: var(--radius-sm); text-align: center;
    transition: all 0.3s;
}
.cat-card:hover {
    border-color: var(--accent); transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.cat-card .cat-emoji { font-size: 2rem; }
.cat-card .cat-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.cat-card:hover .cat-label { color: var(--accent); }

/* ══════════════ BOARD (익명 게시판) ══════════════ */
.board-table { width: 100%; border-collapse: collapse; }
.board-table th {
    text-align: left; padding: 14px 16px; font-size: 0.82rem;
    color: var(--text-muted); font-weight: 600;
    border-bottom: 1px solid var(--border);
    background: var(--bg-glass);
}
.board-table td {
    padding: 14px 16px; font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.board-table tr:hover td { background: var(--bg-glass-hover); }
.board-title-link { color: var(--text-primary); font-weight: 500; }
.board-title-link:hover { color: var(--accent); }
.board-write-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: var(--radius-xs);
    background: linear-gradient(135deg, var(--accent), #00c98a);
    color: #000; font-weight: 700; font-size: 0.88rem;
}
.board-write-btn:hover { transform: translateY(-1px); }

/* ══════════════ ADMIN ══════════════ */
.admin-login {
    max-width: 420px; margin: 100px auto; padding: 40px;
    background: var(--bg-glass); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.admin-login h1 {
    text-align: center; font-size: 1.5rem; margin-bottom: 28px;
    color: var(--accent);
}
.admin-form .form-group { margin-bottom: 16px; }
.admin-form label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.admin-form .form-input { width: 100%; }
.admin-form .form-submit { width: 100%; margin-top: 8px; }

.admin-dashboard { padding: 40px 0; }
.admin-stats {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px; margin-bottom: 32px;
}
.stat-card {
    background: var(--bg-glass); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 24px; text-align: center;
}
.stat-num { font-size: 2rem; font-weight: 900; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left; padding: 12px 16px; font-size: 0.82rem;
    color: var(--text-muted); border-bottom: 2px solid var(--border);
}
.admin-table td {
    padding: 12px 16px; font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
}
.admin-table tr:hover td { background: var(--bg-glass-hover); }
.btn-edit, .btn-delete {
    padding: 4px 10px; border-radius: 4px; font-size: 0.78rem;
    font-weight: 600; cursor: pointer;
}
.btn-edit { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(0,229,160,0.3); }
.btn-delete { background: rgba(239,68,68,0.1); color: var(--accent-rose); border: 1px solid rgba(239,68,68,0.3); }

.review-form { max-width: 800px; }
.review-form .form-group { margin-bottom: 20px; }
.review-form label {
    display: block; font-size: 0.88rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 8px;
}
.review-form select {
    width: 100%; padding: 12px 16px;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-xs); color: var(--text-primary);
    font-size: 0.9rem; outline: none;
}
.review-form select:focus { border-color: var(--accent); }
.review-form textarea { min-height: 200px; }
.file-upload {
    border: 2px dashed var(--border); border-radius: var(--radius-sm);
    padding: 32px; text-align: center; cursor: pointer;
    transition: all 0.2s;
}
.file-upload:hover { border-color: var(--accent); background: var(--accent-dim); }
.file-upload input { display: none; }
.file-preview {
    margin-top: 12px; max-width: 200px; border-radius: var(--radius-xs);
}
.rating-select {
    display: flex; gap: 8px;
}
.rating-select label {
    width: 44px; height: 44px; display: flex;
    align-items: center; justify-content: center;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-xs); cursor: pointer;
    font-weight: 700; font-size: 0.9rem; color: var(--text-secondary);
    transition: all 0.2s;
}
.rating-select input { display: none; }
.rating-select input:checked + label,
.rating-select label:hover {
    background: var(--accent-dim); border-color: var(--accent);
    color: var(--accent);
}

/* ══════════════ PAGINATION ══════════════ */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin-top: 40px;
}
.page-btn, .page-num {
    padding: 8px 14px; border-radius: var(--radius-xs);
    background: var(--bg-glass); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 0.88rem; font-weight: 500;
    transition: all 0.2s;
}
.page-btn:hover, .page-num:hover { border-color: var(--accent); color: var(--accent); }
.page-num.active {
    background: var(--accent); color: #000; border-color: var(--accent);
    font-weight: 700;
}
.page-dots { color: var(--text-muted); }

/* ══════════════ FOOTER ══════════════ */
.site-footer {
    background: var(--bg-secondary); border-top: 1px solid var(--border);
    padding: 48px 0 32px; margin-top: 60px;
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 32px;
}
.footer-brand { }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.footer-col h4 {
    font-size: 0.85rem; font-weight: 700; color: var(--text-primary);
    margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px;
}
.footer-col a {
    display: block; font-size: 0.85rem; color: var(--text-muted);
    padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    padding-top: 24px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: var(--text-muted);
}

/* ══════════════ SEARCH RESULTS ══════════════ */
.search-results h2 { margin-bottom: 24px; }
.search-results .result-count { color: var(--accent); font-weight: 700; }
.no-results {
    text-align: center; padding: 80px 20px; color: var(--text-muted);
}
.no-results .icon { font-size: 3rem; margin-bottom: 16px; }

/* ══════════════ FLASH MESSAGES ══════════════ */
.flash {
    padding: 14px 20px; border-radius: var(--radius-xs);
    margin-bottom: 20px; font-size: 0.9rem; font-weight: 500;
}
.flash-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #22c55e; }
.flash-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 1024px) {
    .review-hero { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    :root { --header-h: 64px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .nav-main { 
        display: none; position: fixed; top: var(--header-h); left: 0;
        right: 0; bottom: 0; background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px); flex-direction: column;
        padding: 24px; gap: 4px; overflow-y: auto; z-index: 999;
    }
    .nav-main.open { display: flex; }
    .nav-main a { padding: 14px 16px; font-size: 1rem; }
    .menu-toggle { display: block; }
    .header-search { display: none; }
    .cat-dropdown-menu {
        position: static; background: transparent;
        border: none; box-shadow: none; padding: 0 0 0 16px;
    }
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .trusted-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .board-table { font-size: 0.82rem; }
    .board-table th:nth-child(3), .board-table td:nth-child(3),
    .board-table th:nth-child(4), .board-table td:nth-child(4) { display: none; }
    .review-form { padding: 0; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .card-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .form-row { flex-direction: column; }
}

/* ── Admin sidebar ── */
.admin-layout { display: flex; min-height: calc(100vh - var(--header-h)); }
.admin-sidebar {
    width: 240px; background: var(--bg-secondary);
    border-right: 1px solid var(--border); padding: 24px 16px;
    flex-shrink: 0;
}
.admin-sidebar a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius-xs);
    font-size: 0.88rem; color: var(--text-secondary);
    margin-bottom: 4px; transition: all 0.2s;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: var(--accent-dim); color: var(--accent);
}
.admin-content { flex: 1; padding: 32px; }
@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; padding: 12px; display: flex; gap: 4px; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); }
    .admin-sidebar a { white-space: nowrap; }
    .admin-content { padding: 20px; }
}

/* ── Loading spinner ── */
.spinner {
    width: 24px; height: 24px; border: 3px solid var(--border);
    border-top-color: var(--accent); border-radius: 50%;
    animation: spin 0.6s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Content editor (admin) ── */
.editor-toolbar {
    display: flex; gap: 4px; padding: 8px;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-bottom: none; border-radius: var(--radius-xs) var(--radius-xs) 0 0;
}
.editor-toolbar button {
    padding: 6px 10px; background: var(--bg-glass);
    border: 1px solid var(--border); border-radius: 4px;
    color: var(--text-secondary); font-size: 0.82rem;
    transition: all 0.15s;
}
.editor-toolbar button:hover { color: var(--accent); border-color: var(--accent); }
.editor-area {
    min-height: 300px; padding: 16px;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-xs) var(--radius-xs);
    color: var(--text-primary); font-size: 0.92rem;
    outline: none; line-height: 1.7;
}
