/* ===================== RESET ===================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.12), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(37, 99, 235, 0.1), transparent 30%),
    #f8fafc;
  color: #0f172a;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

/* ===================== HEADER ===================== */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
  width: 92%;
  max-width: 1350px;
  height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: white;
  font-size: 25px;
  font-weight: 950;
  display: flex;
  align-items: center;
  gap: 11px;
  letter-spacing: -0.5px;
}

.logo i {
  color: #a78bfa;
  filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.7));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
}

.nav-links a {
  color: #e5e7eb;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 0;
  position: relative;
  transition: 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  transition: 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.menu-btn {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  font-size: 18px;
  transition: 0.25s;
}

.theme-toggle:hover,
.menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) rotate(8deg);
}

.menu-btn {
  display: none;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.96);
  padding: 15px 8%;
}

.mobile-menu a {
  color: white;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===================== BUTTONS ===================== */

.btn {
  border: none;
  border-radius: 15px;
  padding: 12px 21px;
  cursor: pointer;
  font-weight: 850;
  transition: 0.25s;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -120%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 120%;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  color: white;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.25);
}

.btn.primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(79, 70, 229, 0.42);
}

.btn.premium {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.2);
}

.btn.premium:hover {
  transform: translateY(-3px);
}

.btn.secondary:hover {
  background: #e0e7ff;
  transform: translateY(-3px);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
}

.btn.glass {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
}

.btn.large {
  padding: 17px 30px;
  font-size: 16px;
}

/* ===================== HERO ===================== */

.hero {
  min-height: 100vh;
  padding: 155px 8% 95px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 65px;
  background:
    radial-gradient(circle at 18% 12%, rgba(124, 58, 237, 0.95), transparent 27%),
    radial-gradient(circle at 82% 20%, rgba(37, 99, 235, 0.65), transparent 25%),
    radial-gradient(circle at 75% 85%, rgba(219, 39, 119, 0.35), transparent 28%),
    linear-gradient(135deg, #020617, #0f172a 45%, #1e1b4b);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  right: -150px;
  top: 100px;
  filter: blur(2px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  pointer-events: none;
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.13);
  padding: 11px 17px;
  border-radius: 999px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ddd6fe;
  font-weight: 850;
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.18);
}

.hero h1 {
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.02;
  margin-bottom: 25px;
  letter-spacing: -2.5px;
  background: linear-gradient(135deg, #ffffff, #dbeafe, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: #cbd5e1;
  font-size: 20px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.stats {
  margin-top: 55px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stats div {
  min-width: 135px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(15px);
}

.stats h3 {
  color: #c4b5fd;
  font-size: 35px;
}

.stats span {
  color: #cbd5e1;
  font-weight: 700;
}

.hero-card {
  width: 390px;
  padding: 32px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.2);
  animation: float 4s ease-in-out infinite;
}

.card-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  color: #c4b5fd;
  font-weight: 850;
}

.hero-card h2 {
  font-size: 29px;
  margin-bottom: 8px;
}

.hero-card p {
  color: #cbd5e1;
  margin-bottom: 24px;
}

.match,
.match-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 850;
}

.match strong,
.match-line strong {
  color: #22c55e;
}

