@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");

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

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

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.16), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(251, 146, 60, 0.12), transparent 34%),
    #f8fafc;
  color: #0f172a;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

body::before {
  width: 520px;
  height: 520px;
  left: -180px;
  top: 12vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.26), transparent 66%);
  filter: blur(10px);
}

body::after {
  width: 440px;
  height: 440px;
  right: -160px;
  bottom: 6vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.24), transparent 67%);
  filter: blur(12px);
}

a {
  text-decoration: none;
}
/* Пример правильной разметки для вашей сетки */
.universities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
  width: 100%;
}

/* Keep the homepage focused on search and the primary actions. */
.app-page .ab-offer-lab,
.app-page .roadmap-90,
.app-page .seo-content-block,
.app-page .testimonials-section,
.app-page .site-comments-section,
.app-page .faq-section,
.app-page .growth-lab,
.app-page .referral-section,
.app-page .consult-section,
.app-page .funnel-section,
.app-page #siteFeedbackFab,
.app-page #siteFeedbackModal {
  display: none !important;
}

.app-page .trust-strip {
  padding-top: 28px;
  padding-bottom: 28px;
}

.app-page .trust-strip-grid {
  gap: 12px;
}


.university-load-more {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 8px;
}

/* Карточки должны иметь внутренние отступы и видимый фон */
.uni-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
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: #38bdf8;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.55));
}

.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, #0ea5e9, #fb923c);
  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;
}

.custom-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.custom-language-switcher .translate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}

.custom-language-switcher select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 24px 6px 2px;
  cursor: pointer;
  outline: none;
  background-image: linear-gradient(45deg, transparent 50%, #e5e7eb 50%), linear-gradient(135deg, #e5e7eb 50%, transparent 50%);
  background-position: calc(100% - 12px) calc(50% - 2px), calc(100% - 7px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.custom-language-switcher select option {
  color: #0f172a;
  background: #fff;
}

#google_translate_element {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.goog-logo-link, .goog-te-gadget .goog-toolbar, .goog-te-banner-frame.skiptranslate { display: none !important; }
.goog-te-gadget { font-family: inherit !important; }
.goog-te-balloon-frame { box-shadow: 0 18px 46px rgba(2,6,23,0.38); border-radius: 12px !important; }

@media (max-width: 900px) {
  .custom-language-switcher {
    padding: 5px 8px 5px 6px;
  }

  .custom-language-switcher select {
    font-size: 13px;
    max-width: 72px;
  }
}

/* Mobile profile floating button - visible only on small screens */
.mobile-profile-btn {
  display: none !important;
}

@media (max-width: 900px) {
  .mobile-profile-btn {
    display: none !important;
  }
}

.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);
}

.mobile-menu .mobile-profile-link {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  font-weight: 800;
}

/* ===================== 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;
  isolation: isolate;
}

.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::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  background-image: url("image/Gemini_Generated_Image_jtph1mjtph1mjtph.png");
  background-size: cover;
  border-radius: 50%;
  opacity: 0;
  transition: 0.25s;
}

.btn:hover::after {
  opacity: 0.35;
  transform: translateY(-50%) scale(1);
}

.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 i {
  transition: transform 0.25s ease;
}

.btn:hover i {
  transform: translateX(2px);
}

.section,
.university-card,
.full-dorm-card,
.dorm-card,
.growth-card,
.auth-box,
.dashboard-box,
.planner-overview-card,
.about-card,
.timeline-item,
.modal-content {
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.university-card:hover,
.full-dorm-card:hover,
.dorm-card:hover,
.growth-card:hover,
.planner-overview-card:hover,
.about-card:hover,
.timeline-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border-color: rgba(14, 165, 233, 0.45);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.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 16% 10%, rgba(14, 165, 233, 0.78), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(14, 116, 144, 0.68), transparent 25%),
    radial-gradient(circle at 76% 86%, rgba(249, 115, 22, 0.34), transparent 30%),
    linear-gradient(140deg, #02101f, #0a1d34 48%, #113b56);
  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: #d7f3ff;
  font-weight: 850;
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.2);
}

.hero h1 {
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.02;
  margin-bottom: 25px;
  letter-spacing: -2.5px;
  background: linear-gradient(135deg, #ffffff, #d7f0ff, #ffe4c7);
  background-clip: text;
  -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: #7dd3fc;
  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;
}

.hero-pulse-card {
  display: grid;
  gap: 12px;
}

.hero-pulse-list {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
}

.hero-pulse-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  font-size: 14px;
}

.hero-pulse-item b {
  color: #86efac;
}

.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;
}

.hero-quick-search {
  margin: 0 0 20px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-quick-search label {
  display: block;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-quick-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.hero-quick-search input {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(2, 6, 23, 0.36);
  border-radius: 12px;
  color: #ffffff;
  padding: 12px 14px;
  font-size: 15px;
}

.hero-quick-search input::placeholder {
  color: rgba(226, 232, 240, 0.8);
}

.hero-quick-search input:focus {
  outline: none;
  border-color: #7dd3fc;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.trust-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

.trust-row i {
  color: #fde047;
}

.trust-strip {
  margin-top: 36px;
}

.roadmap-90 {
  position: relative;
  overflow: hidden;
}

.roadmap-90::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -110px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 70%);
  pointer-events: none;
}

.roadmap-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.roadmap-step {
  position: relative;
  overflow: hidden;
  padding: 20px;
  animation: stepReveal 0.55s ease both;
}

.roadmap-step:nth-child(2) { animation-delay: 0.06s; }
.roadmap-step:nth-child(3) { animation-delay: 0.12s; }
.roadmap-step:nth-child(4) { animation-delay: 0.18s; }

.roadmap-step::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #06b6d4, #fb923c);
}

.roadmap-step-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px;
}

.roadmap-step h3 {
  font-size: 21px;
  margin-bottom: 9px;
  letter-spacing: -0.3px;
}

.roadmap-step p {
  color: #475569;
  line-height: 1.62;
}

.roadmap-cta {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

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

.trust-strip-head {
  margin-bottom: 16px;
}

.trust-strip-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -1.2px;
}

.trust-strip-head p {
  margin-top: 10px;
  color: #475569;
  max-width: 860px;
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-chip {
  padding: 20px;
}

.trust-chip h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.trust-chip p {
  color: #475569;
  line-height: 1.6;
}

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

.testimonial-card {
  padding: 22px;
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.testimonial-head h3 {
  margin: 0;
  font-size: 18px;
}

.testimonial-head p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 14px;
}

.testimonial-card > p {
  color: #334155;
  line-height: 1.7;
}

.site-comments-section {
  padding-top: 8px;
}

.site-comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.site-comment-card {
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.site-comment-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.site-comment-name {
  font-weight: 800;
  color: #0f172a;
}

.site-comment-stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
  letter-spacing: 1px;
  font-size: 14px;
}

.site-comment-card p {
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

.site-comment-empty {
  grid-column: 1 / -1;
  padding: 22px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.55);
  color: #475569;
}

.feedback-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1600;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.35);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feedback-fab:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 52px rgba(37, 99, 235, 0.42);
}

.feedback-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1800;
}

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

.feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
}

.feedback-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 24px));
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.feedback-kicker {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
}

.feedback-header h3 {
  margin: 0;
  font-size: clamp(24px, 2vw, 34px);
  color: #0f172a;
}

.feedback-close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.12);
  color: #334155;
  cursor: pointer;
  font-size: 21px;
}

.feedback-form {
  display: grid;
  gap: 16px;
}

.feedback-form label {
  display: grid;
  gap: 8px;
  color: #0f172a;
  font-weight: 700;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #0f172a;
  resize: vertical;
  font: inherit;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.5);
}

.feedback-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.feedback-star {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  color: #cbd5e1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.feedback-star.active {
  color: #f59e0b;
}

.feedback-star:hover {
  transform: scale(1.08);
}

@media (max-width: 760px) {
  .feedback-fab {
    right: 16px;
    bottom: 18px;
    width: 56px;
    height: 56px;
  }

  .feedback-dialog {
    padding: 18px;
    border-radius: 18px;
  }
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  padding: 16px 18px;
  text-align: left;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question i {
  color: #2563eb;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-answer p {
  padding: 0 18px 16px;
  color: #475569;
  line-height: 1.6;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 4200;
  width: min(640px, calc(100vw - 24px));
  border-radius: 16px;
  padding: 10px;
  display: flex;
  gap: 10px;
  background: rgba(2, 6, 23, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.32);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.sticky-cta .btn {
  flex: 1;
}

.sticky-cta .btn.glass {
  border-color: rgba(255, 255, 255, 0.2);
}

.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
}

.quiz-modal.is-open {
  display: block;
}

.quiz-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.64);
  backdrop-filter: blur(3px);
}

.quiz-modal-panel {
  position: relative;
  z-index: 2;
  width: min(640px, calc(100vw - 24px));
  margin: 8vh auto 0;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
}

.quiz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.quiz-head h2 {
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.6px;
}

.quiz-close {
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  cursor: pointer;
}

.quiz-progress-wrap {
  margin: 14px 0;
  display: grid;
  gap: 6px;
}

.quiz-progress {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.quiz-progress div {
  width: 25%;
  height: 100%;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.quiz-progress-wrap span {
  font-size: 13px;
  color: #475569;
}

.quiz-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.quiz-form input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
}

.quiz-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.quiz-result {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  padding: 14px;
}

.quiz-result h3 {
  margin: 0 0 8px;
}

.quiz-result p {
  color: #1e3a8a;
  line-height: 1.6;
}

.quiz-result-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.growth-lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.growth-widget {
  padding: 22px;
}

.growth-widget h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.growth-widget p {
  color: #475569;
  line-height: 1.6;
}

.deadline-timer {
  margin: 12px 0;
  padding: 12px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 18px;
}

.growth-widget small {
  color: #64748b;
  display: block;
}

.lead-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.lead-form label {
  font-size: 14px;
  color: #334155;
  font-weight: 700;
}

.lead-form input,
.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  background: #f8fafc;
}

.lead-form-status,
.feedback-status {
  margin-top: 10px;
  color: #1e3a8a;
  font-weight: 700;
  min-height: 20px;
}

.referral-row {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.invite-code {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #0f172a;
}

.referral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consult-card {
  padding: 28px;
  text-align: center;
}

.consult-card h2 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -1px;
}

.consult-card p {
  margin: 12px auto 0;
  max-width: 760px;
  color: #475569;
}

.consult-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.feedback-fab {
  position: fixed;
  right: 14px;
  bottom: 90px;
  z-index: 4300;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.32);
  cursor: pointer;
}

.feedback-modal,
.exit-intent-modal {
  position: fixed;
  inset: 0;
  z-index: 5100;
  display: none;
}

.feedback-modal.is-open,
.exit-intent-modal.is-open {
  display: block;
}

.feedback-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.66);
  backdrop-filter: blur(2px);
}

.feedback-panel {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100vw - 24px));
  margin: 12vh auto 0;
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
}

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

.feedback-head h3 {
  margin: 0;
  font-size: 24px;
}

.feedback-form {
  display: grid;
  gap: 8px;
}

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

.funnel-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.funnel-card h3 {
  font-size: 20px;
  margin: 0;
}

.funnel-card p {
  color: #475569;
  line-height: 1.6;
}

.funnel-card.is-complete {
  border-color: rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, #ecfdf5, #dcfce7);
}

.funnel-card.is-complete h3 {
  color: #166534;
}

.funnel-status {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

/* ===================== 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;
}

.payment-methods {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.payment-method-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  background: #f8fafc;
}

.payment-method-option input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.payment-method-option span {
  font-size: 14px;
  color: #0f172a;
}

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

.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;
}

.search-hit-line {
  margin: 6px 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  background: #eff6ff;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-block;
}

mark.search-highlight {
  background: #fef08a;
  color: #111827;
  padding: 0 3px;
  border-radius: 4px;
}

.result-actions,
.sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
body {
  overflow-x: hidden; /* Это нормально */
  /* Убедитесь, что тут НЕТ строк: overflow: hidden; или display: none; */
}
.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: 100%;
}

