:root {
            --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
            --bg: #f6f8fc;
            --pn: #ffffff;
            --card-bg: #ffffff;
            --tx: #0f172a;
            --tx-sub: #334155;
            --mu: #64748b;
            --ln: #e2e8f0;
            --ln-light: #edf2f7;
            --ac: #2563eb;
            --ac-hover: #1d4ed8;
            --ac-soft: rgba(37, 99, 235, 0.1);
            --go: #d97706;
            --go-soft: #fef3c7;
            --sea: #0a192f;
            --land: #334155;
            --hi: #f59e0b;
            --success: #16a34a;
            --success-soft: #dcfce7;
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
            --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
            box-sizing: border-box;
            padding-top: env(safe-area-inset-top, 0px);
            padding-bottom: env(safe-area-inset-bottom, 0px);
        }

        [data-theme="dark"] {
            --bg: #090d16;
            --pn: #111827;
            --card-bg: #151d30;
            --tx: #f8fafc;
            --tx-sub: #cbd5e1;
            --mu: #94a3b8;
            --ln: #1f293d;
            --ln-light: #25334d;
            --ac: #3b82f6;
            --ac-hover: #60a5fa;
            --ac-soft: rgba(59, 130, 246, 0.16);
            --go: #fbbf24;
            --go-soft: rgba(251, 191, 36, 0.15);
            --sea: #050b14;
            --land: #1e293b;
            --success-soft: rgba(34, 197, 94, 0.15);
            --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
            --shadow-md: 0 4px 14px 0 rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 10px 25px 0 rgba(0, 0, 0, 0.5);
        }

        @media(prefers-color-scheme: dark) {
            :root:not([data-theme="light"]) {
                --bg: #090d16;
                --pn: #111827;
                --card-bg: #151d30;
                --tx: #f8fafc;
                --tx-sub: #cbd5e1;
                --mu: #94a3b8;
                --ln: #1f293d;
                --ln-light: #25334d;
                --ac: #3b82f6;
                --ac-hover: #60a5fa;
                --ac-soft: rgba(59, 130, 246, 0.16);
                --go: #fbbf24;
                --go-soft: rgba(251, 191, 36, 0.15);
                --sea: #050b14;
                --land: #1e293b;
                --success-soft: rgba(34, 197, 94, 0.15);
                --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
                --shadow-md: 0 4px 14px 0 rgba(0, 0, 0, 0.4);
                --shadow-lg: 0 10px 25px 0 rgba(0, 0, 0, 0.5);
            }
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }

        html,
        body {
            height: 100%;
            margin: 0;
            font-family: var(--font);
            background: var(--bg);
            color: var(--tx);
            overflow-x: hidden;
            font-size: 14px;
            line-height: 1.5;
        }

        /* App Container */
        .app {
            display: grid;
            grid-template-columns: minmax(380px, 46%) minmax(440px, 54%);
            height: 100vh;
            width: 100vw;
            overflow: hidden;
        }

        /* Panels */
        .left-pane {
            background: var(--pn);
            border-right: 1px solid var(--ln);
            overflow-y: auto;
            overflow-x: hidden;
            padding: 20px 22px 40px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            scroll-behavior: smooth;
        }

        .right-pane {
            background: var(--bg);
            overflow-y: auto;
            overflow-x: hidden;
            padding: 20px 24px 60px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            scroll-behavior: smooth;
        }

        /* Custom Scrollbars */
        .left-pane::-webkit-scrollbar,
        .right-pane::-webkit-scrollbar {
            width: 6px;
        }

        .left-pane::-webkit-scrollbar-track,
        .right-pane::-webkit-scrollbar-track {
            background: transparent;
        }

        .left-pane::-webkit-scrollbar-thumb,
        .right-pane::-webkit-scrollbar-thumb {
            background: var(--ln);
            border-radius: 99px;
        }

        .left-pane::-webkit-scrollbar-thumb:hover,
        .right-pane::-webkit-scrollbar-thumb:hover {
            background: var(--mu);
        }

        /* Header Bar */
        .pane-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding-bottom: 4px;
        }

        .brand {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .brand-title {
            font-size: 20px;
            font-weight: 800;
            letter-spacing: -0.02em;
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--tx);
        }

        .brand-sub {
            color: var(--mu);
            font-size: 12.5px;
            font-weight: 500;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .icon-btn {
            background: var(--card-bg);
            border: 1px solid var(--ln);
            color: var(--tx);
            width: 36px;
            height: 36px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.18s ease;
        }

        .icon-btn:hover {
            background: var(--ac-soft);
            border-color: var(--ac);
            color: var(--ac);
        }

        /* Map Section */
        .map-wrapper {
            position: relative;
            width: 100%;
            flex-shrink: 0;
            background: radial-gradient(circle at 50% 35%, #0f224a, #050a17);
            border: 1px solid var(--ln);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-md);
        }

        #map {
            width: 100%;
            height: auto;
            aspect-ratio: 1000 / 480;
            display: block;
        }

        .map-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(10, 18, 36, 0.75);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #e2e8f0;
            font-size: 11px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 99px;
            display: flex;
            align-items: center;
            gap: 6px;
            pointer-events: none;
        }

        .pulse-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #22c55e;
            box-shadow: 0 0 8px #22c55e;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(0.95);
                opacity: 0.8;
            }

            50% {
                transform: scale(1.2);
                opacity: 1;
            }

            100% {
                transform: scale(0.95);
                opacity: 0.8;
            }
        }

        /* Route Info Box */
        .route-info-card {
            background: var(--card-bg);
            border: 1px solid var(--ln);
            border-radius: var(--radius-md);
            padding: 12px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            box-shadow: var(--shadow-sm);
            transition: all 0.2s ease;
        }

        .route-info-item {
            display: flex;
            flex-direction: column;
        }

        .route-info-item b {
            font-size: 16px;
            font-weight: 700;
            color: var(--ac);
        }

        .route-info-item small {
            font-size: 11px;
            color: var(--mu);
            font-weight: 500;
        }

        .route-hint {
            color: var(--mu);
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* Filter Section & Selective Components */
        .filter-section {
            display: flex;
            flex-direction: column;
            gap: 14px;
            background: var(--card-bg);
            border: 1px solid var(--ln);
            border-radius: var(--radius-lg);
            padding: 16px;
            box-shadow: var(--shadow-sm);
        }

        .filter-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 6px;
            border-bottom: 1px solid var(--ln-light);
        }

        .filter-title {
            font-size: 13.5px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--mu);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .btn-reset {
            background: none;
            border: none;
            color: var(--ac);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 6px;
            transition: background 0.15s ease;
        }

        .btn-reset:hover {
            background: var(--ac-soft);
        }

        .field-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .field-label {
            font-size: 12px;
            font-weight: 700;
            color: var(--tx-sub);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .field-label-tag {
            font-size: 11px;
            font-weight: 500;
            color: var(--mu);
        }

        /* Select styling */
        .select-wrapper {
            position: relative;
            width: 100%;
        }

        select {
            width: 100%;
            padding: 10px 14px;
            padding-right: 36px;
            border-radius: var(--radius-md);
            border: 1px solid var(--ln);
            background: var(--pn);
            color: var(--tx);
            font-family: inherit;
            font-size: 13.5px;
            font-weight: 500;
            outline: none;
            appearance: none;
            -webkit-appearance: none;
            cursor: pointer;
            box-shadow: var(--shadow-sm);
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        select:focus {
            border-color: var(--ac);
            box-shadow: 0 0 0 3px var(--ac-soft);
        }

        .select-arrow {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            color: var(--mu);
            font-size: 10px;
        }

        /* Chips */
        .chips {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .chip {
            padding: 7px 13px;
            border-radius: 99px;
            border: 1px solid var(--ln);
            background: var(--pn);
            color: var(--tx-sub);
            cursor: pointer;
            font-family: inherit;
            font-size: 12.5px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
            user-select: none;
        }

        .chip:hover {
            border-color: var(--ac);
            color: var(--ac);
            background: var(--ac-soft);
            transform: translateY(-1px);
        }

        .chip.on {
            background: var(--ac);
            border-color: var(--ac);
            color: #ffffff;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
        }

        /* CGPA Input Row */
        .cgpa-input-row {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .cgpa-input {
            flex: 1;
            padding: 9px 12px;
            border-radius: var(--radius-md);
            border: 1px solid var(--ln);
            background: var(--pn);
            color: var(--tx);
            font-family: inherit;
            font-size: 13.5px;
            font-weight: 600;
            outline: none;
            box-shadow: var(--shadow-sm);
            transition: all 0.2s ease;
        }

        .cgpa-input:focus {
            border-color: var(--ac);
            box-shadow: 0 0 0 3px var(--ac-soft);
        }

        .btn-match-toggle {
            padding: 9px 12px;
            border-radius: var(--radius-md);
            border: 1px solid var(--ln);
            background: var(--pn);
            color: var(--tx-sub);
            font-family: inherit;
            font-size: 11.5px;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.18s ease;
            user-select: none;
        }

        .btn-match-toggle:hover {
            border-color: var(--ac);
            color: var(--ac);
        }

        .btn-match-toggle.active {
            background: var(--ac);
            color: #ffffff;
            border-color: var(--ac);
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
        }

        /* Right Pane - Available Scholarships */
        .results-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            padding-bottom: 2px;
        }

        .view-tabs {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .view-tab-btn {
            padding: 6px 13px;
            border-radius: 99px;
            border: 1px solid var(--ln);
            background: var(--card-bg);
            color: var(--tx-sub);
            font-family: inherit;
            font-size: 12.5px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.18s ease;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .view-tab-btn:hover {
            border-color: var(--ac);
            color: var(--ac);
        }

        .view-tab-btn.active {
            background: var(--ac);
            border-color: var(--ac);
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
        }

        .view-tab-btn.fav-tab.active {
            background: #e11d48;
            border-color: #e11d48;
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
        }

        .results-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            flex: 1;
            justify-content: flex-end;
        }

        .search-box {
            position: relative;
            flex: 1;
            min-width: 170px;
            max-width: 250px;
        }

        .search-input {
            width: 100%;
            padding: 8px 12px 8px 30px;
            border-radius: var(--radius-md);
            border: 1px solid var(--ln);
            background: var(--pn);
            color: var(--tx);
            font-family: inherit;
            font-size: 12.5px;
            outline: none;
            transition: all 0.2s ease;
        }

        .search-input:focus {
            border-color: var(--ac);
            box-shadow: 0 0 0 3px var(--ac-soft);
        }

        .search-icon {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--mu);
            font-size: 12px;
            pointer-events: none;
        }

        .sort-select {
            width: auto;
            padding: 8px 28px 8px 10px;
            border-radius: var(--radius-md);
            font-size: 12px;
            font-weight: 600;
        }

        .btn-export {
            background: var(--card-bg);
            border: 1px solid var(--ln);
            color: var(--tx);
            padding: 8px 12px;
            border-radius: var(--radius-md);
            font-family: inherit;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            box-shadow: var(--shadow-sm);
            transition: all 0.18s ease;
            white-space: nowrap;
        }

        .btn-export:hover {
            background: var(--ac-soft);
            border-color: var(--ac);
            color: var(--ac);
        }

        /* Card Bookmark Heart */
        .btn-card-fav {
            background: none;
            border: none;
            font-size: 18px;
            cursor: pointer;
            padding: 2px 4px;
            border-radius: 6px;
            color: var(--mu);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.15s ease, color 0.15s ease;
            line-height: 1;
        }

        .btn-card-fav:hover {
            transform: scale(1.3);
            color: #e11d48;
        }

        .btn-card-fav.active {
            color: #e11d48;
            transform: scale(1.08);
        }

        /* Match Badges */
        .match-pill {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            font-weight: 800;
            padding: 2.5px 8.5px;
            border-radius: 99px;
            letter-spacing: 0.02em;
        }

        .match-high {
            background: rgba(34, 197, 94, 0.15);
            color: #16a34a;
            border: 1px solid rgba(34, 197, 94, 0.3);
        }

        .match-good {
            background: rgba(245, 158, 11, 0.15);
            color: #d97706;
            border: 1px solid rgba(245, 158, 11, 0.3);
        }

        .match-reach {
            background: rgba(148, 163, 184, 0.12);
            color: var(--mu);
            border: 1px solid var(--ln);
        }

        /* Toast Notice */
        .toast-notice {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background: #0f172a;
            color: #ffffff;
            padding: 12px 18px;
            border-radius: var(--radius-md);
            font-weight: 700;
            font-size: 13px;
            box-shadow: var(--shadow-lg);
            z-index: 9999;
            display: flex;
            align-items: center;
            gap: 8px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            animation: toastIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        [data-theme="light"] .toast-notice {
            background: #0f172a;
            color: #ffffff;
        }

        @keyframes toastIn {
            from {
                opacity: 0;
                transform: translateY(12px) scale(0.95);
            }

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

        /* Selected Detail Section */
        #det:not(:empty) {
            margin-bottom: 8px;
        }

        .detail {
            border: 2px solid var(--ac);
            border-radius: var(--radius-lg);
            padding: 18px 20px;
            background: var(--card-bg);
            box-shadow: var(--shadow-lg);
            position: relative;
            animation: detailSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

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

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

        .detail-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 6px;
        }

        .detail h2 {
            margin: 0;
            font-size: 18px;
            font-weight: 800;
            color: var(--tx);
            line-height: 1.3;
        }

        .btn-close-detail {
            background: var(--pn);
            border: 1px solid var(--ln);
            color: var(--mu);
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 15px;
            flex-shrink: 0;
            transition: all 0.15s ease;
        }

        .btn-close-detail:hover {
            color: var(--tx);
            border-color: var(--mu);
        }

        .req {
            display: grid;
            grid-template-columns: 140px 1fr;
            gap: 8px 14px;
            margin: 12px 0;
            font-size: 13px;
            background: var(--pn);
            border: 1px solid var(--ln-light);
            border-radius: var(--radius-md);
            padding: 12px 14px;
        }

        .req span:nth-child(odd) {
            color: var(--mu);
            font-weight: 600;
        }

        .award {
            background: var(--pn);
            border: 1px solid var(--ln);
            border-radius: var(--radius-md);
            padding: 10px 14px;
            font-size: 13.5px;
            margin: 10px 0;
            line-height: 1.5;
        }

        .stats {
            display: flex;
            gap: 10px;
            margin: 12px 0;
        }

        .stat {
            flex: 1;
            background: var(--pn);
            border: 1px solid var(--ln);
            border-radius: var(--radius-md);
            padding: 10px;
            text-align: center;
            font-size: 12px;
            color: var(--mu);
        }

        .stat b {
            font-size: 17px;
            font-weight: 800;
            color: var(--tx);
            display: block;
            margin-bottom: 2px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
            margin-top: 10px;
            background: var(--pn);
            border-radius: var(--radius-md);
            overflow: hidden;
            border: 1px solid var(--ln-light);
        }

        th,
        td {
            padding: 7px 10px;
            border-bottom: 1px solid var(--ln-light);
            text-align: right;
        }

        th {
            font-weight: 700;
            color: var(--mu);
            background: var(--bg);
        }

        th:first-child,
        td:first-child {
            text-align: left;
        }

        .bar {
            height: 6px;
            background: var(--ac);
            border-radius: 3px;
        }

        .detail-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 14px;
            flex-wrap: wrap;
        }

        a.btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--ac);
            color: #ffffff;
            padding: 9px 18px;
            border-radius: var(--radius-md);
            text-decoration: none;
            font-weight: 700;
            font-size: 13.5px;
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
            transition: all 0.2s ease;
        }

        a.btn:hover {
            background: var(--ac-hover);
            transform: translateY(-1px);
        }

        .btn-view-map {
            display: none;
            align-items: center;
            gap: 6px;
            background: var(--card-bg);
            border: 1px solid var(--ln);
            color: var(--tx);
            padding: 9px 16px;
            border-radius: var(--radius-md);
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
        }

        .prg {
            background: var(--pn);
            border: 1px solid var(--ln);
            border-radius: var(--radius-md);
            padding: 12px 14px;
            margin: 10px 0;
            font-size: 13px;
        }

        .prg ul {
            margin: 6px 0 8px;
            padding-left: 20px;
        }

        .prg li {
            margin: 3px 0;
        }

        /* Region Divider in list */
        .rg {
            font-size: 12.5px;
            font-weight: 800;
            color: var(--ac);
            margin: 16px 0 8px;
            letter-spacing: 0.04em;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .rg::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--ln);
        }

        /* Scholarship Cards List */
        .cards-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .card {
            border: 1px solid var(--ln);
            border-radius: var(--radius-lg);
            padding: 14px 16px;
            cursor: pointer;
            background: var(--card-bg);
            box-shadow: var(--shadow-sm);
            transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        .card:hover {
            border-color: var(--ac);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .card.sel {
            border-color: var(--ac);
            background: var(--card-bg);
            box-shadow: 0 0 0 2px var(--ac), var(--shadow-md);
        }

        .card-header-line {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 6px;
        }

        .card h3 {
            margin: 0;
            font-size: 15px;
            font-weight: 700;
            color: var(--tx);
            line-height: 1.35;
        }

        .card-arrow {
            color: var(--mu);
            font-size: 16px;
            transition: transform 0.2s ease, color 0.2s ease;
        }

        .card:hover .card-arrow {
            color: var(--ac);
            transform: translateX(3px);
        }

        .card-meta {
            display: flex;
            align-items: center;
            gap: 8px 12px;
            flex-wrap: wrap;
            font-size: 12.5px;
            color: var(--mu);
            margin-top: 8px;
        }

        .meta-country {
            font-weight: 600;
            color: var(--tx-sub);
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        /* Tags */
        .tag {
            display: inline-flex;
            align-items: center;
            font-size: 11px;
            padding: 2.5px 8px;
            border-radius: 99px;
            font-weight: 700;
            letter-spacing: 0.02em;
        }

        .tag.F {
            background: var(--success-soft);
            color: #15803d;
            border: 1px solid rgba(22, 163, 74, 0.25);
        }

        .tag.P {
            background: var(--go-soft);
            color: #b45309;
            border: 1px solid rgba(217, 119, 6, 0.25);
        }

        .tag.L {
            background: var(--ln);
            color: var(--tx-sub);
        }

        .note {
            font-size: 11.5px;
            color: var(--mu);
            margin-top: 24px;
            line-height: 1.6;
            padding: 12px 14px;
            background: var(--card-bg);
            border: 1px solid var(--ln);
            border-radius: var(--radius-md);
            flex-shrink: 0;
            min-height: fit-content;
        }

        .na {
            color: var(--mu);
            font-style: italic;
        }

        /* Mobile Tab Switcher */
        .mobile-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--pn);
            border-top: 1px solid var(--ln);
            padding: 8px 16px env(safe-area-inset-bottom, 8px);
            z-index: 1000;
            box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
            justify-content: space-around;
            gap: 12px;
        }

        .mobile-nav-btn {
            flex: 1;
            padding: 10px 16px;
            border-radius: var(--radius-md);
            border: 1px solid var(--ln);
            background: var(--bg);
            color: var(--mu);
            font-family: inherit;
            font-size: 13.5px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .mobile-nav-btn.active {
            background: var(--ac);
            border-color: var(--ac);
            color: #ffffff;
            box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
        }

        /* Responsive Breakpoints */
        @media (max-width: 960px) {
            html,
            body {
                height: auto;
                min-height: 100vh;
            }

            .app {
                grid-template-columns: 1fr;
                height: auto;
                min-height: 100vh;
                overflow: visible;
            }

            .left-pane,
            .right-pane {
                overflow-y: visible;
                height: auto;
                padding: 16px;
            }

            .left-pane {
                border-right: none;
                border-bottom: 1px solid var(--ln);
                padding: 16px 16px 110px;
            }

            .mobile-nav {
                display: flex;
            }

            /* In mobile tab mode */
            .app[data-active-tab="map"] .left-pane {
                display: flex;
                padding-bottom: 110px;
            }

            .app[data-active-tab="map"] .right-pane {
                display: none;
            }

            .app[data-active-tab="list"] .left-pane {
                display: none;
            }

            .app[data-active-tab="list"] .right-pane {
                display: flex;
                padding-bottom: 100px;
            }

            .btn-view-map {
                display: inline-flex;
            }

            .results-bar {
                flex-direction: column;
                align-items: stretch;
            }

            .search-box {
                max-width: none;
            }
        }

        @media (max-width: 480px) {
            .req {
                grid-template-columns: 1fr;
                gap: 4px;
            }

            .req span:nth-child(odd) {
                margin-top: 6px;
            }

            .route-info-card {
                justify-content: flex-start;
                gap: 16px;
            }
        }

        /* Scholaro Brand & Domain Highlight */
        .brand-domain {
            color: var(--ac);
            font-weight: 800;
        }

        /* Header Support / Coffee Pill Button */
        .btn-support-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25));
            border: 1px solid rgba(245, 158, 11, 0.4);
            color: #f59e0b;
            padding: 7px 13px;
            border-radius: 99px;
            font-family: inherit;
            font-size: 12px;
            font-weight: 700;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .btn-support-pill:hover {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
            transform: translateY(-1px);
        }

        /* Buy Me a Coffee Card */
        .support-card {
            background: var(--card-bg);
            border: 1px solid rgba(245, 158, 11, 0.35);
            border-radius: var(--radius-lg);
            padding: 22px;
            margin-top: 18px;
            box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.12), var(--shadow-sm);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            flex-shrink: 0;
            min-height: fit-content;
        }

        .support-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #f59e0b, #ec4899, #f7941d);
        }

        .support-card.highlight-pulse {
            border-color: #f59e0b;
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4), var(--shadow-lg);
            transform: scale(1.01);
        }

        .support-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
        }

        .support-icon {
            font-size: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(245, 158, 11, 0.15);
            width: 44px;
            height: 44px;
            border-radius: 12px;
            border: 1px solid rgba(245, 158, 11, 0.3);
            flex-shrink: 0;
        }

        .support-title {
            font-size: 16px;
            font-weight: 800;
            color: var(--tx);
            line-height: 1.25;
        }

        .support-tagline {
            font-size: 12px;
            color: var(--mu);
            font-weight: 500;
        }

        .support-desc {
            font-size: 13px;
            color: var(--tx-sub);
            line-height: 1.6;
            margin-bottom: 16px;
        }

        .payment-methods {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 12px;
        }

        .payment-pill {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 14px;
            border-radius: var(--radius-md);
            border: 1px solid var(--ln);
            background: var(--pn);
            cursor: pointer;
            transition: all 0.2s ease;
            user-select: none;
            gap: 10px;
        }

        .payment-pill:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .payment-pill.bkash {
            border-color: rgba(226, 19, 110, 0.3);
            background: rgba(226, 19, 110, 0.04);
        }

        .payment-pill.bkash:hover {
            border-color: #e2136e;
            box-shadow: 0 4px 14px rgba(226, 19, 110, 0.2);
        }

        .payment-pill.nagad {
            border-color: rgba(247, 148, 29, 0.3);
            background: rgba(247, 148, 29, 0.04);
        }

        .payment-pill.nagad:hover {
            border-color: #f7941d;
            box-shadow: 0 4px 14px rgba(247, 148, 29, 0.2);
        }

        .payment-left {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
            flex: 1;
        }

        .payment-tag {
            font-size: 11px;
            font-weight: 800;
            padding: 3.5px 8.5px;
            border-radius: 6px;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .payment-tag.bkash {
            background: #e2136e;
            color: #ffffff;
        }

        .payment-tag.nagad {
            background: #f7941d;
            color: #ffffff;
        }

        .payment-info {
            display: flex;
            flex-direction: column;
            gap: 1px;
            min-width: 0;
        }

        .payment-name {
            font-size: 11.5px;
            font-weight: 600;
            color: var(--mu);
            white-space: nowrap;
        }

        .payment-num {
            font-size: 13.5px;
            font-weight: 800;
            color: var(--tx);
            font-family: monospace, var(--font);
            letter-spacing: 0.02em;
            white-space: nowrap;
        }

        .btn-copy-num {
            background: var(--card-bg);
            border: 1px solid var(--ln);
            color: var(--tx-sub);
            padding: 6px 12px;
            border-radius: var(--radius-sm);
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 11.5px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.18s ease;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .payment-pill:hover .btn-copy-num {
            color: #ffffff;
            background: var(--ac);
            border-color: var(--ac);
            transform: scale(1.04);
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
        }

        .payment-pill.bkash:hover .btn-copy-num {
            background: #e2136e;
            border-color: #e2136e;
            box-shadow: 0 2px 8px rgba(226, 19, 110, 0.35);
        }

        .payment-pill.nagad:hover .btn-copy-num {
            background: #f7941d;
            border-color: #f7941d;
            box-shadow: 0 2px 8px rgba(247, 148, 29, 0.35);
        }

        /* Creator Footer Card */
        .creator-card {
            background: var(--card-bg);
            border: 1px solid var(--ln);
            border-radius: var(--radius-lg);
            padding: 22px;
            margin-top: 14px;
            box-shadow: var(--shadow-sm);
            display: flex;
            flex-direction: column;
            gap: 16px;
            flex-shrink: 0;
            min-height: fit-content;
        }

        .creator-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 14px;
        }

        .creator-profile {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .creator-avatar {
            width: 46px;
            height: 46px;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--ac), #8b5cf6);
            color: #ffffff;
            font-size: 20px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
            flex-shrink: 0;
        }

        .creator-name {
            font-size: 15.5px;
            font-weight: 800;
            color: var(--tx);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .creator-badge {
            font-size: 11px;
            font-weight: 700;
            padding: 2px 7.5px;
            border-radius: 99px;
            background: var(--ac-soft);
            color: var(--ac);
            border: 1px solid rgba(37, 99, 235, 0.25);
        }

        .creator-role {
            font-size: 12.5px;
            color: var(--mu);
            margin-top: 2px;
            line-height: 1.4;
        }

        .creator-web-link {
            color: var(--ac);
            text-decoration: none;
            font-weight: 700;
        }

        .creator-web-link:hover {
            text-decoration: underline;
        }

        .creator-links {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .social-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 7px 13px;
            border-radius: var(--radius-md);
            border: 1px solid var(--ln);
            background: var(--pn);
            color: var(--tx);
            text-decoration: none;
            font-size: 12px;
            font-weight: 700;
            transition: all 0.2s ease;
        }

        .social-link:hover {
            transform: translateY(-2px);
        }

        .social-link.fb:hover {
            border-color: #1877f2;
            color: #1877f2;
            background: rgba(24, 119, 242, 0.1);
            box-shadow: 0 3px 10px rgba(24, 119, 242, 0.2);
        }

        .social-link.insta:hover {
            border-color: #e1306c;
            color: #e1306c;
            background: rgba(225, 48, 108, 0.1);
            box-shadow: 0 3px 10px rgba(225, 48, 108, 0.2);
        }

        .social-link.linkedin:hover {
            border-color: #0a66c2;
            color: #0a66c2;
            background: rgba(10, 102, 194, 0.1);
            box-shadow: 0 3px 10px rgba(10, 102, 194, 0.2);
        }

        .social-link.web:hover {
            border-color: #10b981;
            color: #10b981;
            background: rgba(16, 185, 129, 0.1);
            box-shadow: 0 3px 10px rgba(16, 185, 129, 0.2);
        }

        .copyright-clause {
            font-size: 12px;
            color: var(--mu);
            border-top: 1px solid var(--ln);
            padding-top: 14px;
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .copyright-clause a {
            color: var(--ac);
            text-decoration: none;
            font-weight: 600;
        }

        .copyright-clause a:hover {
            text-decoration: underline;
        }

        /* Left Pane Support Widget */
        .left-pane-support {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 18px;
            background: var(--card-bg);
            border: 1px solid rgba(245, 158, 11, 0.35);
            border-radius: var(--radius-md);
            margin-top: 14px;
            margin-bottom: 24px;
            box-shadow: var(--shadow-sm);
        }

        .left-support-text {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }

        .left-support-text span {
            font-size: 13px;
            font-weight: 800;
            color: var(--tx);
        }

        .left-support-text small {
            font-size: 11.5px;
            color: var(--mu);
        }

        /* Support Modal Dialog */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(4, 9, 20, 0.78);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.22s ease, visibility 0.22s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-card {
            background: var(--pn);
            border: 1px solid rgba(245, 158, 11, 0.45);
            border-radius: var(--radius-lg);
            max-width: 640px;
            width: 100%;
            padding: 26px 28px;
            box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(245, 158, 11, 0.25);
            position: relative;
            max-height: 90vh;
            overflow-y: auto;
            transform: translateY(20px) scale(0.96);
            transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .modal-overlay.active .modal-card {
            transform: translateY(0) scale(1);
        }

        .modal-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #f59e0b, #ec4899, #f7941d);
        }

        .modal-close {
            position: absolute;
            top: 14px;
            right: 14px;
            background: var(--card-bg);
            border: 1px solid var(--ln);
            color: var(--mu);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.18s ease;
        }

        .modal-close:hover {
            color: var(--tx);
            border-color: var(--ac);
            transform: scale(1.1);
        }

        .modal-creator-box {
            margin-top: 18px;
            padding-top: 16px;
            border-top: 1px solid var(--ln);
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

.brand-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}
