/* ============================================================
   VIT Calc — style.css
   ============================================================ */

/* ── 1. DESIGN TOKENS ── */
:root {
  /* Brand */
  --accent: #6c63ff;
  --accent-2: #3ecfcf;
  --accent-glow: rgba(108, 99, 255, 0.35);

  /* Semantic colours – light mode */
  --bg: #f4f2ee;
  --bg-alt: #eae8e3;
  --surface: #ffffff;
  --surface-2: #f9f8f6;
  --border: rgba(0,0,0,0.09);
  --text-primary: #1a1825;
  --text-secondary: #5c5870;
  --text-muted: #9591a8;

  /* Status */
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;

  /* Sizing */
  --nav-h: 68px;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0f0e17;
  --bg-alt: #14131f;
  --surface: #1c1b2e;
  --surface-2: #22203a;
  --border: rgba(255,255,255,0.07);
  --text-primary: #f0eefc;
  --text-secondary: #a09cbf;
  --text-muted: #5f5b7a;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

/* ── 2. SYSTEM PREFERENCE ── */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0f0e17;
    --bg-alt: #14131f;
    --surface: #1c1b2e;
    --surface-2: #22203a;
    --border: rgba(255,255,255,0.07);
    --text-primary: #f0eefc;
    --text-secondary: #a09cbf;
    --text-muted: #5f5b7a;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  }
}

/* ── 3. RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: hidden;
}

h1,h2,h3,h4 { font-family: 'DM Serif Display', serif; line-height: 1.2; }

a { color: inherit; text-decoration: none; }
button { font-family: 'Plus Jakarta Sans', sans-serif; }

/* ── 4. SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ── 5. NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  transition: background 0.3s var(--ease);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.brand-icon svg { height: 36px; width: 36px; transition: transform 0.3s var(--ease); }
.nav-brand:hover .brand-icon svg { transform: rotate(-5deg) scale(1.08); }

.brand-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.brand-name .accent { color: var(--accent); }

.nav-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}

.nav-tab i { font-size: 0.8rem; }

.nav-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.nav-tab:not(.active):hover {
  background: var(--surface);
  color: var(--text-primary);
}

.nav-actions { display: flex; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.22s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(20deg); }

/* ── 6. HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orb-drift 12s ease-in-out infinite;
}

.orb1 { width: 500px; height: 500px; background: var(--accent); top: -150px; left: -100px; animation-delay: 0s; }
.orb2 { width: 400px; height: 400px; background: var(--accent-2); bottom: -100px; right: -100px; animation-delay: -4s; }
.orb3 { width: 300px; height: 300px; background: #f43f5e; top: 40%; left: 60%; animation-delay: -8s; }

@keyframes orb-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-30px) scale(1.05); }
  66% { transform: translate(-20px,20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: hero-in 0.9s var(--ease) both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.05;
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 36px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  border: none;
  padding: 15px 34px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px var(--accent-glow);
  transition: all 0.25s var(--ease);
}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px var(--accent-glow); }
.cta-btn i { transition: transform 0.22s var(--ease); }
.cta-btn:hover i { transform: translateX(4px); }

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── 7. MAIN CONTENT ── */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.tab-section {
  display: none;
  animation: section-in 0.4s var(--ease) both;
}
.tab-section.active { display: block; }

@keyframes section-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 8. SECTION HEADER ── */
.section-header {
  text-align: center;
  padding: 60px 0 36px;
}

.section-badge {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px var(--accent-glow);
  animation: badge-pop 0.5s var(--ease) both;
}

