:root {
  --bg:       #ffffff;
  --surface:  #f8fafc;
  --surface-2:#f1f5f9;
  --border:   #e2e8f0;
  --accent:   #2563eb;
  --accent-h: #1d4ed8;
  --accent-2: #e8623a;
  --text:     #0f172a;
  --muted:    #64748b;
  --green:    #16a34a;
  --green-bg: #dcfce7;
  --blue-bg:  #eff6ff;
  --radius:   14px;
  --shadow:   0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-sm:0 1px 2px rgba(0,0,0,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  line-height: 1.6;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }

/* ── Nav ────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 60px;
  display: flex; align-items: center; gap: 0;
}

.nav-logo {
  font-size: 0.95rem; font-weight: 800; color: var(--accent);
  display: flex; align-items: center; gap: 6px;
  margin-right: 36px; white-space: nowrap; flex-shrink: 0;
}
.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex; gap: 4px; flex: 1; overflow: hidden;
}
.nav-link {
  padding: 6px 12px; font-size: 0.83rem; color: var(--muted); font-weight: 500;
  border-radius: 8px; white-space: nowrap; cursor: pointer;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--accent); background: var(--blue-bg); }

.nav-right { display: flex; gap: 10px; align-items: center; margin-left: auto; flex-shrink: 0; }
.nav-login { font-size: 0.83rem; color: var(--muted); font-weight: 600; cursor: pointer; padding: 6px 10px; }
.nav-login:hover { color: var(--text); }
.nav-signup {
  background: var(--accent); color: #fff; font-size: 0.83rem; font-weight: 700;
  padding: 7px 16px; border-radius: 8px; cursor: pointer; border: none;
  transition: background .15s;
}
.nav-signup:hover { background: var(--accent-h); }

/* ── Hero ───────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 50%, #fff7ed 100%);
  padding: 64px 32px 56px;
  position: relative; overflow: hidden;
}

.hero-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-bg); color: var(--accent);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 12px;
  border-radius: 999px; margin-bottom: 20px;
  border: 1px solid rgba(37,99,235,0.2);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 16px;
  color: var(--text);
}
.hero h1 em { color: var(--accent); font-style: normal; }

.hero-desc {
  font-size: 1.05rem; color: var(--muted);
  max-width: 440px; margin-bottom: 36px; line-height: 1.65;
}

/* Search box in hero */
.hero-search {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
  padding: 6px 6px 6px 6px;
  display: flex; gap: 0;
}
.search-field {
  flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px;
  border-right: 1px solid var(--border); cursor: pointer;
  border-radius: 10px; transition: background .12s;
}
.search-field:last-of-type { border-right: none; }
.search-field:hover { background: var(--surface); }
.search-field-label { font-size: 0.68rem; font-weight: 700; color: var(--text); }
.search-field select, .search-field input {
  background: none; border: none; outline: none;
  font-size: 0.82rem; color: var(--muted); cursor: pointer;
  width: 100%; font-family: inherit;
}
.search-btn {
  background: var(--accent); color: #fff; border: none;
  border-radius: 10px; padding: 14px 22px;
  font-size: 0.88rem; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: background .15s; align-self: stretch;
}
.search-btn:hover { background: var(--accent-h); }

/* Hero visual */
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-photo-placeholder {
  width: 100%; max-width: 480px; height: 340px;
  background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 40%, #c7d2fe 100%);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-float-card {
  position: absolute; background: #fff; border-radius: 12px;
  padding: 10px 14px; box-shadow: var(--shadow);
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.hero-float-card.card-tl { top: 20px; left: -20px; }
.hero-float-card.card-br { bottom: 30px; right: -20px; }
.float-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ── Feature tabs ───────────────────────────────── */
.features-row {
  border-bottom: 1px solid var(--border);
  background: #fff;
  padding: 0 32px;
}
.features-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; gap: 0; overflow-x: auto;
}
.feature-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 18px 20px; font-size: 0.82rem; font-weight: 600;
  color: var(--muted); cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.feature-tab:hover { color: var(--text); }
.feature-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.feature-tab-icon { font-size: 1rem; }
.feature-tab-sub  { font-size: 0.7rem; color: var(--muted); font-weight: 400; display: block; margin-top: 1px; }

/* ── Three-column main sections ─────────────────── */
.main-sections {
  max-width: 1120px; margin: 0 auto;
  padding: 48px 32px 64px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
}

@media (max-width: 900px) {
  .main-sections { grid-template-columns: 1fr; }
}

.col-section {}
.col-title {
  font-size: 1rem; font-weight: 800; margin-bottom: 4px;
}
.col-sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 20px; }
.col-cta {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent); font-size: 0.8rem; font-weight: 600;
  margin-top: 16px; cursor: pointer;
}
.col-cta:hover { text-decoration: underline; }

