/* ============================================
   GLOBAL RESET & VARIABLES
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0f;
  --bg-card: #13131a;
  --bg-card-hover: #1a1a25;
  --bg-input: #1a1a25;
  --border: #2a2a3a;
  --text: #e4e4ed;
  --text-dim: #8888a0;
  --accent: #6c63ff;
  --accent-hover: #7b73ff;
  --accent-glow: rgba(108, 99, 255, 0.25);
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

body.auth-loading {
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */
.page {
  display: block;
  animation: fadeSlideIn 0.45s ease forwards;
  min-height: 100vh;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius);
}
.btn-full {
  width: 100%;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}

/* ============================================
   LANDING PAGE
   ============================================ */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: inherit;
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.login-brand-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.85rem;
}

.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  max-width: 700px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  margin: 1.25rem 0 2.2rem;
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.12);
}
.feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

.landing-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ============================================
   LOGIN PAGE
   ============================================ */
#login {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.back-btn {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
}
.back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
}

.login-step {
  display: none;
  animation: fadeSlideIn 0.4s ease forwards;
}
.login-step.active {
  display: block;
}

.login-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-container h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.login-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.input-group {
  margin-bottom: 1.5rem;
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.phone-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.country-code {
  padding: 0 1rem;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 1rem;
  border-right: 1px solid var(--border);
  user-select: none;
}

.phone-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.9rem 1rem;
  letter-spacing: 1px;
}

.error-msg {
  display: block;
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.4rem;
  min-height: 1.2em;
}

.login-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 1.25rem;
}

.input-group.compact {
  margin-bottom: 0.9rem;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hidden {
  display: none !important;
}

.forgot-row {
  text-align: right;
  font-size: 0.82rem;
  margin-top: -0.35rem;
  margin-bottom: 0.5rem;
}

.text-input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  padding: 0.9rem 1rem;
  outline: none;
  transition: var(--transition);
}
.text-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: #1f1f1f;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-google:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.12);
}
.btn-google:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.35rem 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* OTP Inputs */
.otp-inputs {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.otp-box {
  width: 50px;
  height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: inherit;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: var(--transition);
  caret-color: var(--accent);
}
.otp-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ============================================
   DASHBOARD
   ============================================ */
.dash-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-menu-wrap {
  position: relative;
}

.avatar-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
  border: 2px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.avatar-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

.nav-avatar-only {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-avatar-initials {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  z-index: 200;
  animation: fadeSlideIn 0.2s ease forwards;
}

.user-dropdown-header {
  padding: 0.6rem 0.75rem;
}
.user-dropdown-header strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
}
.user-dropdown-email {
  display: block;
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
  word-break: break-all;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0;
}

.user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.user-dropdown-item:hover {
  background: var(--bg-card-hover);
  text-decoration: none;
}
.user-dropdown-item.danger {
  color: var(--danger);
}
.user-dropdown-item.danger:hover {
  background: rgba(248, 113, 113, 0.1);
}

.dash-welcome {
  text-align: center;
  padding: 3rem 2rem 1.5rem;
}
.dash-welcome h2 {
  font-size: 1.8rem;
  font-weight: 700;
}
.dash-welcome p {
  color: var(--text-dim);
  margin-top: 0.4rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 1.5rem auto 4rem;
  padding: 0 2rem;
}

.dash-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.dash-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.dash-card:hover::before {
  transform: scaleX(1);
}
.dash-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(108, 99, 255, 0.12);
  text-decoration: none;
}

.dash-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.dash-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.dash-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
}
.dash-card-arrow {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  font-size: 1.3rem;
  color: var(--text-dim);
  transition: var(--transition);
}
.dash-card:hover .dash-card-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ============================================
   INNER PAGES (Notes, Assignments, Questions, About)
   ============================================ */
.inner-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.back-btn-inline {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.back-btn-inline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.inner-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
}