.profile-layout .auth-box {
  grid-column: 1 / -1;
}

.profile-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1220px;
  margin: 0 auto;
}

.profile-shell-empty {
  min-height: 320px;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  place-items: center;
}

.profile-empty-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
  animation: profileModalRise 0.28s ease;
}

@keyframes profileModalRise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.profile-empty-card {
  position: relative;
  padding: 30px 28px 26px;
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9));
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.profile-empty-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 68%);
  pointer-events: none;
}

.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.profile-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-modal-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.profile-modal-close:hover {
  transform: rotate(8deg) scale(1.05);
  background: #fff;
}

.profile-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8, #8b5cf6);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.25);
}

.profile-auth-tabs {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin: 14px 0 18px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.profile-auth-tab {
  border: 0;
  background: transparent;
  color: #475569;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-auth-tab.active {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #fff;
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.26);
}

.profile-empty-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.profile-empty-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.94);
  font-size: 15px;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-empty-form input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.profile-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #1e293b;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.profile-google-btn:hover {
  border-color: rgba(37, 99, 235, 0.45);
  background: #fff;
  transform: translateY(-1px);
}

.profile-empty-status {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
  color: #0f766e;
  font-weight: 700;
}

.profile-empty-status.error {
  color: #b91c1c;
}

.profile-empty-status.success {
  color: #166534;
}

body.dark-mode .profile-empty-card {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode .profile-modal-close {
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
}

body.dark-mode .profile-empty-card p,
body.dark-mode .profile-empty-card h3,
body.dark-mode .profile-empty-form input,
body.dark-mode .profile-auth-tab {
  color: #e2e8f0;
}

body.dark-mode .profile-auth-tab {
  background: rgba(15, 23, 42, 0.7);
}

body.dark-mode .profile-empty-form input {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode .profile-google-btn {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.profile-sidebar,
.auth-box,
.dashboard-box,
.profile-panel,
.settings-panel,
.roadmap-form,
.roadmap-result {
  padding: 28px;
  border: 1px solid var(--profile-border);
  border-radius: 28px;
  background: var(--profile-surface);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.profile-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 22px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--profile-accent-soft), rgba(255, 255, 255, 0.2));
  border: 1px solid var(--profile-border);
}

.profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--profile-accent), #38bdf8);
  color: white;
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: 0 18px 28px rgba(14, 165, 233, 0.2);
}

.profile-kicker {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--profile-accent);
  font-weight: 800;
}

.profile-hero h3,
.dashboard-header h3,
.panel-head h4,
.auth-panel h4,
.settings-panel h3 {
  margin: 0;
}

.profile-hero p,
.dashboard-header p,
.auth-note,
.profile-panel p,
.saved-card p,
.auth-panel-note {
  color: #64748b;
  line-height: 1.6;
}

.profile-nav {
  display: grid;
  gap: 10px;
}

.profile-nav-btn {
  padding: 11px 14px;
  border: 1px solid var(--profile-border);
  border-radius: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.55);
  color: #334155;
  cursor: pointer;
  font-weight: 700;
}

.profile-nav-btn.active {
  background: linear-gradient(135deg, var(--profile-accent), #38bdf8);
  border-color: transparent;
  color: white;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.2);
}

.profile-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-content {
  min-width: 0;
}

.dashboard-box {
  display: none;
}

.dashboard-box.active {
  display: block;
}

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

.profile-dashboard {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.profile-hero-card,
.profile-bio-panel,
.profile-favorites-panel {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.profile-hero-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: white;
  font-size: 25px;
  font-weight: 900;
}

.profile-hero-card h1,
.profile-bio-panel h2,
.profile-favorites-panel h2,
.profile-settings-card h2 { margin: 4px 0; }
.profile-hero-card p { margin: 0; color: #64748b; }
.profile-hero-card .btn { margin-left: auto; }
.profile-bio-panel,
.profile-favorites-panel { margin-top: 18px; padding: 24px; }
.profile-bio-panel textarea { width: 100%; min-height: 92px; margin-top: 12px; padding: 13px 14px; border: 1px solid #cbd5e1; border-radius: 12px; resize: vertical; font: inherit; }
.profile-bio-panel .btn { margin-top: 10px; }
.profile-panel-heading { display: flex; align-items: center; justify-content: space-between; }
.profile-count { font-size: 26px; font-weight: 900; color: #2563eb; }
.saved-items-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.nearby-dorm-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; color: #2563eb; font-weight: 800; text-decoration: none; }
.nearby-dorm-link:hover { text-decoration: underline; }
.profile-logout-btn { margin-top: 18px; }

.profile-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
}
.profile-settings-modal.is-open { display: grid; }
.profile-settings-card { position: relative; display: grid; gap: 14px; width: min(460px, 100%); padding: 28px; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2); }
.profile-settings-card label { display: grid; gap: 7px; color: #475569; font-weight: 700; }
.profile-settings-card select { padding: 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.profile-setting-toggle { display: flex !important; align-items: center; justify-content: space-between; }
.profile-setting-toggle button { width: 48px; height: 26px; border: 0; border-radius: 99px; background: #cbd5e1; cursor: pointer; }
.profile-setting-toggle button.is-on { background: #2563eb; }
body.dark-mode .profile-hero-card,
body.dark-mode .profile-bio-panel,
body.dark-mode .profile-favorites-panel { background: rgba(15, 23, 42, 0.84); }
body.dark-mode .profile-settings-card { background: #0f172a; color: #e2e8f0; }

@media (max-width: 640px) {
  .profile-hero-card { align-items: flex-start; flex-wrap: wrap; }
  .profile-hero-card .btn { width: 100%; margin-left: 0; }
}

.auth-shell {
  display: grid;
  gap: 22px;
}

.auth-intro {
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.16), rgba(251, 146, 60, 0.12));
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.auth-mode-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  width: fit-content;
}

.auth-mode-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  color: #334155;
  background: transparent;
  cursor: pointer;
}

.auth-mode-btn.active {
  background: linear-gradient(120deg, #0284c7, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(2, 132, 199, 0.24);
}

.auth-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-panel {
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.88);
}

.auth-panel.is-hidden {
  display: none;
}

.auth-register-panel {
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 60%), rgba(255, 255, 255, 0.9);
}

.auth-login-panel {
  background: radial-gradient(circle at top right, rgba(251, 146, 60, 0.2), transparent 58%), rgba(255, 255, 255, 0.9);
}

.auth-panel h4 {
  margin-bottom: 6px;
  font-size: 23px;
}

.auth-panel-note {
  margin-bottom: 14px;
  font-size: 14px;
}

.auth-divider {
  margin: 12px 0;
  text-align: center;
}

.auth-divider span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.auth-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 16px;
  font-size: 13px;
  color: #475569;
}

.auth-checkbox-row input {
  margin-top: 2px;
  accent-color: #0ea5e9;
}

.auth-inline-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0 10px;
}

.auth-inline-row .btn {
  padding: 9px 12px;
  white-space: nowrap;
}

.auth-inline-row input {
  min-width: 120px;
}

.auth-code-state {
  margin: 4px 0 10px;
  font-size: 13px;
  color: #0f766e;
  line-height: 1.4;
}

.auth-code-state.error {
  color: #b91c1c;
}

.auth-code-state.success {
  color: #166534;
}

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

.dashboard-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--profile-border);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(255, 255, 255, 0.5));
}

.stat-card h4 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.stat-card p {
  margin: 0;
  color: #475569;
}

.profile-panels-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.profile-panel {
  min-height: 220px;
}

.profile-panel-large {
  min-height: 360px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.tab-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: transparent;
  color: #475569;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--profile-accent), #38bdf8);
  color: white;
}

.saved-grid {
  display: grid;
  gap: 14px;
}

.favorite-section {
  display: grid;
  gap: 14px;
}

.saved-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--profile-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.saved-card img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
}

.saved-card-content {
  display: grid;
  gap: 6px;
}

.saved-card-content h4 {
  margin: 0;
  font-size: 1.05rem;
}

.saved-card-content .mini-card-actions {
  margin-top: 8px;
}

.settings-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.settings-modal.is-open {
  display: block;
}

.settings-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.settings-panel {
  position: relative;
  width: min(440px, calc(100vw - 24px));
  margin: 8vh auto 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
}

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

.settings-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: rgba(148, 163, 184, 0.12);
  color: #334155;
  font-size: 1.6rem;
  cursor: pointer;
}

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

.settings-list label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 700;
}

.settings-list select,
.settings-list input[type="range"] {
  width: 100%;
}

.settings-list select {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.78);
}

.settings-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.settings-switch {
  position: relative;
  width: 64px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-switch.is-on {
  background: linear-gradient(135deg, var(--profile-accent), #38bdf8);
}

.settings-switch-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s ease;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.2);
}

.settings-switch.is-on .settings-switch-knob {
  transform: translateX(28px);
}

.settings-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 760px) {
  .profile-shell {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
  }

  .auth-panels,
  .dashboard-stats,
  .profile-panels-grid {
    grid-template-columns: 1fr;
  }

  .auth-inline-row {
    grid-template-columns: 1fr;
  }

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

  .saved-card {
    grid-template-columns: 1fr;
  }
}

body.profile-pro-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(14, 165, 233, 0.16), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(251, 146, 60, 0.15), transparent 36%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  --profile-accent: #0ea5e9;
  --profile-accent-soft: rgba(14, 165, 233, 0.12);
  --profile-surface: rgba(255, 255, 255, 0.76);
  --profile-border: rgba(148, 163, 184, 0.25);
}

body.profile-pro-page.profile-theme-purple {
  --profile-accent: #8b5cf6;
  --profile-accent-soft: rgba(139, 92, 246, 0.12);
}

body.profile-pro-page.profile-theme-green {
  --profile-accent: #10b981;
  --profile-accent-soft: rgba(16, 185, 129, 0.12);
}

body.profile-pro-page.profile-theme-orange {
  --profile-accent: #f97316;
  --profile-accent-soft: rgba(249, 115, 22, 0.12);
}

body.profile-pro-page.dark-mode {
  --profile-surface: rgba(15, 23, 42, 0.7);
  --profile-border: rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, #020817 0%, #0f172a 100%);
}