/* Experience cards (in left column) */
.exp-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
  cursor: pointer; transition: box-shadow .15s, transform .15s;
}
.exp-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.exp-card-uni { font-size: 0.78rem; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.exp-card-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.exp-card-meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 10px; }
.exp-card-cost { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.exp-card-cost span { font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.star-row { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.star { color: #f59e0b; font-size: 0.82rem; }
.star-count { font-size: 0.72rem; color: var(--muted); }
.exp-badge {
  display: inline-block; background: var(--green-bg); color: var(--green);
  font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; margin-left: 6px;
}

/* Friend cards (center column) */
.friend-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  box-shadow: var(--shadow-sm); margin-bottom: 10px;
  cursor: pointer; transition: box-shadow .15s;
}
.friend-card:hover { box-shadow: var(--shadow); }
.friend-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue-bg); display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.friend-name   { font-weight: 700; font-size: 0.9rem; }
.friend-info   { font-size: 0.75rem; color: var(--muted); margin-top: 1px; }
.online-dot    { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-left: auto; flex-shrink: 0; }
.studying-badge {
  display: inline-block; background: var(--green-bg); color: var(--green);
  font-size: 0.62rem; font-weight: 700; padding: 2px 6px; border-radius: 999px; margin-top: 2px;
}

/* Guide cards (right column) */
.guide-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
  box-shadow: var(--shadow-sm); margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.guide-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-bg); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.guide-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 2px; }
.guide-price { font-size: 0.75rem; color: var(--muted); }
.guide-price strong { color: var(--accent); }

