:root{
  --navy:#0B1F3A;
  --navy2:#123E7C;
  --gold:#C9A227;
  --gold2:#E8D58A;
  --green:#14875B;
  --red:#C83D4A;
  --bg:#F4F7FB;
  --card:#FFFFFF;
  --text:#172033;
  --muted:#687386;
  --border:#DDE5EF;
  --shadow:0 14px 36px rgba(11,31,58,.10);
}

*{box-sizing:border-box}

body{
  margin:0;
  background:#dfe7f1;
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

button,input,select,textarea{
  font:inherit;
}

button{
  cursor:pointer;
}

#app{
  width:100%;
  max-width:430px;
  min-height:100vh;
  margin:0 auto;
  background:var(--bg);
  box-shadow:0 0 60px rgba(0,0,0,.15);
  position:relative;
  overflow:hidden;
}

.screen{
  display:none;
  min-height:100vh;
  background:var(--bg);
}

.screen.active{
  display:block;
}

.splash{
  background:
    radial-gradient(circle at 70% 18%,rgba(201,162,39,.18),transparent 30%),
    linear-gradient(155deg,#07162b,#0b2a51 65%,#061323);
  color:white;
  text-align:center;
  align-items:center;
  justify-content:center;
  flex-direction:column;
}

.splash.active{
  display:flex;
}

.splash-glow{
  position:absolute;
  width:310px;
  height:310px;
  border-radius:50%;
  background:rgba(201,162,39,.08);
  filter:blur(40px);
}

.brand-mark{
  width:110px;
  height:110px;
  border:2px solid var(--gold);
  border-radius:50%;
  display:grid;
  place-items:center;
  box-shadow:0 0 40px rgba(201,162,39,.25);
  z-index:2;
}

.brand-ring{
  width:82px;
  height:82px;
  border-radius:50%;
  background:linear-gradient(145deg,var(--gold2),var(--gold));
  color:var(--navy);
  font-size:46px;
  font-weight:900;
  display:grid;
  place-items:center;
}

.splash h1{
  color:var(--gold2);
  font-size:52px;
  margin:24px 0 0;
  letter-spacing:4px;
}

.splash h2{
  margin:8px 30px 0;
  font-size:21px;
}

.splash p{
  color:#c7d2e2;
  margin-top:10px;
}

.loader{
  position:absolute;
  bottom:60px;
  width:145px;
  height:5px;
  border-radius:99px;
  background:rgba(255,255,255,.16);
  overflow:hidden;
}

.loader span{
  display:block;
  width:50%;
  height:100%;
  background:linear-gradient(90deg,var(--gold),var(--gold2));
  animation:load 1.2s infinite alternate ease-in-out;
}

@keyframes load{
  from{transform:translateX(0)}
  to{transform:translateX(100%)}
}

.login-shell{
  min-height:100vh;
  background:
    radial-gradient(circle at 90% 0%,rgba(18,62,124,.12),transparent 32%),
    white;
  padding:70px 22px 32px;
}

.login-brand{
  text-align:center;
  margin-bottom:32px;
}

.mini-logo{
  width:72px;
  height:72px;
  margin:0 auto 12px;
  border-radius:50%;
  background:linear-gradient(145deg,var(--gold2),var(--gold));
  color:var(--navy);
  font-weight:900;
  font-size:34px;
  display:grid;
  place-items:center;
  box-shadow:0 10px 25px rgba(201,162,39,.22);
}

.login-brand h1{
  margin:0;
  color:var(--navy);
  font-size:32px;
}

.login-brand p{
  margin:4px 0;
  color:var(--navy2);
  font-weight:650;
}

.login-card{
  background:white;
  border:1px solid var(--border);
  border-radius:22px;
  padding:22px;
  box-shadow:var(--shadow);
}

.login-card h2{
  margin:0;
}

.muted{
  color:var(--muted);
  margin:6px 0 24px;
}

label{
  display:block;
  font-weight:700;
  font-size:13px;
  margin:16px 0 7px;
}

.input-wrap{
  min-height:52px;
  border:1px solid var(--border);
  border-radius:13px;
  display:flex;
  align-items:center;
  padding:0 14px;
  background:#fbfdff;
}

.input-wrap input{
  border:0;
  outline:0;
  background:transparent;
  flex:1;
  padding:0 10px;
}

.login-options{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:15px 0 20px;
}

.remember{
  margin:0;
  font-weight:500;
}

.link-btn{
  border:0;
  background:none;
  color:var(--navy2);
  font-size:12px;
}

.primary,.secondary{
  min-height:50px;
  border-radius:13px;
  padding:0 18px;
  font-weight:800;
  border:0;
}

.primary{
  background:linear-gradient(135deg,var(--navy),var(--navy2));
  color:white;
}

.secondary{
  background:#edf2f7;
  color:var(--navy);
}

.full{
  width:100%;
}

.secure-note{
  margin-top:18px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
}

.topbar{
  padding:22px 20px 26px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}

.topbar.dark{
  color:white;
  background:
    radial-gradient(circle at 100% 0%,rgba(201,162,39,.2),transparent 42%),
    linear-gradient(135deg,var(--navy),#0d376a);
}

.topbar h2{
  margin:4px 0;
  font-size:21px;
}

.topbar p,.topbar small{
  margin:0;
  opacity:.8;
}

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

.top-actions button{
  width:40px;
  height:40px;
  border-radius:50%;
  border:0;
}

.avatar{
  background:var(--gold)!important;
  color:var(--navy);
  font-weight:900;
}

.content{
  padding:18px 18px 100px;
}

.hero-action{
  width:100%;
  border:0;
  border-radius:20px;
  padding:18px;
  display:flex;
  gap:15px;
  align-items:center;
  text-align:left;
  color:var(--navy);
  background:
    linear-gradient(135deg,#f9e6a1,#cda833);
  box-shadow:0 14px 30px rgba(201,162,39,.28);
}

.hero-plus{
  min-width:55px;
  height:55px;
  border-radius:50%;
  background:var(--navy);
  color:var(--gold2);
  display:grid;
  place-items:center;
  font-size:34px;
}

.hero-action small{
  display:block;
  font-size:10px;
  letter-spacing:1px;
  opacity:.7;
}

.hero-action strong{
  display:block;
  font-size:19px;
  margin:3px 0;
}

.hero-action span{
  font-size:13px;
  font-weight:700;
}

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

.stats-grid article{
  background:white;
  border-radius:16px;
  padding:15px;
  border:1px solid var(--border);
  box-shadow:0 7px 20px rgba(11,31,58,.05);
}

.stats-grid strong{
  display:block;
  color:var(--navy2);
  font-size:25px;
}

.stats-grid span{
  color:var(--muted);
  font-size:12px;
}

.green{color:var(--green)!important}
.red{color:var(--red)!important}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:24px 2px 12px;
}

.section-head h3{
  margin:0;
  font-size:17px;
}

.section-head button{
  border:0;
  background:none;
  color:var(--navy2);
  font-weight:700;
}

.quick-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:9px;
}

.quick-grid button{
  min-height:78px;
  border:1px solid var(--border);
  border-radius:15px;
  background:white;
  font-size:24px;
}

.quick-grid span{
  display:block;
  font-size:10px;
  margin-top:7px;
  color:var(--text);
  font-weight:650;
}

.student-mini{
  display:flex;
  align-items:center;
  gap:11px;
  background:white;
  padding:12px;
  border-radius:15px;
  border:1px solid var(--border);
  margin-bottom:9px;
}

.student-mini>div:nth-child(2){
  flex:1;
}

.student-mini strong,
.student-mini span{
  display:block;
}

.student-mini span{
  color:var(--muted);
  font-size:11px;
}

.student-avatar{
  width:42px;
  height:42px;
  flex:none;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#dce8f7;
  color:var(--navy2);
  font-weight:900;
}

.student-avatar.large{
  width:70px;
  height:70px;
  margin:0 auto 12px;
}

.student-avatar.xl{
  width:78px;
  height:78px;
}

.status{
  display:inline-flex!important;
  padding:5px 8px;
  border-radius:999px;
  font-size:10px!important;
  font-weight:800;
}

.active-status{
  background:#dcf7eb;
  color:#087349!important;
}

.pending-status{
  background:#fff1d2;
  color:#986800!important;
}

.bottom-nav{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:72px;
  background:var(--navy);
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1fr 1fr;
  align-items:center;
  padding:5px 6px 8px;
}

.bottom-nav button{
  color:#c6d2e1;
  background:none;
  border:0;
  font-size:18px;
}

.bottom-nav button span{
  display:block;
  font-size:9px;
  margin-top:3px;
}

.bottom-nav .nav-active{
  color:var(--gold2);
}

.bottom-nav .nav-add{
  width:55px;
  height:55px;
  border-radius:50%;
  background:linear-gradient(145deg,var(--gold2),var(--gold));
  color:var(--navy);
  font-size:31px;
  margin:-29px auto 0;
  box-shadow:0 8px 20px rgba(201,162,39,.35);
}

.simple-header{
  display:flex;
  gap:12px;
  align-items:center;
  padding:18px;
  background:white;
  border-bottom:1px solid var(--border);
}

.simple-header h2{
  margin:0;
  font-size:19px;
}

.simple-header p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:11px;
}

