@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    --bg-color: #0b0f19;
    /* Deep dark blue/black */
    --glass-bg: rgba(255, 255, 255, 0.03);
    /* Extremely faint white for glass */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-color: #00d2ff;

    /* Neons */
    --neon-blue: #00f0ff;
    --neon-green: #39ff14;
    --neon-pink: #ff007f;
    --neon-purple: #b026ff;
    --neon-yellow: #f1e05a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    /* Complex radial gradient background simulating abstract lighting */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 210, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(176, 38, 255, 0.08), transparent 25%);
    background-attachment: fixed;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

/* Master Container */
.app-container {
    display: grid;
    /* 3 Columns: Left Sidebar | Main Content | Right Sidebar */
    grid-template-columns: 280px 1fr 240px;
    gap: 30px;
    width: 100%;
    max-width: 1500px;
    height: 100vh;
    padding: 30px;
    overflow: hidden;
    align-items: start;
}


/* ================== GLASSMORPHISM BASE ================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ================== SIDEBAR ================== */
.sidebar {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    position: sticky;
    top: 30px;
    overflow-y: auto;
    scrollbar-width: none;
}

/* Hide scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 0px;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
}

.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    padding: 3px;
    /* Creates the glowing ring effect */
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.profile-inner {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
}

.profile h2 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ================== RIGHT SIDEBAR ================== */
.right-sidebar {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    overflow-y: auto;
    scrollbar-width: none;
    position: sticky;
    top: 30px;
}

.right-sidebar::-webkit-scrollbar {
    width: 0px;
}

.right-sidebar h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 10px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.nav-menu {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.nav-icon {
    margin-right: 15px;
    font-size: 1.2rem;
    opacity: 0.7;
}

.nav-link:hover,
.nav-link.active {
    background: var(--glass-highlight);
    color: var(--text-primary);
    transform: translateX(5px);
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    opacity: 1;
}

/* About & Skills Section */
.about-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.about-section h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 15px;
}

.about-section p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 0 15px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 15px;
}

.skill-tag {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.skill-tag:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

/* History Tree */
.history-section h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-left: 15px;
}

.history-tree {
    list-style: none;
    padding-left: 15px;
}

.history-year {
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.05rem;
    user-select: none;
    display: flex;
    align-items: center;
}

.history-year::before {
    content: '▾';
    display: inline-block;
    transition: transform 0.3s;
    margin-right: 10px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.history-year.collapsed::before {
    transform: rotate(-90deg);
}

.history-months {
    list-style: none;
    padding-left: 18px;
    margin-bottom: 15px;
    border-left: 1px solid var(--glass-border);
    margin-left: 5px;
}

.history-month {
    margin-bottom: 8px;
}

.history-month a {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 15px;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.history-month a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Clock Widget */
.clock-widget {
    margin-top: 24px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

/* Circuit board decorative top border for clock */
.clock-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

/* ================== MAIN CONTENT ================== */
.main-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: calc(100vh - 60px);
    overflow-y: auto;
    scrollbar-width: none;
}

.main-wrapper::-webkit-scrollbar {
    width: 0px;
}

/* Search Bar */
.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
    position: sticky;
    top: 30px;
    z-index: 100;
}

.search-box {
    position: relative;
    width: 350px;
}

.search-input {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 15px 25px 15px 50px;
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-secondary);
    pointer-events: none;
}

/* Post Cards (Index Page) */
.post-grid {
    display: grid;
    /* Two responsive columns */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    /* Reduced to 20px per request */
}

.post-card {
    padding: 30px;
    /* Make card slightly tighter */
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient glow behind the card */
.post-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.post-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
}

.post-card:hover::before {
    opacity: 1;
}

