:root {
  --bg: #0a0a0f;
  --surface: #13131d;
  --surface2: #1c1c2e;
  --border: rgba(255,255,255,0.07);
  --accent: #6c63ff;
  --accent2: #ff6584;
  --accent3: #43e8b0;
  --text: #f0f0f8;
  --muted: #8888aa;
  --glow: rgba(108,99,255,0.25);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: flex-end;
  height: 64px;
}
nav > .logo-link { margin-right: auto; }
.nav-right { display: none; }
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.logo-link { text-decoration: none; display: flex; align-items: center; gap: 0.6rem; }
.logo-img { width: 40px; height: 40px; flex-shrink: 0; }
.logo-img-sm { width: 34px; height: 34px; }
.logo-line { display: flex; align-items: center; gap: 0.6rem; justify-content: center; }
.footer-logo-line { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo-img { width: 48px; height: 48px; flex-shrink: 0; }
.logo span { color: var(--accent2); -webkit-text-fill-color: var(--accent2); }
nav ul { list-style: none; display: flex; gap: 1.4rem; align-items: center; }
nav ul li { display: flex; align-items: center; }
nav ul li a, nav ul li button { color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.2s; line-height: 1; font-family: 'DM Sans', sans-serif; cursor: pointer; }
nav ul li a:hover, nav ul li button:hover { color: var(--text); }
.nav-btn { background: var(--accent); color: #fff !important; padding: 0.45rem 1.2rem; border-radius: 8px; font-weight: 600 !important; transition: opacity 0.2s, transform 0.2s !important; border: none; }
.nav-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.nav-search { background: linear-gradient(135deg, var(--accent), #9b88ff); }
.nav-upload { background: transparent; border: 1px solid rgba(108,99,255,0.45); color: var(--accent) !important; }
.nav-upload:hover { background: rgba(108,99,255,0.08); opacity: 1; }

/* ── NOTIFICATION BELL & PANEL ────────────────────── */
.notif-bell { position: relative; background: none; border: none; color: var(--muted); font-size: 1.15rem; cursor: pointer; padding: 0.35rem 0.2rem; line-height: 1; transition: color 0.2s; }
.notif-bell:hover { color: var(--text); }
.notif-bell-mobile { display: none; }
.notif-bell-label { display: none; }
.notif-badge { position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px; border-radius: 100px; background: var(--accent2); color: #fff; font-size: 0.6rem; font-weight: 700; align-items: center; justify-content: center; padding: 0 4px; border: 1px solid var(--bg); }
.notif-panel { display: none; position: fixed; top: 58px; right: 2rem; width: 340px; max-width: 92vw; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,0.55); z-index: 400; overflow: hidden; animation: slideDown 0.2s ease; }
.notif-panel.open { display: block; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface2); }
.notif-head-actions { display: flex; align-items: center; gap: 0.6rem; }
.notif-close { background: none; border: none; color: var(--muted); font-size: 0.9rem; cursor: pointer; padding: 0.2rem; line-height: 1; transition: color 0.2s; }
.notif-close:hover { color: var(--text); }
.notif-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.92rem; }
.notif-mark-all { background: none; border: none; color: var(--accent); font-size: 0.72rem; font-weight: 600; cursor: pointer; padding: 0; }
.notif-mark-all:hover { text-decoration: underline; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: block; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(108,99,255,0.06); }
.notif-item.unread { background: rgba(108,99,255,0.08); }
.notif-item-title { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.notif-item-msg { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.notif-item-time { font-size: 0.7rem; color: var(--muted); margin-top: 0.35rem; }
.notif-empty { padding: 2rem; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* ── NAV MORE DROPDOWN ───────────────────────────── */
.nav-more {
  position: relative;
}
.nav-more-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-more-btn:hover { color: var(--text); }
.nav-more-btn .arrow {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  display: inline-block;
}
.nav-more-btn.open .arrow { transform: rotate(180deg); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 170px;
  z-index: 300;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: slideDown 0.2s ease;
}
.nav-dropdown.open { display: block; }
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a:hover {
  background: rgba(108,99,255,0.1);
  color: var(--text);
}

/* ── HERO ────────────────────────────────────────── */
.hero { position: relative; z-index: 1; padding: 7rem 2rem 5rem; text-align: center; max-width: 860px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(108,99,255,0.12); border: 1px solid rgba(108,99,255,0.3);
  color: var(--accent); padding: 0.35rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 1.8rem;
  animation: fadeInDown 0.6s ease both;
}
.hero h1 {
  font-family: 'Syne', sans-serif; font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -2px;
  margin-bottom: 1.4rem; animation: fadeInUp 0.6s 0.1s ease both;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero h1 .hl2 { color: var(--accent3); }
.hero p { color: var(--muted); font-size: 1.15rem; line-height: 1.7; max-width: 560px; margin: 0 auto 2.5rem; animation: fadeInUp 0.6s 0.2s ease both; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fadeInUp 0.6s 0.3s ease both; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #9b88ff);
  color: #fff; border: none; cursor: pointer;
  padding: 0.85rem 2rem; border-radius: 12px;
  font-size: 1rem; font-weight: 600; font-family: 'DM Sans', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--glow); }
.btn-secondary {
  background: transparent; color: var(--text); border: 1px solid var(--border); cursor: pointer;
  padding: 0.85rem 2rem; border-radius: 12px; font-size: 1rem; font-weight: 500;
  font-family: 'DM Sans', sans-serif; transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); background: rgba(108,99,255,0.08); }

/* ── STATS ───────────────────────────────────────── */
.stats-bar {
  position: relative; z-index: 1;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  max-width: 700px; margin: 0 auto 5rem;
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: var(--surface); animation: fadeInUp 0.6s 0.4s ease both;
  padding: 0 2rem;
}
.stat { flex: 1; min-width: 140px; padding: 1.4rem 1.5rem; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-lbl { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

/* ── SEARCH ──────────────────────────────────────── */
.search-section { position: relative; z-index: 1; max-width: 900px; margin: 0 auto 6rem; padding: 4rem 2rem 0; animation: fadeInUp 0.6s 0.5s ease both; }
.search-section h2 { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; letter-spacing: -1px; }
.search-section > p { color: var(--muted); text-align: center; margin-bottom: 2rem; }
.search-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; transition: border-color 0.2s, box-shadow 0.2s; }
.search-box:hover { border-color: rgba(108,99,255,0.35); box-shadow: 0 0 0 4px rgba(108,99,255,0.06); }
.search-box:focus-within { border-color: rgba(108,99,255,0.4); box-shadow: 0 0 0 4px rgba(108,99,255,0.08); }
.search-input-wrap { flex: 1; min-width: 220px; position: relative; }
.search-input-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.95rem; padding: 0.75rem 1rem 0.75rem 2.8rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.search-input:hover { border-color: rgba(108,99,255,0.4); }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,99,255,0.12); }
.search-input::placeholder { color: var(--muted); }
.filter-select { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; padding: 0.75rem 1rem; outline: none; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; min-width: 160px; }
.filter-select:hover { border-color: rgba(108,99,255,0.4); }
.filter-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,99,255,0.12); }
.filter-select option { background: var(--surface); }
.search-btn { background: var(--accent); color: #fff; border: none; cursor: pointer; padding: 0.75rem 1.5rem; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600; transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s; white-space: nowrap; }
.search-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 20px var(--glow); }

/* ── CHIPS ───────────────────────────────────────── */
.category-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all 0.2s; user-select: none; }
.chip:hover, .chip.active { border-color: var(--accent); color: var(--accent); background: rgba(108,99,255,0.1); }
.chip.active { background: rgba(108,99,255,0.15); }

