/* ============================================================
   RatherVote.com — Main Stylesheet
   Bold, energetic, teen-friendly design
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
    --primary:      #6C3CE1;
    --primary-dark: #5128B8;
    --secondary:    #FF6B35;
    --accent:       #FFD60A;
    --opt-a:        #4361EE;
    --opt-b:        #F72585;
    --bg:           #0D0D1A;
    --bg-card:      #16162A;
    --bg-card2:     #1E1E38;
    --text:         #F0F0FF;
    --text-muted:   #9999CC;
    --border:       rgba(108,60,225,0.3);
    --radius:       18px;
    --radius-sm:    10px;
    --shadow:       0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow:  0 0 40px rgba(108,60,225,0.3);
    --font:         'Nunito', system-ui, sans-serif;
    --transition:   0.25s ease;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ── Ad Slots ───────────────────────────────────────────── */
.ad-slot {
    width: 100%;
    background: var(--bg-card2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.ad-sidebar {
    min-height: 250px;
    border-radius: var(--radius-sm);
    background: var(--bg-card2);
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 2px 20px rgba(108,60,225,0.2);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.logo-icon { font-size: 1.8rem; }
.logo-vote { color: var(--secondary); }

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.site-nav a {
    display: block;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
    background: rgba(108,60,225,0.2);
    color: var(--accent);
}
.btn-nav-random {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
}
.btn-nav-random:hover { background: var(--primary-dark) !important; }
.btn-nav-submit {
    background: var(--secondary) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
}
.btn-nav-submit:hover { background: #e05520 !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition);
}

/* ── Main Layout ────────────────────────────────────────── */
.site-main { min-height: calc(100vh - 140px); }

.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding: 2rem 0;
}
.page-layout.no-sidebar { grid-template-columns: 1fr; }

/* ── Hero / Daily Question ──────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #1A0A4A 0%, #0D0D1A 50%, #1A0A2E 100%);
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(108,60,225,0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,214,10,0.15);
    border: 1px solid rgba(255,214,10,0.4);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.3rem 0.9rem;
    border-radius: 99px;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero h1 em {
    font-style: normal;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--opt-b));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Question Card ──────────────────────────────────────── */
.question-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow), var(--shadow-glow);
    overflow: hidden;
    margin: 0 auto;
    max-width: 800px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.question-card-header {
    background: linear-gradient(90deg, var(--primary), #4A28B0);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
}
.question-card-header a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}
.question-card-header a:hover { color: #fff; }

.question-wyr {
    padding: 1.5rem 1.5rem 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.question-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
}

.question-options::before {
    content: 'OR';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--accent);
    font-weight: 900;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 99px;
    pointer-events: none;
    letter-spacing: 1px;
}

.option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 2.5rem;
    text-align: center;
    border: none;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.35;
    cursor: pointer;
    transition: background var(--transition), transform 0.15s ease, filter var(--transition);
    min-height: 180px;
    position: relative;
    overflow: hidden;
}
.option-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--transition);
}
.option-btn:hover::after { opacity: 1; }

.option-a {
    background: linear-gradient(145deg, rgba(67,97,238,0.15), rgba(67,97,238,0.05));
    color: #8BA4FF;
    border-right: 1px solid var(--border);
}
.option-a::after { background: linear-gradient(145deg, rgba(67,97,238,0.25), rgba(67,97,238,0.1)); }

.option-b {
    background: linear-gradient(145deg, rgba(247,37,133,0.15), rgba(247,37,133,0.05));
    color: #FF7AB3;
}
.option-b::after { background: linear-gradient(145deg, rgba(247,37,133,0.25), rgba(247,37,133,0.1)); }

