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

    :root{
      --bg:#f4f6f8;
      --card:rgba(255,255,255,.92);
      --text:#0f172a;
      --muted:#64748b;
      --line:#e5e7eb;
      --accent:#1d4ed8;
      --success:#0f9d58;
      --danger:#dc2626;
      --shadow:0 12px 28px rgba(100,103,42,.06);
      --shadow-soft:0 6px 16px rgba(15,23,42,.04);
    }

    body{
      font-family:"Inter",sans-serif;
      background:var(--bg);
      color:var(--text);
      min-height:100vh;
      overflow-x:hidden;
      padding-bottom:110px;
    }

    .page-glow{
      position:fixed;
      border-radius:50%;
      filter:blur(90px);
      z-index:-1;
      opacity:.24;
    }

    .glow-a{
      width:240px;
      height:240px;
      background:#dbeafe;
      top:-70px;
      left:-70px;
    }

    .glow-b{
      width:280px;
      height:280px;
      background:#e0e7ff;
      right:-90px;
      bottom:40px;
    }

    #container{
      width:min(94%, 760px);
      margin:0 auto;
      padding:18px 0 0;
    }
    
    #fix{
      display: none;
      justify-content: space-between;
      align-items: center;
      padding: 5px 12px;
      margin: 0 !important;
      background: #f11;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      
    }
    
    #what{
      flex: 1;
      color: white;
      font-size: 13px;
    }
    
    #action{
      color: white;
      font-weight: bold;
      font-size: 13px;
      font-family: "IBM Plex Sans";
      background: rgba(100,100,100,.12);
      padding: 5px;
      border-radius: 4px;
      box-shadow: var(--shadow);
    }


    #tbar{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:14px;
      padding:4px 2px 0;
    }

    .brand-group{
      display:flex;
      align-items:center;
      gap:12px;
    }

    .avatar{
      width:50px;
      height:50px;
      border-radius:15px;
      background:rgba(255,255,255,.92);
      box-shadow:var(--shadow-soft);
      display:flex;
      align-items:center;
      justify-content:center;
      border:1px solid rgba(255,255,255,.85);
    }

    .avatar .material-icons{
      font-size:24px;
      color:var(--accent);
    }

    .eyebrow{
      font-size:11px;
      color:var(--muted);
      font-family:"DM Sans",sans-serif;
      letter-spacing:.09em;
      text-transform:uppercase;
      margin-bottom:3px;
    }

    #title{
      font-size:16px;
      line-height:1.1;
      font-weight:800;
      letter-spacing:-.03em;
    }

    #log-out{
      width:44px;
      height:44px;
      border:none;
      border-radius:14px;
      background:rgba(255,255,255,.92);
      box-shadow:var(--shadow-soft);
      display:flex;
      align-items:center;
      justify-content:center;
      transition:.18s ease;
    }

    #log-out:active{
      transform:scale(.96);
    }

    #log-out .material-icons{
      color:var(--danger);
      font-size:21px;
    }

    /* compact premium profile card */
    #student-card{
      margin-top:14px;
      background:var(--card);
      backdrop-filter:blur(18px);
      -webkit-backdrop-filter:blur(18px);
      border:1px solid rgba(255,255,255,.8);
      border-radius:16px;
      padding:14px 15px 12px;
      box-shadow:var(--shadow);
    }

    .student-head{
      display:flex;
      justify-content:space-between;
      gap:12px;
      align-items:flex-start;
    }

    .card-label{
      font-size:10px;
      color:var(--muted);
      text-transform:uppercase;
      letter-spacing:.12em;
      margin-bottom:6px;
      font-family:"DM Sans",sans-serif;
    }

    #student-name{
      position:relative;
      display:inline-block;
      font-size:14px;
      line-height:1.1;
      font-weight:800;
      letter-spacing:-.03em;
      overflow:hidden;
      isolation:isolate;
      max-width:100%;
    }

    /* subtle grey sweep over the user's name */
    #student-name::after{
      content:"";
      position:absolute;
      inset:-40% -60%;
      background:linear-gradient(120deg, transparent 30%, rgba(148,163,184,.17) 50%, transparent 70%);
      transform:translateX(-75%);
      animation:nameSweep 6s ease-in-out infinite;
      pointer-events:none;
      mix-blend-mode:screen;
    }

    @keyframes nameSweep{
      0%{ transform:translateX(-75%); opacity:.12; }
      50%{ transform:translateX(25%); opacity:.25; }
      100%{ transform:translateX(75%); opacity:.12; }
    }

    .name-line{
      margin-top:6px;
      color:var(--muted);
      font-size:12.5px;
      font-family:"IBM Plex Sans",sans-serif;
      line-height:1.25;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }

    .status-pill{
      display:inline-flex;
      align-items:center;
      gap:5px;
      white-space:nowrap;
      padding:8px 11px;
      border-radius:999px;
      background:#ecfdf5;
      color:var(--success);
      font-size:12px;
      font-weight:700;
      border:1px solid rgba(16,185,129,.15);
      box-shadow:0 5px 12px rgba(16,185,129,.06);
      font-family:"DM Sans",sans-serif;
      flex:0 0 auto;
    }

    .status-pill .material-icons{
      font-size:16px;
    }

    #error-label{
      display:none;
      margin-top:12px;
      background:#fff1f2;
      color:var(--danger);
      border:1px solid rgba(220,38,38,.12);
      border-radius:14px;
      padding:11px 13px;
      align-items:center;
      gap:10px;
      box-shadow:var(--shadow-soft);
    }

    #error-label .material-icons{
      font-size:20px;
    }

    #error-label p{
      font-size:13px;
      font-weight:600;
      font-family:"DM Sans",sans-serif;
    }

    .section-head{
      margin-top:18px;
      padding:0 2px;
    }

    .section-head h3{
      font-size:19px;
      font-weight:800;
      letter-spacing:-.02em;
    }

    .section-head p{
      margin-top:4px;
      font-size:13px;
      color:var(--muted);
      font-family:"IBM Plex Sans",sans-serif;
    }

    #courses{
      margin-top:12px;
      display:flex;
      flex-direction:column;
      gap:11px;
      overflow-y: auto;
      padding-bottom: 30% !important;
    }

    .courses-item{
      background:rgba(255,255,255,.96);
      backdrop-filter:blur(14px);
      -webkit-backdrop-filter:blur(14px);
      border:1px solid rgba(226,232,240,.95);
      border-radius:14px;
      padding:13px 13px 12px;
      box-shadow:0 8px 18px rgba(15,23,42,.045);
      display:flex;
      align-items:center;
      gap:11px;
    }

    .course-icon{
      width:42px;
      height:42px;
      border-radius:12px;
      background:#f8fafc;
      border:1px solid #e2e8f0;
      display:flex;
      align-items:center;
      justify-content:center;
      flex:0 0 auto;
    }

    .course-icon .material-icons{
      font-size:20px;
      color:#334155;
    }

    .course-left{
      min-width:0;
      display:flex;
      flex-direction:column;
      gap:4px;
    }

    .courses-code{
      font-size:13px;
      font-weight:800;
      letter-spacing:-.01em;
    }

    .courses-lecturer{
      font-size:12px;
      color:var(--muted);
      font-family:"IBM Plex Sans",sans-serif;
    }

    .courses-open{
      margin-left:auto;
      padding:8px 12px;
      border-radius:999px;
      font-size:12px;
      font-weight:700;
      border:1px solid transparent;
      white-space:nowrap;
      font-family:"DM Sans",sans-serif;
    }

    /* Sign button with subtle moving line */
    #sign{
      position:fixed;
      left:50%;
      transform:translateX(-50%);
      bottom:18px;
      width:min(94%, 760px);
      height:60px;
      border:none;
      border-radius:18px;
      background:#111827;
      color:#fff;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      font-size:15px;
      font-weight:700;
      box-shadow:0 16px 30px rgba(17,24,39,.18);
      font-family:"DM Sans",sans-serif;
      overflow:hidden;
    }

    #sign::before{
      content:"";
      position:absolute;
      inset:0;
      background:linear-gradient(120deg, transparent 20%, rgba(255,255,255,.15) 50%, transparent 80%);
      transform:translateX(-120%);
      animation:buttonSweep 4.5s ease-in-out infinite;
      pointer-events:none;
    }

    #sign::after{
      content:"";
      position:absolute;
      left:0;
      top:50%;
      width:28%;
      height:1px;
      background:linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
      filter:blur(.2px);
      animation:thinRun 3.8s ease-in-out infinite;
      opacity:.5;
      pointer-events:none;
    }

    @keyframes buttonSweep{
      0%{ transform:translateX(-120%); opacity:0; }
      25%{ opacity:.45; }
      50%{ transform:translateX(120%); opacity:.18; }
      100%{ transform:translateX(120%); opacity:0; }
    }

    @keyframes thinRun{
      0%{ left:-20%; opacity:0; }
      20%{ opacity:.25; }
      50%{ left:48%; opacity:.55; }
      80%{ opacity:.2; }
      100%{ left:100%; opacity:0; }
    }

    #sign .material-icons{
      font-size:20px;
      position:relative;
      z-index:1;
    }

    #sign span:last-child{
      position:relative;
      z-index:1;
    }

    #overlay{
      position:fixed;
      inset:0;
      background:rgba(15,23,42,.34);
      backdrop-filter:blur(8px);
      -webkit-backdrop-filter:blur(8px);
      display:none;
      z-index:90;
    }

    #sign-box{
      position:fixed;
      top:40%;
      left:50%;
      transform:translate(-50%,-50%);
      background:rgba(255,255,255,.96);
      border-radius:22px;
      padding:18px 16px 16px;
      box-shadow:0 22px 60px rgba(15,23,42,.16);
      display:none;
      align-items:center;
      flex-direction:column;
      width:min(86%, 360px);
      z-index:100;
      border:1px solid rgba(255,255,255,.88);
      backdrop-filter:blur(20px);
      -webkit-backdrop-filter:blur(20px);
    }

    #sign-box-logo{
      font-size:32px;
      color:#475569;
      background:#f8fafc;
      width:56px;
      height:56px;
      border-radius:18px;
      display:flex;
      align-items:center;
      justify-content:center;
      border:1px solid #e2e8f0;
      box-shadow:0 8px 18px rgba(15,23,42,.05);
    }

    #sign-box-h3{
      margin-top:10px;
      color:#111827;
      font-family:"Inter",sans-serif;
      font-weight:800;
      font-size:18px;
      letter-spacing:-.02em;
    }

    .field-wrap1{
      width:100%;
      margin-top:10px;
    }

    #pin{
      width:100%;
      text-align:center;
      font-size:17px;
      font-family:"IBM Plex Sans",sans-serif;
      height:48px;
      border-radius:14px;
      border:1px solid #e2e8f0;
      outline:none;
      background:#f8fafc;
      color:#111827;
      letter-spacing:5px;
      font-weight:700;
    }

    #pin::placeholder{
      color:#94a3b8;
      letter-spacing:3px;
      font-weight:600;
    }

    #pin:focus{
      border-color:#cbd5e1;
      background:#fff;
    }

    #confirm{
      width:100%;
      background:#111827;
      color:#fff;
      display:flex;
      align-items:center;
      justify-content:center;
      border:none;
      outline:none;
      border-radius:14px;
      box-shadow:0 8px 18px rgba(0,0,0,.12);
      margin-top:12px;
      padding:12px 12px;
      gap:5px;
      font-family:"DM Sans",sans-serif;
      position:relative;
      overflow:hidden;
    }

    #confirm::before{
      content:"";
      position:absolute;
      inset:0;
      background:linear-gradient(120deg, transparent 25%, rgba(255,255,255,.22) 50%, transparent 75%);
      transform:translateX(-120%);
      animation:buttonSheen 3.8s ease-in-out infinite;
      pointer-events:none;
    }

    #confirm .material-icons{
      font-size:18px;
      position:relative;
      z-index:2;
    }

    #confirm-text{
      font-weight:700;
      font-size:14px;
      position:relative;
      z-index:2;
    }

    @keyframes buttonSheen{
      0%{ transform:translateX(-120%); opacity:0; }
      25%{ opacity:.55; }
      50%{ transform:translateX(120%); opacity:.18; }
      100%{ transform:translateX(120%); opacity:0; }
    }

    #toast{
      position:fixed;
      left:50%;
      bottom:92px;
      transform:translateX(-50%) translateY(16px);
      opacity:0;
      pointer-events:none;
      z-index:200;
      background:#111827;
      color:#fff;
      padding:12px 16px;
      border-radius:999px;
      font-size:13px;
      font-weight:600;
      box-shadow:0 16px 36px rgba(15,23,42,.22);
      transition:.25s ease;
      max-width:min(92vw, 420px);
      text-align:center;
      font-family:"DM Sans",sans-serif;
    }

    #toast.show{
      opacity:1;
      transform:translateX(-50%) translateY(0);
    }

    #working-overlay{
      position:fixed;
      inset:0;
      background:rgba(15,23,42,.36);
      backdrop-filter:blur(8px);
      -webkit-backdrop-filter:blur(8px);
      display:none;
      align-items:center;
      justify-content:center;
      z-index:250;
    }

    .loader-card{
      background:rgba(255,255,255,.96);
      border:1px solid rgba(255,255,255,.82);
      border-radius:18px;
      padding:18px 20px;
      min-width:160px;
      display:flex;
      flex-direction:column;
      align-items:center;
      gap:10px;
      box-shadow:0 20px 55px rgba(15,23,42,.16);
    }

    .spinner{
      width:34px;
      height:34px;
      border-radius:50%;
      border:3px solid #e2e8f0;
      border-top-color:#111827;
      animation:spin .8s linear infinite;
    }

    @keyframes spin{
      to{ transform:rotate(360deg); }
    }

    .sparkle{
      position:fixed;
      width:8px;
      height:8px;
      border-radius:50%;
      background:white;
      pointer-events:none;
      z-index:9999;
      box-shadow:0 0 0 2px rgba(255,255,255,.14);
      animation:sparkle 900ms ease-out forwards;
    }

    @keyframes sparkle{
      0%{
        opacity:1;
        transform:translate(0,0) scale(1);
      }
      100%{
        opacity:0;
        transform:translate(var(--x), var(--y)) scale(0);
      }
    }

    @media (max-width: 420px){
      #student-name{ font-size:19px; }
      .name-line{ font-size:12px; }
      #sign-box{
        width:88%;
      }
    }
    
  
  