body.profile-pro-page.dark-mode .auth-panel,
body.profile-pro-page.dark-mode .profile-panel,
body.profile-pro-page.dark-mode .settings-panel,
body.profile-pro-page.dark-mode .dashboard-box,
body.profile-pro-page.dark-mode .profile-sidebar,
body.profile-pro-page.dark-mode .auth-box,
body.profile-pro-page.dark-mode .stat-card {
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.2);
}

body.profile-pro-page.dark-mode .auth-intro,
body.profile-pro-page.dark-mode .panel-head,
body.profile-pro-page.dark-mode .settings-list label,
body.profile-pro-page.dark-mode .profile-nav-btn {
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
}

body.profile-pro-page.dark-mode .auth-panel-note,
body.profile-pro-page.dark-mode .auth-note,
body.profile-pro-page.dark-mode .profile-kicker,
body.profile-pro-page.dark-mode .dashboard-header p,
body.profile-pro-page.dark-mode .mini-card p,
body.profile-pro-page.dark-mode .saved-card p,
body.profile-pro-page.dark-mode .settings-list span,
body.profile-pro-page.dark-mode .settings-list select,
body.profile-pro-page.dark-mode .settings-list input {
  color: #cbd5e1;
}

body.profile-pro-page.dark-mode .settings-list select,
body.profile-pro-page.dark-mode .settings-list input {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.25);
}

body.app-page {
  --app-accent-main: #0ea5e9;
  --app-accent-soft: #06b6d4;
  --app-accent-warm: #f97316;
  --app-title-dark: #0f172a;
  --app-copy-soft: #475569;
  background:
    radial-gradient(circle at 14% 8%, rgba(14, 165, 233, 0.14), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(251, 146, 60, 0.11), transparent 35%),
    linear-gradient(180deg, #f7fbff 0%, #f1f7ff 100%);
}

body.app-page .section-title span {
  color: #0f766e;
}

body.app-page .section-title h2 {
  color: var(--app-title-dark);
}

body.app-page .section-title p {
  color: var(--app-copy-soft);
}

body.app-page .btn.primary {
  background: linear-gradient(135deg, #0284c7, #0ea5e9, #f97316);
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.24);
}

body.app-page .btn.primary:hover {
  box-shadow: 0 22px 45px rgba(2, 132, 199, 0.34);
}

body.app-page[data-home-variant="B"] {
  background:
    radial-gradient(circle at 9% 10%, rgba(244, 114, 182, 0.13), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(59, 130, 246, 0.12), transparent 36%),
    linear-gradient(180deg, #fff8f3 0%, #f5f7ff 42%, #eef8ff 100%);
}

body.app-page[data-home-variant="B"] .hero {
  background:
    radial-gradient(circle at 12% 12%, rgba(236, 72, 153, 0.5), transparent 32%),
    radial-gradient(circle at 82% 20%, rgba(59, 130, 246, 0.45), transparent 30%),
    radial-gradient(circle at 74% 84%, rgba(245, 158, 11, 0.28), transparent 32%),
    linear-gradient(136deg, #2b132f, #1f2947 46%, #22415f);
}

body.app-page[data-home-variant="B"] .hero h1 {
  letter-spacing: -1.6px;
  background: linear-gradient(135deg, #fff8f8, #fdf2f8, #dbeafe);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.app-page[data-home-variant="B"] .badge {
  color: #ffe4f3;
  box-shadow: 0 0 30px rgba(244, 114, 182, 0.24);
}

body.app-page[data-home-variant="B"] .app-section-shell {
  border-color: rgba(191, 219, 254, 0.48);
}

.app-section-shell {
  max-width: 1220px;
  margin: 24px auto;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
}

.app-card-polish {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.06);
}

.app-toolbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.app-list-layout {
  display: block;
}

.app-preview-card {
  min-height: 320px;
}

.app-preview-card ul {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.app-preview-card li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ab-offer-lab {
  position: relative;
}

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

.ab-offer-card {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.ab-offer-card.is-hidden {
  display: none;
}

.ab-offer-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.ab-offer-card h3 {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}

.ab-offer-card p {
  color: #475569;
  line-height: 1.62;
}

.ab-offer-card ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ab-offer-card li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e293b;
  font-weight: 600;
}

.ab-offer-card li i {
  color: #0ea5e9;
}

.filter-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.filter-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.filter-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
}

.filter-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 24px));
  height: min(760px, calc(100vh - 64px));
  max-height: calc(100vh - 64px);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: #ffffff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: 0 20px 46px rgba(2, 6, 23, 0.24);
  overflow: hidden;
}

.filter-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.filter-modal__head h3 {
  margin: 0;
  font-size: 20px;
}

.filter-modal__close {
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef2ff;
  color: #1e3a8a;
  cursor: pointer;
}

.filter-modal__body {
  overflow-y: auto;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.filter-modal__body label {
  margin-top: 8px;
  color: #334155;
  font-weight: 700;
  font-size: 14px;
}

.filter-modal__body input,
.filter-modal__body select {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  padding: 10px 12px;
  font-size: 14px;
}

.filter-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.filter-note-box {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(14, 165, 233, 0.38);
  background: #f0f9ff;
  padding: 12px;
}

.filter-note-box strong {
  color: #0c4a6e;
}

.filter-note-box p {
  margin: 6px 0 0;
  color: #334155;
  line-height: 1.5;
  font-size: 14px;
}

body.modal-open {
  overflow: hidden;
}

.ai-assistant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

body.ai-assistant-page {
  background:
    radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.16), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(251, 146, 60, 0.16), transparent 24%),
    radial-gradient(circle at 50% 92%, rgba(37, 99, 235, 0.12), transparent 28%),
    linear-gradient(180deg, #07111f 0%, #0b1630 42%, #f8fafc 42.1%, #f8fafc 100%);
}

body.ai-assistant-page .header {
  background: rgba(3, 7, 18, 0.82);
}

body.ai-assistant-page .app-section-shell {
  position: relative;
  overflow: hidden;
}

body.ai-assistant-page .app-section-shell::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: 92px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.18);
  box-shadow:
    0 0 0 18px rgba(56, 189, 248, 0.04),
    0 0 0 54px rgba(251, 146, 60, 0.03),
    inset 0 0 60px rgba(255, 255, 255, 0.06);
  animation: aiOrbitPulse 8s ease-in-out infinite;
  pointer-events: none;
}

body.ai-assistant-page .app-section-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.18), transparent 25%),
    radial-gradient(circle at 82% 12%, rgba(251, 146, 60, 0.14), transparent 20%);
  pointer-events: none;
}

body.ai-assistant-page .section-title {
  position: relative;
  max-width: 860px;
  padding-top: 4px;
}

body.ai-assistant-page .section-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  margin-bottom: 14px;
  background: rgba(15, 23, 42, 0.78);
  color: #93c5fd;
  border: 1px solid rgba(125, 211, 252, 0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.ai-assistant-page .section-title h2 {
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

body.ai-assistant-page .section-title p {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.65;
  color: #cbd5e1;
}

.ai-hero-badges,
.ai-tools-grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ai-hero-badge {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.52);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
}

.ai-assistant-card {
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248, 250, 252, 0.92));
}

.ai-assistant-card h3 {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-capabilities-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #0f172a;
}

.ai-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

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

.ai-insight-card {
  position: relative;
  padding: 16px 16px 16px 56px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.92));
  color: #e2e8f0;
  overflow: hidden;
  min-height: 116px;
}

.ai-insight-card span {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0ea5e9, #fb923c);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.ai-insight-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.ai-insight-card p {
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
}

.ai-chat-board {
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248, 250, 252, 0.96));
  position: relative;
}

.ai-chat-board::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: 0 0 36px rgba(14, 165, 233, 0.14);
  animation: aiOrbitSpin 14s linear infinite;
  pointer-events: none;
}

.ai-chat-head h3 {
  margin: 0;
}

.ai-chat-head p {
  margin-top: 6px;
  color: #64748b;
}

.ai-chat-window {
  margin-top: 14px;
  min-height: 320px;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 16%, rgba(56, 189, 248, 0.06), transparent 26%),
    linear-gradient(180deg, #f8fbff, #eff6ff);
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.ai-msg {
  max-width: 88%;
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
}

.ai-msg-bot {
  background: #e2e8f0;
  color: #0f172a;
  justify-self: start;
}

.ai-msg-user {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  justify-self: end;
}

.ai-msg-typing {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(226, 232, 240, 0.75);
  color: #334155;
}

.ai-typing-label {
  font-size: 13px;
  font-weight: 700;
}

.ai-typing-dots {
  display: inline-flex;
  gap: 5px;
}

.ai-typing-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #fb923c);
  animation: aiTypingPulse 1s ease-in-out infinite;
}

.ai-typing-dots i:nth-child(2) { animation-delay: 140ms; }
.ai-typing-dots i:nth-child(3) { animation-delay: 280ms; }

.ai-msg-section {
  display: grid;
  gap: 4px;
}

.ai-msg-section + .ai-msg-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.ai-msg-section-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0369a1;
}

.ai-msg-section-body {
  font-size: 14px;
  line-height: 1.58;
  color: inherit;
}

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

.ai-shortlist-card {
  border-radius: 12px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  background: rgba(255, 255, 255, 0.88);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.ai-shortlist-card h4 {
  margin: 0;
  font-size: 13px;
  color: #0f172a;
}

.ai-shortlist-card p {
  margin: 0;
  font-size: 12px;
  color: #334155;
}

.ai-shortlist-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #0369a1;
  font-weight: 700;
}

.ai-shortlist-deadline {
  font-size: 11px;
  color: #b45309;
  font-weight: 700;
}

.ai-feedback-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #475569;
}

.ai-feedback-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ai-feedback-btn.active {
  border-color: rgba(14, 165, 233, 0.5);
  background: rgba(14, 165, 233, 0.14);
}

.ai-feedback-btn:disabled {
  cursor: default;
  opacity: 0.78;
}

.ai-chat-controls {
  margin-top: 12px;
}

.ai-chat-controls textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  padding: 14px 14px;
  font-size: 15px;
  resize: vertical;
  min-height: 108px;
  background: #ffffff;
}

.ai-chat-actions-row {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@keyframes aiOrbitSpin {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.03); }
  to { transform: rotate(360deg) scale(1); }
}

@keyframes aiOrbitPulse {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.58;
  }
  50% {
    transform: translateY(-10px);
    opacity: 0.92;
  }
}

@keyframes aiTypingPulse {
  0%, 100% { transform: translateY(0) scale(0.8); opacity: 0.45; }
  50% { transform: translateY(-3px) scale(1); opacity: 1; }
}