@keyframes badge-pop {
  from { transform: scale(0.7) rotate(-10deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-primary);
  margin-bottom: 10px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ── 9. CARD ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: background 0.3s var(--ease);
}

/* ── 10. GRADE REFERENCE BAR ── */
.grade-ref-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

.ref-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

.ref-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  letter-spacing: 0.03em;
}
.chip.s { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.chip.a { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.chip.b { background: #ede9fe; color: #4c1d95; border-color: #c4b5fd; }
.chip.c { background: #fef3c7; color: #78350f; border-color: #fcd34d; }
.chip.d { background: #ffedd5; color: #9a3412; border-color: #fdba74; }
.chip.f { background: #fee2e2; color: #7f1d1d; border-color: #fca5a5; }

[data-theme="dark"] .chip.s, @media (prefers-color-scheme: dark) { }
[data-theme="dark"] .chip.s { background: #052e16; color: #4ade80; border-color: #166534; }
[data-theme="dark"] .chip.a { background: #0c1a3a; color: #60a5fa; border-color: #1e3a5f; }
[data-theme="dark"] .chip.b { background: #1e0a4a; color: #c4b5fd; border-color: #4c1d95; }
[data-theme="dark"] .chip.c { background: #2d1800; color: #fcd34d; border-color: #78350f; }
[data-theme="dark"] .chip.d { background: #2c0f00; color: #fdba74; border-color: #9a3412; }
[data-theme="dark"] .chip.f { background: #2d0a0a; color: #fca5a5; border-color: #7f1d1d; }

/* ── 11. COURSE TABLE ── */
.table-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 6px;
  margin-bottom: 10px;
}

.course-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.table-header.course-row { grid-template-columns: 2fr 1fr 1fr; }

.course-list .course-row {
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.course-list .course-row:hover { background: var(--surface-2); }

select, input[type="number"], input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236c63ff' d='M8 10l-4-4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
}

select:focus, input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

select option { background: var(--surface); color: var(--text-primary); }

.row-del {
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s var(--ease);
  font-size: 0.8rem;
}
.row-del:hover { background: #fee2e2; color: var(--red); }
[data-theme="dark"] .row-del:hover { background: #2d0a0a; }

/* ── 12. CARD ACTIONS ── */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.action-right { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── 13. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px dashed var(--accent);
  opacity: 0.8;
}
.btn-ghost:hover { opacity: 1; background: rgba(108,99,255,0.07); }

/* ── 14. ERROR / RESULT ── */
.error-msg {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fee2e2;
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  color: #7f1d1d;
  font-size: 0.9rem;
  font-weight: 500;
}
[data-theme="dark"] .error-msg { background: #2d0a0a; color: #fca5a5; }

.hidden { display: none !important; }

/* ── 15. RESULT RING ── */
.result-display {
  margin-top: 28px;
  padding: 28px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  animation: result-pop 0.4s var(--ease) both;
}

@keyframes result-pop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.result-ring {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}

.ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg { fill: none; stroke: var(--bg-alt); stroke-width: 8; }
.ring-fill {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.2s var(--ease);
}

.ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.ring-value { font-family: 'DM Serif Display', serif; font-size: 1.9rem; color: var(--text-primary); line-height: 1.1; }

.result-meta { display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 180px; }
.meta-item { display: flex; justify-content: space-between; align-items: center; }
.meta-label { font-size: 0.85rem; color: var(--text-secondary); }
.meta-val { font-weight: 700; color: var(--text-primary); font-size: 1rem; }

/* ── 16. CGPA SPECIFIC ── */
.cgpa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.input-field { display: flex; flex-direction: column; gap: 8px; }
.input-field label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 13px;
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.field-wrap input { padding-left: 36px; padding-right: 60px; }

.field-hint {
  position: absolute;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
  white-space: nowrap;
}

/* ── 17. PLANNER ── */
.planner-box {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 8px;
}

.planner-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.planner-optional {
  font-size: 0.72rem;
  background: var(--bg-alt);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-weight: 600;
}

.planner-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.planner-result {
  margin-top: 16px;
}

.planner-result-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(108,99,255,0.1), rgba(62,207,207,0.1));
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.planner-result-inner i { color: var(--accent); margin-top: 2px; font-size: 1rem; flex-shrink: 0; }

/* ── 18. ATTENDANCE ── */
.att-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.att-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.subject-list { display: flex; flex-direction: column; gap: 10px; }

.subject-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--surface-2);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
  animation: slide-in 0.25s var(--ease) both;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.subject-row:hover { border-color: var(--accent); }

.att-results {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.att-overall-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.att-overall-card.safe { border-color: var(--green); background: rgba(34,197,94,0.07); }
.att-overall-card.warn { border-color: var(--yellow); background: rgba(245,158,11,0.07); }
.att-overall-card.danger { border-color: var(--red); background: rgba(239,68,68,0.07); }

.att-icon { font-size: 2.2rem; }
.att-info h4 { font-size: 1.4rem; font-family: 'DM Serif Display', serif; margin-bottom: 2px; }
.att-info p { font-size: 0.88rem; color: var(--text-secondary); }

.att-progress { height: 8px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.att-progress-bar { height: 100%; border-radius: 99px; transition: width 1s var(--ease); }

.att-advisory {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 4px solid;
}

.att-advisory.can-miss { background: rgba(34,197,94,0.08); border-color: var(--green); color: var(--text-primary); }
.att-advisory.must-attend { background: rgba(239,68,68,0.08); border-color: var(--red); color: var(--text-primary); }
.att-advisory.exact { background: rgba(245,158,11,0.08); border-color: var(--yellow); color: var(--text-primary); }

.subject-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

.sub-result-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.2s;
}
.sub-result-card.safe { border-color: var(--green); }
.sub-result-card.warn { border-color: var(--yellow); }
.sub-result-card.danger { border-color: var(--red); }

.sub-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.sub-pct { font-family: 'DM Serif Display', serif; font-size: 1.6rem; }
.sub-pct.safe { color: var(--green); }
.sub-pct.warn { color: var(--yellow); }
.sub-pct.danger { color: var(--red); }
.sub-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ── 19. ABOUT ── */
.about-card { max-width: 760px; margin: 0 auto; }

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.feature-item {
  padding: 20px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}
.feature-item:hover { transform: translateY(-3px); border-color: var(--accent); }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.feature-item h4 { font-size: 0.95rem; margin-bottom: 6px; }
.feature-item p { font-size: 0.83rem; color: var(--text-secondary); }

.team-title { font-size: 1.6rem; margin-bottom: 20px; }

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.member-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}
.member-card:hover { transform: translateX(6px); border-color: var(--accent); }

.member-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.member-info { flex: 1; }
.member-info h4 { font-size: 0.95rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }
.member-info p { font-size: 0.8rem; color: var(--text-muted); }

.member-socials { display: flex; gap: 10px; }
.member-socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.18s var(--ease);
}
.member-socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── 20. FOOTER ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 20px 20px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 28px;
}

.footer-brand .brand-name { font-size: 1.2rem; display: block; margin-bottom: 6px; }
.footer-brand p { font-size: 0.83rem; color: var(--text-muted); max-width: 260px; }

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links button {
  background: none; border: none; color: var(--text-secondary); cursor: pointer;
  text-align: left; font-size: 0.88rem; font-family: 'Plus Jakarta Sans', sans-serif;
  transition: color 0.18s;
  padding: 0;
}
.footer-links button:hover { color: var(--accent); }

.footer-bottom {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── 21. CONFETTI ── */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ── 22. SVG GRADIENT for rings ── */
.ring-svg defs { display: none; }

/* ── 23. RESPONSIVE ── */
@media (max-width: 768px) {
  .navbar { padding: 0 14px; }

  .nav-tabs { gap: 2px; padding: 4px; }
  .nav-tab { padding: 7px 12px; font-size: 0.78rem; }
  .nav-tab span { display: none; }
  .nav-tab i { font-size: 0.9rem; }

  .cgpa-grid { grid-template-columns: 1fr; }
  .planner-row { grid-template-columns: 1fr; }
  .att-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .course-row { grid-template-columns: 1.6fr 1fr 1fr auto; }

  .hero-title { font-size: 2.6rem; }

  .result-display { flex-direction: column; align-items: flex-start; }

  .card { padding: 20px; }

  .subject-row { grid-template-columns: 1fr 1fr 1fr auto; }
  .subject-row input:first-child { grid-column: 1 / -2; }
}

@media (max-width: 480px) {
  .att-grid { grid-template-columns: 1fr; }
  .subject-row { grid-template-columns: 1fr 1fr auto; }
  .subject-row .subj-name { grid-column: 1 / -1; }
}

/* ── 24. LOADING SKELETON ANIMATION (for transitions) ── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* ── 25. FOCUS VISIBLE ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
