/* AAU Smart Portal — Black Premium Design System v2.0 */

:root {
  --bg: #000000;
  --bg2: #050505;
  --surface: #0c0c0c;
  --surface2: #111111;
  --surface3: #191919;
  --surface-hover: #1d1d1d;
  --border: rgba(255,255,255,0.06);
  --border-bright: rgba(255,255,255,0.12);
  --border-accent: rgba(111,111,111,0.3);
  --accent: #6f6f6f;
  --accent2: #919191;
  --accent-hover: #555555;
  --accent-glow: rgba(111,111,111,0.15);
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.1);
  --green-border: rgba(34,197,94,0.25);
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.1);
  --yellow: #eab308;
  --yellow-dim: rgba(234,179,8,0.1);
  --text: #ffffff;
  --text-dim: #a2a2a2;
  --text-muted: #535353;
  --mono: 'Thmanyah Serif Text', 'Segoe UI', serif;
  --sans: 'Thmanyah Serif Text', 'Segoe UI', serif;
  --display: 'Thmanyah Serif Display', 'Thmanyah Serif Text', serif;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 2px; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* NAVBAR */
.navbar, .floating-navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  gap: 16px;
}
.floating-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-icon svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; }
.brand-title { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.brand-subtitle { font-size: 11px; color: var(--text-muted); font-family: var(--mono); margin-top: 1px; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  background: none;
}
.btn svg { width: 14px; height: 14px; stroke-width: 2; flex-shrink: 0; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 0 24px var(--accent-glow); }

.btn-secondary { background: var(--surface2); color: var(--text-dim); border-color: var(--border-bright); }
.btn-secondary:hover:not(:disabled) { background: var(--surface3); color: var(--text); border-color: rgba(255,255,255,0.2); }

.btn-success { background: var(--green-dim); color: var(--green); border-color: var(--green-border); }
.btn-success:hover:not(:disabled) { background: rgba(34,197,94,0.18); }

.btn-ghost { background: transparent; color: var(--text-dim); border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--surface2); color: var(--text); }

.btn-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}
.btn-hero-pill:hover { background: var(--accent-hover); box-shadow: 0 0 40px rgba(111,111,111,0.45); transform: translateY(-1px); }
.btn-hero-pill svg { width: 16px; height: 16px; stroke-width: 2; }

/* FORMS */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--mono);
}
.form-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 13px;
  transition: all 0.15s ease;
  outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: var(--surface3); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { resize: vertical; min-height: 80px; }

/* MODALS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card, .modal-card {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 440px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}
.auth-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 4px; letter-spacing: -0.02em; }
.auth-subtitle { font-size: 12.5px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.55; }

/* TABS */
.segmented-tabs-wrapper { margin-bottom: 20px; }
.segmented-tabs-track {
  display: flex;
  gap: 2px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.segmented-tabs-track::-webkit-scrollbar { display: none; }
.segment-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.segment-tab-btn svg { width: 13px; height: 13px; stroke-width: 2; }
.segment-tab-btn:hover { color: var(--text-dim); background: var(--surface3); }
.segment-tab-btn.active { background: var(--surface3); color: var(--text); border-color: var(--border-bright); }

/* CARDS */
.card-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
}
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.section-title { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
.section-title svg { width: 15px; height: 15px; color: var(--accent2); }

/* STAT BOXES */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 20px; }
.stat-box { background: var(--surface); padding: 18px 16px; }
.stat-box-value { font-size: 28px; font-weight: 900; color: var(--text); letter-spacing: -0.04em; font-family: var(--mono); line-height: 1; margin-bottom: 4px; }
.stat-box-label { font-size: 10px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; font-family: var(--mono); }

/* ASSIGNMENTS */
.assignment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 10px;
  transition: border-color 0.15s;
  border-right: 2px solid transparent;
}
.assignment-card:hover { border-color: var(--border-bright); }
.assignment-card.solved { border-right-color: var(--green); }
.assignment-card.pending { border-right-color: var(--yellow); }