.inner-header {
  margin-bottom: 1.75rem;
}
.inner-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
}
.inner-header p {
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* Search */
.search-bar {
  margin-bottom: 1.5rem;
}
.search-bar input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* List Cards */
.list-grid {
  display: grid;
  gap: 1rem;
}

.list-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
}
.list-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.list-card h4 {
  font-size: 1.05rem;
  margin: 0.5rem 0 0.4rem;
}
.list-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.55;
}
.list-meta {
  display: block;
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-top: 0.6rem;
}

.list-card-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.list-card-badge.math {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}
.list-card-badge.science {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}
.list-card-badge.cs {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}
.list-card-badge.english {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

/* ============================================
   ASSIGNMENTS
   ============================================ */
.tab-bar {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.3rem;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.tab {
  padding: 0.55rem 1.4rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tab.active {
  background: var(--accent);
  color: #fff;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: grid;
  gap: 1rem;
  animation: fadeSlideIn 0.3s ease forwards;
}

.assignment-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.assignment-card.completed {
  opacity: 0.6;
}

.assignment-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
}
.pending-dot {
  background: var(--warning);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}
.done-dot {
  background: var(--success);
}

.assignment-body {
  flex: 1;
}
.assignment-body h4 {
  margin: 0 0 0.3rem;
}

.assignment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.deadline {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.deadline.urgent {
  color: var(--danger);
  font-weight: 600;
}
.deadline.done {
  color: var(--success);
}

/* ============================================
   QUESTIONS
   ============================================ */
.subject-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.chip {
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.question-list {
  display: grid;
  gap: 1.25rem;
}

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  transition: var(--transition);
}
.question-card:hover {
  border-color: var(--accent);
}

.q-number {
  background: var(--accent);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.q-body {
  flex: 1;
}
.q-body h4 {
  margin: 0.45rem 0 0.75rem;
  font-size: 1rem;
}

.q-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.q-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.88rem;
}
.q-option:hover {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.06);
}
.q-option input[type="radio"] {
  accent-color: var(--accent);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}
.about-hero h2 {
  font-size: 2rem;
  font-weight: 800;
}
.about-tagline {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.about-section {
  margin-bottom: 2.5rem;
}
.about-section h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.about-section > p {
  color: var(--text-dim);
  line-height: 1.75;
  font-size: 0.95rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.about-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.about-item strong {
  display: block;
  margin-bottom: 0.4rem;
}
.about-item p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.inner-nav-between {
  justify-content: space-between;
}
.inner-nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-card {
  max-width: 540px;
  margin: 1rem auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.profile-avatar-wrap {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), #34d399);
  margin-bottom: 1rem;
  box-shadow: 0 0 28px var(--accent-glow);
}

.profile-avatar-img,
.profile-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg);
}

.profile-avatar-img {
  object-fit: cover;
  display: block;
}

.profile-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 1px;
}

.profile-identity h2 {
  font-size: 1.35rem;
  font-weight: 700;
}

.profile-email-sub {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.profile-photo-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.15rem;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.field-label-row .field-label {
  margin-bottom: 0;
}

.verified-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(52, 211, 153, 0.12);
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
}

.readonly-input {
  opacity: 0.7;
  cursor: not-allowed;
}

.profile-form .btn {
  margin-top: 0.5rem;
}

/* ============================================
   MODAL POPUP
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 900;
  animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 390px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  animation: popIn 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.1) forwards;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-icon {
  font-size: 2.6rem;
  margin-bottom: 0.65rem;
}

.modal-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-message {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: grid;
  gap: 0.65rem;
}

.modal-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  z-index: 1000;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
  .hero {
    padding: 4rem 1.25rem 2.5rem;
  }
  .features {
    padding: 1.5rem 1.25rem 4rem;
  }
  .dash-grid {
    padding: 0 1.25rem;
  }
  .inner-content {
    padding: 1rem 1.25rem 3rem;
  }
  .otp-box {
    width: 42px;
    height: 48px;
    font-size: 1.2rem;
  }
  .q-options {
    grid-template-columns: 1fr;
  }
  .question-card {
    flex-direction: column;
    gap: 0.75rem;
  }
}