.post-card h2 {
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 2.4rem;
    /* INCREASED */
    font-weight: 800;
    /* BOLDER */
    line-height: 1.2;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.labels-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

/* Neon Pill Labels */
.label {
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

/* Dynamic colors based on categories */
.label.category-Python {
    color: var(--neon-yellow);
    border-color: rgba(241, 224, 90, 0.4);
    box-shadow: 0 0 15px rgba(241, 224, 90, 0.1);
}

.label.category-Tech {
    color: var(--neon-green);
    border-color: rgba(57, 255, 20, 0.4);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
}

.label.category-Projects {
    color: var(--neon-purple);
    border-color: rgba(176, 38, 255, 0.4);
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.1);
}

/* Single Post Page */
.article-container {
    padding: 60px;
}

.article-header {
    margin-bottom: 50px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 40px;
}

.article-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.article-content {
    line-height: 1.8;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.article-content h2,
.article-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    margin-top: 50px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.article-content h2 {
    font-size: 2.2rem;
}

.article-content h3 {
    font-size: 1.6rem;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content ol,
.article-content ul {
    margin: 0 0 25px 0;
    padding-left: 28px;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content ul {
    list-style-type: disc;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content li>ol,
.article-content li>ul {
    margin-top: 8px;
    margin-bottom: 0;
}

.article-content a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-color);
    transition: all 0.2s;
}

.article-content a:hover {
    color: var(--neon-blue);
    border-bottom-style: solid;
}

.article-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    display: block;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.article-content pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 12px;
    overflow-x: auto;
    /* scroll wide code blocks instead of pushing layout */
    max-width: 100%;
    /* prevent blowout of grid column */
    margin: 35px 0;
    border: 1px solid var(--glass-border);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Tables in article content */
.article-content table {
    width: 100%;
    max-width: 100%;
    /* prevent table from blowing out column */
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    /* enables overflow-x to work on table */
    overflow-x: auto;
    /* scroll wide tables instead of pushing layout */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content table thead {
    background: rgba(176, 38, 255, 0.2);
}

.article-content table thead th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.article-content table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s;
}

.article-content table tbody tr:last-child {
    border-bottom: none;
}

.article-content table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.article-content table tbody td {
    padding: 12px 18px;
    color: var(--text-secondary);
    vertical-align: middle;
}

.article-content table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}


/* Pages without left sidebar (e.g. Calculators) */
.app-container.no-sidebar {
    grid-template-columns: 1fr 240px;
    display: grid;
}

.app-container.no-sidebar .main-wrapper {
    width: 100%;
    max-width: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .app-container {
        grid-template-columns: 240px 1fr;
    }

    .right-sidebar {
        display: none;
        /* Hide right sidebar on medium screens */
    }
}

@media (max-width: 850px) {
    /* Restore normal page scroll on mobile */
    body {
        height: auto;
        overflow: auto;
        overflow-x: hidden;
    }

    /* Adjust breakpoint for portrait tablets/phones */
    .app-container,
    .app-container.no-sidebar {
        display: flex !important;
        /* Override grid with flex column stacking */
        flex-direction: column !important;
        height: auto !important;
        overflow: visible !important;
        padding: 15px;
        gap: 20px;
    }

    .app-container.no-sidebar .main-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .sidebar,
    .right-sidebar {
        height: auto;
        position: relative;
        top: 0;
        margin-bottom: 0;
        padding: 20px;
        display: flex;
        flex-direction: column;
    }

    .profile {
        flex-direction: row;
        text-align: left;
        align-items: center;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .profile-img {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
        margin-right: 15px;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
    }

    .nav-link {
        margin-bottom: 0;
        padding: 8px 12px;
        font-size: 0.95rem;
    }

    .history-section {
        display: none;
        /* Hide complex history on mobile to save space */
    }

    .clock-widget {
        display: none;
        /* Hide clock on mobile to save space */
    }

    .main-wrapper {
        height: auto;
        overflow-y: visible;
        padding: 0;
    }

    .top-bar {
        position: relative;
        top: 0;
        justify-content: center;
        margin-bottom: 20px;
    }

    .search-box {
        width: 100%;
    }

    .post-card {
        padding: 25px;
    }

    .article-container {
        padding: 30px 20px;
    }

    .article-header h1 {
        font-size: 2.5rem;
    }

    /* Calculator Specific Mobile Fixes */
    .calc-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 10px 5px !important;
        margin-bottom: 15px !important;
    }

    .calc-tab {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .calc-panel {
        padding: 20px !important;
    }

    .calc-body {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .calc-panel-header {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .calc-icon {
        font-size: 2rem;
    }

    .calc-title {
        font-size: 1.5rem;
    }

    .calc-inputs {
        width: 100% !important;
    }

    .calc-output {
        width: 100% !important;
    }
}

/* ================== READING PROGRESS BAR ================== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
}

/* ================== BACK TO TOP BUTTON ================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ================== THEME TOGGLE ================== */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    transition: background 0.3s, transform 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--glass-highlight);
}

/* ================== LIGHT MODE ================== */
body.light-mode {
    --bg-color: #f0f4f8;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-highlight: rgba(0, 0, 0, 0.07);
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --accent-color: #0284c7;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 210, 255, 0.06), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(176, 38, 255, 0.06), transparent 25%);
}

body.light-mode .clock-widget {
    color: var(--accent-color);
    text-shadow: none;
}

body.light-mode .search-input {
    color: var(--text-primary);
}

body.light-mode .article-content pre {
    background: rgba(0, 0, 0, 0.06);
    color: #1e293b;
}

body.light-mode .article-content table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .article-header h1,
body.light-mode .article-content h2,
body.light-mode .article-content h3 {
    color: var(--text-primary);
}

body.light-mode .article-content table thead th {
    color: #1e293b;
}

body.light-mode .profile h2 {
    color: var(--text-primary);
}

body.light-mode .label {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .stat-value {
    color: var(--text-primary);
}

/* ================== TABLE OF CONTENTS ================== */
.toc-nav {
    margin-top: 4px;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-item {
    margin-bottom: 4px;
}

.toc-level-2 {
    padding-left: 0;
}

.toc-level-3 {
    padding-left: 14px;
}

.toc-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 5px 10px;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    line-height: 1.4;
}

.toc-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.toc-link.active {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    background: rgba(0, 210, 255, 0.07);
}

/* ================== DRAFT BANNER ================== */
.draft-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(241, 196, 15, 0.9), rgba(230, 126, 34, 0.9));
    color: #000;
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10000;
}

/* ================== PROJECTS PAGE ================== */
.projects-header {
    margin-bottom: 32px;
}

.projects-title-row {
    padding: 4px 0;
}

.projects-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.projects-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.project-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
}

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-icon {
    font-size: 2.2rem;
}

.project-category-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--neon-blue);
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--glass-border);
}

