/*
Theme Name: Bankdaripress
Theme URI: https://bankdaripress.ir
Author: Antigravity
Description: A futuristic, fluid, and high-end news interface (Bento/Tech Style).
Version: 4.0
Text Domain: bankdaripress
*/

/* -------------------------------------------------------------------------- */
/*                                 1. CORE VARS                               */
/* -------------------------------------------------------------------------- */
:root {
    /* -- Modern Tech Palette -- */
    --c-bg: #FDFDFD;
    --c-surface: #FFFFFF;
    --c-surface-hover: #F8FAFC;
    --c-border: rgba(0, 0, 0, 0.06);

    --c-text-primary: #0F172A;
    --c-text-sec: #64748B;
    --c-text-tertiary: #94A3B8;

    /* Brand Gradients */
    --acc-primary: #3B82F6;
    --acc-glow: rgba(59, 130, 246, 0.5);
    --grad-primary: linear-gradient(135deg, #2563EB 0%, #3B82F6 50%, #60A5FA 100%);
    --grad-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);

    /* Dimensions */
    --header-h: 72px;
    --rad-sm: 8px;
    --rad-md: 16px;
    --rad-lg: 24px;
    --rad-pill: 9999px;

    /* Effects */
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    --glass: blur(12px) saturate(180%);

    --font-stack: 'YekanBakh', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('./fonts/YekanBakh-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('./fonts/YekanBakh-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* -------------------------------------------------------------------------- */
/*                                2. RESET & BASE                             */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--c-bg);
    color: var(--c-text-primary);
    font-family: var(--font-stack);
    margin: 0;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* -------------------------------------------------------------------------- */
/*                               3. ANIMATIONS                                */
/* -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.animate-load {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* -------------------------------------------------------------------------- */
/*                                 4. HEADER                                  */
/* -------------------------------------------------------------------------- */
.site-header {
    height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border-bottom: 1px solid var(--c-border);
    transition: all 0.3s ease;
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--grad-primary);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* Nav Pill */
.nav-pill {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: 6px;
    border-radius: var(--rad-pill);
    display: flex;
    gap: 4px;
    box-shadow: var(--shadow-soft);
}

.nav-pill a {
    padding: 8px 18px;
    border-radius: var(--rad-pill);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text-sec);
}

.nav-pill a:hover,
.nav-pill a.active {
    background: var(--c-surface-hover);
    color: var(--c-text-primary);
    transform: translateY(-1px);
}

.nav-pill a.active {
    background: var(--c-text-primary);
    color: white;
}

/* Action Btn */
.btn-glass {
    padding: 10px 24px;
    border-radius: var(--rad-pill);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--c-text-primary);
    box-shadow: var(--shadow-soft);
}

.btn-glass:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--acc-primary);
}

/* -------------------------------------------------------------------------- */
/*                                5. BENTO GRID                               */
/* -------------------------------------------------------------------------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 320px) 260px;
    /* 3 Rows: 320, 320, 260 */
    gap: 24px;
    margin: 40px 0 80px 0;
}

.bento-item {
    background: var(--c-surface);
    border-radius: var(--rad-lg);
    border: 1px solid var(--c-border);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-soft);
}

/* Hover Effects */
.bento-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
    border-color: var(--acc-primary);
}

/* Item Sizes */
.bento-large {
    grid-column: span 8;
    grid-row: span 2;
}

.bento-small {
    grid-column: span 4;
    grid-row: span 1;
}

.bento-medium {
    grid-column: span 6;
    grid-row: span 1;
}

/* Bento Mobile Responsiveness */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-rows: auto;
    }

    .bento-large {
        grid-column: span 12;
        grid-row: span 1;
        min-height: 400px;
    }

    .bento-small {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin: 20px 0 40px 0;
    }

    .bento-item {
        width: 100%;
        min-height: 200px;
        border-radius: var(--rad-md);
    }

    .bento-large {
        min-height: 280px;
    }

    .bento-content {
        padding: 20px;
    }

    .bento-title {
        font-size: 1.1rem;
    }

    .bento-large .bento-title {
        font-size: 1.4rem;
    }

    .bento-excerpt {
        display: none;
    }
}

