/* ============================================
   DelVerse - Futuristic Theme Overrides
   Loaded last to safely modernize UI across pages.
   ============================================ */

:root {
  --primary-900: #031a45;
  --primary-800: #083b6d;
  --primary-700: #0f6599;
  --primary-600: #3f88b2;
  --primary-500: #6f9cb9;
  --primary-400: #8fb4cb;
  --primary-300: #a8c4d7;
  --primary-200: #cad9e5;
  --primary-100: #e8f0f6;
  --primary-50: #f7fbfe;

  --sky-500: #0f6599;
  --sky-400: #3f88b2;
  --sky-300: #8fb4cb;

  --font-family: "Poppins", "Segoe UI", sans-serif;
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-mono: "Poppins", "Segoe UI", sans-serif;

  --gradient-primary: linear-gradient(
    135deg,
    #083b6d 0%,
    #0f6599 52%,
    #6f9cb9 100%
  );
  --gradient-hero: linear-gradient(
    135deg,
    #031a45 0%,
    #083b6d 40%,
    #0f6599 78%,
    #8fb4cb 100%
  );
  --shadow-primary: 0 18px 48px -18px rgba(8, 59, 109, 0.45);
}

html,
body {
  overflow-x: hidden;
}

body {
  background-image:
    url("../assets/subject-pattern.svg"),
    radial-gradient(
      circle at 15% 12%,
      rgba(143, 180, 203, 0.22),
      transparent 28%
    ),
    radial-gradient(
      circle at 82% 10%,
      rgba(15, 101, 153, 0.12),
      transparent 24%
    ),
    linear-gradient(180deg, #f7fbfe 0%, #edf4f9 44%, #f7fbfe 100%);
  background-size:
    420px 420px,
    auto,
    auto,
    auto;
  background-position:
    center top,
    left top,
    right top,
    center;
  background-attachment: fixed, fixed, fixed, fixed;
  color: #16314a;
}

#app {
  isolation: isolate;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.hero-title,
.cta-title,
.auth-form-title,
.dashboard-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

p,
li,
span,
label,
input,
select,
textarea,
button,
a {
  font-family: var(--font-family);
}

strong,
b,
.table th,
.dashboard-card-title,
.stat-card-value {
  font-family: var(--font-family);
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.container,
.dashboard-main,
.card,
.dashboard-card,
.auth-form-container {
  min-width: 0;
}

.navbar {
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(143, 180, 203, 0.28);
  backdrop-filter: blur(16px);
}

.navbar-mobile-menu {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.navbar.scrolled {
  box-shadow: 0 12px 36px -18px rgba(7, 21, 36, 0.5);
}

.navbar.transparent {
  background: transparent;
}

.navbar.transparent.scrolled {
  background: rgba(255, 255, 255, 0.9);
}

.navbar-brand {
  gap: 10px;
}

.navbar .brand-logo {
  width: auto;
  height: 44px;
  max-height: 44px;
  height: auto;
  display: block;
}

.brand-wordmark {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-logo-default {
  display: block;
}

.brand-logo-light {
  display: none;
}

.navbar.transparent .brand-logo-default {
  display: none;
}

.navbar.transparent .brand-logo-light {
  display: block;
}

.navbar.transparent.scrolled .brand-logo-default {
  display: block;
}

.navbar.transparent.scrolled .brand-logo-light {
  display: none;
}

.logo-icon {
  display: none;
}

.logo-text {
  display: inline-flex;
  align-items: center;
}

.nav-link {
  position: relative;
  font-weight: 600;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gradient-primary);
  transition: transform 220ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.btn {
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #083b6d 0%, #0f6599 58%, #6f9cb9 100%);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
}

.btn-outline-light:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.92);
}

.btn-outline {
  border-color: rgba(43, 110, 234, 0.45);
}

.card,
.dashboard-card,
.catalog-filters,
.class-card,
.feature-card,
.testimonial-card,
.vm-card,
.feature-card-v2,
.benefit-card,
.team-card {
  border: 1px solid rgba(143, 180, 203, 0.26);
  box-shadow: 0 20px 42px -30px rgba(3, 26, 69, 0.28);
  border-radius: 24px;
  backdrop-filter: blur(14px);
}

.class-card,
.feature-card,
.testimonial-card,
.benefit-card,
.feature-card-v2,
.team-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(247, 251, 255, 0.95)
  );
}

