﻿  :root {
    /* =====================================================================
       SOFT UI / NEUMORPHISM DESIGN SYSTEM (ICE-BLUE & SKY-CYAN)
       Selaras dengan referensi visual Soft UI Dashboard
       ===================================================================== */
    --bg-canvas: #ECF2F9;
    --bg-canvas-deep: #E2ECF7;
    --surface-card: #EFF5FC;
    --surface-raised-top: #F7FAFF;
    --surface-raised-bot: #E7EFFA;
    --surface-well: #E5EEF8;
    --surface-well-deep: #DCE7F5;
    --surface-glass: rgba(238, 244, 251, 0.88);

    --cyan-400: #48C6F8;
    --cyan-500: #1EAEEB;
    --cyan-600: #0284C7;
    --cyan-700: #0369A1;
    --accent-rgb: 14, 165, 233;
    --sidebar-top: #F2F7FD;
    --sidebar-bot: #E7F0FA;
    --sidebar-btn-top: #FAFCFF;
    --sidebar-btn-bot: #E8F1FC;
    --hero-top: #F7FBFF;
    --hero-mid: #E8F2FC;
    --hero-bot: #DCEFFC;
    --orb-tint: rgba(56, 189, 248, 0.12);

    --navy-950: #142A47;
    --navy-900: #1E3A5F;
    --navy-800: #274874;
    --blue-700: #0369A1;
    --blue-600: #0EA5E9;
    --blue-500: #38BDF8;
    --blue-100: #D9F0FD;
    --blue-50: #EDF8FF;

    --amber-600: #0284C7;
    --amber-500: #2563EB;
    --amber-100: #E0F2FE;
    --amber-50: #F0F7FF;

    --emerald-600: #059669;
    --emerald-500: #10B981;
    --emerald-100: #D1FAE5;

    --sky-600: #0284C7;
    --sky-500: #0EA5E9;
    --sky-100: #DCF2FD;

    --rose-600: #DC2626;
    --rose-500: #EF4444;
    --rose-100: #FEE2E2;

    --warn-600: #B45309;
    --warn-500: #D97706;
    --warn-100: #FEF3C7;

    --slate-900: #162B47;
    --slate-800: #233B5D;
    --slate-700: #334E68;
    --slate-600: #4B637E;
    --slate-500: #667F9B;
    --slate-400: #8BA0B8;
    --slate-300: #C7D6E7;
    --slate-200: #DAE6F3;
    --slate-100: #ECF2F9;
    --slate-50: #F4F8FD;
    --white: #FFFFFF;

    --neu-light: rgba(255, 255, 255, 0.94);
    --neu-dark: rgba(164, 185, 212, 0.48);
    --neu-dark-strong: rgba(151, 174, 205, 0.62);

    --shadow-neu-xs:
      -3px -3px 7px var(--neu-light),
      3px 3px 8px var(--neu-dark);
    --shadow-neu-sm:
      -5px -5px 12px var(--neu-light),
      5px 5px 12px var(--neu-dark);
    --shadow-card:
      -8px -8px 18px var(--neu-light),
      8px 8px 20px var(--neu-dark);
    --shadow-card-hover:
      -10px -10px 22px rgba(255, 255, 255, 0.98),
      10px 12px 26px var(--neu-dark-strong);
    --shadow-inset:
      inset 3px 3px 7px rgba(164, 185, 212, 0.52),
      inset -3px -3px 7px rgba(255, 255, 255, 0.92);
    --shadow-inset-sm:
      inset 2px 2px 5px rgba(164, 185, 212, 0.46),
      inset -2px -2px 5px rgba(255, 255, 255, 0.9);
    --shadow-cyan-glow:
      -3px -3px 8px rgba(255, 255, 255, 0.8),
      4px 7px 16px rgba(var(--accent-rgb), 0.34);
    --shadow-modal:
      0 26px 64px -14px rgba(20, 42, 71, 0.28),
      -8px -8px 20px rgba(255, 255, 255, 0.65);

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 26px;
    --radius-pill: 999px;

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

    --sidebar-width: 274px;
    --sidebar-collapsed-width: 84px;
    --transition-fast: 200ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html,
  body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: var(--font-sans);
    background-color: var(--bg-canvas);
    background-image:
      radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.72) 0%, transparent 45%),
      radial-gradient(circle at 88% 92%, var(--orb-tint) 0%, transparent 48%);
    scroll-behavior: auto;
    color: var(--slate-800);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }

  h1,
  h2,
  h3,
  h4 {
    font-family: var(--font-display);
    margin: 0;
    color: var(--navy-900);
    letter-spacing: -0.02em;
  }

  p {
    margin: 0;
  }

  .hidden {
    display: none !important;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .mono {
    font-family: var(--font-mono);
    font-size: 0.875em;
  }

  .text-center {
    text-align: center;
  }

  .text-right {
    text-align: right;
  }

  .required {
    color: var(--rose-500);
    font-weight: 700;
  }

  .container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px;
  }

  /* =====================================================================
     KARTU SOFT UI NEUMORPHISM
     ===================================================================== */
  .card-3d {
    background: linear-gradient(145deg, var(--surface-raised-top) 0%, var(--surface-raised-bot) 100%);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  }

  .card-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(255, 255, 255, 0.98);
  }

  /* =====================================================================
     TOMBOL CAPSULE & SOFT UI TACTILE
     ===================================================================== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.72);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), opacity var(--transition-fast), color var(--transition-fast);
  }

  .btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .btn:hover:not(:disabled) {
    transform: translateY(-1px);
  }

  .btn:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
    box-shadow: var(--shadow-inset-sm);
  }

  .btn:focus-visible {
    outline: 2px solid var(--cyan-600);
    outline-offset: 2px;
  }

  .btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
  }

  .btn-sm {
    padding: 8px 14px;
    font-size: 0.81rem;
  }

  .btn-xs {
    padding: 5px 11px;
    font-size: 0.74rem;
    border-radius: var(--radius-pill);
  }

  .btn-lg {
    padding: 13px 24px;
    font-size: 0.95rem;
  }

  .btn-block {
    width: 100%;
  }

  .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--cyan-400) 0%, var(--cyan-500) 52%, var(--cyan-600) 100%);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
    text-shadow: 0 1px 2px rgba(var(--accent-rgb), 0.35);
    box-shadow: var(--shadow-cyan-glow);
  }

  .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--cyan-400) 0%, var(--cyan-600) 52%, var(--cyan-700) 100%);
    box-shadow: -4px -4px 10px rgba(255, 255, 255, 0.88), 6px 9px 20px rgba(var(--accent-rgb), 0.42);
  }

  .btn-secondary {
    background: linear-gradient(145deg, #F8FBFF 0%, #E7F0FA 100%);
    color: var(--navy-900);
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-neu-sm);
  }

  .btn-secondary:hover:not(:disabled) {
    background: linear-gradient(145deg, #FFFFFF 0%, #ECF4FD 100%);
    color: var(--cyan-700);
    box-shadow: var(--shadow-card);
  }

  .btn-amber {
    background: linear-gradient(135deg, #38BDF8 0%, #2563EB 100%);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 2px rgba(29, 78, 216, 0.28);
    box-shadow: -3px -3px 8px rgba(255, 255, 255, 0.8), 4px 7px 16px rgba(37, 99, 235, 0.28);
  }

  .btn-amber:hover:not(:disabled) {
    background: linear-gradient(135deg, #4CC9F0 0%, #1D4ED8 100%);
  }

  .btn-emerald {
    background: linear-gradient(135deg, #34D399 0%, var(--emerald-600) 100%);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow: -3px -3px 8px rgba(255, 255, 255, 0.8), 4px 6px 14px rgba(5, 150, 105, 0.28);
  }

  .btn-emerald:hover:not(:disabled) {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
  }

  .btn-danger {
    background: linear-gradient(135deg, #F87171 0%, var(--rose-600) 100%);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: -3px -3px 8px rgba(255, 255, 255, 0.78), 4px 6px 14px rgba(220, 38, 38, 0.26);
  }

  .btn-danger-outline {
    background: linear-gradient(145deg, #FFF7F7 0%, #FCEAEA 100%);
    color: var(--rose-600);
    border-color: rgba(254, 202, 202, 0.85);
    box-shadow: var(--shadow-neu-xs);
  }

  .btn-danger-outline:hover:not(:disabled) {
    background: #FEE2E2;
    color: #991B1B;
  }

  .btn-outline-light {
    background: linear-gradient(145deg, #F8FBFF 0%, #E7EFFA 100%);
    color: var(--navy-900);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-neu-sm);
  }

  .btn-outline-light:hover:not(:disabled) {
    background: linear-gradient(145deg, #FFFFFF 0%, #ECF5FE 100%);
    color: var(--cyan-600);
  }

  .btn-link {
    background: none;
    border: none;
    color: var(--cyan-600);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  .btn-link:hover {
    background: var(--blue-50);
    color: var(--cyan-700);
    text-decoration: none;
  }

  .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(145deg, #F7FAFF 0%, #E7EFFA 100%);
    color: var(--navy-900);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: var(--shadow-neu-xs);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
  }

  .icon-btn:hover {
    color: var(--cyan-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-neu-sm);
  }

  .icon-btn:active {
    box-shadow: var(--shadow-inset-sm);
    transform: scale(0.96);
  }

  .icon-btn svg {
    width: 17px;
    height: 17px;
  }

  /* =====================================================================
     FORM CONTROLS & CUSTOM CHECKBOX (SOFT UI INSET WELLS)
     ===================================================================== */
  .form-group {
    margin-bottom: 16px;
  }

  .form-label {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 7px;
  }

  .form-hint {
    font-size: 0.79rem;
    color: var(--slate-500);
    margin: 5px 0 8px;
  }

  .form-control {
    width: 100%;
    padding: 11px 15px;
    font-family: var(--font-sans);
    font-size: 0.91rem;
    color: var(--slate-800);
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 14px;
    box-shadow: var(--shadow-inset-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  }

  input[type="search"].form-control {
    border-radius: var(--radius-pill);
    padding-left: 18px;
    padding-right: 18px;
  }

  input[type="search"].form-control.with-icon {
    padding-left: 54px !important;
  }

  select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-color: #EEF4FB;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234B637E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 15px;
    padding-right: 38px;
    box-shadow: var(--shadow-neu-xs);
    cursor: pointer;
  }

  .form-control-sm {
    padding: 7px 12px;
    font-size: 0.81rem;
    border-radius: 12px;
  }

  select.form-control-sm {
    padding-right: 32px;
    background-position: right 10px center;
  }

  .form-control::placeholder {
    color: var(--slate-400);
  }

  .form-control:focus {
    outline: none;
    background-color: #EDF6FD;
    border-color: rgba(14, 165, 233, 0.55);
    box-shadow:
      var(--shadow-inset-sm),
      0 0 0 3px rgba(56, 189, 248, 0.22);
  }

  .code-textarea {
    font-family: var(--font-mono);
    font-size: 0.84rem;
  }

  .input-icon-wrap {
    position: relative;
  }

  .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyan-600);
    display: flex;
    pointer-events: none;
    z-index: 2;
  }

  .input-icon svg {
    width: 18px;
    height: 18px;
  }

  .form-control.with-icon,
  input[type="search"].form-control.with-icon,
  .input-icon-wrap .form-control.with-icon {
    padding-left: 52px !important;
  }

  .form-control.with-action {
    padding-right: 44px;
  }

  .input-action-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(145deg, #F6FAFF, #E6EFF9);
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: var(--slate-600);
    cursor: pointer;
    padding: 5px;
    display: flex;
    border-radius: 50%;
    box-shadow: var(--shadow-neu-xs);
  }

  .input-action-btn:hover {
    color: var(--cyan-600);
  }

  .input-action-btn svg {
    width: 16px;
    height: 16px;
  }

  .form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .form-actions-bar {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(199, 214, 231, 0.65);
  }

  input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 7px;
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-inset-sm);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    transition: all var(--transition-fast);
    margin: 0;
  }

  input[type="checkbox"]::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2.2px solid #FFFFFF;
    border-bottom: 2.2px solid #FFFFFF;
    transform: rotate(-45deg) scale(0);
    margin-top: -2px;
    transition: transform 140ms ease;
  }

  input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--cyan-400) 0%, var(--cyan-600) 100%);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.34);
  }

  input[type="checkbox"]:checked::after {
    transform: rotate(-45deg) scale(1);
  }

  input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--cyan-600);
    outline-offset: 2px;
  }

  /* =====================================================================
     SPLASH & SPINNER
     ===================================================================== */
  .splash-overlay {
    position: fixed;
    inset: 0;
    background: rgba(232, 240, 249, 0.78);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .splash-card {
    padding: 32px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .splash-text {
    font-weight: 600;
    color: var(--navy-900);
  }

  .spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.45);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    display: inline-block;
  }

  .spinner-lg {
    width: 40px;
    height: 40px;
    border: 4px solid var(--surface-well-deep);
    border-top-color: var(--cyan-500);
    box-shadow: var(--shadow-neu-xs);
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  /* =====================================================================
     HALAMAN LOGIN SOFT UI EKSKLUSIF
     ===================================================================== */
  .auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    position: relative;
    background: linear-gradient(145deg, #F3F8FE 0%, #E7F0FA 54%, #DFECFA 100%);
  }

  .auth-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 15% 18%, rgba(72, 198, 248, 0.22) 0%, transparent 38%),
      radial-gradient(circle at 86% 82%, rgba(14, 165, 233, 0.16) 0%, transparent 42%),
      radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.85) 0%, transparent 35%);
    pointer-events: none;
  }

  .auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
  }

  .auth-card {
    padding: 36px 32px;
    border-radius: 28px;
  }

  .auth-brand {
    text-align: center;
    margin-bottom: 24px;
  }

  .brand-emblem {
    width: 70px;
    height: 70px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(145deg, #F8FBFF 0%, #E5EFFB 100%);
    padding: 6px;
    color: var(--cyan-600);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    border: 2px solid rgba(255, 255, 255, 0.94);
    overflow: hidden;
    position: relative;
  }

  .brand-emblem svg {
    width: 32px;
    height: 32px;
    padding: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.34);
  }

  .brand-emblem-sm {
    width: 46px;
    height: 46px;
    margin: 0;
    border-radius: 50%;
    padding: 4px;
    flex-shrink: 0;
  }

  .brand-emblem-sm svg {
    width: 24px;
    height: 24px;
    padding: 4px;
  }

  .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    background: var(--white);
  }

  .school-pill {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: var(--sky-100);
    color: var(--cyan-700);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-neu-xs);
    margin-bottom: 10px;
  }

  .school-pill-light {
    background: linear-gradient(145deg, #E8F6FE, #D4EEFC);
    color: var(--cyan-700);
    border-color: rgba(255, 255, 255, 0.88);
  }

  .auth-title {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--navy-900);
  }

  .auth-subtitle {
    font-size: 0.9rem;
    color: var(--slate-600);
  }

  .auth-subtitle strong {
    color: var(--navy-900);
  }

  .auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0 16px;
    color: var(--slate-400);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .auth-divider::before,
  .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(199, 214, 231, 0.8);
  }

  .auth-divider span {
    padding: 0 12px;
  }

  .portal-cta-box {
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow-inset);
  }

  .portal-cta-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
    font-size: 0.84rem;
    color: var(--slate-600);
  }

  .portal-cta-info strong {
    color: var(--navy-900);
  }

  .auth-footer {
    text-align: center;
    color: var(--slate-500);
    font-size: 0.8rem;
    margin-top: 18px;
  }

  /* =====================================================================
     PORTAL PUBLIK TUGAS RUMAH SISWA (SOFT UI)
     ===================================================================== */
  .portal-screen {
    min-height: 100vh;
    background: transparent;
  }

  .portal-header {
    background: linear-gradient(145deg, #F5FAFF 0%, #E7F1FC 100%);
    color: var(--navy-900);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(164, 185, 212, 0.34);
  }

  .portal-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }

  .portal-brand {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .portal-title {
    color: var(--navy-900);
    font-size: 1.35rem;
    font-weight: 800;
  }

  .portal-subtitle {
    color: var(--slate-600);
    font-size: 0.88rem;
  }

  .portal-main {
    padding-top: 26px;
    padding-bottom: 52px;
  }

  .portal-filter-card {
    padding: 22px;
    margin-bottom: 22px;
  }

  .portal-stats-bar {
    margin-top: 10px;
    font-size: 0.84rem;
    color: var(--slate-500);
    font-weight: 500;
  }

  /* =====================================================================
     SHELL DASHBOARD (SIDEBAR SOFT UI + TOPBAR + MAIN)
     ===================================================================== */
  .app-shell {
    display: flex;
    min-height: 100vh;
    background: transparent;
  }

  .sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #F2F7FD 0%, #E7F0FA 100%);
    color: var(--slate-800);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 40;
    transition: width var(--transition-fast), transform var(--transition-fast);
    border-right: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 8px 0 24px rgba(164, 185, 212, 0.32);
    flex-shrink: 0;
  }

  .sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
  }

  .sidebar.collapsed .sidebar-header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 10px;
  }

  .sidebar.collapsed .sidebar-brand {
    justify-content: center;
  }

  .sidebar.collapsed .sidebar-collapse-btn {
    margin: 0 auto;
    width: 32px;
    height: 32px;
  }

  .sidebar.collapsed .sidebar-brand-text,
  .sidebar.collapsed .nav-label,
  .sidebar.collapsed .sidebar-user-meta,
  .sidebar.collapsed .nav-group-label {
    display: none;
  }

  .sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 10px;
  }

  .sidebar.collapsed .sidebar-user-chip-btn {
    justify-content: center;
    padding: 8px;
  }

  .sidebar.collapsed .sidebar-collapse-btn svg {
    transform: rotate(180deg);
  }

  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(199, 214, 231, 0.55);
  }

  .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
  }

  .sidebar-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .sidebar-brand-text strong {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--navy-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar-brand-text span {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--cyan-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar-collapse-btn,
  .sidebar-mobile-close {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .sidebar-mobile-close {
    display: none;
  }

  .sidebar-nav {
    flex: 1;
    padding: 12px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
  }

  .nav-group-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-400);
    padding: 12px 12px 4px;
    white-space: nowrap;
    overflow: hidden;
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 11px;
    border-radius: 16px;
    border: 1px solid rgba(var(--nav-rgb, 14, 165, 233), 0.12);
    background: transparent;
    color: var(--slate-700);
    font-family: var(--font-sans);
    font-size: 0.89rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
  }

  .nav-item:hover {
    background: linear-gradient(145deg, var(--nav-tint-top, #FAFCFF) 0%, var(--nav-tint-bot, #E8F1FC) 100%);
    border-color: rgba(var(--nav-rgb, 14, 165, 233), 0.34);
    color: var(--navy-900);
    box-shadow: var(--shadow-neu-xs);
  }

  .nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--nav-tint-top, #FAFCFF) 0%, var(--nav-tint-bot, #E8F1FC) 100%);
    border: 2px solid rgba(var(--nav-rgb, 14, 165, 233), 0.45);
    box-shadow: -2px -2px 6px rgba(255, 255, 255, 0.92), 2px 3px 8px rgba(var(--nav-rgb, 14, 165, 233), 0.22);
    color: var(--nav-c700, #0369A1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
  }

  .nav-icon svg {
    width: 17px;
    height: 17px;
  }

  .nav-item:hover .nav-icon {
    color: var(--nav-c600, #0284C7);
    border-color: var(--nav-c500, #0EA5E9);
    box-shadow: -2px -2px 6px rgba(255, 255, 255, 0.95), 3px 4px 10px rgba(var(--nav-rgb, 14, 165, 233), 0.34);
  }

  .nav-item.active {
    background: linear-gradient(145deg, var(--nav-tint-top, #FAFCFF) 0%, var(--nav-tint-bot, #E8F1FC) 100%);
    border-color: rgba(var(--nav-rgb, 14, 165, 233), 0.45);
    color: var(--navy-900);
    font-weight: 700;
    box-shadow: var(--shadow-neu-sm);
  }

  .nav-item.active .nav-icon {
    background: linear-gradient(135deg, var(--nav-c400, #48C6F8) 0%, var(--nav-c600, #0284C7) 100%);
    border-color: rgba(255, 255, 255, 0.85);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(var(--nav-rgb, 14, 165, 233), 0.42);
  }

  .mobile-nav-btn.active {
    color: var(--nav-c700, var(--cyan-700));
  }

  /* Sidebar Circular Color Theme Dock */
  .sidebar-theme-dock {
    margin: 0 12px 10px;
    padding: 10px 11px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--sidebar-btn-top) 0%, var(--sidebar-btn-bot) 100%);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-neu-xs);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .sidebar-theme-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  .sidebar-theme-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-500);
  }

  .sidebar-theme-hex {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--cyan-700);
  }

  .theme-swatch-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
  }

  .theme-swatch-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.94);
    background: var(--swatch, #0EA5E9);
    box-shadow: -2px -2px 5px rgba(255, 255, 255, 0.9), 2px 3px 6px rgba(20, 42, 71, 0.18);
    cursor: pointer;
    padding: 0;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
  }

  .theme-swatch-btn:hover {
    transform: translateY(-2px) scale(1.08);
  }

  .theme-swatch-btn.active {
    transform: scale(1.12);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--swatch, #0EA5E9);
  }

  .theme-custom-orb {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.96);
    background: conic-gradient(#F43F5E, #F59E0B, #10B981, #0EA5E9, #6366F1, #EC4899, #F43F5E);
    box-shadow: -2px -2px 5px rgba(255, 255, 255, 0.9), 2px 3px 6px rgba(20, 42, 71, 0.18);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
  }

  .theme-custom-orb:hover {
    transform: translateY(-2px) scale(1.08);
  }

  .theme-custom-orb input[type="color"] {
    position: absolute;
    inset: -4px;
    width: 160%;
    height: 160%;
    opacity: 0;
    cursor: pointer;
    border: none;
  }

  .theme-custom-plus {
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 900;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    pointer-events: none;
  }

  .sidebar.collapsed .sidebar-theme-dock {
    margin: 0 10px 8px;
    padding: 8px 6px;
    align-items: center;
  }

  .sidebar.collapsed .sidebar-theme-head,
  .sidebar.collapsed .sidebar-theme-dock .theme-swatch-btn {
    display: none;
  }

  .sidebar.collapsed .theme-swatch-row {
    justify-content: center;
  }

  .sidebar.collapsed .theme-custom-orb {
    width: 30px;
    height: 30px;
  }

  .sidebar-footer {
    padding: 14px;
    border-top: 1px solid rgba(199, 214, 231, 0.55);
  }

  .sidebar-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .sidebar-user-chip-btn {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: linear-gradient(145deg, #F7FAFF 0%, #E7EFFA 100%);
    text-align: left;
    cursor: pointer;
    border-radius: 16px;
    padding: 9px 11px;
    color: inherit;
    box-shadow: var(--shadow-neu-xs);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  }

  .sidebar-user-chip-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-neu-sm);
  }

  .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.28);
  }

  .user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .sidebar-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .sidebar-user-meta strong {
    font-size: 0.85rem;
    color: var(--navy-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar-user-meta span {
    font-size: 0.72rem;
    color: var(--slate-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 42, 71, 0.36);
    backdrop-filter: blur(4px);
    z-index: 35;
  }

  @media (min-width: 769px) {
    .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      height: 100vh;
    }

    .app-workspace {
      margin-left: var(--sidebar-width);
      width: calc(100% - var(--sidebar-width));
      transition: margin-left var(--transition-fast), width var(--transition-fast);
    }

    .sidebar.collapsed+.app-workspace {
      margin-left: var(--sidebar-collapsed-width);
      width: calc(100% - var(--sidebar-collapsed-width));
    }
  }

  /* WORKSPACE & TOPBAR */
  .app-workspace {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .topbar {
    background: var(--surface-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 18px rgba(164, 185, 212, 0.20);
    padding: 8px 22px;
    min-height: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 25;
    box-sizing: border-box;
  }

  .topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 170px;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .topbar-left > div {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .mobile-menu-btn {
    display: none;
  }

  .topbar-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    margin: 0;
  }

  .topbar-subtitle {
    font-size: 0.76rem;
    color: var(--slate-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    margin: 0;
    max-width: 440px;
  }

  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .topbar-actions .btn {
    height: 34px;
    padding: 0 11px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--shadow-neu-xs);
  }

  .topbar-actions .btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .topbar-actions .icon-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .topbar-actions .icon-btn svg {
    width: 15px;
    height: 15px;
  }

  .main-content {
    padding: 26px;
    flex: 1;
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
  }

  .module-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
    animation: fadeSlideIn 220ms ease-out;
  }

  @keyframes fadeSlideIn {
    from {
      opacity: 0;
      transform: translateY(6px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* =====================================================================
     HERO BANNER & STATISTIK DASHBOARD (SOFT UI RADIAL GAUGES)
     ===================================================================== */
  .hero-banner-3d {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hero-top) 0%, var(--hero-mid) 56%, var(--hero-bot) 100%);
    border-radius: var(--radius-xl);
    padding: 28px 30px;
    color: var(--navy-900);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
  }

  .hero-banner-3d::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -70px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(72, 198, 248, 0.26) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-banner-text {
    max-width: 670px;
    position: relative;
    z-index: 1;
  }

  .hero-banner-text h2 {
    color: var(--navy-900);
    font-size: 1.52rem;
    font-weight: 800;
    margin: 6px 0;
  }

  .hero-banner-text p {
    color: var(--slate-600);
    font-size: 0.92rem;
  }

  .hero-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: 18px;
  }

  .stats-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .stat-card {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
  }

  .stat-card-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    flex: 1;
  }

  .stat-card-left>div {
    min-width: 0;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-neu-sm);
  }

  .stat-icon svg {
    width: 21px;
    height: 21px;
  }

  .stat-icon-navy {
    background: linear-gradient(145deg, #F0F6FF, #DFECFC);
    color: var(--navy-800);
  }

  .stat-icon-blue {
    background: linear-gradient(145deg, #EAF6FF, #D6EEFC);
    color: var(--cyan-600);
  }

  .stat-icon-emerald {
    background: linear-gradient(145deg, #ECFEF6, #D2F7E7);
    color: var(--emerald-600);
  }

  .stat-icon-amber {
    background: linear-gradient(145deg, #EFF5FF, #DCE9FD);
    color: var(--amber-500);
  }

  .stat-icon-sky {
    background: linear-gradient(145deg, #EBF8FF, #D4EFFC);
    color: var(--cyan-600);
  }

  .stat-icon-rose {
    background: linear-gradient(145deg, #F3F5FF, #E3E7FC);
    color: #4F46E5;
  }

  .stat-value {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.15;
  }

  .stat-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--slate-700);
    margin-top: 3px;
  }

  .stat-sub {
    font-size: 0.74rem;
    color: var(--slate-500);
    margin-top: 2px;
  }

  /* Circular Gauge Ring (Soft UI Reference Style) */
  .stat-ring-wrap {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, #F6FAFF, #E6EFFA);
    box-shadow: var(--shadow-neu-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
  }

  .stat-ring-svg {
    width: 52px;
    height: 52px;
    transform: rotate(-90deg);
  }

  .stat-ring-track {
    fill: none;
    stroke: var(--surface-well-deep);
    stroke-width: 5;
  }

  .stat-ring-fill {
    fill: none;
    stroke: #29B6F6;
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 450ms ease;
  }

  .stat-ring-text {
    position: absolute;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--navy-900);
  }

  .dashboard-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  /* =====================================================================
     PANEL, FILTER, CHIPS, SEGMENTED SUBTABS
     ===================================================================== */
  .panel-card {
    padding: 24px;
  }

  .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }

  .wrap-gap {
    flex-wrap: wrap;
  }

  .panel-header h3 {
    font-size: 1.08rem;
    font-weight: 800;
  }

  .panel-desc {
    font-size: 0.84rem;
    color: var(--slate-500);
    margin-top: 3px;
  }

  .panel-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 14px;
  }

  .filter-item {
    min-width: 180px;
  }

  .filter-grow {
    flex: 1;
    min-width: 210px;
  }

  .filter-xs {
    width: 135px;
    min-width: 112px;
  }

  .filter-btn-align {
    min-width: auto;
  }

  /* Segmented Soft UI Track (Reference: Dolor sit | Lorem ipsum) */
  .subtabs-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-well);
    padding: 6px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-inset);
    overflow-x: auto;
    max-width: 100%;
  }

  .subtabs-wrap {
    flex-wrap: wrap;
    border-radius: 22px;
  }

  .subtab-btn {
    border: none;
    background: transparent;
    color: var(--slate-600);
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
  }

  .subtab-btn:hover {
    color: var(--navy-900);
    background: rgba(255, 255, 255, 0.45);
  }

  .subtab-btn.active {
    background: linear-gradient(135deg, var(--cyan-400) 0%, var(--cyan-600) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.34);
  }

  .subtab-btn.subtab-accent.active {
    background: linear-gradient(135deg, #38BDF8 0%, #2563EB 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  }

  .chips-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed rgba(199, 214, 231, 0.8);
  }

  .chips-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate-500);
  }

  .chip-btn {
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    background: linear-gradient(145deg, #F6FAFF, #E6F0FB);
    color: var(--cyan-700);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-neu-xs);
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .chip-btn:hover {
    background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
    color: var(--white);
  }

  .title-with-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  /* =====================================================================
     BADGES & LIST ITEMS
     ===================================================================== */
  .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
    border: 1px solid rgba(255, 255, 255, 0.72);
  }

  .badge-navy {
    background: #E3EEFC;
    color: var(--navy-900);
  }

  .badge-info {
    background: var(--sky-100);
    color: var(--cyan-700);
  }

  .badge-success {
    background: var(--emerald-100);
    color: #065F46;
  }

  .badge-warning {
    background: var(--warn-100);
    color: #92400E;
  }

  .badge-danger {
    background: var(--rose-100);
    color: #991B1B;
  }

  .badge-neutral {
    background: var(--surface-well);
    color: var(--slate-600);
  }

  .badge-amber {
    background: #E0F2FE;
    color: #0369A1;
  }

  .badge-purple {
    background: #EDE9FE;
    color: #5B21B6;
  }

  .list-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 15px;
    box-shadow: var(--shadow-inset-sm);
  }

  .list-row-main {
    min-width: 0;
  }

  .list-row-main strong {
    display: block;
    font-size: 0.9rem;
    color: var(--navy-900);
  }

  .list-row-main span {
    display: block;
    font-size: 0.8rem;
    color: var(--slate-500);
  }

  /* =====================================================================
     GRIDS & MODULAR CARDS (KELAS, DOKUMENTASI, TUGAS)
     ===================================================================== */
  .cards-grid {
    display: grid;
    gap: 18px;
  }

  .cards-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-grid-portal {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  .kelas-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
  }

  .kelas-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }

  .kelas-card h4 {
    font-size: 1.06rem;
    margin-bottom: 4px;
  }

  .kelas-meta {
    font-size: 0.84rem;
    color: var(--slate-600);
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .kelas-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(199, 214, 231, 0.65);
  }

  /* DOKUMENTASI CARD */
  .dok-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .dok-thumb-wrap {
    height: 192px;
    background: var(--surface-well);
    position: relative;
    cursor: pointer;
    overflow: hidden;
  }

  .dok-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 280ms ease;
  }

  .dok-card:hover .dok-thumb {
    transform: scale(1.03);
  }

  .dok-thumb-pdf {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #EFF8FF, #D8EEFD);
    color: var(--cyan-700);
    font-weight: 700;
    font-size: 0.9rem;
  }

  .dok-thumb-pdf svg {
    width: 42px;
    height: 42px;
  }

  .dok-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
  }

  .dok-body h4 {
    font-size: 0.98rem;
  }

  .dok-desc-clamp {
    font-size: 0.84rem;
    color: var(--slate-600);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .dok-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid rgba(199, 214, 231, 0.65);
  }

  /* TUGAS RUMAH / SEKOLAH / MODUL CARD */
  .tugas-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .tugas-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
  }

  .tugas-card-header>div {
    min-width: 0;
    max-width: 100%;
  }

  .tugas-card h4 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tugas-instruksi-box {
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 15px;
    padding: 12px 14px;
    font-size: 0.86rem;
    color: var(--slate-700);
    white-space: pre-line;
    box-shadow: var(--shadow-inset-sm);
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tugas-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.81rem;
    color: var(--slate-600);
    min-width: 0;
    max-width: 100%;
  }

  .tugas-meta-row span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .file-name-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }

  .file-name-text {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    font-family: var(--font-mono);
    font-size: 0.77rem;
    color: var(--navy-900);
  }

  .tugas-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid rgba(199, 214, 231, 0.65);
  }

  /* =====================================================================
     TABEL DATA RESPONSIF (SOFT UI)
     ===================================================================== */
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-inset-sm);
  }

  .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
  }

  .data-table th {
    background: #E5EFF9;
    color: var(--navy-900);
    font-weight: 700;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1.5px solid rgba(199, 214, 231, 0.85);
    white-space: nowrap;
  }

  .data-table td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(218, 230, 243, 0.75);
    vertical-align: middle;
  }

  .data-table tbody tr:hover {
    background: rgba(56, 189, 248, 0.08);
  }

  .data-table tbody tr:last-child td {
    border-bottom: none;
  }

  /* =====================================================================
     ABSENSI PILLS & INPUT NILAI
     ===================================================================== */
  .attendance-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .attendance-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.3fr) auto minmax(150px, 1fr);
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    background: var(--surface-well);
    box-shadow: var(--shadow-inset-sm);
  }

  .attendance-student-info strong {
    display: block;
    font-size: 0.92rem;
    color: var(--navy-900);
  }

  .attendance-student-info span {
    font-size: 0.78rem;
    color: var(--slate-500);
  }

  .attendance-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .att-pill {
    position: relative;
    cursor: pointer;
  }

  .att-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  .att-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    background: linear-gradient(145deg, #F8FBFF, #E7EFFA);
    color: var(--slate-600);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-neu-xs);
    transition: all var(--transition-fast);
    user-select: none;
  }

  .att-pill input:focus-visible+span {
    outline: 2px solid var(--cyan-600);
    outline-offset: 2px;
  }

  .att-pill.att-Hadir input:checked+span {
    background: linear-gradient(135deg, #34D399, var(--emerald-600));
    color: var(--white);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.34);
  }

  .att-pill.att-Sakit input:checked+span {
    background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
    color: var(--white);
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.34);
  }

  .att-pill.att-Izin input:checked+span {
    background: linear-gradient(135deg, #FBBF24, #D97706);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.32);
  }

  .att-pill.att-Alpa input:checked+span {
    background: linear-gradient(135deg, #F87171, var(--rose-600));
    color: var(--white);
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.32);
  }

  .att-pill.att-Terlambat input:checked+span {
    background: linear-gradient(135deg, #FB923C, #EA580C);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.32);
  }

  .group-helper-box {
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    padding: 15px 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-inset);
  }

  .group-helper-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan-700);
    margin-bottom: 10px;
  }

  .checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-700);
    cursor: pointer;
  }

  .score-input {
    width: 92px;
    text-align: center;
    font-family: var(--font-mono);
    font-weight: 700;
  }

  .score-pill {
    display: inline-block;
    min-width: 46px;
    text-align: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.82rem;
  }

  .score-a {
    background: var(--emerald-100);
    color: #065F46;
  }

  .score-b {
    background: var(--sky-100);
    color: var(--cyan-700);
  }

  .score-c {
    background: var(--warn-100);
    color: #92400E;
  }

  .score-d {
    background: var(--rose-100);
    color: #991B1B;
  }

  /* =====================================================================
     DROPZONE & FILE PREVIEW (RECESSED SOFT UI WELL)
     ===================================================================== */
  .dropzone {
    border: 2px dashed rgba(14, 165, 233, 0.38);
    border-radius: 18px;
    background: var(--surface-well);
    padding: 26px 18px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-inset);
    transition: border-color var(--transition-fast), background var(--transition-fast);
  }

  .dropzone:hover,
  .dropzone.drag-over {
    border-color: var(--cyan-600);
    background: #E2F2FD;
  }

  .dropzone-compact {
    padding: 18px 14px;
  }

  .dropzone-prompt svg {
    width: 36px;
    height: 36px;
    color: var(--cyan-600);
    margin-bottom: 8px;
  }

  .dropzone-prompt p {
    font-size: 0.9rem;
    color: var(--slate-700);
  }

  .dropzone-prompt span {
    font-size: 0.78rem;
    color: var(--slate-500);
  }

  .file-preview-box {
    margin-top: 12px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 15px;
    background: linear-gradient(145deg, #F7FAFF, #E9F1FA);
    box-shadow: var(--shadow-neu-xs);
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .file-preview-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
  }

  /* =====================================================================
     MODALS, ALERTS, STATES & TOASTS
     ===================================================================== */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 42, 71, 0.38);
    backdrop-filter: blur(8px);
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
  }

  .modal-card {
    width: 100%;
    max-width: 580px;
    border-radius: 26px;
    box-shadow: var(--shadow-modal);
    overflow: hidden;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
  }

  .modal-sm {
    max-width: 440px;
  }

  .modal-lg {
    max-width: 780px;
  }

  .modal-xl {
    max-width: 1120px;
  }

  .modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(199, 214, 231, 0.65);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .modal-body {
    padding: 22px;
    overflow-y: auto;
  }

  .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(199, 214, 231, 0.65);
    flex-wrap: wrap;
  }

  .modal-footer-center {
    justify-content: center;
  }

  .lightbox-media-box {
    background: #102038;
    border-radius: 18px;
    overflow: hidden;
    text-align: center;
    margin-bottom: 14px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-neu-sm);
  }

  .lightbox-media-box img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  .lightbox-media-box iframe {
    width: 100%;
    height: 60vh;
    border: none;
    background: var(--white);
  }

  .lightbox-desc {
    font-size: 0.92rem;
    color: var(--slate-700);
    white-space: pre-line;
  }

  .alert-box {
    padding: 12px 15px;
    border-radius: 14px;
    font-size: 0.86rem;
    font-weight: 500;
    margin-bottom: 16px;
  }

  .alert-error {
    background: #FEEBEB;
    color: #991B1B;
    border: 1px solid #FECACA;
    box-shadow: var(--shadow-inset-sm);
  }

  .state-box,
  .empty-state {
    padding: 42px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--slate-500);
  }

  .empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, #F6FAFF, #E6EFFA);
    box-shadow: var(--shadow-neu-sm);
    color: var(--cyan-600);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .empty-icon svg {
    width: 26px;
    height: 26px;
  }

  .empty-state-inline {
    padding: 24px 12px;
    text-align: center;
    color: var(--slate-500);
    font-size: 0.88rem;
  }

  .confirm-text {
    font-size: 0.94rem;
    color: var(--slate-700);
  }

  /* TOASTS MODERN SOFT UI */
  .toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 140;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 390px;
    width: calc(100% - 36px);
    pointer-events: none;
  }

  .toast {
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 17px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(250, 252, 255, 0.96) 0%, rgba(232, 241, 252, 0.94) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    box-shadow:
      -6px -6px 16px rgba(255, 255, 255, 0.92),
      10px 14px 28px rgba(145, 171, 204, 0.45);
    color: var(--slate-800);
    animation: toastIn 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .toast.toast-leaving {
    animation: toastOut 220ms ease forwards;
  }

  .toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    background: linear-gradient(135deg, var(--cyan-400) 0%, var(--cyan-600) 100%);
    box-shadow: 0 5px 14px rgba(14, 165, 233, 0.36);
  }

  .toast-icon svg {
    width: 18px;
    height: 18px;
  }

  .toast-success .toast-icon {
    background: linear-gradient(135deg, #34D399 0%, #059669 100%);
    box-shadow: 0 5px 14px rgba(5, 150, 105, 0.34);
  }

  .toast-error .toast-icon {
    background: linear-gradient(135deg, #F87171 0%, #DC2626 100%);
    box-shadow: 0 5px 14px rgba(220, 38, 38, 0.32);
  }

  .toast-warning .toast-icon {
    background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
    box-shadow: 0 5px 14px rgba(217, 119, 6, 0.32);
  }

  .toast-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .toast-title {
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.25;
  }

  .toast-msg {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--slate-600);
    line-height: 1.4;
    word-break: break-word;
  }

  .toast-close {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(145deg, #F7FAFF, #E4EEF9);
    box-shadow: var(--shadow-neu-xs);
    color: var(--slate-500);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
  }

  .toast-close:hover {
    color: var(--navy-900);
    transform: scale(1.06);
  }

  .toast-progress {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 3.5px;
    border-radius: 999px;
    background: var(--surface-well-deep);
    overflow: hidden;
  }

  .toast-progress::after {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan-400), var(--cyan-600));
    transform-origin: left center;
    animation: toastProgress 4.3s linear forwards;
  }

  .toast-success .toast-progress::after {
    background: linear-gradient(90deg, #34D399, #059669);
  }

  .toast-error .toast-progress::after {
    background: linear-gradient(90deg, #F87171, #DC2626);
  }

  .toast-warning .toast-progress::after {
    background: linear-gradient(90deg, #FBBF24, #D97706);
  }

  @keyframes toastIn {
    from {
      opacity: 0;
      transform: translateY(-12px) scale(0.96);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes toastOut {
    from {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    to {
      opacity: 0;
      transform: translateY(-8px) scale(0.96);
    }
  }

  @keyframes toastProgress {
    from {
      transform: scaleX(1);
    }

    to {
      transform: scaleX(0);
    }
  }

  /* MOBILE BOTTOM NAV */
  .mobile-bottom-nav {
    display: none;
  }

  /* =====================================================================
     V2.0.0 MODULES & UTILITIES IN SOFT UI STYLE
     ===================================================================== */
  .mt-4 {
    margin-top: 4px;
  }

  .mt-8 {
    margin-top: 8px;
  }

  .mt-12 {
    margin-top: 12px;
  }

  .mt-16 {
    margin-top: 16px;
  }

  .mb-12 {
    margin-bottom: 12px;
  }

  /* QR CODE CARDS & CETAK */
  .qr-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 14px;
  }

  .qr-card-item,
  .qr-student-card {
    padding: 18px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .qr-card-item canvas,
  .qr-student-card canvas {
    width: 160px;
    height: 160px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 8px;
    background: var(--white);
    box-shadow: var(--shadow-inset-sm);
  }

  .qr-detail-card {
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 22px;
    padding: 22px 18px;
    background: var(--surface-well);
    box-shadow: var(--shadow-inset);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 100%;
  }

  .qr-detail-card canvas {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    padding: 8px;
    background: var(--white);
    box-shadow: var(--shadow-neu-xs);
    max-width: 100%;
  }

  .qr-card-school {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cyan-700);
  }

  .qr-card-name {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--navy-900);
    margin: 2px 0 0;
  }

  .qr-card-meta {
    font-size: 0.8rem;
    color: var(--slate-600);
    margin: 0;
  }

  .qr-code-pill {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--slate-700);
    background: linear-gradient(145deg, #F7FAFF, #E7EFFA);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-neu-xs);
    word-break: break-all;
  }

  /* SCANNER QR & FACE RECOGNITION */
  .scanner-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 18px;
    margin-top: 16px;
  }

  .camera-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #0B172A;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
  }

  .camera-stage-sm {
    aspect-ratio: 4 / 3;
  }

  .camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .camera-overlay-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .qr-reticle {
    position: absolute;
    inset: 16% 22%;
    border: 2px solid rgba(72, 198, 248, 0.85);
    border-radius: 16px;
    box-shadow: 0 0 0 9999px rgba(14, 30, 54, 0.28);
    pointer-events: none;
    overflow: hidden;
  }

  .qr-reticle span {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #48C6F8, transparent);
    animation: qrScanLine 2.4s linear infinite;
  }

  @keyframes qrScanLine {
    0% {
      top: 6%;
    }

    50% {
      top: 92%;
    }

    100% {
      top: 6%;
    }
  }

  .scanner-status-bar {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--surface-well);
    color: var(--slate-700);
    font-size: 0.83rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-inset-sm);
  }

  .scanner-status-bar.status-ok {
    background: #E8FBF3;
    border-color: #A7F3D0;
    color: #065F46;
  }

  .scanner-status-bar.status-warn {
    background: #FFF9E6;
    border-color: #FDE68A;
    color: #92400E;
  }

  .scanner-status-bar.status-err {
    background: #FEEBEB;
    border-color: #FECACA;
    color: #991B1B;
  }

  .scanner-fallback-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
  }

  .fallback-box {
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 15px;
    padding: 12px 13px;
    box-shadow: var(--shadow-inset-sm);
  }

  .inline-input-btn {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .scan-highlight-card {
    padding: 13px 15px;
    border-radius: 16px;
    background: #E8FBF3;
    border: 1.5px solid #6EE7B7;
    color: #065F46;
    margin-bottom: 12px;
    box-shadow: var(--shadow-neu-xs);
  }

  .scan-highlight-card strong {
    display: block;
    font-size: 0.92rem;
  }

  .scan-highlight-card span {
    display: block;
    font-size: 0.8rem;
    margin-top: 2px;
  }

  .scan-highlight-card.warn,
  .scan-highlight-card.scan-fail {
    background: #FEEBEB;
    border-color: #FCA5A5;
    color: #991B1B;
  }

  .scan-log-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .scan-log-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-inset-sm);
    font-size: 0.83rem;
  }

  .mini-section-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--navy-900);
    margin: 0 0 8px;
  }

  /* FACE ENROLLMENT MODAL */
  .enroll-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 16px;
  }

  .enroll-samples-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }

  .enroll-sample-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 14px;
    background: var(--sky-50);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-neu-xs);
    font-size: 0.83rem;
    color: var(--navy-900);
  }

  .enroll-sample-chip img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #93C5FD;
    flex-shrink: 0;
  }

  /* VIDEO DOKUMENTER & SOFT UI SLIDER PROGRESS TRACK */
  .upload-progress-wrap {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .upload-progress-track {
    flex: 1;
    height: 12px;
    border-radius: var(--radius-pill);
    background: var(--surface-well);
    box-shadow: var(--shadow-inset-sm);
    padding: 2px;
    overflow: hidden;
  }

  .upload-progress-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--cyan-400), var(--cyan-600));
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
    transition: width 0.25s ease;
  }

  .upload-progress-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy-900);
    min-width: 80px;
    text-align: right;
  }

  .video-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #163052, #0E4D7A);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-neu-xs);
  }

  .video-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.88;
  }

  .video-play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(72, 198, 248, 0.92), rgba(2, 132, 199, 0.94));
    border: 2px solid var(--white);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.42);
  }

  .video-embed-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0B172A;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.85);
  }

  .video-embed-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  .video-edit-details {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    padding: 12px 15px;
    background: var(--surface-well);
    box-shadow: var(--shadow-inset-sm);
  }

  .video-edit-details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--navy-900);
  }

  /* KATEGORI RADIO PILLS (TUGAS DI SEKOLAH) */
  .category-radio-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .cat-pill {
    position: relative;
    cursor: pointer;
  }

  .cat-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .cat-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 11px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(145deg, #F7FAFF, #E7EFFA);
    box-shadow: var(--shadow-neu-sm);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--slate-700);
    transition: all var(--transition-fast);
  }

  .cat-pill input:checked+span {
    background: linear-gradient(135deg, var(--cyan-400) 0%, var(--cyan-600) 100%);
    border-color: rgba(255, 255, 255, 0.58);
    color: var(--white);
    box-shadow: var(--shadow-cyan-glow);
  }

  /* REVIEW MODUL AJAR / RPM SPLIT MODAL */
  .review-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 18px;
    align-items: start;
  }

  .review-preview-pane {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface-well);
    box-shadow: var(--shadow-neu-sm);
  }

  .review-pane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    background: linear-gradient(145deg, #F7FAFF, #E9F2FC);
    border-bottom: 1px solid rgba(199, 214, 231, 0.65);
    font-size: 0.85rem;
  }

  .modul-preview-iframe {
    width: 100%;
    height: 520px;
    border: none;
    background: var(--white);
  }

  .rubric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .rubric-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 15px;
    background: linear-gradient(145deg, #E8F6FE, #D9EEFD);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-neu-xs);
    color: var(--navy-900);
    margin-bottom: 14px;
    font-size: 0.9rem;
  }

  .review-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
  }

  .review-history-card {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: var(--surface-well);
    box-shadow: var(--shadow-inset-sm);
    font-size: 0.83rem;
  }

  /* PROFIL USER & BRANDING UPLOADER */
  .profile-avatar-editor,
  .branding-upload-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: var(--surface-well);
    box-shadow: var(--shadow-inset);
    margin-bottom: 14px;
  }

  .profile-avatar-preview {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.35rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-neu-sm);
  }

  .profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .profile-avatar-actions,
  .branding-upload-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .branding-preview-thumb {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    background: linear-gradient(145deg, #F8FBFF, #E7EFFA);
    box-shadow: var(--shadow-neu-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--slate-400);
    text-align: center;
  }

  .branding-preview-icon {
    width: 62px;
    height: 62px;
    border-radius: 15px;
  }

  .branding-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
  }

  /* =====================================================================
     DASHBOARD QUICK ACTIONS & JUMP BUTTONS (SOFT UI)
     ===================================================================== */
  .dash-quick-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(162px, 1fr));
    gap: 14px;
  }

  .dash-quick-btn {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    background: linear-gradient(145deg, #F7FAFF 0%, #E7EFFA 100%);
    box-shadow: var(--shadow-neu-sm);
    cursor: pointer;
    text-align: left;
    color: var(--navy-900);
    font-family: var(--font-sans);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  }

  .dash-quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(72, 198, 248, 0.45);
  }

  .dash-quick-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-inset);
  }

  .dash-quick-ico {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #EAF6FF 0%, #D7ECFC 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-neu-xs);
    color: var(--cyan-600);
    transition: all var(--transition-fast);
  }

  .dash-quick-ico svg {
    width: 18px;
    height: 18px;
  }

  .dash-quick-primary .dash-quick-ico,
  .dash-quick-btn:hover .dash-quick-ico {
    background: linear-gradient(135deg, var(--cyan-400) 0%, var(--cyan-600) 100%);
    color: var(--white);
    box-shadow: 0 5px 14px rgba(14, 165, 233, 0.36);
  }

  .dash-quick-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
  }

  .dash-quick-text strong {
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--navy-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dash-quick-text small {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--slate-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dash-jump-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px 7px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.95);
    background: linear-gradient(145deg, #F8FBFF 0%, #E7F0FA 100%);
    box-shadow: var(--shadow-neu-xs);
    color: var(--cyan-700);
    font-family: var(--font-sans);
    font-size: 0.79rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-fast);
  }

  .dash-jump-btn:hover {
    background: linear-gradient(135deg, var(--cyan-400) 0%, var(--cyan-600) 100%);
    color: var(--white);
    box-shadow: var(--shadow-cyan-glow);
    transform: translateY(-1px);
  }

  .dash-jump-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.14);
    color: var(--cyan-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
  }

  .dash-jump-icon svg {
    width: 13px;
    height: 13px;
  }

  .dash-jump-btn:hover .dash-jump-icon {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
  }

  .dash-jump-arrow {
    font-weight: 800;
    transition: transform var(--transition-fast);
  }

  .dash-jump-btn:hover .dash-jump-arrow {
    transform: translateX(3px);
  }

  /* =====================================================================
     DASHBOARD GRAFIK MODERN SOFT UI (WAVE, CAPSULE BARS, DONUT)
     ===================================================================== */
  .dash-charts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .chart-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .chart-card-header {
    margin-bottom: 0;
  }

  .chart-pill-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: linear-gradient(145deg, #EAF6FF 0%, #D9EEFD 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-neu-xs);
    color: var(--cyan-700);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .chart-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 210px;
  }

  .wave-chart-wrap {
    position: relative;
    padding: 12px 12px 10px;
    border-radius: 20px;
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-inset);
  }

  .wave-tooltip-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: linear-gradient(145deg, #FFFFFF, #EAF2FC);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-neu-xs);
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--navy-900);
  }

  .wave-tooltip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan-500);
    box-shadow: 0 0 8px rgba(30, 174, 235, 0.65);
  }

  .wave-chart-svg {
    width: 100%;
    height: 132px;
    display: block;
    overflow: visible;
  }

  .wave-x-labels {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-top: 6px;
    padding: 0 4px;
  }

  .wave-x-labels span {
    font-size: 0.69rem;
    font-weight: 700;
    color: var(--slate-500);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .vbar-chart {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 16px 14px 12px;
    border-radius: 20px;
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-inset);
    align-items: end;
    min-height: 208px;
  }

  .vbar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .vbar-val {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--navy-900);
  }

  .vbar-track {
    width: 24px;
    height: 120px;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, #D9E5F4 0%, #EBF2FB 100%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-inset-sm);
    padding: 3px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .vbar-fill {
    width: 100%;
    min-height: 8px;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, var(--cyan-400) 0%, var(--cyan-600) 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.34);
    transition: height 480ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .vbar-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--slate-600);
    text-align: center;
    line-height: 1.25;
  }

  .portfolio-split {
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }

  .donut-wrap {
    position: relative;
    width: 118px;
    height: 118px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(145deg, #F8FBFF, #E4EFFA);
    box-shadow: var(--shadow-neu-sm);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .donut-svg {
    width: 108px;
    height: 108px;
    transform: rotate(-90deg);
  }

  .donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
  }

  .donut-center strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.1;
  }

  .donut-center span {
    font-size: 0.67rem;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
  }

  .donut-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }

  .donut-legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.71rem;
    font-weight: 700;
    color: var(--slate-700);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: var(--surface-well);
    box-shadow: var(--shadow-neu-xs);
  }

  .donut-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
  }

  .portfolio-bars {
    display: flex;
    flex-direction: column;
    gap: 9px;
  }

  .pbar-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .pbar-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-700);
  }

  .pbar-track {
    width: 100%;
    height: 10px;
    border-radius: var(--radius-pill);
    background: var(--surface-well);
    box-shadow: var(--shadow-inset-sm);
    padding: 2px;
    overflow: hidden;
  }

  .pbar-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--cyan-400) 0%, var(--cyan-600) 100%);
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3);
  }

  /* =====================================================================
     PERIOD FILTER TOOLBARS & GROUPED VIEW (SEMESTER, TAHUN, BULAN, TANGGAL)
     ===================================================================== */
  .period-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 10px;
    align-items: end;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-inset);
  }

  .period-toolbar-inline {
    margin-top: 0;
    margin-bottom: 18px;
  }

  .period-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  .period-item .form-label {
    font-size: 0.73rem;
    margin-bottom: 0;
  }

  .period-item .form-control {
    padding: 8px 11px;
    font-size: 0.81rem;
    border-radius: 12px;
  }

  .period-item select.form-control {
    padding-right: 30px;
    background-position: right 9px center;
  }

  .period-reset-wrap {
    align-items: stretch;
  }

  .period-groups-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    grid-column: 1 / -1;
  }

  .period-group-block {
    padding: 16px;
    border-radius: 20px;
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-inset-sm);
  }

  .period-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(199, 214, 231, 0.65);
  }

  .period-group-title {
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--navy-900);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .period-group-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--cyan-400) 0%, var(--cyan-600) 100%);
    color: var(--white);
    font-size: 0.74rem;
    font-weight: 700;
    box-shadow: 0 3px 9px rgba(14, 165, 233, 0.3);
  }

  .period-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .period-cards-grid.period-cards-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .period-group-row td {
    background: linear-gradient(145deg, #E8F4FE 0%, #DCEBFA 100%) !important;
    color: var(--navy-900);
    font-weight: 800;
    font-size: 0.83rem;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(14, 165, 233, 0.25);
  }

  /* =====================================================================
     PORTAL SISWA: BUKTI PENGUMPULAN & MODAL REVIEW GURU
     ===================================================================== */
  .portal-receipt-box {
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(145deg, #ECFEF6 0%, #DFF8EE 100%);
    border: 1.5px solid #6EE7B7;
    box-shadow: var(--shadow-neu-sm);
    color: #065F46;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .portal-receipt-box h4 {
    margin: 0;
    font-size: 1.04rem;
    color: #065F46;
  }

  .portal-receipt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    font-size: 0.84rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 14px;
    border-radius: 14px;
  }

  .portal-receipt-grid div {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .submissions-list-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 58vh;
    overflow-y: auto;
    padding-right: 4px;
  }

  .submission-card-row {
    padding: 15px 16px;
    border-radius: 18px;
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-neu-xs);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .submission-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  .submission-card-student {
    min-width: 0;
    flex: 1;
  }

  .submission-card-student strong {
    display: block;
    font-size: 0.94rem;
    color: var(--navy-900);
  }

  .submission-card-student span {
    display: block;
    font-size: 0.78rem;
    color: var(--slate-500);
  }

  .submission-card-file {
    font-size: 0.82rem;
    color: var(--slate-700);
    background: rgba(255, 255, 255, 0.56);
    padding: 9px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
  }

  .submission-card-file>span {
    min-width: 0;
    flex: 1 1 200px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .submission-grade-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
  }

  /* =====================================================================
     PENCARIAN GLOBAL DASHBOARD, PALET WARNA PROFIL, PPT GURU & PANDUAN
     ===================================================================== */
  .dash-global-search-card {
    background: linear-gradient(145deg, var(--surface-raised-top) 0%, var(--surface-raised-bot) 100%);
  }

  .dash-search-bar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .dash-search-input-wrap {
    position: relative;
    flex: 1 1 280px;
    min-width: 0;
  }

  .dash-search-input-wrap .input-icon {
    position: absolute;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--cyan-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
  }

  .dash-search-input-wrap .input-icon svg {
    width: 20px;
    height: 20px;
  }

  #dash-global-search-input,
  .dash-search-input-wrap input[type="search"].form-control,
  .dash-search-input-wrap input.with-icon {
    padding-left: 54px !important;
    padding-right: 20px;
    box-sizing: border-box;
    -webkit-appearance: none;
  }

  .search-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
  }

  .search-results-wrap {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(199, 214, 231, 0.55);
  }

  .search-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    max-height: 410px;
    overflow-y: auto;
    padding-right: 4px;
  }

  .search-result-item {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: var(--surface-well);
    box-shadow: var(--shadow-neu-xs);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  }

  .search-result-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-neu-sm);
    border-color: rgba(var(--accent-rgb), 0.45);
  }

  .search-result-main {
    min-width: 0;
    flex: 1;
  }

  .search-result-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 3px;
  }

  .search-result-main strong {
    display: block;
    font-size: 0.92rem;
    color: var(--navy-900);
    overflow-wrap: anywhere;
  }

  .search-result-main span.search-result-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--slate-600);
    overflow-wrap: anywhere;
  }

  .guide-trigger-pill {
    flex-shrink: 0;
    color: var(--cyan-700);
    border-color: rgba(var(--accent-rgb), 0.25);
  }

  /* Theme Palette Panel in Profil & Branding */
  .theme-palette-panel-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .theme-swatch-row-lg {
    gap: 12px;
  }

  .theme-swatch-row-lg .theme-swatch-btn {
    width: auto;
    height: auto;
    padding: 7px 14px 7px 32px;
    border-radius: var(--radius-pill);
    background: var(--surface-well);
    color: var(--navy-900);
    font-family: var(--font-sans);
    font-size: 0.79rem;
    font-weight: 700;
  }

  .theme-swatch-row-lg .theme-swatch-btn::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--swatch, #0EA5E9);
    border: 2px solid var(--white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }

  .theme-swatch-row-lg .theme-swatch-btn.active {
    transform: translateY(-1px);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--swatch, #0EA5E9);
  }

  .theme-custom-picker-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 18px;
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-inset-sm);
    max-width: 460px;
  }

  .theme-custom-orb-lg {
    width: 42px;
    height: 42px;
  }

  /* PPT Mengajar Guru Cards & Viewer Modal */
  .ppt-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .ppt-slide-cover {
    position: relative;
    height: 158px;
    background: linear-gradient(135deg, var(--cyan-600) 0%, var(--navy-900) 100%);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--transition-fast);
  }

  .ppt-slide-cover::after {
    content: '';
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    pointer-events: none;
  }

  .ppt-card:hover .ppt-slide-cover {
    filter: brightness(1.04);
  }

  .ppt-cover-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    z-index: 1;
  }

  .ppt-format-pill {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
  }

  .ppt-cover-title {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
  }

  .ppt-viewer-stage {
    border-radius: 18px;
    background: #0F172A;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-card);
    overflow: hidden;
  }

  .ppt-viewer-frame-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 400px;
    background: #0F172A;
  }

  .ppt-viewer-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }

  /* Video Animasi Tutorial & Buku Panduan Modal */
  .guide-modal-card {
    max-width: 1120px;
  }

  .guide-modal-body {
    padding: 18px 22px;
  }

  .guide-modal-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  .guide-chapters-rail {
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow-inset-sm);
    max-height: 70vh;
    overflow-y: auto;
  }

  .guide-rail-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--slate-500);
    margin: 2px 6px 10px;
  }

  .guide-chapters-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .guide-chapter-btn {
    width: 100%;
    text-align: left;
    padding: 8px 11px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--slate-700);
    font-family: var(--font-sans);
    font-size: 0.81rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
  }

  .guide-chapter-btn:hover {
    background: rgba(255, 255, 255, 0.72);
    color: var(--navy-900);
  }

  .guide-chapter-btn.active {
    background: linear-gradient(135deg, var(--cyan-400) 0%, var(--cyan-600) 100%);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.3);
    font-weight: 700;
  }

  .guide-chapter-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: var(--cyan-700);
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .guide-chapter-btn.active .guide-chapter-num {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
  }

  .guide-main-pane {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .guide-video-stage {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #0B192C;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
  }

  .guide-anim-canvas {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
  }

  .guide-video-overlay-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #102542 0%, #1B365D 100%);
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .guide-anim-caption {
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.4;
    color: #E2E8F0;
    flex: 1;
  }

  .guide-player-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-inset-sm);
  }

  .guide-timeline-wrap {
    flex: 1 1 180px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .guide-timeline-wrap input[type="range"] {
    flex: 1;
    accent-color: var(--cyan-600);
    cursor: pointer;
  }

  .guide-steps-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .guide-step-pill {
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: var(--surface-well);
    box-shadow: var(--shadow-neu-xs);
    text-align: left;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
  }

  .guide-step-pill strong {
    display: block;
    font-size: 0.72rem;
    color: var(--cyan-700);
  }

  .guide-step-pill span {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--navy-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .guide-step-pill.active {
    background: linear-gradient(135deg, var(--cyan-400) 0%, var(--cyan-600) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.34);
  }

  .guide-step-pill.active strong,
  .guide-step-pill.active span {
    color: var(--white);
  }

  .guide-book-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
  }

  .guide-book-toolbar .form-control {
    flex: 1 1 240px;
  }

  .guide-book-content {
    max-height: 58vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-right: 4px;
  }

  .guide-book-article {
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-neu-xs);
  }

  .guide-book-article h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .guide-step-list {
    margin: 10px 0 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.86rem;
    color: var(--slate-700);
  }

  .guide-tip-box {
    margin-top: 12px;
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(var(--accent-rgb), 0.09);
    border-left: 4px solid var(--cyan-600);
    font-size: 0.83rem;
    color: var(--navy-900);
  }

  /* PRINT-ONLY AREAS */
  .print-only-area {
    display: none;
  }

  /* =====================================================================
     PENGATURAN WARNA PER HALAMAN + VIDEO PEMBELAJARAN + KELOMPOK + UJIAN
     ===================================================================== */
  .page-color-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--surface-raised-top) 0%, var(--surface-raised-bot) 100%);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-neu-sm);
  }

  .page-color-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .page-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cyan-500);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.22);
    flex-shrink: 0;
  }

  .page-color-label {
    font-size: 0.79rem;
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: 0.01em;
  }

  .page-color-bar-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  /* Theater stage Video Pembelajaran */
  .video-theater-stage {
    border-radius: 20px;
    overflow: hidden;
    background: #0B192C;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
  }

  .video-theater-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0B192C;
  }

  .video-theater-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  /* Pembagian Kelompok Seru & Menantang */
  .kelompok-arena {
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(145deg, var(--hero-top) 0%, var(--hero-mid) 55%, var(--hero-bot) 100%);
    border: 1px solid rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
  }

  .kelompok-spinner-stage {
    text-align: center;
    padding: 26px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed rgba(var(--accent-rgb), 0.45);
    margin-bottom: 16px;
  }

  .kelompok-countdown-num {
    font-family: var(--font-display);
    font-size: 3.1rem;
    font-weight: 900;
    color: var(--cyan-600);
    line-height: 1;
    animation: kelompokPulse 0.55s ease infinite alternate;
  }

  .kelompok-roulette-name {
    margin-top: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-900);
  }

  @keyframes kelompokPulse {
    from {
      transform: scale(0.95);
    }

    to {
      transform: scale(1.1);
    }
  }

  .kelompok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 16px;
  }

  .kelompok-card {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--surface-raised-top), var(--surface-raised-bot));
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-top: 4px solid var(--team-color, var(--cyan-500));
    box-shadow: var(--shadow-neu-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: kelompokPopIn 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes kelompokPopIn {
    from {
      opacity: 0;
      transform: translateY(14px) scale(0.96);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .kelompok-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .kelompok-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy-900);
  }

  .kelompok-mission-box {
    padding: 9px 11px;
    border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.09);
    border-left: 3px solid var(--team-color, var(--cyan-600));
    font-size: 0.78rem;
    color: var(--navy-900);
    line-height: 1.4;
  }

  .kelompok-members-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .kelompok-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 10px;
    background: var(--surface-well);
    font-size: 0.81rem;
    color: var(--slate-800);
  }

  .kelompok-role-pill {
    font-size: 0.69rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.14);
    color: var(--cyan-700);
    white-space: nowrap;
  }

  .sound-toggle-btn {
    border-radius: var(--radius-pill);
  }

  /* Portal Siswa Navigation Tabs */
  .portal-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--surface-raised-top), var(--surface-raised-bot));
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-neu-xs);
  }

  .portal-tab-panel.hidden {
    display: none;
  }

  /* Ujian Anti Nyontek & Camera Proctoring */
  .ujian-builder-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .ujian-q-card {
    padding: 16px;
    border-radius: 18px;
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-inset-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .ujian-q-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .ujian-opsi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .exam-lockdown-overlay {
    background: rgba(15, 31, 56, 0.92);
    backdrop-filter: blur(8px);
    padding: 12px;
  }

  .exam-lockdown-card {
    width: 100%;
    max-width: 1120px;
    height: 94vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .exam-topbar-sticky {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #102542 0%, #1B365D 100%);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .exam-timer-pill {
    font-family: var(--font-mono);
    font-size: 1.08rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #38BDF8;
  }

  .exam-timer-pill.danger {
    background: rgba(239, 68, 68, 0.25);
    color: #FCA5A5;
  }

  .exam-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 0;
  }

  .exam-proctor-pip {
    border-radius: 16px;
    overflow: hidden;
    background: #0B192C;
    border: 2px solid rgba(56, 189, 248, 0.65);
    box-shadow: var(--shadow-card);
    position: relative;
  }

  .exam-proctor-pip video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transform: scaleX(-1);
  }

  .exam-rec-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .exam-rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EF4444;
    animation: kelompokPulse 0.8s ease infinite alternate;
  }

  .exam-violation-banner {
    padding: 10px 14px;
    border-radius: 12px;
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .exam-q-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }

  .exam-q-pill {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(199, 214, 231, 0.8);
    background: var(--surface-well);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    color: var(--navy-900);
  }

  .exam-q-pill.answered {
    background: #D1FAE5;
    color: #065F46;
    border-color: #6EE7B7;
  }

  .exam-q-pill.active {
    background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
    color: #FFFFFF;
    border-color: transparent;
  }

  .exam-answer-opt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface-well);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-neu-xs);
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .exam-answer-opt:hover {
    border-color: var(--cyan-500);
    background: #EDF8FF;
  }

  .exam-answer-opt.selected {
    background: rgba(var(--accent-rgb), 0.14);
    border-color: var(--cyan-600);
  }

  .proctor-snap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 12px;
  }

  .proctor-snap-card {
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-neu-xs);
  }

  .proctor-snap-card img {
    width: 100%;
    height: 135px;
    object-fit: cover;
    display: block;
    background: #0F172A;
  }

  .proctor-snap-meta {
    padding: 8px 10px;
    font-size: 0.74rem;
    color: var(--slate-700);
  }

  .exam-lobby-cam-box {
    max-width: 340px;
    border-radius: 16px;
    overflow: hidden;
    background: #0B192C;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-neu-sm);
  }

  .exam-lobby-cam-box video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transform: scaleX(-1);
  }

  .page-colors-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
  }

  .page-color-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--surface-well);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-neu-xs);
  }

  .page-color-summary-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .page-color-chip {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 2px 6px rgba(15, 31, 56, 0.22);
    flex-shrink: 0;
  }

  .page-color-summary-meta strong {
    display: block;
    font-size: 0.84rem;
    color: var(--navy-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-color-summary-meta small {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--slate-500);
  }

  /* =====================================================================
     RESPONSIVE MEDIA QUERIES
     ===================================================================== */
  @media (max-width: 1280px) {
    .dash-quick-bar {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dash-charts-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar-actions #btn-open-password-modal .topbar-btn-label,
    .topbar-actions #btn-open-profil-branding .topbar-btn-label,
    .topbar-actions #btn-topbar-guide .topbar-btn-label {
      display: none;
    }

    .topbar-actions #btn-open-password-modal,
    .topbar-actions #btn-open-profil-branding,
    .topbar-actions #btn-topbar-guide {
      width: 34px;
      padding: 0;
      justify-content: center;
    }

    .topbar-subtitle {
      max-width: 300px;
    }
  }

  @media (max-width: 1024px) {

    .topbar-actions #btn-topbar-share-portal .topbar-btn-label,
    .topbar-actions #btn-logout .topbar-btn-label {
      display: none;
    }

    .topbar-actions #btn-topbar-share-portal,
    .topbar-actions #btn-logout {
      width: 34px;
      padding: 0;
      justify-content: center;
    }

    .topbar-subtitle {
      max-width: 200px;
    }

    .dashboard-two-col,
    .cards-grid-3,
    .scanner-two-col,
    .review-split-layout,
    .enroll-two-col,
    .dash-charts-grid,
    .guide-modal-layout,
    .exam-workspace-grid,
    .period-cards-grid.period-cards-grid-3 {
      grid-template-columns: minmax(0, 1fr);
    }

    .guide-chapters-rail {
      max-height: 170px;
    }

    .guide-chapters-nav {
      flex-direction: row;
      flex-wrap: wrap;
    }

    .guide-chapter-btn {
      width: auto;
    }

    .hide-md {
      display: none;
    }

    .modul-preview-iframe {
      height: 360px;
    }
  }

  @media (max-width: 768px) {
    .sidebar {
      position: fixed;
      left: 0;
      top: 0;
      bottom: 0;
      transform: translateX(-100%);
      width: 274px;
    }

    .sidebar.mobile-open {
      transform: translateX(0);
    }

    .sidebar-collapse-btn {
      display: none;
    }

    .sidebar-mobile-close {
      display: inline-flex;
    }

    .mobile-menu-btn {
      display: inline-flex;
    }

    .topbar {
      padding: 6px 14px;
      height: 50px;
      min-height: 50px;
    }

    .topbar-subtitle {
      display: none;
    }

    .topbar-title {
      font-size: 0.96rem;
    }

    .main-content {
      padding: 18px 14px 92px;
    }

    .hide-sm {
      display: none;
    }

    .dashboard-two-col,
    .cards-grid-2,
    .cards-grid-3,
    .form-row-2,
    .form-row-3,
    .period-cards-grid,
    .period-cards-grid.period-cards-grid-3,
    .portfolio-split {
      grid-template-columns: minmax(0, 1fr);
    }

    .dash-quick-bar,
    .period-toolbar {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .submission-grade-row,
    .portal-receipt-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .cards-grid-portal,
    .ujian-opsi-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .modal-card {
      max-height: 94vh;
      border-radius: 20px;
    }

    .modal-body {
      padding: 16px;
    }

    .category-radio-pills,
    .scanner-fallback-grid,
    .rubric-grid,
    .guide-steps-pills {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ppt-viewer-frame-wrap {
      min-height: 250px;
    }

    .profile-avatar-editor,
    .branding-upload-box {
      flex-direction: column;
      align-items: flex-start;
    }

    .attendance-row {
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
    }

    .mobile-bottom-nav {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(238, 244, 251, 0.94);
      backdrop-filter: blur(12px);
      border-top: 1px solid rgba(255, 255, 255, 0.9);
      box-shadow: 0 -8px 24px rgba(164, 185, 212, 0.34);
      z-index: 30;
      padding: 6px 6px;
    }

    .mobile-nav-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      background: none;
      border: none;
      border-radius: 12px;
      color: var(--slate-500);
      font-size: 0.68rem;
      font-weight: 600;
      padding: 5px 2px;
      cursor: pointer;
      transition: all var(--transition-fast);
    }

    .mobile-nav-btn svg {
      width: 19px;
      height: 19px;
    }

    .mobile-nav-btn.active {
      color: var(--cyan-700);
      background: linear-gradient(145deg, #F8FBFF, #E4EFFA);
      box-shadow: var(--shadow-neu-xs);
    }

    .toast-container {
      right: 50%;
      transform: translateX(50%);
      top: 12px;
    }
  }

  @media print {
    body {
      background: #FFFFFF !important;
      background-image: none !important;
    }

    #app-splash,
    #toast-container,
    #view-login,
    #view-portal,
    #view-app,
    .modal-overlay {
      display: none !important;
    }

    #print-qr-area {
      display: block !important;
      padding: 12mm;
    }

    #print-guide-area {
      display: none !important;
    }

    body.printing-guide #print-qr-area {
      display: none !important;
    }

    body.printing-guide #print-guide-area {
      display: block !important;
      padding: 12mm;
    }

    .print-guide-chapter {
      margin-bottom: 18px;
      padding-bottom: 12px;
      border-bottom: 1px solid #CBD5E1;
      break-inside: avoid;
      page-break-inside: avoid;
    }

    .print-guide-chapter h3 {
      margin: 0 0 6px;
      color: #0F2942;
    }

    .print-qr-header {
      text-align: center;
      margin-bottom: 12px;
      border-bottom: 1.5px solid #0F2942;
      padding-bottom: 8px;
    }

    .print-qr-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .print-qr-card {
      border: 1px solid #CBD5E1;
      border-radius: 8px;
      padding: 10px;
      text-align: center;
      break-inside: avoid;
      page-break-inside: avoid;
    }

    .print-qr-card img {
      width: 120px;
      height: 120px;
      display: block;
      margin: 4px auto;
    }
  }

  /* =====================================================================
     PUSAT PEMBAGIAN TAUTAN PORTAL SISWA & KODE QR
     ===================================================================== */
  .share-portal-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .share-portal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    background: rgba(230, 240, 250, 0.6);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 2px 2px 5px rgba(166, 185, 206, 0.4), inset -2px -2px 5px rgba(255, 255, 255, 0.9);
  }

  .share-nav-btn {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--slate-600);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .share-nav-btn.active {
    background: #FFFFFF;
    color: var(--cyan-600);
    box-shadow: var(--shadow-neu-sm);
  }

  .share-link-box {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #FFFFFF;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--slate-200);
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.04);
  }

  .share-link-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--cyan-700);
    background: transparent;
  }

  .share-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  }

  .share-wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  }

  .share-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-neu-sm);
    gap: 12px;
  }

  .share-qr-canvas {
    width: 200px;
    height: 200px;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

  /* =====================================================================
     GAME KUIS INTERAKTIF ALA KAHOOT (4 WARNA, BENTUK & AUDIO PODIUM)
     ===================================================================== */
  :root {
    --kahoot-red: #E21B3C;
    --kahoot-blue: #1368CE;
    --kahoot-yellow: #D89E00;
    --kahoot-green: #26890C;
    --kahoot-purple: #46178F;
    --kahoot-dark: #121020;
  }

  /* 4 Bentuk Khas Kahoot */
  .shape-triangle {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 24px solid #FFFFFF;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  }

  .shape-diamond {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  }

  .shape-circle {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  }

  .shape-square {
    display: inline-block;
    width: 22px;
    height: 22px;
    background: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  }

  /* Tombol Pilihan Jawaban 4 Warna */
  .kahoot-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 18px;
  }

  @media (max-width: 640px) {
    .kahoot-options-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }
  }

  .kahoot-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 85px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    border: none;
    color: #FFFFFF !important;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18), inset 0 2px 3px rgba(255, 255, 255, 0.35);
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease, filter 0.15s ease;
    user-select: none;
    overflow: hidden;
  }

  .kahoot-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
  }

  .kahoot-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.015);
    filter: brightness(1.08);
  }

  .kahoot-btn:active:not(:disabled) {
    transform: translateY(2px) scale(0.985);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }

  .kahoot-btn.disabled,
  .kahoot-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none !important;
  }

  .kahoot-btn.selected {
    outline: 4px solid #FFFFFF;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.8), 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .kahoot-btn.correct-highlight {
    animation: kahootCorrectPulse 1.2s infinite alternate;
  }

  @keyframes kahootCorrectPulse {
    0% {
      transform: scale(1);
      filter: brightness(1.1);
    }

    100% {
      transform: scale(1.04);
      filter: brightness(1.25);
      box-shadow: 0 0 30px #22c55e;
    }
  }

  .kahoot-btn.wrong-dimmed {
    opacity: 0.35;
    filter: grayscale(0.5);
  }

  .kahoot-btn-red {
    background: linear-gradient(145deg, #F02E50 0%, var(--kahoot-red) 100%);
  }

  .kahoot-btn-blue {
    background: linear-gradient(145deg, #1C7BF0 0%, var(--kahoot-blue) 100%);
  }

  .kahoot-btn-yellow {
    background: linear-gradient(145deg, #F5B002 0%, var(--kahoot-yellow) 100%);
  }

  .kahoot-btn-green {
    background: linear-gradient(145deg, #2EA310 0%, var(--kahoot-green) 100%);
  }

  .kahoot-shape-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .kahoot-btn-text {
    flex: 1;
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }

  /* Timer Bar Kahoot */
  .kahoot-timer-wrap {
    position: relative;
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin: 14px 0;
  }

  .kahoot-timer-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #10B981 0%, #F59E0B 70%, #EF4444 100%);
    transition: width 0.1s linear;
  }

  .kahoot-timer-badge {
    position: absolute;
    right: 0;
    top: -28px;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--slate-700);
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  /* Streak Bonus Badge */
  .kahoot-streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #FF6B00 0%, #FF0844 100%);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(255, 8, 68, 0.35);
    animation: flamePulse 1s ease-in-out infinite alternate;
  }

  @keyframes flamePulse {
    0% {
      transform: scale(1);
      filter: drop-shadow(0 0 2px rgba(255, 107, 0, 0.5));
    }

    100% {
      transform: scale(1.05);
      filter: drop-shadow(0 0 8px rgba(255, 8, 68, 0.8));
    }
  }

  /* Toggle Audio Sound Control */
  .audio-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #FFFFFF;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--slate-700);
    cursor: pointer;
    box-shadow: var(--shadow-neu-xs);
    transition: all var(--transition-fast);
  }

  .audio-toggle-btn.muted {
    color: var(--rose-600);
    background: #FFF1F2;
    border-color: #FECDD3;
  }

  /* Host Proyektor Fullscreen Theater */
  .game-host-modal {
    max-width: 1100px !important;
    width: 95vw !important;
    min-height: 80vh;
    background: linear-gradient(160deg, #1C1538 0%, #0F0B1E 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6) !important;
  }

  .game-host-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .game-host-pin-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    border: 2px dashed rgba(255, 255, 255, 0.25);
    margin: 20px 0;
  }

  .game-host-pin-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94A3B8;
    margin-bottom: 6px;
  }

  .game-host-pin-number {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: #38BDF8;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    font-family: monospace, sans-serif;
  }

  .game-lobby-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-height: 220px;
    overflow-y: auto;
    padding: 10px;
  }

  .game-player-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: chipPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  @keyframes chipPopIn {
    0% {
      transform: scale(0.6);
      opacity: 0;
    }

    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

  /* Host Question & Chart Statistics */
  .game-host-q-text {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.4;
    margin: 20px 0;
    color: #F8FAFC;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  }

  .game-stat-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: flex-end;
    height: 180px;
    margin: 24px 0;
    padding: 0 20px;
  }

  .game-stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    gap: 8px;
  }

  .game-stat-bar {
    width: 100%;
    max-width: 80px;
    border-radius: 8px 8px 0 0;
    min-height: 8px;
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }

  .game-stat-count {
    font-weight: 900;
    font-size: 1.2rem;
    color: #FFFFFF;
  }

  /* Kahoot Leaderboard Rows */
  .kahoot-lead-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
  }

  .kahoot-lead-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform var(--transition-fast);
  }

  .kahoot-lead-item:nth-child(1) {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.25) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: #EAB308;
  }

  .kahoot-lead-item:nth-child(2) {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.25) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: #94A3B8;
  }

  .kahoot-lead-item:nth-child(3) {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.25) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: #D97706;
  }

  /* Kahoot Podium Juara 1, 2, 3 */
  .game-podium-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    height: 320px;
    margin: 30px 0 10px;
  }

  .podium-pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 150px;
    position: relative;
    border-radius: 12px 12px 0 0;
    transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .podium-player-info {
    position: absolute;
    top: -85px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .podium-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 4px;
  }

  .podium-crown {
    position: absolute;
    top: -26px;
    font-size: 1.6rem;
    animation: crownFloat 1.2s ease-in-out infinite alternate;
  }

  @keyframes crownFloat {
    0% {
      transform: translateY(0);
    }

    100% {
      transform: translateY(-6px);
    }
  }

  .podium-p2 {
    height: 180px;
    background: linear-gradient(180deg, #94A3B8 0%, #475569 100%);
    box-shadow: 0 10px 25px rgba(148, 163, 184, 0.25);
  }

  .podium-p1 {
    height: 250px;
    background: linear-gradient(180deg, #F59E0B 0%, #B45309 100%);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
  }

  .podium-p3 {
    height: 130px;
    background: linear-gradient(180deg, #D97706 0%, #78350F 100%);
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.25);
  }

  .podium-rank-num {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
  }

  /* Tab Tugas di Sekolah di Portal Siswa */
  .portal-ts-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-neu-sm);
    border: 1px solid rgba(255, 255, 255, 0.9);
    position: relative;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  }

  .portal-ts-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neu-md);
  }

  .ts-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .ts-cat-pertemuan {
    background: #E0F2FE;
    color: #0284C7;
  }

  .ts-cat-praktik {
    background: #ECFDF5;
    color: #059669;
  }

  .ts-cat-individu {
    background: #EEF2FF;
    color: #4F46E5;
  }

  .ts-cat-kelompok {
    background: #FEF3C7;
    color: #D97706;
  }

  /* =====================================================================
     UTILITY HELPERS (FLEX & SPACING)
     ===================================================================== */
  .d-flex {
    display: flex;
  }

  .flex-column {
    flex-direction: column;
  }

  .justify-between {
    justify-content: space-between;
  }

  .justify-center {
    justify-content: center;
  }

  .align-center {
    align-items: center;
  }

  .align-start {
    align-items: flex-start;
  }

  .flex-wrap {
    flex-wrap: wrap;
  }

  .gap-8 {
    gap: 8px;
  }

  .gap-12 {
    gap: 12px;
  }

  .gap-16 {
    gap: 16px;
  }

  .p-8 {
    padding: 8px;
  }

  .p-12 {
    padding: 12px;
  }

  .p-16 {
    padding: 16px;
  }

  .p-20 {
    padding: 20px;
  }

  .p-24 {
    padding: 24px;
  }

  .mb-6 {
    margin-bottom: 6px;
  }

  .mb-8 {
    margin-bottom: 8px;
  }

  .mb-12 {
    margin-bottom: 12px;
  }

  .mb-16 {
    margin-bottom: 16px;
  }

  .mt-20 {
    margin-top: 20px;
  }

  .mt-24 {
    margin-top: 24px;
  }

  .text-left {
    text-align: left;
  }

  /* =====================================================================
     PREFERS REDUCED MOTION (AKSESIBILITAS)
     ===================================================================== */
  @media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }

    .card-lift:hover,
    .dok-card:hover .dok-thumb,
    .btn:hover:not(:disabled),
    .btn:active:not(:disabled),
    .icon-btn:hover {
      transform: none !important;
    }
  }