/* ── Stats bar ──────────────────────────────────── */
.stats-bar {
  background: var(--text);
  padding: 36px 32px;
}
.stats-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px;
}
.stat-block { text-align: center; }
.stat-block .stat-num  { font-size: 1.8rem; font-weight: 800; color: #fff; }
.stat-block .stat-unit { color: var(--accent); }
.stat-block .stat-lbl  { font-size: 0.78rem; color: #94a3b8; margin-top: 2px; }

/* ── Grid (full experience list page) ──────────────── */
.page-wrap {
  max-width: 1120px; margin: 0 auto; padding: 40px 32px 80px;
}
.page-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.page-sub   { color: var(--muted); margin-bottom: 32px; }

.filter-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.filter-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 12px; margin-bottom: 14px;
}
@media (max-width: 600px) { .filter-row { grid-template-columns: 1fr; } }

.filter-label { font-size: 0.7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.filter-select {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 10px 14px; border-radius: 8px;
  font-size: 0.9rem; cursor: pointer; font-family: inherit;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.filter-select:focus { outline: none; border-color: var(--accent); }

.find-btn {
  width: 100%; background: var(--accent); color: #fff; border: none;
  padding: 12px; border-radius: 8px; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.find-btn:hover { background: var(--accent-h); }

.stats-top-bar {
  display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
  margin-bottom: 24px; font-size: 0.82rem; color: var(--muted);
}
.stats-top-bar strong { color: var(--text); }
.result-count { margin-left: auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── Student card ─────────────────────────────────── */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm);
  cursor: pointer; transition: box-shadow .15s, transform .15s;
  display: flex; flex-direction: column; gap: 14px;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card-header { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; background: var(--blue-bg);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}
.card-name { font-weight: 700; font-size: 0.95rem; }
.card-uni  { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

.verified-badge {
  margin-left: auto; background: var(--green-bg); color: var(--green);
  font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; flex-shrink: 0;
}

.cost-total {
  font-size: 1.5rem; font-weight: 800; color: var(--text);
}
.cost-total span { font-size: 0.85rem; font-weight: 400; color: var(--muted); }

.cost-bars { display: flex; flex-direction: column; gap: 6px; }
.cost-bar-row { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; }
.cost-bar-label { width: 68px; color: var(--muted); flex-shrink: 0; }
.cost-bar-track { flex: 1; height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.cost-bar-fill  { height: 100%; border-radius: 3px; background: var(--accent); }
.cost-bar-amt   { width: 42px; text-align: right; color: var(--text); }

.tip-preview {
  font-size: 0.8rem; color: var(--muted);
  border-left: 2px solid var(--accent); padding-left: 10px; line-height: 1.5;
}

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.76rem; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto;
}
.scholarship-tag {
  background: var(--blue-bg); color: var(--accent);
  font-size: 0.65rem; font-weight: 700; padding: 3px 7px; border-radius: 999px;
}

/* ── Profile page ─────────────────────────────────── */
.profile-page {
  max-width: 720px; margin: 0 auto; padding: 32px 24px 80px;
}
.back { color: var(--muted); font-size: 0.88rem; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 28px; }
.back:hover { color: var(--text); }

.profile-hero {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.profile-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar-lg   { width: 60px; height: 60px; font-size: 2rem; background: var(--blue-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.profile-name { font-size: 1.4rem; font-weight: 800; }
.profile-meta { color: var(--muted); font-size: 0.85rem; margin-top: 3px; }

.section-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.section-title { font-size: 0.7rem; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }

.cost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cost-item { background: var(--surface); border-radius: 10px; padding: 14px; }
.cost-item-label { font-size: 0.72rem; color: var(--muted); margin-bottom: 4px; }
.cost-item-value { font-size: 1.2rem; font-weight: 700; }
.cost-total-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 0; border-top: 1px solid var(--border); margin-top: 12px; font-weight: 700; }
.cost-total-row .total-val { font-size: 1.4rem; color: var(--accent); }

.tip-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tip-list li { display: flex; gap: 10px; font-size: 0.88rem; }
.tip-list li::before { content: "✦"; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.survival-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.survival-item { background: var(--surface); border-radius: 10px; padding: 14px; }
.survival-key { font-size: 0.68rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.survival-val { font-size: 0.83rem; line-height: 1.5; }

.quote-block {
  background: var(--surface); border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 14px 16px;
  font-size: 0.88rem; line-height: 1.6; margin-bottom: 12px;
}
.quote-label { font-size: 0.68rem; color: var(--muted); margin-bottom: 6px; font-weight: 700; text-transform: uppercase; }

/* ── Empty state ────────────────────────────────── */
.empty { text-align: center; padding: 60px 24px; color: var(--muted); }
.empty h3 { margin-bottom: 8px; color: var(--text); }

/* ── Submit page ─────────────────────────────────── */
.submit-page { max-width: 600px; margin: 0 auto; padding: 48px 24px 80px; }
.submit-page h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.submit-page p.sub { color: var(--muted); margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); padding: 12px 16px; border-radius: 10px;
  font-size: 0.92rem; font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.cost-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cost-input-group { display: flex; flex-direction: column; gap: 6px; }
.cost-input-label { font-size: 0.76rem; color: var(--muted); }
.submit-btn {
  width: 100%; background: var(--accent); color: #fff; border: none;
  padding: 15px; border-radius: 10px; font-size: 1rem; font-weight: 700;
  cursor: pointer; margin-top: 8px; transition: background .15s;
}
.submit-btn:hover { background: var(--accent-h); }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ── Graduates page ───────────────────────────────── */
.grad-page { max-width: 900px; margin: 0 auto; padding: 32px 32px 80px; }
.grad-hero { margin-bottom: 32px; }
.grad-hero h1 { font-size: 2rem; font-weight: 800; margin: 12px 0 8px; }
.grad-hero p  { color: var(--muted); max-width: 520px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-bg); color: var(--accent);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 5px 12px;
  border-radius: 999px; margin-bottom: 16px;
}

.outcome-summary {
  display: flex; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 28px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.outcome-stat { flex: 1; padding: 20px; border-right: 1px solid var(--border); text-align: center; }
.outcome-stat:last-child { border-right: none; }
.outcome-num   { font-size: 1.8rem; font-weight: 800; color: var(--text); }
.outcome-label { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }

.grad-filters { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.grad-filters .filter-select { flex: 1; min-width: 180px; }

.grad-grid { display: flex; flex-direction: column; gap: 16px; }

.grad-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px;
}
.grad-card-top { display: flex; align-items: flex-start; gap: 14px; }
.grad-verdict { margin-left: auto; font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.verdict-yes { background: var(--green-bg); color: var(--green); }
.verdict-no  { background: #fef2f2; color: #dc2626; }

.grad-quote { font-size: 1rem; font-weight: 600; color: var(--text); border-left: 3px solid var(--accent); padding-left: 14px; margin: 0; line-height: 1.5; }

.tl-section  { display: flex; flex-direction: column; gap: 8px; }
.tl-title    { font-size: 0.68rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.tl-step     { display: flex; align-items: center; gap: 10px; }
.tl-label    { width: 120px; font-size: 0.76rem; color: var(--muted); flex-shrink: 0; }
.tl-bar-row  { display: flex; align-items: center; gap: 8px; flex: 1; }
.tl-bar-track { flex: 1; height: 7px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.tl-bar-fill  { height: 100%; border-radius: 4px; background: var(--accent); }
.tl-score    { width: 36px; text-align: right; font-size: 0.8rem; font-weight: 700; }

.grad-outcome { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); background: var(--surface); border-radius: 10px; padding: 12px 16px; }
.grad-reflection summary { cursor: pointer; font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.grad-reflection p { margin-top: 12px; font-size: 0.86rem; line-height: 1.7; color: var(--muted); }
.advice-block { margin-top: 12px; background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 12px 16px; font-size: 0.83rem; line-height: 1.6; }

/* ── Footer ───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  background: var(--bg);
}