/* ========================= */
/*      CONFIRM DIALOG       */
/* ========================= */

#confirm-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1;
  animation: fadeIn 0.35s ease;
}

.confirm-card {
  width: min(100%, 390px);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 30px;
  padding: 32px 22px 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.7);

  box-shadow:
    0 30px 60px rgba(0,0,0,0.18),
    0 4px 12px rgba(0,0,0,0.06);

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* glowing background */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.6;
}

.orb1 {
  width: 180px;
  height: 180px;
  background: rgba(0,0,0,0.06);
  top: -70px;
  right: -50px;
}

.orb2 {
  width: 140px;
  height: 140px;
  background: rgba(0,0,0,0.04);
  bottom: -50px;
  left: -40px;
}

/* ========================= */
/*         LOADER            */
/* ========================= */

.loader-wrap {
  width: 120px;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
}

.ring1 {
  width: 120px;
  height: 120px;
  border-width: 4px;
  border-color: rgba(0,0,0,0.08);
  border-top-color: #000;
  animation: rotate 1s linear infinite;
}

.ring2 {
  width: 88px;
  height: 88px;
  border-width: 3px;
  border-color: rgba(0,0,0,0.06);
  border-bottom-color: #000;
  animation: rotateReverse 1.2s linear infinite;
}

.center-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(180deg, #000 0%, #181818 100%);
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 12px 25px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.1);

  animation: pulseScale 2s ease infinite;
}