/* ── RESULTS ─────────────────────────────────────── */
.results-area { margin-top: 2rem; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.result-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem; cursor: pointer; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; position: relative; overflow: hidden; }
.result-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent), transparent); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.result-card:hover { border-color: rgba(108,99,255,0.4); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.result-card:hover::before { opacity: 0.04; }
.card-type { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 0.25rem 0.7rem; border-radius: 100px; margin-bottom: 0.9rem; }
.type-pyq   { background: rgba(108,99,255,0.15); color: var(--accent); }
.type-notes { background: rgba(67,232,176,0.12);  color: var(--accent3); }
.type-paper { background: rgba(255,101,132,0.12); color: var(--accent2); }
.type-booklet { background: rgba(255,200,80,0.14); color: #ffc850; }
.card-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.3; }
.card-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag { font-size: 0.7rem; background: var(--surface2); color: var(--muted); padding: 0.2rem 0.6rem; border-radius: 6px; }
.tag-alt { background: rgba(108,99,255,0.1); color: var(--accent); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.card-top .card-type { margin-bottom: 0; }
.bookmark-btn { background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: 0; transition: color 0.2s, transform 0.2s; line-height: 1; }
.bookmark-btn:hover, .bookmark-btn.bookmarked { color: #f5c518; transform: scale(1.2); }
.card-actions { display: flex; align-items: center; gap: 0.5rem; }
.dl-count { font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.card-uploader { font-size: 0.7rem; color: var(--muted); margin-top: 0.6rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.preview-btn { background: none; border: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; cursor: pointer; padding: 0.3rem 0.5rem; border-radius: 6px; transition: all 0.2s; line-height: 1; }
.preview-btn:hover { color: var(--accent); border-color: var(--accent); background: rgba(108,99,255,0.1); }
.nav-avatar-btn { background: none; border: none; cursor: pointer; padding: 0; }
.nav-avatar-label { display: none; }
.nav-avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.nav-avatar-circle { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent3)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem; font-weight: 700; }
.dl-btn { display: flex; align-items: center; gap: 0.3rem; background: var(--surface2); border: 1px solid var(--border); color: var(--text); padding: 0.4rem 0.9rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; white-space: nowrap; text-decoration: none; }
.dl-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── FEATURES ────────────────────────────────────── */
.features { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto 6rem; padding: 0 2rem; }
.section-label { text-align: center; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 1rem; }
.section-title { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800; text-align: center; margin-bottom: 0.7rem; letter-spacing: -1.5px; }
.section-sub { color: var(--muted); text-align: center; max-width: 480px; margin: 0 auto 3rem; line-height: 1.7; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.8rem; transition: border-color 0.2s, transform 0.2s; position: relative; overflow: hidden; }
.feature-card:hover { border-color: rgba(108,99,255,0.3); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.2rem; }
.fi-purple { background: rgba(108,99,255,0.15); }
.fi-green  { background: rgba(67,232,176,0.12); }
.fi-red    { background: rgba(255,101,132,0.12); }
.fi-yellow { background: rgba(255,200,80,0.12); }
.fi-blue   { background: rgba(80,160,255,0.12); }
.fi-pink   { background: rgba(220,100,255,0.12); }
.feature-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* ── UPLOAD ──────────────────────────────────────── */
.upload-section { position: relative; z-index: 1; max-width: 760px; margin: 0 auto 5rem; padding: 0 2rem; }
.upload-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.upload-left h2 { font-family: 'Syne', sans-serif; font-size: 1.7rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 1rem; }
.upload-left p { color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; font-size: 0.95rem; }
.upload-perks { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.upload-perks li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--muted); }
.perk-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent3); flex-shrink: 0; }
.upload-dropzone { border: 2px dashed rgba(108,99,255,0.3); border-radius: 16px; padding: 1.5rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.upload-dropzone:hover, .upload-dropzone.drag-over { border-color: var(--accent); background: rgba(108,99,255,0.05); }
.upload-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.upload-dropzone h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.upload-dropzone > p { color: var(--muted); font-size: 0.82rem; margin-bottom: 1.2rem; }
.upload-fields { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1rem; }
.upload-input { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.85rem; padding: 0.6rem 0.9rem; outline: none; width: 100%; }
.upload-input:focus { border-color: var(--accent); }
.upload-input::placeholder { color: var(--muted); }
.file-chosen { font-size: 0.78rem; color: var(--accent3); margin-bottom: 0.5rem; min-height: 1.2rem; }
.upload-size-hint { font-size: 0.75rem; color: var(--muted); margin-bottom: 1rem; }

/* ── COURSES ─────────────────────────────────────── */
.courses-section { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto 6rem; padding: 0 2rem; }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.course-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem 1rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.course-card:hover { border-color: rgba(108,99,255,0.4); background: rgba(108,99,255,0.06); transform: translateY(-3px); }
.course-card:hover .course-icon { transform: scale(1.15); }
.course-icon { font-size: 2rem; margin-bottom: 0.7rem; display: block; transition: transform 0.2s; }
.course-name { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.25rem; }
.course-count { font-size: 0.75rem; color: var(--muted); }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  position: relative; z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 3rem 4rem;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.footer-logo-line { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.2rem; }
.footer-logo-img { width: 48px; height: 48px; flex-shrink: 0; }
.footer-logo-wrap {
  font-family: 'Syne', sans-serif;
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.footer-logo-wrap span { -webkit-text-fill-color: var(--accent2); }
.footer-tagline { color: var(--muted); font-size: 1rem; line-height: 1.75; margin-bottom: 2rem; max-width: 300px; }
.footer-badges { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-badge-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.92rem; color: var(--muted); }
.footer-badge-item span { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 0.3rem 0.8rem; font-size: 0.88rem; color: var(--text); }
.footer-col { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-col-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.9rem; padding: 0.18rem 0; transition: color 0.2s, padding-left 0.2s; display: inline-block; }
.footer-col a:hover { color: var(--text); padding-left: 6px; }

/* ── FOOTER COLLAPSIBLE COMPANY COL ──────────────── */
.footer-col-collapsible { display: flex; flex-direction: column; gap: 0; }

.footer-col-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 0;
  cursor: default;
  font-family: 'Syne', sans-serif;
  color: var(--text);
}
.footer-col-title-text {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.footer-col-arrow {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  display: none; /* hidden on desktop */
}
.footer-col-arrow.open { transform: rotate(180deg); }

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1rem;
  overflow: hidden;
  max-height: 500px;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 1;
}
.footer-col-links.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}
.footer-col-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 0.35rem 0; transition: color 0.2s, padding-left 0.2s; display: inline-block; line-height: 1.5; }
.footer-col-links a:hover { color: var(--text); padding-left: 6px; }