/* Content Styles */
.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 32px 32px 32px;
    z-index: 10;
    background: linear-gradient(to top,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(15, 23, 42, 0.8) 40%,
            rgba(15, 23, 42, 0) 100%);
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item:hover .bento-content {
    padding-bottom: 40px;
    background: linear-gradient(to top,
            rgba(37, 99, 235, 0.9) 0%,
            rgba(15, 23, 42, 0.8) 50%,
            rgba(15, 23, 42, 0) 100%);
}

.bento-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bento-item:hover .bento-bg {
    transform: scale(1.05);
}

.bento-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--rad-pill);
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.bento-item:hover .bento-tag {
    background: var(--acc-primary);
    border-color: var(--acc-primary);
    color: white;
}

.bento-title {
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bento-small .bento-title {
    font-size: 1.2rem;
    line-height: 1.4;
}

.bento-medium .bento-title {
    font-size: 1.4rem;
}

.bento-excerpt {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 15px;
    max-width: 90%;
}

/* -------------------------------------------------------------------------- */
/*                             6. NEWS LISTS & CARDS                          */
/* -------------------------------------------------------------------------- */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--c-border);
    padding-bottom: 16px;
}

.sec-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0;
    background: var(--grad-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sec-link {
    font-weight: 700;
    color: var(--acc-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Minimal News Card */
.card-minimal {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--c-surface);
    border-radius: var(--rad-md);
    border: 1px solid var(--c-border);
    transition: all 0.3s;
    margin-bottom: 20px;
}

.card-minimal:hover {
    border-color: var(--acc-primary);
    background: var(--c-surface-hover);
}

.min-thumb {
    width: 140px;
    height: 90px;
    border-radius: var(--rad-sm);
    background: #e2e8f0;
    flex-shrink: 0;
}

.min-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.min-meta {
    font-size: 0.8rem;
    color: var(--c-text-sec);
    margin-bottom: 4px;
    font-weight: 500;
}

.min-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
}


/* -------------------------------------------------------------------------- */
/*                                7. FOOTER                                   */
/* -------------------------------------------------------------------------- */
.mega-footer {
    background: #0f172a;
    color: white;
    padding: 100px 0 40px 0;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.mega-footer::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand .brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--grad-primary);
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.footer-brand h2 {
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -1px;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: grid;
    place-items: center;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--grad-primary);
    color: white;
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--acc-primary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 15px;
}

.footer-col a {
    color: #94a3b8;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: white;
    transform: translateX(-5px);
}

.footer-newsletter h4 {
    margin-bottom: 20px;
}

.newsletter-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 14px;
    display: flex;
    gap: 8px;
}

.newsletter-box input {
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: white;
    flex: 1;
    font-family: var(--font-stack);
    font-size: 0.9rem;
}

.newsletter-box input:focus {
    outline: none;
}

.newsletter-box button {
    background: var(--grad-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-box button:hover {
    opacity: 0.9;
    transform: scale(0.98);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.85rem;
}

.footer-links-inline {
    display: flex;
    gap: 30px;
}

.footer-links-inline a:hover {
    color: white;
}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-large,
    .bento-small {
        grid-column: span 1;
        grid-row: auto;
        height: 300px;
    }
}

/* -------------------------------------------------------------------------- */
/*                                8. TICKER                                   */
/* -------------------------------------------------------------------------- */
.ticker-wrap {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    height: 40px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    text-wrap: nowrap;
}

.ticker-label {
    background: var(--acc-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    padding-right: 20px;
}

.ticker-item {
    display: inline-block;
    padding: 0 24px;
    font-size: 0.85rem;
    color: var(--c-text-sec);
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(50%, 0, 0);
    }
}


/* -------------------------------------------------------------------------- */
/*                              9. SINGLE POST                                */
/* -------------------------------------------------------------------------- */
.single-header {
    margin: 40px 0 60px 0;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.single-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.single-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    background: var(--grad-dark);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.single-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    color: var(--c-text-tertiary);
    font-size: 0.9rem;
    font-weight: 500;
}

.single-content-wrap {
    max-width: 800px;
    margin: 0 auto;
    background: var(--c-surface);
    padding: 60px;
    border-radius: var(--rad-lg);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-soft);
}

.article-body {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--c-text-primary);
}

.article-body p {
    margin-bottom: 1.5em;
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 2em 0 1em 0;
    border-right: 4px solid var(--acc-primary);
    padding-right: 16px;
}

