@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #8b0000; /* Dark Red to match logo */
    --primary-glow: rgba(139, 0, 0, 0.4);
    --secondary: #0f172a;
    --accent: #6366f1;
    --background: #080808;
    --card-bg: #121212;
    --header-bg: rgba(8, 8, 8, 0.85);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #262626;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glass: rgba(18, 18, 18, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
}

[data-theme='light'] {
    --primary: #c41e3a;
    --secondary: #e2e8f0;
    --accent: #4f46e5;
    --background: #ffffff;
    --card-bg: #f8fafc;
    --header-bg: rgba(255, 255, 255, 0.9);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1.1rem;
    list-style: none;
}

.nav-links li a {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(139, 0, 0, 0.15) 0%, transparent 70%);
    margin-bottom: 4rem;
}

.hero-logo {
    max-width: 350px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.hero-slogan {
    font-size: 7.5rem;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -4px;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, #ff1744, #f50057, #651fff, #2979ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.3));
}

.hero-badge {
    background: linear-gradient(90deg, #6366f1, #a855f7);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.breaking-ticker {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow: hidden;
}

.ticker-container {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-slide 40s linear infinite;
    font-weight: 600;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    margin-right: 5rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

@keyframes ticker-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.breaking-label {
    background: #4f46e5;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    z-index: 10;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-slogan { font-size: 3.5rem; }
}

/* Header Icons & Actions */
.theme-btn {
    background: var(--card-bg);
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
}

.theme-btn:hover { background: var(--background); }

.search-btn {
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: 0.2s;
}

.search-btn:hover { color: var(--text-main); }

.logout-btn {
    color: #f43f5e;
    font-size: 1.3rem;
    padding: 0.5rem;
    transition: 0.2s;
}

.logout-btn:hover { transform: translateX(3px); }

/* Admin Pill Styling */
.admin-pill {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.2rem 0.5rem;
    margin-left: 1rem;
}

.admin-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1;
}

.admin-text .title {
    font-size: 0.55rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.admin-text .pts {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 2px;
}

.admin-text .role {
    font-size: 0.45rem;
    font-weight: 700;
    color: #64748b;
    margin-top: 2px;
}

.admin-avatar {
    width: 32px;
    height: 32px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--accent);
}

/* Nav Centering */
#main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
}

/* Update Container for ultra-wide */
.container.navbar {
    max-width: 1400px;
}

#nav-close {
    display: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
}

#nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

#nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-only { display: none !important; }

@media (max-width: 1024px) {
    .nav-links { gap: 0.8rem; }
    .nav-links li a { font-size: 0.7rem; }
}

@media (max-width: 768px) {
    #mobile-toggle { display: flex !important; }
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    
    #nav-close { display: block; z-index: 1002; }

    #main-nav { 
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: var(--card-bg);
        z-index: 1001;
        padding: 5rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    #main-nav.active { 
        transform: translateX(0);
    }

    #nav-close {
        font-size: 1.5rem;
        color: #4b5563;
        cursor: pointer;
        padding: 0.5rem;
        background: rgba(255,255,255,0.03);
        border-radius: 50%;
        line-height: 1;
    }

    /* Mobile Sidebar Content */
    .mobile-profile-section {
        display: flex;
        align-items: center;
        gap: 1.2rem;
        margin-bottom: 2.5rem;
        padding-top: 1rem;
    }

    .mobile-avatar-box {
        width: 60px;
        height: 60px;
        background: #1e1b4b;
        border-radius: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.5rem;
        font-weight: 900;
        color: #818cf8;
        border: 1px solid #312e81;
    }

    .mobile-user-name { font-size: 1.2rem; font-weight: 800; color: white; display: block; }
    .pts-badge {
        background: #1c1917;
        color: #facc15;
        font-size: 0.65rem;
        font-weight: 900;
        padding: 0.3rem 0.6rem;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        margin-top: 0.3rem;
    }

    .mobile-action-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        margin-bottom: 3rem;
    }
    .m-btn {
        padding: 0.8rem;
        border-radius: 10px;
        font-size: 0.7rem;
        font-weight: 800;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.6rem;
        text-transform: uppercase;
    }
    .m-btn-dash { background: #111; color: white; border: 1px solid #222; }
    .m-btn-out { background: #450a0a; color: #fecaca; }

    .nav-links { 
        flex-direction: column;
        display: flex !important;
        gap: 0;
        width: 100%;
        text-align: left;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #111;
    }

    .nav-links li a {
        font-size: 1.1rem;
        padding: 1.2rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 800;
        color: white;
    }

    .nav-links li a::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.7rem;
        color: #4b5563;
    }

    .nav-links .mobile-only { display: none !important; } /* Hide the old mobile block */
    
    .hero-slogan { font-size: 2.2rem; }
    .hero-logo { max-width: 250px; }
    
    .header .container {
        padding: 0 1rem;
        justify-content: space-between;
    }

    .nav-actions {
        gap: 0.8rem;
    }
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    border: 1px solid var(--border);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--border);
}

