    /* --- 1. Variables & Clean Theme --- */
    :root {
        --sidebar-w: 280px;
        --header-h: 70px;
        --primary: #2563eb;
        --primary-soft: rgba(37, 99, 235, 0.08);
        --text-main: #1f2937;
        --text-muted: #6b7280;
        --bg-body: #ffffff;
        --bg-sidebar: #ffffff;
        --border-color: #f3f4f6;
        --radius: 8px;
    }

    body.dark-mode {
        --bg-body: #0f111a;
        --bg-sidebar: #111827;
        --text-main: #f9fafb;
        --text-muted: #9ca3af;
        --border-color: #374151;
        --primary-soft: rgba(37, 99, 235, 0.2);
    }

    /* --- 2. Layout & Reset --- */
    body {
        margin: 0;
        background-color: var(--bg-body);
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        color: var(--text-main);
        overflow-x: hidden;
    }

    /* Reading Progress Bar */
    .reading-progress-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: transparent;
        z-index: 9999;
        pointer-events: none;
    }

    .reading-progress-bar {
        height: 100%;
        background: var(--primary);
        width: 0%;
        transition: width 0.1s ease-out;
    }


    @media (max-width: 320px) {
        .content-wrapper {
            padding: 15px 10px;
            max-width: 100%;
        }
    }

    /* Skeleton Animation for TL;DR */
    @keyframes shimmer {
        0% {
            background-position: -1000px 0;
        }

        100% {
            background-position: 1000px 0;
        }
    }

    .skeleton-text {
        animation-duration: 2.2s;
        animation-fill-mode: forwards;
        animation-iteration-count: infinite;
        animation-name: shimmer;
        animation-timing-function: linear;
        background: #f6f7f8;
        background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
        background-size: 1200px 100%;
        height: 10px;
        /* Thinner lines for attractiveness */
        margin-bottom: 10px;
        border-radius: 4px;
        opacity: 0.7;
    }

    /* Typewriter Cursor Effect */
    .typing-cursor::after {
        content: '|';
        display: inline-block;
        animation: blink-cursor 0.7s infinite;
        color: var(--primary);
        margin-left: 2px;
    }

    @keyframes blink-cursor {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0;
        }
    }

    .skeleton-header {
        height: 20px;
        width: 40%;
        margin-bottom: 12px;
    }

    .dashboard-layout {
        display: flex;
        width: 100%;
        min-height: 100vh;
        transition: all 0.3s ease;
    }

    /* Global Container */
    .container {
        max-width: 1200px;
        /* Standard width */
        margin: 0 auto;
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
    }

    /* Full Width Container Override */
    .container-full {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    /* --- 2b. Global Header & Navbar --- */
    .site-header {
        height: var(--header-h);
        background: var(--bg-body);
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 100;
        width: 100%;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    }

    .container.navbar {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 24px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        /* Ensure padding doesn't affect width calculation if set */
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: var(--text-main);
        font-size: 18px;
        font-weight: 500;
        letter-spacing: -0.02em;
    }

    .brand svg {
        width: 32px;
        /* Fix for giant logo */
        height: 32px;
        color: var(--primary);
    }

    .brand strong {
        font-weight: 700;
        color: var(--primary);
    }

    /* Desktop Menu */
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 32px;
    }

    /* Re-using nav-link styles but adding specific header context if needed */
    .site-header .nav-link {
        padding: 0;
        /* Removing padding from sidebar style */
        border: none;
        font-size: 14px;
        color: var(--text-muted);
        background: transparent;
    }

    .site-header .nav-link:hover,
    .site-header .nav-link.active {
        color: var(--primary);
        background: transparent;
    }

    .theme-toggle {
        background: transparent;
        border: 1px solid var(--border-color);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        /* Circle */
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text-muted);
        transition: all 0.2s;
    }

    .theme-toggle:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    /* Mobile Menu Toggle */
    .menu-toggle {
        display: none;
        background: transparent;
        border: none;
        color: var(--text-main);
        cursor: pointer;
        padding: 8px;
    }

    @media (max-width: 768px) {
        .nav-menu {
            display: none;
            /* Hide desktop menu on mobile */
        }

        .menu-toggle {
            display: flex;
        }

        /* Mobile Header Fixed */
        .site-header {
            position: fixed !important;
            top: 0;
            left: 0;
            width: 100%;
        }

        /* Push body content down on mobile since header is fixed */
        body {
            padding-top: var(--header-h);
        }

        /* Fix Mobile Header Sizing */
        .brand {
            font-size: 15px;
            /* Smaller font for mobile */
            gap: 8px;
            /* Tighter spacing */
            max-width: 75%;
            /* Prevent overlapping with menu toggle */
        }

        .brand span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .brand svg {
            width: 24px;
            /* Smaller icon */
            height: 24px;
            flex-shrink: 0;
        }

        /* Adjust navbar padding if needed */
        .navbar {
            padding-left: 12px;
            padding-right: 12px;
        }
    }

    /* --- 2d. Site Footer --- */
    .site-footer {
        background: #f8fafc;
        border-top: 1px solid var(--border-color);
        padding: 60px 0 30px;
        margin-top: auto;
        /* Push to bottom if flex container */
    }

    .footer-top {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-brand h4 {
        margin: 0 0 12px;
        font-size: 16px;
        font-weight: 700;
        color: var(--text-main);
    }

    .footer-brand p {
        margin: 0;
        font-size: 14px;
        color: var(--text-muted);
        max-width: 300px;
        line-height: 1.6;
    }

    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
    }

    .footer-link {
        font-size: 14px;
        color: var(--text-muted);
        text-decoration: none;
        transition: color 0.2s;
    }

    .footer-link:hover {
        color: var(--primary);
    }

    .footer-bottom {
        padding-top: 24px;
        border-top: 1px solid var(--border-color);
        font-size: 13px;
        color: #9ca3af;
        text-align: center;
    }

    @media (max-width: 768px) {
        .footer-top {
            flex-direction: column;
            gap: 30px;
        }

        .footer-nav {
            flex-direction: column;
            gap: 12px;
        }

        .footer-bottom {
            text-align: left;
        }
    }

    /* --- 2e. Mobile Sidebar & Overlay --- */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        z-index: 200;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        /* Slide in from right */
        width: 280px;
        height: 100%;
        background: var(--bg-sidebar);
        z-index: 201;
        /* Above overlay */
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    }

    .mobile-sidebar.open {
        transform: translateX(0);
    }

    .mobile-sidebar .sidebar-header {
        padding: 2px 0;
        /* Adjust padding to align with close button */
        border-bottom: 1px solid var(--border-color);
        min-height: var(--header-h);
        /* Match header height */
    }

    .close-menu {
        background: transparent;
        border: none;
        color: var(--text-muted);
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-menu:hover {
        background: var(--primary-soft);
        color: var(--primary);
    }

    .mobile-nav {
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        color: var(--text-main);
        text-decoration: none;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.2s;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: var(--primary-soft);
        color: var(--primary);
    }

    .mobile-nav-link .nav-icon {
        width: 20px;
        height: 20px;
        opacity: 0.7;
    }

    .mobile-nav-link:hover .nav-icon,
    .mobile-nav-link.active .nav-icon {
        opacity: 1;
    }

    /* --- 3. Collapsible Sidebar --- */
    .dash-sidebar {
        width: var(--sidebar-w);
        flex-shrink: 0;
        height: calc(100vh - var(--header-h));
        position: sticky;
        top: var(--header-h);
        background: var(--bg-sidebar);
        border-right: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        padding: 24px 16px;
        transition: none;
        /* Removed complex animation */
        overflow: hidden;
        z-index: 20;
    }

    .dash-sidebar.collapsed {
        width: 0;
        padding: 0;
        border-right: none;
    }

    /* Header with Toggle */
    .sidebar-header {
        margin-bottom: 20px;
        padding-right: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
    }

    .sidebar-title {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
    }

    .toggle-btn {
        background: transparent;
        border: none;
        color: var(--text-muted);
        cursor: pointer;
        padding: 4px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s, color 0.2s;
    }

    .toggle-btn:hover {
        background: var(--primary-soft);
        color: var(--primary);
    }

    .toggle-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Enhanced Search Area */
    .search-wrapper {
        position: relative;
        margin-bottom: 20px;
        margin-right: 4px;
        /* Slight adjust for scrollbar */
    }

    .search-wrapper input {
        width: 100%;
        padding: 12px 16px 12px 40px;
        /* More padding for modern feel */
        font-size: 14px;
        border: 1px solid var(--border-color);
        background: #f1f5f9;
        /* Light gray background like Google settings */
        border-radius: 100px;
        /* Pill shape */
        color: var(--text-main);
        transition: all 0.2s ease;
        box-sizing: border-box;
    }

    body.dark-mode .search-wrapper input {
        background: #1f2937;
        border-color: #374151;
    }

    .search-wrapper input:focus {
        background: var(--bg-body);
        border-color: var(--primary);
        box-shadow: 0 0 0 4px var(--primary-soft);
        /* Nice focus ring */
        outline: none;
    }

    .search-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        color: var(--text-muted);
        pointer-events: none;
        transition: color 0.2s;
    }

    .search-wrapper input:focus+.search-icon {
        color: var(--primary);
    }

    /* Nav List - Minimalist Left Border Style */
    .nav-container {
        flex: 1;
        overflow-y: auto;
        padding-right: 4px;
    }

    .nav-container::-webkit-scrollbar {
        width: 4px;
    }

    .nav-container::-webkit-scrollbar-thumb {
        background: #e2e8f0;
        border-radius: 4px;
    }

    .nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-item {
        margin-bottom: 2px;
    }

    .nav-link {
        display: block;
        padding: 10px 16px;
        font-size: 14px;
        color: var(--text-muted);
        text-decoration: none;
        transition: all 0.15s ease;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border-radius: 8px;
        /* Rounded items */
    }

    .nav-link:hover {
        background-color: #f8fafc;
        color: var(--text-main);
    }

    body.dark-mode .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--text-main);
    }

    /* Active State - Soft Blue Pill */
    .nav-link.active {
        background-color: #eff6ff;
        color: #2563eb;
        font-weight: 600;
    }

    body.dark-mode .nav-link.active {
        background-color: rgba(37, 99, 235, 0.2);
        color: #60a5fa;
    }

    /* Enhanced Sidebar Footer */
    .sidebar-footer {
        margin-top: auto;
        /* Push to bottom */
        padding-top: 10px;
        padding-bottom: 40px;
        /* More breathing room at bottom */
        border-top: 1px solid var(--border-color);
        display: flex;
        gap: 12px;
        flex-shrink: 0;
        /* Don't shrink */
        background: var(--bg-sidebar);
        /* Ensure solid background */
        position: sticky;
        bottom: 0;
        z-index: 10;
        width: 100%;
        box-sizing: border-box;
    }

    .action-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-muted);
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        /* In case anchor */
    }

    body.dark-mode .action-btn {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--border-color);
    }

    .action-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: #f8fafc;
        transform: translateY(-2px);
        box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }

    body.dark-mode .action-btn:hover {
        background: rgba(37, 99, 235, 0.1);
    }

    .action-btn svg {
        width: 16px;
        height: 16px;
    }

    .sidebar-title {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
    }

    .toggle-btn {
        background: transparent;
        border: none;
        color: var(--text-muted);
        cursor: pointer;
        padding: 4px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s, color 0.2s;
    }

    .toggle-btn:hover {
        background: var(--primary-soft);
        color: var(--primary);
    }

    .toggle-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Search Area */
    .search-wrapper {
        position: relative;
        margin-bottom: 16px;
        margin-right: 12px;
    }

    .search-wrapper input {
        width: 100%;
        padding: 10px 12px 10px 36px;
        font-size: 14px;
        border: 1px solid var(--border-color);
        background: #f9fafb;
        border-radius: 8px;
        color: var(--text-main);
        transition: all 0.2s;
    }

    body.dark-mode .search-wrapper input {
        background: #1f2937;
        border-color: #374151;
    }

    .search-wrapper input:focus {
        background: var(--bg-body);
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-soft);
        outline: none;
    }

    .search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        color: var(--text-muted);
        pointer-events: none;
    }

    /* Nav List - Minimalist Left Border Style */
    .nav-container {
        flex: 1;
        overflow-y: auto;
        padding-right: 4px;
    }

    .nav-container::-webkit-scrollbar {
        width: 3px;
    }

    .nav-container::-webkit-scrollbar-thumb {
        background: #e5e7eb;
        border-radius: 4px;
    }

    .nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-item {
        margin-bottom: 0;
        /* Continuous list */
    }

    .nav-link {
        display: block;
        padding: 10px 16px 10px 12px;
        font-size: 14px;
        color: var(--text-muted);
        text-decoration: none;
        transition: all 0.15s ease;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border-left: 2px solid transparent;
        border-radius: 6px;
    }

    .nav-link:hover {
        color: var(--text-main);
    }

    body.dark-mode .nav-link:hover {
        color: var(--text-main);
    }

    /* Clean Active State - Light & Simple */
    .nav-link.active {
        background-color: #f3f4f6;
        color: #2563eb;
        font-weight: 600;
        border-left: none;
        padding-left: 12px;
    }

    body.dark-mode .nav-link.active {
        background-color: #1f2937;
        color: #f9fafb;
    }

    /* Footer Actions */
    .sidebar-footer {
        margin-top: 16px;
        padding-top: 16px;
        margin-right: 12px;
        border-top: 1px solid var(--border-color);
        display: flex;
        gap: 8px;
    }

    .action-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px;
        font-size: 12px;
        font-weight: 500;
        color: var(--text-muted);
        background: transparent;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .action-btn:hover {
        border-color: var(--text-muted);
        color: var(--text-main);
    }

    .reader-tools {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
        /* Prevent wrapping */
        margin-bottom: 24px;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
        overflow-x: auto;
        /* Handle small mobile screens gracefully */
    }

    .tools-group-right {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: auto;
        /* Push to the right */
    }

    .text-resizer {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .tool-divider {
        width: 1px;
        height: 18px;
        background-color: var(--border-color);
    }

    .reading-time {
        color: var(--text-muted);
        font-size: 13px;
        font-weight: 500;
        padding-right: 16px;
        border-right: 1px solid var(--border-color);
    }

    .resize-btn {
        background: transparent;
        border: 1px solid var(--border-color);
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s;
        min-width: 36px;
        text-align: center;
    }

    .resize-btn:hover {
        background: var(--primary-soft);
        color: var(--primary);
        border-color: var(--primary);
        transform: translateY(-1px);
    }

    .resize-group {
        padding-right: 16px;
        border-right: 1px solid var(--border-color);
    }

    .tldr-btn {
        background: #dcfce7;
        color: #166534;
        border: 1px solid #bbf7d0;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s;
    }

    .tldr-btn:hover {
        background: #bbf7d0;
        transform: translateY(-1px);
    }

    .lang-toggle {
        background: var(--bg-sidebar);
        border: 1px solid var(--border-color);
        color: var(--text-muted);
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .lang-toggle.active {
        background: var(--text-main);
        color: white;
        border-color: var(--text-main);
    }

    .lang-toggle:hover:not(.active) {
        background: var(--primary-soft);
        border-color: var(--primary);
        color: var(--primary);
    }

    /* --- New Power Tools CSS --- */

    /* 1. Tooltips */
    .explain-term {
        border-bottom: 1px dotted var(--primary);
        color: var(--primary);
        cursor: help;
        position: relative;
    }

    .explain-term:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 120%;
        left: 50%;
        transform: translateX(-50%);
        background: #333;
        color: #fff;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* 2. TL;DR Toggle */
    .tldr-container {
        display: none;
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 24px;
        color: #15803d;
        font-size: 14px;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .tldr-btn {
        background: #dcfce7;
        color: #166534;
        border: none;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    /* 3. Smart Search Highlighting */
    .search-match.current {
        background: #fcd34d;
        outline: 2px solid #f59e0b;
    }

    .search-nav-controls {
        display: none;
        /* Hidden by default */
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        align-items: center;
        gap: 6px;
        font-size: 11px;
        background: rgba(255, 255, 255, 0.9);
        padding: 4px 6px;
        border-radius: 6px;
    }

    .search-nav-controls button {
        background: transparent;
        border: 1px solid var(--border-color);
        color: var(--text-muted);
        width: 22px;
        height: 22px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 12px;
        padding: 0;
    }

    .search-nav-controls button:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: white;
        transform: scale(1.1);
    }

    .search-nav-controls span {
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 600;
        min-width: 35px;
        text-align: center;
    }

    /* Search Results Dropdown */
    .search-results-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        max-height: 300px;
        overflow-y: auto;
        background: var(--bg-sidebar);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .search-result-item {
        padding: 8px 12px;
        cursor: pointer;
        border-bottom: 1px solid var(--border-color);
        font-size: 13px;
        transition: background 0.2s;
    }

    .search-result-item:hover {
        background: var(--primary-soft);
    }

    .search-result-item:last-child {
        border-bottom: none;
    }

    .search-result-section {
        font-weight: 600;
        color: var(--primary);
        font-size: 11px;
        margin-bottom: 2px;
    }

    .search-result-context {
        color: var(--text-muted);
        line-height: 1.4;
    }

    .search-result-context mark {
        background: #fef08a;
        color: #854d0e;
        font-weight: 600;
        padding: 0 2px;
    }

    /* 4. Copy Clause Button */
    .copy-link-btn {
        opacity: 0;
        margin-left: 8px;
        color: var(--text-muted);
        cursor: pointer;
        transition: opacity 0.2s;
        background: none;
        border: none;
        padding: 4px;
    }

    h2:hover .copy-link-btn {
        opacity: 1;
    }

    /* 5. Sticky Contact FAB */
    .contact-fab {
        position: fixed;
        bottom: 24px;
        right: 24px;
        background: var(--primary);
        color: white;
        width: 48px;
        height: 48px;
        border-radius: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 100;
        text-decoration: none;
    }

    .contact-fab:hover {
        width: auto;
        padding: 0 20px;
        border-radius: 24px;
    }

    .contact-fab span {
        display: none;
        margin-left: 8px;
        font-weight: 600;
        white-space: nowrap;
    }

    .contact-fab:hover span {
        display: inline-block;
    }

    /* 6. Language Toggle */
    .lang-toggle.active {
        background: var(--text-main);
        color: var(--bg-body);
        border-color: var(--text-main);
    }

    .action-btn svg {
        width: 14px;
        height: 14px;
    }

    /* --- 4. Main Content Area --- */
    .main-content {
        flex: 1;
        min-width: 0;
        background: var(--bg-body);
        position: relative;
    }

    /* Floating Expand Button */


    .expand-btn {
        position: fixed;
        left: 20px;
        bottom: 30px;
        z-index: 50;
        width: 40px;
        height: 40px;
        background: var(--bg-sidebar);
        border: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(-20px);
    }

    .dashboard-layout.sidebar-closed .expand-btn {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    .expand-btn:hover {
        transform: scale(1.1);
        color: var(--primary);
    }

    .expand-btn svg {
        width: 20px;
        height: 20px;
        color: var(--text-muted);
    }

    /* Content Wrapper */
    .content-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 30px;
        /* Balanced clean padding */
        transition: max-width 0.3s;
    }

    .dashboard-layout.sidebar-closed .content-wrapper {
        max-width: 1400px;
        padding: 30px 20px;
    }

    .page-title {
        font-size: 2.25em;
        /* was 36px */
        font-weight: 500;
        letter-spacing: -0.03em;
        margin-bottom: 12px;
        color: var(--text-main);
        line-height: 1.1;
    }

    .intro-card {
        background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
        border: 1px solid var(--border-color);
        padding: 24px;
        border-radius: 12px;
        margin-bottom: 50px;
    }

    /* Typography */
    .terms-section {
        margin-bottom: 50px;
        scroll-margin-top: 100px;
    }

    .terms-section h2 {
        font-size: 1.4em;
        /* was 22px */
        font-weight: 700;
        color: var(--text-main);
        margin-bottom: 16px;
    }

    .terms-section p {
        font-size: 1em;
        /* was 16px */
        line-height: 1.7;
        color: var(--text-muted);
        margin-bottom: 16px;
    }

    .terms-section li {
        font-size: 1em;
        /* was 16px */
        line-height: 1.7;
        color: var(--text-muted);
        margin-bottom: 10px;
    }

    mark.search-match {
        background: #fef08a;
        color: #854d0e;
        padding: 2px 4px;
        border-radius: 4px;
        border-bottom: 2px solid #eab308;
    }

    /* Hide Mobile TOC Toggle by default */
    .mobile-toc-toggle {
        display: none;
    }

    @media (max-width: 768px) {
        .dash-sidebar {
            /* display: none; */
            /* Don't hide, but move off-screen */
            position: fixed;
            top: 0;
            left: 0;
            width: 85%;
            /* Mobile drawer width */
            max-width: 300px;
            height: 100vh;
            z-index: 1100;
            /* Higher than header */
            transform: translateX(-100%);
            /* Hidden by default */
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: white;
            box-shadow: 10px 0 25px rgba(0, 0, 0, 0.15);
            border-right: none;
            padding-bottom: 20px;
        }

        .dash-sidebar.mobile-open {
            transform: translateX(0);
        }

        /* Overlay for mobile sidebar */
        .sidebar-overlay-toc {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            z-index: 1090;
            opacity: 0;
            transition: opacity 0.3s;
            backdrop-filter: blur(2px);
        }

        .sidebar-overlay-toc.active {
            display: block;
            opacity: 1;
        }

        .expand-btn {
            display: none;
        }

        /* Mobile TOC Toggle Button - Floating Hamburger Style */
        .mobile-toc-toggle {
            display: flex;
            position: fixed;
            bottom: 24px;
            left: 24px;
            /* Moved to Left */
            right: auto;
            /* clear right */
            width: 48px;
            height: 48px;
            background: white;
            border-radius: 50%;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            align-items: center;
            justify-content: center;
            z-index: 1000;
            border: 1px solid var(--border-color);
            transition: transform 0.2s, box-shadow 0.2s;
            cursor: move;
            /* Indicate draggable */
            touch-action: none;
            /* Prevent scroll on drag */
            padding: 0;
        }

        .mobile-toc-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
            color: var(--primary);
        }

        /* Hide text label for pure icon style */
        .mobile-toc-toggle span {
            display: none;
        }

        .mobile-toc-toggle svg {
            width: 24px;
            height: 24px;
        }


        .content-wrapper {
            padding: 20px 16px;
            /* Adjusted padding */
            max-width: 100%;
        }

        .page-title {
            font-size: 1.75em;
        }

        /* Hide sidebar title on mobile perhaps? No, keep it. */
    }

    /* --- 5. Home Page Styles (Restored) --- */
    .hero-section {
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        padding: 80px 20px 60px;
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 2.5em;
        font-weight: 800;
        color: var(--text-main);
        margin-bottom: 30px;
        letter-spacing: -0.03em;
    }

    .hero-section .search-wrapper {
        max-width: 600px;
        margin: 0 auto 30px;
        position: relative;
    }

    .hero-section .search-input {
        width: 100%;
        padding: 16px 20px 16px 50px;
        font-size: 16px;
        border: 2px solid transparent;
        border-radius: 12px;
        background: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

    .hero-section .search-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px var(--primary-soft);
        outline: none;
    }

    .hero-section .search-icon-img {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        fill: var(--text-muted);
    }

    .trust-badges {
        display: flex;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .badge-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(4px);
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 100px;
        font-size: 13px;
        font-weight: 600;
        color: #0f172a;
    }

    .badge-pill svg {
        width: 16px;
        height: 16px;
        color: #16a34a;
    }

    .cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
        max-width: 1200px;
        margin: 0 auto 80px;
        padding: 0 20px;
    }

    .policy-card {
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 24px;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .policy-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-soft);
    }

    .card-icon-box {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: #eff6ff;
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
    }

    .card-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-main);
        margin: 0 0 8px;
    }

    .card-desc {
        font-size: 14px;
        color: var(--text-muted);
        line-height: 1.6;
        margin: 0;
    }

    /* --- 6. Service Policies Page Styles (Restored) --- */
    .cool-cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 24px;
        padding: 20px;
    }

    .cool-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid var(--border-color);
        text-decoration: none;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: block;
    }

    .cool-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .cool-card-header {
        height: 100px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8fafc;
    }

    .header-pattern svg {
        width: 48px;
        height: 48px;
        opacity: 0.8;
    }

    /* Card Themes */
    .theme-blue .cool-card-header {
        background: #eff6ff;
        color: #3b82f6;
    }

    .theme-cyan .cool-card-header {
        background: #ecfeff;
        color: #06b6d4;
    }

    .theme-red .cool-card-header {
        background: #fef2f2;
        color: #ef4444;
    }

    .theme-purple .cool-card-header {
        background: #faf5ff;
        color: #a855f7;
    }

    .theme-green .cool-card-header {
        background: #f0fdf4;
        color: #22c55e;
    }

    .theme-yellow .cool-card-header {
        background: #fefce8;
        color: #eab308;
    }

    .theme-darkblue .cool-card-header {
        background: #f1f5f9;
        color: #475569;
    }

    .theme-gray .cool-card-header {
        background: #f3f4f6;
        color: #6b7280;
    }

    .cool-card-body {
        padding: 24px;
    }

    .cool-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-main);
        margin: 0 0 8px;
    }

    .cool-desc {
        font-size: 14px;
        color: var(--text-muted);
        line-height: 1.5;
        margin: 0;
    }

    /* --- 7. Reader Tools (Terms Header) --- */
    .terms-header {
        margin-bottom: 24px;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border-color);
    }

    .last-updated {
        font-size: 14px;
        color: var(--text-muted);
        margin-bottom: 16px;
    }

    .reader-tools {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .reading-time {
        font-size: 13px;
        color: var(--text-muted);
        background: #f3f4f6;
        padding: 6px 12px;
        border-radius: 100px;
        font-weight: 500;
    }

    .tools-group-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .tool-divider {
        width: 1px;
        height: 24px;
        background: #e5e7eb;
    }

    /* Base Button Style for Tools */
    .resize-btn,
    .tldr-btn,
    .lang-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 36px;
        padding: 0 16px;
        border-radius: 8px;
        /* Slightly rounded square */
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1px solid var(--border-color);
        background: white;
        color: var(--text-main);
        gap: 6px;
    }

    .resize-btn:hover,
    .lang-toggle:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }

    /* TL;DR Button Special Style */
    .tldr-btn {
        background: #f0fdf4;
        color: #16a34a;
        border-color: #bbf7d0;
    }

    .tldr-btn:hover {
        background: #dcfce7;
        border-color: #86efac;
    }

    .tldr-btn.active {
        background: #16a34a;
        color: white;
        border-color: #16a34a;
        box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.2);
    }

    /* Language Toggle specific (Clean Active State) */
    .lang-toggle.active {
        background: #f3f4f6;
        color: #111827;
        border-color: #d1d5db;
        font-weight: 700;
    }

    /* Mobile Specific "Pro & Small" Look */
    @media (max-width: 480px) {
        .reader-tools {
            gap: 16px;
            flex-direction: column;
            align-items: flex-start;
        }

        .reading-time {
            font-size: 11px;
            padding: 4px 10px;
            align-self: flex-start;
        }

        /* Ensure text resizer groups have gap on mobile */
        .text-resizer {
            display: flex;
            align-items: center;
            gap: 12px;
            /* Increased gap */
        }

        .tools-group-right {
            gap: 8px;
            /* Slightly reduced outer gap to fit content */
            width: 100%;
            display: flex;
            justify-content: space-between;
            /* Better distribution */
            align-items: center;
            overflow-x: auto;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 4px;
            padding-right: 0px;
        }

        .tools-group-right::-webkit-scrollbar {
            display: none;
        }

        /* Make buttons smaller & cleaner on mobile */
        .resize-btn,
        .tldr-btn,
        .lang-toggle {
            height: 34px;
            padding: 0 10px;
            /* Reduced padding to fit */
            font-size: 12px;
            border-radius: 8px;
            flex-shrink: 0;
            /* Prevent squashing */
            white-space: nowrap;
            /* Prevent text wrapping */
        }


    }