.progress,
.match-progress {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress div,
.match-progress div {
  height: 100%;
  background: linear-gradient(135deg, #22c55e, #84cc16);
}

.hero-card ul {
  list-style: none;
}

.hero-card li {
  margin-bottom: 13px;
  color: #e5e7eb;
}

.hero-card li i {
  color: #22c55e;
  margin-right: 8px;
}

/* ===================== GENERAL SECTIONS ===================== */

.section {
  padding: 110px 8%;
  position: relative;
}

.section-title {
  max-width: 780px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-title span,
.about-text span {
  color: #7c3aed;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.section-title h2,
.about-text h2 {
  font-size: clamp(34px, 4vw, 52px);
  margin: 13px 0;
  letter-spacing: -1.4px;
}

.section-title p,
.about-text p {
  color: #64748b;
  font-size: 18px;
  line-height: 1.75;
}

/* ===================== LAYOUTS ===================== */

.search-layout,
.dorm-search-layout,
.advisor-layout,
.profile-layout,
.roadmap-layout {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
}

.advisor-layout,
.profile-layout,
.roadmap-layout {
  grid-template-columns: 400px 1fr;
}

/* ===================== COMMON CARDS ===================== */

.filters,
.dorm-filters,
.auth-box,
.dashboard-box,
.roadmap-form,
.roadmap-result,
.compare-box,
.growth-card,
.full-dorm-card,
.university-card,
.dorm-card,
.modal-content,
.about-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 32px;
  box-shadow:
    0 24px 65px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.filters,
.dorm-filters {
  padding: 29px;
  height: fit-content;
  position: sticky;
  top: 105px;
}

.filters h3,
.dorm-filters h3,
.auth-box h3,
.dashboard-box h3,
.roadmap-form h3,
.roadmap-result h3,
.advisor-form h3,
.advisor-result h3 {
  font-size: 27px;
  margin-bottom: 22px;
  letter-spacing: -0.6px;
}

.filters label,
.dorm-filters label,
.roadmap-form label,
.advisor-form label {
  display: block;
  margin: 18px 0 8px;
  color: #334155;
  font-weight: 850;
}

.filters input,
.filters select,
.dorm-filters input,
.dorm-filters select,
.roadmap-form input,
.roadmap-form select,
.auth-box input,
.growth-card input,
.growth-card select,
.advisor-form input,
.advisor-form select,
.subscription-card input {
  width: 100%;
  padding: 15px;
  border-radius: 15px;
  border: 1px solid #e2e8f0;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  margin-bottom: 12px;
  font-size: 14px;
  transition: 0.25s;
}

.filters input:focus,
.filters select:focus,
.dorm-filters input:focus,
.dorm-filters select:focus,
.roadmap-form input:focus,
.roadmap-form select:focus,
.auth-box input:focus,
.growth-card input:focus,
.growth-card select:focus,
.advisor-form input:focus,
.advisor-form select:focus,
.subscription-card input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.12);
  background: white;
}

.subscription-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.76);
  z-index: 9999;
}

.subscription-modal.hidden {
  display: none;
}

.subscription-card {
  width: min(480px, 100%);
  background: #ffffff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
  position: relative;
}

.subscription-close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 20px;
  cursor: pointer;
}

.subscription-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.subscription-card p {
  color: #475569;
  line-height: 1.75;
}

.subscription-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.subscription-note {
  margin-top: 12px;
  color: #64748b;
  font-size: 14px;
}

.modal-open {
  overflow: hidden;
}

.filters button,
.dorm-filters button,
.roadmap-form button,
.auth-box button,
.growth-card button,
.advisor-form button {
  width: 100%;
  margin-top: 12px;
}

/* ===================== UNIVERSITY SEARCH ===================== */

.result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 20px;
}

.result-top h3 {
  font-size: 30px;
  letter-spacing: -0.7px;
}

.result-top p {
  color: #64748b;
  font-weight: 850;
  background: #eef2ff;
  padding: 9px 14px;
  border-radius: 999px;
}

.result-actions,
.sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-control {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.universities-grid,
.dorms-grid,
.saved-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.university-card,
.full-dorm-card,
.growth-card,
.dorm-card {
  overflow: hidden;
  transition: 0.28s;
  position: relative;
}

.university-card::before,
.full-dorm-card::before,
.growth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.16));
  opacity: 0;
  transition: 0.28s;
  pointer-events: none;
}

.university-card:hover,
.full-dorm-card:hover,
.growth-card:hover,
.dorm-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 35px 85px rgba(15, 23, 42, 0.18);
}

.university-card:hover::before,
.full-dorm-card:hover::before,
.growth-card:hover::before {
  opacity: 1;
}

.university-image {
  height: 200px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 54px;
  position: relative;
}

.university-image::after {
  content: "UniVerse Pro";
  position: absolute;
  bottom: 18px;
  right: 20px;
  font-size: 13px;
  font-weight: 850;
  opacity: 0.75;
}