.source-box {
    margin-top: 60px;
    background: var(--c-surface-hover);
    padding: 30px;
    border-radius: var(--rad-md);
    text-align: center;
    border: 1px dashed var(--c-border);
}

.btn-source {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--grad-primary);
    color: white;
    padding: 12px 30px;
    border-radius: var(--rad-pill);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-source:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

/* -------------------------------------------------------------------------- */
/*                              10. ARCHIVE PAGES                             */
/* -------------------------------------------------------------------------- */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.archive-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--rad-md);
    overflow: hidden;
    transition: all 0.3s;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.ac-thumb {
    height: 200px;
    background: #f1f5f9;
}

.ac-body {
    padding: 24px;
}

.ac-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.4;
}

.ac-meta {
    font-size: 0.85rem;
    color: var(--c-text-sec);
}

/* Top Utility Bar */
.top-utility-bar {
    background: var(--c-text-primary);
    color: white;
    height: 36px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.util-date {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.util-divider {
    color: rgba(255, 255, 255, 0.2);
}

.util-link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.util-link:hover {
    color: white;
}

.social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* Main Header V2 */
.site-header-v2 {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 998;
    box-shadow: var(--shadow-soft);
}

.header-main-v2 {
    height: 90px;
    display: grid;
    grid-template-columns: 280px 1fr auto;
    gap: 40px;
    align-items: center;
}

/* Brand V2 */
.brand-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon-v2 {
    width: 48px;
    height: 48px;
    background: var(--grad-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.brand-text-v2 {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand-name span {
    color: var(--acc-primary);
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--c-text-tertiary);
    font-weight: 500;
}

/* Search Bar */
.header-search {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 100px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--rad-pill);
    font-size: 0.9rem;
    font-family: var(--font-stack);
    background: var(--c-surface-hover);
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--acc-primary);
    background: var(--c-surface);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-text-tertiary);
    pointer-events: none;
}

.search-kbd {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--c-text-tertiary);
    font-family: monospace;
}

/* Header Actions V2 */
.header-actions-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--c-border);
    background: var(--c-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-sec);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.header-btn:hover {
    background: var(--c-surface-hover);
    border-color: var(--acc-primary);
    color: var(--acc-primary);
    transform: translateY(-2px);
}

