/* MentorMakers legacy base styles — extracted verbatim from layouts/app.blade.php (pre-2026 redesign).
   Kept so inner pages that still use .card/.btn/.container etc. render exactly as before.
   The 2026 design system (mm2026.css) loads AFTER this file and overrides where needed. */
        :root {
            --primary: #4F46E5;
            --secondary: #7C3AED;
            --gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
            --bg: #F8F7FF;
            --card: #FFFFFF;
            --text: #1E1B4B;
            --muted: #64607D;
            --border: #E6E4F7;
            --font-display: 'Sora', sans-serif;
            --font-body: 'Inter', sans-serif;
        }
        * { box-sizing: border-box; }
        html { overflow-x: hidden; max-width: 100%; }
        body { font-family: var(--font-body); background: var(--bg); color: var(--text); margin: 0; overflow-x: hidden; max-width: 100%; }
        h1, h2, h3, .brand { font-family: var(--font-display); }
        a { color: var(--primary); text-decoration: none; }
        .container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

        /* Ticker */
        .site-ticker {
            background: var(--text); color: #fff; text-align: center;
            font-size: 0.82rem; padding: 7px 0; overflow: hidden; white-space: nowrap;
        }
        .site-ticker span { display: inline-block; padding-left: 100%; animation: ticker-scroll 22s linear infinite; }
        @keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

        header.site-header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
        .nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; position: relative; }
        .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--text); white-space: nowrap; }
        .brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.95rem; font-weight: 800; flex-shrink: 0; }
        .brand span.accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

        .nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
        .nav-links > a, .nav-links > .dropdown > button { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 0.9rem; background: none; border: none; cursor: pointer; font-family: var(--font-body); }
        .nav-links > a:hover, .nav-links > .dropdown > button:hover { background: var(--bg); color: var(--primary); }

        .dropdown { position: static; }
        .mega-nav-btn { display: flex; align-items: center; gap: 5px; }
        .mega-nav-btn svg { transition: transform .15s; }
        .mega-nav-dropdown.open .mega-nav-btn svg { transform: rotate(180deg); }
        .mega-nav-panel {
            display: none;
            position: absolute; top: 100%; left: 0; right: 0;
            background: #fff; border-top: 1px solid var(--border);
            box-shadow: 0 20px 48px rgba(30,27,75,0.12);
            width: 100%; max-height: 80vh; overflow-y: auto; overflow-x: hidden;
            z-index: 50; padding: 30px 0; gap: 30px;
        }
        .mega-nav-panel-inner { display: flex; gap: 30px; max-width: 1400px; margin: 0 auto; padding: 0 40px; }
        .mega-nav-dropdown.open .mega-nav-panel { display: block; }
        .mega-nav-heading { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: #94A3B8; font-weight: 800; margin-bottom: 14px; }
        .mega-nav-featured { width: 260px; flex-shrink: 0; border-right: 1px solid var(--border); padding-right: 30px; }
        .mega-nav-featured-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 8px; border-radius: 10px; margin-bottom: 4px; }
        .mega-nav-featured-item:hover { background: var(--bg); }
        .mega-nav-featured-title { display: block; font-weight: 700; font-size: 0.95rem; color: var(--text); }
        .mega-nav-featured-desc { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; line-height: 1.4; }
        .mega-nav-list { flex: 1; min-width: 0; }
        .mega-nav-list-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 20px; }
        .mega-nav-list-grid a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; color: var(--text); }
        .mega-nav-list-grid a svg { flex-shrink: 0; }
        .mega-nav-list-grid a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .mega-nav-list-grid a:hover { background: var(--bg); color: var(--primary); }
        .mega-nav-viewall { display: inline-block; margin-top: 14px; font-size: 0.9rem; font-weight: 700; color: var(--primary); }

        @media (max-width: 900px) {
            .mega-nav-panel-inner { flex-direction: column; gap: 18px; padding: 0 18px; }
            .mega-nav-panel { max-height: 70vh; padding: 18px 0; }
            .mega-nav-featured { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 16px; }
            .mega-nav-list-grid { grid-template-columns: 1fr 1fr; }
        }

        .nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

        /* RTL support for the translated chrome (header, footer). Deeper tool-page RTL
           polish is a separate follow-up — flagged clearly, not silently assumed done. */
        html[dir="rtl"] body { font-family: 'Noto Nastaliq Urdu', 'Inter', -apple-system, sans-serif; }
        html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
        html[dir="rtl"] .mega-nav-panel { text-align: right; }
        html[dir="rtl"] .mega-nav-featured { border-right: none; border-left: 1px solid var(--border); padding-right: 0; padding-left: 26px; }
        html[dir="rtl"] .footer-cols { direction: rtl; }
        .nav-cta-btn { background: var(--gradient) !important; color: #fff !important; padding: 8px 16px; border-radius: 8px; font-weight: 700; }
        .btn-ghost { padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text); }
        .btn-ghost:hover { color: var(--primary); }
        .avatar-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

        .user-menu { position: relative; }
        .user-menu-btn {
            width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--border);
            background: var(--bg); cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
        }
        .user-menu-btn:hover { border-color: var(--primary); }
        .user-menu-btn .avatar-sm { width: 100%; height: 100%; }
        .user-menu-initial { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
        .user-menu-panel {
            display: none; position: absolute; top: calc(100% + 8px); right: 0;
            background: var(--card); border: 1px solid var(--border); border-radius: 12px;
            box-shadow: 0 12px 32px rgba(30,27,75,0.14); min-width: 220px; z-index: 60; overflow: hidden;
        }
        .user-menu.open .user-menu-panel { display: block; }
        .user-menu-header { padding: 14px 16px; border-bottom: 1px solid var(--border); }
        .user-menu-panel a { display: block; padding: 10px 16px; font-size: 0.9rem; color: var(--text); font-weight: 500; }
        .user-menu-panel a:hover { background: var(--bg); }
        .user-menu-divider { border-top: 1px solid var(--border); margin: 4px 0; }
        .user-menu-logout {
            display: block; width: 100%; text-align: left; padding: 10px 16px; background: none; border: none;
            color: #DC2626; font-weight: 600; font-size: 0.9rem; cursor: pointer; font-family: var(--font-body);
        }
        .user-menu-logout:hover { background: #FEF2F2; }

        .mega-menu { position: relative; }
        .mega-menu-btn {
            width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg);
            display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text);
            position: relative;
        }
        .mega-menu-btn:hover { border-color: var(--primary); color: var(--primary); }
        .mega-menu-panel {
            display: none; position: absolute; top: calc(100% + 12px); right: 0; width: 620px; max-width: 90vw;
            background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(30,27,75,0.18); border: 1px solid var(--border);
            padding: 24px; z-index: 200; grid-template-columns: 1fr 1fr 0.8fr; gap: 24px;
        }
        .mega-menu.open .mega-menu-panel { display: grid; }
        .mega-menu-heading { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #94A3B8; font-weight: 800; margin-bottom: 12px; }
        .mega-menu-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 6px; border-radius: 10px; margin-bottom: 4px; }
        .mega-menu-item:hover { background: var(--bg); }
        .mega-menu-item-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; flex-shrink: 0; }
        .mega-menu-item-title { display: block; font-weight: 700; font-size: 0.88rem; color: var(--text); }
        .mega-menu-item-desc { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 1px; }
        .mega-menu-col-links { border-left: 1px solid var(--border); padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
        .mega-menu-link { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 0.87rem; font-weight: 600; color: var(--text); }
        .mega-menu-link:hover { color: var(--primary); }
        .mega-menu-badge { margin-left: auto; background: #DC2626; color: #fff; font-size: 0.7rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
        .mega-menu-divider { border-top: 1px solid var(--border); margin: 8px 0; }
        .mega-menu-btn-dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #DC2626; border: 2px solid #fff; }

        @media (max-width: 640px) {
            .mega-menu-panel { grid-template-columns: 1fr; position: fixed; top: 64px; right: 10px; left: 10px; width: auto; max-width: none; }
            .mega-menu-col-links { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 14px; }
        }

        .btn { display: inline-block; background: var(--gradient); color: #fff; padding: 11px 24px; border-radius: 10px; border: none; font-weight: 700; cursor: pointer; font-size: 0.95rem; font-family: var(--font-body); box-shadow: 0 6px 16px rgba(79,70,229,0.25); }
        .btn:hover { opacity: 0.94; }

        input[type=file], input[type=text], input[type=password], input[type=number], textarea, select {
            width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 0.95rem; margin-bottom: 14px; font-family: var(--font-body); background: #fff;
        }
        input:focus, textarea:focus, select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
        label { font-weight: 600; display: block; margin-bottom: 6px; font-size: 0.9rem; }

        .card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }

        .errors { background: #FEF2F2; border: 1px solid #FCA5A5; color: #B91C1C; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 0.9rem; }
        .status { background: #F0FDF4; border: 1px solid #86EFAC; color: #15803D; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 0.9rem; }

        .mm-ad-slot { text-align: center; margin: 24px 0; overflow: hidden; max-width: 100%; }
        .mm-ad-slot img { max-width: 100%; height: auto; border-radius: 10px; }
        .mm-ad-slot iframe, .mm-ad-slot ins, .mm-ad-slot > div { max-width: 100%; }
        .mm-ad-slot ins.adsbygoogle { display: block; }

        /* Bookmark reminder toast — bottom-left, once per day */
        .bookmark-toast {
            position: fixed; left: 18px; bottom: 18px; z-index: 150;
            background: var(--card); border: 1px solid var(--border); border-radius: 12px;
            box-shadow: 0 10px 30px rgba(30,27,75,0.16); padding: 14px 34px 14px 14px;
            display: none; align-items: flex-start; gap: 10px; max-width: 270px;
            transform: translateY(20px); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease;
        }
        .bookmark-toast.show { display: flex; }
        .bookmark-toast.visible { transform: translateY(0); opacity: 1; }
        .bookmark-toast-icon { color: var(--primary); flex-shrink: 0; margin-top: 1px; }
        .bookmark-toast-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 2px; }
        .bookmark-toast-text { color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
        .bookmark-toast-text kbd { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 0.74rem; font-family: inherit; }
        .bookmark-toast-close {
            position: absolute; top: 8px; right: 10px; background: none; border: none; cursor: pointer;
            color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 2px;
        }
        .bookmark-toast-close:hover { color: var(--text); }

        /* Social share button + popup */
        .mm-share { position: relative; display: inline-block; }
        .mm-share-btn {
            display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 8px;
            border: 1px solid var(--border); background: var(--card); color: var(--text); font-weight: 600;
            font-size: 0.85rem; cursor: pointer; font-family: var(--font-body);
        }
        .mm-share-btn:hover { border-color: var(--primary); color: var(--primary); }
        .mm-share-panel {
            display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
            background: var(--card); border: 1px solid var(--border); border-radius: 12px;
            box-shadow: 0 12px 32px rgba(30,27,75,0.14); padding: 8px; min-width: 190px;
        }
        .mm-share.open .mm-share-panel { display: block; }
        .mm-share-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 0.87rem; color: var(--text); font-weight: 500; }
        .mm-share-item:hover { background: var(--bg); }
        .mm-share-icon { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        @media (max-width: 480px) {
            .bookmark-toast { left: 10px; bottom: 10px; max-width: calc(100vw - 20px); }
        }

        .upload-dropzone { border: 2px dashed var(--border); border-radius: 14px; text-align: center; padding: 36px 20px; margin-bottom: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
        .upload-dropzone:hover, .upload-dropzone.dragover { border-color: var(--primary); background: var(--bg); }
        .upload-dropzone .dz-btn { display: inline-block; background: var(--gradient); color: #fff; padding: 13px 28px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; box-shadow: 0 6px 16px rgba(79,70,229,0.25); }
        .upload-dropzone .dz-sub { margin-top: 10px; color: var(--muted); font-size: 0.85rem; }
        .upload-dropzone .dz-filename { margin-top: 10px; color: var(--primary); font-weight: 600; font-size: 0.88rem; }

        /* Processing overlay + button spinner — shown while a tool form submits */
        .processing-overlay {
            display: none; position: fixed; inset: 0; background: rgba(30,27,75,0.55);
            z-index: 200; align-items: center; justify-content: center;
        }
        .processing-overlay.show { display: flex; }
        .processing-box {
            background: #fff; border-radius: 16px; padding: 32px 40px; text-align: center;
            box-shadow: 0 20px 50px rgba(0,0,0,0.25);
        }
        /* Full-page preloader — covers the initial render so nothing pops in piece by piece */
        #site-preloader {
            position: fixed; inset: 0; z-index: 999; background: var(--bg);
            display: flex; align-items: center; justify-content: center;
            transition: opacity 0.35s ease, visibility 0.35s ease;
        }
        #site-preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
        .site-preloader-inner { display: flex; flex-direction: column; align-items: center; }

        .processing-spinner {
            width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--primary);
            border-radius: 50%; margin: 0 auto 16px; animation: mm-spin 0.8s linear infinite;
        }
        @keyframes mm-spin { to { transform: rotate(360deg); } }
        .btn-spinner {
            display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.5);
            border-top-color: #fff; border-radius: 50%; margin-right: 8px; vertical-align: middle;
            animation: mm-spin 0.7s linear infinite;
        }

        footer.site-footer { margin-top: 60px; padding: 40px 0 0; background: #1E1B4B; color: #B4B0D6; font-size: 0.88rem; }
        footer.site-footer a { color: #D4D1F0; }
        footer.site-footer > .container > div > div { margin-bottom: 8px; }
        .footer-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
        .trust-strip { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 28px; font-size: 0.82rem; color: #B4B0D6; }
        .app-download-btn {
            display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
            background: rgba(255,255,255,0.08); color: #fff; font-weight: 600; font-size: 0.85rem;
            border: 1px solid rgba(255,255,255,0.14);
        }
        .app-download-btn:hover { background: rgba(255,255,255,0.16); }
        .trust-strip span:not(:last-child)::after { content: '•'; margin-left: 10px; color: #6E699E; }
        .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0 22px; text-align: center; color: #B4B0D6; font-size: 0.85rem; }
        .footer-lang-switcher { display: inline-flex; align-items: center; gap: 2px; background: rgba(255,255,255,0.08); border-radius: 999px; padding: 3px; margin-top: 12px; }
        .footer-lang-switcher a { padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: #B4B0D6; }
        .footer-lang-switcher a.active { background: rgba(255,255,255,0.15); color: #fff; }
        .footer-bottom a { color: #B4B0D6; }
        .footer-bottom-line { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; row-gap: 6px; }
        .footer-dot { color: #6E699E; }
        @media (max-width: 560px) {
            .footer-bottom-line { flex-direction: column; gap: 4px; }
            .footer-dot { display: none; }
        }
        .footer-pk-badge { font-weight: 600; color: #D8D5F0; }

        /* WhatsApp floating button */
        .whatsapp-fab {
            position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%;
            background: #25D366; display: flex; align-items: center; justify-content: center;
            box-shadow: 0 8px 20px rgba(0,0,0,0.25); z-index: 60;
        }

        /* Popup */
        .site-popup-overlay { position: fixed; inset: 0; background: rgba(30,27,75,0.55); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
        .site-popup-box { background: #fff; border-radius: 16px; padding: 28px; max-width: 480px; width: 100%; position: relative; max-height: 85vh; overflow-y: auto; }
        .site-popup-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); }

        /* Hamburger (mobile) */
        .hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
        .hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

        main.container { padding-top: 64px; padding-bottom: 40px; }

        /* Tool page — sidebar (How-to + Related Tools) + wide main content */
        .tool-page-layout {
            margin-top: 24px;
            display: grid;
            grid-template-columns: 270px 1fr;
            gap: 32px;
            align-items: start;
        }
        .tool-page-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
        .tool-sidebar-card { padding: 20px; }
        .tool-sidebar-card h2 { font-size: 0.95rem; margin: 0 0 12px; }
        .tool-sidebar-card ol { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.88rem; line-height: 1.8; }
        .tool-sidebar-related-link { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-weight: 600; font-size: 0.88rem; color: var(--text); border-radius: 8px; }
        .tool-sidebar-related-link:hover { background: var(--bg); color: var(--primary); }
        .tool-page-main { min-width: 0; max-width: 820px; }
        .offline-capable-badge {
            display: inline-flex; align-items: center; gap: 7px; background: #ECFDF5; color: #047857;
            border: 1px solid #A7F3D0; padding: 7px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
            margin-bottom: 14px;
        }
        .tool-page-main > * { max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }

        .tool-fullwidth-section { max-width: 1000px; margin: 24px auto 0; padding: 28px 30px; }
        .tool-fullwidth-section h2 { font-size: 1.15rem; margin-top: 0; margin-bottom: 14px; }
        .tool-fullwidth-prose { color: var(--muted); line-height: 1.8; }
        .tool-faq-item { margin-bottom: 10px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
        .tool-faq-item summary { font-weight: 600; cursor: pointer; font-size: 0.94rem; }
        .tool-faq-item p { color: var(--muted); margin-top: 8px; margin-bottom: 0; font-size: 0.9rem; }
        .tool-reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
        .tool-review-item { padding: 14px; background: var(--bg); border-radius: 10px; }

        @media (max-width: 900px) {
            .tool-page-layout { grid-template-columns: 1fr; }
            .tool-page-main { order: 1; max-width: 100%; }
            .tool-page-sidebar { order: 2; position: static; flex-direction: column; overflow-x: visible; }
            .tool-sidebar-card { min-width: 0; width: 100%; }
        }

        .mobile-menu-overlay {
            display: none; position: fixed; inset: 0; z-index: 300; background: #fff;
            flex-direction: column;
        }
        .mobile-menu-overlay.show { display: flex; }
        .mobile-menu-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
        }
        #mobile-menu-close { background: none; border: none; padding: 4px; cursor: pointer; color: var(--text); }
        .mobile-menu-body { flex: 1; overflow-y: auto; padding: 12px 20px 32px; }
        .mobile-menu-quicklinks { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
        .mobile-menu-quicklinks a { padding: 10px 4px; font-weight: 600; font-size: 0.95rem; }
        .mobile-menu-cat-label { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.72rem; font-weight: 700; color: var(--muted); margin: 18px 0 6px; }
        .mobile-menu-tool-row { display: flex; align-items: center; gap: 14px; padding: 11px 4px; font-weight: 600; font-size: 0.98rem; color: var(--text); }

        @media (max-width: 860px) {
            .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; box-shadow: 0 12px 24px rgba(30,27,75,0.1); }
            .nav-links.mobile-open { display: flex; }
            .nav-links > a, .nav-links > .dropdown { width: 100%; }
            .nav-links > .dropdown > button { width: 100%; text-align: left; }
            .dropdown-panel { position: static; transform: none; width: 100%; box-shadow: none; border: none; }
            .hamburger { display: block; order: -1; }

            .brand { flex: 1; display: flex; justify-content: center; min-width: 0; }
            .brand img { max-width: 100%; }
            .nav-actions { flex-shrink: 0; }
            .footer-cols { grid-template-columns: 1fr 1fr; }
        }
        @media (max-width: 480px) {
            .footer-cols { grid-template-columns: 1fr; text-align: center; }
            .footer-cols .footer-social { justify-content: center; }
        }

        /* Left-sidebar layout (admin-selectable, desktop only — mobile/tablet always uses the top layout for usability) */
        @media (min-width: 1024px) {
            body.layout-left .site-ticker { margin-left: 230px; }
            body.layout-left header.site-header {
                position: fixed; top: 0; left: 0; bottom: 0; width: 230px; height: 100vh;
                border-right: 1px solid var(--border); border-bottom: none;
                box-shadow: 2px 0 12px rgba(30,27,75,0.04);
            }
            body.layout-left .nav { flex-direction: column; align-items: stretch; height: 100%; padding: 22px 16px; gap: 6px; }
            body.layout-left .brand { padding-bottom: 16px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
            body.layout-left .nav-links { flex-direction: column; align-items: stretch; gap: 2px; flex: none; margin-bottom: 12px; }
            body.layout-left .nav-links > a { padding: 10px 12px; border-radius: 8px; }
            body.layout-left .nav-links > a:hover { background: var(--bg); }
            body.layout-left .mega-nav-btn { width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; justify-content: space-between; }
            body.layout-left .dropdown-panel { top: 0; left: 100%; transform: none; margin-left: 8px; z-index: 60; }
            body.layout-left .nav-actions { flex-direction: column; align-items: stretch; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
            body.layout-left main.container, body.layout-left footer.site-footer {
                margin-left: 230px;
            }
        }
