@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --ink: #0f1a2b;
  --ink-soft: #2f3c52;
  --accent: #0a65c1;
  --accent-dark: #074e94;
  --accent-soft: #e1efff;
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --surface-muted: #eef2f7;
  --border: #d7e0ec;
  --success: #17a34a;
  --shadow: 0 18px 45px rgba(14, 35, 66, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #f4fbff 0%, #f7f8ff 35%, #ffffff 70%);
  line-height: 1.6;
  font-size: 17px;
}

body.courses-focus .hero,
body.courses-focus #stepsSection {
  display: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(135deg, #0a65c1 0%, #0f3e74 65%, #082547 100%);
  color: #fff;
  padding: 32px 0 56px;
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 10%, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}

.header-row {
  display: grid;
  grid-template-columns: 1.3fr 1.7fr;
  align-items: start;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-logo {
  width: 210px;
  height: auto;
  cursor: pointer;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-moto {
  margin: 0;
  font-size: 1.2rem;
  font-style: italic;
  color: #d6eaff;
}

.brand-domain {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 4px 10px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-tag {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.header-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  width: 100%;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.auth-actions[data-auth-ready="false"] {
  visibility: hidden;
  pointer-events: none;
}

.auth-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auth-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.auth-btn-primary {
  background: #fff;
  color: var(--accent-dark);
  border-color: #fff;
}

.auth-btn-primary:hover {
  background: #eef6ff;
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 15, 30, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  z-index: 1200;
}

.auth-card {
  width: min(460px, 96vw);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid #d7e6fb;
  border-radius: 16px;
  box-shadow: 0 22px 44px rgba(10, 33, 64, 0.24);
  padding: 26px 24px 22px;
  position: relative;
}

.auth-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.7rem;
  color: #496086;
  cursor: pointer;
  line-height: 1;
}

.auth-card h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.auth-subtitle {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tab {
  border: 1px solid #cddcf0;
  border-radius: 10px;
  background: #fff;
  color: #294a78;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

.auth-form label {
  font-size: 0.85rem;
  color: #244065;
  font-weight: 600;
}

.auth-form input:not([type="checkbox"]) {
  border: 1px solid #cbd8eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  outline: none;
  background: #fff;
}

.auth-form input:not([type="checkbox"]):focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 101, 193, 0.14);
}

.policy-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #2d4568;
  line-height: 1.5;
}

.policy-consent input[type="checkbox"] {
  margin-top: 3px;
}

.policy-consent a {
  color: var(--accent-dark);
  font-weight: 700;
}

.auth-submit {
  margin-top: 6px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 14px;
  cursor: pointer;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-submit.is-muted {
  background: #8b97a8;
}

.auth-submit-secondary {
  background: #24456f;
}

.auth-link-btn {
  border: none;
  background: transparent;
  color: var(--accent-dark);
  padding: 2px 0;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.forgot-password-panel {
  display: grid;
  gap: 8px;
  margin: 2px 0 4px;
  padding: 10px;
  background: #eef4ff;
  border: 1px solid #cddcf0;
  border-radius: 10px;
}

.verify-actions {
  display: grid;
  gap: 10px;
}

.auth-message {
  margin: 12px 0 0;
  min-height: 20px;
  font-size: 0.9rem;
  color: #1f385c;
}

.auth-message.error {
  color: #b0182b;
}

.auth-message.neutral {
  color: #66778f;
}

.settings-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 15, 30, 0.72);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  z-index: 1250;
}

.settings-card {
  width: min(680px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid #d7e6fb;
  border-radius: 16px;
  box-shadow: 0 22px 44px rgba(10, 33, 64, 0.24);
  padding: 26px 24px 22px;
  position: relative;
}

.settings-view {
  display: block;
}

.settings-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #d8e2f0;
}

.settings-section h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #173456;
}

.settings-danger-text {
  margin: 0 0 10px;
  color: #8d1d2f;
  font-size: 0.88rem;
}

.danger-btn {
  background: #b0182b;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  background: #fff;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  padding: 10px 12px;
}

.history-item h4 {
  margin: 0 0 2px;
  font-size: 0.96rem;
}

.history-item p {
  margin: 0;
  font-size: 0.86rem;
  color: #36557f;
}

.search-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 10px 16px;
  width: 100%;
  max-width: 420px;
  color: #fff;
}