.hero {
  position: relative;
  min-height: auto;
  padding: 88px 0 64px;
  background-image:
    linear-gradient(
      135deg,
      rgba(3, 26, 69, 0.95) 0%,
      rgba(8, 59, 109, 0.92) 38%,
      rgba(15, 101, 153, 0.86) 76%,
      rgba(143, 180, 203, 0.78) 100%
    ),
    url("../assets/subject-pattern.svg");
  background-size:
    cover,
    420px 420px;
  background-position: center, center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(143, 180, 203, 0.24),
      transparent 28%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(202, 217, 229, 0.22),
      transparent 24%
    );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 16px 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-badge {
  border: 1px solid rgba(232, 240, 246, 0.18);
  background: rgba(8, 25, 53, 0.46);
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.4);
}

.hero-title {
  max-width: 16ch;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 1.14;
}

.hero-title span {
  color: #eef6fb;
  text-shadow: 0 0 24px rgba(143, 180, 203, 0.35);
}

.hero-subtitle {
  max-width: 52ch;
  color: rgba(239, 248, 255, 0.82);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.7;
}

.hero-subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.subject-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(237, 244, 249, 0.12);
  border: 1px solid rgba(232, 240, 246, 0.16);
  color: #f8fbff;
  font-size: 0.88rem;
  box-shadow: 0 14px 28px -22px rgba(0, 0, 0, 0.5);
}

.hero-showcase {
  display: grid;
  grid-template-areas:
    "panel panel"
    "card1 card2";
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  width: 100%;
  padding: 32px 32px 40px;
}

.hero-showcase-panel {
  grid-area: panel;
  width: 100%;
  padding: 28px;
  position: relative;
  z-index: 1;
  border-radius: 30px;
  background: linear-gradient(
    180deg,
    rgba(6, 20, 44, 0.82) 0%,
    rgba(8, 34, 62, 0.62) 100%
  );
  border: 1px solid rgba(232, 240, 246, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 34px 90px -42px rgba(0, 0, 0, 0.65);
}

.hero-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  color: #eef6fb;
}

.hero-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.hero-panel-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(232, 240, 246, 0.1);
  font-size: 0.8rem;
}

.hero-panel-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b8ffdd;
  box-shadow: 0 0 12px rgba(184, 255, 221, 0.7);
}

.hero-panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.hero-metric-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(232, 240, 246, 0.08);
  border: 1px solid rgba(232, 240, 246, 0.1);
}

.hero-metric-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: rgba(232, 240, 246, 0.66);
}

.hero-metric-value {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
}

.hero-panel-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(232, 240, 246, 0.12);
}

.hero-timeline-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(143, 180, 203, 0.18);
  color: #eff7fd;
}

.hero-timeline-item strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.hero-timeline-item p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(232, 240, 246, 0.72);
}

.hero-floating-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(244, 250, 254, 0.95);
  border: 1px solid rgba(143, 180, 203, 0.22);
  box-shadow: 0 12px 32px -18px rgba(3, 26, 69, 0.45);
  backdrop-filter: blur(18px);
}

.hero-floating-card strong {
  display: block;
  color: var(--primary-900);
  margin-bottom: 4px;
}

.hero-floating-card span {
  color: var(--gray-600);
  font-size: 0.84rem;
}

.hero-floating-card-primary {
  grid-area: card1;
}

.hero-floating-card-secondary {
  grid-area: card2;
}

.hero-stats {
  gap: var(--spacing-8);
  flex-wrap: wrap;
}

.hero-stat {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(8, 25, 53, 0.36);
  border: 1px solid rgba(232, 240, 246, 0.14);
  min-width: 140px;
}

.hero-stat-value {
  color: #ffffff;
}

.hero-stat-label {
  color: rgba(232, 240, 246, 0.74);
}

.features-section,
.categories-section,
.testimonials-section,
.about-section,
.benefits-section,
.tutor-how-section,
.profile-content,
.class-detail-content {
  position: relative;
}

.features-section::before,
.categories-section::before,
.testimonials-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(47, 96, 166, 0.08) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 25%,
    #000 75%,
    transparent 100%
  );
}

.section-badge {
  background: rgba(8, 59, 109, 0.08);
  border: 1px solid rgba(8, 59, 109, 0.18);
  color: var(--primary-800);
}

/* Compact type scale & section rhythm */
.section-title {
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.7;
}

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