.footer-bottom { border-top: 1px solid var(--border); padding: 1.6rem 3rem; text-align: center; }
.footer-bottom-left { font-size: 0.9rem; color: var(--muted); }

/* ── TESTIMONIALS ────────────────────────────────── */
.testimonials-section { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto 6rem; padding: 0 2rem; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.8rem; transition: border-color 0.2s, transform 0.2s; display: flex; flex-direction: column; gap: 0.8rem; }
.testimonial-card:hover { border-color: rgba(108,99,255,0.3); transform: translateY(-2px); }
.testimonial-stars { font-size: 1.2rem; color: #f5c518; letter-spacing: 2px; }
.testimonial-msg { color: var(--text); font-size: 0.95rem; line-height: 1.65; font-style: italic; flex: 1; }
.testimonial-name { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.testimonial-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 2rem; font-size: 0.95rem; }
.testimonials-cta { text-align: center; margin-top: 2.5rem; }

/* ── REVIEWS PAGE HERO ───────────────────────────── */
.reviews-hero { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto 6rem; padding: 4rem 2rem 0; }
.reviews-hero h2 { font-family: 'Syne', sans-serif; font-size: 2.4rem; font-weight: 800; text-align: center; letter-spacing: -1px; margin-bottom: 0.6rem; }
.reviews-hero > p { color: var(--muted); text-align: center; max-width: 520px; margin: 0 auto 1.8rem; line-height: 1.7; }
.reviews-cta { display: flex; justify-content: center; }
.reviews-hero .testimonials-grid { margin-top: 2rem; }

/* ── REVIEW SORT ──────────────────────────────────── */
.review-sort { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.6rem; }
.review-sort-btn { background: var(--surface2); border: 1px solid var(--border); color: var(--muted); padding: 0.45rem 1.2rem; border-radius: 100px; font-size: 0.82rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; }
.review-sort-btn:hover { border-color: var(--accent); color: var(--accent); }
.review-sort-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(108,99,255,0.12); }

