    :root {
      --primary-font: 'Lato', sans-serif;
      --heading-font: 'Montserrat', sans-serif;
      --primary-color: #00A8FF; /* Vibrant Blue */
      --secondary-color: #1E90FF; /* Dodger Blue */
      --accent-color: #FFD700; /* Gold */
      --dark-overlay: linear-gradient(135deg, rgba(10, 10, 30, 0.8), rgba(0, 168, 255, 0.3));
      --glass-bg: rgba(255, 255, 255, 0.1);
      --glass-border: rgba(255, 255, 255, 0.2);
      --text-shadow: 0 2px 4px rgba(0,0,0,0.5);
      --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    }

    * { box-sizing: border-box; }

    html {
      min-height: 100%;
      height: auto;
      -webkit-text-size-adjust: 100%;
    }

    body {
      margin: 0;
      padding: 0;
      min-height: 100%;
      min-height: 100dvh;
      font-family: var(--primary-font);
      background: linear-gradient(135deg, #141428 0%, #1a1a3a 50%, #0f0f23 100%);
      background-attachment: fixed;
      overflow-x: hidden;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    /* Animated Background Particles */
    .particles {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
    }

    .particle {
      position: absolute;
      background: rgba(0, 168, 255, 0.3);
      border-radius: 50%;

      animation: float 6s ease-in-out infinite;
    }

    .particle:nth-child(odd) {
      animation-delay: -2s;
      animation-duration: 8s;
    }

    .particle:nth-child(3n) {
      animation-delay: -4s;
      animation-duration: 10s;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
      50% { transform: translateY(-20px) rotate(180deg); opacity: 0.7; }
    }

    .hero {
      position: relative;
      min-height: 100vh;
      min-height: 100dvh;
      width: 100%;
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      text-align: center;
      padding: max(20px, env(safe-area-inset-top, 0px)) 16px max(30px, env(safe-area-inset-bottom, 0px));
      overflow-x: hidden;
      overflow-y: visible;
      z-index: 1;
      margin-top: 0;
      box-sizing: border-box;
    }

    .hero::before {
      content: "";
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      background: var(--dark-overlay);
      z-index: 1;
    }

    /* Enhanced Glassmorphism Card (Instant First Paint - bebas delay opacity: 0) */
    .card-glass {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 600px;
      padding: 50px 40px;
      background: rgba(255, 255, 255, 0.11);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-radius: 25px;
      border: 1px solid var(--glass-border);
      box-shadow: var(--box-shadow);
      opacity: 1;
      transform: none;
    }

    .hero-logo {
      max-width: 140px;
      height: auto;
      margin-bottom: 25px;
      filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    }

    .hero-content h1 {
      font-family: var(--heading-font);
      font-size: clamp(2.2rem, 6vw, 3.2rem);
      font-weight: 800;
      margin-bottom: 0.5rem;
      text-shadow: var(--text-shadow);
      background: linear-gradient(45deg, #ffffff, var(--accent-color));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-content p {
      font-size: 1.2rem;
      margin-bottom: 2.5rem;
      opacity: 0.95;
      line-height: 1.6;
      text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }

    .form-group {
      width: 100%;
      text-align: left;
      margin-bottom: 25px;
    }

    .form-group label {
      font-weight: 700;
      font-size: 1.1rem;
      margin-bottom: 10px;
      display: block;
      color: #ffffff;
      text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }

    /* Premium Form Select */
    .form-control {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      color: #ffffff;
      font-weight: 500;
      padding: 15px 20px;
      border-radius: 15px;
      width: 100%;
      font-size: 1.1rem;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      transition: all 0.3s ease;
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
      background-repeat: no-repeat;
      background-position: right 1rem center;
      background-size: 16px 12px;
      cursor: pointer;
    }

    .form-control:focus {
      box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.5);
      outline: none;
      border-color: var(--primary-color);
      transform: scale(1.02);
    }

    .form-control option {
      color: #333;
      background: #fff;
    }

    .form-control:hover {
      border-color: var(--secondary-color);
    }

    /* Premium Button */
    .btn-modern {
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      color: white;
      border: none;
      padding: 18px 40px;
      font-size: 1.2rem;
      font-weight: 700;
      border-radius: 50px;
      transition: all 0.4s ease;
      box-shadow: 0 6px 20px rgba(0, 168, 255, 0.4);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .btn-modern::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
      transition: left 0.5s;
    }

    .btn-modern:hover::before {
      left: 100%;
    }

    .btn-modern:hover {
      transform: translateY(-5px) scale(1.05);
      box-shadow: 0 10px 30px rgba(0, 168, 255, 0.6);
    }

    .btn-modern i {
      font-size: 1.3em;
      transition: transform 0.3s ease;
    }

    .btn-modern:hover i {
      transform: scale(1.2);
    }

    /* Enhanced Exam List */
    #examList {
      margin-top: 10px;
      text-align: left;
      opacity: 1;
      transform: none;
      transition: all 0.3s ease;
      padding-left: 0;
      list-style: none;
    }

    #examList.visible {
      opacity: 1;
      transform: none;
    }

    #examList .list-group-item {
      list-style: none;
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      margin-bottom: 12px;
      border-radius: 15px;
      padding: 0;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      position: relative;
      overflow: hidden;
    }

    #examList .list-group-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.1), transparent);
      transition: left 0.5s;
    }

    #examList .list-group-item:hover::before {
      left: 100%;
    }

    #examList .list-group-item:hover {
      background: rgba(0, 168, 255, 0.2);
      transform: translateX(5px);
      box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
    }

    #examList .list-group-item a {
      display: flex;
      align-items: center;
      gap: 15px;
      padding: 18px 25px;
      color: #fff;
      font-weight: 700;
      text-decoration: none;
      position: relative;
      z-index: 1;
    }

    #examList .list-group-item a i {
      font-size: 1.4em;
      color: var(--accent-color);
      transition: transform 0.3s ease;
    }

    #examList .list-group-item:hover a i {
      transform: scale(1.2) rotate(10deg);
    }

    #examList .no-exam {
      color: #fff;
      background: rgba(255, 255, 255, 0.1);
      text-align: center;
      padding: 20px;
      border-radius: 15px;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    /* Enhanced Footer */
    footer {
      background: transparent;
      position: absolute;
      bottom: 0;
      width: 100%;
      z-index: 2;
      padding: 25px;
      color: #fff;
      opacity: 0.9;
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
    }

    footer p {
      font-size: 1rem;
      margin: 0;
       text-align: center;
      text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }

    /* SweetAlert2 Dark Theme Enhancement */
    .swal2-popup {
      background: linear-gradient(135deg, #2c3e50, #34495e) !important;
      border-radius: 20px !important;
      border: 1px solid var(--glass-border) !important;
      box-shadow: var(--box-shadow) !important;
      backdrop-filter: blur(20px) !important;
      -webkit-backdrop-filter: blur(20px) !important;
    }

    .swal2-title {
      color: #ffffff !important;
      font-family: var(--heading-font);
      text-shadow: var(--text-shadow);
    }

    .swal2-html-container {
      color: #ecf0f1 !important;
      font-family: var(--primary-font);
    }

    .swal2-icon.swal2-warning {
      border-color: var(--accent-color) !important;
      color: var(--accent-color) !important;
    }

    .swal2-confirm {
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
      border-radius: 50px !important;
      padding: 12px 35px !important;
      box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3) !important;
      font-weight: 700 !important;
      transition: all 0.3s ease !important;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .swal2-confirm:hover {
      transform: translateY(-3px) !important;
      box-shadow: 0 6px 20px rgba(0, 168, 255, 0.5) !important;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .card-glass {
        padding: 30px 20px;
        margin: 20px;
      }

      .hero-content h1 {
        font-size: 2rem;
      }

      .btn-modern {
        padding: 15px 30px;
        font-size: 1rem;
      }

      #examList .list-group-item a {
        padding: 15px 20px;
        gap: 10px;
      }
    }

    .class-picker {
      text-align: center;
    }

    .class-picker-title {
      color: #fff;
      font-weight: 700;
      display: block;
      margin-bottom: 10px;
    }

    .class-options {
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
    }

    .class-option {
      color: #fff;
      font-size: 1.1rem;
    }

    .swal-update-steps {
      text-align: left;
      margin-top: 8px;
    }

    .swal-download-code {
      font-size: 12px;
    }

    .is-hidden {
      display: none !important;
    }

    .modal {
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .modal-content {
      background-color: #fff;
      border-radius: 12px;
      width: 90%;
      max-width: 500px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      animation: modalFadeIn 0.3s ease-out;
    }

    @keyframes modalFadeIn {
      from { opacity: 0; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1); }
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 25px;
      border-bottom: 1px solid #e0e0e0;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      border-radius: 12px 12px 0 0;
    }

    .modal-header h3 {
      margin: 0;
      font-size: 1.4rem;
      font-weight: 600;
    }

    .close {
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
      color: white;
      transition: color 0.3s;
    }

    .close:hover {
      color: #ff6b6b;
    }

    .modal-body {
      padding: 25px;
          background: linear-gradient(135deg, rgb(106 117 222) 0%, rgb(114 89 181) 50%, rgb(11 25 44 / 94%) 100%);
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      color: #fff;
      font-size: 0.95rem;
    }

    .form-group input,
    .form-group select {
      width: 100%;
      padding: 12px 15px;
      border: 2px solid #e5e7eb;
      border-radius: 8px;
      font-size: 1rem;
      transition: border-color 0.3s, box-shadow 0.3s;
      box-sizing: border-box;
    }

    .form-group input:focus,
    .form-group select:focus {
      outline: none;
      border-color: #667eea;
      box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .form-group input[readonly] {
      background-color: #f9fafb;
      cursor: not-allowed;
    }

    .form-actions {
      display: flex;
      gap: 12px;
      justify-content: flex-end;
      margin-top: 30px;
    }

    .btn-cancel, .btn-submit {
      padding: 12px 24px;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .btn-cancel {
      background-color: #6b7280;
      color: white;
    }

    .btn-cancel:hover {
      background-color: #4b5563;
      transform: translateY(-1px);
    }

    .btn-submit {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .btn-submit:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

    .btn-submit:active, .btn-cancel:active {
      transform: translateY(0);
    }

    @media (max-width: 768px) {
      .modal-content {
        width: 95%;
        margin: 20px;
      }

      .modal-header, .modal-body {
        padding: 15px 20px;
      }

      .form-actions {
        flex-direction: column;
      }

      .btn-cancel, .btn-submit {
        width: 100%;
      }
    }

    /* PWA Banner & Badge */
    .pwa-banner {
      background: rgba(30, 58, 138, 0.45);
      border: 1px solid rgba(96, 165, 250, 0.4);
      border-radius: 14px;
      padding: 12px 16px;
      margin: 18px 0 20px 0;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      text-align: left;
    }
    .pwa-banner-content {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .pwa-banner-icon {
      font-size: 1.8rem;
      color: #60a5fa;
      flex-shrink: 0;
    }
    .pwa-banner-text {
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .pwa-banner-text strong {
      font-size: 0.95rem;
      color: #ffffff;
    }
    .pwa-banner-text small {
      font-size: 0.8rem;
      color: #cbd5e1;
    }
    .btn-pwa-install {
      background: linear-gradient(135deg, #2563eb, #1d4ed8);
      color: white;
      border: none;
      border-radius: 8px;
      padding: 8px 16px;
      font-weight: 600;
      font-size: 0.85rem;
      cursor: pointer;
      flex-shrink: 0;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .btn-pwa-install:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    }
    .pwa-active-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(16, 185, 129, 0.2);
      border: 1px solid rgba(16, 185, 129, 0.5);
      color: #6ee7b7;
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 0.82rem;
      font-weight: 600;
      margin-bottom: 18px;
    }

    /* ============================================================ */
    /* 🛡️ PWA KIOSK GATE (Gerbang Wajib Buka dari Layar Utama HP) */
    /* ============================================================ */
    .pwa-kiosk-gate {
      background: rgba(15, 23, 42, 0.75);
      border: 1.5px solid rgba(245, 158, 11, 0.45);
      border-radius: 20px;
      padding: 24px 20px;
      margin-bottom: 24px;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
      text-align: center;
      animation: fadeInGate 0.4s ease-out;
    }
    @keyframes fadeInGate {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .badge-warning {
      background: rgba(245, 158, 11, 0.2) !important;
      color: #fbbf24 !important;
      border: 1px solid rgba(245, 158, 11, 0.5) !important;
    }
    .gate-title {
      font-size: 1.25rem;
      font-weight: 800;
      color: #ffffff;
      margin: 12px 0 8px 0;
      line-height: 1.4;
    }
    .gate-desc {
      font-size: 0.9rem;
      color: #cbd5e1;
      line-height: 1.5;
      margin-bottom: 20px;
    }
    .gate-desc strong {
      color: #fca5a5;
    }
    .gate-action-box {
      background: rgba(30, 41, 59, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 14px;
      padding: 18px 16px;
      margin-bottom: 16px;
      text-align: left;
    }
    .gate-step-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.78rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: #38bdf8;
      background: rgba(56, 189, 248, 0.15);
      padding: 4px 10px;
      border-radius: 12px;
      margin-bottom: 10px;
    }
    .gate-step-badge.badge-ios {
      color: #a78bfa;
      background: rgba(167, 139, 250, 0.15);
    }
    .gate-step-text {
      font-size: 0.88rem;
      color: #e2e8f0;
      margin-bottom: 14px;
      line-height: 1.45;
    }
    .btn-gate-install {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
      color: #ffffff;
      border: none;
      border-radius: 12px;
      padding: 14px 20px;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 4px 15px rgba(37, 99, 235, 0.45);
      transition: all 0.25s ease;
    }
    .btn-gate-install:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
      background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    }
    .btn-gate-install.is-ready-native {
      background: linear-gradient(135deg, #059669 0%, #047857 100%);
      box-shadow: 0 4px 15px rgba(5, 150, 105, 0.45);
    }
    .btn-gate-install.is-ready-native:hover {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      box-shadow: 0 6px 20px rgba(5, 150, 105, 0.6);
    }
    .btn-gate-install:disabled {
      opacity: 0.75;
      cursor: wait;
      transform: none;
    }
    .gate-ready-status {
      font-size: 0.8rem;
      line-height: 1.4;
      padding: 8px 12px;
      border-radius: 10px;
      margin-bottom: 12px;
      border: 1px solid rgba(148, 163, 184, 0.25);
      background: rgba(15, 23, 42, 0.55);
      color: #cbd5e1;
    }
    .gate-ready-status.is-ready {
      background: rgba(5, 150, 105, 0.16);
      border-color: rgba(16, 185, 129, 0.45);
      color: #6ee7b7;
    }
    .gate-ready-status.is-checking {
      background: rgba(37, 99, 235, 0.16);
      border-color: rgba(96, 165, 250, 0.4);
      color: #bae6fd;
    }
    .gate-ready-status.is-fallback {
      background: rgba(245, 158, 11, 0.15);
      border-color: rgba(245, 158, 11, 0.45);
      color: #fde68a;
    }
    .gate-ready-status.is-installed {
      background: rgba(16, 185, 129, 0.22);
      border-color: rgba(52, 211, 153, 0.55);
      color: #a7f3d0;
      font-weight: 600;
    }
    .gate-note {
      margin-top: 12px;
      font-size: 0.8rem;
      color: #94a3b8;
      line-height: 1.4;
      display: flex;
      gap: 6px;
      align-items: flex-start;
    }
    .gate-note i {
      color: #60a5fa;
      font-size: 0.95rem;
      flex-shrink: 0;
      margin-top: 1px;
    }
    .ios-steps-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 4px;
    }
    .ios-step-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      background: rgba(15, 23, 42, 0.6);
      padding: 10px 12px;
      border-radius: 10px;
      border-left: 3px solid #818cf8;
    }
    .step-num {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #818cf8;
      color: #0f172a;
      font-weight: 800;
      font-size: 0.75rem;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .step-desc {
      font-size: 0.84rem;
      color: #f1f5f9;
      line-height: 1.4;
    }
    .gate-emergency-footer {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px dashed rgba(255, 255, 255, 0.12);
    }
    .btn-emergency-link {
      background: none;
      border: none;
      color: #94a3b8;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      text-decoration: underline;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: color 0.2s;
    }
    .btn-emergency-link:hover {
      color: #f59e0b;
    }

    .is-hidden {
      display: none !important;
    }

    /* Tips Keselamatan Ujian di Halaman Awal */
    .exam-tips-card {
      margin-top: 24px;
      background: rgba(15, 23, 42, 0.55);
      border: 1px solid rgba(96, 165, 250, 0.3);
      border-radius: 12px;
      padding: 14px 18px;
      text-align: left;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }
    .exam-tips-header {
      font-size: 0.9rem;
      font-weight: 700;
      color: #93c5fd;
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }
    .exam-tips-header i {
      font-size: 1.1rem;
      color: #60a5fa;
    }
    .exam-tips-list {
      margin: 0;
      padding-left: 18px;
      font-size: 0.82rem;
      color: #cbd5e1;
      line-height: 1.55;
    }
    .exam-tips-list li {
      margin-bottom: 4px;
    }
    .exam-tips-list li strong {
      color: #ffffff;
    }
    .exam-tips-list li em {
      color: #fde047;
      font-style: normal;
    }

    /* ========================================================
       🌟 ALUR CERDAS TERPADU: SMART ONBOARDING & DASHBOARD
       ======================================================== */
    .smart-panel {
      margin: 20px 0;
      text-align: left;
      animation: fadeInPanel 0.4s ease-out;
    }

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

    .panel-header-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(0, 168, 255, 0.15);
      border: 1px solid rgba(0, 168, 255, 0.4);
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 0.88rem;
      font-weight: 700;
      color: #67e8f9;
      margin-bottom: 8px;
    }

    .panel-subtitle {
      font-size: 0.9rem !important;
      color: #cbd5e1 !important;
      line-height: 1.4 !important;
      margin-bottom: 18px !important;
      text-align: left !important;
    }

    .smart-onboarding-form {
      background: rgba(15, 23, 42, 0.45);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 18px;
      padding: 22px 20px;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .form-control-smart {
      width: 100%;
      padding: 13px 16px;
      border-radius: 12px;
      border: 1.5px solid rgba(255, 255, 255, 0.2);
      background: rgba(255, 255, 255, 0.08);
      color: #ffffff;
      font-size: 1rem;
      font-family: inherit;
      outline: none;
      transition: all 0.25s ease;
      box-sizing: border-box;
    }

    .form-control-smart:focus {
      border-color: #38bdf8;
      background: rgba(255, 255, 255, 0.14);
      box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
    }

    .form-control-smart::placeholder {
      color: #94a3b8;
    }

    .form-control-smart option {
      background: #1e293b;
      color: #ffffff;
    }

    /* Class Segmented Radio Picker */
    .class-segmented-picker {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 6px;
    }

    .class-segment {
      position: relative;
      cursor: pointer;
      display: block;
      margin: 0 !important;
    }

    .class-segment input[type="radio"] {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .class-segment span {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px 8px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.07);
      border: 1.5px solid rgba(255, 255, 255, 0.18);
      color: #cbd5e1;
      font-weight: 700;
      font-size: 0.95rem;
      transition: all 0.2s ease;
      text-align: center;
      user-select: none;
    }

    .class-segment input[type="radio"]:checked + span {
      background: linear-gradient(135deg, #0284c7, #2563eb);
      border-color: #38bdf8;
      color: #ffffff;
      box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
      transform: translateY(-2px);
    }

    .smart-form-row {
      display: flex;
      gap: 14px;
      margin-bottom: 10px;
    }

    .flex-1 {
      flex: 1;
    }

    .pin-input {
      font-size: 1.25rem !important;
      letter-spacing: 4px;
      font-weight: 800;
      color: #38bdf8 !important;
    }

    .btn-smart-action {
      width: 100%;
      min-height: 52px;
      border: 0;
      border-radius: 12px;
      background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
      color: #ffffff;
      font-size: 1.05rem;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      cursor: pointer;
      box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
      transition: all 0.25s ease;
      margin-top: 10px;
    }

    .btn-smart-action:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
      filter: brightness(1.1);
    }

    .btn-smart-action:active {
      transform: translateY(0);
    }

    /* Student Profile Strip (Dashboard) */
    .student-profile-strip {
      display: flex;
      align-items: center;
      gap: 14px;
      background: rgba(15, 23, 42, 0.55);
      border: 1px solid rgba(56, 189, 248, 0.35);
      border-radius: 16px;
      padding: 14px 16px;
      margin-bottom: 20px;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .profile-strip-avatar {
      font-size: 2.2rem;
      color: #38bdf8;
      line-height: 1;
      flex-shrink: 0;
    }

    .profile-strip-details {
      flex: 1;
      min-width: 0;
      text-align: left;
    }

    .profile-strip-details h3 {
      margin: 0 0 6px 0;
      font-size: 1.15rem;
      font-weight: 800;
      color: #ffffff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .profile-strip-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .strip-pill {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 0.76rem;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 6px;
    }

    .pill-grade {
      background: rgba(37, 99, 235, 0.3);
      border: 1px solid rgba(59, 130, 246, 0.5);
      color: #93c5fd;
    }

    .pill-room {
      background: rgba(16, 185, 129, 0.25);
      border: 1px solid rgba(16, 185, 129, 0.5);
      color: #6ee7b7;
    }

    .pill-status {
      background: rgba(245, 158, 11, 0.2);
      border: 1px solid rgba(245, 158, 11, 0.4);
      color: #fde68a;
    }

    .btn-strip-edit {
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.25);
      color: #e2e8f0;
      padding: 7px 12px;
      border-radius: 8px;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
      transition: all 0.2s ease;
    }

    .btn-strip-edit:hover {
      background: rgba(255, 255, 255, 0.2);
      color: #ffffff;
      border-color: #38bdf8;
      transform: translateY(-1px);
    }

    .active-exam-headline {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.95rem;
      font-weight: 700;
      color: #93c5fd;
      margin-bottom: 12px;
      text-align: left;
    }

    .smart-exam-list {
      list-style: none;
      padding: 0;
      margin: 0 0 16px 0;
    }

    /* Kartu Ujian 1-Klik */
    .exam-launch-card {
      background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
      border: 1.5px solid rgba(56, 189, 248, 0.45);
      border-radius: 16px;
      padding: 16px 18px;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
      transition: all 0.25s ease;
    }

    .exam-launch-card:hover {
      border-color: #38bdf8;
      box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
      transform: translateY(-2px);
    }

    .exam-launch-info {
      text-align: left;
      flex: 1;
      min-width: 0;
    }

    .exam-launch-subject {
      font-size: 1.15rem;
      font-weight: 800;
      color: #ffffff;
      margin-bottom: 4px;
      letter-spacing: 0.3px;
    }

    .exam-launch-time {
      font-size: 0.82rem;
      color: #94a3b8;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .exam-launch-time i {
      color: #38bdf8;
    }

    .btn-launch-now {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      color: #ffffff;
      border: 0;
      border-radius: 10px;
      padding: 10px 18px;
      font-size: 0.95rem;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
      flex-shrink: 0;
      transition: all 0.2s ease;
    }

    .btn-launch-now:hover {
      background: linear-gradient(135deg, #059669 0%, #047857 100%);
      transform: translateY(-2px) scale(1.03);
      box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6);
    }

    .btn-launch-now:active {
      transform: translateY(0);
    }

    .refresh-schedule-wrap {
      text-align: center;
      margin: 10px 0 16px;
    }

    .btn-refresh-pill {
      background: transparent;
      border: 1px dashed rgba(255, 255, 255, 0.3);
      color: #94a3b8;
      border-radius: 20px;
      padding: 6px 16px;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
    }

    .btn-refresh-pill:hover {
      border-color: #38bdf8;
      color: #38bdf8;
      background: rgba(56, 189, 248, 0.08);
    }

    .exam-status-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 8px;
      border-radius: 6px;
      font-size: 0.72rem;
      font-weight: 700;
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.4px;
    }

    .badge-live {
      background: rgba(16, 185, 129, 0.2);
      color: #34d399;
      border: 1px solid rgba(52, 211, 153, 0.4);
    }

    .badge-upcoming {
      background: rgba(245, 158, 11, 0.2);
      color: #fbbf24;
      border: 1px solid rgba(251, 191, 36, 0.4);
    }

    .badge-overdue {
      background: rgba(148, 163, 184, 0.2);
      color: #cbd5e1;
      border: 1px solid rgba(203, 213, 225, 0.3);
    }

    .btn-launch-now.btn-upcoming {
      background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
      box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    }

    .btn-launch-now.btn-upcoming:hover {
      background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
      box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
    }

    .btn-launch-now.btn-overdue {
      background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
      box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
    }

    .btn-switch-grade {
      background: #2563eb;
      color: #ffffff;
      border: 0;
      border-radius: 8px;
      padding: 8px 16px;
      font-size: 0.85rem;
      font-weight: 700;
      cursor: pointer;
      margin-top: 10px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
    }

    .btn-switch-grade:hover {
      background: #1d4ed8;
      transform: scale(1.03);
    }

    @media (max-width: 640px) {
      .hero {
        padding: max(14px, env(safe-area-inset-top, 0px)) 10px max(24px, env(safe-area-inset-bottom, 0px));
        min-height: 100vh;
        min-height: 100dvh;
      }
      .card-glass {
        padding: 24px 15px;
        margin: 8px auto;
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
      }
      .hero-logo {
        max-width: 75px;
        max-height: 75px;
        margin-bottom: 8px;
      }
      .hero-content h1 {
        font-size: 1.45rem;
        line-height: 1.25;
        margin-bottom: 4px;
      }
      .hero-content p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 16px;
      }
      .student-profile-strip {
        padding: 10px 12px;
        gap: 8px;
        border-radius: 14px;
      }
      .profile-strip-avatar {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
      }
      .profile-strip-details h3 {
        font-size: 1.05rem;
      }
      .profile-strip-badges {
        flex-wrap: wrap;
        gap: 5px;
      }
      .strip-pill {
        font-size: 0.75rem;
        padding: 2px 7px;
      }
      .btn-strip-edit {
        padding: 6px 12px;
        font-size: 0.82rem;
        min-height: 36px;
      }
      .smart-form-row {
        flex-direction: column;
        gap: 0;
      }
      .form-control-smart,
      .pin-input,
      .form-control {
        font-size: 16px !important; /* Mencegah auto-zoom di browser iOS Safari / WebKit */
        min-height: 46px;
      }
      .class-segmented-picker {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
      }
      .class-segment span {
        padding: 12px 4px;
        font-size: 0.88rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .btn-smart-action {
        min-height: 48px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
      }
      .exam-launch-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 14px 16px;
        border-radius: 14px;
      }
      .exam-launch-info {
        text-align: center;
        margin-bottom: 10px;
      }
      .exam-launch-subject {
        font-size: 1.15rem;
        line-height: 1.3;
      }
      .exam-launch-time {
        justify-content: center;
      }
      .btn-launch-now {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        font-size: 1.05rem;
      }
      .exam-tips-card {
        padding: 14px 12px;
        margin-top: 14px;
      }
      .exam-tips-list li {
        font-size: 0.82rem;
        line-height: 1.45;
        margin-bottom: 6px;
      }
    }

    /* PWA Standalone Mode Optimization (iOS & Android) */
    @media all and (display-mode: standalone) {
      .hero {
        padding-top: max(24px, env(safe-area-inset-top, 0px));
        padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
      }
    }