.features-section,
.categories-section,
.popular-section,
.how-it-works,
.testimonials-section,
.benefits-section,
.tutor-how-section,
.smart-suite,
.about-section,
.cta-section {
  padding: 72px 0;
}

.tutor-hero {
  padding: 60px 0 48px;
}

.tutor-hero-content h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 1.2;
}

.hero-stats-inline .stat .value {
  font-size: 1.5rem;
}

.dashboard-section .section-title {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  margin-bottom: 0;
}

.dashboard-main {
  background: linear-gradient(
    180deg,
    rgba(250, 252, 255, 0.8),
    rgba(240, 246, 255, 0.86)
  );
  backdrop-filter: blur(14px);
}

.dashboard-card-header,
.card-header {
  background: linear-gradient(
    180deg,
    rgba(232, 240, 246, 0.72),
    rgba(255, 255, 255, 0.76)
  );
}

.auth-left {
  background:
    radial-gradient(
      circle at top left,
      rgba(143, 180, 203, 0.14),
      transparent 24%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(240, 246, 251, 0.9) 100%
    );
}

.auth-form-container {
  max-width: 500px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(143, 180, 203, 0.26);
  border-radius: 28px;
  box-shadow: 0 32px 72px -38px rgba(3, 26, 69, 0.35);
  padding: clamp(20px, 2.8vw, 36px);
  backdrop-filter: blur(18px);
}

.auth-right {
  background-image:
    linear-gradient(
      135deg,
      rgba(3, 26, 69, 0.96) 0%,
      rgba(8, 59, 109, 0.94) 40%,
      rgba(15, 101, 153, 0.84) 100%
    ),
    url("../assets/subject-pattern.svg");
  background-size:
    cover,
    420px 420px;
  background-position: center, center;
}

.auth-promo {
  background: rgba(5, 19, 40, 0.28);
  border: 1px solid rgba(232, 240, 246, 0.15);
  border-radius: 28px;
  padding: 30px;
  backdrop-filter: blur(14px);
}

.auth-social-btn,
.form-input,
.form-select,
.form-textarea {
  border-radius: 12px;
}

.form-input,
.form-select,
.form-textarea {
  border-color: rgba(143, 180, 203, 0.34);
  background: rgba(255, 255, 255, 0.85);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  box-shadow: 0 0 0 4px rgba(143, 180, 203, 0.22);
}

.auth-social-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-social-btn {
  min-height: 54px;
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(143, 180, 203, 0.22);
}

.auth-form-title {
  font-size: clamp(1.8rem, 2.8vw, 2.45rem);
}

.auth-form-subtitle,
.auth-promo-text,
.auth-page .form-checkbox span {
  line-height: 1.7;
}

.auth-page .brand-logo {
  width: min(190px, 100%);
}

.auth-page .btn {
  white-space: normal;
}

.auth-brand-link {
  justify-content: center;
  margin-bottom: 32px;
}

.auth-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.auth-link-muted {
  font-size: 14px;
}

.auth-forgot-text {
  color: var(--gray-500);
  margin-bottom: 24px;
}

.auth-switch-text {
  margin-top: 24px;
  text-align: center;
  color: var(--gray-500);
}

.auth-switch-link {
  font-weight: 600;
}

.auth-demo-accounts {
  margin-top: 32px;
  padding: 18px;
  background: rgba(247, 251, 254, 0.82);
  border: 1px solid rgba(143, 180, 203, 0.16);
  border-radius: 16px;
}

.auth-demo-title {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 12px;
  text-align: center;
}

.auth-demo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-promo-stats {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  justify-content: center;
}

.auth-promo-stat {
  text-align: center;
}

.auth-promo-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
}

.auth-promo-stat-label {
  font-size: 14px;
  color: var(--primary-200);
}

.auth-role-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-role-button {
  flex: 1;
}

.auth-password-strength {
  margin-top: 8px;
}

.auth-password-strength-bars {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.auth-password-strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--gray-200);
}

.auth-password-strength-label {
  font-size: 12px;
}

.auth-password-strength-bars.is-weak .auth-password-strength-bar.is-active {
  background: var(--error);
}

.auth-password-strength-bars.is-medium .auth-password-strength-bar.is-active {
  background: var(--warning);
}

.auth-password-strength-bars.is-strong .auth-password-strength-bar.is-active {
  background: var(--success);
}

.auth-password-strength-label.is-weak {
  color: var(--error);
}