.header-btn .badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.btn-premium {
    background: var(--grad-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--rad-pill);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Navigation V2 */
.main-nav-v2 {
    background: var(--c-surface-hover);
    border-top: 1px solid var(--c-border);
    align-content: end;

}

.nav-wrapper {
    display: flex;
    gap: 4px;
    height: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-text-sec);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.nav-item svg {
    opacity: 0.7;
}

.nav-item:hover {
    color: var(--c-text-primary);
    background: rgba(59, 130, 246, 0.05);
}

.nav-item:hover svg {
    opacity: 1;
}

.nav-item.active {
    color: var(--acc-primary);
    border-bottom-color: var(--acc-primary);
    background: var(--c-surface);
}

.nav-item.active svg {
    opacity: 1;
}

/* Theme Toggle Button - Enhanced */
.theme-toggle {
    width: 48px;
    height: 48px;
    border-radius: var(--rad-md);
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.theme-toggle:hover::before {
    opacity: 1;
}

.theme-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.theme-toggle:active {
    transform: translateY(-1px) scale(0.98);
}

.theme-toggle svg {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.theme-toggle:hover svg {
    transform: rotate(180deg) scale(1.1);
}

/* Dark Mode - Update gradient */
[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

[data-theme="dark"] .theme-toggle:hover {
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --c-bg: #0F172A;
    --c-surface: #1E293B;
    --c-surface-hover: #334155;
    --c-border: rgba(255, 255, 255, 0.1);

    --c-text-primary: #F1F5F9;
    --c-text-sec: #94A3B8;
    --c-text-tertiary: #64748B;
}

[data-theme="dark"] .ticker-wrap {
    background: #1E293B;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ticker-item {
    color: #94A3B8;
}

[data-theme="dark"] .site-header-v2 {
    background: #1E293B;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .main-nav-v2 {
    background: #0F172A;
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .nav-item.active {
    background: #1E293B;
}

[data-theme="dark"] .bento-grid .bento-item {
    background: #1E293B;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .card-minimal {
    background: #1E293B;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .card-minimal:hover {
    background: #334155;
}

[data-theme="dark"] .archive-card {
    background: #1E293B;
    border-color: rgba(255, 255, 255, 0.1);

}

[data-theme="dark"] .single-content-wrap {
    background: #1E293B;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mega-footer {
    background: #020617;
}

[data-theme="dark"] .search-input {
    background: #0F172A;
    border-color: rgba(255, 255, 255, 0.1);
    color: #F1F5F9;
}

[data-theme="dark"] .search-input:focus {
    background: #1E293B;
    border-color: var(--acc-primary);
}

[data-theme="dark"] .search-kbd {
    background: #0F172A;
    border-color: rgba(255, 255, 255, 0.1);
    color: #64748B;
}

/* Bento Grid Improvements */
.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 1;
}

.bento-content {
    position: relative;
    z-index: 2;
    height: 100%;
    align-content: end;
}

.bento-title a {
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bento-excerpt {
    opacity: 0.9;
    margin-top: 12px;
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .bento-excerpt {
        display: none;
    }
}

/* Card Minimal with Images */
.min-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--rad-md);
    flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/*                            11. ARCHIVE / TOPIC GRID                        */
/* -------------------------------------------------------------------------- */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.archive-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--rad-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.archive-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
    border-color: var(--acc-primary);
}

.ac-thumb-link {
    display: block;
    height: 220px;
    overflow: hidden;
}

.ac-thumb {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.archive-card:hover .ac-thumb {
    transform: scale(1.08);
}

.ac-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ac-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--c-text-tertiary);
    margin-bottom: 12px;
}

.ac-source {
    color: var(--acc-primary);
    text-transform: uppercase;
}

.ac-dot {
    width: 4px;
    height: 4px;
    background: var(--c-border);
    border-radius: 50%;
}

.ac-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
}

.ac-title a:hover {
    color: var(--acc-primary);
}

.ac-excerpt {
    font-size: 0.95rem;
    color: var(--c-text-sec);
    line-height: 1.6;
    margin-top: auto;
}

/* -------------------------------------------------------------------------- */
/*                                12. PAGINATION                              */
/* -------------------------------------------------------------------------- */
.pagination {
    margin: 60px 0;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--c-surface);
    padding: 8px;
    border-radius: var(--rad-pill);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-soft);
}

.pagination .page-numbers {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c-text-sec);
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover:not(.current) {
    background: var(--c-surface-hover);
    color: var(--acc-primary);
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-size: 1.2rem;
    color: var(--acc-primary);
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    background: var(--acc-primary);
    color: white;
}

.pagination .dots {
    width: auto;
    background: transparent;
    cursor: default;
}

@media (max-width: 640px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns for App-like feel */
        gap: 16px;
        /* Tight gap */
    }

    .archive-card .ac-body {
        padding: 12px;
        /* Less padding */
    }

    .archive-card .ac-title {
        font-size: 0.9rem;
        /* Smaller title */
        line-height: 1.4;
        margin-bottom: 0;
    }

    .archive-card .ac-excerpt,
    .archive-card .ac-meta {
        display: none;
        /* Hide excerpt and meta to save space */
    }

    .archive-card .ac-meta .ac-date {
        display: block !important;
        /* ONLY show date if needed, or hide all */
        font-size: 0.7rem;
        margin-top: 6px;
        color: var(--c-text-tertiary);
    }

    /* Re-enable ONLY date */
    .archive-card .ac-meta {
        display: block;
        margin-bottom: 6px;
    }

    .archive-card .ac-source,
    .archive-card .ac-dot {
        display: none;
    }

    .ac-thumb {
        height: 140px;
        /* Reduced specific height for mobile */
    }

    .archive-card .ac-title {
        font-size: 0.8rem;
        /* Even smaller for better fit */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pagination .page-numbers {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                                13. SINGLE POST                             */
/* -------------------------------------------------------------------------- */
.single-post-page {
    padding-bottom: 80px;
}

/* Hero Section */
.post-hero {
    padding: 60px 0 40px 0;
    margin-bottom: 40px;
    background: linear-gradient(to bottom, var(--c-surface-hover) 0%, var(--c-bg) 100%);
    border-bottom: 1px solid var(--c-border);
}

.post-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--c-text-tertiary);
    margin-bottom: 24px;
}