.search-filter i {
  color: rgba(255, 255, 255, 0.75);
}

.search-filter input {
  background: transparent;
  border: none;
  color: #fff;
  width: 100%;
  font-size: 0.98rem;
  outline: none;
}

.search-filter input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.curriculum-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  padding-bottom: 4px;
}

@media (max-width: 1200px) {
  .curriculum-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.curriculum-select {
  border: none;
  padding: 10px 44px 10px 14px;
  border-radius: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 220px;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M1.4 0.9 6 5.5 10.6 0.9 12 2.3 6 8 0 2.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.curriculum-select option {
  color: #111;
}

.curriculum-select:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.45);
}

.mobile-controls {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 12px;
}

.mobile-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
}

#mobileSearch,
#mobileCurriculum {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  width: 100%;
  outline: none;
}

#mobileSubject {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  width: 100%;
  outline: none;
  border-radius: 12px;
  padding: 10px 12px;
}

#mobileCurriculum {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
}

#mobileCurriculum option,
#mobileSubject option {
  color: #111;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  margin-top: 38px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 10px 0 12px;
  line-height: 1.15;
}

.hero-copy p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.primary-btn,
.secondary-btn {
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero-card h3 {
  margin: 14px 0 12px;
  font-size: 1.3rem;
}

.hero-card-header {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pill.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checklist li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
}

.hero-card-footer {
  margin-top: 18px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.section {
  padding: 72px 0;
  background: transparent;
}

.legal-page {
  background: #f4f7fb;
}

.legal-masthead {
  background: linear-gradient(135deg, #0a65c1 0%, #0f3e74 72%, #082547 100%);
  color: #fff;
  padding: 22px 0;
}

.legal-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-brand a {
  display: inline-flex;
  align-items: center;
}

.legal-logo {
  width: 180px;
  height: auto;
}

.legal-brand span {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section.alt {
  background: var(--surface-alt);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
}

.section-header p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 520px;
}

.my-courses-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 22px;
}

.my-courses-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.my-courses-header h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.my-courses-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.my-courses-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.my-course-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: #fff;
}

.my-course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.my-course-top h4 {
  margin: 0;
  font-size: 1rem;
}

.my-course-meta,
.my-course-progress {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.my-course-badge {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.my-course-badge.active {
  background: rgba(23, 163, 74, 0.12);
  color: #11703a;
  border: 1px solid rgba(17, 112, 58, 0.28);
}

.my-course-badge.locked {
  background: rgba(176, 24, 43, 0.11);
  color: #8d1d2f;
  border: 1px solid rgba(141, 29, 47, 0.24);
}

.my-course-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.my-course-actions .auth-btn,
.my-course-actions .primary-btn {
  padding: 8px 12px;
  font-size: 0.84rem;
}

.my-course-actions .auth-btn {
  background: #e9f2ff;
  border: 1px solid #c8dcfa;
  color: #204a79;
}

.my-course-actions .whatsapp-btn {
  margin-top: 0;
  padding: 8px 12px;
  font-size: 0.84rem;
}

.my-courses-empty {
  border: 1px dashed #bfd0e6;
  border-radius: var(--radius-md);
  padding: 14px;
  background: #f8fbff;
}

.my-courses-empty h4 {
  margin: 0 0 4px;
}

.my-courses-empty p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.step-card h3 {
  margin: 10px 0 8px;
}

.step-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  color: var(--accent);
}

#tutorsList {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tutor-card-skeleton {
  cursor: default;
}

.tutor-card-skeleton:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.skeleton-block,
.skeleton-line {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    100deg,
    #e5ebf3 20%,
    #f4f8fd 50%,
    #e5ebf3 80%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s linear infinite;
}

.skeleton-line {
  border-radius: var(--radius-sm);
}

.skeleton-title {
  width: min(420px, 85%);
  height: 24px;
  margin-bottom: 12px;
}

.skeleton-text {
  width: min(520px, 95%);
  height: 16px;
}

.tutor-card-skeleton .tutor-photo {
  background-color: #e5ebf3;
}

@keyframes skeleton-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block,
  .skeleton-line {
    animation: none;
  }
}

.tutor-card {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tutor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(14, 35, 66, 0.18);
}