.ai-tools-grid .btn.secondary,
.ai-quick-actions .btn.secondary {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.ai-tools-grid .btn.secondary:hover,
.ai-quick-actions .btn.secondary:hover {
  background: rgba(14, 165, 233, 0.12);
}

.app-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about.app-section-shell {
  display: block;
}

.about.app-section-shell > .section-title {
  max-width: 820px;
  margin-bottom: 34px;
}

.about.app-section-shell .app-about-grid {
  gap: 22px;
}

.about.app-section-shell .app-about-grid .about-card {
  min-width: 0;
  min-height: 230px;
  padding: 30px;
}

.about.app-section-shell .app-about-grid .about-card h3 {
  max-width: 12ch;
  line-height: 1.12;
}

.about.app-section-shell .app-about-grid .about-card p {
  max-width: 34ch;
}

@media (max-width: 980px) {
  .ai-assistant-grid,
  .ai-insight-strip,
  .app-about-grid {
    grid-template-columns: 1fr;
  }

  .ai-shortlist-grid {
    grid-template-columns: 1fr;
  }

  .ab-offer-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip-grid,
  .testimonials-grid,
  .growth-lab-grid,
  .roadmap-steps {
    grid-template-columns: 1fr;
  }

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

  .referral-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .app-section-shell {
    margin: 16px auto;
    padding: 16px;
    border-radius: 18px;
  }

  body.ai-assistant-page {
    background:
      radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.14), transparent 24%),
      radial-gradient(circle at 92% 12%, rgba(251, 146, 60, 0.12), transparent 20%),
      linear-gradient(180deg, #07111f 0%, #0b1630 36%, #f8fafc 36.1%, #f8fafc 100%);
  }

  body.ai-assistant-page .section-title h2 {
    max-width: 100%;
  }

  body.ai-assistant-page .app-section-shell::after,
  .ai-chat-board::before {
    width: 220px;
    height: 220px;
  }

  .filter-modal__panel {
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: 12px;
    width: auto;
    height: auto;
    max-height: none;
    transform: none;
  }

  .hero-quick-search-row {
    grid-template-columns: 1fr;
  }

  .hero-quick-search input {
    font-size: 14px;
  }

  .sticky-cta {
    bottom: 10px;
    flex-direction: column;
    width: calc(100vw - 18px);
    border-radius: 14px;
  }

  .sticky-cta .btn {
    width: 100%;
  }

  .quiz-modal-panel {
    margin-top: 14vh;
    padding: 16px;
    border-radius: 16px;
  }

  .quiz-head h2 {
    font-size: 22px;
  }

  .faq-question {
    font-size: 16px;
  }

  .quiz-result-actions {
    flex-direction: column;
  }

  .roadmap-step {
    padding: 16px;
  }

  .roadmap-step h3 {
    font-size: 19px;
  }

  .roadmap-cta {
    flex-direction: column;
  }

  .roadmap-cta .btn {
    width: 100%;
  }

  .feedback-panel {
    margin-top: 10vh;
    padding: 16px;
  }

  .feedback-head h3 {
    font-size: 20px;
  }

  .feedback-fab {
    right: 12px;
    bottom: 132px;
  }

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

body.profile-pro-page .profile-section {
  max-width: 1220px;
  margin: 24px auto;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

body.profile-pro-page .dashboard-stats {
  grid-template-columns: minmax(0, 1fr);
  max-width: 220px;
}

body.profile-pro-page .dashboard-stats div {
  background: linear-gradient(145deg, #ecfeff, #fef9c3);
}

body.profile-pro-page .saved-grid {
  margin-top: 18px;
}

body.profile-pro-page .tabs {
  margin-top: 10px;
}

body.profile-pro-page .tab-btn {
  border-radius: 999px;
  border: 1px solid rgba(2, 132, 199, 0.22);
  background: #f8fafc;
}

body.profile-pro-page .tab-btn.active {
  background: linear-gradient(120deg, #0ea5e9, #0284c7);
  color: #ffffff;
}

@media (max-width: 980px) {
  .auth-panels {
    grid-template-columns: 1fr;
  }
}

.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;
}

.achievement-card {
  margin-bottom: 24px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.achievement-card.hidden {
  display: none;
}

.achievement-card.is-unlocked {
  border-color: rgba(234, 179, 8, 0.45);
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.achievement-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.achievement-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(37,99,235,0.1);
  color: #2563eb;
  font-size: 22px;
  flex-shrink: 0;
}

.achievement-card.is-unlocked .achievement-icon {
  background: rgba(234, 179, 8, 0.15);
  color: #b45309;
}

.achievement-eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.achievement-card h4 {
  margin: 0;
  font-size: 22px;
  color: #0f172a;
}

.achievement-card p {
  margin: 12px 0 0;
  color: #475569;
  line-height: 1.7;
}

.achievement-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #64748b;
  font-size: 13px;
}

.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;
}

/* ===================== BREADCRUMBS ===================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #64748b;
}

.breadcrumbs a {
  color: #2563eb;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* ===================== COOKIE BANNER ===================== */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  background: rgba(2, 6, 23, 0.95);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===================== 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; 
  cursor: pointer;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* ==========================================================================
   СОВРЕМЕННЫЙ ДИЗАЙН ПЕРЕВОДЧИКА (PREMIUM UI)
   ========================================================================== */

/* Контейнер виджета */
#google_translate_element {
  display: inline-flex;
  align-items: center;
  position: relative;
}

/* Полная маскировка и кастомизация системного селекта Google */
#google_translate_element select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 36px 10px 40px; /* Отступы под иконки слева и справа */
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Эффекты при наведении и фокусе */
#google_translate_element select:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.15); /* Нежное фиолетовое свечение */
  transform: translateY(-1px);
}

#google_translate_element select:focus {
  border-color: #7c3aed; /* Аппаратный фиолетовый акцент */
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

/* Добавление иконки Глобуса/Языка слева через псевдоэлемент */
#google_translate_element::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  background-color: currentColor;
  /* Красивая минималистичная SVG-иконка перевода/глобуса */
  clip-path: path("M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-1.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z");
  opacity: 0.85;
}

/* Добавление аккуратной стрелочки выпадающего списка справа */
#google_translate_element::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 5px;
  pointer-events: none;
  background-color: currentColor;
  clip-path: path("M0 0l4 4 4-4z");
  opacity: 0.7;
  transition: transform 0.3s ease;
}

/* Анимация стрелочки при фокусе на селекте */
#google_translate_element:focus-within::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Кастомизация всплывающих окон внутри самого селекта (для темной темы) */
#google_translate_element select option {
  background: #0f172a; /* Глубокий темный фон под темную тему вашего сайта */
  color: #cbd5e1;
  font-family: inherit;
  padding: 10px;
}

/* ПРИНУДИТЕЛЬНОЕ УДАЛЕНИЕ БРЕНДИНГА GOOGLE */
#google_translate_element img, 
.goog-logo-link, 
.goog-te-gadget img,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

.goog-te-gadget {
  color: transparent !important;
  font-size: 0 !important;
  letter-spacing: 0 !important;
}

/* Скрытие верхней панели перевода Google, если она пытается появиться */
body {
  top: 0 !important;
}

.uni-tabs{
    display:flex;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    background:#fff;
    margin-top:25px;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    scrollbar-width:thin;
    scroll-behavior:smooth;
}

.uni-tabs::-webkit-scrollbar{
    height:6px;
}

.uni-tabs::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:10px;
}

.tab-btn{
    flex:0 0 auto;
    min-width:max-content;
    padding:18px 24px;
    border:none;
    background:#fff;
    cursor:pointer;
    font-size:15px;
    transition:.3s;
    white-space:nowrap;
}

.tab-btn:hover{
    background:#f8fafc;
}

.tab-btn.active{
    border-bottom:4px solid #2563eb;
    color:#2563eb;
    font-weight:700;
}
.tabs-wrapper{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:25px;
}

.scroll-btn{
    width:40px;
    height:40px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    background:#2563eb;
    color:white;
    font-size:18px;
}
.tabs-wrapper{
    margin:30px 0;
  position: relative;
}

.tab-content{
    display:none;
}

.tab-content.active{
    display:block;
}

/* ==========================================
   CINEMATIC OPENING BOOK INTRO (UNIVERSE PRO)
============================================= */

body.loading {
    overflow: hidden;
}

body.loading header, 
body.loading main, 
body.loading footer {
    opacity: 0;
    transform: scale(0.98) translateY(15px);
}

header, main, footer {
    transition: opacity 1.6s cubic-bezier(0.215, 0.610, 0.355, 1), 
                transform 1.6s cubic-bezier(0.215, 0.610, 0.355, 1);
    will-change: opacity, transform;
}



.intro-welcome-box {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-width: 900px;
    perspective: 1000px; /* Включаем 3D пространство для книги */
}

/* --- СТИЛИ АНИМАЦИИ КНИГИ --- */




.intro-book-page {
    position: absolute;
    top: 5%;
    left: 50%;
    width: 45%;
    height: 90%;
    background: linear-gradient(90deg, #101432, #4facfe);
    border-radius: 0 2px 2px 0;
    transform-origin: left center;
    will-change: transform;
}

/* Эффект перелистывания страниц */

.page-2 {
    animation: intro-page-flip 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.9s infinite;
}
.page-3 {
    animation: intro-page-flip 2.2s cubic-bezier(0.4, 0, 0.2, 1) 1.3s infinite;
}

/* --- ТЕКСТ И ЛОАДЕР --- */
.intro-welcome-title {
    color: #ffffff;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: intro-premium-fade 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
    line-height: 1.3;
}

.intro-welcome-title span {
    display: inline-block;
    font-weight: 900;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 25px rgba(0, 242, 254, 0.5));
}

.intro-loader-bar {
    width: 180px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: 35px auto 0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: intro-fade-in 1s ease 1.2s forwards;
}

.intro-loader-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    box-shadow: 0 0 10px #00f2fe;
    animation: intro-progress 3.5s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

/* --- КЛЮЧЕВЫЕ КАДРЫ ТРАНСФОРМАЦИЙ --- */
@keyframes intro-book-float {
    0%, 100% { transform: translateY(0) rotateX(15deg); }
    50% { transform: translateY(-8px) rotateX(20deg); }
}

@keyframes intro-page-flip {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: rotateY(-180deg);
        opacity: 0;
    }
}