/* ── MY UPLOADS ───────────────────────────────────── */
.my-uploads { position: relative; z-index: 1; max-width: 900px; margin: 0 auto 6rem; padding: 0 2rem; }
.upload-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.3rem; margin-bottom: 0.8rem; flex-wrap: wrap; transition: border-color 0.2s; }
.upload-item:hover { border-color: rgba(108,99,255,0.3); }
.upload-item-main { flex: 1; min-width: 220px; }
.upload-item-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.upload-item-meta { font-size: 0.78rem; color: var(--muted); }
.upload-item-side { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }

/* ── STATUS BADGES ────────────────────────────────── */
.status-badge { display: inline-flex; padding: 0.2rem 0.6rem; border-radius: 100px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; }
.status-pending  { background: rgba(255,200,80,0.15); color: #ffc850; }
.status-approved { background: rgba(67,232,176,0.12); color: var(--accent3); }
.status-rejected { background: rgba(255,101,132,0.12); color: var(--accent2); }

/* ── STAR PICKER ─────────────────────────────────── */
.star-picker { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.star { font-size: 2.2rem; color: var(--border); cursor: pointer; transition: color 0.15s, transform 0.15s; user-select: none; }
.star:hover, .star.active { color: #f5c518; transform: scale(1.15); }
.star-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; min-height: 1.2rem; text-align: center; }
.review-char-count { font-size: 0.75rem; color: var(--muted); text-align: right; margin-bottom: 1rem; }

/* ── PROFILE MODAL + MY UPLOADS ──────────────────── */
.modal-profile { max-width: 560px; }
.profile-uploads { margin-top: 1.2rem; }
.profile-uploads-title { display: flex; align-items: center; gap: 0.6rem; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.7rem; }
.profile-uploads-hint { font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 0.72rem; color: var(--muted); }
.profile-uploads-list { max-height: 240px; overflow-y: auto; padding-right: 0.3rem; }
.profile-uploads-list .upload-item { padding: 0.85rem 1rem; margin-bottom: 0.6rem; }
.profile-uploads-list .no-results { padding: 1.2rem; }

/* ── FOOTER FEEDBACK ─────────────────────────────── */
.footer-feedback-desc { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.5; }
.footer-feedback-form { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-feedback-select,
.footer-feedback-input { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.88rem; padding: 0.6rem 0.9rem; outline: none; width: 100%; transition: border-color 0.2s; }
.footer-feedback-select:focus,
.footer-feedback-input:focus { border-color: var(--accent); }
.footer-feedback-select option { background: var(--surface); }
.footer-feedback-input { resize: vertical; min-height: 80px; }
.footer-feedback-input::placeholder { color: var(--muted); }
.footer-feedback-btn { background: linear-gradient(135deg, var(--accent), #9b88ff); color: #fff; border: none; cursor: pointer; padding: 0.65rem 1rem; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600; transition: opacity 0.2s, transform 0.2s; text-align: center; }
.footer-feedback-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── TOAST ───────────────────────────────────────── */
.toast { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; background: var(--surface2); border: 1px solid rgba(67,232,176,0.4); color: var(--accent3); padding: 0.9rem 1.4rem; border-radius: 12px; font-size: 0.9rem; font-weight: 500; transform: translateY(80px); opacity: 0; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: none; }
.toast.show { transform: translateY(0); opacity: 1; }

/* ── RATING PROMPT ───────────────────────────────── */
.rating-prompt { position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 2000; background: var(--surface); border: 1px solid rgba(108,99,255,0.35); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.55); padding: 1.1rem 1.3rem; width: 320px; max-width: calc(100vw - 2.5rem); transform: translateY(130%); opacity: 0; transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1); pointer-events: none; }
.rating-prompt.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.rating-prompt-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; margin-bottom: 0.3rem; }
.rating-prompt-text { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.9rem; }
.rating-prompt-actions { display: flex; gap: 0.5rem; }
.rating-prompt-btn { background: var(--surface2); border: 1px solid var(--border); color: var(--text); padding: 0.5rem 0.9rem; border-radius: 9px; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s; flex: 1; }
.rating-prompt-btn:hover { border-color: var(--accent); color: var(--accent); }
.rating-prompt-primary { background: linear-gradient(135deg, var(--accent), #9b88ff); color: #fff; border: none; }
.rating-prompt-primary:hover { opacity: 0.85; color: #fff; }

/* ── ONBOARDING ──────────────────────────────────── */
.ob-school-row { display: flex; gap: 0.8rem; }
.ob-school-row .upload-input { flex: 1; }

/* ── RECOMMENDED ─────────────────────────────────── */
.recommended-section { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto 6rem; padding: 0 2rem; }
.recommended-section .results-grid { margin-top: 0.5rem; }

/* ── MODAL ───────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem; max-width: 480px; width: 90%; position: relative; animation: scaleIn 0.25s cubic-bezier(0.34,1.56,0.64,1); max-height: 90vh; overflow-y: auto; }
.modal h3 { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; }
.modal p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.modal-close { position: absolute; top: 1.2rem; right: 1.2rem; background: none; border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.modal-close:hover { color: var(--text); }

/* PREVIEW MODAL — wide, no scroll, fixed close button (matches admin panel) */
.modal-preview { max-width: 720px; max-height: none; overflow: visible; }
.preview-container { margin-top: 0.5rem; width: 100%; height: 65vh; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.preview-container iframe { width: 100%; height: 100%; border: none; background: #fff; }
.modal-actions { display: flex; gap: 0.8rem; justify-content: flex-end; margin-top: 1.5rem; }

/* ── LOADING ─────────────────────────────────────── */
.loading { text-align: center; padding: 3rem; color: var(--muted); font-size: 0.95rem; }
.loading::after { content: ''; display: inline-block; width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; margin-left: 0.6rem; vertical-align: middle; }
.loading-wake { text-align: center; padding: 3rem; color: var(--accent); font-size: 0.95rem; }
.no-results { text-align: center; padding: 3rem; color: var(--muted); font-size: 0.95rem; }

/* ── LOAD MORE ──────────────────────────────────────── */
.load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 2rem; }
.load-more-btn { background: var(--surface2); border: 1px solid var(--border); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600; padding: 0.7rem 2.4rem; border-radius: 10px; cursor: pointer; transition: all 0.2s; }
.load-more-btn:hover { border-color: var(--accent); color: var(--accent); }
.load-more-btn:disabled { opacity: 0.6; cursor: default; }
.load-more-end { display: none; color: var(--muted); font-size: 0.82rem; text-align: center; }

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeInDown { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp   { from { opacity:0; transform:translateY(20px);  } to { opacity:1; transform:translateY(0); } }
@keyframes scaleIn    { from { opacity:0; transform:scale(0.9);        } to { opacity:1; transform:scale(1);    } }
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes slideDown  { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
@keyframes menuSlideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── HAMBURGER ───────────────────────────────────── */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 200; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MODAL UTILITIES ─────────────────────────────── */
.modal-wide { max-width: 560px; }
.modal-dev  { max-width: 520px; }
.modal-p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; margin-bottom: 0.7rem; }
.modal-p-muted { color: var(--muted); }
.modal-footer-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 0; }
.modal-hint { color: var(--muted); font-size: 0.82rem; margin-bottom: 1rem; }
.modal-form-stack { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1rem; }
.modal-textarea { resize: vertical; }
.modal-scroll-content { color: var(--muted); font-size: 0.88rem; line-height: 1.8; max-height: 320px; overflow-y: auto; padding-right: 0.5rem; }
.modal-info-block { background: var(--surface2); border-radius: 10px; padding: 1rem; font-size: 0.88rem; }

/* ── DEV CARD ────────────────────────────────────── */
.dev-card { background: var(--surface2); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; border: 1px solid var(--border); }
.dev-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent3)); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.dev-name { font-weight: 700; font-size: 0.95rem; }
.dev-role { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.dev-profile-card { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; background: var(--surface2); padding: 0.9rem 1rem; border-radius: 14px; border: 1px solid var(--border); }
.dev-avatar-lg { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent3)); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.dev-name-lg { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; }
.dev-location { font-size: 0.78rem; color: var(--accent3); margin-top: 0.2rem; }
.dev-stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 0.6rem; margin-bottom: 1rem; }
.dev-stack-item { background: var(--surface2); border-radius: 10px; padding: 0.65rem; text-align: center; border: 1px solid var(--border); }
.dev-stack-icon { font-size: 1.2rem; margin-bottom: 0.3rem; }
.dev-stack-label { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.2rem; }
.dev-stack-value { font-size: 0.78rem; font-weight: 600; }

/* ── UTILITY ─────────────────────────────────────── */
.hidden { display: none; }
.btn-full { width: 100%; margin-top: 0.5rem; }
.text-bright { color: var(--text); }
.text-accent { color: var(--accent); }
.inline-code { background: var(--bg); padding: 0.1rem 0.4rem; border-radius: 4px; color: var(--accent); font-family: monospace; }

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */

/* ── TABLET (≤960px) ─────────────────────────────── */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-feedback { grid-column: 1 / -1; }
  .footer-tagline { max-width: 100%; }
  .hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -1.5px; }

  /* NAV hamburger — right slide-in panel on all smaller screens */
  .hamburger { display: flex; }
  nav { padding: 0 1rem; }
  nav > .logo-link .logo { font-size: 1.2rem; }
  nav > .logo-link .logo-img { width: 32px; height: 32px; }
  .nav-right { display: flex; align-items: center; gap: 0.5rem; }
  .notif-bell-mobile { display: inline-flex; align-items: center; }
  #notifLi { display: none !important; }
  nav ul {
    display: none;
    position: fixed;
    top: 64px; right: 0;
    width: min(300px, 84vw);
    height: calc(100vh - 64px);
    overflow-y: auto;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1.5rem;
    z-index: 150;
    animation: menuSlideIn 0.25s ease;
  }
  nav ul.open { display: flex; }
  nav ul li { width: 100%; text-align: left; display: block; }
  nav ul li a, nav ul li button { display: flex; align-items: center; width: 100%; padding: 0.95rem 2rem; font-size: 1rem; text-align: left; border-bottom: 1px solid var(--border); }
  .nav-btn { margin: 0 !important; display: block !important; width: 100% !important; border-radius: 0 !important; background: none !important; border: none !important; color: var(--text) !important; padding: 0.95rem 2rem !important; text-align: left !important; }

  /* Avatar becomes a full-width text row in the menu */
  .nav-avatar-btn { width: 100%; display: flex; align-items: center; justify-content: flex-start; gap: 0.5rem; padding: 0.95rem 2rem; }
  .nav-avatar-btn .nav-avatar-img,
  .nav-avatar-btn .nav-avatar-circle { display: none; }
  .nav-avatar-label { display: inline; font-size: 1rem; font-weight: 500; }

  /* More dropdown in mobile menu — show inline */
  .nav-more { width: 100%; text-align: left; }
  .nav-more-btn {
    width: 100%; justify-content: flex-start;
    padding: 0.95rem 2rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(108,99,255,0.05);
    padding: 0;
    min-width: unset;
    width: 100%;
    animation: none;
  }
  .nav-dropdown a {
    justify-content: flex-start;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
  }

  /* Show arrow and make toggle clickable on tablet */
  .footer-col-toggle { cursor: pointer; }
  .footer-col-arrow { display: inline-block; }
  .footer-col-links { max-height: 0; opacity: 0; margin-top: 0; }
  .footer-col-links.open { max-height: 500px; opacity: 1; margin-top: 1rem; }
}

/* ── MOBILE (≤640px) ─────────────────────────────── */
@media (max-width: 640px) {

  /* HERO */
  .hero { padding: 5rem 1.2rem 3.5rem; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.8rem); letter-spacing: -1px; line-height: 1.1; }
  .hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; max-width: 320px; }

  /* STATS */
  .stats-bar { flex-wrap: wrap; border-radius: 12px; margin: 0 1.2rem 4rem; }
  .stat { min-width: calc(50% - 1px); border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }

  /* SEARCH */
  .search-section { padding: 0 1.2rem; }
  .search-section h2 { font-size: 1.8rem; }
  .search-box { flex-direction: column; padding: 1rem; }
  .search-input-wrap { min-width: unset; }
  .filter-select { min-width: unset; width: 100%; }
  .category-chips { gap: 0.4rem; }
  .chip { font-size: 0.78rem; padding: 0.35rem 0.8rem; }

  /* COURSES */
  .courses-section { padding: 0 1.2rem; }
  .courses-grid { grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
  .course-card { padding: 1rem 0.5rem; }
  .course-icon { font-size: 1.5rem; }
  .course-name { font-size: 0.78rem; }
  .course-count { font-size: 0.65rem; }
  .section-title { font-size: 1.8rem; }

  /* FEATURES */
  .features { padding: 0 1.2rem; }
  .features-grid { grid-template-columns: 1fr; }

  /* RECOMMENDED */
  .recommended-section { padding: 0 1.2rem; }
  .ob-school-row { flex-direction: column; }
  .rating-prompt { bottom: 1rem; left: 1rem; }

  /* TESTIMONIALS */
  .testimonials-section { padding: 0 1.2rem; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* UPLOAD */
  .upload-section { padding: 0 1.2rem; }
  .upload-card { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.8rem 1.2rem; }
  .upload-left h2 { font-size: 1.5rem; }

  /* RESULTS */
  .results-grid { grid-template-columns: 1fr; }

  /* NOTIFICATIONS */
  .notif-panel { right: 1rem; top: 56px; }

  /* MY UPLOADS */
  .my-uploads { padding: 0 1.2rem; }
  .upload-item { flex-direction: column; align-items: flex-start; }
  .upload-item-side { width: 100%; }

  /* FOOTER */
  .footer-inner { grid-template-columns: 1fr; padding: 2.5rem 1.2rem 2rem; gap: 1.8rem; }
  .footer-bottom { padding: 1.2rem 1.2rem; }
  .footer-logo-line { flex-wrap: wrap; }
  .footer-logo-wrap { font-size: 1.55rem; }
  .footer-logo-img { width: 40px; height: 40px; }
  .footer-col-toggle { cursor: pointer; }
  .footer-col-arrow { display: inline-block; }
  .footer-col-links { max-height: 0; opacity: 0; margin-top: 0; }
  .footer-col-links.open { max-height: 500px; opacity: 1; margin-top: 1rem; }

  /* MODALS */
  .modal { padding: 1.8rem 1.2rem; width: 95%; }
  .dev-stack-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }

  /* PREVIEW MODAL — compact on phones so it fits the screen */
  .modal-preview { padding: 1.5rem 1rem 1.25rem; max-height: 90vh; }
  .modal-preview h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
  .preview-container { height: 45vh; }
  .modal-actions { margin-top: 1rem; gap: 0.6rem; }
}