.university-content,
.dorm-content {
  padding: 26px;
  position: relative;
  z-index: 2;
}

.university-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.university-header h3 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.favorite-btn {
  min-width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  transition: 0.25s;
}

.favorite-btn:hover {
  transform: scale(1.1) rotate(-8deg);
}

.favorite-btn.active {
  background: #fee2e2;
  color: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.1);
}

.university-location,
.dorm-location {
  color: #64748b;
  margin-bottom: 18px;
  line-height: 1.5;
  font-weight: 650;
}

.university-info,
.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.modal-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-box,
.modal-info {
  background: #f8fafc;
  padding: 15px;
  border-radius: 17px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.info-box span,
.modal-info span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 4px;
  font-weight: 700;
}

.info-box strong,
.modal-info strong {
  color: #0f172a;
  font-size: 15px;
}

.card-actions {
  display: flex;
  gap: 12px;
}

.card-actions button {
  flex: 1;
}

.no-results,
.no-dorms,
.empty-saved {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  background: white;
  border-radius: 30px;
  color: #64748b;
}

/* ===================== AI ADVISOR ===================== */

.dark {
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.35), transparent 30%),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.22), transparent 32%),
    #0f172a;
  color: white;
}

.dark .section-title p {
  color: #cbd5e1;
}

.advisor-form,
.advisor-result {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 80px rgba(0,0,0,0.25);
}

.advisor-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}

.advisor-form label {
  color: #cbd5e1;
}

.advisor-form input,
.advisor-form select {
  background: rgba(15, 23, 42, 0.75);
  color: white;
  border-color: rgba(255, 255, 255, 0.18);
}

.empty-result,
.empty-roadmap {
  color: #cbd5e1;
  line-height: 1.7;
}

.ai-result-card {
  background: rgba(255, 255, 255, 0.095);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  padding: 25px;
  margin-bottom: 18px;
  transition: 0.25s;
}

.ai-result-card:hover {
  transform: translateY(-7px);
  background: rgba(255, 255, 255, 0.14);
}

.ai-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.ai-result-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}

.ai-result-top h4 {
  font-size: 24px;
}

.ai-score {
  color: #22c55e;
  font-size: 23px;
  font-weight: 950;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.ai-result-card p {
  color: #cbd5e1;
  margin-bottom: 14px;
}

.ai-tags,
.tags,
.dorm-features,
.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.dorm-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.dorm-actions .btn {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
}

.ai-tags span,
.tags span,
.dorm-features span,
.program-tags span {
  padding: 8px 13px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.ai-tags span {
  background: rgba(167, 139, 250, 0.18);
  color: #ddd6fe;
}

.ai-warning {
  background: rgba(239, 68, 68, 0.13);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fecaca;
  padding: 18px;
  border-radius: 18px;
  line-height: 1.7;
}

/* ===================== DORMS ===================== */

.dorms-section,
.growth-section,
.roadmap-section,
.profile-section {
  background: #f8fafc;
}

.dorm-image {
  height: 190px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(124, 58, 237, 0.85)),
    url("https://images.unsplash.com/photo-1555854877-bab0e564b8d5?auto=format&fit=crop&w=900&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: white;
  position: relative;
}

.dorm-image::after {
  content: "Student Housing";
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.dorm-image h3 {
  font-size: 27px;
}

.dorm-main-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.dorm-main-info div {
  background: #f8fafc;
  padding: 15px;
  border-radius: 17px;
  text-align: center;
  border: 1px solid rgba(226,232,240,0.8);
}

.dorm-main-info span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 5px;
  font-weight: 700;
}

.dorm-rating {
  color: #f59e0b;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 8px rgba(245,158,11,0.25));
}

/* ===================== GROWTH LAB ===================== */

.growth-section {
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.16), transparent 35%),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.11), transparent 35%),
    #f8fafc;
}