/* Main Content Area */
main {
    padding: 6rem 0;
}

/* News Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
}

.card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

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

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Auth Pages Styling */
.auth-box {
    max-width: 450px;
    margin: 5rem auto;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: var(--background);
    color: var(--text-main);
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

/* Dashboard Sidebar Styling */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: var(--card-bg);
    border-right: 1px solid var(--border);
    padding: 2rem;
}

.sidebar-menu {
    list-style: none;
    margin-top: 2rem;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-weight: 500;
}

.sidebar-menu a.active {
    background-color: var(--primary);
    color: white;
}

.sidebar-menu a:hover:not(.active) {
    background-color: var(--background);
}

.main-dashboard {
    flex-grow: 1;
    padding: 2rem 3rem;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--text-muted);
    background: #050508;
    color: #9ca3af;
    padding: 6rem 0 3rem;
    border-top: 1px solid #111;
}

/* Premium Neon Dashboard Architecture */
:root {
    --dash-bg: #050508;
    --dash-card: #0c0c12;
    --dash-sidebar: #010103;
    --dash-accent: #6366f1;
    --dash-text: #f3f4f6;
    --dash-muted: #6b7280;
    --dash-border: #1f2937;
}

.dashboard-layout {
    background: var(--dash-bg);
    min-height: 100vh;
    color: var(--dash-text);
}