.asg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.asg-course { font-size: 11px; color: var(--text-muted); font-family: var(--mono); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.asg-course svg { width: 12px; height: 12px; }
.asg-badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; font-family: var(--mono); letter-spacing: 0.02em; text-transform: uppercase; }
.badge-solved { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-border); }
.badge-pending { background: var(--yellow-dim); color: var(--yellow); border: 1px solid rgba(234,179,8,0.22); }
.asg-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px; letter-spacing: -0.01em; line-height: 1.4; }
.asg-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }
.solution-box { background: var(--bg2); border: 1px solid var(--green-border); border-radius: var(--radius); padding: 14px; font-size: 12px; color: var(--text-dim); line-height: 1.8; white-space: pre-wrap; margin-top: 10px; font-family: var(--mono); }

/* COURSES */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.course-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 18px; transition: border-color 0.15s; display: flex; flex-direction: column; gap: 12px; }
.course-card:hover { border-color: var(--border-bright); }
.course-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.course-name { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.35; letter-spacing: -0.01em; }
.online-badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; white-space: nowrap; font-family: var(--mono); flex-shrink: 0; }
.online-badge.live { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-border); }
.online-badge.offline { background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); }
.course-url-link { font-size: 11px; color: var(--text-muted); text-decoration: none; font-family: var(--mono); display: flex; align-items: center; gap: 4px; transition: color 0.15s; }
.course-url-link:hover { color: var(--accent2); }
.course-url-link svg { width: 11px; height: 11px; }

.material-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); gap: 8px; transition: border-color 0.15s; }
.material-row:hover { border-color: var(--border-bright); }
.material-name { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-dim); overflow: hidden; flex: 1; }
.material-name svg { width: 13px; height: 13px; color: var(--accent2); flex-shrink: 0; }
.material-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-actions { display: flex; gap: 5px; flex-shrink: 0; }

/* ATTENDANCE */
.attendance-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 12px; }
.att-icon { width: 36px; height: 36px; border-radius: var(--radius); background: var(--green-dim); border: 1px solid var(--green-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.att-icon svg { width: 16px; height: 16px; color: var(--green); stroke-width: 2; }
.att-info { flex: 1; min-width: 0; }
.att-course { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.att-meta { font-size: 11px; color: var(--text-muted); font-family: var(--mono); }

/* FORECAST */
.forecast-select-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.forecast-select-row select { flex: 1; min-width: 180px; background: var(--surface2); border: 1px solid var(--border-bright); border-radius: var(--radius); color: var(--text); padding: 10px 14px; font-family: var(--sans); font-size: 13px; outline: none; cursor: pointer; }
.forecast-select-row select:focus { border-color: var(--accent); }

.chapter-weight-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.chapter-weight-row:last-child { border-bottom: none; }
.ch-name { flex: 1; font-size: 13px; color: var(--text-dim); }
.ch-bar-wrap { width: 120px; height: 3px; background: var(--surface3); border-radius: 2px; }
.ch-bar { height: 100%; background: var(--accent); border-radius: 2px; }
.ch-pct { font-size: 12px; font-family: var(--mono); color: var(--accent2); font-weight: 700; width: 36px; text-align: left; }

.quiz-option-btn { display: block; width: 100%; text-align: right; padding: 10px 14px; margin-bottom: 6px; background: var(--surface2); border: 1px solid var(--border-bright); border-radius: var(--radius); color: var(--text-dim); font-family: var(--sans); font-size: 13px; cursor: pointer; transition: all 0.15s; }
.quiz-option-btn:hover { border-color: var(--accent); color: var(--text); }
.quiz-option-btn.correct { background: var(--green-dim); border-color: var(--green-border); color: var(--green); }
.quiz-option-btn.wrong { background: var(--red-dim); border-color: rgba(239,68,68,0.25); color: var(--red); }

/* COUNTDOWN */
.countdown-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; font-family: var(--mono); letter-spacing: 0.02em; }
.countdown-badge.green { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-border); }
.countdown-badge.yellow { background: var(--yellow-dim); color: var(--yellow); border: 1px solid rgba(234,179,8,0.22); }
.countdown-badge.red { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239,68,68,0.22); }
.countdown-badge.gray { background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); }

