@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700;900&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap');

:root {
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.6);
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.4);
    --bg-body: #020617;
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-header: rgba(2, 6, 23, 0.95);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.06);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --radius-lg: 32px;
    --radius-md: 20px;
}

/* Light Theme Removed as per request */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- ULTRA-LUXE UTILITIES --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), #8b5cf6);
    border-radius: 10px;
    border: 3px solid #020617;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

body {
    background: #020617;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Radical Background Animation */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.15) 0, transparent 50%),
        radial-gradient(at 50% 0%, rgba(139, 92, 246, 0.1) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.15) 0, transparent 50%),
        radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.1) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0, transparent 50%);
    z-index: -3;
    animation: bgMood 30s ease-in-out infinite alternate;
}

@keyframes bgMood {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/p6.png");
    opacity: 0.12;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: overlay;
}

.mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 40%),
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px;
    z-index: -2;
    pointer-events: none;
}

/* Ambient Aura Blobs */
.aura-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.5;
}

.blob {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(100px);
    mix-blend-mode: color-dodge;
    animation: blobMove 30s infinite alternate ease-in-out;
    opacity: 0.25;
}

.blob-1 {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.blob-2 {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    top: 35%;
    right: -10%;
    animation-delay: -7s;
    width: 900px;
    height: 900px;
}

.blob-3 {
    background: radial-gradient(circle, rgba(244, 63, 94, 0.2) 0%, transparent 70%);
    bottom: -15%;
    left: 15%;
    animation-delay: -15s;
}

@keyframes blobMove {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(150px, 100px) rotate(120deg) scale(1.1);
    }

    66% {
        transform: translate(-100px, 150px) rotate(240deg) scale(0.9);
    }

    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* Scroll Progress indicator */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6, #ec4899);
    z-index: 10002;
    width: 0%;
    transition: width 0.2s cubic-bezier(0.1, 0.4, 0.3, 1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.reading-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #fff, 0 0 30px #ec4899;
    filter: blur(1px);
}

/* Header & Nav Master Fix (Full Width) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

header.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    background: rgba(2, 6, 23, 0.98);
}

.top-bar {
    height: 54px;
    background: linear-gradient(-45deg, #020617, #0f172a, #1e1b4b, #020617);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-bottom: 2px solid #ef4444;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1001;
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.25), inset 0 -5px 15px rgba(239, 68, 68, 0.1);
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.top-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ef4444, #f59e0b, #ef4444, transparent);
    animation: borderPulse 3s linear infinite;
    opacity: 0.8;
}

@keyframes borderPulse {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Fire Particles System */
.fire-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.fire-particles span {
    position: absolute;
    bottom: -10px;
    width: 3px;
    height: 3px;
    background: #ef4444;
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(1px);
    animation: fireFloat 4s linear infinite;
    left: calc(var(--i) * 3.8%);
    animation-delay: calc(var(--i) * -0.2s);
}

@keyframes fireFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-60px) scale(0.5);
        opacity: 0;
    }
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(239, 68, 68, 0.08),
            rgba(255, 255, 255, 0.05),
            transparent);
    transform: skewX(-45deg);
    animation: sweepBand 5s infinite linear;
    pointer-events: none;
}

.header-fluid {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Ticker Master Styles */
/* Ticker Master Styles - Fixed Alignment */
.ticker-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    /* Critical for flex child overflow */
    overflow: hidden;
    margin-right: 20px;
    position: relative;
    z-index: 10;
    height: 100%;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    /* Prevent shrinking */
    z-index: 20;
}

.ticker-label {
    background: linear-gradient(135deg, #ff0000, #990000);
    color: white;
    padding: 0 16px;
    height: 32px;
    font-weight: 900;
    font-size: 0.7rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    z-index: 20;
    position: relative;
    flex-shrink: 0;
    margin-right: 15px;
}

/* Beacon Wave Effect */
.ticker-label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid #ff0000;
    border-radius: 8px;
    animation: beaconPulse 2s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes beaconPulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }

    100% {
        width: 150%;
        height: 200%;
        opacity: 0;
    }
}