.project-btn {
    padding: 9px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
}

.project-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.project-btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: #fff;
}

.project-btn-ghost {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.project-btn-ghost:hover {
    color: var(--text-primary);
}

/* ================== ADMIN LOCK SCREEN ================== */
.admin-lock-screen {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lock-card {
    width: 100%;
    max-width: 440px;
    padding: 50px 40px;
    text-align: center;
    animation: fadeInUp 0.5s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lock-card.shake {
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-10px);
    }

    40% {
        transform: translateX(10px);
    }

    60% {
        transform: translateX(-8px);
    }

    80% {
        transform: translateX(6px);
    }
}

.lock-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.5));
}

.lock-card h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.lock-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.lock-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.lock-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 14px 18px;
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Outfit', sans-serif;
}

.lock-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.lock-btn {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
}

.lock-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

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

.lock-btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
}

.lock-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
}

.lock-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    opacity: 1;
}

.lock-error {
    color: var(--neon-pink);
    font-size: 0.9rem;
    min-height: 22px;
    margin-top: 4px;
}

.lock-spinner {
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.spinner-ring {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0, 210, 255, 0.2);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================== ADMIN DASHBOARD LAYOUT ================== */
.admin-dashboard {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeInUp 0.4s ease both;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--neon-blue);
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 8px;
}

.admin-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.admin-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-build-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

/* Stat Cards */
.admin-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

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

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
}

.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Main Grid */
.admin-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.admin-col-left,
.admin-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-section {
    padding: 28px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.admin-section>h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.section-link {
    color: var(--accent-color);
    font-size: 0.85rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.section-link:hover {
    opacity: 1;
}

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

/* GA Widget */
.ga-widget {
    width: 100%;
}

.looker-iframe {
    width: 100%;
    height: 420px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.ga-placeholder {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed var(--glass-border);
    border-radius: 16px;
    padding: 36px;
    text-align: center;
}

.ga-placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.ga-placeholder p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 18px;
    line-height: 1.7;
}

.ga-steps {
    text-align: left;
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 18px;
}

.ga-steps a {
    color: var(--accent-color);
}

.ga-steps code {
    background: rgba(0, 0, 0, 0.4);
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.ga-direct-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.ga-direct-btn:hover {
    opacity: 0.85;
}

/* Post Freq Chart */
.post-freq-canvas {
    width: 100%;
    height: 200px;
    display: block;
}

/* Category Bars */
.cat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cat-row {
    display: grid;
    grid-template-columns: 90px 1fr 30px;
    align-items: center;
    gap: 10px;
}

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

.cat-bar-wrap {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
}

.cat-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 6px;
    min-width: 4px;
    transition: width 0.8s ease;
}

.cat-count {
    font-size: 0.85rem;
    font-weight: 700;
    text-align: right;
    color: var(--text-primary);
}

/* Recent Posts */
.recent-posts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-posts li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.recent-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-posts a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
}

.recent-posts a:hover {
    color: var(--accent-color);
}

.recent-post-date {
    color: var(--text-secondary);
    font-size: 0.78rem;
    white-space: nowrap;
    margin-top: 2px;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text-primary);
    transform: translateX(4px);
    border-color: rgba(0, 210, 255, 0.3);
}

/* File Stats */
.file-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

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

.file-stat-row span {
    color: var(--text-secondary);
}

.file-stat-row strong {
    color: var(--text-primary);
}

/* Admin Responsive */
@media (max-width: 1100px) {
    .admin-main-grid {
        grid-template-columns: 1fr;
    }

    .admin-stat-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .admin-dashboard {
        padding: 15px;
        gap: 15px;
    }

    .admin-stat-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .lock-card {
        padding: 36px 24px;
    }

    .lock-input-group {
        flex-direction: column;
    }
}