.center-icon ion-icon {
  color: white;
  font-size: 26px;
}

/* ========================= */
/*          TEXT             */
/* ========================= */

#confirm-title {
  margin-top: 22px;
  font-size: 25px;
  font-weight: 700;
  color: #111;
  text-align: center;
  letter-spacing: -0.03em;
}

#confirm-desc {
  margin-top: 12px;
  text-align: center;
  color: #666;
  font-size: 13px;
  line-height: 1.7;
}

/* ========================= */
/*         REP BOX           */
/* ========================= */

.rep-box {
  width: 100%;
  margin-top: 22px;
  background: linear-gradient(180deg, #0f0f0f 0%, #1b1b1b 100%);
  border-radius: 22px;
  padding: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 16px 30px rgba(0,0,0,0.12);
}

.rep-box::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  top: -70px;
  right: -50px;
}

.rep-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
}

#rep-name {
  margin-top: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

/* ========================= */
/*       STATUS LINE         */
/* ========================= */

.status-line {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000;
  animation: pulseDot 1.2s infinite;
}

#confirm-status {
  color: #444;
  font-size: 13px;
  font-weight: 500;
}

/* ========================= */
/*        ANIMATIONS         */
/* ========================= */

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateReverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes pulseScale {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes pulseDot {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.4);
  }

  100% {
    opacity: 0.3;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}