.top-nav {
    background: var(--dash-sidebar);
    border-bottom: 2px solid var(--dash-border);
    padding: 0.8rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-nav-center {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.dash-breadcrumb {
    font-size: 0.75rem;
    font-weight: 950;
    color: var(--dash-muted);
    letter-spacing: 2px;
}

.dash-breadcrumb span { color: white; margin-left: 10px; }

.dash-search-box {
    background: #0d0d14;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 450px;
}

.dash-search-box input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    font-weight: 800;
    outline: none;
    font-size: 0.9rem;
}

.top-nav-actions {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.user-quick-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border-right: 1px solid var(--dash-border);
    padding-right: 2rem;
    text-align: right;
}

.user-quick-info h5 { font-size: 0.85rem; font-weight: 950; margin: 0; color: white; text-transform: uppercase; }
.user-quick-info p { font-size: 0.7rem; font-weight: 850; color: #fbbf24; margin: 0; letter-spacing: 1px; }

.user-avatar-mini {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    font-size: 1.1rem;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.dash-body-container {
    display: flex;
    height: calc(100vh - 75px);
}

.dash-sidemenu {
    width: 260px;
    background: var(--dash-sidebar);
    padding: 2.5rem 1.5rem;
    border-right: 2px solid var(--dash-border);
    display: flex;
    flex-direction: column;
}

.sidemenu-cms-title {
    font-style: italic;
    color: #6366f1;
    font-weight: 950;
    font-size: 1.4rem;
    margin-bottom: 3.5rem;
    letter-spacing: -0.5px;
}

.sidemenu-label {
    font-size: 0.7rem;
    font-weight: 950;
    color: #4b5563;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.sidemenu-item {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 1.2rem;
    border-radius: 14px;
    color: var(--dash-muted);
    text-decoration: none;
    font-weight: 950;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    transition: 0.3s;
    text-transform: uppercase;
}

.sidemenu-item:hover { color: white; background: rgba(255,255,255,0.03); }
.sidemenu-item.active { background: #0c0f1d; color: #6366f1; border-left: 3px solid #6366f1; margin-left: -5px; padding-left: 1.5rem; }

.dash-main-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 4rem;
}

.dash-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.dash-title-row h1 { font-size: 2.8rem; font-weight: 950; margin: 0; letter-spacing: -1px; }
.dash-title-row p { font-size: 1.1rem; color: var(--dash-muted); font-weight: 800; margin-top: 0.8rem; }

.btn-new-post {
    background: #111019;
    border: 1px solid #1f2937;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 950;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 45px rgba(255,255,255,0.05);
    transition: 0.3s;
}

.btn-new-post:hover { transform: translateY(-5px); background: #1a1a25; }

/* Grid Cards with Neon Sparklines */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.neon-stat-card {
    background: #0a0a0f;
    border: 1.5px solid #14141d;
    padding: 2.2rem;
    border-radius: 24px;
    position: relative;
    transition: 0.4s;
}

.neon-stat-card:hover { border-color: #374151; transform: scale(1.02); }

.stat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.stat-mini-icon {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #000;
}

.neon-stat-card h3 { font-size: 2.2rem; font-weight: 950; color: white; margin: 0.5rem 0; }
.neon-stat-card p { font-size: 0.9rem; font-weight: 800; color: var(--dash-muted); margin: 0; text-transform: capitalize; }

.sparkline-arrow { color: #10b981; font-size: 1.3rem; }

/* Table area */
.content-area-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.recent-content-pane {
    background: #0a0a0f;
    border: 1px solid #14141d;
    border-radius: 24px;
    padding: 2.5rem;
}

.recent-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.recent-table th { text-align: left; color: #4b5563; font-size: 0.75rem; text-transform: uppercase; font-weight: 950; padding: 1.5rem 0; letter-spacing: 1px; }
.recent-table td { padding: 1.8rem 0; border-top: 1px solid #111; font-weight: 900; color: white; font-size: 0.9rem; }

.badge-status {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.badge-published { background: rgba(16,185,129,0.1); color: #10b981; }

.m-issue-badge {
    background: #ef4444;
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 950;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ad Display */
.ad-desktop { display: block; }
.ad-mobile { display: none; }

@media (max-width: 768px) {
    .ad-desktop { display: none; }
    .ad-mobile { display: block; }
}

/* Admin Dashboard Ultra-modern Layout */
.dashboard-page {
    display: flex;
    background: #000000;
    min-height: 100vh;
    color: white;
}

.dash-sidebar {
    width: 320px;
    background: #000000;
    border-right: 1px solid #111;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
}

.dash-logo-text {
    font-size: 1.2rem;
    font-weight: 900;
    font-style: italic;
    color: #8b5cf6;
    margin-bottom: 2.5rem;
    padding-left: 0.5rem;
}

.dash-nav-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #4b5563;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.dash-menu {
    list-style: none;
    flex-grow: 1;
}

.dash-menu li { margin-bottom: 0.5rem; }

.dash-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #9ca3af;
    transition: 0.3s;
    text-transform: uppercase;
}

.dash-menu a i { font-size: 1.1rem; }

.dash-menu a.active {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
}

.dash-menu a:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dash-footer {
    border-top: 1px solid #111;
    padding-top: 1rem;
}

/* Main Dashboard Area */
.dash-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dash-topbar {
    padding: 1rem 2rem;
    background: #0a0a0f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #111;
}

.dash-breadcrumb {
    font-size: 0.7rem;
    font-weight: 800;
    color: #4b5563;
    text-transform: uppercase;
}

.dash-breadcrumb span { color: white; margin-left: 0.5rem; }

.dash-search-box {
    background: #111;
    border: 1px solid #222;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    width: 300px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.dash-search-box input {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.8rem;
    outline: none;
    width: 100%;
}

.dash-header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Dashboard Content */
.dash-content {
    padding: 2rem;
}

.dash-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.dash-welcome h1 { font-size: 2.2rem; font-weight: 900; letter-spacing: -1px; }
.dash-welcome p { color: #9ca3af; margin-top: 0.5rem; font-weight: 600; }

.btn-new-post {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: #0a0a0f;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid #111;
    transition: 0.3s;
}

.stat-card:hover { border-color: #333; }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.stat-label { color: #6b7280; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.4rem; }
.stat-value { font-size: 2.2rem; font-weight: 900; }

/* Grid Sections */
.main-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 1.5rem;
}

.glass-box {
    background: #0a0a0f;
    border: 1px solid #111;
    border-radius: 24px;
    padding: 1.8rem;
}

.table-dash {
    width: 100%;
    margin-top: 1.5rem;
}

.table-dash th {
    text-align: left;
    padding: 1rem;
    font-size: 0.65rem;
    font-weight: 800;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table-dash td {
    padding: 1.2rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-published {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 900;
}

.activity-feed {
    list-style: none;
}

.activity-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.activity-icon-box {
    width: 36px;
    height: 36px;
    background: #111;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6366f1;
    font-weight: 900;
    flex-shrink: 0;
}

.activity-info p { font-size: 0.8rem; font-weight: 700; line-height: 1.4; }
.activity-info p span { color: #9ca3af; font-weight: 500; font-size: 0.7rem; }

/* Admin Dashboard Mobile Responsiveness */
/* Admin Dashboard - Keeping Sidebar Wide even on Small Windows */
@media (max-width: 1200px) {
    .dashboard-page { 
        display: flex !important; 
        flex-direction: row !important; 
        overflow-x: auto;
    }
    .dash-sidebar { 
        width: 320px !important; 
        flex-shrink: 0 !important; 
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        position: sticky !important;
        top: 0 !important;
        border-right: 1px solid #111 !important;
    }
    .dash-main { 
        min-width: 800px; 
        flex-grow: 1;
    }
    .dash-logo-text, .dash-nav-label, .admin-text, .pts { 
        display: block !important; 
    }
}

/* Specific content adjustments for narrowed views */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr !important; padding: 1rem !important; }
    .main-grid { grid-template-columns: 1fr !important; }
    .dash-welcome { flex-direction: column !important; gap: 1.5rem !important; text-align: center; }
    .dash-welcome h1 { font-size: 1.8rem !important; }
    .btn-new-post { width: 100% !important; justify-content: center !important; }
    .dash-main { overflow-x: hidden !important; }
}

/* Mobile Menu Overlay Redesign */
@media (max-width: 768px) {
    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #000;
        z-index: 2000;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
    #main-nav.active { right: 0; }
    .mobile-nav-content { display: flex; flex-direction: column; min-height: 100%; }
    .desktop-only { display: none !important; }
}

@media (min-width: 769px) {
    .mobile-nav-content { display: none !important; }
    #main-nav { 
        flex-grow: 1; 
        display: flex; 
        justify-content: center;
    }
    .nav-links { display: flex; gap: 1.5rem; list-style: none; }
    .nav-links a { 
        text-decoration: none; 
        color: #9ca3af; 
        font-weight: 800; 
        font-size: 0.8rem; 
        transition: 0.3s;
        text-transform: uppercase;
    }
    .nav-links a:hover { color: white; }
}

/* Common UI for Mobile Menu */
.mobile-header-top {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #111;
    background: #000;
}

.mobile-top-icons { display: flex; align-items: center; gap: 1.5rem; }
.mobile-top-icons i {
    color: #9ca3af;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.mobile-top-icons i:hover { color: white; }

/* Mobile Menu Overlay Redesign - Ultra Stylish */
@media (max-width: 768px) {
    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #08080c;
        z-index: 2000;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
    #main-nav.active { right: 0; }
    .mobile-nav-content { display: flex; flex-direction: column; min-height: 100%; }
    .desktop-only { display: none !important; }
}

.mobile-header-top {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #08080c;
    border-bottom: 1px solid #111;
}

.mobile-top-icons { display: flex; align-items: center; gap: 1.8rem; }
.mobile-top-icons i {
    color: #6b7280;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.3s;
}

.mobile-top-icons i:hover { color: white; transform: scale(1.1); }

.mobile-user-card {
    background: linear-gradient(145deg, #7f1d1d 0%, #450a0a 100%);
    padding: 5rem 2rem;
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-user-avatar {
    width: 140px;
    height: 140px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 3px solid rgba(255,255,255,0.2);
    border-radius: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 950;
    color: white;
    box-shadow: 0 35px 70px -15px rgba(0,0,0,0.6);
    margin-bottom: 2rem;
    position: relative;
    z-index: 5;
}

.mobile-user-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mobile-user-info h4 {
    font-size: 1.8rem;
    font-weight: 950;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    color: white;
}

.mobile-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 950;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.mobile-user-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1.2rem;
    margin-top: 3.5rem;
    position: relative;
    z-index: 10;
}

.mobile-user-actions a {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 1.4rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 950;
    color: white;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: 0.4s;
    width: 100%;
}

.mobile-user-actions a i { font-size: 1.1rem; opacity: 1; color: white; }
.m-btn-signout { color: #f43f5e !important; border-color: rgba(244, 63, 94, 0.3) !important; background: rgba(244, 63, 94, 0.05) !important; }

.mobile-list {
    list-style: none;
    padding: 0 1.5rem;
}

.m-link-main {
    display: block;
    padding: 1.8rem 1rem;
    font-size: 1.4rem;
    font-weight: 950;
    color: #f3f4f6;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    border-bottom: 1px solid #111;
}

.m-link-item {
    padding: 1.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 950;
    color: #f3f4f6;
    letter-spacing: -0.5px;
    border-bottom: 1px solid #111;
    cursor: pointer;
}

.m-link-item a:hover { color: #6366f1; }

.m-link-item i {
    color: #4b5563;
    font-size: 0.9rem;
    transition: 0.3s;
    background: #111;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.m-link-item.open i { transform: rotate(180deg); background: #6366f1; color: white; }

.m-sub-list {
    list-style: none;
    background: #0a0a0f;
    padding: 1rem 0;
    display: none;
}

.m-sub-list a {
    display: block;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: #9ca3af;
    transition: 0.3s;
}

.m-sub-list a:hover { color: white; padding-left: 3rem; }

/* REFINED FOOTER STYLES */
footer {
    background: #050505;
    padding: 8rem 0 4rem;
    border-top: 1px solid #111;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-logo-area p {
    color: #6b7280;
    line-height: 1.8;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 2rem;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
    margin-top: 3rem;
}

.footer-socials a {
    width: 48px;
    height: 48px;
    background: #0d0d12;
    border: 1px solid #15151e;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #4b5563;
    transition: 0.4s;
}

.footer-socials a:hover {
    background: #111;
    color: white;
    transform: translateY(-5px);
    border-color: #222;
}

.footer-title {
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: -0.5px;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-links a {
    color: #9ca3af;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-newsletter-box {
    background: #0d0d12;
    border: 1.5px solid #15151e;
    border-radius: 18px;
    padding: 1rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.footer-newsletter-box:focus-within {
    border-color: #6366f1;
    background: #0f0f18;
}

.footer-newsletter-box i { color: #4b5563; font-size: 1.1rem; }

.footer-newsletter-box input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-grow: 1;
}

.btn-join {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border-radius: 18px;
    font-weight: 950;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: 0.4s;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.25);
}

.btn-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.4);
    filter: brightness(1.1);
}

.footer-bottom {
    border-top: 1px solid #111;
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .footer-logo-area p { margin: 2rem auto; }
    .footer-socials { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
}