@keyframes intro-premium-fade {
    0% { opacity: 0; transform: translateY(25px); filter: blur(5px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes intro-fade-in {
    100% { opacity: 1; }
}

@keyframes intro-progress {
    0% { width: 0%; }
    100% { width: 100%; }
}
/* Делаем шапку во весь экран */
.header {
  width: 100% !important;
  max-width: none !important;
  left: 0 !important;
  right: 0 !important;
  box-sizing: border-box;
}

/* Ограничиваем ширину только у внутренней панели навигации */
.navbar {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}
/* --- СТИЛИ ДЛЯ РОСКОШНОГО РАЗДЕЛА ОБРАЗОВАНИЯ --- */
.education-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

/* Карточки уровней обучения на всю ширину с картинками */
.edu-level-card {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}

.edu-level-card:hover {
  transform: scale(1.005);
}

.edu-card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.edu-level-card:hover .edu-card-bg {
  transform: scale(1.05);
}

.edu-card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 30%, rgba(15, 23, 42, 0.5) 70%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 10%;
  color: white;
}

.edu-card-overlay h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.edu-card-overlay p {
  max-width: 500px;
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.btn-edu-more {
  background: #ffffff;
  color: #0f172a;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-edu-more:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(163, 29, 29, 0.4);
}

/* Стилизация внутренних роскошных страниц деталей */
.edu-detail-page {
  background: #ffffff;
  width: 100%;
  min-height: 400px;
  padding: 40px 10%;
  box-sizing: border-box;
  animation: fadeIn 0.4s ease-out;
}

.btn-edu-back {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s;
  margin-bottom: 30px;
}

.btn-edu-back:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.edu-detail-content h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: #0f172a;
}

.edu-intro-text {
  font-size: 16px;
  color: #475569;
  margin-bottom: 40px;
  max-width: 800px;
}

.faculties-title {
  font-size: 24px;
  font-weight: 700;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Сетка для отображения Факультетов Бакалавриата */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.school-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 24px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.school-item:hover {
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.school-item h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.school-item p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* --- СТИЛИ ДЛЯ НОВОГО ОБЗОРА MIT --- */
.overview-lead {
  font-size: 17px !important;
  line-height: 1.6 !important;
  color: #0f172a !important;
  font-weight: 500;
  margin-bottom: 20px;
}

.laureates-box {
  background: #f8fafc;
  border-left: 4px solid #a31d1d;
  padding: 20px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
}

.laureates-box h4 {
  margin: 0 0 10px 0;
  color: #a31d1d;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.why-mit-box {
  margin-top: 32px;
}

.why-mit-box h4 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 18px 0;
}

.why-mit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-mit-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

.why-mit-list li i {
  font-size: 18px;
  color: #a31d1d;
  background: rgba(163, 29, 29, 0.08);
  padding: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Стилизация правой карточки с рейтингом */
.overview-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #a31d1d 0%, #5c1010 100%) !important;
  color: white !important;
  text-align: center;
  padding: 40px 24px !important;
}

.stat-badge {
  font-size: 54px;
  font-weight: 800;
  margin: 0;
  line-height: 1;
}

.stat-desc {
  color: #f1f5f9;
  font-size: 14px;
  margin: 10px 0 30px 0;
}

.mini-stats {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.m-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.m-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.m-stat-lbl {
  font-size: 12px;
  color: #f8fafc;
  opacity: 0.8;
  margin-top: 2px;
}
/* --- СТИЛИ ДЛЯ ИНТЕРАКТИВНОГО ОБЗОРНОГО МЕНЮ --- */
.overview-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Контейнер для новых кнопок */
.overview-nav-box {
  display: flex;
  gap: 12px;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  overflow-x: auto;
}
.overview-nav-box::-webkit-scrollbar { display: none; }

/* Дизайн внутренних кнопок */
.btn-sub-tab {
  background: transparent;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sub-tab:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Активное состояние кнопки */
.btn-sub-tab.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

/* Контейнеры контента */
.info-grid-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
@media(max-width: 900px) { .info-grid-inner { grid-template-columns: 1fr; } }

.info-card-clean {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.info-card-clean h3 { margin: 0 0 16px 0; font-size: 22px; font-weight: 700; color: #0f172a; }
.info-card-clean p { color: #475569; line-height: 1.6; font-size: 15px; margin: 0 0 14px 0; }

/* Анимация переключения под-вкладок */
.sub-overview-section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s ease;
}

.sub-overview-section.active-sub {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.hidden-sub {
  display: none !important;
}
/* --- ГЛОБАЛЬНЫЕ НАСТРОЙКИ СТРАНИЦЫ --- */
:root {
  --primary-color: #a31d1d; /* Фирменный бордовый цвет MIT/Университетов */
  --primary-hover: #7a1515;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --radius-lg: 16px;
  --radius-md: 10px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -6px rgba(0,0,0,0.03);
}

body {
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* --- ШАПКА САЙТА (HEADER) ИЗ UNI-2 НА ВЕСЬ ЭКРАН --- */
header.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.navbar {
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
  padding: 14px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

.navbar .nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.navbar .nav-links a {
  color: #333333 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
}

.navbar .nav-links a:hover, 
.navbar .nav-links a.active {
  color: #667eea !important; 
}

.navbar .logo {
  color: #333333 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 22px !important;
  font-weight: 800 !important;
}

/* --- ГЛАВНЫЙ КОНТЕЙНЕР --- */
.main-container {
  max-width: 1200px;
  margin: 100px auto 80px auto !important;
  padding: 0 24px;
  box-sizing: border-box;
}

/* --- КАРТОЧКА УНИВЕРСИТЕТА НА ВЕСЬ ЭКРАН --- */
.hero-card {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  grid-column: 1 / -1 !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  margin-top: 0 !important;
  box-sizing: border-box !important;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.hero-image-wrapper {
  position: relative;
  height: 380px;
  background: #1e293b;
  width: 100% !important;
  border-radius: 0 !important;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.4), transparent);
  padding: 40px;
}

.hero-title {
  color: #ffffff;
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -1px;
}

.hero-location {
  color: #cbd5e1;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- СТРОКА ГЛАВНЫХ ТАБОВ --- */
.action-row {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 20px 24px !important;
  display: flex !important;
  justify-content: flex-start !important;
  gap: 12px;
  overflow-x: auto;
}
.action-row::-webkit-scrollbar { display: none; }

.btn-tab {
  white-space: nowrap;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.btn-tab:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(163, 29, 29, 0.02);
  transform: translateY(-1px);
}

.btn-tab.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(163, 29, 29, 0.2);
}

/* --- ВНУТРЕННЕЕ МЕНЮ ОБЗОРА (Главная, История, Плюсы, Минусы) --- */
.overview-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.overview-nav-box {
  display: flex;
  gap: 12px;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  overflow-x: auto;
  position: relative;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.btn-sub-tab {
  background: transparent;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.btn-sub-tab:hover { background: #f1f5f9; color: #0f172a; }
.btn-sub-tab.active { background: #0f172a; color: #ffffff; box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15); }

.info-grid, .info-grid-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .info-grid, .info-grid-inner { grid-template-columns: 1fr; }
}

.info-card, .info-card-clean {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.sub-overview-section { display: none; opacity: 0; transform: translateY(10px); transition: all 0.35s ease; }
.sub-overview-section.active-sub { display: block; opacity: 1; transform: translateY(0); }
.hidden-sub { display: none !important; pointer-events: none !important; }
.hidden { display: none !important; }

/* --- РОСКОШНЫЕ СТИЛИ ОБРАЗОВАНИЯ --- */
.education-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.edu-level-card { position: relative; width: 100%; height: 280px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: all 0.4s ease; }
.edu-level-card:hover { transform: scale(1.005); }
.edu-card-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.edu-level-card:hover .edu-card-bg { transform: scale(1.05); }
.edu-card-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 30%, rgba(15, 23, 42, 0.5) 70%, transparent); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 10%; color: white; }
.edu-card-overlay h2 { font-size: 32px; font-weight: 800; margin: 0 0 12px 0; text-transform: uppercase; letter-spacing: 1px; }
.edu-card-overlay p { max-width: 500px; font-size: 15px; color: #cbd5e1; line-height: 1.5; margin: 0 0 20px 0; }
.btn-edu-more { background: #ffffff; color: #0f172a; border: none; padding: 12px 28px; border-radius: 30px; font-weight: 700; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.25s ease; }
.btn-edu-more:hover { background: var(--primary-color); color: white; box-shadow: 0 4px 15px rgba(163, 29, 29, 0.4); }

.edu-detail-page { background: #ffffff; width: 100%; min-height: 400px; padding: 40px 10%; box-sizing: border-box; animation: fadeIn 0.4s ease-out; }
.btn-edu-back { background: #f1f5f9; border: 1px solid #e2e8f0; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; color: #475569; transition: all 0.2s; margin-bottom: 30px; }
.btn-edu-back:hover { background: #e2e8f0; color: #0f172a; }
.schools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.school-item { background: #f8fafc; border: 1px solid #e2e8f0; padding: 24px; border-radius: 12px; transition: all 0.25s ease; }
.school-item:hover { border-color: var(--primary-color); background: #ffffff; box-shadow: 0 10px 25px rgba(0,0,0,0.05); transform: translateY(-2px); }
.school-item h3 { margin: 0 0 12px 0; font-size: 18px; font-weight: 700; color: #0f172a; }
.school-item p { font-size: 14px; color: #475569; line-height: 1.6; margin: 0; }


/* ===================== BIG BANG INTRO (UNIVERSE PRO) ===================== */

body.loading {
  overflow: hidden !important;
}

.bigbang-intro {
  --bigbang-fade-duration: 900ms;
  --bigbang-zoom-duration: 4000ms;
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background:
    radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.16), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(99, 102, 241, 0.16), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(168, 85, 247, 0.12), transparent 36%),
    linear-gradient(130deg, #09050f 8%, #120920 52%, #09070f 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity var(--bigbang-fade-duration) cubic-bezier(0.22, 1, 0.36, 1), visibility var(--bigbang-fade-duration);
}

.bigbang-intro.bigbang-fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bigbang-noise {
  position: absolute;
  inset: -40%;
  background-image:
    radial-gradient(rgba(203, 213, 225, 0.1) 0.5px, transparent 0.8px),
    radial-gradient(rgba(148, 163, 184, 0.06) 0.5px, transparent 0.9px);
  background-size: 3px 3px, 4px 4px;
  background-position: 0 0, 1px 2px;
  opacity: 0.22;
  filter: blur(0.4px);
  transform: translate3d(var(--noise-parallax-x, 0), var(--noise-parallax-y, 0), 0);
  transition: transform 220ms ease-out;
  animation: bigbangNoiseDrift 14s linear infinite;
}

.bigbang-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  border-radius: 0;
  border: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(6px);
  box-shadow:
    0 30px 100px rgba(8, 8, 18, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: bigbangFinalZoom var(--bigbang-zoom-duration) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bigbang-core-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
}

.bigbang-singularity {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow:
    0 0 22px rgba(103, 232, 249, 0.95),
    0 0 68px rgba(56, 189, 248, 0.75),
    0 0 115px rgba(14, 165, 233, 0.44);
  animation: bigbangPulse 1.65s ease-in-out 2;
}

.bigbang-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  transform-style: preserve-3d;
  opacity: 0;
}

.bigbang-ring.ring-a {
  width: 150px;
  height: 56px;
  transform: translate(-50%, -50%) rotateX(70deg) rotateZ(12deg);
  animation: bigbangOrbitA 1.4s ease-out forwards;
}

.bigbang-ring.ring-b {
  width: 186px;
  height: 70px;
  transform: translate(-50%, -50%) rotateX(72deg) rotateZ(-18deg);
  animation: bigbangOrbitB 1.4s ease-out 120ms forwards;
}

.bigbang-ring.ring-c {
  width: 206px;
  height: 78px;
  transform: translate(-50%, -50%) rotateX(68deg) rotateZ(36deg);
  animation: bigbangOrbitC 1.4s ease-out 210ms forwards;
}

.bigbang-nebula {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.95), rgba(99, 102, 241, 0.25));
  opacity: 0;
  filter: blur(0.2px);
  animation: bigbangNebula 860ms cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}

.bigbang-brand {
  position: absolute;
  left: 50%;
  top: 53%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(90%, 680px);
}

.bigbang-title {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(38px, 8vw, 84px);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: none;
  margin: 0;
}

.bigbang-title .letter {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  color: rgba(224, 231, 255, 0.98);
  text-shadow: 0 0 24px rgba(148, 163, 184, 0.25);
  animation: bigbangLetterIn 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bigbang-title .letter.u,
.bigbang-title .letter.v {
  color: #7dd3fc;
  text-shadow:
    0 0 22px rgba(56, 189, 248, 0.75),
    0 0 48px rgba(14, 165, 233, 0.35);
}

.bigbang-title .letter:nth-child(1) { animation-delay: 1700ms; }
.bigbang-title .letter:nth-child(2) { animation-delay: 1770ms; }
.bigbang-title .letter:nth-child(3) { animation-delay: 1840ms; }
.bigbang-title .letter:nth-child(4) { animation-delay: 1910ms; }
.bigbang-title .letter:nth-child(5) { animation-delay: 1980ms; }
.bigbang-title .letter:nth-child(6) { animation-delay: 2050ms; }
.bigbang-title .letter:nth-child(7) { animation-delay: 2120ms; }
.bigbang-title .letter:nth-child(8) { animation-delay: 2190ms; }

.bigbang-title::after {
  content: "";
  position: absolute;
  left: 8%;
  top: 24%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.95), transparent);
  filter: blur(0.2px);
  animation: bigbangShimmer 650ms ease-out 2450ms forwards;
}

.bigbang-pro-wrap {
  margin-top: 12px;
  position: relative;
  display: inline-block;
  min-width: 146px;
}

.bigbang-pro {
  display: inline-block;
  font-size: clamp(12px, 2vw, 18px);
  letter-spacing: 0.38em;
  font-weight: 800;
  color: #e2e8f0;
  opacity: 0;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(125, 211, 252, 0.28);
  animation: bigbangProFlicker 620ms steps(2, end) 2550ms forwards;
}

.bigbang-pro-ring {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 150px;
  height: 22px;
  border: 1px solid rgba(125, 211, 252, 0.45);
  border-radius: 50%;
  transform: translateX(-50%) rotateX(66deg);
  opacity: 0;
  animation: bigbangProRing 440ms ease-out 2680ms forwards;
}

@keyframes bigbangNoiseDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-3%, -2%, 0); }
}

@keyframes bigbangPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.7); }
}

@keyframes bigbangOrbitA {
  0% { opacity: 0; transform: translate(-50%, -50%) rotateX(70deg) rotateZ(12deg) scale(0.65); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotateX(70deg) rotateZ(162deg) scale(1); }
}

@keyframes bigbangOrbitB {
  0% { opacity: 0; transform: translate(-50%, -50%) rotateX(72deg) rotateZ(-18deg) scale(0.64); }
  100% { opacity: 0.86; transform: translate(-50%, -50%) rotateX(72deg) rotateZ(136deg) scale(1); }
}

@keyframes bigbangOrbitC {
  0% { opacity: 0; transform: translate(-50%, -50%) rotateX(68deg) rotateZ(36deg) scale(0.62); }
  100% { opacity: 0.7; transform: translate(-50%, -50%) rotateX(68deg) rotateZ(210deg) scale(1); }
}

@keyframes bigbangNebula {
  0% {
    opacity: 0.95;
    transform: scale(1);
    filter: blur(0.4px);
  }
  100% {
    opacity: 0.05;
    transform: scale(22);
    filter: blur(1.2px);
  }
}

@keyframes bigbangLetterIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes bigbangShimmer {
  0% { width: 0; opacity: 0; }
  45% { width: 82%; opacity: 1; }
  100% { width: 82%; opacity: 0.08; }
}

@keyframes bigbangProFlicker {
  0% { opacity: 0; }
  18% { opacity: 0.25; }
  34% { opacity: 0.05; }
  54% { opacity: 0.58; }
  70% { opacity: 0.25; }
  100% { opacity: 1; }
}

@keyframes bigbangProRing {
  from {
    opacity: 0;
    transform: translateX(-50%) rotateX(66deg) scale(0.7);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) rotateX(66deg) scale(1);
  }
}

@keyframes bigbangFinalZoom {
  0%, 80% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.045);
  }
}

@media (max-width: 700px) {
  .bigbang-stage {
    height: 100vh;
    border-radius: 0;
  }

  .bigbang-core-wrap {
    width: 170px;
    height: 170px;
  }

  .bigbang-ring.ring-a { width: 118px; height: 46px; }
  .bigbang-ring.ring-b { width: 144px; height: 54px; }
  .bigbang-ring.ring-c { width: 162px; height: 60px; }
}

/* ===================== GLOBAL FORCE DARK ===================== */

html,
body {
  background:
    radial-gradient(circle at 8% 10%, rgba(37, 99, 235, 0.16), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(79, 70, 229, 0.18), transparent 32%),
    #020617 !important;
  color: #e5e7eb;
}

main,
section,
article,
.section,
.dorms-section,
.growth-section,
.roadmap-section,
.profile-section,
.compare-section {
  background: transparent !important;
}

.university-card,
.full-dorm-card,
.dorm-card,
.growth-card,
.filters,
.dorm-filters,
.auth-box,
.dashboard-box,
.roadmap-form,
.roadmap-result,
.compare-box,
.modal-content,
.info-card,
.content-card,
.saved-card,
.planner-card,
.planner-overview-card,
.mini-card,
.similar-card,
.uni-enhancement-card,
.timeline-item {
  background: rgba(15, 23, 42, 0.92) !important;
  color: #e5e7eb !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

.university-content,
.dorm-content,
.info-box,
.modal-info,
.dorm-main-info div,
.planner-form,
.planner-check-item,
.planner-notes,
.review-card,
.no-results,
.no-dorms,
.empty-saved {
  background: rgba(15, 23, 42, 0.86) !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

p,
span,
label,
li,
.section-title p,
.about-text p,
.university-location,
.dorm-location,
.auth-note,
.dashboard-header p,
.saved-card p,
.timeline-item p,
.planner-meta,
.planner-notes,
.overview-card-head p,
.mini-card p,
.similar-card p,
.result-top p {
  color: #cbd5e1;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
.info-box strong,
.modal-info strong,
.university-header h3,
.saved-card h4 {
  color: #f8fafc !important;
}

input,
select,
textarea {
  background: #020617 !important;
  color: #e5e7eb !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

.uni-tabs,
.tab-btn,
.tab-btn:hover,
.scroll-btn {
  background: #0f172a !important;
  color: #e2e8f0 !important;
}

.tab-btn.active {
  border-bottom-color: #3b82f6 !important;
  color: #93c5fd !important;
}

.back-btn,
a {
  color: inherit;
}

/* ===================== FINAL DARK ENFORCEMENT ===================== */

header.header,
.header {
  background: rgba(2, 6, 23, 0.94) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32) !important;
}

.navbar .logo,
.navbar .nav-links a,
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: #e5e7eb !important;
}

.navbar .nav-links a.active,
.navbar .nav-links a:hover {
  text-shadow: 0 0 10px rgba(147, 197, 253, 0.3);
}

.survey-widget,
#widgetSuccess,
.survey-modal,
.survey-step,
.survey-summary,
.survey-result,
.survey-navigation,
.intro-welcome-box,
.overview-nav-box,
.info-card-clean,
.edu-detail-page,
.school-item,
.laureates-box,
.uni-tabs,
.tab-btn,
.university-image,
.university-content,
.planner-card,
.planner-overview-card,
.mini-card,
.review-card,
.saved-card,
.subscription-card {
  background: rgba(15, 23, 42, 0.92) !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}

.school-item p,
.info-card-clean p,
.overview-lead,
.why-mit-list li,
.edu-intro-text,
.stat-desc,
.m-stat-lbl {
  color: #cbd5e1 !important;
}

.result-top p,
.search-hit-line,
.nearby-links,
.nearby-links p,
.nearby-links strong,
.subscription-note,
.auth-note,
.dashboard-header p,
.saved-card p,
.planner-empty,
.ai-warning,
.reminder-toast-item,
.calendar-event,
.deadline-urgency,
.result-top,
.section-title p {
  background: rgba(15, 23, 42, 0.86) !important;
  color: #cbd5e1 !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

.result-top p,
.search-hit-line,
.nearby-links,
.planner-empty,
.ai-warning,
.deadline-urgency,
.calendar-event {
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.match-progress,
.progress {
  background: rgba(148, 163, 184, 0.24) !important;
}

.payment-method-option {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.28);
}

.payment-method-option span {
  color: #e2e8f0;
}

/* ==========================================================================
   СТИЛИ ДЛЯ КАСТОМНОГО ПЕРЕВОДЧИКА C ПОИСКОМ И ФЛАГАМИ
   ========================================================================== */
#google_translate_element {
  position: relative;
  display: inline-block;
  z-index: 99999;
}

/* Скрываем уродливый стандартный селект Google */
#google_translate_element .goog-te-combo {
  display: none !important;
}

/* Увеличенный кликабельный логотип перевода */
.custom-translate-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  padding: 14px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.custom-translate-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.06) translateY(-1px);
}

.custom-translate-btn.active {
  background: rgba(14, 165, 233, 0.26);
  border-color: #7dd3fc;
}

.translate-big-icon {
  width: 26px;
  height: 26px;
}

/* Выпадающее современное меню (Стекломорфизм) */
.custom-translate-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-translate-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Поле поиска */
.translate-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  margin-bottom: 10px;
}

.translate-languages-list {
  max-height: 220px;
  overflow-y: auto;
}

/* Элемент языка: Флаг слева, Код страны справа */
.translate-lang-item {
  width: 100%;
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 10px 14px;
  margin-bottom: 4px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center; /* Флаг и текст на одной линии по центру */
  font-size: 16px;
  font-weight: 700;
}

.translate-lang-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.translate-lang-item.active {
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
}

/* Флаг слева */
.lang-flag {
  font-size: 20px;
  margin-right: 16px; 
}

/* Текст названия (KZ, RU...) справа */
.lang-name {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Полное удаление брендинга Google */
#google_translate_element img, .goog-logo-link, .goog-te-gadget img, .goog-te-banner-frame, #goog-gt-tt {
  display: none !important;
}
.goog-te-gadget { color: transparent !important; font-size: 0 !important; }

/* ===================== NEW PREMIUM AUTH & PROFILE STYLES ===================== */

/* Auth Modal - Full Page Overlay */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

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

.auth-modal-overlay.hidden {
  display: none;
}

.auth-modal-container {
  width: 100%;
  max-width: 1100px;
  height: auto;
  max-height: calc(100dvh - 40px);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(15, 23, 42, 0.3);
  animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  background: white;
}

/* Left Side - Branding */
.auth-modal-left {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0ea5e9 100%);
  color: white;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-modal-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.2), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(251, 146, 60, 0.15), transparent 50%);
  pointer-events: none;
}

.auth-modal-branding {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 40px;
}

.auth-modal-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.35);
}