/* BANNER */
#statusBanner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 9999; padding: 11px 20px; border-radius: 9999px;
  font-size: 13px; font-weight: 600; background: var(--surface2);
  border: 1px solid var(--border-bright); color: var(--text);
  white-space: nowrap; box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  transition: all 0.3s ease; font-family: var(--mono);
}
#statusBanner.success { background: var(--green-dim); border-color: var(--green-border); color: var(--green); }
#statusBanner.error { background: var(--red-dim); border-color: rgba(239,68,68,0.25); color: var(--red); }

/* BADGES */
.verified-student-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--green); background: var(--green-dim); border: 1px solid var(--green-border); padding: 4px 10px; border-radius: 20px; font-family: var(--mono); }
.verified-student-badge svg { width: 12px; height: 12px; }

.icon-badge { width: 36px; height: 36px; border-radius: var(--radius); background: var(--surface2); border: 1px solid var(--border-bright); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-badge svg { width: 16px; height: 16px; stroke-width: 2; color: var(--text-dim); }
.icon-badge-emerald { background: var(--green-dim); border-color: var(--green-border); }
.icon-badge-emerald svg { color: var(--green); }
.icon-badge-gold { background: var(--yellow-dim); border-color: rgba(234,179,8,0.22); }
.icon-badge-gold svg { color: var(--yellow); }
.icon-badge-cobalt { background: var(--accent-glow); border-color: var(--border-accent); }
.icon-badge-cobalt svg { color: var(--accent2); }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* DARK TOGGLE */
.dark-mode-toggle { width: 36px; height: 36px; border-radius: var(--radius); background: var(--surface2); border: 1px solid var(--border-bright); color: var(--text-dim); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; flex-shrink: 0; }
.dark-mode-toggle:hover { background: var(--surface3); color: var(--text); }
.dark-mode-toggle svg { width: 16px; height: 16px; stroke-width: 2; }

/* LANDING PAGE */
.hero-section { display: flex; flex-direction: column; align-items: flex-start; padding: 100px 0 80px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--surface2); border: 1px solid var(--border-bright); border-radius: 9999px; padding: 5px 14px; font-size: 12px; font-weight: 600; color: var(--text-dim); margin-bottom: 28px; font-family: var(--mono); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.82); } }

.hero-title { font-size: clamp(38px, 7vw, 78px); font-weight: 900; color: var(--text); line-height: 1.04; letter-spacing: -0.04em; margin-bottom: 20px; }
.hero-subtitle { font-size: 16px; color: var(--text-muted); line-height: 1.7; max-width: 540px; margin-bottom: 36px; }

.section-divider { height: 1px; background: var(--border); margin: 80px 0; }
.section-label { font-size: 11px; font-weight: 700; color: var(--accent2); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.section-heading { font-size: clamp(24px, 4vw, 40px); font-weight: 800; color: var(--text); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 12px; }
.section-desc { font-size: 15px; color: var(--text-muted); line-height: 1.7; max-width: 580px; margin-bottom: 48px; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.step-card { background: var(--surface); padding: 28px; transition: background 0.15s; }
.step-card:hover { background: var(--surface2); }
.step-num-badge { font-size: 10px; font-weight: 800; font-family: var(--mono); color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; display: block; }
.step-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: -0.01em; }
.step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.bento-card { background: var(--surface); padding: 28px; transition: background 0.15s; grid-column: span 4; }
.bento-card:hover { background: var(--surface2); }
.bento-card-large { grid-column: span 8; }
.bento-card-full { grid-column: span 12; }
.bento-card-tag { font-size: 10px; font-weight: 700; color: var(--text-muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.bento-card-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 10px; letter-spacing: -0.02em; line-height: 1.3; }
.bento-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

.terminal-block { background: var(--bg); border: 1px solid var(--border-bright); border-radius: var(--radius-lg); padding: 16px; margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--text-dim); line-height: 1.9; }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px; transition: border-color 0.15s; }
.testimonial-card:hover { border-color: var(--border-bright); }
.testimonial-stars { color: var(--yellow); font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-text { font-size: 13px; color: var(--text-dim); line-height: 1.7; margin-bottom: 14px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-glow); border: 1px solid var(--border-accent); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--accent2); flex-shrink: 0; }
.testimonial-name { font-size: 13px; font-weight: 700; color: var(--text); }
.testimonial-major { font-size: 11px; color: var(--text-muted); font-family: var(--mono); }