.back-btn{
  width:39px;
  height:39px;
  border-radius:12px;
  border:1px solid var(--border);
  background:white;
  font-size:19px;
}

.stepper{
  display:flex;
  justify-content:space-between;
  padding:17px 24px;
  background:white;
}

.step-dot{
  width:29px;
  height:29px;
  border-radius:50%;
  background:#e7edf4;
  color:#738093;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:800;
}

.step-dot.current,
.step-dot.done{
  background:var(--navy2);
  color:white;
}

.step-dot.done{
  background:var(--green);
}

.form-content{
  padding-bottom:96px;
}

.form-step{
  display:none;
}

.form-step.active{
  display:block;
}

.step-title small{
  color:var(--gold);
  font-weight:900;
}

.step-title h3{
  margin:2px 0 18px;
}

.photo-upload{
  display:flex;
  align-items:center;
  gap:15px;
  background:white;
  padding:14px;
  border:1px solid var(--border);
  border-radius:16px;
}

.photo-placeholder{
  width:70px;
  height:70px;
  border-radius:50%;
  background:#e6edf5;
  display:grid;
  place-items:center;
  font-size:34px;
}

.photo-upload button,
.upload-card button{
  border:0;
  border-radius:10px;
  padding:9px 12px;
  color:var(--navy2);
  background:#edf3fb;
  font-weight:700;
}

