/* Gate: keep only the preloader visible until auth/initial data unlocks the UI */
    html[data-boot="locked"] body> :not(#preloader) {
      display: none !important;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 25%, #dbeafe 65%, #e0f2fe 100%);
      background-attachment: fixed;
      background-size: cover;
    }

    /* Avoid scroll jank on mobile caused by fixed background */
    @media (max-width: 1024px) {
      body {
        background-attachment: scroll;
      }
    }

    .text-logo-blue {
      color: #1e3a8a;
    }

    .bg-logo-blue {
      background-color: #1e3a8a;
    }

    .bg-logo-green {
      background-color: #16a34a;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      padding: .5rem .9rem;
      border-radius: .5rem;
      font-weight: 600;
    }

    .btn-primary {
      background: #1e3a8a;
      color: #fff;
    }

    .btn-soft {
      background: #f3f4f6;
      color: #374151;
    }

    .chip {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      padding: .25rem .6rem;
      border-radius: 9999px;
      font-size: .75rem;
    }

    .chip-green {
      background: #ecfdf5;
      color: #065f46;
      border: 1px solid #a7f3d0;
    }

    .hidden {
      display: none !important;
    }

    /* Modern glass UI helpers */
    .glass-card {
      background: rgba(255, 255, 255, 0.75);
      -webkit-backdrop-filter: saturate(160%) blur(10px);
      backdrop-filter: saturate(160%) blur(10px);
      border: 1px solid rgba(226, 232, 240, .7);
      border-radius: .9rem;
      box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
    }

    .hero-card {
      background: linear-gradient(135deg, rgba(219, 234, 254, .85), rgba(236, 253, 245, .85));
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(191, 219, 254, .7);
      border-radius: 1.25rem;
      box-shadow: 0 16px 48px rgba(2, 6, 23, .12);
    }

    /* Attention effect: twinkle the Profile tile when profile is incomplete */
    .profile-twinkle {
      position: relative;
      transform: translateZ(0);
      animation: iie-profile-float 1.45s ease-in-out infinite;
    }

    .profile-twinkle::after {
      content: "";
      position: absolute;
      inset: -3px;
      border-radius: inherit;
      pointer-events: none;
      opacity: 0;
      box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
      animation: iie-profile-glow 1.45s ease-in-out infinite;
    }

    @keyframes iie-profile-float {

      0%,
      100% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(-1px);
      }
    }

    @keyframes iie-profile-glow {

      0%,
      100% {
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
      }

      50% {
        opacity: 1;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, .22);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .profile-twinkle {
        animation: none;
      }

      .profile-twinkle::after {
        animation: none;
      }
    }

    .section-title {
      display: flex;
      align-items: center;
      gap: .6rem;
      font-weight: 800;
      color: #0f172a;
    }

    .section-title i {
      color: #2563eb;
    }

    .hscroll {
      display: flex;
      gap: 1rem;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      padding-bottom: .5rem;
    }

    .hscroll>* {
      scroll-snap-align: start;
      flex: 0 0 auto;
    }

    /* Arabic text default stack now prefers Alkalami, then Mirza */
    [lang="ar"] {
      font-family: 'Traditional Arabic', 'Amiri', 'Alkalami', 'Mirza', 'Noto Sans Arabic', 'Tahoma', serif;
    }

    /* Explicit Mirza helper for drawer header where Mirza is desired */
    .mirza-ar {
      font-family: 'Traditional Arabic', 'Amiri', 'Mirza', 'Alkalami', 'Noto Sans Arabic', serif;
    }

    /* Drawer */
    .hamburger-top,
    .hamburger-middle,
    .hamburger-bottom {
      transition: all .3s ease-in-out;
      transform-origin: center
    }

    .open .hamburger-top {
      transform: translateY(5px) rotate(45deg)
    }

    .open .hamburger-middle {
      opacity: 0
    }

    .open .hamburger-bottom {
      transform: translateY(-5px) rotate(-45deg)
    }

    #mobile-menu-overlay {
      z-index: 10050;
      transition: opacity 200ms ease-out;
      will-change: opacity
    }

    #mobile-menu {
      z-index: 10100;
      width: 16rem;
      overflow: hidden;
      transform: translateZ(0);
      will-change: transform, opacity;
      transition: transform 280ms cubic-bezier(.22, 1, .36, 1), opacity 200ms ease-out;
      opacity: 0;
      pointer-events: none;
      background: rgba(255, 255, 255, .92);
      -webkit-backdrop-filter: saturate(160%) blur(8px);
      backdrop-filter: saturate(160%) blur(8px);
      border-left: 1px solid #e5e7eb;
      border-top-left-radius: 1rem;
      border-bottom-left-radius: 1rem;
      box-shadow: -6px 0 24px rgba(2, 6, 23, .15)
    }

    #mobile-menu:not(.translate-x-full) {
      opacity: 1;
      pointer-events: auto
    }

    /* Drawer header + menu-modern styles (parity with teacher) */
    #mobile-menu .drawer-header {
      padding: 1rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      border-bottom: 1px solid #eef2f7;
      min-height: 72px;
      position: relative;
    }

    #mobile-menu .drawer-brand {
      display: flex;
      flex-direction: column;
      line-height: 1.1;
    }

    #mobile-menu .drawer-brand .title {
      font-weight: 800;
      color: #1e3a8a;
      font-size: 1rem;
      line-height: 1.15;
    }

    #mobile-menu .drawer-brand .subtitle {
      color: #16a34a;
      font-weight: 700;
      font-size: 0.9rem;
      line-height: 1.15;
    }

    #mobile-menu .drawer-header #mobile-menu-close-btn {
      position: absolute;
      right: 0.5rem;
      top: 50%;
      transform: translateY(-50%);
      width: 36px;
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform 150ms ease;
      will-change: transform;
    }

    #mobile-menu .drawer-header #mobile-menu-close-btn:active {
      transform: translateY(-50%) scale(0.94);
    }

    #mobile-menu .menu-modern {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      padding: 0.5rem 0.5rem 1rem;
    }

    #mobile-menu .menu-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0.625rem 0.75rem;
      border-radius: 0.75rem;
      transition: background-color 0.2s ease, transform 0.08s ease;
    }

    #mobile-menu .menu-item:active {
      transform: translateY(1px);
    }

    #mobile-menu .menu-item:hover {
      background: linear-gradient(90deg, #f3f4f6, #eef2ff);
    }

    #mobile-menu .menu-item .icon-wrap {
      width: 36px;
      height: 36px;
      border-radius: 0.6rem;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f1f5f9;
      color: #334155;
      box-shadow: inset 0 0 0 1px #e5e7eb;
    }

    #mobile-menu .menu-item .menu-item-text {
      font-weight: 600;
      color: #374151;
      white-space: nowrap;
      opacity: 1;
      padding-left: 0.25rem;
    }

    #mobile-menu .menu-item.active {
      background: linear-gradient(90deg, #e0f2fe, #ecfeff);
      box-shadow: inset 0 0 0 1px #bae6fd;
    }

    /* Scroll lock when drawer is open */
    html.scroll-lock,
    body.scroll-lock {
      overflow: hidden;
    }

    body.scroll-lock {
      position: fixed;
      width: 100%;
      top: var(--scroll-y, 0);
      touch-action: none;
      overscroll-behavior: contain;
    }

    /* Preloader + Action Loader (parity with Volunteer) */
    #preloader {
      position: fixed;
      inset: 0;
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #ffffff;
      transition: opacity 0.7s ease;
    }

    #preloader.opacity-0 {
      opacity: 0;
    }

    .loader-logo {
      animation: pulse-zoom 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    }

    .loader-text {
      margin-top: 1rem;
      font-size: 1.125rem;
      font-weight: 600;
      color: #1e3a8a;
      animation: text-fade 2s infinite ease-in-out;
      text-align: center;
    }

    .loader-quote {
      margin-top: 1.0rem;
      font-size: 0.95rem;
      font-style: italic;
      color: #4b5563;
      max-width: 90vw;
      width: 500px;
      text-align: center;
      padding: 0 1rem;
    }

    @keyframes pulse-zoom {

      0%,
      100% {
        transform: scale(1);
        opacity: 1;
      }

      50% {
        transform: scale(1.1);
        opacity: 0.85;
      }
    }

    @keyframes text-fade {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.6;
      }
    }

    /* Match volunteer overlay behavior */
    #loader-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: #ffffff;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: opacity 0.75s ease-in-out, visibility 0.75s;
      opacity: 1;
      visibility: visible;
      text-align: center;
    }

    #loader-overlay.hidden {
      opacity: 0;
      visibility: hidden;
    }

    .progress-wrap {
      margin-top: 1rem;
      height: 0.5rem;
      width: 100%;
      background: #e5e7eb;
      border-radius: 9999px;
      overflow: hidden;
    }

    .progress-bar {
      height: 100%;
      background: #16a34a;
      width: 5%;
      transition: width 0.3s ease;
      border-radius: 9999px;
    }

    /* Toast notifications */
    /* Toasts: centered, padded from edges, and slightly below the sticky header */
    #toast-root {
      position: fixed;
      top: calc(4.75rem + env(safe-area-inset-top, 0px));
      left: 50%;
      transform: translateX(-50%);
      z-index: 99999;
      display: flex;
      flex-direction: column;
      gap: .5rem;
      width: min(520px, calc(100vw - 2.5rem));
      pointer-events: none;
    }

    #toast-root .toast {
      pointer-events: auto;
    }

    .toast {
      display: flex;
      gap: .75rem;
      padding: .75rem .9rem;
      border-radius: .75rem;
      font-size: .85rem;
      line-height: 1.25;
      box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
      position: relative;
      overflow: hidden;
      backdrop-filter: blur(6px) saturate(160%);
      border: 1px solid rgba(0, 0, 0, 0.06);
      animation: toast-in .45s cubic-bezier(.22, 1, .36, 1);
    }

    .toast[data-type=success] {
      background: linear-gradient(135deg, #ecfdf5, #d1fae5);
      color: #065f46;
      border-color: #6ee7b7;
    }

    .toast[data-type=error] {
      background: linear-gradient(135deg, #fef2f2, #fee2e2);
      color: #991b1b;
      border-color: #fecaca;
    }

    .toast[data-type=info] {
      background: linear-gradient(135deg, #eff6ff, #dbeafe);
      color: #1e3a8a;
      border-color: #bfdbfe;
    }

    .toast[data-type=warning] {
      background: linear-gradient(135deg, #fffbeb, #fef3c7);
      color: #92400e;
      border-color: #fcd34d;
    }

    .toast .icon {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 30px;
    }

    .toast button.toast-close {
      position: absolute;
      top: 4px;
      right: 6px;
      background: transparent;
      border: none;
      color: inherit;
      cursor: pointer;
      padding: 4px;
      line-height: 1;
      border-radius: 6px;
    }

    .toast button.toast-close:hover {
      background: rgba(255, 255, 255, .4);
    }

    .toast-progress {
      position: absolute;
      left: 0;
      bottom: 0;
      height: 3px;
      background: currentColor;
      width: 100%;
      opacity: .35;
      transform-origin: left;
      animation: toast-progress linear forwards;
    }

    @keyframes toast-in {
      0% {
        transform: translateY(-6px) scale(.96);
        opacity: 0;
      }

      100% {
        transform: translateY(0) scale(1);
        opacity: 1;
      }
    }

    @keyframes toast-out {
      0% {
        transform: translateY(0) scale(1);
        opacity: 1;
      }

      100% {
        transform: translateY(-4px) scale(.95);
        opacity: 0;
      }
    }

    @keyframes toast-progress {
      from {
        transform: scaleX(1);
      }

      to {
        transform: scaleX(0);
      }
    }

    /* Custom Modern Payment Modal Styles */
    .pm-overlay {
      position: fixed;
      inset: 0;
      /* Must sit above add-on modals (z-index: 9999) */
      z-index: 10050;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      background: rgba(15, 23, 42, 0.65);
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .pm-card {
      width: 100%;
      max-width: 400px;
      background: #fff;
      border-radius: 1.5rem;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
      overflow: hidden;
      transform: scale(0.95);
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      border: 1px solid rgba(255, 255, 255, 0.4);
      display: flex;
      flex-direction: column;
      max-height: 90vh;
    }

    .pm-header {
      position: relative;
      background: linear-gradient(135deg, #4f46e5, #1e3a8a);
      padding: 1rem 1rem 1.25rem;
      color: #fff;
      text-align: center;
      flex-shrink: 0;
    }

    .pm-header-icon {
      width: 2.5rem;
      height: 2.5rem;
      margin: 0 auto 0.5rem;
      background: rgba(255, 255, 255, 0.15);
      -webkit-backdrop-filter: blur(4px);
      backdrop-filter: blur(4px);
      border-radius: 0.75rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .pm-body {
      background: #f8fafc;
      border-radius: 1.5rem 1.5rem 0 0;
      margin-top: -1rem;
      padding: 1.25rem;
      position: relative;
      z-index: 2;
      overflow-y: auto;
      -ms-overflow-style: none;
      /* IE and Edge */
      scrollbar-width: none;
      /* Firefox */
    }

    .pm-body::-webkit-scrollbar {
      display: none;
      /* Chrome, Safari and Opera */
    }

    .pm-section-title {
      font-size: 0.7rem;
      font-weight: 800;
      color: #334155;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.75rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .pm-copy-row {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.6rem;
      border-radius: 0.75rem;
      background: #fff;
      border: 1px solid #e2e8f0;
      cursor: pointer;
      transition: all 0.2s ease;
      margin-bottom: 0.5rem;
    }

    .pm-copy-row:hover {
      border-color: #a5b4fc;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }

    .pm-copy-row:active {
      transform: scale(0.98);
      background: #f1f5f9;
    }

    .pm-copy-icon-box {
      width: 2.25rem;
      height: 2.25rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .pm-copy-content {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
    }

    .pm-input-group {
      position: relative;
      margin-top: 1rem;
    }

    .pm-input {
      width: 100%;
      background: #fff;
      border: 1px solid #cbd5e1;
      border-radius: 0.75rem;
      padding: 1.25rem 1rem 0.5rem;
      font-size: 0.875rem;
      font-weight: 600;
      color: #1e293b;
      transition: all 0.2s ease;
      box-sizing: border-box;
    }

    .pm-input:focus {
      outline: none;
      border-color: #6366f1;
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

    .pm-label {
      position: absolute;
      left: 1rem;
      top: 1rem;
      font-size: 0.875rem;
      color: #64748b;
      transition: all 0.2s ease;
      pointer-events: none;
    }

    .pm-input:focus~.pm-label,
    .pm-input:not(:placeholder-shown)~.pm-label {
      top: 0.35rem;
      font-size: 0.65rem;
      font-weight: 700;
      color: #6366f1;
    }

    .pm-upload-zone {
      margin-top: 1rem;
      border: 2px dashed #a5b4fc;
      border-radius: 0.75rem;
      padding: 1rem;
      text-align: center;
      background: #eef2ff;
      color: #6366f1;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }

    .pm-upload-zone:hover {
      background: #e0e7ff;
      border-color: #818cf8;
    }

    .pm-footer {
      padding: 1rem 1.5rem;
      background: #fff;
      border-top: 1px solid #e2e8f0;
      display: flex;
      gap: 0.75rem;
      flex-shrink: 0;
    }

    .pm-btn {
      padding: 0.75rem;
      border-radius: 0.75rem;
      font-weight: 700;
      font-size: 0.875rem;
      border: none;
      cursor: pointer;
      transition: all 0.2s ease;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }

    .pm-btn:active {
      transform: scale(0.96);
    }

    .pm-btn-cancel {
      flex: 1;
      background: #f1f5f9;
      color: #475569;
    }

    .pm-btn-cancel:hover {
      background: #e2e8f0;
      color: #1e293b;
    }

    .pm-btn-submit {
      flex: 1.5;
      background: linear-gradient(135deg, #4f46e5, #3b82f6);
      color: #fff;
      box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    }

    .pm-btn-submit:hover {
      box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    }

    /* Modern Program Card */
    /* Modernized program card */
    .program-card {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: .75rem;
      padding: 1.05rem 1.1rem 1.05rem;
      border-radius: 1.2rem;
      background: linear-gradient(180deg, #ffffff, #f8fafc 55%, #f5f7ff);
      border: 1px solid #e6eaf2;
      box-shadow: 0 10px 30px -18px rgba(2, 6, 23, .45), 0 18px 40px -24px rgba(2, 6, 23, .18);
      transition: box-shadow .35s cubic-bezier(.22, 1, .36, 1), transform .35s cubic-bezier(.22, 1, .36, 1), border-color .25s;
      overflow: hidden;
    }

    .program-card::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(60% 60% at 85% 10%, rgba(99, 102, 241, .18), transparent 60%), radial-gradient(55% 55% at 10% 85%, rgba(16, 185, 129, .14), transparent 65%);
      opacity: .85;
      transition: opacity .4s ease;
    }

    .program-card::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(180deg, transparent, rgba(99, 102, 241, .06) 25%, transparent 55%);
      opacity: .4;
    }

    .program-card:hover {
      box-shadow: 0 18px 42px -18px rgba(30, 58, 138, .35), 0 10px 26px -14px rgba(2, 6, 23, .15);
      transform: translateY(-4px);
      border-color: #cbd5ff;
    }

    .program-card:active {
      transform: translateY(-2px);
    }

    .program-card h3 {
      font-weight: 800;
      font-size: 1rem;
      line-height: 1.2;
      color: #0f172a;
      letter-spacing: .1px;
    }

    .program-meta {
      font-size: .53rem;
      text-transform: uppercase;
      font-weight: 800;
      letter-spacing: .14em;
      color: #1e3a8a;
      display: flex;
      gap: .5rem;
      align-items: center;
    }

    .program-desc {
      font-size: .72rem;
      line-height: 1.3;
      color: #475569;
      min-height: 2.2em;
    }

    .program-footer {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: .5rem;
      margin-top: .3rem;
    }

    .program-submeta {
      display: flex;
      gap: .75rem;
      align-items: center;
      flex-wrap: wrap;
      font-size: .66rem;
      color: #475569;
      margin-top: .1rem;
    }

    .program-submeta span {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      background: rgba(248, 250, 252, .8);
      padding: .25rem .5rem;
      border-radius: .6rem;
      border: 1px solid #e2e8f0;
      box-shadow: 0 2px 8px -6px rgba(2, 6, 23, .18);
    }

    .program-submeta i {
      color: #64748b;
      font-size: .7rem;
    }

    /* Program hero media with safe contain fit for portrait images */
    .program-card .program-hero {
      width: 100%;
      aspect-ratio: 16/9;
      border-radius: .8rem;
      overflow: hidden;
      background: linear-gradient(135deg, #eef2ff, #ecfeff);
      box-shadow: inset 0 0 0 1px #e5e7eb;
    }

    .program-card .program-hero img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
      background: #fff;
      display: block;
    }

    .pill {
      font-size: .6rem;
      font-weight: 800;
      letter-spacing: .09em;
      padding: .42rem .7rem;
      border-radius: 2rem;
      display: inline-flex;
      align-items: center;
      gap: .35rem;
      border: 1px solid;
      box-shadow: 0 4px 14px -6px rgba(2, 6, 23, .18);
      text-transform: none;
    }

    /* Status pills */
    .pill-registered {
      background: linear-gradient(180deg, #ecfdf5, #dcfce7);
      border-color: #86efac;
      color: #065f46;
    }

    .pill-pending {
      background: linear-gradient(180deg, #fff7ed, #ffedd5);
      border-color: #fdba74;
      color: #92400e;
    }

    .pill-waitlisted {
      background: linear-gradient(180deg, #fffbeb, #fef3c7);
      border-color: #fcd34d;
      color: #92400e;
    }

    /* Alias for open waitlist chip */
    .pill-waitlist {
      background: linear-gradient(180deg, #fffbeb, #fef3c7);
      border-color: #fcd34d;
      color: #92400e;
    }

    .pill-rejected {
      background: linear-gradient(180deg, #fef2f2, #fee2e2);
      border-color: #fecaca;
      color: #991b1b;
    }

    .pill-full {
      background: linear-gradient(180deg, #fef2f2, #fee2e2);
      border-color: #fecaca;
      color: #991b1b;
    }

    .btn-inline {
      font-size: .64rem;
      font-weight: 700;
      border-radius: .8rem;
      padding: .55rem .95rem;
      display: inline-flex;
      align-items: center;
      gap: .45rem;
      line-height: 1;
      cursor: pointer;
      touch-action: manipulation;
      border: 1px solid transparent;
      transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .25s ease;
      box-shadow: 0 1px 2px rgba(2, 6, 23, .06);
    }

    .btn-inline-primary {
      background: linear-gradient(180deg, #1e3a8a, #1d4ed8);
      color: #fff;
      border-color: #1e3a8a;
    }

    .btn-inline-primary:hover {
      background: linear-gradient(180deg, #1f3fa0, #1e40af);
      box-shadow: 0 8px 22px -10px rgba(30, 58, 138, .55);
    }

    .btn-inline-soft {
      background: rgba(248, 250, 252, .9);
      color: #334155;
      border-color: #e2e8f0;
      backdrop-filter: saturate(160%) blur(2px);
    }

    .btn-inline-soft:hover {
      background: rgba(241, 245, 249, .95);
      box-shadow: 0 6px 18px -8px rgba(2, 6, 23, .2);
    }

    .btn-inline:active {
      transform: translateY(1px);
    }

    .btn-inline[disabled] {
      opacity: .55;
      cursor: not-allowed;
    }

    .program-actions {
      display: flex;
      gap: .4rem;
      align-items: center;
    }

    /* Shimmer skeletons */
    .skeleton-card {
      position: relative;
      overflow: hidden;
    }

    .skeleton {
      background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 40%, #f1f5f9 80%);
      background-size: 200% 100%;
      animation: shimmer 1.25s ease-in-out infinite;
    }

    @keyframes shimmer {
      0% {
        background-position: 200% 0;
      }

      100% {
        background-position: -200% 0;
      }
    }

    .skeleton-line {
      height: 10px;
      border-radius: 6px;
    }

    .skeleton-line.short {
      width: 45%;
    }

    .skeleton-line.med {
      width: 70%;
    }

    .skeleton-line.long {
      width: 90%;
    }

    /* Reduce motion for users who prefer it or on low-power devices */
    @media (prefers-reduced-motion: reduce) {
      * {
        animation: none !important;
        transition: none !important;
      }
    }

    .program-pass-badge {
      background: linear-gradient(180deg, rgba(238, 242, 255, .92), rgba(224, 231, 255, .92));
      color: #3730a3;
      font-size: .56rem;
      font-weight: 800;
      padding: .36rem .6rem;
      border-radius: 1rem;
      border: 1px solid #c7d2fe;
      display: inline-flex;
      align-items: center;
      gap: .35rem;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 6px 14px -8px rgba(2, 6, 23, .22);
    }

    .program-pass-badge i {
      font-size: .62rem;
    }

    .program-card .divider {
      height: 1px;
      background: linear-gradient(to right, #e2e8f0, #f8fafc);
      margin: .25rem 0 .1rem;
    }

    .program-card.no-hover:hover {
      transform: none;
      box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    }

    .program-card .pending-label {
      font-size: .6rem;
      font-weight: 600;
      color: #f59e0b;
      display: inline-flex;
      align-items: center;
      gap: .3rem;
    }

    .program-card .pending-label i {
      font-size: .55rem;
    }

    @media (min-width:1024px) {
      .program-card {
        padding: 1.05rem 1.1rem .95rem;
      }
    }

    /* Payment proof upload button */
    .btn-upload-proof {
      display: inline-flex;
      align-items: center;
      gap: .38rem;
      font-size: .72rem;
      font-weight: 700;
      padding: .38rem .75rem;
      border-radius: 9999px;
      border: 1.5px solid #6366f1;
      color: #4338ca;
      background: #eef2ff;
      cursor: pointer;
      transition: background .15s, transform .15s, box-shadow .15s;
      white-space: nowrap;
    }

    .btn-upload-proof:hover {
      background: #6366f1;
      color: #fff;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(99, 102, 241, .35);
    }

    .btn-upload-proof.proof-sent {
      border-color: #16a34a;
      color: #15803d;
      background: #f0fdf4;
    }

    .btn-upload-proof.proof-sent:hover {
      background: #16a34a;
      color: #fff;
      box-shadow: 0 4px 12px rgba(22, 163, 74, .3);
    }

    .btn-upload-proof.proof-pending {
      border-color: #d97706;
      color: #b45309;
      background: #fffbeb;
    }

    .btn-upload-proof.proof-rejected {
      border-color: #dc2626;
      color: #b91c1c;
      background: #fef2f2;
    }

    /* Proof preview modal */
    #proof-preview-modal {
      position: fixed;
      inset: 0;
      z-index: 9000;
      background: rgba(2, 6, 23, .7);
      backdrop-filter: blur(6px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
    }

    #proof-preview-modal.open {
      display: flex;
    }

    #proof-preview-modal img {
      max-width: min(92vw, 600px);
      max-height: 80vh;
      border-radius: 12px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
      object-fit: contain;
      background: #fff;
    }

    #proof-preview-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .15);
      color: #fff;
      border: none;
      font-size: 1rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background .15s;
    }

    #proof-preview-close:hover {
      background: rgba(255, 255, 255, .3);
    }

    /* Event Pass Modal Layout */
    /* Event pass modal spacing: ensure clear offset below sticky header (≈72px) and safe-area support */
    #event-pass-modal {
      padding: calc(72px + 3vh + env(safe-area-inset-top, 0px)) 1.2rem 4.5vh;
      align-items: flex-start;
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    #event-pass-modal::-webkit-scrollbar {
      width: 0;
      height: 0;
      display: none;
    }

    #event-pass-modal .dialog-shell {
      width: 100%;
      max-width: 480px;
      margin: 0 auto;
      background: rgba(255, 255, 255, 0.94);
      -webkit-backdrop-filter: blur(14px) saturate(170%);
      backdrop-filter: blur(14px) saturate(170%);
      border: 1px solid #e2e8f0;
      border-radius: 1.25rem;
      box-shadow: 0 24px 56px -14px rgba(15, 23, 42, 0.28), 0 4px 18px rgba(15, 23, 42, 0.14);
      overflow-y: auto;
      max-height: calc(100dvh - (72px + 3vh + env(safe-area-inset-top, 0px)) - 5vh);
      scrollbar-width: none;
    }

    #event-pass-modal .dialog-shell::-webkit-scrollbar {
      width: 0;
      height: 0;
    }

    /* Sticky actions footer inside the pass for better mobile UX (parity with organizer) */
    #event-pass-modal .ep-actions {
      position: sticky;
      bottom: 0;
      padding-top: .75rem;
      margin-top: .5rem;
      border-top: 1px solid #e2e8f0;
      background: linear-gradient(120deg, rgba(241, 245, 249, .85), rgba(255, 255, 255, .9));
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: .6rem;
    }

    @media (max-width: 520px) {
      #event-pass-modal .ep-actions {
        grid-template-columns: 1fr;
      }
    }

    #event-pass-modal .ep-actions .btn {
      height: 44px;
      border-radius: 9999px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    #event-pass-modal .ep-actions .btn-primary {
      background: linear-gradient(180deg, #10b981, #059669);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, .35);
      box-shadow: 0 10px 22px rgba(5, 150, 105, 0.18), 0 2px 6px rgba(5, 150, 105, 0.15);
    }

    #event-pass-modal .ep-actions .btn-primary:hover {
      filter: brightness(1.04);
    }

    #event-pass-modal .ep-actions .btn-soft {
      background: #f1f5f9;
      color: #0f172a;
      border: 1px solid #e2e8f0;
    }

    @media (min-width:640px) {
      #event-pass-modal {
        padding: calc(72px + 4vh + env(safe-area-inset-top, 0px)) 2rem 6vh;
      }
    }

    @media (max-width:420px) {
      #event-pass-modal {
        padding: calc(64px + 2.5vh + env(safe-area-inset-top, 0px)) .75rem 4vh;
      }
    }

    /* ─── Notification Centre ─── */
    #notif-bell-btn {
      position: relative;
      width: 2.25rem;
      height: 2.25rem;
      border-radius: 50%;
      display: grid;
      place-items: center;
      transition: background .2s ease, transform .15s ease;
      background: transparent;
    }

    #notif-bell-btn:hover {
      background: rgba(22, 163, 74, .1);
      transform: scale(1.08);
    }

    #notif-bell-btn i {
      font-size: 1.05rem;
      color: #374151;
      transition: color .2s;
    }

    #notif-bell-btn:hover i {
      color: #16a34a;
    }

    /* ── Floating panel: inset from all 4 sides, rounded everywhere ── */
    #notif-drawer {
      position: fixed;
      top: 1rem;
      right: 1rem;
      bottom: 1rem;
      /* left: auto keeps it right-anchored.
         Width budget = 100vw - right(1rem) - left-gap(4rem) = 100vw - 5rem
         So on a 390px mobile: width = min(390px, 385px) → 320px,
         and left edge sits at 390 - 16 - 320 = 54px ≈ 3.4rem clear gap */
      left: auto;
      width: min(390px, calc(100vw - 3rem));
      border-radius: 1.25rem;
      background: #fff;
      box-shadow:
        0 32px 80px rgba(15, 23, 42, .22),
        0 8px 24px rgba(15, 23, 42, .12),
        0 0 0 1px rgba(15, 23, 42, .06);
      z-index: 200;
      transform: translateX(calc(100% + 1.5rem));
      transition: transform .38s cubic-bezier(.34, 1.2, .64, 1), opacity .25s ease;
      opacity: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    #notif-drawer.open {
      transform: translateX(0);
      opacity: 1;
    }

    /* ── Vivid gradient header ── */
    #notif-drawer-header {
      background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 50%, #0d9488 100%);
      padding: 1.25rem 1.25rem 1rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
      position: relative;
      overflow: hidden;
    }

    /* Subtle shimmer orb behind header */
    #notif-drawer-header::before {
      content: '';
      position: absolute;
      width: 200px;
      height: 200px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%);
      top: -80px;
      right: -40px;
      pointer-events: none;
    }

    #notif-drawer-header h2 {
      font-size: 1rem;
      font-weight: 800;
      color: #fff;
      display: flex;
      align-items: center;
      gap: .55rem;
      margin: 0;
      position: relative;
      z-index: 1;
      letter-spacing: -.01em;
    }

    #notif-drawer-header h2 i {
      width: 1.75rem;
      height: 1.75rem;
      border-radius: .45rem;
      background: rgba(255, 255, 255, .15);
      border: 1px solid rgba(255, 255, 255, .25);
      display: grid;
      place-items: center;
      font-size: .8rem;
      color: #fff;
      flex-shrink: 0;
    }

    #notif-drawer-header-actions {
      display: flex;
      align-items: center;
      gap: .6rem;
      position: relative;
      z-index: 1;
    }

    #notif-mark-all {
      font-size: .7rem;
      font-weight: 600;
      color: rgba(255, 255, 255, .85);
      background: rgba(255, 255, 255, .12);
      border: 1px solid rgba(255, 255, 255, .22);
      border-radius: 9999px;
      padding: .28rem .8rem;
      cursor: pointer;
      transition: background .2s, color .2s;
      letter-spacing: .01em;
    }

    #notif-mark-all:hover {
      background: rgba(255, 255, 255, .25);
      color: #fff;
    }

    #notif-close-btn {
      width: 1.8rem;
      height: 1.8rem;
      border-radius: 50%;
      background: rgba(255, 255, 255, .12);
      border: 1px solid rgba(255, 255, 255, .22);
      color: rgba(255, 255, 255, .8);
      font-size: .85rem;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: background .2s, color .2s, transform .15s;
    }

    #notif-close-btn:hover {
      background: rgba(255, 255, 255, .25);
      color: #fff;
      transform: rotate(90deg);
    }

    /* ── Sub-header strip ── */
    #notif-subheader {
      padding: .55rem 1.25rem .4rem;
      background: #f8fafc;
      border-bottom: 1px solid #eef2f7;
      font-size: .7rem;
      color: #94a3b8;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: .4rem;
    }

    #notif-subheader::before {
      content: '';
      display: inline-block;
      width: .35rem;
      height: .35rem;
      border-radius: 50%;
      background: #6366f1;
      flex-shrink: 0;
    }

    #notif-subheader span {
      color: #4f46e5;
      font-weight: 700;
    }

    /* ── Backdrop overlay ── */
    #notif-overlay {
      position: fixed;
      inset: 0;
      background: rgba(2, 6, 23, .5);
      backdrop-filter: blur(4px) saturate(80%);
      -webkit-backdrop-filter: blur(4px) saturate(80%);
      z-index: 199;
      display: none;
      opacity: 0;
      transition: opacity .3s ease;
    }

    #notif-overlay.visible {
      display: block;
      opacity: 1;
    }

    /* ── Notification list ── */
    #notif-list {
      flex: 1;
      overflow-y: auto;
      padding: .6rem .6rem .6rem;
      display: flex;
      flex-direction: column;
      gap: .45rem;
      background: #f8fafc;
    }

    #notif-list::-webkit-scrollbar {
      width: 3px;
    }

    #notif-list::-webkit-scrollbar-track {
      background: transparent;
    }

    #notif-list::-webkit-scrollbar-thumb {
      background: linear-gradient(#6366f1, #0d9488);
      border-radius: 9999px;
    }

    /* ── Notification card ── */
    .notif-item {
      display: flex;
      align-items: flex-start;
      gap: .7rem;
      padding: .9rem 1rem;
      border-radius: .85rem;
      background: #fff;
      border: 1px solid #f1f5f9;
      box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
      cursor: default;
      position: relative;
      overflow: hidden;
    }

    /* Left accent bar */
    .notif-item::before {
      content: '';
      position: absolute;
      left: 0;
      top: 10%;
      bottom: 10%;
      width: 3.5px;
      border-radius: 9999px;
      background: #e2e8f0;
    }

    .notif-item.type-approval::before {
      background: linear-gradient(180deg, #22c55e, #16a34a);
    }

    .notif-item.type-warning::before {
      background: linear-gradient(180deg, #fbbf24, #f59e0b);
    }

    .notif-item.type-error::before {
      background: linear-gradient(180deg, #f87171, #ef4444);
    }

    .notif-item.type-info::before,
    .notif-item.unread::before {
      background: linear-gradient(180deg, #60a5fa, #3b82f6);
    }

    /* Unread tinted bg */
    .notif-item.unread {
      background: linear-gradient(135deg, #f0f9ff 0%, #fafffe 100%);
      border-color: #bfdbfe;
    }

    .notif-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
      border-color: #e0e7ff;
    }

    /* ── Icon square ── */
    .notif-icon {
      width: 2.5rem;
      height: 2.5rem;
      border-radius: .65rem;
      display: grid;
      place-items: center;
      flex-shrink: 0;
      font-size: .85rem;
    }

    /* ── Unread dot ── */
    .notif-dot {
      width: .5rem;
      height: .5rem;
      border-radius: 50%;
      background: #6366f1;
      flex-shrink: 0;
      margin-top: .4rem;
    }

    /* ── Time chip ── */
    .notif-time {
      display: inline-flex;
      align-items: center;
      gap: .3rem;
      font-size: .63rem;
      color: #94a3b8;
      background: #f1f5f9;
      border-radius: 9999px;
      padding: .1rem .5rem;
      margin-top: .4rem;
    }

    .notif-time i {
      opacity: .7;
    }

    /* ── Per-item dismiss button ── */
    .notif-dismiss-btn {
      flex-shrink: 0;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: transparent;
      border: 1.5px solid #e2e8f0;
      color: #94a3b8;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: .62rem;
      cursor: pointer;
      transition: background .15s, color .15s, border-color .15s, transform .15s;
      margin-top: .15rem;
      padding: 0;
      line-height: 1;
    }

    .notif-dismiss-btn:hover {
      background: #fee2e2;
      border-color: #fca5a5;
      color: #dc2626;
      transform: scale(1.18);
    }

    /* ── Empty state ── */
    .notif-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex: 1;
      padding: 3rem 1.5rem;
      text-align: center;
      background: #f8fafc;
    }

    .notif-empty-icon {
      width: 5rem;
      height: 5rem;
      border-radius: 50%;
      background: linear-gradient(135deg, #eef2ff, #e0f2fe);
      border: 2px solid #e0e7ff;
      display: grid;
      place-items: center;
      margin-bottom: 1.25rem;
      font-size: 1.75rem;
      color: #6366f1;
      box-shadow: 0 8px 24px rgba(99, 102, 241, .12);
    }

    /* ── Bell badge ── */
    .notif-badge {
      position: absolute;
      top: -5px;
      right: -5px;
      min-width: 1.15rem;
      height: 1.15rem;
      border-radius: 9999px;
      background: linear-gradient(135deg, #f43f5e, #ef4444);
      color: #fff;
      font-size: .55rem;
      font-weight: 900;
      display: grid;
      place-items: center;
      border: 2px solid #fff;
      padding: 0 .2rem;
      box-shadow: 0 2px 8px rgba(239, 68, 68, .5);
      animation: badge-pop .4s cubic-bezier(.175, .885, .32, 1.275) forwards;
    }

    @keyframes badge-pop {
      0% {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
      }

      70% {
        transform: scale(1.15) rotate(5deg);
        opacity: 1;
      }

      100% {
        transform: scale(1) rotate(0);
        opacity: 1;
      }
    }

    /* Unified Registration Dashboard Styling */
    .reg-dashboard-panel {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 8px;
    }

    .reg-dashboard-status-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    .reg-status-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 10px;
      font-weight: 700;
      padding: 5px 10px;
      border-radius: 9999px;
      line-height: 1;
      text-transform: uppercase;
      letter-spacing: 0.02em;
    }

    .badge-approved {
      background: #dcfce7;
      color: #15803d;
      border: 1px solid #bbf7d0;
    }

    .badge-rejected {
      background: #fee2e2;
      color: #b91c1c;
      border: 1px solid #fecaca;
    }

    .badge-waitlisted {
      background: #fef3c7;
      color: #d97706;
      border: 1px solid #fde68a;
    }

    .badge-pending {
      background: #f1f5f9;
      color: #475569;
      border: 1px solid #e2e8f0;
    }

    .btn-action-upload {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 10px;
      font-weight: 700;
      padding: 5px 12px;
      border-radius: 9999px;
      background: linear-gradient(180deg, #1e3a8a, #1d4ed8);
      color: #fff;
      border: 1px solid #1e3a8a;
      cursor: pointer;
      line-height: 1;
      transition: all 0.2s;
    }
    
    .btn-action-upload:hover {
      background: linear-gradient(180deg, #1f3fa0, #1e40af);
      box-shadow: 0 4px 12px -4px rgba(30, 58, 138, 0.4);
    }

    .reg-dashboard-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .btn-dashboard-action {
      flex: 1 1 auto;
      min-width: 75px;
      background: #ffffff;
      border: 1px solid #cbd5e1;
      color: #334155;
      padding: 8px 10px;
      font-size: 11px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-weight: 600;
      cursor: pointer;
      line-height: 1;
      transition: all 0.2s;
      box-shadow: 0 1px 2px rgba(2, 6, 23, 0.05);
    }

    .btn-dashboard-action:hover {
      background: #f8fafc;
      border-color: #94a3b8;
      color: #0f172a;
    }

    .btn-dashboard-action i {
      color: #64748b;
      font-size: 11px;
    }

    .btn-dashboard-action[disabled] {
      opacity: 0.5;
      cursor: not-allowed;
      pointer-events: none;
    }

    .reg-dashboard-waiting {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: #f1f5f9;
      border: 1px dashed #cbd5e1;
      border-radius: 8px;
      padding: 10px;
      font-size: 11px;
      color: #64748b;
      font-weight: 500;
      text-align: center;
    }

    .reg-dashboard-addons-row {
      display: flex;
      align-items: center;
      gap: 8px;
      border-top: 1px solid #e2e8f0;
      padding-top: 10px;
      margin-top: 2px;
    }

    .btn-addon-status {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #fef3c7;
      color: #d97706;
      border: 1px solid #fde68a;
      font-size: 10px;
      font-weight: 700;
      padding: 5px 10px;
      border-radius: 6px;
      cursor: pointer;
      line-height: 1;
      transition: all 0.2s;
    }

    .btn-addon-status:hover {
      background: #fde68a;
    }

    .btn-addon-reg {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #ffffff;
      color: #334155;
      border: 1px solid #cbd5e1;
      font-size: 10px;
      font-weight: 700;
      padding: 5px 12px;
      border-radius: 6px;
      cursor: pointer;
      line-height: 1;
      transition: all 0.2s;
      box-shadow: 0 1px 2px rgba(2, 6, 23, 0.05);
    }

    .btn-addon-reg:hover {
      background: #f8fafc;
      border-color: #94a3b8;
      color: #0f172a;
    }

    /* Live Transport Card Styling */
    #live-transport-card {
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
      -webkit-backdrop-filter: blur(16px);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(226, 232, 240, 0.8);
      border-radius: 1.5rem;
      padding: 2rem;
      box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.01);
      transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow: hidden;
    }

    #live-transport-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 6px;
      background: linear-gradient(90deg, #3b82f6 0%, #10b981 50%, #6366f1 100%);
    }

    .premium-tracking-subcard {
      background: rgba(255, 255, 255, 0.65);
      border: 1px solid rgba(226, 232, 240, 0.7);
      backdrop-filter: blur(8px);
      border-radius: 1rem;
      padding: 1.25rem;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02), 0 2px 4px -2px rgba(15, 23, 42, 0.02);
    }

    .premium-tracking-subcard:hover {
      transform: translateY(-2px);
      background: rgba(255, 255, 255, 0.95);
      border-color: rgba(99, 102, 241, 0.3);
      box-shadow: 0 12px 20px -8px rgba(99, 102, 241, 0.12);
    }

    .tracking-glow-text {
      color: #0f172a;
      font-size: 1.125rem;
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .tracking-label-caps {
      font-size: 0.65rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: #64748b;
      margin-bottom: 0.375rem;
    }

    .pulse-dot-active {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: #10b981;
      position: relative;
      display: inline-block;
      box-shadow: 0 0 12px #10b981;
    }

    .pulse-dot-active::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      border-radius: 50%;
      background-color: inherit;
      animation: tracking-pulse-anim 1.8s infinite ease-in-out;
    }

    @keyframes tracking-pulse-anim {
      0% {
        transform: scale(1);
        opacity: 0.8;
      }
      100% {
        transform: scale(3.5);
        opacity: 0;
      }
    }

    .fullscreen-gradient-btn {
      background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
      color: #ffffff !important;
      border: 1px solid rgba(255, 255, 255, 0.08);
      font-weight: 700;
      letter-spacing: 0.03em;
      border-radius: 0.875rem;
      box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.25);
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow: hidden;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }

    .fullscreen-gradient-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 15px 25px -5px rgba(15, 23, 42, 0.35);
      background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    }

    .fullscreen-gradient-btn:active {
      transform: translateY(0);
    }

    #student-mini-map {
      height: 360px;
      border-radius: 1.25rem;
      border: 1px solid rgba(226, 232, 240, 0.8);
      z-index: 1;
      overflow: hidden;
      box-shadow: inset 0 4px 12px 0 rgba(15, 23, 42, 0.03);
    }

    @media (max-width: 1024px) {
      #student-mini-map {
        height: 300px;
      }
    }

    /* Custom Leaflet Pulsing Markers for Telematics */
    .driver-pulse-marker {
      background: none;
      border: none;
    }

    .driver-marker-glow {
      width: 32px;
      height: 32px;
      background: rgba(16, 185, 129, 0.25);
      border: 2px solid #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
      animation: pulse-student-marker 1.6s infinite ease-in-out;
    }

    .driver-marker-glow i {
      font-size: 0.85rem;
      background: #10b981;
      padding: 0.35rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    @keyframes pulse-student-marker {
      0% {
        box-shadow: 0 0 0 0px rgba(16, 185, 129, 0.8), 0 0 15px rgba(16, 185, 129, 0.4);
      }
      100% {
        box-shadow: 0 0 0 12px rgba(16, 185, 129, 0), 0 0 15px rgba(16, 185, 129, 0.4);
      }
    }

    .stop-marker-pin {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 0.6rem;
      font-weight: 700;
      border: 1.5px solid #fff;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

    .stop-marker-pin.pending {
      background: #ef4444;
      box-shadow: 0 0 6px rgba(239, 68, 68, 0.3);
    }

    .stop-marker-pin.completed {
      background: #10b981;
      box-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
    }

    .stop-marker-pin.skipped {
      background: #f59e0b;
      box-shadow: 0 0 6px rgba(245, 158, 11, 0.3);
    }

/* Right-to-Left Notification Accent Bar Alignment */
.notif-item[dir="rtl"]::before {
  left: auto;
  right: 0;
}

/* Bottom Navigation Bar for Mobile */
#mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  z-index: 40;
  box-shadow: 0 -4px 12px rgba(2, 6, 23, 0.05);
}

#mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #64748b;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  font-family: inherit;
  outline: none;
  position: relative;
}

#mobile-bottom-nav .nav-item:active {
  transform: scale(0.95);
}

#mobile-bottom-nav .nav-item.active {
  color: #1e3a8a;
}

#mobile-bottom-nav .nav-item i {
  font-size: 1.15rem;
}

#mobile-bottom-nav .nav-item span {
  font-size: 0.65rem;
  font-weight: 600;
}

#mobile-bottom-nav .badge {
  position: absolute;
  top: 1px;
  right: 12px;
  background-color: #ef4444;
  color: white;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 0.1rem 0.25rem;
  border-radius: 9999px;
  min-width: 0.8rem;
  height: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid white;
}

/* Adjust page content margin on mobile to avoid bottom nav overlaying content */
@media (max-width: 767px) {
  body {
    padding-bottom: 4rem; /* space for bottom nav */
  }
}
@media (min-width: 768px) {
  #mobile-bottom-nav {
    display: none !important;
  }
}