.landing-pill-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--surface2); border: 1px solid var(--border-bright); border-radius: 9999px; padding: 5px 14px; font-size: 12px; font-weight: 600; color: var(--text-dim); margin-bottom: 20px; font-family: var(--mono); }
.nav-page-btn { font-size: 12.5px; padding: 7px 14px; }
.nav-page-btn.active { background: var(--surface3); color: var(--text); border-color: var(--border-bright); }
.landing-page-view { padding: 24px 0; }

/* CRYPTO */
.crypto-step-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.crypto-step-item:last-child { border-bottom: none; }
.crypto-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--surface3); border: 1px solid var(--border-accent); color: var(--accent2); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--mono); flex-shrink: 0; }
.crypto-sandbox { background: var(--surface); border: 1px solid var(--border-accent); border-radius: var(--radius-xl); padding: 20px; margin-top: 20px; }

.btn-microsoft { background: var(--surface2) !important; color: var(--text) !important; border: 1px solid var(--border-bright) !important; width: 100%; justify-content: center; padding: 11px !important; font-weight: 700; border-radius: var(--radius) !important; margin-bottom: 16px; }
.btn-microsoft:hover { background: var(--surface3) !important; border-color: rgba(255,255,255,0.2) !important; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--text-muted); font-size: 12px; font-family: var(--mono); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.star-rating-box { display: flex; gap: 6px; flex-direction: row-reverse; justify-content: flex-end; margin-top: 4px; }
.star-btn { background: none; border: none; font-size: 22px; color: var(--surface3); cursor: pointer; padding: 2px; transition: color 0.1s; }
.star-btn.active { color: var(--yellow); }

#printSolutionArea { display: none; font-family: Arial, sans-serif; direction: rtl; padding: 30px; max-width: 800px; margin: 0 auto; color: var(--text); }
@media print { body > *:not(#printSolutionArea) { display: none !important; } #printSolutionArea { display: block !important; color: #000 !important; } }

.tab-panel { display: none; }
.tab-panel.active { display: block; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* STATS */
.stats-overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 20px; }
.so-item { background: var(--surface); padding: 20px 16px; text-align: center; }
.so-value { font-size: 30px; font-weight: 900; color: var(--text); font-family: var(--mono); letter-spacing: -0.04em; line-height: 1; margin-bottom: 6px; }
.so-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--mono); }