@keyframes shimmerLabel {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 12px solid #ff4b2b;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
}

.pulsing-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 1s infinite alternate;
}

@keyframes pulse-dot {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0.3;
        transform: scale(1.5);
    }
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding-left: 25px;
    /* Added gap after triangle */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 35s linear infinite;
    gap: 80px;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.breaking-news-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.95rem;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.breaking-news-link:hover {
    color: #ff416c;
    transform: scale(1.08) translateY(-2px);
    text-shadow: 0 0 20px rgba(255, 65, 108, 0.8);
    filter: drop-shadow(0 0 15px rgba(255, 65, 108, 0.5));
}

.news-flash-icon {
    color: var(--accent);
    font-weight: 1000;
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

/* Clock & Auth */
.live-clock-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.weather-widget {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.weather-widget:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.prayer-widget {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.prayer-widget:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.auth-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.nav-top {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    gap: 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    justify-content: flex-end;
}

.finance-band {
    display: flex;
    gap: 15px;
    margin: 0 20px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    opacity: 0.9;
}

@media (max-width: 1200px) {
    .finance-band {
        display: none;
        /* Hide on smaller screens to save space */
    }
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 15px;
    height: 42px;
    min-width: 200px;
    width: 240px;
    transition: all 0.4s ease;
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.menu-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.category-bar {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
    overflow-x: auto;
    padding: 10px 30px;
    scrollbar-width: none;
    justify-content: center;
    width: 100%;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 10px 18px;
    border-radius: 10px;
    white-space: nowrap;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0 20px;
    height: 50px;
    min-width: 260px;
    width: 260px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.search-form:focus-within {
    width: 420px;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow:
        0 20px 40px -15px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(59, 130, 246, 0.2),
        inset 0 0 15px rgba(255, 255, 255, 0.02);
    transform: translateY(-2px) scale(1.02);
}

.search-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: 0.5s;
    pointer-events: none;
}

.search-form:focus-within::before {
    animation: searchShimmer 2s infinite;
}

@keyframes searchShimmer {
    100% {
        left: 100%;
    }
}

.search-input {
    background: none;
    border: none;
    color: #fff;
    padding: 12px 0;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.search-form:focus-within .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    transform: translateX(8px);
}

.search-btn-icon {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.search-form:focus-within .search-btn-icon {
    color: #3b82f6;
    transform: scale(1.1);
}

.search-btn-icon:hover {
    color: #fff !important;
    transform: scale(1.3) rotate(10deg);
}

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, #fff, #94a3b8, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
    animation: silverSweep 5s linear infinite;
}

@keyframes silverSweep {
    to {
        background-position: 200% center;
    }
}

/* Hero Slider */
.hero-slider-wrapper {
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    height: 550px;
    box-shadow: var(--shadow-premium);
}

.slider-item {
    background-size: cover;
    background-position: center;
    transition: 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: flex-end;
}

.slider-item.active {
    opacity: 1;
    visibility: visible;
}

.slider-item.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    animation: kenBurns 20s linear infinite alternate;
    z-index: -1;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    background: linear-gradient(to top, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.4) 60%, transparent 100%);
    padding: 80px 50px;
    width: 100%;
}

.hero-overlay h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -3px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    animation: cinematicIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cinematicIn {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateX(10deg) translateY(30px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: perspective(1000px) rotateX(0deg) translateY(0);
        filter: blur(0);
    }
}

/* News Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* --- NEWS GRID & CARDS PREMIUM --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.news-card:hover {
    transform: translateY(-12px) scale(1.01);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.1);
}

.card-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-img-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.news-card:hover .card-img-img {
    transform: scale(1.1);
}

.card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.8), transparent 60%);
    opacity: 0.6;
    transition: 0.3s;
}

.news-card:hover .card-img-overlay {
    opacity: 0.8;
}

/* AI Badge Sleek Style */
.ai-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #10b981;
}

.ai-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulseBadge 1.5s infinite;
}