.form-content input,
.form-content select,
.form-content textarea,
.search-input{
  width:100%;
  min-height:50px;
  border:1px solid var(--border);
  border-radius:12px;
  background:white;
  padding:12px 13px;
  outline:none;
}

.form-content textarea{
  min-height:90px;
  resize:vertical;
}

.form-content input:focus,
.form-content select:focus,
.form-content textarea:focus{
  border-color:var(--navy2);
  box-shadow:0 0 0 3px rgba(18,62,124,.08);
}

.form-footer{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  background:white;
  border-top:1px solid var(--border);
  padding:12px 17px;
  display:grid;
  grid-template-columns:1fr 1.5fr;
  gap:10px;
}

.upload-card{
  background:white;
  border:1px solid var(--border);
  border-radius:15px;
  padding:14px;
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.upload-card>span{
  font-size:28px;
}

.upload-card>div{
  flex:1;
}

.upload-card strong,
.upload-card small{
  display:block;
}

.upload-card small{
  color:var(--muted);
  margin-top:3px;
}

.review-card{
  background:white;
  border-radius:16px;
  border:1px solid var(--border);
  padding:16px;
}

.review-card p{
  display:flex;
  justify-content:space-between;
  gap:15px;
  border-bottom:1px solid #edf1f5;
  padding:9px 0;
  margin:0;
  font-size:12px;
}

.review-card p:last-child{
  border-bottom:0;
}

.review-card span{
  color:var(--muted);
}

.confirm-box{
  display:flex;
  gap:9px;
  align-items:flex-start;
  background:#fff9e8;
  border:1px solid #f2df9f;
  padding:13px;
  border-radius:12px;
  margin-top:16px;
}

.success-screen{
  text-align:center;
  padding:90px 24px 35px;
  background:white;
}

.success-icon{
  width:85px;
  height:85px;
  border-radius:50%;
  background:var(--green);
  color:white;
  display:grid;
  place-items:center;
  margin:0 auto 20px;
  font-size:50px;
  box-shadow:0 15px 30px rgba(20,135,91,.25);
}

.success-screen h2{
  color:var(--green);
}

.success-screen>p{
  color:var(--muted);
}

.success-card{
  margin:28px 0;
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:18px;
  padding:20px;
}

.success-card h3{
  margin:4px 0 12px;
}

.success-card span,
.success-card strong{
  display:block;
}

.success-card span{
  color:var(--muted);
  font-size:11px;
}

.success-card strong{
  color:var(--navy2);
  margin-top:4px;
}

.success-screen button{
  margin-top:10px;
}

.search-input{
  margin-bottom:12px;
}

.filter-row{
  display:flex;
  gap:8px;
  margin-bottom:15px;
  overflow:auto;
}

.filter{
  border:1px solid var(--border);
  background:white;
  padding:8px 12px;
  white-space:nowrap;
  border-radius:999px;
  font-size:11px;
}

.active-filter{
  background:var(--navy2);
  color:white;
  border-color:var(--navy2);
}

.student-row{
  width:100%;
  background:white;
  border:1px solid var(--border);
  border-radius:15px;
  padding:12px;
  display:flex;
  gap:11px;
  align-items:center;
  text-align:left;
  margin-bottom:10px;
}

.student-row>div:nth-child(2){
  flex:1;
}

.student-row strong,
.student-row span,
.student-row small{
  display:block;
}

.student-row span,
.student-row small{
  color:var(--muted);
  margin-top:2px;
}

.floating-add{
  position:absolute;
  right:20px;
  bottom:24px;
  width:58px;
  height:58px;
  border:0;
  border-radius:50%;
  background:linear-gradient(145deg,var(--gold2),var(--gold));
  color:var(--navy);
  font-size:32px;
  box-shadow:0 12px 30px rgba(201,162,39,.4);
}

.profile-head{
  display:flex;
  gap:15px;
  align-items:center;
  background:white;
  border:1px solid var(--border);
  border-radius:18px;
  padding:17px;
}

.profile-head h2{
  margin:0 0 3px;
  font-size:19px;
}

.profile-head p{
  margin:0 0 7px;
  color:var(--muted);
  font-size:11px;
}

.tab-row{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:5px;
  margin:15px 0;
  background:#e8eef5;
  padding:4px;
  border-radius:12px;
}

.tab-row button{
  border:0;
  background:transparent;
  padding:9px 2px;
  border-radius:9px;
  font-size:11px;
}

.tab-row .tab-active{
  background:white;
  color:var(--navy2);
  font-weight:800;
  box-shadow:0 3px 8px rgba(0,0,0,.06);
}

.detail-card{
  background:white;
  border:1px solid var(--border);
  border-radius:16px;
  padding:15px;
  margin-bottom:12px;
}

.detail-card h3{
  margin:0 0 11px;
  font-size:15px;
}

.detail-card p{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin:0;
  padding:8px 0;
  border-bottom:1px solid #edf1f5;
  font-size:11px;
}

.detail-card p:last-child{
  border:0;
}

.detail-card span{
  color:var(--muted);
}

.detail-card strong{
  text-align:right;
}

@media (min-width:700px){
  body{padding:30px 0}
  #app{
    min-height:900px;
    border-radius:30px;
  }
}
