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

    body {
      font-family: 'IBM Plex Sans', sans-serif;
      background: #0d0d14;
      color: #fff;
      min-height: 100vh
    }

    .hdr {
      height: 58px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06)
    }

    .brand {
      font-family: 'Syne', sans-serif;
      font-size: 1.1rem;
      font-weight: 700
    }

    .logout {
      font-size: 0.8rem;
      color: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      background: none;
      border: 1px solid rgba(255, 255, 255, 0.15);
      padding: 6px 14px;
      border-radius: 6px
    }

    .logout:hover {
      border-color: #1a56db;
      color: #fff
    }

    /* Login */
    .login-wrap {
      max-width: 380px;
      margin: 100px auto;
      padding: 20px
    }

    .card {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 20px;
      padding: 36px 28px
    }

    h2 {
      font-family: 'Syne', sans-serif;
      font-size: 1.5rem;
      margin-bottom: 20px;
      text-align: center
    }

    .field {
      margin-bottom: 14px
    }

    .field label {
      display: block;
      font-size: 0.78rem;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.5);
      text-transform: uppercase;
      letter-spacing: .05em;
      margin-bottom: 6px
    }

    .field input {
      width: 100%;
      border: 1.5px solid rgba(255, 255, 255, 0.12);
      border-radius: 8px;
      padding: 11px 14px;
      font-family: inherit;
      font-size: 0.95rem;
      outline: none;
      background: rgba(255, 255, 255, 0.03);
      color: #fff
    }

    .field input:focus {
      border-color: #1a56db
    }
    .password-wrapper {
      position: relative;
    }
    .password-wrapper input {
      padding-right: 44px !important;
    }
    .password-toggle {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      color: rgba(255, 255, 255, 0.4);
      user-select: none;
      font-size: 1.1rem;
      transition: color 0.2s;
    }
    .password-toggle:hover {
      color: #fff;
    }

    .btn {
      display: block;
      width: 100%;
      padding: 12px;
      border-radius: 8px;
      font-family: inherit;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      border: none;
      background: linear-gradient(135deg, #1a56db, #1e429f);
      color: #fff;
      margin-top: 6px
    }

    .btn:hover {
      transform: translateY(-1px)
    }

    #loginMsg {
      text-align: center;
      font-size: 0.85rem;
      margin-top: 10px;
      color: #f87171;
      min-height: 18px
    }

    /* Dashboard */
    .wrap {
      max-width: 1000px;
      margin: 30px auto;
      padding: 0 20px
    }

    .stats {
      display: flex;
      gap: 14px;
      margin-bottom: 20px;
      flex-wrap: wrap
    }

    .stat {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      padding: 16px 22px;
      flex: 1;
      min-width: 120px
    }

    .stat .num {
      font-family: 'Syne', sans-serif;
      font-size: 1.8rem;
      font-weight: 800;
      color: #60a5fa
    }

    .stat .lbl {
      font-size: 0.75rem;
      color: rgba(255, 255, 255, 0.5);
      text-transform: uppercase;
      letter-spacing: .05em;
      margin-top: 2px
    }

    .tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 16px
    }

    .tab {
      padding: 8px 18px;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: rgba(255, 255, 255, 0.6)
    }

    .tab.active {
      background: rgba(26, 86, 219, 0.2);
      border-color: #1a56db;
      color: #fff
    }

    .search {
      width: 100%;
      border: 1.5px solid rgba(255, 255, 255, 0.12);
      border-radius: 8px;
      padding: 10px 14px;
      font-family: inherit;
      font-size: 0.9rem;
      outline: none;
      background: rgba(255, 255, 255, 0.03);
      color: #fff;
      margin-bottom: 16px
    }

    .search:focus {
      border-color: #1a56db
    }

    .user-card {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      padding: 16px 20px;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap
    }

    .user-info {
      flex: 1;
      min-width: 200px
    }

    .user-info .email {
      font-weight: 600;
      font-size: 0.95rem
    }

    .user-info .meta {
      font-size: 0.78rem;
      color: rgba(255, 255, 255, 0.45);
      margin-top: 3px
    }

    .badge {
      font-size: 0.72rem;
      padding: 3px 10px;
      border-radius: 100px;
      font-weight: 600;
      display: inline-block;
      margin-top: 6px
    }

    .badge.granted {
      background: rgba(5, 150, 105, 0.15);
      color: #6ee7b7;
      border: 1px solid rgba(5, 150, 105, 0.3)
    }

    .badge.pending {
      background: rgba(217, 119, 6, 0.15);
      color: #fbbf24;
      border: 1px solid rgba(217, 119, 6, 0.3)
    }

    .actions {
      display: flex;
      gap: 8px
    }

    .btn-sm {
      padding: 8px 16px;
      border-radius: 8px;
      font-size: 0.84rem;
      font-weight: 600;
      cursor: pointer;
      border: none
    }

    .btn-approve {
      background: #059669;
      color: #fff
    }

    .btn-approve:hover {
      background: #047857
    }

    .btn-revoke {
      background: rgba(220, 38, 38, 0.15);
      color: #f87171;
      border: 1px solid rgba(220, 38, 38, 0.3)
    }

    .btn-revoke:hover {
      background: rgba(220, 38, 38, 0.25)
    }

    .org-input {
      border: 1.5px solid rgba(255, 255, 255, 0.12);
      border-radius: 6px;
      padding: 6px 10px;
      font-size: 0.8rem;
      background: rgba(255, 255, 255, 0.03);
      color: #fff;
      font-family: inherit;
      width: 120px
    }

    .empty {
      text-align: center;
      color: rgba(255, 255, 255, 0.4);
      padding: 40px;
      font-size: 0.9rem
    }

    .loading {
      text-align: center;
      color: rgba(255, 255, 255, 0.4);
      padding: 40px
    }

    /* ── Reports Tab Styles ──────────────── */
    .reports-section { display: none }
    .reports-section.active { display: block }
    .users-section.active { display: block }

    .report-search {
      width: 100%;
      border: 1.5px solid rgba(255, 255, 255, 0.12);
      border-radius: 8px;
      padding: 10px 14px;
      font-family: inherit;
      font-size: 0.9rem;
      outline: none;
      background: rgba(255, 255, 255, 0.03);
      color: #fff;
      margin-bottom: 16px
    }

    .report-search:focus { border-color: #7c3aed }

    .student-report-card {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 14px;
      margin-bottom: 12px;
      overflow: hidden;
      transition: border-color 0.2s
    }

    .student-report-card:hover { border-color: rgba(124, 58, 237, 0.3) }

    .src-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 20px;
      cursor: pointer;
      gap: 14px;
      flex-wrap: wrap
    }

    .src-header:hover { background: rgba(255, 255, 255, 0.02) }

    .src-info { flex: 1; min-width: 200px }
    .src-email { font-weight: 600; font-size: 0.95rem }
    .src-meta { font-size: 0.78rem; color: rgba(255, 255, 255, 0.4); margin-top: 3px }

    .src-stats {
      display: flex;
      gap: 16px;
      align-items: center;
      flex-wrap: wrap
    }

    .src-stat {
      text-align: center;
      min-width: 55px
    }

    .src-stat .ss-num {
      font-family: 'Syne', sans-serif;
      font-size: 1.1rem;
      font-weight: 800;
      color: #a78bfa
    }

    .src-stat .ss-lbl {
      font-size: 0.68rem;
      color: rgba(255, 255, 255, 0.35);
      text-transform: uppercase;
      letter-spacing: .04em
    }

    .src-toggle {
      font-size: 1rem;
      color: rgba(255, 255, 255, 0.3);
      transition: transform 0.3s
    }

    .src-toggle.open { transform: rotate(180deg) }

    .src-body {
      display: none;
      padding: 0 20px 16px;
      border-top: 1px solid rgba(255, 255, 255, 0.06)
    }

    .src-body.open { display: block }

    .src-test-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
      font-size: 0.85rem;
      gap: 10px;
      flex-wrap: wrap
    }

    .src-test-row:last-child { border-bottom: none }

    .str-topic { font-weight: 600; min-width: 140px }
    .str-date { color: rgba(255, 255, 255, 0.4); font-size: 0.78rem }

    .str-scores {
      display: flex;
      gap: 12px;
      align-items: center
    }

    .str-scores span { font-size: 0.82rem }

    .admin-score-pill {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 100px;
      font-size: 0.75rem;
      font-weight: 600
    }

    .admin-score-pill.high { background: rgba(5,150,105,0.15); color: #6ee7b7; border: 1px solid rgba(5,150,105,0.3) }
    .admin-score-pill.mid { background: rgba(217,119,6,0.15); color: #fbbf24; border: 1px solid rgba(217,119,6,0.3) }
    .admin-score-pill.low { background: rgba(220,38,38,0.15); color: #f87171; border: 1px solid rgba(220,38,38,0.3) }

    .btn-combine-admin {
      padding: 6px 14px;
      border-radius: 6px;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      border: none;
      background: linear-gradient(135deg, #7c3aed, #5b21b6);
      color: #fff;
      margin-top: 10px;
      transition: all 0.2s
    }

    .btn-combine-admin:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3)
    }

    .admin-combined {
      margin-top: 16px;
      padding: 20px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(124, 58, 237, 0.2);
      border-radius: 12px;
      animation: fadeIn 0.3s ease
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(8px) }
      to { opacity: 1; transform: translateY(0) }
    }

    .admin-combined h4 {
      font-family: 'Syne', sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      margin-bottom: 12px
    }

    .ac-stats {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 14px
    }

    .ac-stat {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 8px;
      padding: 10px 14px;
      text-align: center;
      min-width: 70px
    }

    .ac-stat .acn {
      font-family: 'Syne', sans-serif;
      font-size: 1.1rem;
      font-weight: 800
    }

    .ac-stat .acl {
      font-size: 0.65rem;
      color: rgba(255, 255, 255, 0.35);
      text-transform: uppercase;
      letter-spacing: .04em;
      margin-top: 2px
    }

    .admin-chart-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 12px
    }

    .admin-chart-box {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 8px;
      padding: 14px
    }

    .admin-chart-box h5 {
      font-size: 0.8rem;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.6);
      margin-bottom: 10px
    }

    .report-empty {
      text-align: center;
      padding: 40px;
      color: rgba(255, 255, 255, 0.35)
    }

    .report-stat-row {
      display: flex;
      gap: 14px;
      margin-bottom: 20px;
      flex-wrap: wrap
    }

    .rstat {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      padding: 16px 22px;
      flex: 1;
      min-width: 120px
    }

    .rstat .rnum {
      font-family: 'Syne', sans-serif;
      font-size: 1.8rem;
      font-weight: 800;
      color: #a78bfa
    }

    .rstat .rlbl {
      font-size: 0.75rem;
      color: rgba(255, 255, 255, 0.5);
      text-transform: uppercase;
      letter-spacing: .05em;
      margin-top: 2px
    }

    /* ── Modal (Individual Test Detail) ────── */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(6px);
      z-index: 200;
      align-items: center;
      justify-content: center;
      padding: 20px
    }

    .modal-overlay.open {
      display: flex
    }

    .modal-box {
      background: #13131e;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 20px;
      padding: 28px;
      max-width: 700px;
      width: 100%;
      max-height: 85vh;
      overflow-y: auto;
      animation: fadeSlide 0.3s ease
    }

    .modal-box::-webkit-scrollbar { width: 6px }
    .modal-box::-webkit-scrollbar-track { background: transparent }
    .modal-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px }

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

    .modal-hdr h3 {
      font-family: 'Syne', sans-serif;
      font-size: 1.1rem;
      font-weight: 700
    }

    .modal-close {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: #fff;
      width: 32px;
      height: 32px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s
    }

    .modal-close:hover {
      background: rgba(220, 38, 38, 0.2);
      border-color: rgba(220, 38, 38, 0.4)
    }

    .modal-stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      margin-bottom: 20px
    }

    .modal-stat {
      text-align: center;
      padding: 12px;
      background: rgba(255, 255, 255, 0.03);
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.06)
    }

    .modal-stat .ms-num {
      font-family: 'Syne', sans-serif;
      font-size: 1.3rem;
      font-weight: 800
    }

    .modal-stat .ms-lbl {
      font-size: 0.7rem;
      color: rgba(255, 255, 255, 0.4);
      text-transform: uppercase;
      letter-spacing: .04em;
      margin-top: 2px
    }

    .modal-chart-wrap {
      margin-bottom: 20px;
      max-width: 260px;
      margin-left: auto;
      margin-right: auto
    }

    .q-review-hdr {
      font-family: 'Syne', sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08)
    }

    .q-item {
      padding: 10px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
      font-size: 0.84rem
    }

    .q-item .q-id {
      font-weight: 600;
      margin-right: 6px
    }

    .q-item .q-status {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 0.72rem;
      font-weight: 600;
      margin-left: 6px
    }

    .q-status.correct { background: rgba(5,150,105,0.15); color: #6ee7b7 }
    .q-status.wrong { background: rgba(220,38,38,0.15); color: #f87171 }
    .q-status.unattempted { background: rgba(217,119,6,0.15); color: #fbbf24 }

    .q-detail {
      margin-top: 4px;
      font-size: 0.8rem;
      color: rgba(255, 255, 255, 0.5)
    }

    .q-card {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 16px;
      text-align: left;
    }
    .q-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }
    .q-card-text {
      font-size: 0.9rem;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.9);
      margin-bottom: 12px;
      white-space: pre-wrap;
      text-align: left;
    }
    .q-image-container {
      text-align: center;
      margin-bottom: 14px;
      background: rgba(255, 255, 255, 0.02);
      border-radius: 8px;
      padding: 10px;
      border: 1px dashed rgba(255, 255, 255, 0.1);
    }
    .q-image-container img {
      max-width: 100%;
      height: auto;
      border-radius: 4px;
    }
    .q-card-opts {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 12px;
    }
    .q-card-opt {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      font-size: 0.85rem;
      transition: all 0.2s;
      text-align: left;
    }
    .q-card-opt-letter {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      font-weight: 600;
      font-size: 0.75rem;
      flex-shrink: 0;
    }
    .q-card-opt.correct {
      border-color: #059669;
      background: rgba(5, 150, 105, 0.1);
      color: #6ee7b7;
    }
    .q-card-opt.correct .q-card-opt-letter {
      background: #059669;
      color: #fff;
    }
    .q-card-opt.wrong-chosen {
      border-color: #dc2626;
      background: rgba(220, 38, 38, 0.1);
      color: #f87171;
    }
    .q-card-opt.wrong-chosen .q-card-opt-letter {
      background: #dc2626;
      color: #fff;
    }
    .q-card-exp {
      background: rgba(124, 58, 237, 0.05);
      border-left: 3px solid #7c3aed;
      padding: 10px 14px;
      border-radius: 0 8px 8px 0;
      font-size: 0.8rem;
      color: #c084fc;
      line-height: 1.4;
      text-align: left;
    }
    .loading-spinner {
      text-align: center;
      padding: 40px 20px;
      color: rgba(255, 255, 255, 0.4)
    }
    .loading-spinner::after {
      content: '';
      display: inline-block;
      width: 28px;
      height: 28px;
      border: 3px solid rgba(124, 58, 237, 0.2);
      border-top-color: #7c3aed;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      margin-top: 12px
    }
    @keyframes spin {
      to { transform: rotate(360deg) }
    }
    @keyframes fadeSlide {
      from { opacity: 0; transform: translateY(16px) }
      to { opacity: 1; transform: translateY(0) }
    }

    /* Portal Switcher */
    .portal-switcher {
      display: flex;
      gap: 12px;
      margin: 20px 0 24px 0;
      background: rgba(255, 255, 255, 0.03);
      padding: 6px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      width: fit-content;
    }
    .portal-btn {
      background: transparent;
      border: none;
      color: rgba(255, 255, 255, 0.6);
      padding: 10px 24px;
      border-radius: 8px;
      font-family: 'Syne', sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .portal-btn.active {
      background: #1a56db;
      color: #fff;
      box-shadow: 0 4px 15px rgba(26, 86, 219, 0.4);
    }
    .portal-btn:hover:not(.active) {
      background: rgba(255, 255, 255, 0.06);
      color: #fff;
    }
    .btn-approve-tmua { background: #059669; color: #fff; border: none; padding: 6px 14px; border-radius: 6px; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: background 0.15s; }
    .btn-approve-tmua:hover { background: #10b981; }
    .btn-revoke-tmua { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); padding: 6px 14px; border-radius: 6px; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.15s; }
    .btn-revoke-tmua:hover { background: rgba(239, 68, 68, 0.3); }
    
    /* Student Report Cards in Admin */
    .student-report-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; margin-bottom: 12px; overflow: hidden; transition: border-color 0.15s; }
    .student-report-card:hover { border-color: rgba(255, 255, 255, 0.15); }
    .src-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; cursor: pointer; background: rgba(255, 255, 255, 0.01); }
    .src-info { display: flex; flex-direction: column; gap: 4px; }
    .src-email { font-weight: 600; font-size: 0.95rem; color: #fff; }
    .src-meta { font-size: 0.78rem; color: rgba(255, 255, 255, 0.4); }
    .src-stats { display: flex; gap: 24px; align-items: center; }
    .src-stat { text-align: center; }
    .ss-num { font-weight: 700; font-size: 1.1rem; color: #fff; }
    .ss-lbl { font-size: 0.7rem; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; letter-spacing: 0.05em; }
    .src-toggle { font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); transition: transform 0.2s; }
    .src-body { display: none; padding: 20px; border-top: 1px solid rgba(255, 255, 255, 0.06); background: rgba(0, 0, 0, 0.2); }

    /* ── Responsive Media Queries ──────────── */
    @media (max-width: 860px) {
      .admin-chart-grid { grid-template-columns: 1fr; }
      .hdr { padding: 10px 16px; min-height: 56px; }
      .brand { font-size: 0.95rem; }
      .wrap { padding: 0 12px; margin: 16px auto; }
      .portal-switcher { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
      .portal-btn { justify-content: center; padding: 10px 12px; font-size: 0.85rem; }
      .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
      .stat { padding: 12px 14px; min-width: auto; }
      .stat .num { font-size: 1.5rem; }
      .tabs { flex-wrap: wrap; gap: 6px; }
      .tab { flex: 1; text-align: center; padding: 8px 12px; font-size: 0.8rem; min-width: 100px; }
      .user-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px; }
      .user-card > div:last-child { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
      .user-card > div:last-child button { flex: 1; min-width: 120px; text-align: center; justify-content: center; }
      .src-header { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 16px; }
      .src-stats { width: 100%; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 10px; gap: 10px; }
      .modal-box { padding: 20px 16px; width: 95%; max-height: 90vh; }
    }

    @media (max-width: 480px) {
      .portal-switcher { grid-template-columns: 1fr 1fr; }
      .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
      .stat .num { font-size: 1.3rem; }
      .login-wrap { padding: 12px; }
      .card { padding: 24px 18px; }
    }