/* Card Body Wrapper */
.card-body-wrapper {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-category-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.calendar-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.35;
    flex: 1;
}

.card-title a {
    color: #f1f5f9;
    text-decoration: none;
    transition: 0.3s;
}

.card-title a:hover {
    color: var(--primary);
}

/* Sentiment Bar Sleek */
.card-sentiment-bar {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-sentiment-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.card-confidence {
    font-size: 0.8rem;
    font-weight: 900;
    color: #10b981;
}

.featured-card {
    grid-column: span 2;
}

/* Floating Save Button */
.card-save-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 20;
    opacity: 0;
    transform: translateY(10px);
}

.news-card:hover .card-save-btn {
    opacity: 1;
    transform: translateY(0);
}

.card-save-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1) !important;
}

.card-save-btn.saved {
    background: var(--primary);
    color: white;
    opacity: 1;
    transform: translateY(0);
}

/* Cleaned up stray styles */

.ai-badge:hover {
    transform: scale(1.05);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(16, 185, 129, 0.4);
}

.ai-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: aiShimmer 3s infinite;
}

@keyframes aiShimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.ai-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981, 0 0 20px rgba(16, 185, 129, 0.6);
    animation: aiPulse 2s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes aiPulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 10px #10b981;
    }

    100% {
        transform: scale(1.6);
        opacity: 0.7;
        box-shadow: 0 0 20px #10b981, 0 0 30px #10b981;
    }
}

.featured-card .card-title {
    font-size: 2rem;
}

/* Section Titles */
.section-title {
    margin: 60px 0 40px;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -2px;
}

/* Widgets */
.widget {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 30px;
}

.widget-header {
    padding: 22px 30px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-header h3 {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

/* Typography Helper */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout Master */
.main-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.left-sidebar {
    width: 380px;
    position: sticky;
    top: 200px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.hero-slider-wrapper {
    height: 600px;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-premium);
}

.hero-sub {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 600px;
}

.sub-card {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.15, 0.83, 0.66, 1);
    text-decoration: none;
}

.sub-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

/* Components */
.badge {
    padding: 6px 16px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

.badge-blue {
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.5);
}

.badge-gold {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #000;
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.5);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-weight: 700;
    color: var(--primary);
    transition: 0.3s;
}

.read-more i {
    transition: 0.3s;
}

.slider-link:hover .read-more i {
    transform: translateX(10px);
}

/* Slider Controls */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slider-nav-btn:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn.prev {
    left: 30px;
}

.slider-nav-btn.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    width: 40px;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Responsive Master Fix */
@media (max-width: 1400px) {
    .main-layout {
        gap: 20px;
    }

    .left-sidebar {
        width: 320px;
    }
}

@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-sub {
        flex-direction: row;
        height: 300px;
    }

    .sub-card {
        padding: 20px;
    }

    .main-layout {
        flex-direction: column;
    }

    .left-sidebar {
        width: 100%;
        position: static;
        order: 2;
    }

    .main-content {
        order: 1;
    }
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}



/* Responsive */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        grid-column: span 1;
    }

    .finance-band {
        display: none;
    }
}

/* Mobile Drawer Master */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -400px;
    width: 380px;
    height: 100vh;
    background: #020617;
    z-index: 10000;
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 40px 0 100px rgba(0, 0, 0, 0.9);
    padding: 40px;
    overflow-y: auto;
    border-right: 1px solid var(--border);
}