.option-btn:hover { transform: scale(1.02); z-index: 1; }
.option-btn:active { transform: scale(0.98); }
.option-btn:disabled { cursor: default; transform: none; }

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 900;
    flex-shrink: 0;
}
.option-a .option-letter { background: var(--opt-a); color: #fff; }
.option-b .option-letter { background: var(--opt-b); color: #fff; }

.option-text { flex: 1; }

/* ── Vote Results ───────────────────────────────────────── */
.vote-results {
    padding: 1.5rem;
    display: none;
}
.vote-results.visible { display: block; }

.result-bars { display: flex; flex-direction: column; gap: 1rem; }

.result-bar-wrap { display: flex; flex-direction: column; gap: 0.4rem; }

.result-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
}
.result-bar-label .bar-pct { font-size: 1.2rem; font-weight: 900; }

.result-bar-track {
    height: 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
}
.result-bar-fill {
    height: 100%;
    border-radius: 99px;
    width: 0;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-a .result-bar-fill { background: linear-gradient(90deg, var(--opt-a), #7B9EFF); }
.bar-b .result-bar-fill { background: linear-gradient(90deg, var(--opt-b), #FF99CA); }

.result-total {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    font-weight: 600;
}

.result-winner-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    background: var(--accent);
    color: #000;
    border-radius: 99px;
    font-weight: 800;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ── Share Bar ──────────────────────────────────────────── */
.share-bar {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.share-label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.share-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: filter var(--transition), transform 0.15s;
    color: #fff;
}
.share-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.share-btn:active { transform: translateY(0); }
.share-x    { background: #000; border: 1px solid #333; }
.share-copy { background: var(--primary); }
.share-next { background: var(--secondary); }

/* ── Questions Grid ─────────────────────────────────────── */
.section-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title span { color: var(--primary); }

.questions-grid {
    display: grid;
    gap: 1.25rem;
}

.q-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.q-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow), 0 0 25px rgba(108,60,225,0.2);
    border-color: rgba(108,60,225,0.5);
}

.q-card-header {
    padding: 0.6rem 1rem;
    background: var(--bg-card2);
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.q-card-header a { color: var(--primary); }
.q-card-header a:hover { color: var(--accent); }

.q-card-body { display: grid; grid-template-columns: 1fr 1fr; }

.q-option {
    padding: 1.25rem;
    border: none;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    text-align: center;
    line-height: 1.4;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}
.q-option-a {
    background: rgba(67,97,238,0.08);
    border-right: 1px solid var(--border);
}
.q-option-b { background: rgba(247,37,133,0.08); }
.q-option:hover:not(:disabled) { filter: brightness(1.3); }
.q-option:disabled { cursor: default; }

.q-letter {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.q-option-a .q-letter { background: var(--opt-a); color: #fff; }
.q-option-b .q-letter { background: var(--opt-b); color: #fff; }

.q-or {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 900;
    padding: 0.2rem 0.4rem;
    border-radius: 99px;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.q-card-footer {
    padding: 0.6rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.q-vote-count { font-weight: 700; }
.q-share-link {
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.q-share-link:hover { color: var(--accent); }

/* Inline result bars on q-cards */
.q-result-bars {
    display: none;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    gap: 0.5rem;
    flex-direction: column;
}
.q-result-bars.visible { display: flex; }
.q-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
}
.q-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
}
.q-bar-fill {
    height: 100%;
    border-radius: 99px;
    width: 0;
    transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.q-bar-a .q-bar-fill { background: var(--opt-a); }
.q-bar-b .q-bar-fill { background: var(--opt-b); }
.q-bar-pct { min-width: 2.5rem; text-align: right; font-weight: 900; color: var(--text); }

/* ── Category Page ──────────────────────────────────────── */
.cat-hero {
    padding: 2.5rem 0 2rem;
    text-align: center;
}
.cat-emoji { font-size: 3.5rem; margin-bottom: 0.5rem; display: block; }
.cat-hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 900; }
.cat-hero p { color: var(--text-muted); margin-top: 0.5rem; font-size: 1rem; }

/* ── Category Cards (Homepage) ──────────────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(108,60,225,0.5);
    color: var(--accent);
}
.cat-card-emoji { font-size: 2.5rem; flex-shrink: 0; }
.cat-card-info h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.2rem; }
.cat-card-info p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }

/* ── Submit Form ────────────────────────────────────────── */
.submit-page { max-width: 700px; margin: 0 auto; padding: 2rem 0; }
.submit-page h1 { font-size: 2rem; font-weight: 900; margin-bottom: 0.5rem; }
.submit-page .subtitle { color: var(--text-muted); margin-bottom: 2rem; }

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.5rem; }
.form-label {
    display: block;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.form-label-hint { color: var(--text-muted); font-weight: 600; font-size: 0.82rem; margin-bottom: 0.5rem; display: block; }
.form-input, .form-select, .form-textarea {
    width: 100%;
    background: var(--bg-card2);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    transition: border-color var(--transition);
    resize: vertical;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,60,225,0.2);
}
.form-select option { background: var(--bg-card2); }
.form-char-count { font-size: 0.78rem; color: var(--text-muted); text-align: right; margin-top: 0.25rem; }

.form-divider {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--accent);
    margin: 0.5rem 0;
}

.form-rules {
    background: rgba(108,60,225,0.1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.form-rules strong { color: var(--text); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: filter var(--transition), transform 0.15s;
    text-align: center;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #4A28B0); color: #fff; width: 100%; padding: 1rem; font-size: 1.1rem; }
.btn-secondary { background: var(--secondary); color: #fff; }

/* Alerts */
.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.alert-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4); color: #6EE7B7; }
.alert-error   { background: rgba(247,37,133,0.15); border: 1px solid rgba(247,37,133,0.4); color: #FF99CA; }

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-weight: 700;
    transition: background var(--transition), color var(--transition);
    font-size: 0.9rem;
}
.page-link:hover, .page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar { padding-top: 0; }
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.sidebar-widget h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.sidebar-cat-list { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-cat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background var(--transition), color var(--transition);
}
.sidebar-cat-item:hover { background: rgba(108,60,225,0.15); color: var(--accent); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: #080811;
    border-top: 2px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-logo {
    font-size: 1.4rem;
    font-weight: 900;
    display: inline-block;
    margin-bottom: 0.75rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.footer-links h3 {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.8;
}
.footer-small { font-size: 0.75rem; color: rgba(153,153,204,0.5); }

/* ── Privacy Page ───────────────────────────────────────── */
.content-page { max-width: 800px; margin: 0 auto; padding: 2.5rem 0; }
.content-page h1 { font-size: 2rem; font-weight: 900; margin-bottom: 1.5rem; }
.content-page h2 { font-size: 1.2rem; font-weight: 800; margin: 1.5rem 0 0.5rem; color: var(--accent); }
.content-page p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.75; }

/* ── 404 / Error ────────────────────────────────────────── */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-page h1 { font-size: 5rem; font-weight: 900; color: var(--primary); margin-bottom: 0.5rem; }
.error-page h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.error-page p { color: var(--text-muted); margin-bottom: 2rem; }

/* ── Toast notification ─────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card2);
    border: 1px solid var(--primary);
    color: var(--text);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(108,60,225,0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Utility ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.hidden { display: none; }

/* ── Loading Spinner ────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .page-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .site-nav {
        position: fixed;
        inset: 0 0 0 40%;
        background: rgba(13,13,26,0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 200;
        padding: 5rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        border-left: 1px solid var(--border);
    }
    .site-nav.open { transform: translateX(0); }
    .site-nav ul { flex-direction: column; gap: 0.25rem; }
    .site-nav a { font-size: 1rem; padding: 0.75rem 1rem; }
    .nav-toggle { display: flex; z-index: 300; }

    .question-options { grid-template-columns: 1fr; }
    .question-options::before { top: auto; left: 50%; transform: translateX(-50%); }
    .option-btn { min-height: 120px; padding: 1.5rem 1.5rem; }

    .q-card-body { grid-template-columns: 1fr; }
    .q-option-a { border-right: none; border-bottom: 1px solid var(--border); }

    .footer-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }

    .hero { padding: 2rem 0 1.5rem; }
    .hero h1 { font-size: 1.4rem; }

    .form-card { padding: 1.25rem; }
    .page-layout { padding: 1rem 0; }
}

@media (max-width: 400px) {
    .option-btn { padding: 1.25rem 1rem; font-size: 1rem; }
    .container { padding: 0 0.75rem; }
}

/* ── Scrollbar (Webkit) ─────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.4s ease forwards; }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(108,60,225,0.3); }
    50%       { box-shadow: 0 0 40px rgba(108,60,225,0.6); }
}
.pulse { animation: pulse-glow 2s ease-in-out infinite; }

/* ── Admin ──────────────────────────────────────────────── */
.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 70px);
}
.admin-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
}
.admin-sidebar a {
    display: block;
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(108,60,225,0.15);
    color: var(--accent);
}
.admin-sidebar h4 {
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(153,153,204,0.5);
    margin-top: 1rem;
}
.admin-content { padding: 2rem; }
.admin-content h1 { font-size: 1.5rem; font-weight: 900; margin-bottom: 1.5rem; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th {
    background: var(--bg-card2);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.admin-table tr:hover td { background: rgba(108,60,225,0.05); }

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 800;
}
.badge-pending  { background: rgba(255,214,10,0.15); color: var(--accent); }
.badge-approved { background: rgba(16,185,129,0.15); color: #6EE7B7; }
.badge-rejected { background: rgba(247,37,133,0.15); color: #FF99CA; }

.admin-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    border-radius: 6px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: filter var(--transition);
}
.btn-sm:hover { filter: brightness(1.15); }
.btn-approve { background: rgba(16,185,129,0.2); color: #6EE7B7; border: 1px solid rgba(16,185,129,0.3); }
.btn-reject  { background: rgba(247,37,133,0.2); color: #FF99CA; border: 1px solid rgba(247,37,133,0.3); }
.btn-delete  { background: rgba(239,68,68,0.2); color: #FCA5A5; border: 1px solid rgba(239,68,68,0.3); }
.btn-feature { background: rgba(255,214,10,0.2); color: var(--accent); border: 1px solid rgba(255,214,10,0.3); }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}
.stat-card .stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

@media (max-width: 700px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-content { padding: 1rem; }
}
