/* =============================================
   Univora - Dark Futuristic Theme
   ============================================= */

/* CSS Variables */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f2a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    
    --accent-purple: #6C63FF;
    --accent-blue: #4A90E2;
    --accent-cyan: #00C9A7;
    --accent-green: #00C9A7;
    --accent-red: #FF6B6B;
    --accent-yellow: #FFA726;
    --accent-pink: #EC407A;
    
    --gradient-primary: linear-gradient(135deg, #6C63FF 0%, #4A90E2 100%);
    --gradient-accent: linear-gradient(135deg, #00C9A7 0%, #6C63FF 100%);
    --gradient-danger: linear-gradient(135deg, #FF6B6B 0%, #EC407A 100%);
    --gradient-warm: linear-gradient(135deg, #FFA726 0%, #FF6B6B 100%);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Orbitron', monospace;
    
    --nav-height: 72px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   BASE STYLES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body.admin-body {
    padding-top: 0;
}

a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-blue);
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(108, 99, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 99, 255, 0.5);
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
    height: var(--nav-height);
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link i {
    margin-right: 0.3rem;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-glow {
    background: var(--gradient-primary);
    color: #fff !important;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.btn-glow:active {
    transform: translateY(0);
}

.btn-glow.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-outline-glow {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(108, 99, 255, 0.5);
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-glow:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
    color: #fff;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost.active {
    background: rgba(108, 99, 255, 0.2);
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.btn-google {
    background: #fff;
    color: #333 !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-google:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.btn-google i {
    font-size: 1.2rem;
    color: #4285F4;
}

/* =============================================
   GLASS CARD
   ============================================= */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    padding: 1.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(108, 99, 255, 0.15);
    color: var(--accent-purple);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats-card {
    padding: 2rem;
    text-align: center;
}

.hero-stats-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}

/* =============================================
   RATIO BAR
   ============================================= */
.ratio-bar {
    margin-top: 1rem;
}

.ratio-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ratio-label .yes { color: var(--accent-cyan); }
.ratio-label .no { color: var(--accent-red); }

.ratio-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.ratio-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.ratio-fill.yes {
    background: var(--gradient-accent);
}

.ratio-fill.no {
    background: var(--gradient-danger);
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features-section,
.trending-section,
.categories-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    height: 100%;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =============================================
   QUESTION CARD
   ============================================= */
.question-card {
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.question-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0.75rem 0;
    background: transparent;
    border-bottom: 1px solid var(--glass-border);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.trending-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: 600;
}

.question-link {
    color: var(--text-primary) !important;
    flex: 1;
}

.question-text {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.question-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0 0 0;
    background: transparent;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-ask {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-ask:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 201, 167, 0.3);
}

/* =============================================
   QUESTION DETAIL
   ============================================= */
.question-detail-section {
    padding: 3rem 0;
}

.question-detail-card {
    padding: 2.5rem;
}

.back-link {
    font-weight: 500;
}

.back-link a {
    color: var(--text-secondary);
}

.back-link a:hover {
    color: var(--accent-purple);
}

.question-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.date-badge {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.question-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.question-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.question-creator {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.stats-display {
    margin: 2rem 0;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
}

.stat-box.yes {
    border-color: rgba(0, 201, 167, 0.3);
    background: rgba(0, 201, 167, 0.05);
}

.stat-box.no {
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.05);
}

.stat-percentage {
    font-size: 2.5rem;
    font-weight: 800;
}

.stat-box.yes .stat-percentage { color: var(--accent-cyan); }
.stat-box.no .stat-percentage { color: var(--accent-red); }

.stat-box .stat-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Answer Result */
.answer-result {
    padding: 2rem;
    animation: fadeInUp 0.5s ease;
}

.answer-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.answer-value {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-display);
    margin-bottom: 1rem;
    animation: pulse 1s ease infinite;
}

.answer-value.yes { color: var(--accent-cyan); }
.answer-value.no { color: var(--accent-red); }

.answer-hash {
    font-family: monospace;
    color: var(--text-muted);
}

/* =============================================
   AUTH PAGES
   ============================================= */
.auth-section {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: 3rem 0;
    background: radial-gradient(ellipse at top, rgba(108, 99, 255, 0.08) 0%, transparent 60%);
}

.auth-card {
    padding: 2.5rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin-bottom: 1.5rem;
}

.auth-logo i {
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header h2 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-body {
    margin-top: 2rem;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--glass-border);
}

.divider span {
    background: var(--bg-secondary);
    padding: 0 1rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group label i {
    margin-right: 0.3rem;
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    padding: 0.7rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border);
}

.form-check-input:checked {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.auth-footer p {
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent-purple);
    font-weight: 600;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =============================================
   PAGE HERO
   ============================================= */
.page-hero {
    padding: 3rem 0;
    background: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.08) 0%, transparent 60%);
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* =============================================
   FILTERS
   ============================================= */
.filters-bar {
    padding: 1rem 1.5rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

/* =============================================
   DASHBOARD
   ============================================= */
.dashboard-header {
    padding: 1.5rem 0;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
}

.dashboard-subtitle {
    color: var(--text-secondary);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.answered { background: rgba(0, 201, 167, 0.15); color: var(--accent-cyan); }
.stat-icon.submitted { background: rgba(108, 99, 255, 0.15); color: var(--accent-purple); }
.stat-icon.favorite { background: rgba(255, 107, 107, 0.15); color: var(--accent-red); }
.stat-icon.streak { background: rgba(255, 167, 38, 0.15); color: var(--accent-yellow); }

.stat-detail .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.stat-detail .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.card-title-bar h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.card-title-bar h3 i {
    margin-right: 0.5rem;
    color: var(--accent-purple);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.activity-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.activity-icon.yes { background: rgba(0, 201, 167, 0.15); color: var(--accent-cyan); }
.activity-icon.no { background: rgba(255, 107, 107, 0.15); color: var(--accent-red); }

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-question {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.category-tag {
    color: var(--accent-purple);
}

.activity-result {
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.activity-result.yes {
    background: rgba(0, 201, 167, 0.15);
    color: var(--accent-cyan);
}

.activity-result.no {
    background: rgba(255, 107, 107, 0.15);
    color: var(--accent-red);
}

/* Profile Summary */
.profile-avatar {
    font-size: 4rem;
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

.profile-summary h4 {
    font-weight: 600;
}

/* Empty State */
.empty-state {
    padding: 2rem;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-secondary);
    margin: 1rem 0;
}

/* =============================================
   ADMIN SIDEBAR
   ============================================= */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary) !important;
}

.sidebar-brand i {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-brand small {
    display: block;
    font-size: 0.65rem;
    font-family: var(--font-sans);
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 0.5rem;
}

.nav-section-title {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary) !important;
}

.nav-link.active {
    background: rgba(108, 99, 255, 0.1);
    color: var(--accent-purple) !important;
    border-left-color: var(--accent-purple);
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* Admin Content */
.admin-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    background: var(--bg-primary);
}

.admin-topbar {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 999;
}

.admin-header {
    margin-bottom: 1.5rem;
}

.admin-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.admin-header p {
    color: var(--text-secondary);
    margin: 0;
}

/* Admin Stat Cards */
.admin-stat-card {
    padding: 1.25rem;
}

.stat-body {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon.users { background: rgba(108, 99, 255, 0.15); color: var(--accent-purple); }
.stat-icon.questions { background: rgba(0, 201, 167, 0.15); color: var(--accent-cyan); }
.stat-icon.pending { background: rgba(255, 167, 38, 0.15); color: var(--accent-yellow); }
.stat-icon.answers { background: rgba(74, 144, 226, 0.15); color: var(--accent-blue); }
.stat-icon.today { background: rgba(236, 64, 122, 0.15); color: var(--accent-pink); }
.stat-icon.ratio { background: rgba(108, 99, 255, 0.15); color: var(--accent-purple); }
.stat-icon.yes { background: rgba(0, 201, 167, 0.15); color: var(--accent-cyan); }
.stat-icon.no { background: rgba(255, 107, 107, 0.15); color: var(--accent-red); }
.stat-icon.diff { background: rgba(108, 99, 255, 0.15); color: var(--accent-purple); }
.stat-icon.verified { background: rgba(0, 201, 167, 0.15); color: var(--accent-cyan); }
.stat-icon.warning { background: rgba(255, 167, 38, 0.15); color: var(--accent-yellow); }

.stat-info .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
}

.stat-info .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Admin Table */
.admin-table {
    margin: 0;
    color: var(--text-primary);
}

.admin-table thead th {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem;
    font-weight: 700;
}

.admin-table td {
    border-color: var(--glass-border);
    padding: 0.75rem;
    vertical-align: middle;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.question-cell .question-link {
    color: var(--accent-purple) !important;
    font-weight: 500;
    text-decoration: none;
}

.question-cell .question-link:hover {
    color: var(--accent-blue) !important;
    text-decoration: underline;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-badge.approved { background: rgba(0, 201, 167, 0.15); color: var(--accent-cyan); }
.status-badge.pending { background: rgba(255, 167, 38, 0.15); color: var(--accent-yellow); }
.status-badge.rejected { background: rgba(255, 107, 107, 0.15); color: var(--accent-red); }
.status-badge.active { background: rgba(0, 201, 167, 0.15); color: var(--accent-cyan); }
.status-badge.banned { background: rgba(255, 107, 107, 0.15); color: var(--accent-red); }
.status-badge.inactive { background: rgba(255, 107, 107, 0.15); color: var(--accent-red); }

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.role-badge.admin { background: rgba(255, 107, 107, 0.15); color: var(--accent-red); }
.role-badge.user { background: rgba(108, 99, 255, 0.15); color: var(--accent-purple); }

.action-buttons {
    display: flex;
    gap: 0.3rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-brand i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--accent-purple);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-purple);
}

.footer-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* =============================================
   PAGINATION
   ============================================= */
.page-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 0.85rem;
    transition: var(--transition);
}

.page-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--accent-purple);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

/* =============================================
   TRENDING & CATEGORY CARDS
   ============================================= */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trending-item {
    display: block;
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
    color: var(--text-primary) !important;
}

.trending-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.trending-question {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-stats {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.category-card {
    text-align: center;
    padding: 1.5rem 1rem;
    height: 100%;
    color: var(--text-primary) !important;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.category-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.question-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Quick Stats */
.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.quick-stat:last-child {
    border-bottom: none;
}

.qs-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.qs-value {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Popular List */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.popular-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
}

.rank {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-purple);
    min-width: 30px;
}

.popular-content {
    flex: 1;
}

.popular-question {
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: 0.9rem;
}

.popular-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.popular-meta .yes { color: var(--accent-cyan); }
.popular-meta .no { color: var(--accent-red); }

/* Test Results */
.test-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.result-row .value {
    font-weight: 600;
}

.result-row .value.yes { color: var(--accent-cyan); }
.result-row .value.no { color: var(--accent-red); }

/* Integrity Results */
.integrity-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.integrity-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

/* System Info */
.system-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.future-features {
    list-style: none;
    padding: 0;
}

.future-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.future-features li i {
    color: var(--accent-purple);
}

/* =============================================
   FLASH MESSAGES
   ============================================= */
.flash-container {
    position: fixed;
    top: calc(var(--nav-height) + 10px);
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.alert {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(10px);
}

.alert-success { border-color: rgba(0, 201, 167, 0.3); }
.alert-danger { border-color: rgba(255, 107, 107, 0.3); }
.alert-info { border-color: rgba(108, 99, 255, 0.3); }
.alert-warning { border-color: rgba(255, 167, 38, 0.3); }

.alert .btn-close {
    filter: invert(1) brightness(200%);
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    padding: 5rem 0;
    background: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.1) 0%, transparent 60%);
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .question-title {
        font-size: 1.5rem;
    }
    
    .answer-value {
        font-size: 3rem;
    }
    
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .footer-stats {
        justify-content: flex-start;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .stat-item .stat-value {
        font-size: 1.3rem;
    }
    
    .glass-card {
        padding: 1rem;
    }
    
    .admin-page-content {
        padding: 1rem !important;
    }
    
    .category-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }
    
    .flash-container {
        left: 20px;
        max-width: none;
    }
}

/* Dropdown Menu */
.dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem;
}

.dropdown-menu.glass-card {
    background: rgba(15, 15, 42, 0.95);
    backdrop-filter: blur(20px);
}

.dropdown-item {
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.dropdown-item i {
    margin-right: 0.5rem;
    width: 16px;
}

.dropdown-divider {
    border-color: var(--glass-border);
}

/* Terms Page */
.about-content-section {
    padding: 3rem 0;
}

.about-content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.about-content-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.about-content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-content-section ol,
.about-content-section ul {
    color: var(--text-secondary);
    line-height: 2;
    padding-left: 1.5rem;
}

.about-content-section code {
    color: var(--accent-purple);
    background: rgba(108, 99, 255, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* Profile Avatar Large */
.profile-avatar-large i {
    color: var(--accent-purple);
    opacity: 0.8;
}

.stat-box {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.stat-box .stat-number {
    font-size: 1.3rem;
    font-weight: 700;
}

.stat-box .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tooltip / Badge Fixes */
.badge {
    font-weight: 600;
    font-size: 0.78rem;
}