.growth-layout {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.growth-card {
  padding: 32px;
}

.growth-icon {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 22px;
  box-shadow: 0 18px 35px rgba(79,70,229,0.28);
}

.growth-card h3 {
  font-size: 26px;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.growth-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}

.gpa-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.growth-result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  color: #334155;
  line-height: 1.6;
  font-weight: 750;
}

.growth-result.success {
  background: #dcfce7;
  color: #166534;
}

.growth-result.warning {
  background: #fef3c7;
  color: #92400e;
}

.growth-result.danger {
  background: #fee2e2;
  color: #991b1b;
}

/* ===================== COMPARE ===================== */

.compare-section {
  background:
    radial-gradient(circle at center, rgba(99,102,241,0.14), transparent 38%),
    #eef2ff;
}

.compare-box {
  max-width: 1180px;
  margin: auto;
  padding: 25px;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
  overflow: hidden;
  border-radius: 20px;
}

.compare-table th,
.compare-table td {
  padding: 18px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.compare-table th {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: #4f46e5;
}

.compare-table td:first-child {
  font-weight: 950;
  color: #334155;
}

.remove-compare {
  border: none;
  background: #fee2e2;
  color: #ef4444;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 850;
}

/* ===================== PROFILE ===================== */

.profile-layout {
  max-width: 1200px;
}

.auth-box,
.dashboard-box,
.roadmap-form,
.roadmap-result {
  padding: 32px;
}

.dashboard-box {
  display: none;
}

.dashboard-box.active {
  display: block;
  grid-column: 1 / -1;
}

.auth-box.hidden {
  display: none;
}

.auth-note,
.dashboard-header p {
  color: #64748b;
  line-height: 1.6;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 25px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.dashboard-stats div {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border-radius: 22px;
  padding: 23px;
  text-align: center;
  border: 1px solid rgba(226,232,240,0.8);
}

.dashboard-stats h4 {
  color: #4f46e5;
  font-size: 34px;
}

.dashboard-stats p {
  color: #64748b;
  font-weight: 850;
}

.saved-title {
  margin-bottom: 18px;
}

.saved-card {
  background: #f8fafc;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid #e2e8f0;
}

.saved-card h4 {
  font-size: 21px;
  margin-bottom: 8px;
}

.saved-card p {
  color: #64748b;
  margin-bottom: 12px;
}

.saved-card strong {
  color: #2563eb;
}

.planner-section {
  margin-top: 34px;
  border-top: 1px solid #e2e8f0;
  padding-top: 30px;
}

.planner-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.planner-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.planner-header h3 {
  margin-bottom: 8px;
}

.planner-header p {
  color: #64748b;
  max-width: 640px;
}

.planner-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 14px;
  min-width: 300px;
}

.planner-summary div {
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border: 1px solid #dbeafe;
  border-radius: 20px;
  padding: 18px;
  text-align: center;
}

.planner-summary strong {
  display: block;
  color: #1d4ed8;
  font-size: 29px;
  margin-bottom: 6px;
}

.planner-summary span {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.planner-form {
  background: linear-gradient(180deg, rgba(239,246,255,0.8), rgba(248,250,252,0.9));
  border: 1px solid #dbeafe;
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
}

.planner-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.planner-form label {
  display: block;
  color: #0f172a;
  font-weight: 800;
}

.planner-form select,
.planner-form input,
.planner-form textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  background: rgba(255,255,255,0.95);
}

.planner-form textarea {
  resize: vertical;
  min-height: 110px;
}

.planner-form select:focus,
.planner-form input:focus,
.planner-form textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79,70,229,0.12);
}

.planner-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.planner-actions-row.wrap-row {
  flex-wrap: wrap;
}

.note-templates-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.note-template-btn {
  min-width: 92px;
}

.form-state-hint {
  margin-top: 10px;
  color: #0f766e;
  font-size: 14px;
  font-weight: 700;
}

.week-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-weight: 700;
  color: #334155;
}

.week-filter-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #4f46e5;
}

.planner-list {
  display: grid;
  gap: 18px;
}

.planner-empty {
  color: #64748b;
  padding: 22px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
}

.planner-card {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: white;
  overflow: hidden;
}