.auth-password-strength-label.is-medium {
  color: var(--warning);
}

.auth-password-strength-label.is-strong {
  color: var(--success);
}

.auth-tutor-fields.is-hidden {
  display: none;
}

.auth-checkbox-group {
  margin-bottom: 24px;
}

.auth-promo-benefits {
  margin-top: 32px;
}

.auth-benefits-list {
  list-style: none;
  text-align: left;
  color: var(--primary-100);
  display: grid;
  gap: 12px;
}

.auth-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.auth-benefit-icon {
  margin-top: 3px;
  color: var(--sky-300);
}

.social-google {
  color: #ea4335;
}

.social-facebook {
  color: #1877f2;
}

.section-action-center {
  text-align: center;
  margin-top: 48px;
}

.tutor-cta-title {
  margin-top: 16px;
}

.tutor-cta-description {
  margin-top: 24px;
}

.footer-brand-mark {
  margin-bottom: 16px;
}

.sidebar {
  background: rgba(255, 255, 255, 0.72);
  border-right: 1px solid rgba(143, 180, 203, 0.18);
  box-shadow: 16px 0 44px -34px rgba(3, 26, 69, 0.32);
  backdrop-filter: blur(18px);
}

.sidebar-link:hover {
  background: rgba(8, 59, 109, 0.06);
  color: var(--primary-900);
}

.sidebar-link.active {
  background: linear-gradient(
    135deg,
    rgba(8, 59, 109, 0.1),
    rgba(143, 180, 203, 0.16)
  );
  color: var(--primary-800);
}

.dropdown-menu,
.modal,
.table-container,
.toast,
.stat-card {
  border: 1px solid rgba(143, 180, 203, 0.2);
  backdrop-filter: blur(16px);
}

.dropdown-menu,
.modal,
.toast {
  background: rgba(255, 255, 255, 0.84);
}

.modal-backdrop {
  background: rgba(4, 18, 37, 0.42);
  backdrop-filter: blur(8px);
}

.table th {
  background: rgba(232, 240, 246, 0.84);
}

.table tr:hover td {
  background: rgba(247, 251, 254, 0.9);
}

.footer {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(3, 26, 69, 0.98) 0%, rgba(2, 18, 48, 1) 100%),
    url("../assets/subject-pattern.svg");
  background-size:
    cover,
    420px 420px;
  background-position: center, center;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(127, 225, 243, 0.12) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  opacity: 0.35;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-note {
  margin-top: 18px;
  color: rgba(232, 240, 246, 0.68);
  font-size: 0.92rem;
}

.footer-partners {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.partner-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(232, 240, 246, 0.08);
  border: 1px solid rgba(232, 240, 246, 0.12);
  color: #f4f9fd;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-legal {
  color: rgba(232, 240, 246, 0.72);
  font-size: 0.92rem;
}

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

.catalog-filter-title {
  margin: 0;
  font-size: 18px;
}

.catalog-rating-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-mobile-filter-toggle {
  display: none;
  margin-bottom: 24px;
}

.catalog-classes-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.catalog-results {
  min-width: 0;
}

.catalog-results-header {
  gap: 16px;
  flex-wrap: wrap;
}

.catalog-results-count,
.catalog-sort {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(143, 180, 203, 0.18);
  box-shadow: 0 18px 38px -32px rgba(3, 26, 69, 0.24);
}

.catalog-sort select,
.catalog-results,
.catalog-results-count,
.catalog-sort,
.filter-title,
.filter-options span,
.class-card-title,
.class-card-category,
.class-card-students,
.testimonial-content,
.testimonial-author-name,
.testimonial-author-role,
.testimonial-quote {
  font-family: var(--font-family);
}

.smart-suite {
  padding: 72px 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 101, 153, 0.12), transparent 40%),
    radial-gradient(
      circle at 100% 100%,
      rgba(111, 156, 185, 0.16),
      transparent 35%
    ),
    rgba(247, 251, 254, 0.72);
}

.smart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-6);
}

.smart-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(143, 180, 203, 0.24);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-6);
  box-shadow: 0 20px 40px -30px rgba(3, 26, 69, 0.28);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
  backdrop-filter: blur(18px);
}

.smart-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 42px -28px rgba(7, 21, 36, 0.58);
}

.smart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-4);
}

.smart-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.15rem;
}

.smart-card-chip {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 59, 109, 0.08);
  color: var(--primary-800);
}

