/* ============================================================
   IBSC Student Portal — style.css v2
   Design: Premium Dark Gold, Mobile-First, International
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --gold:       #d97706; /* Rich gold for readable text */
  --gold-l:     #fbbf24;
  --gold-d:     #b45309;
  --amber:      #f97316;
  --green:      #10b981;
  --red:        #ef4444;
  --blue:       #3b82f6;
  --indigo:     #6366f1;
  --bg:         #f8fafc; /* Serene light slate */
  --card:       #ffffff; /* Elegant white cards */
  --border:     #e2e8f0; /* Soft borders */
  --text:       #0f172a; /* Slate black text */
  --text2:      #475569; /* Muted text */
  --text3:      #94a3b8; /* Light gray text */
  --r16:        16px;
  --r12:        12px;
  --r8:         8px;
  --nav:        68px;
  --topbar:     60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; }
input, select { font-family: inherit; }
.hidden { display: none !important; }

/* ============================================================
   LOGIN
   ============================================================ */
#login-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #fef3c7 100%);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
#login-screen::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(245,158,11,0.08) 0%, transparent 60%);
  pointer-events: none;
}
#login-screen::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(99,102,241,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 2;
  animation: slideUp 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}
.login-logo img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-l);
  box-shadow: 0 4px 16px rgba(217,119,6,0.15);
}
.login-logo h1 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(100deg, #0f172a 30%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}
.login-logo p {
  font-size: 0.72rem;
  color: var(--text2);
  text-align: center;
  line-height: 1.6;
}

.login-form-group { margin-bottom: 1.25rem; }
.login-form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 0.45rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.login-input-wrap { position: relative; }
.login-input-wrap .input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text3);
  pointer-events: none;
}
.login-input-wrap input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s;
  letter-spacing: 1.5px;
}
.login-input-wrap input::placeholder { color: var(--text3); letter-spacing: 0.5px; font-weight: 400; font-size: 0.9rem; }
.login-input-wrap input:focus {
  background: #fff;
  border-color: var(--gold-l);
  box-shadow: 0 0 0 3px rgba(217,119,6,0.1);
}

.btn-login {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.95rem;
  background: linear-gradient(135deg, #f59e0b 0%, #fb923c 100%);
  border-radius: 14px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 24px rgba(245,158,11,0.38);
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(245,158,11,0.52); }
.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: 0.6; pointer-events: none; }

.login-err {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.28);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 0.8rem;
  text-align: center;
}
.login-footer {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  line-height: 1.6;
}

/* ============================================================
   APP SHELL
   ============================================================ */
#app-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--nav);
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar);
  background: #0f172a; /* Solid deep navy */
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-left { display: flex; align-items: center; gap: 0.7rem; }
.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-l);
  background: rgba(255,255,255,0.1);
}
.t-name { font-size: 0.85rem; font-weight: 700; color: #ffffff; }
.t-id { font-size: 0.68rem; color: rgba(255,255,255,0.55); }
.btn-logout {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.38rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}
.btn-logout:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.3); color: var(--red); }

.app-content {
  flex: 1;
  padding: 1rem 1rem 0.5rem;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav);
  background: #0f172a; /* Solid deep navy */
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.25rem;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.25rem;
  background: none;
  border-radius: 12px;
  color: rgba(255,255,255,0.55);
  font-size: 0.65rem;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}
.nav-item svg { width: 22px; height: 22px; stroke-width: 1.75; transition: all 0.2s; }
.nav-item.active { color: var(--gold-l); }
.nav-item.active svg { stroke: var(--gold-l); filter: drop-shadow(0 0 6px rgba(251,191,36,0.6)); }
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--gold-l);
  border-radius: 2px 2px 0 0;
}
.nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  background: var(--red);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Loader */
.page-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 4rem 2rem;
  color: var(--text3);
  font-size: 0.85rem;
}
.pl-spin {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

/* Tabs */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r16);
  padding: 1.25rem;
  margin-bottom: 0.875rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Section Heading */