.planner-card-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 14px;
}

.planner-card-top h4 {
  margin-bottom: 6px;
  font-size: 22px;
}

.planner-card-top p,
.planner-meta,
.planner-notes {
  color: #64748b;
}

.planner-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.planner-status.interested {
  background: #ede9fe;
  color: #6d28d9;
}

.planner-status.preparing {
  background: #dbeafe;
  color: #1d4ed8;
}

.planner-status.submitted {
  background: #fef3c7;
  color: #b45309;
}

.planner-status.accepted {
  background: #dcfce7;
  color: #166534;
}

.planner-status.rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.planner-priority,
.deadline-urgency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 900;
  width: fit-content;
}

.planner-priority.dream {
  background: #fce7f3;
  color: #9d174d;
}

.planner-priority.target {
  background: #ede9fe;
  color: #6d28d9;
}

.planner-priority.safe {
  background: #ecfeff;
  color: #155e75;
}

.deadline-urgency.today {
  background: #fee2e2;
  color: #991b1b;
}

.deadline-urgency.three-days {
  background: #fef3c7;
  color: #92400e;
}

.deadline-urgency.seven-days {
  background: #ffedd5;
  color: #9a3412;
}

.deadline-urgency.overdue {
  background: #7f1d1d;
  color: #fef2f2;
}

.deadline-urgency.later,
.deadline-urgency.none {
  background: #e2e8f0;
  color: #1e293b;
}

.planner-card-body {
  padding: 0 22px 22px;
}

.planner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
}

.planner-meta strong {
  color: #0f172a;
}

.planner-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.planner-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
}

.planner-check-item input {
  width: 18px;
  height: 18px;
  accent-color: #4f46e5;
}

.planner-notes {
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px;
  line-height: 1.6;
}

.planner-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.planner-card-actions .btn {
  min-width: 132px;
}

.planner-overview-grid,
.profile-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.full-width-card {
  grid-column: 1 / -1;
}

.planner-overview-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 22px;
}

.overview-card-head h4,
.overview-card-head p {
  margin-bottom: 8px;
}

.overview-card-head p {
  color: #64748b;
}

.planner-calendar-list,
.status-board,
.compact-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px 16px;
}

.mini-card strong {
  display: block;
  margin-bottom: 6px;
}

.mini-card p {
  color: #64748b;
  margin-bottom: 8px;
}

.mini-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nearby-links {
  margin: 12px 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.nearby-links strong {
  display: block;
  margin-bottom: 6px;
}

.nearby-links p {
  color: #64748b;
  margin: 0;
}

.compare-mini-card p {
  margin-bottom: 6px;
}

.full-span-card {
  grid-column: 1 / -1;
}

.scholarship-card {
  min-height: 100%;
}

.uni-enhancement-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin: 28px 0;
}

.uni-enhancement-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 14px 38px rgba(15,23,42,0.08);
}

.uni-enhancement-card h3 {
  margin-bottom: 10px;
}

.uni-enhancement-card p {
  color: #64748b;
}

.uni-enhancement-card textarea {
  width: 100%;
  min-height: 130px;
  margin-top: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
}

.note-autosave-state {
  margin-top: 10px;
  font-size: 14px;
  color: #0f766e;
}

.ai-hints-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-hints-list {
  margin-left: 18px;
  display: grid;
  gap: 6px;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.similar-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
}

.similar-card strong {
  display: block;
  margin-bottom: 8px;
}

.similar-card p {
  color: #64748b;
  margin-bottom: 12px;
}

.reminder-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(360px, calc(100vw - 32px));
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.28);
  z-index: 1200;
  backdrop-filter: blur(12px);
}

.reminder-toast.hidden {
  display: none;
}

.reminder-toast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.reminder-toast-close {
  border: none;
  background: transparent;
  color: #f8fafc;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.reminder-toast-body {
  display: grid;
  gap: 10px;
}

.reminder-toast-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.reminder-toast-item p {
  margin-top: 4px;
  color: rgba(248, 250, 252, 0.82);
}

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-weekdays span {
  text-align: center;
  font-weight: 800;
  color: #475569;
}