/* ── CARD RATING / REPORT ─────────────────────────── */
.card-top-actions { display: flex; align-items: center; gap: 0.6rem; }
.report-btn { background: none; border: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 0; line-height: 1; transition: color 0.2s; }
.report-btn:hover { color: #ff6b6b; }
.card-rating-row { margin-top: 0.85rem; }
.card-rating-btn { background: none; border: none; padding: 0; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.card-rating { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--muted); padding: 0.28rem 0.7rem; border-radius: 100px; background: var(--surface2); border: 1px solid var(--border); transition: all 0.2s; }
.card-rating-btn:hover .card-rating { border-color: rgba(245,197,24,0.55); color: var(--text); }
.card-rating-stars { color: #f5c518; letter-spacing: 1px; font-size: 0.72rem; }
.card-rating-num { font-weight: 700; color: var(--text); }
.card-rating-empty { color: var(--muted); font-size: 0.72rem; }

/* ── PROFILE BADGE ─────────────────────────────────── */
.profile-badge { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; font-size: 0.75rem; font-weight: 600; color: #ffc850; background: rgba(255,200,80,0.12); border: 1px solid rgba(255,200,80,0.3); padding: 0.28rem 0.7rem; border-radius: 100px; }

/* ── MODAL SUB / TEXTAREA ──────────────────────────── */
.modal-sub { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }

/* ── UPLOAD ITEM ACTIONS ───────────────────────────── */
.upload-edit-btn, .upload-del-btn { background: none; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: 0.85rem; cursor: pointer; padding: 0.25rem 0.45rem; line-height: 1; transition: all 0.2s; }
.upload-edit-btn:hover { color: var(--accent); border-color: var(--accent); background: rgba(108,99,255,0.1); }
.upload-del-btn:hover { color: #ff6b6b; border-color: #ff6b6b; background: rgba(255,107,107,0.1); }
.reject-reason { margin-top: 0.3rem; color: #ff6b6b; font-size: 0.75rem; }

/* ── HERO RATING ───────────────────────────────────── */
.hero-rating { margin-top: 1.8rem; display: flex; align-items: center; justify-content: center; gap: 0.7rem; flex-wrap: wrap; animation: fadeInUp 0.6s ease both; animation-delay: 0.2s; }
.hero-rating-stars { color: #f5c518; font-size: 1.05rem; letter-spacing: 2px; }
.hero-rating-text { color: var(--muted); font-size: 0.85rem; }

@media (max-width: 400px) {
  .footer-inner { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.9rem; }
}