.post-breadcrumb a {
    color: var(--c-text-sec);
    transition: color 0.2s;
}

.post-breadcrumb a:hover {
    color: var(--acc-primary);
}

.post-breadcrumb .sep {
    font-size: 0.7rem;
    opacity: 0.5;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--c-text-primary);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.post-meta-v2 {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--c-text-tertiary);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--c-surface);
    padding: 6px 14px;
    border-radius: var(--rad-pill);
    border: 1px solid var(--c-border);
}

/* Layout */
.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
}

.post-main {
    min-width: 0;
    /* Fix grid overflow */
}

/* Featured Image */
.post-featured-image {
    width: 100%;
    margin-bottom: 32px;
    border-radius: var(--rad-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--c-border);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Area */
.post-content-area {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--rad-lg);
    padding: 40px;
}

.post-lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--c-text-primary);
    font-weight: 600;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--c-border);
}

.post-entry-content {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--c-text-sec);
}

.post-entry-content p {
    margin-bottom: 24px;
}

.post-entry-content h2,
.post-entry-content h3 {
    color: var(--c-text-primary);
    font-weight: 800;
    margin: 40px 0 20px 0;
}

.post-entry-content ul,
.post-entry-content ol {
    margin-bottom: 24px;
    padding-right: 24px;
}

.post-entry-content li {
    margin-bottom: 12px;
}

/* Source Footer */
.post-source-footer {
    margin-top: 60px;
    background: var(--c-surface-hover);
    border-radius: var(--rad-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px dashed var(--c-border);
}

.source-info h5 {
    margin-bottom: 8px;
    color: var(--c-text-primary);
}

.source-info p {
    font-size: 0.9rem;
    color: var(--c-text-tertiary);
    margin: 0;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--rad-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-block;
    padding: 6px 14px;
    background: var(--c-surface-hover);
    color: var(--c-text-sec);
    border-radius: var(--rad-pill);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.tag-link:hover {
    background: var(--acc-primary);
    color: white;
}

.widget-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.widget-item {
    display: block;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-border);
}

.widget-item:last-child {
    border: none;
    padding: 0;
}

.widget-item:hover h6 {
    color: var(--acc-primary);
}

.item-date {
    display: block;
    font-size: 0.75rem;
    color: var(--c-text-tertiary);
    margin-bottom: 6px;
}

.widget-item h6 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    color: var(--c-text-primary);
    transition: color 0.2s;
}

.sidebar-promo {
    padding: 32px;
    text-align: center;
    color: white;
    border-radius: var(--rad-lg);
}

/* Related News */
.related-news-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--c-border);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
}

/* Responsive Single */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        order: 2;
    }
}

@media (max-width: 640px) {
    .post-title {
        font-size: 1.75rem;
    }

    .post-meta-v2 {
        gap: 12px;
    }

    .post-source-footer {
        flex-direction: column;
        text-align: center;
    }

    .post-content-area {
        padding: 24px;
    }
}

/* -------------------------------------------------------------------------- */
/*                                14. INTERACTIVE & PREMIUM STYLE            */
/* -------------------------------------------------------------------------- */

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--acc-primary);
    z-index: 1001;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--acc-primary);
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 110px;
    /* Offset for header */
}

/* Floating Actions */
.post-actions-floating {
    position: absolute;
    top: 40px;
    right: -60px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    color: var(--c-text-sec);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-soft);
}

.action-btn:hover {
    background: var(--acc-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Typography Refinements */
.post-entry-content blockquote {
    background: var(--c-surface-hover);
    border-right: 4px solid var(--acc-primary);
    padding: 24px 32px;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--c-text-primary);
    margin: 40px 0;
    border-radius: 4px 0 0 4px;
    position: relative;
    line-height: 1.8;
}

.post-entry-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 4rem;
    color: var(--c-text-tertiary);
    opacity: 0.2;
    font-family: serif;
}

.post-entry-content img {
    border-radius: var(--rad-md);
    box-shadow: var(--shadow-soft);
    margin: 30px 0;
}