.deadlines-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-day {
  min-height: 122px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-day.empty {
  background: #f8fafc;
  border-style: dashed;
}

.calendar-day.has-events {
  border-color: #c7d2fe;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.08);
}

.calendar-events {
  display: grid;
  gap: 6px;
}

.calendar-event {
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 8px;
  width: fit-content;
}

.calendar-event.today {
  background: #fee2e2;
  color: #991b1b;
}

.calendar-event.three-days {
  background: #fef3c7;
  color: #92400e;
}

.calendar-event.seven-days {
  background: #ffedd5;
  color: #9a3412;
}

.calendar-event.overdue {
  background: #7f1d1d;
  color: #fef2f2;
}

.calendar-event.later,
.calendar-event.none {
  background: #e2e8f0;
  color: #1e293b;
}

/* ===================== ROADMAP ===================== */

.roadmap-section {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.13), transparent 34%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.12), transparent 34%),
    white;
}

.roadmap-university-card {
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  color: white;
  padding: 30px;
  border-radius: 28px;
  margin-bottom: 26px;
  box-shadow: 0 22px 45px rgba(79,70,229,0.24);
}

.roadmap-university-card h4 {
  font-size: 30px;
  margin-bottom: 8px;
}

.roadmap-university-card p {
  color: #e0e7ff;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 3px;
  height: calc(100% - 10px);
  background: linear-gradient(#c7d2fe, #ddd6fe);
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  background: #f8fafc;
  padding: 23px;
  border-radius: 23px;
  border: 1px solid #e2e8f0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 25px;
  width: 18px;
  height: 18px;
  background: #4f46e5;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #c7d2fe;
}

.timeline-item.done::before {
  background: #22c55e;
  box-shadow: 0 0 0 3px #bbf7d0;
}

.timeline-item.warning::before {
  background: #f59e0b;
  box-shadow: 0 0 0 3px #fde68a;
}

.timeline-item h4 {
  font-size: 22px;
  margin-bottom: 8px;
}

.timeline-item p {
  color: #64748b;
  line-height: 1.6;
}

.timeline-status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 950;
}

.timeline-item.done .timeline-status {
  background: #dcfce7;
  color: #166534;
}

.timeline-item.warning .timeline-status {
  background: #fef3c7;
  color: #92400e;
}

/* ===================== ABOUT ===================== */

.about {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 42px;
  align-items: center;
}

.about-card {
  padding: 38px;
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  color: white;
  box-shadow: 0 28px 65px rgba(79,70,229,0.28);
}

.about-card h3 {
  font-size: 30px;
  margin-bottom: 15px;
}

.about-card p {
  color: #e0e7ff;
  line-height: 1.7;
}

/* ===================== MODAL ===================== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  animation: modalShow 0.3s ease;
}

.modal-close {
  position: absolute;
  right: 25px;
  top: 25px;
  width: 43px;
  height: 43px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 20px;
}

.modal-hero {
  padding: 42px;
  border-radius: 30px;
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  color: white;
  margin-bottom: 30px;
}

.modal-hero h2 {
  font-size: 40px;
  margin-bottom: 10px;
}

.modal-section {
  margin-bottom: 28px;
}

.modal-section h3 {
  font-size: 25px;
  margin-bottom: 12px;
}

.review-card {
  background: #f8fafc;
  padding: 21px;
  border-radius: 21px;
  margin-top: 12px;
}

.review-card strong {
  color: #4f46e5;
}

/* ===================== FOOTER ===================== */

.footer {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.24), transparent 34%),
    radial-gradient(circle at bottom right, rgba(37,99,235,0.16), transparent 35%),
    #020617;
  color: #94a3b8;
  padding: 75px 8% 28px;
}

.footer-grid {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer h3 {
  color: white;
  font-size: 30px;
  margin-bottom: 15px;
}

.footer h4 {
  color: white;
  margin-bottom: 15px;
}

.footer p {
  line-height: 1.7;
}

.footer a {
  display: block;
  color: #94a3b8;
  margin-bottom: 10px;
  transition: 0.25s;
}

.footer a:hover {
  color: #c4b5fd;
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1350px;
  margin: 45px auto 0;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* ===================== ANIMATION ===================== */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-18px) rotate(1deg);
  }
}