.mobile-drawer.open {
    left: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-section {
    margin-bottom: 40px;
}

.drawer-section h4 {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 800;
}

.drawer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.drawer-grid a,
.drawer-section>a {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.drawer-section>a {
    width: 100%;
    margin-bottom: 10px;
}

.drawer-grid a i,
.drawer-section a i {
    color: var(--primary);
    font-size: 1rem;
}

.drawer-grid a:hover,
.drawer-section>a:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(5px);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* AI Live Status Widget */
.ai-live-status {
    background: rgba(2, 6, 23, 0.7) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.ai-status-pulse {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 10px #10b981;
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.ai-log-container {
    padding: 20px;
    min-height: 220px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-log-entry {
    display: flex;
    gap: 10px;
    line-height: 1.4;
    border-left: 2px solid rgba(59, 130, 246, 0.3);
    padding-left: 10px;
}

.log-time {
    color: #3b82f6;
    font-weight: 700;
    white-space: nowrap;
}

.log-msg {
    color: rgba(255, 255, 255, 0.85);
}

.ai-terminal-footer {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: monospace;
    color: #3b82f6;
    font-size: 0.8rem;
}

.terminal-prefix {
    margin-right: 5px;
}

#terminal-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* AI Chat Assistant Widget */
.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    pointer-events: none;
}

.ai-chat-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.ai-chat-bubble:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.6);
}

.ai-chat-bubble i {
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 480px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.ai-chat-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ai-chat-header {
    padding: 18px 24px;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-header h4 {
    margin: 0;
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-header .status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 12px #10b981;
}

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
}

.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.92rem;
    line-height: 1.5;
    position: relative;
    animation: fadeInMsg 0.3s ease-out;
}

@keyframes fadeInMsg {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg.ai {
    background: rgba(30, 41, 59, 0.7);
    color: #f1f5f9;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.chat-msg.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.ai-chat-input-area {
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    gap: 12px;
}

.ai-chat-input-area input {
    flex: 1;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 10px 16px;
    color: white;
    outline: none;
    font-size: 0.9rem;
}

.ai-chat-input-area input:focus {
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.8);
}

.ai-chat-input-area button {
    background: var(--primary);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-chat-input-area button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.typing-indicator {
    display: none;
    align-self: flex-start;
    background: rgba(59, 130, 246, 0.05);
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.typing-indicator.active {
    display: flex;
    align-items: center;
    gap: 5px;
}

.typing-dot {
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: typingPulse 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* AI Sentiment & Impact Meter */
.ai-metrics-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    align-items: center;
}

.ai-metrics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), #6366f1);
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.metric-item label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.sentiment-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.sentiment-indicator.positive {
    color: #10b981;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.sentiment-indicator.negative {
    color: #ef4444;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.sentiment-indicator.neutral {
    color: #f59e0b;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.impact-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: visible;
    position: relative;
    margin-top: 5px;
}

.impact-bar {
    height: 100%;
    border-radius: 4px;
    background: var(--primary);
    transition: width 1s ease-in-out;
}

.impact-value {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 5px;
    color: white;
}

.metric-ai-badge {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 0.65rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-family: 'JetBrains Mono', monospace;
}

/* AI Summary Cards */
.ai-summary-breakdown {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.ai-summary-breakdown::-webkit-scrollbar {
    display: none;
}

.summary-card {
    min-width: 220px;
    height: 130px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.summary-card:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.15));
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.summary-card i {
    font-size: 1.1rem;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.summary-card .card-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.summary-card .card-text {
    font-size: 0.88rem;
    color: #e2e8f0;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* AI Entity Wiki */
.ai-entity {
    border-bottom: 2px dotted var(--primary);
    cursor: help;
    position: relative;
    background: rgba(59, 130, 246, 0.05);
    padding: 0 2px;
    border-radius: 4px;
    transition: 0.3s;
    color: inherit;
    text-decoration: none;
}

.ai-entity:hover {
    background: rgba(59, 130, 246, 0.15);
    color: white;
}

.entity-popup {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 16px;
    padding: 18px;
    font-size: 0.88rem;
    color: #e2e8f0;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ai-entity:hover .entity-popup {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.entity-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(59, 130, 246, 0.4) transparent transparent transparent;
}

.entity-popup h6 {
    margin: 0 0 10px 0;
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entity-popup .ai-tag {
    font-size: 0.65rem;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    padding: 4px 8px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid rgba(59, 130, 246, 0.2);
}


/* Audio Player & Reading Tools */
.reading-tools-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.tool-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.2s;
    font-weight: 600;
}

.tool-btn:hover,
.tool-btn.active {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary);
}

.tool-btn i {
    font-size: 1.1rem;
}

/* Audio Wave Animation */
.audio-wave {
    display: flex;
    gap: 3px;
    align-items: center;
    height: 15px;
    margin-left: 10px;
    display: none;
    /* Hidden by default */
}

.audio-wave.playing {
    display: flex;
}

.audio-bar {
    width: 3px;
    background: var(--primary);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
    height: 100%;
}

.audio-bar:nth-child(2) {
    animation-duration: 1.1s;
}

.audio-bar:nth-child(3) {
    animation-duration: 1.3s;
}

.audio-bar:nth-child(4) {
    animation-duration: 0.9s;
}

.audio-bar:nth-child(5) {
    animation-duration: 1.2s;
}

@keyframes wave {

    0%,
    100% {
        height: 20%;
    }

    50% {
        height: 100%;
    }
}

/* Bionic Reading Mode */
.bionic-mode b {
    font-weight: 800;
    color: #fff;
}

/* Voice Command Styles Removed */

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* AI Smart Ticker - Compact Fix */
.ai-ticker {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    height: 40px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin: 0 15px;
    /* Adjust spacing */
    flex: 1;
    /* Allow flexible width */
    min-width: 0;
    /* Important for flexbox shrinking */
}

/* Make ticker scrollable/wrappable */
.ticker-slide {
    display: flex;
    gap: 15px;
    overflow: hidden;
    /* Hide overflow initially */
    align-items: center;
    white-space: nowrap;
    width: 100%;
    padding: 0 18px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    /* Fade edges */
}

/* Animate the content if it's too long */
.ticker-slide:hover {
    overflow-x: auto;
    scrollbar-width: thin;
}

.fin-item b {
    margin: 0 4px;
}

/* Hide redundant elements on smaller screens */
@media (max-width: 1200px) {
    .ai-trend {
        display: none;
    }

    /* Hide trends on laptop */
    .fin-item.high-impact {
        display: none;
    }

    /* Hide flash news on laptop */
}

/* Search Box Fix */
.nav-right .search-box {
    width: 250px;
    /* Fixed width to prevent squashing */
    flex-shrink: 0;
    margin-right: 0;
}

.nav-right .search-box input {
    width: 100%;
    padding-right: 40px;
    /* Space for icon */
}

/* Voice Button Fix */
.voice-command-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.08);
}

/* AI Smart Ticker */
.ai-trend {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    text-transform: uppercase;
}

.ai-trend.down {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.ai-trend.up {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.ai-trend.flat {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.fin-item.high-impact {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 2px 10px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    margin-left: auto;
    /* Push to right if flex */
}

.pulse-icon {
    font-size: 0.6rem;
    margin-right: 8px;
    animation: flash 1s infinite alternate;
}

@keyframes flash {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.3;
    }
}

.bionic-mode {
    color: #94a3b8;
}

/* Voice Commander Styles */
.voice-command-btn.listening {
    background-color: #ef4444 !important;
    animation: voicePulse 1.5s infinite;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.voice-command-btn.voice-error {
    background-color: #52525b !important;
    animation: voiceShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes voicePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes voiceShake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Header Extra Buttons */
.extra-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.extra-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: white;
}

.extra-btn.highlight {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.extra-btn.highlight:hover {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

@media (max-width: 1024px) {
    .extra-btn span {
        display: none;
    }

    .extra-btn {
        padding: 10px;
    }
}

/* ==========================================================================
   PREMIUM EDITORIAL CONTENT DESIGN SYSTEM
   ========================================================================== */

.article-content {
    font-size: 1.35rem;
    line-height: 2.1;
    color: #f1f5f9;
    letter-spacing: -0.015em;
    font-weight: 400;
}

/* Premium Headings */
.article-content h2 {
    color: white;
    margin: 70px 0 35px 0;
    font-size: 2.4rem;
    font-family: var(--font-heading);
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 22px;
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.article-content h2::before {
    content: '';
    width: 14px;
    height: 44px;
    background: linear-gradient(to bottom, var(--primary), #8b5cf6);
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.article-content h3 {
    color: #f8fafc;
    margin: 45px 0 20px 0;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Enhanced Paragraphs */
.article-content p {
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Glassmorphism Blockquotes */
.article-content blockquote {
    margin: 60px 0;
    padding: 50px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    border-radius: 32px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    font-style: italic;
    color: #f1f5f9;
    font-size: 1.6rem;
    line-height: 1.6;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.article-content blockquote::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -30px;
    left: 40px;
    font-size: 3.5rem;
    color: var(--primary);
    opacity: 0.4;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* Premium Data Lists */
.article-content ul {
    list-style: none;
    padding-left: 0;
    margin: 50px 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 40px;
}

.article-content ul li {
    margin-bottom: 25px;
    padding-left: 45px;
    position: relative;
    font-weight: 500;
    font-size: 1.2rem;
    color: #e2e8f0;
}

.article-content ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: #10b981;
    font-size: 1.3rem;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
}

.article-content ul li:last-child {
    margin-bottom: 0;
}

/* Strategic Highlights */
.article-content b,
.article-content strong {
    color: #ffffff;
    background: linear-gradient(transparent 70%, rgba(59, 130, 246, 0.3) 30%);
    padding: 0 6px;
    font-weight: 800;
    display: inline;
}

/* Dark Mode Transitions */
.article-content * {
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

/* --- ULTRA PREMIUM NEWS DETAIL DESIGN SYSTEM --- */

/* Reading Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1001;
}

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6, var(--primary));
    background-size: 200% 100%;
    width: 0%;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Premium Sidebar Glassmorphism */
.sidebar-widget {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar-widget:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.sidebar-widget-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 15px;
}

.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Premium List Items in Sidebar */
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    gap: 15px;
    transition: 0.3s;
}

.sidebar-list-item:last-child {
    border-bottom: none;
}

.sidebar-list-item:hover {
    transform: translateX(5px);
}

.sidebar-list-item .item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.4;
    text-decoration: none;
}

.sidebar-list-item:hover .item-title {
    color: var(--primary);
}

/* Editorial Dividers */
.editorial-divider-premium {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 60px 0;
    position: relative;
}

.editorial-divider-premium::after {
    content: '◈';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #0f172a;
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* Refined Article Meta */
.meta-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.meta-pill:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #fff;
}

/* Background Accents */
.premium-bg-accent {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .sidebar-widget {
        padding: 20px;
    }
}

/* --- NEWSROOM ELITE ADDITIONS --- */

/* Professional Drop Cap */
.article-content p:first-of-type::first-letter {
    float: left;
    font-size: 5.2rem;
    line-height: 0.85;
    font-weight: 900;
    margin-right: 18px;
    margin-top: 8px;
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 4px 4px 0px rgba(59, 130, 246, 0.1);
}

/* Enhanced Author Bio Card */
.author-card-premium {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 35px;
    display: flex;
    gap: 25px;
    align-items: center;
    margin: 60px 0;
    backdrop-filter: blur(10px);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.author-card-premium:hover {
    border-color: var(--primary);
    transform: scale(1.01);
}

.author-card-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(59, 130, 246, 0.2);
    object-fit: cover;
}

.author-card-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 800;
}

.author-card-info p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 10px 0;
}

.author-socials {
    display: flex;
    gap: 15px;
}

.author-social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.author-social-link:hover {
    background: var(--primary);
    color: white;
}

/* End of Story Marker */
.end-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 80px 0;
}

.end-marker::before,
.end-marker::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.end-marker-icon {
    width: 12px;
    height: 12px;
    background: var(--primary);
    transform: rotate(45deg);
    box-shadow: 0 0 15px var(--primary);
}

@media (max-width: 768px) {
    .author-card-premium {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .author-socials {
        justify-content: center;
    }
}

/* -------------------------------------------------------------------------- */
/*                            AI Article Custom Styles                        */
/* -------------------------------------------------------------------------- */

.article-body .article-highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(2, 6, 23, 0.2) 100%);
    border-left: 4px solid var(--primary);
    padding: 25px 30px;
    margin: 40px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #e2e8f0;
    font-size: 1.1em;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-body .article-highlight::before {
    content: '\f10d';
    /* Quote icon top left optional */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.2;
}

.article-body .article-summary {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
}

.article-body .article-summary h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-body .article-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.article-body .article-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.article-body .article-list li::before {
    content: '\f058';
    /* Check circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary);
    font-size: 1.2rem;
}

.article-body blockquote {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin: 50px 0;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.article-body blockquote::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 30px auto 0;
}

/* --- NEWS CARD STYLES (ADDED) --- */
/* Removed duplicate news-card styles for performance and clarity */
/* Cleaned up stray styles */

.news-card .ai-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: blink 2s infinite;
}

/* Featured Card Specs */
.featured-card {
    grid-column: span 2;
}

.featured-card .card-img-container {
    aspect-ratio: 21 / 9;
}

.featured-card .card-title {
    font-size: 2.25rem;
    line-height: 1.2;
}

/* --- SIDEBAR WIDGETS PREMIUM --- */
.sidebar-widget {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.widget-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.widget-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #f1f5f9;
}

.widget-subtitle {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .featured-card {
        grid-column: span 1;
    }

    .featured-card .card-img-container {
        aspect-ratio: 16 / 9;
    }

    .featured-card .card-title {
        font-size: 1.5rem;
    }
}

@media(max-width: 768px) {
    .featured-card {
        grid-column: span 1;
    }

    .featured-card .card-img {
        height: 200px;
    }
}

/* ==========================================================================
   GLOBAL MOBILE OPTIMIZATION (FORCE RESPONSIVE)
   ========================================================================== */

@media (max-width: 768px) {

    /* 1. Reset & Containers */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .container,
    .header-fluid,
    .footer-content,
    .content-wrapper,
    .profile-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box;
    }

    /* 2. Grids - Force Vertical Stacking */
    .grid,
    .news-grid,
    .row,
    .features-grid,
    .stats-row,
    .filters-grid,
    .results-grid,
    .profile-content,
    .category-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        /* Force single column */
        gap: 20px !important;
    }

    /* Exceptions for small grids (like 2-col stats) */
    .stats-grid-small {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 3. Typography Scaling */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    /* 4. Header Adjustments */
    .header-fluid {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 15px !important;
    }

    .nav-top {
        padding: 10px 0 !important;
        width: 100%;
    }

    .nav-right {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
        order: 2;
        margin-left: auto;
    }

    .nav-left {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Special Visibility for Mobile Header Elements */
    .mobile-header-actions {
        display: flex;
        gap: 10px;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    /* 5. Components */
    .news-card .card-img {
        height: 200px !important;
    }

    .sidebar-widget {
        margin-top: 30px;
    }

    /* Tables - Scrollable */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
    }

    /* Images & Embeds */
    img,
    video,
    iframe {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Specific Fixes */
    .profile-hero {
        flex-direction: column;
        text-align: center;
        padding: 20px !important;
    }

    .profile-avatar {
        margin: 0 auto 20px;
    }

    .auth-box {
        padding: 30px 20px !important;
    }

    .ticker-wrap,
    .category-bar,
    .finance-band,
    .ai-ticker,
    .auth-links a:not(.keep-mobile) {
        /* Hide text links in top bar on mobile, except panel */
        display: none !important;
    }

    /* Keep theme switcher or clock if desired, but hidden links specifically */
    .auth-links {
        justify-content: flex-end;
        /* Align remaining items (if any) to right */
    }

    /* Panel link stays visible on mobile */
    .auth-links a.keep-mobile {
        display: flex !important;
        align-items: center;
        gap: 5px;
    }

    .search-form {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Modal / Drawers */
    .mobile-drawer {
        width: 85%;
        /* Slightly less than full width */
    }

    .games-drawer {
        width: 100%;
    }

    /* Footer */
    footer {
        padding: 40px 0 !important;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 30px;
    }

}

/* Corporate & Legal Pages Layout */
.page-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.sidebar-menu {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
}

.sidebar-menu a {
    display: block;
    padding: 14px 20px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.sidebar-menu a:hover {
    background: rgba(59, 130, 246, 0.05);
    color: white;
    padding-left: 24px;
}

.sidebar-menu a.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: 16px;
    font-weight: 600;
}

.sidebar-menu a:last-child {
    border-bottom: none;
}

.content-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: #cbd5e1;
    line-height: 1.8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.content-box h1,
.content-box h2 {
    color: white;
    margin-bottom: 25px;
    font-family: 'Outfit', sans-serif;
}

.content-box p {
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .page-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar-menu {
        position: static;
        margin-bottom: 20px;
    }
}

/* Corporate Common Components */
.form-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.form-label span.required {
    color: #ef4444;
    margin-left: 5px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.btn-submit,
.btn-apply,
.contact-btn {
    background: var(--primary);
    color: white !important;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    text-decoration: none;
}

.btn-submit:hover,
.btn-apply:hover,
.contact-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox-wrapper input {
    margin-top: 4px;
}

.info-text {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
}

.ad-type,
.position-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.ad-type:hover,
.position-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(59, 130, 246, 0.3);
}

.ad-type h3,
.position-info h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-type i,
.position-info i {
    color: var(--primary);
}

.position-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.position-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Contact Specific */
.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.contact-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .position-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-apply {
        width: 100%;
    }
}

.app-badges {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.app-badge img {
    height: 50px;
    transition: 0.3s;
}

.app-badge:hover img {
    transform: scale(1.05);
}

/* Ultra-Premium Policy & Legal Styles */
.policy-hero {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    padding: 60px 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.policy-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.policy-hero-content {
    position: relative;
    z-index: 1;
}

.policy-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.policy-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

.legal-content-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.legal-section {
    margin-bottom: 80px;
    animation: fadeUp 1s ease-out;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.legal-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.legal-section-title i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.legal-section-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.legal-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #cbd5e1;
    margin-bottom: 25px;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.legal-list li {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 25px;
    border-radius: 16px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    transition: all 0.3s;
}

.legal-list li:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(10px);
    border-color: rgba(59, 130, 246, 0.2);
}

.legal-list li i {
    color: var(--primary);
    margin-top: 5px;
}

.glass-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    margin: 40px 0;
}

.premium-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .legal-content-card {
        padding: 30px;
    }

    .policy-hero {
        padding: 40px 25px;
    }

    .policy-hero h1 {
        font-size: 2.2rem;
    }
}

/* Policy & Legal Content Styles */
.policy-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 25px;
}

.policy-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.policy-section h3 i {
    color: var(--primary);
    font-size: 1.2rem;
}

.policy-section p {
    margin-bottom: 15px;
    color: #cbd5e1;
}

.policy-section ul,
.policy-section ol {
    padding-left: 20px;
    margin-bottom: 20px;
    color: #94a3b8;
}

.policy-section li {
    margin-bottom: 10px;
    position: relative;
}

.highlight-box {
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--primary);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.warning-box {
    background: rgba(245, 158, 11, 0.05);
    border-left: 4px solid #f59e0b;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.danger-box {
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid #ef4444;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.policy-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.policy-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.policy-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.policy-card h4 {
    color: white;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.policy-card p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-muted);
}

.category-trend-img {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 140px;
    background: url('../assets/img/terahaber_default.png') center/cover;
}

.trend-views {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
}