.smart-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.smart-card p {
  color: var(--gray-600);
  margin-bottom: 0;
}

.smart-card-metric {
  margin-top: var(--spacing-4);
  padding-top: var(--spacing-3);
  border-top: 1px dashed rgba(143, 180, 203, 0.4);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--primary-800);
}

.tutor-cta-section {
  padding: 72px 0;
  position: relative;
}

.tutor-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.tutor-cta-copy > p {
  font-size: 1.05rem;
  color: var(--gray-600);
}

.tutor-cta-list {
  list-style: none;
  margin: 28px 0 34px;
  display: grid;
  gap: 14px;
}

.tutor-cta-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(143, 180, 203, 0.18);
  box-shadow: 0 16px 36px -30px rgba(3, 26, 69, 0.2);
}

.tutor-cta-list i {
  margin-top: 3px;
  color: var(--primary-700);
}

.tutor-grade-preview {
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(143, 180, 203, 0.24);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(240, 248, 254, 0.9)
  );
}

.tutor-grade-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tutor-grade-preview-head span {
  font-weight: 700;
  color: var(--primary-900);
}

.tutor-grade-preview-head a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary-700);
  text-decoration: none;
}

.tutor-grade-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tutor-grade-mini-card {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(143, 180, 203, 0.2);
  background: rgba(255, 255, 255, 0.92);
}

.tutor-grade-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.tutor-grade-mini-card h4 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--primary-900);
}

.tutor-grade-mini-card p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--gray-600);
  line-height: 1.35;
}

.tutor-grade-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.tutor-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tutor-cta-visual {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.tutor-cta-image {
  width: 100%;
  border-radius: 30px;
  object-fit: cover;
  min-height: 340px;
  box-shadow: 0 36px 72px -38px rgba(3, 26, 69, 0.35);
}

.tutor-spotlight-card {
  position: absolute;
  left: 12px;
  bottom: 16px;
  width: min(92%, 360px);
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(143, 180, 203, 0.24);
  box-shadow: 0 28px 64px -34px rgba(3, 26, 69, 0.32);
  backdrop-filter: blur(18px);
}

.tutor-spotlight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(8, 59, 109, 0.08);
  color: var(--primary-800);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.tutor-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.tutor-proof-item {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(247, 251, 254, 0.9);
}

.tutor-proof-item strong {
  display: block;
  color: var(--primary-900);
}

.tutor-proof-item span {
  font-size: 0.8rem;
  color: var(--gray-600);
}

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

.feature-card,
.class-card,
.smart-card,
.testimonial-card {
  animation: revealUp 480ms ease both;
}

@media (max-width: 1024px) {
  .brand-logo {
    width: 154px;
  }

  .hero-grid,
  .tutor-cta-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: none;
  }

  .hero-showcase {
    grid-template-areas:
      "panel"
      "card1"
      "card2";
    grid-template-columns: 1fr;
    padding: 20px 0 0;
    gap: 12px;
  }

  .catalog-mobile-filter-toggle {
    display: inline-flex;
  }

  .tutor-cta-visual {
    min-height: auto;
  }

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

  .auth-form-container {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 var(--spacing-4);
  }

  .brand-logo {
    width: 142px;
  }

  .hero-stat {
    flex: 1;
    min-width: 120px;
  }

  .hero-panel-metrics,
  .tutor-proof-grid,
  .tutor-grade-preview-grid {
    grid-template-columns: 1fr;
  }

  .auth-social-buttons {
    grid-template-columns: 1fr;
  }

  .auth-role-toggle,
  .auth-meta-row,
  .auth-promo-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-promo-stat {
    text-align: left;
  }

  .footer-partners {
    justify-content: center;
  }

  .tutor-spotlight-card {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .tutor-grade-preview-head,
  .tutor-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .auth-form-container {
    padding: 20px;
    border-radius: 20px;
  }
}

@media (max-width: 576px) {
  .navbar-actions {
    gap: var(--spacing-2);
  }

  .hero-title {
    line-height: 1.18;
    max-width: none;
  }

  .catalog-results-count,
  .catalog-sort {
    width: 100%;
  }

  .hero-subject-tags {
    gap: 10px;
  }

  .subject-tag {
    width: 100%;
    justify-content: center;
  }

  .dashboard-main {
    padding: var(--spacing-5);
  }

  .auth-left {
    padding: var(--spacing-4);
  }
}