.section-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 3px solid var(--gold);
  padding-left: 0.5rem;
}
.section-heading svg { width: 16px; height: 16px; stroke: var(--gold-l); }

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.status-badge.active { background: rgba(16,185,129,0.15); color: #34d399; }
.status-badge.leave  { background: rgba(245,158,11,0.15); color: #fbbf24; }
.status-badge.grad   { background: rgba(129,140,248,0.15); color: #a5b4fc; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text3);
}
.empty-state svg { width: 36px; height: 36px; margin: 0 auto 0.75rem; opacity: 0.35; stroke: var(--text3); }
.empty-state p { font-size: 0.85rem; }

/* Toast */
.toast {
  position: fixed;
  bottom: calc(var(--nav) + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: #fff;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #064e3b; border-color: #047857; }
.toast.error   { background: #7f1d1d; border-color: #b91c1c; }
.toast.info    { background: #1e293b; border-color: #334155; }

/* ============================================================
   TAB 1: PROFILE
   ============================================================ */
.profile-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #fef3c7 100%);
  border-radius: var(--r16);
  padding: 1.75rem 1.25rem 1.5rem;
  margin-bottom: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
  border: 1px solid var(--border);
}
.profile-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(245,158,11,0.2) 0%, transparent 65%);
  pointer-events: none;
}
.profile-hero::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.profile-hero-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(251,191,36,0.6);
  box-shadow: 0 0 24px rgba(245,158,11,0.25);
  position: relative;
  z-index: 1;
}
.profile-hero-name { text-align: center; position: relative; z-index: 1; }
.profile-hero-name h2 { font-size: 1.15rem; font-weight: 800; color: #0f172a; letter-spacing: -0.3px; }
.ph-id { font-size: 0.72rem; color: #475569; margin-top: 0.2rem; }

.info-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row:first-child { padding-top: 0; }
.info-row svg { width: 15px; height: 15px; stroke: var(--gold); flex-shrink: 0; }
.info-row-label { font-size: 0.68rem; color: var(--text3); }
.info-row-value { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-top: 0.1rem; }

/* ============================================================
   TAB 2: TUITION
   ============================================================ */
.tuition-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}
.ts-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ts-card.full { grid-column: 1/-1; }
.ts-label { font-size: 0.68rem; color: var(--text3); margin-bottom: 0.3rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; }
.ts-amount { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.ts-card.c-total .ts-amount { color: var(--gold-l); }
.ts-card.c-paid  .ts-amount { color: var(--green); }
.ts-card.c-debt  .ts-amount { color: var(--red); }

.debt-banner {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--r12);
  padding: 0.875rem 1rem;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.debt-banner svg { width: 20px; height: 20px; stroke: #fca5a5; flex-shrink: 0; }
.db-title { font-size: 0.8rem; font-weight: 700; color: #fecaca; }
.db-sub { font-size: 0.72rem; color: #cbd5e1; margin-top: 0.15rem; }

.year-accordion {
  border: 1px solid var(--border);
  border-radius: var(--r12);
  margin-bottom: 0.625rem;
  overflow: hidden;
  background: var(--card);
}
.year-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.year-accordion-header:hover { background: rgba(255,255,255,0.02); }
.year-accordion-title { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.year-accordion-meta { display: flex; align-items: center; gap: 0.5rem; }
.year-accordion-chevron { width: 15px; height: 15px; stroke: var(--text3); transition: transform 0.25s; }
.year-accordion.open .year-accordion-chevron { transform: rotate(180deg); }
.year-accordion-body { display: none; border-top: 1px solid var(--border); }
.year-accordion.open .year-accordion-body { display: block; }

.semester-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
}
.semester-row:last-child { border-bottom: none; }
.s-name { font-size: 0.82rem; color: var(--text2); flex: 1; }
.s-amount { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.s-status {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.s-status.paid    { background: rgba(16,185,129,0.15); color: #34d399; }
.s-status.partial { background: rgba(245,158,11,0.15); color: #fbbf24; }
.s-status.unpaid  { background: rgba(239,68,68,0.15); color: #fca5a5; }

/* ============================================================
   TAB 3: PAYMENT
   ============================================================ */
.slip-intro {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--r12);
  padding: 0.875rem 1rem;
  margin-bottom: 0.875rem;
  font-size: 0.78rem;
  color: #93c5fd;
  line-height: 1.65;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.slip-intro svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; stroke: #60a5fa; }

.slip-form-group { margin-bottom: 0.875rem; }
.slip-form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.slip-form-group input,
.slip-form-group select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--r8);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.slip-form-group input:focus,
.slip-form-group select:focus {
  border-color: var(--gold-l);
  box-shadow: 0 0 12px rgba(245,158,11,0.25);
  background: rgba(255,255,255,0.05);
}
.slip-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }

.slip-upload-zone {
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: var(--r12);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.slip-upload-zone:hover { border-color: var(--gold-l); background: rgba(251,191,36,0.04); }
.slip-upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.slip-upload-icon { width: 32px; height: 32px; stroke: var(--text3); margin: 0 auto 0.5rem; }
.slip-upload-text { font-size: 0.78rem; color: var(--text3); }
.slip-upload-text strong { color: var(--gold-l); }
#slip-preview {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
  margin-top: 0.75rem;
  display: none;
}

.btn-submit-slip {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  border-radius: var(--r12);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245,158,11,0.25);
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.btn-submit-slip:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245,158,11,0.4); }
.btn-submit-slip:disabled { opacity: 0.55; pointer-events: none; }

.slip-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  gap: 0.75rem;
}
.slip-history-item:last-child { border-bottom: none; }
.shi-title { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.shi-meta { font-size: 0.68rem; color: var(--text3); margin-top: 0.1rem; }
.shi-amount { font-size: 0.875rem; font-weight: 700; white-space: nowrap; color: var(--text); }
.shi-status {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.shi-status.pending   { background: rgba(245,158,11,0.15); color: #fbbf24; }
.shi-status.confirmed { background: rgba(16,185,129,0.15); color: #34d399; }
.shi-status.rejected  { background: rgba(239,68,68,0.15); color: #fca5a5; }

/* ============================================================
   TAB 4: THESIS + REQUIREMENTS
   ============================================================ */
.thesis-title-box {
  background: linear-gradient(135deg, rgba(129,140,248,0.05) 0%, rgba(245,158,11,0.05) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  padding: 1rem;
  margin-bottom: 1rem;
}
.thesis-title-label { font-size: 0.68rem; font-weight: 700; color: #a5b4fc; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.35rem; }
.thesis-title-text { font-size: 0.875rem; font-weight: 600; color: var(--text); line-height: 1.5; }

/* Milestone Timeline */
.thesis-timeline { padding: 0.25rem 0; }
.thesis-step {
  display: flex;
  gap: 0.875rem;
  position: relative;
  padding-bottom: 1.5rem;
}
.thesis-step:last-child { padding-bottom: 0; }
.thesis-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 38px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.thesis-step.done::before { background: linear-gradient(to bottom, var(--gold), var(--border)); }
.thesis-step.current::before { background: linear-gradient(to bottom, var(--indigo), var(--border)); }

.thesis-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--card);
  position: relative;
  z-index: 1;
}
.thesis-step.done .thesis-icon { background: linear-gradient(135deg, var(--gold), var(--amber)); border-color: transparent; }
.thesis-step.current .thesis-icon { background: rgba(129,140,248,0.1); border-color: var(--indigo); animation: pulse 2s ease-in-out infinite; }
.thesis-icon svg { width: 16px; height: 16px; }
.thesis-step.done .thesis-icon svg { stroke: #fff; }
.thesis-step.current .thesis-icon svg { stroke: var(--indigo); }
.thesis-step:not(.done):not(.current) .thesis-icon svg { stroke: var(--text3); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(129,140,248,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(129,140,248,0); }
}

.thesis-content { flex: 1; padding-top: 0.35rem; }
.thesis-content h3 { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.thesis-content .th-date { font-size: 0.72rem; color: var(--text3); margin-top: 0.15rem; }

/* Requirements Grid */
.req-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.625rem;
  padding-top: 0.25rem;
}
.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}
.req-item {
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border);
  border-radius: var(--r8);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.req-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.req-icon.ok   { background: rgba(16,185,129,0.15); }
.req-icon.ok svg { stroke: #34d399; }
.req-icon.warn { background: rgba(245,158,11,0.15); }
.req-icon.warn svg { stroke: #fbbf24; }
.req-icon.no   { background: rgba(255,255,255,0.03); }
.req-icon.no svg { stroke: var(--text3); }
.req-icon svg { width: 14px; height: 14px; }
.req-text {}
.req-label { font-size: 0.65rem; color: var(--text3); font-weight: 500; }
.req-value { font-size: 0.78rem; font-weight: 700; color: var(--text); margin-top: 0.1rem; }
.req-item.ok-item   { border-color: rgba(16,185,129,0.3); }
.req-item.warn-item { border-color: rgba(245,158,11,0.3); }

/* ============================================================
   SHARED
   ============================================================ */
@media (max-width: 380px) {
  .slip-form-row { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .tuition-summary { grid-template-columns: 1fr; }
}
