
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --primary: #003B8E;
            --primary-dark: #002566;
            --primary-light: #1565C0;
            --accent: #1E90FF;
            --accent-light: #E3F0FF;
            --white: #FFFFFF;
            --gray-50: #F8FAFC;
            --gray-100: #F1F5F9;
            --gray-200: #E2E8F0;
            --gray-300: #CBD5E1;
            --gray-400: #94A3B8;
            --gray-500: #64748B;
            --gray-600: #475569;
            --gray-700: #334155;
            --gray-800: #1E293B;
            --success: #10B981;
            --warning: #F59E0B;
            --danger: #EF4444;
            --sidebar-w: 265px;
        }

        body { font-family: 'Inter', sans-serif; background: var(--gray-50); color: var(--gray-800); min-height: 100vh; }
        body.sidebar-open { overflow: hidden; }

        /* ===================== LOGIN ===================== */
        .login-page { min-height: 100vh; min-height: 100dvh; display: flex; }
        .login-page.hidden { display: none !important; }

        .login-left {
            flex: 1.1;
            background: linear-gradient(155deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
            display: flex; flex-direction: column; justify-content: center; align-items: center;
            padding: 60px 50px; position: relative; overflow: hidden;
        }
        .login-left::before {
            content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
            background: rgba(255,255,255,0.04); top: -150px; right: -150px;
        }
        .login-left::after {
            content: ''; position: absolute; width: 350px; height: 350px; border-radius: 50%;
            background: rgba(255,255,255,0.04); bottom: -100px; left: -80px;
        }
        .login-left-inner { position: relative; z-index: 1; text-align: center; }
        .uni-crest {
            width: 110px; height: 110px; background: white; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 28px; box-shadow: 0 20px 50px rgba(0,0,0,0.25);
        }
        .uni-crest img {
            width: 88px;
            height: 88px;
            object-fit: contain;
            border-radius: 50%;
            padding: 6px;
            background: #fff;
            box-shadow: inset 0 0 0 1px var(--gray-200);
        }
        .login-left-inner h1 { color: #fff; font-size: 1.9rem; font-weight: 800; margin-bottom: 6px; }
        .login-left-inner .tagline { color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 300; max-width: 300px; margin: 0 auto 35px; line-height: 1.6; }
        .feature-list { text-align: left; width: 100%; max-width: 320px; }
        .feature-item { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: rgba(255,255,255,0.85); font-size: 0.88rem; }
        .feature-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.85rem; }
        .portal-footer-note { margin-top: 45px; color: rgba(255,255,255,0.4); font-size: 0.72rem; }

        .login-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; background: white; min-height: 100vh; min-height: 100dvh; }
        .login-box { width: 100%; max-width: 430px; margin: 18px 0; }
        .login-box-header { margin-bottom: 32px; }
        .login-box-header h2 { font-size: 1.8rem; font-weight: 800; color: var(--gray-800); margin-bottom: 6px; }
        .login-box-header p { color: var(--gray-500); font-size: 0.88rem; }

        .form-group { margin-bottom: 20px; }
        .form-group label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--gray-700); margin-bottom: 7px; }
        .input-wrap { position: relative; }
        .input-wrap .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 0.85rem; }
        .form-control {
            width: 100%; padding: 12px 14px 12px 42px; border: 2px solid var(--gray-200);
            border-radius: 10px; font-size: 0.88rem; font-family: 'Inter', sans-serif;
            color: var(--gray-800); background: var(--gray-50); outline: none; transition: all 0.25s;
        }
        .form-control:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(0,59,142,0.1); }
        .eye-toggle { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--gray-400); transition: color 0.2s; }
        .eye-toggle:hover { color: var(--primary); }

        .form-opts { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
        .remember { display: flex; align-items: center; gap: 8px; font-size: 0.83rem; color: var(--gray-600); cursor: pointer; }
        .remember input[type=checkbox] { accent-color: var(--primary); width: 16px; height: 16px; }
        .forgot { font-size: 0.83rem; color: var(--primary); text-decoration: none; font-weight: 600; }
        .forgot:hover { text-decoration: underline; }

        .btn-login {
            width: 100%; padding: 13px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: white; border: none; border-radius: 10px; font-size: 0.95rem; font-weight: 700;
            font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.3s;
            display: flex; align-items: center; justify-content: center; gap: 9px;
        }
        .btn-login:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,59,142,0.35); }
        .btn-login:active { transform: translateY(0); }
        .btn-login:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

        .login-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--gray-300); font-size: 0.78rem; }
        .login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

        .help-links { text-align: center; font-size: 0.78rem; color: var(--gray-400); margin-top: 20px; }
        .help-links a { color: var(--primary); text-decoration: none; font-weight: 500; }
        .help-links a:hover { text-decoration: underline; }

        .alert-err { padding: 11px 14px; border-radius: 9px; font-size: 0.83rem; display: flex; align-items: center; gap: 9px; background: #FEE2E2; color: #DC2626; border: 1px solid #FECACA; margin-bottom: 18px; display: none; }

        /* ===================== APP SHELL ===================== */
        .app-shell { display: flex; min-height: 100vh; }

        /* Sidebar */
        .sidebar {
            width: var(--sidebar-w); background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
            height: 100dvh; position: fixed; left: 0; top: 0; z-index: 1000;
            display: flex; flex-direction: column; transition: transform 0.3s ease; overflow-y: auto;
        }
        .sidebar::-webkit-scrollbar { width: 4px; }
        .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

        .sb-header { padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
        .sb-brand { display: flex; align-items: center; gap: 12px; }
        .sb-brand-icon { width: 42px; height: 42px; background: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .sb-brand-logo {
            width: 34px;
            height: 34px;
            object-fit: contain;
            border-radius: 6px;
        }
        .sb-brand-text h3 { color: white; font-size: 0.88rem; font-weight: 700; }
        .sb-brand-text span { color: rgba(255,255,255,0.5); font-size: 0.68rem; }

        .sb-nav { padding: 15px 0; flex: 1; }
        .nav-sec { padding: 10px 20px 6px; font-size: 0.67rem; font-weight: 700; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 1.2px; }
        .nav-link {
            display: flex; align-items: center; gap: 12px; padding: 11px 20px;
            color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85rem;
            font-weight: 500; cursor: pointer; transition: all 0.2s; border-left: 3px solid transparent;
        }
        .nav-link:hover { background: rgba(255,255,255,0.08); color: white; }
        .nav-link.active { background: rgba(255,255,255,0.14); color: white; border-left-color: white; }
        .nav-link i { width: 18px; text-align: center; font-size: 0.9rem; }
        .nav-badge { margin-left: auto; background: var(--danger); color: white; font-size: 0.62rem; padding: 2px 7px; border-radius: 20px; font-weight: 700; }

        .sb-footer { padding: 18px 20px; border-top: 1px solid rgba(255,255,255,0.1); }
        .sb-user { display: flex; align-items: center; gap: 11px; }
        .sb-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #42A5F5); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
        .sb-user-info h4 { color: white; font-size: 0.78rem; font-weight: 700; }
        .sb-user-info span { color: rgba(255,255,255,0.45); font-size: 0.68rem; }
        .sb-logout { margin-left: auto; color: rgba(255,255,255,0.4); cursor: pointer; transition: color 0.2s; }
        .sb-logout:hover { color: white; }

        /* Main */
        .main {
            margin-left: var(--sidebar-w);
            min-height: 100vh;
            width: calc(100% - var(--sidebar-w));
            display: flex;
            flex-direction: column;
            overflow-y: hidden;
        }

        /* Topbar */
        .topbar {
            background: white; padding: 13px 28px; display: flex; align-items: center;
            justify-content: space-between; border-bottom: 1px solid var(--gray-200);
            position: sticky; top: 0; z-index: 900; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        }
        .tb-left { display: flex; align-items: center; gap: 14px; }
        .hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 5px; }
        .hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-600); border-radius: 2px; transition: all 0.3s; }
        .tb-title h2 { font-size: 1.05rem; font-weight: 700; color: var(--gray-800); }
        .tb-title p { font-size: 0.72rem; color: var(--gray-400); }
        .tb-right { display: flex; align-items: center; gap: 12px; }
        .tb-user {
            position: relative;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }
        .tb-user-dropdown {
            position: absolute;
            top: 62px;
            right: 0;
            min-width: 240px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(0, 0, 0, 0.08);
            display: none;
            z-index: 950;
        }
        .tb-user-dropdown.open {
            display: block;
        }
        .tb-user-dropdown-inner {
            padding: 14px 16px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .tb-user-dropdown-actions {
            margin-top: 6px;
        }
        .tb-user-dropdown-name {
            font-weight: 700;
            color: var(--gray-800);
        }
        .tb-user-dropdown-role {
            font-size: 0.8rem;
            color: var(--gray-500);
        }
        .tb-user-dropdown-meta {
            margin-top: 6px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .tb-user-dropdown-meta span {
            font-size: 0.68rem;
            color: var(--gray-400);
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        .tb-user-dropdown-item {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .tb-user-dropdown-meta strong {
            display: block;
            font-size: 0.82rem;
            color: var(--gray-700);
            word-break: break-word;
        }
        .tb-user-dropdown .tb-logout {
            width: 100%;
            justify-content: center;
            padding: 8px 0;
        }
        .tb-search { position: relative; display: flex; align-items: center; }
        .tb-search input { padding: 8px 14px 8px 36px; border: 1.5px solid var(--gray-200); border-radius: 25px; font-size: 0.82rem; font-family: 'Inter', sans-serif; background: var(--gray-50); outline: none; width: 200px; transition: all 0.3s; }
        .tb-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,59,142,0.1); width: 230px; }
        .tb-search i { position: absolute; left: 11px; color: var(--gray-400); font-size: 0.75rem; }
        .tb-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--gray-100); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gray-500); transition: all 0.2s; position: relative; }
        .tb-btn:hover { background: var(--accent-light); color: var(--primary); }
        .tb-logout {
            border: none;
            border-radius: 999px;
            padding: 6px 18px;
            display: flex;
            align-items: center;
            gap: 6px;
            background: var(--gray-100);
            color: var(--gray-700);
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
        }
        .tb-logout:hover {
            background: var(--primary);
            color: white;
        }
        .tb-logout-wrapper {
            margin-left: 12px;
            display: flex;
            align-items: center;
        }
        .tb-logout-form {
            margin: 0;
        }
        .notif-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; border: 2px solid white; }
        .tb-user { display: flex; align-items: center; gap: 9px; cursor: pointer; }
        .tb-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.78rem; }
        .tb-user-info span { display: block; font-size: 0.78rem; font-weight: 600; color: var(--gray-700); }
        .tb-user-course,
        .tb-user-email { display: block; font-size: 0.68rem; color: var(--gray-500); line-height: 1.2; }
        .tb-user-email { letter-spacing: 0.02em; }

        /* Content */
        .content,
        .content-area { padding: 24px 28px; flex: 1; overflow-y: auto; min-height: 0; }

        /* Welcome Banner */
        .welcome-banner {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
            border-radius: 16px;
            padding: 12px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            margin-bottom: 16px;
            position: relative;
            overflow: hidden;
            min-height: 96px;
        }
        .welcome-banner::before { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,0.05); right: -30px; top: -50px; }
        .welcome-banner::after { content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,0.04); right: 100px; bottom: -60px; }
        .wb-text { position: relative; z-index: 1; max-width: 70%; }
        .wb-text h2 { color: white; font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
        .wb-text p { color: rgba(255,255,255,0.7); font-size: 0.72rem; margin-bottom: 6px; }
        .wb-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.18); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
        .wb-illo { position: relative; z-index: 1; }
        .wb-illo i { font-size: 3.5rem; color: rgba(255,255,255,0.15); }

        /* Stats */
        .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
        .stat-card { background: white; border-radius: 14px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.07); border: 1px solid var(--gray-200); transition: all 0.2s; }
        .stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
        .stat-ico { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
        .ico-blue { background: #DBEAFE; color: #1D4ED8; }
        .ico-green { background: #D1FAE5; color: #059669; }
        .ico-amber { background: #FEF3C7; color: #D97706; }
        .ico-red { background: #FEE2E2; color: #DC2626; }
        .stat-data h3 { font-size: 1.5rem; font-weight: 800; color: var(--gray-800); line-height: 1; }
        .stat-data p { font-size: 0.75rem; color: var(--gray-500); margin-top: 4px; }
        .stat-sub { font-size: 0.7rem; display: flex; align-items: center; gap: 3px; margin-top: 5px; }
        .sub-up { color: var(--success); }
        .sub-down { color: var(--danger); }
        .sub-info { color: var(--gray-400); }

        /* Card */
        .card { background: white; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.07); border: 1px solid var(--gray-200); overflow: hidden; }
        .guide-card { border-left: 4px solid var(--primary); }
        .instruction-card { border-left: 4px solid var(--accent); }
        .instruction-stack { display: grid; gap: 12px; margin-bottom: 18px; }
        .instruction-card ol { padding-left: 20px; margin: 0; color: var(--gray-600); }
        .guide-actions { margin-top: 12px; }
        .card-head { padding: 16px 20px 14px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
        .card-head h3 { font-size: 0.9rem; font-weight: 700; color: var(--gray-800); display: flex; align-items: center; gap: 8px; }
        .card-head h3 i { color: var(--primary); }
        .card-head a { font-size: 0.78rem; color: var(--primary); text-decoration: none; font-weight: 600; }
        .card-head a:hover { text-decoration: underline; }
        .card-body { padding: 18px 20px; }
        .guide-card .card-body ul { list-style: disc; padding-left: 20px; margin: 0; color: var(--gray-600); }
        .guide-card .card-body a { color: var(--primary); }
        .profile-card .card-body,
        .profile-contact .card-body {
            padding: 14px 18px;
        }
        .overview-grid {
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 10px;
        }
        .overview-grid .metric-item {
            padding: 10px;
            min-height: 70px;
        }

        /* 2-col grid */
        .grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: 18px; margin-bottom: 18px; align-items: flex-start; }

        /* Results Table */
        .tbl { width: 100%; border-collapse: collapse; }
        .tbl th { text-align: left; padding: 10px 12px; font-size: 0.72rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; background: var(--gray-50); }
        .tbl td { padding: 11px 12px; font-size: 0.83rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
        .tbl tr:last-child td { border-bottom: none; }
        .tbl tr:hover td { background: #FAFBFF; }
        .g-badge { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; border-radius: 8px; font-weight: 800; font-size: 0.82rem; }
        .gA { background: #D1FAE5; color: #059669; }
        .gB { background: #DBEAFE; color: #1D4ED8; }
        .gC { background: #FEF3C7; color: #D97706; }
        .gD { background: #FEE2E2; color: #DC2626; }
        .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
        .dot-g { background: var(--success); }
        .dot-a { background: var(--warning); }
        .dot-r { background: var(--danger); }

        .card-body.notices-grid {
            padding: 14px;
            display: grid;
            gap: 12px;
        }
        .notices-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 12px;
        }
        .notice-item {
            background: var(--gray-50);
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .notice-heading {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .notice-heading strong {
            font-size: 0.85rem;
            color: var(--gray-800);
        }
        .notice-heading span {
            font-size: 0.7rem;
            color: var(--gray-500);
        }
        .notice-meta {
            font-size: 0.7rem;
            color: var(--gray-500);
        }
        /* Announcements */
        .ann-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--gray-100); }
        .ann-item:last-child { border-bottom: none; padding-bottom: 0; }
        .ann-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; flex-shrink: 0; }
        .ann-warn { background: #FEF3C7; color: #D97706; }
        .ann-info { background: #DBEAFE; color: #1D4ED8; }
        .ann-ok { background: #D1FAE5; color: #059669; }
        .ann-text h4 { font-size: 0.83rem; font-weight: 700; color: var(--gray-800); margin-bottom: 3px; }
        .ann-text p { font-size: 0.76rem; color: var(--gray-500); line-height: 1.45; }
        .ann-time { font-size: 0.7rem; color: var(--gray-400); margin-top: 4px; }

        /* 3-col grid */
        .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

        /* Schedule */
        .sched-item { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--gray-100); }
        .sched-item:last-child { border-bottom: none; }
        .sched-time { text-align: center; flex-shrink: 0; min-width: 52px; }
        .sched-time span { display: block; font-size: 0.78rem; font-weight: 700; color: var(--primary); }
        .sched-time small { font-size: 0.63rem; color: var(--gray-400); }
        .sched-bar { width: 3px; height: 36px; background: var(--primary); opacity: 0.25; border-radius: 2px; flex-shrink: 0; }
        .sched-info h4 { font-size: 0.8rem; font-weight: 700; color: var(--gray-800); }
        .sched-info p { font-size: 0.7rem; color: var(--gray-500); margin-top: 2px; }

        /* Quick links */
        .ql-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
        .ql-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 8px; border: 1.5px solid var(--gray-200); border-radius: 10px; cursor: pointer; transition: all 0.2s; gap: 7px; text-decoration: none; }
        .ql-item:hover { border-color: var(--primary); background: var(--accent-light); }
        .ql-item i { font-size: 1.15rem; color: var(--primary); }
        .ql-item span { font-size: 0.7rem; font-weight: 600; color: var(--gray-700); text-align: center; }

        /* Fees */
        .fees-amt { font-size: 1.45rem; font-weight: 800; color: var(--gray-800); }
        .fees-amt sub { font-size: 0.75rem; font-weight: 500; color: var(--gray-500); }
        .prog-track { height: 9px; background: var(--gray-200); border-radius: 5px; overflow: hidden; margin: 8px 0 6px; }
        .prog-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 1s ease; }
        .prog-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--gray-500); }
        .fee-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 0.8rem; color: var(--gray-600); }
        .fee-row:last-of-type { border-bottom: none; }
        .fee-row strong { color: var(--gray-800); }
        .btn-pay { width: 100%; margin-top: 14px; padding: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border: none; border-radius: 9px; font-size: 0.85rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: 'Inter', sans-serif; transition: all 0.2s; }
        .btn-pay:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,59,142,0.3); }

        /* Footer */
        .pg-footer { text-align: center; padding: 18px 0 10px; color: var(--gray-400); font-size: 0.76rem; }
        .pg-footer a { color: var(--primary); text-decoration: none; }

        /* Internal template pages */
        .page-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 14px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }
        .page-title {
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--gray-800);
            margin-bottom: 4px;
        }
        .page-subtitle {
            color: var(--gray-500);
            font-size: 0.82rem;
        }
        .page-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .btn-soft,
        .btn-primary {
            border: none;
            border-radius: 10px;
            padding: 10px 14px;
            font-size: 0.8rem;
            font-weight: 700;
            font-family: 'Inter', sans-serif;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .btn-soft {
            background: var(--gray-100);
            color: var(--gray-700);
            border: 1px solid var(--gray-200);
        }
        .btn-ghost {
            background: transparent;
            border-color: rgba(0, 59, 142, 0.35);
            color: var(--primary);
        }
        .btn-primary {
            color: white;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
        }
        .metric-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
            margin-bottom: 16px;
        }
        .metric-item {
            background: white;
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            padding: 12px 14px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        }
        .metric-item span {
            display: block;
            color: var(--gray-500);
            font-size: 0.72rem;
            margin-bottom: 4px;
        }
        .metric-item strong {
            color: var(--gray-800);
            font-size: 0.95rem;
        }
        .info-chip {
            font-size: 0.68rem;
            color: var(--primary);
            background: var(--accent-light);
            border-radius: 999px;
            padding: 5px 10px;
            font-weight: 700;
        }
        .table-wrap { overflow-x: auto; }
        .badge-pill {
            display: inline-flex;
            align-items: center;
            padding: 3px 8px;
            border-radius: 999px;
            font-size: 0.68rem;
            font-weight: 700;
        }
        .badge-ok { background: #D1FAE5; color: #047857; }
        .badge-pending { background: #FEF3C7; color: #B45309; }
        .plain-list {
            list-style: none;
            display: grid;
            gap: 10px;
            padding-left: 0;
        }
        .plain-list li {
            color: var(--gray-600);
            font-size: 0.82rem;
            padding-left: 16px;
            position: relative;
        }
        .plain-list li::before {
            content: '';
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--primary);
            position: absolute;
            left: 0;
            top: 7px;
        }
        .muted-text {
            color: var(--gray-500);
            font-size: 0.8rem;
        }
        .check-line {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 12px;
            color: var(--gray-700);
            font-size: 0.8rem;
        }
        .btn-row {
            display: flex;
            gap: 10px;
            margin-top: 14px;
            flex-wrap: wrap;
        }
        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }
        .field-block label {
            display: block;
            color: var(--gray-600);
            font-size: 0.75rem;
            font-weight: 700;
            margin-bottom: 6px;
        }
        .field-block input {
            width: 100%;
            border: 1.5px solid var(--gray-200);
            border-radius: 9px;
            padding: 10px 12px;
            font-size: 0.83rem;
            font-family: 'Inter', sans-serif;
            background: var(--gray-50);
            color: var(--gray-800);
        }
        .profile-head {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 14px;
        }
        .profile-avatar {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 0.92rem;
        }
        .profile-name {
            font-size: 0.95rem;
            color: var(--gray-800);
            margin-bottom: 2px;
        }
        .profile-summary .card-body {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        .profile-info h4 {
            font-size: 1.15rem;
            color: var(--gray-800);
            margin-bottom: 4px;
        }
        .profile-meta {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 6px;
            font-size: 0.9rem;
            color: var(--gray-600);
        }

        .nav-toggle{
            font-size: 0.9rem;
            font-weight: 500;
            color: #ffffff;
            display: flex;
            align-items: center;
            width: 100%;
            justify-content: space-between;
            gap: 12px;
        }
        
        .nav-toggle:hover{
            background:rgba(255,255,255,0.1);
        }
        
        .nav-submenu{
            display:none;
            padding-left:15px;
        }
        
        .nav-collapsible.active .nav-submenu{
            display:block;
        }
        
        .toggle-icon{
            font-size:12px;
            display:flex;
            align-items:center;
            margin-left: auto;
        }
        /* Overlay for mobile sidebar */
        .sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1090; }
        .sb-overlay.on { display: block; }

        /* Animations */
        @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
        .fade-up { animation: fadeUp 0.4s ease both; }

        /* ===================== RESPONSIVE ===================== */
        @media(max-width: 1100px) {
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .grid-3 { grid-template-columns: 1fr 1fr; }
        }
        @media(max-width: 900px) {
            .login-page { display: block; min-height: 100vh; min-height: 100dvh; }
            .login-left { display: none; }
            .login-right {
                min-height: 100vh;
                min-height: 100dvh;
                align-items: flex-start;
                padding: 28px 18px;
                overflow-y: auto;
            }
            .login-box { margin: 0 auto; }
            .grid-2 { grid-template-columns: 1fr; }
            .tb-search { display: none; }
            .metric-grid { grid-template-columns: 1fr 1fr; }
        }
        @media(max-width: 768px) {
            .sidebar { transform: translateX(-100%); }
            .sidebar.open { transform: translateX(0); z-index: 1100; }
            .main { margin-left: 0; width: 100%; }
            .hamburger { display: flex; }
            .content,
            .content-area { padding: 16px; }
            .topbar { padding: 12px 16px; }
            .grid-3 { grid-template-columns: 1fr; }
            .wb-illo { display: none; }
            .form-grid { grid-template-columns: 1fr; }
        }
        @media(max-width: 520px) {
            .stats-grid { grid-template-columns: 1fr 1fr; }
            .tb-user-info { display: none; }
            .stat-data h3 { font-size: 1.25rem; }
            .form-opts {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            .tb-logout span { display: none; }
        }
        @media(max-height: 760px) {
            .login-right {
                align-items: flex-start;
                overflow-y: auto;
            }
        }

        

/* UON_LOGIN_VIEW_STYLES_START */
.uon-login-shell {
        min-height: 100vh;
        min-height: 100dvh;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
        background: #0f172a;
    }

    .uon-login-brand {
        position: relative;
        padding: clamp(40px, 5vw, 84px);
        display: flex;
        align-items: flex-end;
        background:
            linear-gradient(115deg, rgba(2, 26, 56, 0.88) 0%, rgba(4, 49, 96, 0.72) 55%, rgba(3, 20, 44, 0.9) 100%),
            url('../images/login-campus-bg.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        overflow: hidden;
    }

    .uon-login-brand::before {
        content: '';
        position: absolute;
        inset: auto -140px -140px auto;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.07);
        filter: blur(2px);
    }

    .uon-brand-content {
        position: relative;
        z-index: 1;
        max-width: 620px;
        color: #ffffff;
    }

    .uon-brand-badge {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 8px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.24);
        font-size: 0.82rem;
        font-weight: 600;
        margin-bottom: 18px;
        letter-spacing: 0.3px;
        backdrop-filter: blur(4px);
    }

    .uon-brand-title {
        font-size: clamp(1.7rem, 2.9vw, 2.6rem);
        line-height: 1.22;
        margin: 0 0 14px;
        font-weight: 800;
    }

    .uon-brand-text {
        margin: 0;
        color: rgba(255, 255, 255, 0.86);
        font-size: 1rem;
        line-height: 1.7;
        max-width: 560px;
    }

    .uon-login-panel {
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: clamp(28px, 3vw, 54px);
        position: relative;
        overflow-y: auto;
    }

    .uon-login-card {
        width: 100%;
        max-width: 360px;
    }

    .uon-logo {
        width: 84px;
        height: 84px;
        object-fit: contain;
        display: block;
        margin: 0 auto 24px;
        border-radius: 50%;
        background: #ffffff;
        padding: 6px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    }

    .uon-login-header h1 {
        font-size: 1.65rem;
        font-weight: 800;
        color: #0f172a;
        margin: 0 0 8px;
    }

    .uon-login-header p {
        margin: 0 0 26px;
        color: #475569;
        font-size: 0.95rem;
    }

    .uon-alert-success,
    .uon-alert-error {
        border-radius: 12px;
        padding: 12px 14px;
        margin-bottom: 14px;
        font-size: 0.86rem;
        border: 1px solid transparent;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .uon-alert-success {
        background: #ecfdf3;
        border-color: #bbf7d0;
        color: #166534;
    }

    .uon-alert-error {
        background: #fef2f2;
        border-color: #fecaca;
        color: #b91c1c;
    }

    .uon-field {
        margin-bottom: 18px;
    }

    .uon-field label {
        display: block;
        font-size: 0.83rem;
        font-weight: 700;
        color: #334155;
        margin-bottom: 8px;
    }

    .uon-input-wrap {
        position: relative;
    }

    .uon-input-wrap .fa-solid {
        position: absolute;
        top: 50%;
        left: 14px;
        transform: translateY(-50%);
        color: #64748b;
        font-size: 0.85rem;
    }

    .uon-input {
        width: 100%;
        height: 50px;
        border-radius: 12px;
        border: 1px solid #d9e2ec;
        background: #f8fafc;
        padding: 12px 44px 12px 40px;
        font-size: 0.92rem;
        color: #0f172a;
        transition: all 0.2s ease;
    }

    .uon-input:focus {
        outline: none;
        border-color: #0284c7;
        box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.16);
        background: #ffffff;
    }

    .uon-input::placeholder {
        color: #94a3b8;
    }

    .uon-toggle-password {
        position: absolute;
        right: 13px;
        top: 50%;
        transform: translateY(-50%);
        color: #64748b;
        cursor: pointer;
    }

    .uon-form-links {
        margin: 4px 0 18px;
        text-align: right;
    }

    .uon-form-links a {
        text-decoration: none;
        color: #0c4a6e;
        font-size: 0.83rem;
        font-weight: 600;
    }

    .uon-form-links a:hover {
        text-decoration: underline;
    }

    .uon-login-btn {
        width: 100%;
        border: 0;
        border-radius: 12px;
        padding: 13px 16px;
        font-size: 0.95rem;
        font-weight: 700;
        color: #ffffff;
        background: linear-gradient(135deg, #0b3a7a 0%, #0e5ab5 100%);
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .uon-login-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 25px rgba(14, 90, 181, 0.28);
    }

    .uon-help {
        margin-top: 16px;
        text-align: center;
        font-size: 0.8rem;
        color: #64748b;
    }

    .uon-help a {
        color: #0c4a6e;
        text-decoration: none;
        font-weight: 600;
    }

    .uon-help a:hover {
        text-decoration: underline;
    }

    .uon-copy {
        margin-top: 22px;
        font-size: 0.74rem;
        color: #94a3b8;
        text-align: center;
    }

    @media (max-width: 980px) {
        .uon-login-shell {
            grid-template-columns: 1fr;
        }

        .uon-login-brand {
            min-height: 280px;
            align-items: flex-end;
        }

        .uon-login-panel {
            min-height: auto;
            padding: 26px 18px 34px;
        }
    }
/* UON_LOGIN_VIEW_STYLES_END */