.auth-modal-branding h2 {
  font-size: 32px;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-modal-branding p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.auth-modal-features {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
}

.auth-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.auth-feature i {
  font-size: 20px;
  color: #38bdf8;
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-feature span {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

/* Right Side - Forms */
.auth-modal-right {
  padding: 50px 45px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  min-height: 0;
  background: #fafbfc;
}

.auth-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.auth-modal-close:hover {
  background: rgba(15, 23, 42, 0.15);
  transform: scale(1.1);
}

.auth-forms-wrapper {
  min-height: 100%;
}

/* Form Box */
.auth-form-box {
  animation: formIn 0.4s ease;
}

@keyframes formIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.auth-form-header {
  margin-bottom: 30px;
}

.auth-form-header h3 {
  font-size: 28px;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.auth-form-header p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

.auth-header-switch {
  display: inline-flex;
  margin-top: 12px;
  margin-left: 0;
  font-size: 14px;
}

/* Input Groups */
.auth-input-group {
  margin-bottom: 18px;
  display: grid;
  gap: 8px;
}

.auth-input-group label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.auth-input-group input {
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: white;
}

.auth-input-group input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.auth-input-group input::placeholder {
  color: #cbd5e1;
}

/* Buttons */
.btn-full {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
}

.btn-full:active {
  transform: scale(0.98);
}

.btn-social {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-social:hover {
  border-color: #0ea5e9;
  background: #f0f9ff;
  transform: translateY(-2px);
}

.btn-google i {
  font-size: 18px;
}

/* Divider */
.auth-divider {
  margin: 24px 0;
  position: relative;
  text-align: center;
}

.auth-divider span {
  display: inline-block;
  padding: 0 12px;
  background: #fafbfc;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: #e2e8f0;
}

/* Form Footer */
.auth-form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #64748b;
}

.auth-link-btn {
  border: none;
  background: transparent;
  color: #0ea5e9;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.auth-link-btn:hover {
  color: #0284c7;
  text-decoration: underline;
}

.auth-status {
  min-height: 20px;
  font-size: 13px;
  margin-top: 10px;
  color: #0f766e;
  font-weight: 600;
}

.auth-status.error {
  color: #dc2626;
}

.auth-status.success {
  color: #059669;
}

/* ===================== DASHBOARD STYLES ===================== */

.profile-section {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0fdf4 100%);
  min-height: 100vh;
  padding: 120px 20px 60px;
}

.profile-dashboard {
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-header-section {
  margin-bottom: 40px;
}

.dashboard-hero {
  background: white;
  border-radius: 24px;
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  margin-bottom: 24px;
}

.dashboard-avatar {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.dashboard-intro {
  display: grid;
  gap: 6px;
}

.dashboard-greeting {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0ea5e9;
}

.dashboard-intro h1 {
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.dashboard-intro p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-actions .btn {
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 12px;
}

/* Quick Stats */
.dashboard-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.stat-box {
  background: white;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.stat-box:hover {
  border-color: #0ea5e9;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);
  transform: translateY(-4px);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-content {
  display: grid;
  gap: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}

.stat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.dashboard-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  border-color: #0ea5e9;
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.12);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

.card-header h2 {
  font-size: 22px;
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.card-icon {
  width: 40px;
  height: 40px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0ea5e9;
  font-size: 18px;
}

.profile-count-badge {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 800;
}

/* Bio Card */
.bio-card textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.bio-card textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.bio-card .btn-small {
  padding: 10px 16px;
  font-size: 13px;
  margin-top: 12px;
}

.card-hint {
  font-size: 13px;
  color: #64748b;
  margin-top: 12px;
  margin-bottom: 0;
}

/* Favorites Card */
.favorites-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.fav-tab {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: white;
  color: #64748b;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fav-tab.active {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  border-color: transparent;
  color: white;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

.fav-tab:hover:not(.active) {
  border-color: #0ea5e9;
}

.saved-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.card-empty-state {
  padding: 40px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.card-empty-state i {
  font-size: 40px;
  margin-bottom: 10px;
  opacity: 0.6;
}

/* Settings Modal */
.settings-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 20px;
}

.settings-modal-overlay.is-open {
  display: grid;
}

.settings-modal {
  background: white;
  border-radius: 24px;
  padding: 32px;
  width: min(460px, 100%);
  box-shadow: 0 40px 120px rgba(15, 23, 42, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.settings-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
}

.settings-modal-header h2 {
  font-size: 24px;
  margin: 0;
  color: #0f172a;
}

.settings-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.settings-modal-close:hover {
  background: #e2e8f0;
  transform: scale(1.1);
}

.settings-section {
  margin-bottom: 24px;
}

.settings-section h3 {
  font-size: 14px;
  font-weight: 800;
  color: #0ea5e9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.settings-group {
  margin-bottom: 16px;
  display: grid;
  gap: 8px;
}

.settings-group label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.settings-group select,
.settings-group input[type="range"] {
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.settings-group select:focus,
.settings-group input[type="range"]:focus {
  outline: none;
  border-color: #0ea5e9;
}

.settings-toggle {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

.settings-toggle label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 !important;
}

.toggle-switch {
  width: 50px;
  height: 28px;
  border: none;
  border-radius: 14px;
  background: #cbd5e1;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 12px;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}

.toggle-switch.is-on {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.toggle-switch.is-on::after {
  transform: translateX(22px);
}

.brightness-value {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  margin-top: -4px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .auth-modal-content {
    grid-template-columns: 1fr;
  }

  .auth-modal-left {
    display: none;
  }

  .auth-modal-right {
    padding: 40px 30px;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-intro h1 {
    font-size: 24px;
  }

  .dashboard-actions {
    justify-content: center;
  }

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

  .dashboard-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .saved-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  body.profile-pro-page {
    overflow-x: hidden;
  }

  .auth-modal-overlay {
    place-items: start center;
    padding: 12px;
  }

  .profile-section {
    padding: 100px 16px 40px;
  }

  .profile-dashboard {
    padding: 20px 0 40px;
  }

  .auth-modal-container {
    max-height: none;
    border-radius: 20px;
  }

  .auth-modal-content {
    height: auto;
  }

  .auth-modal-right {
    padding: 30px 20px;
    justify-content: flex-start;
    overflow-y: visible;
  }

  .auth-form-header h3 {
    font-size: 22px;
  }

  .dashboard-hero {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dashboard-avatar {
    width: 70px;
    height: 70px;
    font-size: 24px;
  }

  .dashboard-intro h1 {
    font-size: 20px;
  }

  .dashboard-actions {
    flex-direction: column;
    justify-content: stretch;
  }

  .dashboard-actions .btn {
    width: 100%;
  }

  .dashboard-stats-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-box {
    padding: 16px;
  }

  .dashboard-grid {
    gap: 16px;
  }

  .dashboard-card {
    padding: 20px;
  }

  .saved-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .settings-modal {
    width: calc(100vw - 32px);
    padding: 24px;
  }

  .card-header h2 {
    font-size: 18px;
  }
}

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

  .navbar .menu-btn {
    display: block !important;
    flex: 0 0 auto;
  }
}
body { top: 0 !important; }

/* ==========================================================================
   UNIVERSE PRO — SETTINGS & HEADER ICON STYLES (2026 Engine)
   ========================================================================== */

/* Header Settings Icon Button */
.nav-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

header.header .nav-settings-btn,
.navbar .nav-settings-btn {
  background: rgba(15, 23, 42, 0.08);
  color: #1e293b;
  border-color: rgba(15, 23, 42, 0.16);
}

body.dark-mode header.header .nav-settings-btn,
body.dark-mode .navbar .nav-settings-btn,
body.app-page header.header .nav-settings-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
}

.nav-settings-btn .settings-icon-svg,
.nav-settings-btn i {
  width: 20px;
  height: 20px;
  font-size: 19px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.25s ease;
  stroke: currentColor;
}

.nav-settings-btn:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(249, 115, 22, 0.25)) !important;
  border-color: #38bdf8 !important;
  color: #0ea5e9 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
}

body.dark-mode .nav-settings-btn:hover,
body.app-page .nav-settings-btn:hover {
  color: #38bdf8 !important;
}

.nav-settings-btn:hover .settings-icon-svg,
.nav-settings-btn:hover i {
  transform: rotate(55deg) scale(1.1);
}

.nav-settings-btn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.4), rgba(249, 115, 22, 0.35)) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.45);
}

.mobile-menu a.mobile-settings-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  color: #e2e8f0;
  font-weight: 500;
  transition: 0.25s ease;
  text-decoration: none;
}

.mobile-menu a.mobile-settings-link:hover,
.mobile-menu a.mobile-settings-link.active {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  padding-left: 22px;
}

/* ==========================================================================
   SETTINGS PAGE CONTAINER & LAYOUT
   ========================================================================== */
.settings-main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 20px 60px 20px;
  box-sizing: border-box;
}

.settings-breadcrumbs-bar {
  margin-bottom: 16px;
}

/* Settings Hero Banner */
.settings-hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 36px 36px 30px 36px;
  margin-bottom: 28px;
  color: #ffffff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.settings-hero-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, rgba(249, 115, 22, 0.2) 60%, transparent 80%);
  pointer-events: none;
  filter: blur(40px);
}

.settings-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.settings-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.22);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.settings-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.settings-hero-banner h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.settings-hero-banner p {
  font-size: 15px;
  color: #cbd5e1;
  margin: 0 0 24px 0;
  max-width: 740px;
  line-height: 1.55;
}

/* Settings Quick Toolbar */
.settings-quick-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-search-box {
  flex: 1;
  min-width: 280px;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

.settings-search-box i.fa-magnifying-glass {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
}

.settings-search-box input {
  width: 100%;
  padding: 11px 38px 11px 40px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: 0.25s ease;
}

.settings-search-box input:focus {
  border-color: #38bdf8;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.settings-search-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.settings-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-settings-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #0284c7, #0ea5e9, #f97316);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-settings-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.45);
}

.btn-settings-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-settings-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-settings-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-settings-danger:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

/* Settings Layout: Sidebar + Panels */
.settings-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  align-items: flex-start;
}

/* Sidebar */
.settings-sidebar {
  position: sticky;
  top: 96px;
}

.settings-sidebar-inner {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

body.dark-mode .settings-sidebar-inner {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

.settings-nav-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #64748b);
  padding: 6px 14px 10px 14px;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main, #1e293b);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

body.dark-mode .settings-tab-btn {
  color: #e2e8f0;
}

.settings-tab-btn:hover {
  background: rgba(14, 165, 233, 0.08);
  color: #0ea5e9;
}

body.dark-mode .settings-tab-btn:hover {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
}

.settings-tab-btn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(249, 115, 22, 0.12));
  border-color: rgba(14, 165, 233, 0.4);
  color: #0284c7;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.1);
}

body.dark-mode .settings-tab-btn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(249, 115, 22, 0.2));
  border-color: rgba(14, 165, 233, 0.5);
  color: #38bdf8;
}

.tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  font-size: 16px;
  color: #0ea5e9;
}