.tutor-photo {
  width: 170px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.tutor-info {
  flex: 1;
}

.tutor-info h3 {
  margin: 0 0 6px;
}

.tutor-info p {
  margin: 0;
  color: var(--ink-soft);
}

.tutor-subjects {
  display: none;
  width: 100%;
  margin-top: 10px;
  flex-direction: column;
  gap: 1.25rem;
}

.tutor-card.active .tutor-subjects {
  display: flex;
}

.category-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.category-block .subject-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.subject-card {
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 22px rgba(14, 35, 66, 0.08);
  padding: 12px;
  width: 300px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  position: relative;
}

.category-block-skeleton .subject-row {
  overflow: hidden;
}

.category-title-skeleton {
  width: min(240px, 65%);
  height: 18px;
  margin-bottom: 12px;
}

.subject-card-skeleton {
  pointer-events: none;
}

.subject-card-skeleton .skeleton-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
}

.subject-card-skeleton .content {
  margin-top: 10px;
}

.subject-card-skeleton .skeleton-detail-title {
  width: 82%;
  height: 16px;
  margin-bottom: 8px;
}

.subject-card-skeleton .skeleton-detail-text {
  width: 94%;
  height: 14px;
}

.subjects-load-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(141, 29, 47, 0.24);
  background: rgba(176, 24, 43, 0.08);
  color: #8d1d2f;
  font-size: 0.92rem;
}

.subject-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.subject-card .content {
  margin-top: 10px;
}

.subject-card h3 {
  font-size: 1rem;
  margin: 4px 0 6px;
  word-wrap: break-word;
}

.subject-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
  max-height: 4.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.subject-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.subject-badge.free {
  background: var(--success);
}

.subject-badge.paid {
  background: rgba(176, 24, 43, 0.11);
  color: #8d1d2f;
  border: 1px solid rgba(141, 29, 47, 0.24);
}

footer {
  background: #081f3f;
  color: #fff;
  padding: 28px 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-links a {
  color: #cfe2ff;
  text-decoration: none;
  font-size: 0.9rem;
}

.legal-links a:hover {
  text-decoration: underline;
}

footer .social-links a {
  margin-right: 12px;
  color: #fff;
  font-size: 1.3rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

footer .social-links a:hover {
  color: #ffd166;
  transform: translateY(-2px);
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1300;
  background: #0d274b;
  color: #e8f1ff;
  border: 1px solid rgba(157, 187, 226, 0.35);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(10, 22, 44, 0.35);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: #fff;
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-actions .auth-btn {
  white-space: nowrap;
}

.video-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 15, 30, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.video-popup.show {
  display: flex;
}

.popup-content {
  position: relative;
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

#videoContainer {
  width: 100%;
  height: 100%;
}

#videoContainer iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1002;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.05);
}

.mobile-check {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  padding: 16px;
}

#mobileCheck {
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-card {
  background: #f3f6fb;
  padding: 28px 32px;
  border-radius: var(--radius-md);
  max-width: 420px;
  width: 100%;
  text-align: center;
  color: var(--ink);
  box-shadow: var(--shadow);
  animation: fadeIn 0.4s ease;
}

.mobile-card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.mobile-card p {
  font-size: 0.95rem;
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.mobile-card input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1rem;
  outline: none;
  background: #fff;
}

.mobile-card input:focus {
  box-shadow: 0 0 0 3px rgba(10, 101, 193, 0.2);
}

.mobile-card button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-card button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mobile-card button:hover {
  transform: translateY(-2px);
}

.whatsapp-info {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  transition: transform 0.2s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .header-row,
  .hero {
    grid-template-columns: 1fr;
  }

  .header-controls {
    align-items: stretch;
  }

  .hero-card {
    order: -1;
  }

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

@media (max-width: 768px) {
  .header-controls {
    display: flex;
    align-items: stretch;
    gap: 10px;
  }

  .header-controls .search-filter,
  .header-controls .curriculum-menu {
    display: none;
  }

  .auth-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .mobile-controls {
    display: flex;
  }

  .site-logo {
    width: 180px;
  }

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

  .hero {
    margin-top: 26px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tutor-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .my-courses-list {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
  }

  .my-course-card {
    min-width: 280px;
    flex: 0 0 auto;
  }

  .tutor-photo {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 600px) {
  #mobileCheck {
    max-height: 90vh;
  }
}