.progress-row { margin-bottom: 14px; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.progress-label-name { color: var(--text-dim); font-weight: 600; }
.progress-label-pct { color: var(--accent2); font-family: var(--mono); font-weight: 700; }
.progress-bar-bg { height: 3px; background: var(--surface3); border-radius: 2px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.8s ease; }

.connect-banner { background: var(--surface); border: 1px solid var(--border-accent); border-radius: var(--radius-xl); padding: 20px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* TOGGLE */
.toggle-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--surface3); border: 1px solid var(--border-bright); border-radius: 9999px; cursor: pointer; transition: all 0.2s; }
.toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--text-muted); top: 2px; right: 2px; transition: all 0.2s; }
.toggle-switch input:checked + .toggle-slider { background: var(--green-dim); border-color: var(--green-border); }
.toggle-switch input:checked + .toggle-slider::before { background: var(--green); transform: translateX(-18px); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { width: 40px; height: 40px; margin: 0 auto 16px; display: block; opacity: 0.25; }
.empty-title { font-size: 15px; font-weight: 700; color: var(--text-dim); margin-bottom: 6px; }
.empty-desc { font-size: 13px; line-height: 1.6; }

/* LIGHT MODE */
body.light-mode {
  --bg: #fafafa; --bg2: #f4f4f5; --surface: #ffffff; --surface2: #f9f9fa;
  --surface3: #f1f1f3; --surface-hover: #ebebeb;
  --border: rgba(0,0,0,0.06); --border-bright: rgba(0,0,0,0.12);
  --text: #090909; --text-dim: #535353; --text-muted: #a2a2a2;
}
body.light-mode .navbar, body.light-mode .floating-navbar-wrapper { background: rgba(250,250,250,0.92); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar, .floating-navbar { padding: 12px 16px; flex-wrap: wrap; }
  .hero-section { padding: 60px 0 50px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card, .bento-card-large, .bento-card-full { grid-column: span 1; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: 1fr; }
  .segment-tab-btn span { display: none; }
  .container { padding: 0 16px; }
}
@media (max-width: 480px) {
  #statusBanner { left: 16px; right: 16px; transform: none; white-space: normal; text-align: center; border-radius: 12px; }
}

/* Magnetic button — keep compatibility */
.magnetic-btn { transition: transform 0.2s ease; }
.magnetic-btn:hover { transform: translateY(-1px); }

/* PREVIEW BOX for landing */
.step-preview-box { margin-bottom: 16px; }
.bento-preview-attendance { background: var(--bg2); border: 1px solid var(--border-bright); border-radius: var(--radius-lg); padding: 14px; margin-top: 16px; font-size: 12px; }

/* section tag */
.section-tag-blue {
  font-size: 11px; font-weight: 700; font-family: var(--mono);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; display: inline-block;
  background: linear-gradient(135deg, #919191, #999999);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-title-white { font-size: clamp(22px, 3.5vw, 38px); font-weight: 800; color: var(--text); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 12px; }
.section-title-glow-inline {
  background: linear-gradient(135deg, #919191 0%, #999999 50%, #f472b6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ============================================================
   HERO
   ============================================================ */
.giant-hero-wrapper {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 100px 0 80px; position: relative;
}

/* ambient orbs behind the hero */
.giant-hero-wrapper::before,
.giant-hero-wrapper::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}
.giant-hero-wrapper::before {
  width: 480px; height: 480px;
  top: -60px; right: -80px;
  background: radial-gradient(circle, rgba(111,111,111,0.18) 0%, transparent 70%);
  animation: orbFloat 8s ease-in-out infinite;
}
.giant-hero-wrapper::after {
  width: 320px; height: 320px;
  bottom: 0; left: -60px;
  background: radial-gradient(circle, rgba(114,114,114,0.12) 0%, transparent 70%);
  animation: orbFloat 11s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-24px) scale(1.05); }
}

/* gradient hero titles */
.giant-hero-title-white {
  font-size: clamp(52px, 8.5vw, 96px);
  font-weight: 900; line-height: 1.0; letter-spacing: -0.048em; display: block;
  background: linear-gradient(170deg, #ffffff 40%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.giant-hero-title-glow {
  font-size: clamp(52px, 8.5vw, 96px);
  font-weight: 900; line-height: 1.0; letter-spacing: -0.048em; display: block;
  background: linear-gradient(135deg, #919191 0%, #999999 55%, #f472b6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.landing-section { padding: 60px 0; border-top: 1px solid var(--border); }
.landing-subtext { font-size: 16px; color: var(--text-muted); line-height: 1.7; max-width: 540px; margin: 20px 0 36px; }

/* ============================================================
   GLOW BUTTONS
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, #6f6f6f, #555555) !important;
  border-color: transparent !important;
  box-shadow: 0 0 0 rgba(111,111,111,0);
  transition: all 0.2s ease !important;
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #555555, #555555) !important;
  box-shadow: 0 0 28px rgba(85,85,85,0.5), 0 0 60px rgba(111,111,111,0.2) !important;
  transform: translateY(-1px);
}

.btn-hero-pill {
  background: linear-gradient(135deg, #6f6f6f 0%, #727272 60%, #ec4899 100%) !important;
  position: relative;
  overflow: hidden;
}
.btn-hero-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-hero-pill:hover::before { transform: translateX(100%); }
.btn-hero-pill:hover {
  box-shadow: 0 0 40px rgba(114,114,114,0.55), 0 0 80px rgba(111,111,111,0.2) !important;
  transform: translateY(-2px) !important;
}

/* ============================================================
   GRADIENT BORDERS (cards hover)
   ============================================================ */
.bento-card, .step-card {
  position: relative;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.bento-card:hover, .step-card:hover {
  background: var(--surface2) !important;
  box-shadow: inset 0 0 0 1px rgba(145,145,145,0.15), 0 0 30px rgba(111,111,111,0.06) !important;
}

.course-card:hover, .assignment-card:hover {
  border-color: rgba(145,145,145,0.25) !important;
  box-shadow: 0 0 20px rgba(111,111,111,0.06) !important;
}

/* ============================================================
   STAT BOXES — coloured top accent line
   ============================================================ */
.stat-box { position: relative; overflow: hidden; }
.stat-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #6f6f6f, #727272, #ec4899);
  opacity: 0.6;
}

/* ============================================================
   LANDING PILL BADGE — subtle shimmer ring
   ============================================================ */
.landing-pill-badge, .hero-tag {
  border-color: rgba(145,145,145,0.3) !important;
  box-shadow: 0 0 14px rgba(111,111,111,0.12);
}
.pulse-dot {
  box-shadow: 0 0 10px #22c55e, 0 0 20px rgba(34,197,94,0.3) !important;
}

/* ============================================================
   VERIFIED / SUCCESS BADGES — glow
   ============================================================ */
.verified-student-badge {
  box-shadow: 0 0 12px rgba(34,197,94,0.2);
}

/* ============================================================
   SECTION HEADING gradient
   ============================================================ */
.section-title-white strong,
.section-heading-gradient {
  background: linear-gradient(135deg, #ffffff 30%, rgba(255,255,255,0.6));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ============================================================
   ACCENT INPUTS focus glow
   ============================================================ */
.form-input:focus {
  border-color: var(--accent);
}

/* ============================================================
   TERMINAL BLOCK — subtle accent glow
   ============================================================ */
.terminal-block {
  box-shadow: inset 0 0 40px rgba(111,111,111,0.04), 0 0 0 1px rgba(145,145,145,0.1);
}

/* ============================================================
   TESTIMONIAL CARD — hover glow
   ============================================================ */
.testimonial-card:hover {
  border-color: rgba(145,145,145,0.22) !important;
  box-shadow: 0 0 24px rgba(111,111,111,0.07) !important;
}

/* ============================================================
   GLOBAL subtle radial glow behind page
   ============================================================ */
body::after {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(111,111,111,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   CARD SECTION — faint glow border on hover
   ============================================================ */
.card-section {
  transition: border-color 0.2s ease;
}
.card-section:hover {
  border-color: rgba(145,145,145,0.1);
}

/* ============================================================
   STATS OVERVIEW GRID — glow value numbers
   ============================================================ */
.so-value {
  background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.6));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ============================================================
   SEGMENT TAB ACTIVE — accent underline glow
   ============================================================ */
.segment-tab-btn.active {
  box-shadow: 0 1px 0 0 rgba(145,145,145,0.4) inset !important;
}

/* ============================================================
   BRAND ICON glow
   ============================================================ */
.brand-icon {
  background: linear-gradient(135deg, #6f6f6f, #727272) !important;
  box-shadow: 0 0 16px rgba(111,111,111,0.4);
}

/* ============================================================
   SCROLL INDICATOR (optional animated line)
   ============================================================ */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.gradient-animated {
  background: linear-gradient(270deg, #6f6f6f, #727272, #ec4899, #6f6f6f);
  background-size: 400% 400%;
  animation: gradientShift 5s ease infinite;
}