.tab-label {
  flex: 1;
}

.tab-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.tab-badge-pro {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #ffffff;
}

.tab-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 6px #0ea5e9;
}

.settings-sidebar-card {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-color, #e2e8f0);
}

body.dark-mode .settings-sidebar-card {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0ea5e9;
  margin-bottom: 8px;
}

.sidebar-stat-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted, #64748b);
  margin-bottom: 4px;
}

/* Settings Panels */
.settings-content-area {
  min-width: 0;
}

.settings-panel {
  display: none;
}

.settings-panel.active {
  display: block;
}

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

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

.panel-header-info h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text-main, #0f172a);
  display: flex;
  align-items: center;
  gap: 10px;
}

body.dark-mode .panel-header-info h2 {
  color: #ffffff;
}

.panel-header-info p {
  font-size: 14px;
  color: var(--text-muted, #64748b);
  margin: 0;
}

.btn-save-section {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-save-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

/* Settings Cards */
.settings-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  transition: 0.2s ease;
}

body.dark-mode .settings-card {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

.card-subtitle {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-main, #0f172a);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.dark-mode .card-subtitle {
  color: #ffffff;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

/* Grids & Forms */
.settings-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.settings-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main, #334155);
}

body.dark-mode .form-group label {
  color: #cbd5e1;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-main, #f8fafc);
  border: 1px solid var(--border-color, #cbd5e1);
  color: var(--text-main, #0f172a);
  font-size: 14px;
  outline: none;
  transition: 0.2s ease;
  box-sizing: border-box;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.input-hint {
  font-size: 11px;
  color: var(--text-muted, #64748b);
}

/* Avatar Section */
.avatar-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.avatar-current-preview {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #0ea5e9;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.35);
  flex-shrink: 0;
}

.avatar-current-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-options-col {
  flex: 1;
  min-width: 260px;
}

.avatar-preset-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.avatar-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color, #cbd5e1);
  background: var(--bg-main, #f8fafc);
  color: var(--text-main, #334155);
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
}

body.dark-mode .avatar-chip {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.avatar-chip.active,
.avatar-chip:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: #0ea5e9;
  color: #0ea5e9;
}

.avatar-custom-input-row {
  display: flex;
  gap: 10px;
}

.avatar-custom-input-row input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #cbd5e1);
  background: var(--bg-main, #f8fafc);
  color: var(--text-main, #0f172a);
  font-size: 13px;
}

body.dark-mode .avatar-custom-input-row input {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

/* Theme Mode Cards */
.theme-mode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.theme-mode-card {
  padding: 14px;
  border-radius: 16px;
  border: 2px solid var(--border-color, #e2e8f0);
  background: var(--bg-main, #f8fafc);
  cursor: pointer;
  transition: all 0.25s ease;
}

body.dark-mode .theme-mode-card {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.theme-mode-card:hover {
  border-color: #0ea5e9;
  transform: translateY(-2px);
}

.theme-mode-card.active {
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.08);
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.2);
}

.theme-mode-preview {
  height: 64px;
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-dark {
  background: #0f172a;
  border: 1px solid #334155;
}

.preview-light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.preview-system {
  background: linear-gradient(135deg, #0f172a 50%, #ffffff 50%);
  border: 1px solid #64748b;
}

.preview-bar {
  height: 8px;
  width: 40%;
  border-radius: 4px;
  background: #0ea5e9;
}

.preview-box {
  height: 24px;
  width: 100%;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.3);
}

.theme-mode-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-main, #0f172a);
}

body.dark-mode .theme-mode-title {
  color: #ffffff;
}

.theme-mode-sub {
  font-size: 12px;
  color: var(--text-muted, #64748b);
}

/* Accent Palette */
.accent-palette-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.accent-color-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-main, #f8fafc);
  color: var(--text-main, #334155);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

body.dark-mode .accent-color-btn {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

.accent-color-btn.active {
  border-color: var(--accent-val, #0ea5e9);
  background: rgba(14, 165, 233, 0.15);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
}

/* Sliders */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main, #334155);
}

body.dark-mode .slider-header {
  color: #cbd5e1;
}

.slider-value {
  font-size: 12px;
  font-weight: 700;
  color: #0ea5e9;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.12);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--border-color, #cbd5e1);
  outline: none;
}

body.dark-mode input[type="range"] {
  background: #334155;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0ea5e9;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Toggles & Switch */
.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg-main, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
}

body.dark-mode .toggle-item {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
}

.toggle-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main, #0f172a);
}

body.dark-mode .toggle-title {
  color: #f1f5f9;
}

.toggle-desc {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  margin-top: 2px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider.round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #94a3b8;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

.slider.round:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider.round {
  background-color: #0ea5e9;
}

input:checked + .slider.round:before {
  transform: translateX(20px);
}

/* Language Cards */
.language-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.lang-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-main, #f8fafc);
  cursor: pointer;
  text-align: center;
  transition: 0.2s ease;
}

body.dark-mode .lang-card {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.lang-card:hover {
  border-color: #0ea5e9;
  transform: translateY(-2px);
}

.lang-card.active {
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.12);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.25);
}

.lang-flag {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}

.lang-name {
  font-size: 14px;
  font-weight: 700;
  display: block;
  color: var(--text-main, #0f172a);
}

body.dark-mode .lang-name {
  color: #ffffff;
}

.lang-status {
  font-size: 11px;
  color: var(--text-muted, #64748b);
  display: block;
  margin-top: 2px;
}

/* Alert Banner */
.settings-alert-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(14, 165, 233, 0.35);
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.alert-banner-icon {
  font-size: 28px;
  color: #0ea5e9;
}

.alert-banner-text {
  flex: 1;
  min-width: 240px;
}

.alert-banner-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text-main, #0f172a);
}

body.dark-mode .alert-banner-text h4 {
  color: #ffffff;
}

.alert-banner-text p {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  margin: 0;
}

/* AI Persona Grid */
.ai-persona-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ai-persona-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-main, #f8fafc);
  cursor: pointer;
  transition: 0.25s ease;
}

body.dark-mode .ai-persona-card {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.ai-persona-card:hover {
  border-color: #0ea5e9;
  transform: translateY(-2px);
}

.ai-persona-card.active {
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.12);
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.2);
}

.persona-icon {
  font-size: 22px;
  color: #0ea5e9;
  margin-bottom: 8px;
}

.persona-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  margin-bottom: 4px;
}

body.dark-mode .persona-title {
  color: #ffffff;
}

.persona-desc {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
}

/* Security & Sessions */
.security-2fa-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.security-2fa-icon {
  font-size: 24px;
  color: #0ea5e9;
}

.security-2fa-text {
  flex: 1;
}

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.session-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-main, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
}

body.dark-mode .session-item {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

.session-icon {
  font-size: 20px;
  color: #0ea5e9;
}

.session-details {
  flex: 1;
}

.session-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main, #0f172a);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.dark-mode .session-name {
  color: #ffffff;
}

.badge-active {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #10b981;
  color: #ffffff;
}

.session-meta {
  font-size: 11px;
  color: var(--text-muted, #64748b);
  margin-top: 2px;
}

/* Data Actions Grid */
.data-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.data-action-box {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-main, #f8fafc);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.dark-mode .data-action-box {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

.data-action-box i {
  font-size: 24px;
}

.data-action-box h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--text-main, #0f172a);
}

body.dark-mode .data-action-box h4 {
  color: #ffffff;
}

.data-action-box p {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  margin: 0;
  flex: 1;
}

.danger-zone {
  border-color: rgba(239, 68, 68, 0.35);
}

/* Plan Hero Card */
.settings-plan-hero {
  border-radius: 20px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.plan-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #ffffff;
  margin-bottom: 8px;
}

.settings-plan-hero h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px 0;
}

.settings-plan-hero p {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0 0 14px 0;
}

.plan-features-mini {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.plan-renewal {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 10px;
  text-align: right;
}

/* Storage Meter */
.storage-meter-box {
  margin-bottom: 18px;
}

.storage-meter-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--border-color, #e2e8f0);
  overflow: hidden;
  margin-bottom: 8px;
}

body.dark-mode .storage-meter-bar {
  background: #334155;
}

.storage-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #10b981);
}

.storage-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted, #64748b);
}

.storage-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.storage-stat-pill {
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-main, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.dark-mode .storage-stat-pill {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

.storage-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main, #0f172a);
}

body.dark-mode .storage-stat-num {
  color: #ffffff;
}

.storage-stat-text {
  font-size: 11px;
  color: var(--text-muted, #64748b);
}

.cloud-sync-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sync-timestamp {
  font-size: 12px;
  color: var(--text-muted, #64748b);
}

/* About Specs */
.about-app-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.about-app-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.about-app-title h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text-main, #0f172a);
}

body.dark-mode .about-app-title h3 {
  color: #ffffff;
}

.about-app-title p {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  margin: 2px 0 0 0;
}

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

.spec-item {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-main, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

body.dark-mode .spec-item {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

.spec-label {
  color: var(--text-muted, #64748b);
}

.spec-value {
  font-weight: 600;
  color: var(--text-main, #0f172a);
}

body.dark-mode .spec-value {
  color: #f1f5f9;
}

.legal-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-main, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  color: var(--text-main, #334155);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease;
}

body.dark-mode .legal-link-item {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.legal-link-item:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: #0ea5e9;
  color: #0ea5e9;
}

/* Toast Notification */
.settings-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 99999;
  max-width: 380px;
}

.settings-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.toast-warning .toast-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.toast-danger .toast-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.toast-info .toast-icon {
  background: rgba(14, 165, 233, 0.2);
  color: #0ea5e9;
}

.toast-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.toast-message {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 2px;
}

/* Dynamic Accent and Scale Modifier Classes */
body.profile-theme-purple {
  --primary-color: #8b5cf6;
  --primary-hover: #7c3aed;
}

body.profile-theme-green {
  --primary-color: #10b981;
  --primary-hover: #059669;
}

body.profile-theme-orange {
  --primary-color: #f97316;
  --primary-hover: #ea580c;
}

body.profile-theme-ruby {
  --primary-color: #e11d48;
  --primary-hover: #be123c;
}

body.density-compact .settings-card {
  padding: 16px;
  margin-bottom: 14px;
}

body.density-compact .form-group input,
body.density-compact .form-group select {
  padding: 7px 10px;
}

body.font-large {
  font-size: 17px;
}

body.font-compact {
  font-size: 13px;
}

body.no-animations * {
  animation: none !important;
  transition: none !important;
}

body.no-glass header.header,
body.no-glass .settings-hero-banner,
body.no-glass .settings-sidebar-inner {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #0f172a !important;
}

/* Responsive Media Queries for Settings */
@media (max-width: 960px) {
  .settings-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .settings-sidebar {
    position: static;
  }

  .settings-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 8px;
    scrollbar-width: thin;
  }

  .settings-tab-btn {
    white-space: nowrap;
    width: auto;
    flex-shrink: 0;
  }

  .settings-grid-2,
  .settings-grid-3,
  .language-selector-grid,
  .theme-mode-cards,
  .ai-persona-grid,
  .data-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .settings-main-container {
    padding: 75px 14px 40px 14px;
  }

  .settings-hero-banner {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .settings-hero-banner h1 {
    font-size: 24px;
  }

  .settings-quick-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-search-box {
    max-width: 100%;
  }

  .settings-actions-group {
    justify-content: stretch;
  }

  .settings-actions-group button {
    flex: 1;
  }
}

.university-image > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .5s ease; }
.university-card:hover .university-image > img { transform: scale(1.06); filter: saturate(1.12) brightness(.9); }
.image-favorite-btn { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.country-flag { width: 1em; height: 1em; object-fit: cover; border-radius: 2px; vertical-align: -.08em; }