/* ================== CALCULATORS PAGE ================== */

.calc-page-header {
    text-align: center;
    padding: 40px 20px 30px;
}

.calc-page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.calc-page-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Tab strip */
.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.calc-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 9px 16px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
}

.calc-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
}

.calc-tab.active {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(176, 38, 255, 0.15));
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 16px rgba(0, 210, 255, 0.15);
}

/* Calculator panels */
.calc-panel {
    display: none;
    padding: 40px;
    margin-bottom: 20px;
    animation: calcFadeIn 0.3s ease;
}

.calc-panel.active {
    display: block;
}

@keyframes calcFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--glass-border);
}

.calc-icon {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.calc-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.calc-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.calc-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Inputs column */
.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calc-section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--neon-blue);
    font-weight: 600;
    margin-top: 4px;
}

.calc-input-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-input-row label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.calc-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
    background: rgba(0, 0, 0, 0.2);
}

.calc-input-group:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.15);
}

.calc-slider-row {
    margin: 10px 0;
}

.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    margin: 15px 0;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--neon-blue);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.calc-unit-toggles {
    display: flex;
    gap: 15px;
    margin-top: 4px;
}

.calc-unit-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.calc-unit-toggle input {
    cursor: pointer;
}

.calc-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    min-width: 0;
}

.calc-input::placeholder {
    color: rgba(156, 163, 175, 0.4);
    font-size: 0.88rem;
}

.calc-unit {
    background: rgba(255, 255, 255, 0.05);
    border-left: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 12px 14px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
}

.calc-unit-select {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-left: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 10px 10px;
    font-size: 0.88rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    cursor: pointer;
    min-width: 56px;
}

.calc-btn {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.2);
    letter-spacing: 0.5px;
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 210, 255, 0.35);
    filter: brightness(1.1);
}

.calc-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.2s;
}

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

/* Output column */
.calc-output {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calc-result {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.calc-result-placeholder {
    color: rgba(156, 163, 175, 0.4);
    font-size: 0.9rem;
    text-align: center;
}

.calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.calc-result-row:last-child {
    border-bottom: none;
}

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

.calc-result-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
    font-family: 'Courier New', monospace;
}

.calc-result-unit {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    font-family: 'Outfit', sans-serif;
}

.calc-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(255, 100, 100, 0.3);
}

.calc-formula {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: rgba(156, 163, 175, 0.6);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    border-radius: 10px;
    line-height: 1.6;
}

.calc-ascii {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: rgba(156, 163, 175, 0.5);
    background: none;
    border: none;
    padding: 0;
    line-height: 1.5;
}

.calc-diagram {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 14px 18px;
}

/* Resistor color code */
.resistor-band-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.color-band-select option {
    font-weight: 600;
}

.resistor-preview {
    display: flex;
    justify-content: center;
    padding: 16px 0 4px;
}

.resistor-body {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #8B7355, #c8a96a, #8B7355);
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.1);
    min-width: 160px;
    justify-content: center;
}

.resistor-band {
    width: 14px;
    height: 34px;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive calculators */
@media (max-width: 900px) {
    .calc-body {
        grid-template-columns: 1fr;
    }

    .calc-panel {
        padding: 24px 20px;
    }

    .calc-tabs {
        gap: 4px;
        padding: 12px;
    }

    .calc-tab {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .calc-page-title {
        font-size: 2.2rem;
    }
}

/* ─── Voltage Divider mode strip ─────────────────────────────────────────── */
.vdiv-mode-strip {
    display: flex;
    gap: 8px;
    margin: 0 0 28px 0;
    flex-wrap: wrap;
}

.vdiv-mode-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
}

.vdiv-mode-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
}

.vdiv-mode-btn.active {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.18), rgba(176, 38, 255, 0.18));
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.18);
}

/* ─── Navigation Groups ─────────────────────────────────────────────────── */
.nav-group-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    opacity: 0.7;
    margin: 16px 0 8px 12px;
    font-weight: 700;
}

/* ─── Filter sub-tabs ────────────────────────────────────────────────────── */
.filter-sub-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 24px 0;
    flex-wrap: wrap;
}

.filter-sub-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}

.filter-sub-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.filter-sub-tab.active {
    background: linear-gradient(135deg, rgba(0, 255, 180, 0.15), rgba(0, 180, 255, 0.15));
    border-color: #00ffb4;
    color: #00ffb4;
    box-shadow: 0 0 12px rgba(0, 255, 180, 0.15);
}

.filter-sub-panel {
    display: none;
}

.filter-sub-panel.active {
    display: block;
}