:root {
    --cursor-size: 8px;
    --cursor-outline-size: 36px;
    --primary: #6366f1;
    /* Indigo */
    --secondary: #0ea5e9;
    /* Sky Blue */
    --accent: #bc13fe;
    --background: #ffffff;
    --surface: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --sidebar-width: 320px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

html,
body {
    background-color: var(--background);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.custom-cursor-active,
body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active input,
body.custom-cursor-active textarea,
body.custom-cursor-active .btn,
body.custom-cursor-active .logo,
body.custom-cursor-active .nav-links a {
    cursor: none !important;
}

/* Custom Cursor */
.cursor-dot {
    width: var(--cursor-size);
    height: var(--cursor-size);
    background-color: var(--secondary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 15px var(--secondary);
}

.cursor-outline {
    width: var(--cursor-outline-size);
    height: var(--cursor-outline-size);
    border: 1.5px solid var(--secondary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s, opacity 0.3s;
}

body.custom-cursor-active .cursor-dot,
body.custom-cursor-active .cursor-outline {
    opacity: 1;
}

body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 243, 255, 0.15);
    border-color: #00f3ff;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

/* Cursor is now handled locally even in iframes */

/* Premium Animated Background */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(188, 19, 254, 0.03) 0%, transparent 50%);
    filter: blur(80px);
}

/* Navbar - Gen Z Aesthetic */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 5%;
    display: flex;
    align-items: center;
}

.nav-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-center {
    flex: 0;
    display: flex;
    justify-content: center;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 2.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    line-height: 1;
}

.menu-trigger {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    padding: 0.5rem;
    border-radius: 10px;
}

.menu-trigger:hover {
    background: var(--glass);
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    /* Hide scrollbar for clean look */
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.auth-btns {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.7);
}

.btn-glass {
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 10rem 5% 6rem;
    text-align: center;
    background: radial-gradient(circle at 50% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.9;
    margin-bottom: 2rem;
    color: var(--text);
}

.hero p {
    color: var(--text-muted);
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* News Grid */
.news-container {
    padding: 4rem 5%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
}

.card-img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s ease;
}

.card:hover .card-img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
}

.card-body {
    padding: 1.75rem;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article Detail */
.article-header {
    padding: 6rem 5% 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.article-meta {
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.article-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.article-hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 40px;
    margin: 2rem 0;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--text);
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 2rem;
}

/* Teaser Paywall */
.teaser-blur {
    position: relative;
    max-height: 300px;
    overflow: hidden;
}

.teaser-blur::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--background));
}

.paywall-box {
    text-align: center;
    padding: 4rem;
    background: var(--surface);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

/* Forms */
.auth-container {
    max-width: 450px;
    margin: 6rem auto;
    background: var(--surface);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.6);
}

/* Sidebar Styling */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: 0.4s ease;
}

.sidebar-overlay.active {
    visibility: visible;
    opacity: 1;
}

.sidebar {
    position: fixed;
    top: 0;
    left: calc(-1 * var(--sidebar-width));
    width: var(--sidebar-width);
    height: 100%;
    background: #ffffff;
    backdrop-filter: blur(30px);
    z-index: 2001;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.05);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    white-space: nowrap;
}

.sidebar-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.sidebar-links a:hover {
    background: #f1f5f9;
    padding-left: 1.25rem;
    color: var(--primary);
    border-color: rgba(99, 102, 241, 0.1);
}

/* Sponsor Banner */
.sponsor-section {
    padding: 1rem 5%;
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.sponsor-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    animation: slideIn 0.8s ease-out;
}

.sponsor-item {
    transition: 0.3s;
}

.sponsor-item img {
    height: 40px;
    filter: grayscale(1) opacity(0.5);
    transition: 0.3s;
}

.sponsor-item:hover img {
    filter: grayscale(0) opacity(1);
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .article-title {
        font-size: 2.5rem;
    }
}

/* --- Admin Dashboard Overhaul (Hyper Dark Edition) --- */
.admin-body {
    background: #0f172a;
    color: #f8fafc;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.sidebar-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.sidebar-logo span {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 2rem;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-nav a i {
    font-size: 1.1rem;
    width: 20px;
}

.sidebar-nav a.active {
    background: rgba(99, 102, 241, 0.1);
    color: white;
    border-left: 4px solid var(--primary);
    box-shadow: inset 10px 0 20px -10px rgba(99, 102, 241, 0.3);
}

.sidebar-nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-footer {
    padding: 2rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-footer:hover {
    color: var(--accent);
}

.admin-content-wrap {
    margin-left: 260px;
    padding: 3rem 4rem;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
}

.admin-page-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 2.5rem;
    letter-spacing: -0.05em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.6);
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 4px;
    border-radius: 0 4px 4px 0;
}

.stat-card.blue::before {
    background: #3b82f6;
}

.stat-card.green::before {
    background: #10b981;
}

.stat-card.purple::before {
    background: #8b5cf6;
}

.stat-card.pink::before {
    background: #ec4899;
}

.stat-info span {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-info h3 {
    font-size: 2.25rem;
    font-weight: 900;
    color: white;
    margin-top: 0.25rem;
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.stat-card.blue .stat-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-card.green .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-card.purple .stat-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.stat-card.pink .stat-icon {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.admin-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    color: #9ca3af;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: var(--text);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}