@keyframes modalShow {
  from {
    transform: translateY(30px) scale(0.96);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ===================== DARK MODE ===================== */

body.dark-mode {
  background:
    radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.18), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(37, 99, 235, 0.16), transparent 30%),
    #020617;
  color: #e5e7eb;
}

body.dark-mode .section,
body.dark-mode .profile-section,
body.dark-mode .growth-section,
body.dark-mode .roadmap-section,
body.dark-mode .dorms-section,
body.dark-mode .compare-section {
  background: transparent;
}

body.dark-mode .filters,
body.dark-mode .dorm-filters,
body.dark-mode .auth-box,
body.dark-mode .dashboard-box,
body.dark-mode .growth-card,
body.dark-mode .roadmap-form,
body.dark-mode .roadmap-result,
body.dark-mode .compare-box,
body.dark-mode .full-dorm-card,
body.dark-mode .university-card,
body.dark-mode .dorm-card,
body.dark-mode .modal-content,
body.dark-mode .no-results,
body.dark-mode .no-dorms,
body.dark-mode .empty-saved {
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

body.dark-mode input,
body.dark-mode select {
  background: #020617;
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .info-box,
body.dark-mode .modal-info,
body.dark-mode .saved-card,
body.dark-mode .growth-result,
body.dark-mode .timeline-item,
body.dark-mode .dashboard-stats div,
body.dark-mode .planner-card,
body.dark-mode .planner-summary div,
body.dark-mode .planner-form,
body.dark-mode .planner-check-item,
body.dark-mode .planner-empty,
body.dark-mode .planner-notes,
body.dark-mode .planner-overview-card,
body.dark-mode .mini-card,
body.dark-mode .uni-enhancement-card,
body.dark-mode .similar-card,
body.dark-mode .review-card,
body.dark-mode .dorm-main-info div {
  background: rgba(17, 24, 39, 0.95);
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

body.dark-mode .info-box strong,
body.dark-mode .modal-info strong,
body.dark-mode .compare-table td:first-child {
  color: #e5e7eb;
}

body.dark-mode .section-title p,
body.dark-mode .about-text p,
body.dark-mode .dorm-location,
body.dark-mode .university-location,
body.dark-mode .growth-card p,
body.dark-mode .timeline-item p,
body.dark-mode .auth-note,
body.dark-mode .dashboard-header p,
body.dark-mode .saved-card p,
body.dark-mode .planner-header p,
body.dark-mode .planner-meta,
body.dark-mode .planner-notes,
body.dark-mode .planner-summary span,
body.dark-mode .overview-card-head p,
body.dark-mode .mini-card p,
body.dark-mode .uni-enhancement-card p,
body.dark-mode .similar-card p,
body.dark-mode .reminder-toast-item p,
body.dark-mode .result-top p {
  color: #cbd5e1;
}

body.dark-mode .note-autosave-state {
  color: #5eead4;
}

body.dark-mode .form-state-hint {
  color: #67e8f9;
}

body.dark-mode .week-filter-toggle,
body.dark-mode .calendar-weekdays span {
  color: #cbd5e1;
}

body.dark-mode .calendar-day {
  background: rgba(17, 24, 39, 0.95);
  border-color: rgba(255,255,255,0.08);
}

body.dark-mode .calendar-day.empty {
  background: rgba(15, 23, 42, 0.75);
}

body.dark-mode .deadline-urgency.later,
body.dark-mode .deadline-urgency.none,
body.dark-mode .calendar-event.later,
body.dark-mode .calendar-event.none {
  background: #334155;
  color: #e2e8f0;
}

body.dark-mode .planner-eyebrow {
  background: rgba(79,70,229,0.18);
  color: #c7d2fe;
}

body.dark-mode .planner-summary strong {
  color: #93c5fd;
}

body.dark-mode .planner-form select,
body.dark-mode .planner-form input,
body.dark-mode .planner-form textarea {
  background: #020617;
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .nearby-links {
  background: rgba(17, 24, 39, 0.95);
  border-color: rgba(255,255,255,0.08);
}

body.dark-mode .uni-enhancement-card textarea,
body.dark-mode .sort-control select {
  background: #020617;
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .compare-table th {
  background: rgba(17, 24, 39, 0.95);
}

body.dark-mode .compare-table td,
body.dark-mode .compare-table th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1150px) {
  .nav-links,
  .nav-buttons {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-menu.active {
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions,
  .stats {
    justify-content: center;
  }

  .hero-card {
    width: 100%;
    max-width: 440px;
  }

  .search-layout,
  .dorm-search-layout,
  .advisor-layout,
  .profile-layout,
  .roadmap-layout,
  .about {
    grid-template-columns: 1fr;
  }

  .filters,
  .dorm-filters {
    position: static;
  }

  .universities-grid,
  .dorms-grid,
  .saved-grid,
  .growth-layout,
  .planner-overview-grid,
  .profile-insights-grid,
  .similar-grid,
  .ai-hints-grid {
    grid-template-columns: 1fr;
  }

  .dorm-main-info,
  .modal-grid,
  .dashboard-stats,
  .uni-enhancement-grid {
    grid-template-columns: 1fr;
  }

  .planner-header,
  .planner-card-top,
  .planner-actions-row,
  .planner-card-actions {
    flex-direction: column;
  }

  .planner-summary,
  .planner-form-grid,
  .planner-checklist {
    grid-template-columns: 1fr;
  }

  .planner-summary {
    min-width: 0;
  }

  .result-top,
  .result-actions,
  .sort-control,
  .ai-actions,
  .mini-card-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .reminder-toast {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
  }

  .deadlines-calendar-grid,
  .calendar-weekdays {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 82px 6%;
  }

  .hero {
    padding: 135px 6% 75px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-card,
  .advisor-form,
  .advisor-result,
  .filters,
  .dorm-filters,
  .growth-card,
  .roadmap-form,
  .roadmap-result,
  .auth-box,
  .dashboard-box {
    border-radius: 25px;
  }

  .stats div {
    width: 100%;
  }

  .card-actions {
    flex-direction: column;
  }

  .modal-content {
    padding: 25px;
    border-radius: 24px;
  }

  .modal-hero {
    padding: 28px;
  }

  .modal-hero h2 {
    font-size: 30px;
  }
}
/* ===== УНИВЕРСИТЕТЫ ===== */

.university-image {
  height: 150px; /* было 200px */
  overflow: hidden;
  background: #f8fafc;
}

.university-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.university-content {
  padding: 20px;
  background: #ffffff;
}

.university-header h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  color: #111827; /* темный цвет для читаемости */
}

.university-location {
  color: #2563eb; /* ярко-синий */
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 16px;
}

.info-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.info-box span {
  color: #6b7280;
  font-weight: 600;
}

.info-box strong {
  color: #111827;
  font-weight: 700;
}

.university-card {
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.university-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.match-line span {
  color: #374151;
  font-weight: 600;
}

.match-line strong {
  color: #16a34a;
}
#language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

#languageSelect {
    padding: 10px 15px;
    border-radius: 10px;
    border: none;
    background: #2563eb;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

.language-select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.language-select option {
    background: #020617;
    color: white;
}

#google_translate_element { display:flex; align-items:center; gap:8px; }
#google_translate_element select { background: rgba(255,255,255,0.08); color: white; border:1px solid rgba(255,255,255,0.12); padding:8px 10px; border-radius:8px; }
.back-btn { color: #fff; text-decoration:none; }
.saved-card { display:flex; gap:12px; align-items:center; padding:10px; border-bottom:1px solid rgba(0,0,0,0.05); }
.saved-card img { width:84px; height:64px; object-fit:cover; border-radius:6px }
.saved-card .saved-card-content h4 { margin:0 0 6px 0 }
}