.source-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--acc-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Responsive Actions */
@media (max-width: 1200px) {
    .post-actions-floating {
        position: static;
        flex-direction: row;
        margin-bottom: 30px;
        justify-content: flex-end;
    }
}

/* -------------------------------------------------------------------------- */
/*                                15. MOBILE NAVIGATION                       */
/* -------------------------------------------------------------------------- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    padding: 8px 16px;
    z-index: 1000;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.mb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--c-text-tertiary);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    padding: 8px;
    border-radius: var(--rad-md);
}

.mb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mb-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    transition: all 0.2s;
}

.mb-item.active {
    color: var(--acc-primary);
}

.mb-item.active svg {
    fill: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    .mega-footer {
        padding-bottom: 80px;
        /* Space for mb-nav */
    }
}


/* -------------------------------------------------------------------------- */
/*                                16. ADVANCED SEARCH PAGE                    */
/* -------------------------------------------------------------------------- */
.search-page-header {
    background: linear-gradient(to bottom, var(--c-surface-hover), var(--c-bg));
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 40px;
}

.search-page-input-wrap {
    max-width: 600px;
    margin: 30px auto 0;
    position: relative;
}

.search-filters-wrap {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--rad-lg);
    padding: 24px;
    position: sticky;
    top: 110px;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--c-text-primary);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--c-text-sec);
}

.checkbox-label input {
    accent-color: var(--acc-primary);
}

@media (max-width: 1024px) {
    .search-filters-wrap {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .search-page-header {
        padding: 40px 0 30px;
    }

    .ac-thumb-link {
        height: auto;
    }

    .search-page-input-wrap {
        margin-top: 20px;
    }

    .search-input {
        padding-right: 40px;
        font-size: 0.85rem;
    }

    .search-icon {
        right: 12px;
    }

    /* Mobile Nav Refinements */
    .mobile-bottom-nav {
        display: flex;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        background: rgba(255, 255, 255, 0.9);
        /* Fallback/Light */
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    [data-theme="dark"] .mobile-bottom-nav {
        background: rgba(15, 23, 42, 0.9);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mb-item {
        padding: 6px 12px;
    }

    /* Mobile Typography & Spacing Fixes */
    .post-title {
        font-size: 1.5rem;
        /* Smaller title */
        line-height: 1.3;
    }

    .post-lead {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .post-entry-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .mb-item svg {
        width: 20px;
        /* Smaller icon */
        height: 20px;
    }

    .mb-item span {
        font-size: 0.65rem;
        /* Smaller text */
    }

    .mega-footer {
        padding-bottom: 70px;
        /* Less padding */
    }
}

/* Premium Glass Effect Class */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass-panel {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
}

/* -------------------------------------------------------------------------- */
/*                                17. 404 PAGE STYLE                          */
/* -------------------------------------------------------------------------- */
.error-page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 40px 20px 100px;
    background: radial-gradient(circle at center, var(--c-surface-hover) 0%, var(--c-bg) 70%);
}

.error-card {
    text-align: center;
    padding: 60px 40px;
    border-radius: 30px;
    max-width: 500px;
    width: 100%;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.error-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--grad-primary);
}

.error-icon {
    margin-bottom: 20px;
    color: var(--acc-primary);
    /* Ensure icon color */
    display: inline-flex;
    padding: 20px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    margin: 0 0 10px 0;
    letter-spacing: -4px;
    color: var(--c-text-primary);
    position: relative;
    z-index: 1;
}

.error-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--c-text-primary);
    margin-bottom: 16px;
}

.error-desc {
    color: var(--c-text-sec);
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.error-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-home-404,
.btn-search-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 54px;
    border-radius: 14px;
    font-weight: 700;
    transition: transform 0.2s;
}

.btn-home-404 {
    background: var(--c-text-primary);
    color: white;
}

.btn-home-404:hover {
    background: var(--acc-primary);
    transform: translateY(-2px);
    color: white;
}

.btn-search-404 {
    background: var(--c-surface-hover);
    color: var(--c-text-primary);
    border: 1px solid var(--c-border);
}

.btn-search-404:hover {
    background: var(--c-surface);
    border-color: var(--acc-primary);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .error-card {
        padding: 40px 24px;
    }

    .error-code {
        font-size: 6rem;
    }

    .error-actions {
        grid-template-columns: 1fr;
    }
}