:root {
  --navy: #1a2744;
  --blue: #2563eb;
  --yellow: #f5c518;
  --red: #e53e3e;
  --green: #22c55e;
  --gray-light: #f4f6fa;
  --gray: #6b7280;
  --white: #ffffff;
  --card-shadow: 0 4px 24px rgba(26, 39, 68, 0.1);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Open Sans", sans-serif;
  background: var(--gray-light);
  color: var(--navy);
}

/* ===== SHARED ===== */
.page {
  display: none;
  min-height: 100vh;
}
.page.active {
  display: flex;
  flex-direction: column;
}
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 6px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}
.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover {
  background: #1d4ed8;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: #111827;
}
.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
}
.btn-yellow:hover {
  background: #d4a800;
}
.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover {
  background: #c53030;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}
.btn-green {
  background: var(--green);
  color: #fff;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 30px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
  outline: none;
  transition: border 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}
.logo {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--navy);
  letter-spacing: -1px;
}
.logo span {
  color: var(--blue);
}
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}
.topbar .logo-img {
  height: 36px;
}
.auth-box .logo-img {
  height: 50px;
  margin: 0 auto 24px;
}
.landing-inner .logo-img {
  height: 80px;
  margin: 0 auto 16px;
  filter: brightness(0) invert(1);
}

/* ===== TOPBAR ===== */
.topbar {
  background: #fff;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.hello-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.bsb-badge {
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  font-family: "Montserrat", sans-serif;
}

/* ===== LANDING ===== */
#landing {
  background: #fff;
  flex-direction: column;
}
.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid #eee;
  position: relative;
}
.landing-topbar .landing-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.landing-topbar .landing-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.landing-logo {
  height: 70px;
  width: auto;
}
.landing-accedi {
  padding: 10px 28px;
  font-size: 15px;
  border-radius: 6px;
}
.landing-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 32px 48px;
  width: 100%;
  text-align: center;
}
.landing-headline {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 14px;
  text-align: center;
}
.landing-desc {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 14px;
  font-weight: 600;
  text-align: center;
}
.landing-link {
  font-size: 14px;
  color: #222;
  margin-bottom: 18px;
  text-align: center;
}
.landing-plain-text {
  font-size: 14px;
  color: #222;
  margin-bottom: 18px;
  text-align: center;
}
.landing-demo-link {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  text-decoration: underline;
  margin-bottom: 32px;
  cursor: pointer;
}
.landing-features {
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.landing-feature {
  flex: 1;
  min-width: 240px;
}
.landing-feature-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 12px;
}
.landing-feature-thumb {
  background: linear-gradient(135deg, #1a2744, #2563eb);
  border-radius: 10px;
  border: 3px solid var(--navy);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.landing-feature-thumb.thumb-dark {
  background: linear-gradient(135deg, #0a0a2a, #1a2744);
}
.play-btn {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 2;
  transition: transform 0.2s;
  cursor: pointer;
  padding-left: 4px;
}
.landing-feature-thumb:hover .play-btn {
  transform: scale(1.1);
}
.thumb-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
}
.btn-cta-big {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 18px;
  font-size: 18px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-cta-big:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}
.btn-cta-green {
  background: #3a7d14 !important;
}
.btn-cta-green:hover {
  background: #2d6010 !important;
  box-shadow: 0 8px 24px rgba(58, 125, 20, 0.3) !important;
}
.landing-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.landing-cta-row .btn-cta-big:first-child {
  max-width: 600px;
  width: 100%;
  font-size: 18px;
  padding: 18px;
}
.landing-cta-row .btn-cta-big:last-child {
  max-width: 340px;
  width: 100%;
  font-size: 14px;
  padding: 12px 24px;
  opacity: 0.85;
}
.btn-cta-green {
  background: #3a7d14 !important;
}
.btn-cta-green:hover {
  background: #2d6010 !important;
  box-shadow: 0 8px 24px rgba(58, 125, 20, 0.3) !important;
}
.landing-cta-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.landing-cta-row .btn-cta-big {
  max-width: 380px;
}

/* ===== AUTH PAGES ===== */

.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--gray-light);
}
.auth-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
}
.auth-box .logo {
  text-align: center;
  margin-bottom: 24px;
  font-size: 30px;
}
.auth-box h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 22px;
  text-align: center;
}
.auth-box .btn {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  font-size: 15px;
}
.auth-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--gray);
}
.auth-link a {
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
}
.auth-link a:hover {
  text-decoration: underline;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 6px;
}
.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* ===== DASHBOARD ===== */
#dashboard {
  background: var(--gray-light);
}
.dashboard-body {
  flex: 1;
  padding: 32px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.dashboard-greeting {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 30px;
  margin-bottom: 4px;
}
.dashboard-greeting span {
  color: var(--blue);
}
.credits-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.credit-badge {
  background: var(--navy);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}
.credit-badge.start {
  background: #2563eb;
}
.credit-badge.ok {
  background: var(--green);
}
.upcoming {
  background: #fff;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 28px;
  box-shadow: var(--card-shadow);
}
.upcoming h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 12px;
}
.lesson-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}
.lesson-item:last-child {
  border-bottom: none;
}
.lesson-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.lesson-dot.conv {
  background: var(--green);
}
.lesson-type {
  font-weight: 700;
}
.dashboard-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.dashboard-action-btn {
  flex: 1;
  min-width: 160px;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 14px;
  transition: all 0.2s;
}
.dashboard-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.db-btn-1 {
  background: var(--navy);
  color: #fff;
}
.db-btn-2 {
  background: var(--blue);
  color: #fff;
}
.db-btn-3 {
  background: var(--yellow);
  color: var(--navy);
}
.db-btn-sub {
  font-size: 10px;
  font-weight: 400;
  margin-top: 4px;
  opacity: 0.8;
  font-family: "Open Sans", sans-serif;
}

/* ===== PLANS ===== */
#plans {
  background: var(--gray-light);
}
.plans-body {
  flex: 1;
  padding: 32px;
}
.plans-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 26px;
  text-align: center;
  margin-bottom: 8px;
}
.plans-sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 32px;
  font-size: 14px;
}
.plans-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto;
}
.plan-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  padding: 28px 24px;
  width: 240px;
  text-align: center;
  position: relative;
  border: 2px solid transparent;
}
.plan-card.featured {
  border-color: var(--blue);
  transform: scale(1.04);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  font-family: "Montserrat", sans-serif;
  white-space: nowrap;
}
.plan-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 6px;
}
.plan-price {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: var(--blue);
  margin: 12px 0 4px;
}
.plan-price span {
  font-size: 14px;
  font-weight: 600;
}
.plan-features {
  list-style: none;
  margin: 14px 0 20px;
  text-align: left;
}
.plan-features li {
  font-size: 12px;
  padding: 4px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.plan-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}
.plan-card .btn {
  width: 100%;
  margin-bottom: 8px;
}
.plan-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 10px;
}
.tag-start {
  background: #dbeafe;
  color: #1d4ed8;
}
.tag-move {
  background: #fef9c3;
  color: #92400e;
}
.tag-max {
  background: #fee2e2;
  color: #b91c1c;
}
.plans-footer {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.plans-footer .btn {
  min-width: 200px;
}

/* ===== LEVEL TEST ===== */
#leveltest {
  background: var(--gray-light);
}
.leveltest-body {
  flex: 1;
  padding: 32px;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}
.leveltest-body h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 26px;
  margin-bottom: 6px;
}
.leveltest-body p {
  color: var(--gray);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.7;
}
.chart-placeholder {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
}
.chart-bar {
  background: var(--red);
  border-radius: 4px 4px 0 0;
  flex: 1;
}
.test-info {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.8;
}

/* ===== CONSULTATION ===== */
#consultation {
  background: var(--gray-light);
}
.consult-body {
  flex: 1;
  padding: 32px;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
}
.consult-body h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 24px;
  margin-bottom: 24px;
}
.consult-body .btn {
  width: 100%;
  margin-top: 8px;
}

/* ===== LIVE LESSONS ===== */
#livelessons {
  background: var(--gray-light);
}
.live-body {
  flex: 1;
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}
.live-body h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 24px;
  margin-bottom: 6px;
}
.calendar-wrap {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 24px;
  margin: 20px 0;
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.calendar-nav h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 16px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.cal-day-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  padding: 4px 0;
}
.cal-day {
  font-size: 13px;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.cal-day:hover {
  background: #dbeafe;
  color: var(--blue);
}
.cal-day.today {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}
.cal-day.available {
  cursor: pointer;
}
.cal-day.selected {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.cal-day.empty {
  cursor: default;
}
.time-slots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.time-slot {
  padding: 8px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
}
.time-slot:hover,
.time-slot.selected {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.live-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.live-actions .btn {
  flex: 1;
  min-width: 160px;
}
.live-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
}
.live-tab {
  padding: 10px 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  color: var(--gray);
}
.live-tab.active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

/* ===== REQUEST INFO ===== */
#requestinfo {
  background: var(--gray-light);
}
.reqinfo-body {
  flex: 1;
  padding: 32px;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
}
.reqinfo-body h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 24px;
  margin-bottom: 24px;
}
.reqinfo-body .btn {
  width: 100%;
  margin-top: 8px;
}

/* ===== THANK YOU / CONFIRM ===== */
#thankyou,
#confirmed {
  background: var(--gray-light);
}
.ty-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.ty-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  padding: 48px 40px;
  text-align: center;
  max-width: 460px;
  width: 100%;
}
.ty-icon {
  font-size: 52px;
  margin-bottom: 16px;
}
.ty-card h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 10px;
}
.ty-card p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.appt-box {
  background: var(--gray-light);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  text-align: left;
}
.appt-box strong {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
}
.ty-card .btn {
  margin: 6px 4px;
  min-width: 140px;
}

/* ===== NAV ===== */
.nav-back {
  font-size: 13px;
  color: var(--blue);
  cursor: pointer;
  font-weight: 600;
}
.nav-back:hover {
  text-decoration: underline;
}

/* ===== MOBILE NAV ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 31, 60, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu button {
  background: none;
  border: none;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 22px;
  cursor: pointer;
  letter-spacing: 1px;
}
.mobile-menu .close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  font-family: monospace;
}
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nl-nav .nl-accedi {
    display: none;
  }
  .nl-hero {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 28px;
  }
  .nl-videos {
    grid-template-columns: 1fr;
    padding: 24px 24px 0;
  }
  .nl-cta-row {
    padding: 32px 24px 40px;
  }
  .plans-grid-new {
    flex-direction: column;
  }
  .lt-body {
    flex-direction: column;
  }
  .lt-chart-wrap {
    flex: none;
    width: 100%;
  }
  .consult-main {
    flex-direction: column;
  }
  .consult-info-box {
    flex: none;
    width: 100%;
  }
  .db-main-grid {
    flex-direction: column;
    align-items: center;
  }
  .db-card-locked {
    width: 100%;
    max-width: 340px;
  }
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.modal-box h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 10px;
}
.modal-box p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.7;
}
.modal-actions {
  display: flex;
  gap: 10px;
}
.modal-actions .btn {
  flex: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .plans-grid {
    flex-direction: column;
    align-items: center;
  }
  .plan-card.featured {
    transform: scale(1);
  }
  .dashboard-actions {
    flex-direction: column;
  }
  .landing-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== PLANS NEW ===== */
#plans {
  background: #fff;
  flex-direction: column;
}
.plans-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid #eee;
}
.plans-body-new {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 32px 48px;
  width: 100%;
}
.plans-grid-new {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.plan-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.plan-name-new {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--navy);
  text-decoration: underline;
  margin-bottom: 14px;
}
.plan-card-new {
  border: 2px solid var(--navy);
  border-radius: 20px;
  padding: 24px 22px 18px;
  flex: 1;
  background: #fff;
}
.plan-list {
  list-style: disc;
  padding-left: 18px;
  margin-bottom: 0;
}
.plan-list li {
  font-size: 14px;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.5;
}
.plan-list li strong {
  font-weight: 700;
}
.plan-list-link {
  color: var(--blue) !important;
  text-decoration: underline;
  cursor: pointer;
  list-style: disc;
}
.plan-list-link::marker {
  color: var(--blue);
}
.plan-divider {
  width: 80px;
  height: 2px;
  background: #333;
  margin: 18px auto;
}
.plan-price-new {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 42px;
  color: #111;
  text-align: center;
}
.plan-period {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-bottom: 4px;
}
.btn-attiva {
  display: block;
  width: 100%;
  padding: 16px;
  margin-top: 14px;
  background: var(--navy);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.2s;
}
.btn-attiva:hover {
  background: var(--blue);
}
.btn-richiedi {
  background: #e53e3e;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 17px;
  padding: 16px 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.btn-richiedi:hover {
  background: #c53030;
}
@media (max-width: 700px) {
  .plans-grid-new {
    flex-direction: column;
  }
}

/* ===== SIMPLE TOPBAR (shared) ===== */
.simple-topbar {
  display: flex;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid #eee;
}
.simple-topbar > img.landing-logo,
.simple-topbar > div:first-child {
  flex: 0 0 60px;
}
.simple-topbar > div.user-avatar-wrap {
  flex: 0 0 60px;
  display: flex;
  justify-content: flex-end;
}
.simple-topbar-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
  text-align: center;
  flex: 1;
}

/* ===== THANK YOU PAGE ===== */
#thankyou {
  background: #fff;
  flex-direction: column;
}
.simple-centered {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
}
.ty-big-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: var(--navy);
  margin-bottom: 24px;
}
.ty-big-sub {
  font-size: 18px;
  color: #333;
  margin-bottom: 40px;
  line-height: 1.6;
}
.btn-torna {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 20px 48px;
  font-size: 18px;
  cursor: pointer;
  font-family: "Open Sans", sans-serif;
  transition: background 0.2s;
}
.btn-torna strong {
  font-weight: 800;
}
.btn-torna:hover {
  background: var(--blue);
}

/* ===== CONSULTATION NEW ===== */
#consultation {
  background: #fff;
  flex-direction: column;
}
.consult-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.consult-header-text {
  text-align: center;
  flex: 1;
}
.consult-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 2px;
}
.consult-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
}
.consult-desc-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 11px 32px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  text-align: center;
}
.consult-outer {
  display: flex;
  justify-content: center;
  padding: 28px 20px 40px;
}
.consult-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(26, 39, 68, 0.1);
  padding: 28px;
  width: 100%;
  max-width: 780px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.consult-main {
  display: flex;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
}
.consult-info-box {
  flex: 0 0 176px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
}
.consult-info-box p {
  font-size: 12px;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.55;
}
.consult-info-box p:last-child {
  margin-bottom: 0;
}
.consult-calendar {
  flex: 1;
  min-width: 0;
  padding: 0;
}
.cal-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}
.cal-month-label {
  font-size: 16px;
  color: #222;
  font-weight: 500;
  min-width: 140px;
  text-align: center;
}
.cal-nav-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #333;
  padding: 0 8px;
  line-height: 1;
}
.cal-nav-btn:hover {
  color: var(--blue);
}
.consult-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.consult-day-name {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  padding: 4px 0 8px;
}
.consult-cal-day {
  font-size: 14px;
  padding: 8px 4px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px auto;
}
.consult-cal-day:hover:not(.empty) {
  background: #dbeafe;
  color: var(--blue);
}
.consult-cal-day.today {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}
.consult-cal-day.selected {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}
.consult-cal-day.has-dot {
  position: relative;
}
.consult-cal-day.has-dot::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
}
.consult-cal-day.selected.has-dot::after {
  background: #fff;
}
.consult-cal-day.empty {
  cursor: default;
}
.consult-times {
  flex: 0 0 130px;
}
.consult-day-label {
  font-size: 13px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}
.consult-slots-wrap {
  height: 264px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.consult-slots-wrap::-webkit-scrollbar {
  width: 5px;
}
.consult-slots-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.consult-slots {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.consult-slot {
  background: #fff;
  border: 1.5px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 12px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  width: 100%;
}
.consult-slot:hover,
.consult-slot.selected {
  background: var(--blue);
  color: #fff;
}
.btn-prenota {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-prenota:hover {
  background: var(--blue);
}
@media (max-width: 768px) {
  .consult-main {
    flex-direction: column;
  }
  .consult-info-box {
    flex: none;
    width: 100%;
  }
  .consult-times {
    flex: none;
    width: 100%;
  }
  .consult-slots-wrap {
    height: 120px;
  }
  .consult-slots {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ===== CONFIRMED CONSULT ===== */
#confirmedconsult {
  background: #fff;
  flex-direction: column;
}
.confirmed-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
}
.confirmed-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 36px;
}
.confirmed-box {
  border: 2px solid var(--navy);
  border-radius: 4px;
  padding: 24px 60px;
  margin-bottom: 28px;
  text-align: left;
}
.confirmed-row {
  display: flex;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 10px;
}
.confirmed-row:last-child {
  margin-bottom: 0;
}
.confirmed-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
  min-width: 80px;
}
.confirmed-value {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
}
.confirmed-note {
  font-size: 15px;
  color: #444;
  margin-bottom: 40px;
}
.confirmed-actions {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-confirmed {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 18px 40px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.2s;
  min-width: 180px;
}
.btn-confirmed:hover {
  background: var(--blue);
}

/* ===== LEVEL TEST ===== */
#leveltest {
  background: #fff;
  flex-direction: column;
}
.lt-body {
  display: flex;
  gap: 32px;
  padding: 28px 32px 40px;
  align-items: flex-start;
  flex: 1;
}
.lt-chart-wrap {
  flex: 0 0 480px;
  background: #cc0000;
  border-radius: 10px;
  padding: 16px;
}
.lt-chart-title {
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
}
.lt-chart-title strong {
  font-weight: 800;
}
.lt-chart {
  display: flex;
  gap: 8px;
  height: 300px;
}
.lt-y-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 24px;
}
.lt-y-labels span {
  font-size: 11px;
  color: #fff;
  font-weight: 700;
}
.lt-bars {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  flex: 1;
}
.lt-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}
.lt-bar {
  background: #cc0000;
  border: 2px solid #fff;
  border-radius: 4px 4px 0 0;
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 20px;
}
.lt-bar-num {
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  padding-top: 3px;
}
.lt-bar-label {
  font-size: 9px;
  color: #fff;
  margin-top: 3px;
}
.lt-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lt-desc-box {
  border: 1.5px solid #ccc;
  border-radius: 8px;
  padding: 20px 24px;
}
.lt-desc-box p {
  font-size: 14px;
  color: #222;
  line-height: 1.7;
  margin-bottom: 14px;
  text-align: justify;
}
.lt-desc-box p:last-child {
  margin-bottom: 0;
}
.btn-inizia-test {
  background: #3a7d14;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 18px 40px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  align-self: center;
  transition: background 0.2s;
}
.btn-inizia-test:hover {
  background: #2d6010;
}

/* ===== REGISTER NEW ===== */
#register {
  background: #fff;
}
.auth-new-wrap {
  display: flex;
  width: 100%;
  min-height: 100vh;
}
.auth-new-left {
  flex: 1;
  padding: 48px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.auth-new-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--blue);
  margin-bottom: 28px;
  text-align: center;
}
.auth-form-new {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
}
.auth-label-new {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 6px;
  margin-top: 16px;
}
.auth-label-new:first-of-type {
  margin-top: 0;
}
.auth-input-new {
  border: 1.5px solid #ccc;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  background: #f3f4f6;
  outline: none;
}
.auth-input-new:focus {
  border-color: var(--blue);
  background: #fff;
}
.auth-pw-wrap {
  position: relative;
}
.auth-pw-wrap .auth-input-new {
  width: 100%;
  box-sizing: border-box;
  padding-right: 44px;
}
.auth-pw-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #777;
}
.auth-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  margin-top: 18px;
  cursor: pointer;
}
.auth-check-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.btn-registrati {
  margin-top: 24px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  max-width: 260px;
  align-self: center;
  transition: background 0.2s;
  letter-spacing: 1px;
}
.btn-registrati:hover {
  background: var(--blue);
}
.auth-switch-new {
  margin-top: 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  text-align: center;
}
.auth-switch-link {
  color: var(--blue);
  cursor: pointer;
  text-decoration: none;
}
.auth-new-right {
  flex: 0 0 300px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 32px 40px;
}
.auth-logo-right {
  height: 100px;
  width: auto;
}

/* ===== DASHBOARD NEW ===== */
#dashboard {
  background: #fff;
  flex-direction: column;
  position: relative;
}
.db-topbar {
  display: flex;
  align-items: flex-start;
  padding: 20px 28px 12px;
  gap: 16px;
}
.db-top-left {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.db-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
  border: 2px solid #ccc;
}
.db-plan-status {
  text-align: center;
}
.db-no-plan {
  display: block;
  font-size: 12px;
  color: #555;
}
.db-abbonati {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--navy);
  cursor: pointer;
}
.db-top-center {
  flex: 1;
  text-align: center;
}
.db-hello {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: #222;
}
.db-how {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 36px;
  color: #222;
  margin: 4px 0 14px;
}
.db-mood-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.db-mood {
  border: 1.5px solid var(--navy);
  border-radius: 4px;
  padding: 8px 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.db-mood:hover,
.db-mood.selected {
  background: var(--navy);
  color: #fff;
}
.db-top-right {
  flex: 0 0 180px;
  display: flex;
  justify-content: flex-end;
}
.db-logo {
  height: 60px;
  width: auto;
}
.db-credits-bar {
  border-top: 2px solid #e07020;
  border-bottom: 1px solid #eee;
  padding: 10px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.db-credits-left {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #111;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.db-credits-left strong {
  font-weight: 900;
}
.db-buy-more {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--navy);
  cursor: pointer;
}
.db-level-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.db-level-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #111;
}
.db-level-text strong {
  font-weight: 900;
}
.db-see-bsg {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 11px;
  color: var(--navy);
  cursor: pointer;
}
.db-main-grid {
  display: flex;
  gap: 28px;
  padding: 36px 28px 20px;
  justify-content: center;
}
.db-card-locked {
  flex: 0 0 280px;
  background: #d8d8d8;
  border-radius: 20px;
  border: 1.5px solid #bbb;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.db-card-locked:hover {
  background: #c8c8c8;
  transform: translateY(-2px);
}
.db-card-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #666;
  line-height: 1.2;
  margin-bottom: 10px;
}
.db-card-sub {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #777;
  letter-spacing: 1px;
}
.db-bottom-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 16px 28px 32px;
  flex-wrap: wrap;
}
.btn-fai-test-db,
.btn-richiedi-db {
  position: static !important;
}

@media (max-width: 768px) {
  .db-bottom-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px 28px;
    gap: 12px;
  }
  .btn-fai-test-db,
  .btn-scopri-db,
  .btn-richiedi-db {
    width: 100%;
    text-align: center;
  }
}
.btn-scopri-db {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-scopri-db:hover {
  background: var(--blue);
}
.btn-richiedi-db {
  background: #cc0000;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.4;
  position: absolute;
  right: 28px;
  bottom: 32px;
  transition: background 0.2s;
}
.btn-richiedi-db:hover {
  background: #a00000;
}

/* ===== DASHBOARD MODAL ===== */
.db-modal-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.db-modal-overlay.open {
  display: flex;
}
.db-modal-box {
  background: #fff;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  padding: 32px 36px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.db-modal-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: #111;
  text-decoration: underline;
  margin-bottom: 14px;
}
.db-modal-body {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 24px;
}
.btn-fai-test {
  background: #3a7d14;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 14px 28px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-fai-test:hover {
  background: #2d6010;
}

/* ===== REQUEST INFO ===== */
#requestinfo {
  background: #fff;
  flex-direction: column;
}
.ri-body {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 32px;
}
.ri-form {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ri-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.ri-form label {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}
.ri-form input,
.ri-form textarea {
  border: 1.5px solid #ccc;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  background: #f3f4f6;
  outline: none;
  font-family: "Open Sans", sans-serif;
  resize: vertical;
}
.ri-form input:focus,
.ri-form textarea:focus {
  border-color: var(--blue);
  background: #fff;
}

.btn-fai-test-db {
  background: #3a7d14;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 14px 24px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  position: absolute;
  left: 28px;
  bottom: 32px;
}
.btn-fai-test-db:hover {
  background: #2d6010;
}

/* ===== USER AVATAR & DROPDOWN ===== */
.user-avatar-wrap {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.user-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ddd;
  border: 2px solid #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.user-avatar-circle:hover {
  border-color: var(--navy);
}

.user-menu {
  display: none;
  position: absolute;
  top: 50px;
  right: 0; /* ← era left: 0 */
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  z-index: 999;
}

.user-menu.open {
  display: block;
}
.user-menu-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--navy);
  padding: 14px 16px 8px;
  border-bottom: 1px solid #eee;
}
.user-menu-item {
  padding: 11px 16px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}
.user-menu-item:hover {
  background: #f3f4f6;
}
.user-menu-divider {
  height: 1px;
  background: #eee;
  margin: 4px 0;
}
.user-menu-logout {
  color: #e53e3e;
  font-weight: 600;
}
.user-menu-logout:hover {
  background: #fff5f5;
}

/* ===== TOAST NOTIFICATION ===== */
#toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  transition:
    opacity 0.3s,
    transform 0.3s;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== BACK BUTTON ===== */
.back-btn {
  position: fixed;
  top: 16px;
  left: 24px;
  z-index: 500;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition:
    background 0.2s,
    transform 0.2s;
  opacity: 0.85;
}
.back-btn:hover {
  background: var(--blue);
  transform: translateY(-2px);
  opacity: 1;
}
#backBtn {
  display: none;
}

/* ===== WRITTEN TEST ===== */
#writtentest {
  background: #fff;
  flex-direction: column;
}
.wt-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
}
.wt-content {
  text-align: center;
  max-width: 600px;
}
.wt-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 20px;
}
.wt-desc {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 40px;
}
.btn-wt-done {
  background: #3a7d14;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 60px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-wt-done:hover {
  background: #2d6010;
}

/* ===== LIVE LESSONS ===== */
#livelessons {
  background: #f8f9fb;
  flex-direction: column;
}
.ll-body {
  flex: 1;
  padding: 28px 32px 48px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.ll-section {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #e5e7eb;
  margin-bottom: 32px;
  overflow: hidden;
}
.ll-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1.5px solid #f0f0f0;
  flex-wrap: wrap;
  gap: 12px;
}
.ll-section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--navy);
}
.ll-book-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-book-type {
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-book-conv {
  background: #dbeafe;
  color: var(--blue);
}
.btn-book-conv:hover {
  background: var(--blue);
  color: #fff;
}
.btn-book-one {
  background: #fce7f3;
  color: #be185d;
}
.btn-book-one:hover {
  background: #be185d;
  color: #fff;
}
.ll-table-wrap {
  overflow-x: auto;
}
.ll-table {
  width: 100%;
  border-collapse: collapse;
}
.ll-table thead tr {
  background: #f3f4f6;
}
.ll-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.ll-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: #333;
  border-top: 1px solid #f0f0f0;
  vertical-align: middle;
}
.ll-table tbody tr:hover {
  background: #fafafa;
}
.ll-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
}
.ll-tag-conv {
  background: #dbeafe;
  color: var(--blue);
}
.ll-tag-one {
  background: #fce7f3;
  color: #be185d;
}
.ll-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
}
.ll-upcoming {
  background: #d1fae5;
  color: #065f46;
}
.ll-done {
  background: #f3f4f6;
  color: #6b7280;
}
.ll-note {
  font-size: 13px;
  color: #888;
  font-style: italic;
}
.btn-ll-cancel {
  background: none;
  border: 1.5px solid #fca5a5;
  color: #e53e3e;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ll-cancel:hover {
  background: #e53e3e;
  color: #fff;
  border-color: #e53e3e;
}

/* ===== LIVE LESSONS BOTTOM BAR ===== */
.ll-bottom-bar {
  display: flex;
  gap: 20px;
  padding: 20px 32px 36px;
  justify-content: center;
  background: #fff;
  border-top: 1.5px solid #e5e7eb;
}
.btn-book-big {
  border: none;
  border-radius: 12px;
  padding: 18px 48px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-book-big-conv {
  background: var(--blue);
  color: #fff;
}
.btn-book-big-conv:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}
.btn-book-big-one {
  background: #be185d;
  color: #fff;
}
.btn-book-big-one:hover {
  background: #9d174d;
  transform: translateY(-2px);
}

/* ===== PAYMENTS ===== */
#payments {
  background: #f8f9fb;
  flex-direction: column;
}
.pay-body {
  flex: 1;
  padding: 28px 32px 48px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.pay-active-plan {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.pay-active-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pay-active-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}
.pay-active-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 1px;
}
.pay-active-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pay-active-price {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 32px;
}
.pay-active-period {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.8;
}
.pay-active-renewal {
  font-size: 13px;
  opacity: 0.7;
}
.pay-section {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #e5e7eb;
  overflow: hidden;
  margin-bottom: 20px;
}
.pay-section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--navy);
  padding: 18px 24px;
  border-bottom: 1.5px solid #f0f0f0;
}
.pay-table-wrap {
  overflow-x: auto;
}
.pay-table {
  width: 100%;
  border-collapse: collapse;
}
.pay-table thead tr {
  background: #f3f4f6;
}
.pay-table th {
  padding: 11px 16px;
  text-align: left;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pay-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: #333;
  border-top: 1px solid #f0f0f0;
  vertical-align: middle;
}
.pay-table tbody tr:hover {
  background: #fafafa;
}
.pay-credits-badge {
  display: inline-block;
  background: #ede9fe;
  color: #7c3aed;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  padding: 3px 8px;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.3px;
}
.pay-plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 12px;
}
.pay-start {
  background: #dbeafe;
  color: var(--blue);
}
.pay-move {
  background: #d1fae5;
  color: #065f46;
}
.pay-max {
  background: #fce7f3;
  color: #be185d;
}
.pay-amount {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--navy);
}
.pay-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
}
.pay-paid {
  background: #d1fae5;
  color: #065f46;
}
.pay-pending {
  background: #fef3c7;
  color: #92400e;
}
.btn-pay-receipt {
  background: none;
  border: 1.5px solid #cbd5e1;
  color: #555;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: "Montserrat", sans-serif;
}
.btn-pay-receipt:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-change-plan {
  background: none;
  border: 2px solid var(--navy);
  color: var(--navy);
  border-radius: 10px;
  padding: 12px 32px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-change-plan:hover {
  background: var(--navy);
  color: #fff;
}

.mood-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
  resize: vertical;
  min-height: 100px;
  outline: none;
}
.mood-textarea:focus {
  border-color: var(--blue);
}
.btn-mood-cancel {
  background: none;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: #555;
}
.btn-mood-save {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-mood-save:hover {
  background: var(--blue);
}

/* ===== MY PROFILE ===== */
#myprofile {
  background: #f8f9fb;
  flex-direction: column;
}
.prof-body {
  flex: 1;
  padding: 28px 32px 48px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

/* Hero */
.prof-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #e5e7eb;
  padding: 24px 28px;
}
.prof-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.prof-avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-change-photo {
  background: none;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
}
.btn-change-photo:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.prof-hero-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prof-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--navy);
}
.prof-plan-badge {
  display: inline-block;
  background: #d1fae5;
  color: #065f46;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
}
.prof-level {
  font-size: 14px;
  color: #555;
}
.prof-level-link {
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
  font-size: 13px;
}

/* Sections */
.prof-section {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #e5e7eb;
  overflow: hidden;
  margin-bottom: 20px;
}
.prof-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1.5px solid #f0f0f0;
}
.prof-section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
}
.btn-prof-edit {
  background: none;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}
.btn-prof-edit:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* Fields */
.prof-fields {
  padding: 20px 24px;
}
.prof-field-row {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}
.prof-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prof-field-full {
  flex: 1 1 100%;
}
.prof-field label {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.prof-field input {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  background: #f8f9fb;
  color: #333;
  outline: none;
  font-family: "Open Sans", sans-serif;
}
.prof-field input:not([disabled]) {
  background: #fff;
  border-color: var(--blue);
}
.btn-prof-cancel {
  background: none;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  padding: 9px 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  margin-right: 8px;
}
.btn-prof-save {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-prof-save:hover {
  background: var(--blue);
}

/* Preferences */
.prof-prefs {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.prof-pref-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.prof-pref-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.prof-pref-label {
  font-size: 13px;
  color: #888;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}
.prof-pref-value {
  font-size: 14px;
  color: var(--navy);
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
}

/* ===== NOTIFICATIONS ===== */
#notifications {
  background: #f8f9fb;
  flex-direction: column;
}
.notif-body {
  flex: 1;
  padding: 28px 32px 48px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #e5e7eb;
  overflow: hidden;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  transition: background 0.15s;
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover {
  background: #fafafa;
}
.notif-unread {
  background: #f0f7ff;
}
.notif-unread:hover {
  background: #e8f2ff;
}
.notif-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.notif-icon-lesson {
  background: #dbeafe;
}
.notif-icon-payment {
  background: #d1fae5;
}
.notif-icon-mod {
  background: #fef3c7;
}
.notif-icon-plan {
  background: #fce7f3;
}
.notif-icon-welcome {
  background: #ede9fe;
}
.notif-content {
  flex: 1;
}
.notif-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 4px;
}
.notif-msg {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 6px;
}
.notif-time {
  font-size: 12px;
  color: #aaa;
  font-family: "Montserrat", sans-serif;
}
.notif-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 6px;
}

.notif-badge {
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 800;
  margin-left: 6px;
  font-family: "Montserrat", sans-serif;
}

#landing {
  background: #0d1f3c;
  font-family: "Montserrat", sans-serif;
  flex-direction: column;
}

.nl-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 68px;
  background: #0d1f3c;
  border-bottom: 3px solid #d42b2b;
}
.nl-logo {
  height: 44px;
  cursor: pointer;
  filter: brightness(0) invert(1);
}
.nl-accedi {
  background: #d42b2b;
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.3px;
}

.nl-hero {
  padding: 64px 56px 56px;
  display: grid;
  grid-template-columns: 58% 1fr;
  gap: 56px;
  align-items: start;
  background: #0d1f3c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nl-eyebrow {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #f5c842;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nl-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: #f5c842;
}
.nl-title {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 20px;
}
.nl-title-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 10px;
  font-weight: 400;
  max-width: 560px;
}
.nl-plain-text {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 14px;
  margin-bottom: 32px;
  font-style: italic;
}
.nl-btns {
  display: flex;
  gap: 14px;
}
.nl-btn-primary {
  background: #d42b2b;
  color: #fff;
  border: none;
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
}
.nl-btn-level {
  background: #f5c842;
  color: #0d1f3c;
  border: none;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
}

.nl-panel {
  background: #122044;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.nl-panel-row {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nl-panel-row:last-child {
  border-bottom: none;
}
.nl-panel-bar {
  width: 5px;
  min-height: 80px;
  flex-shrink: 0;
  align-self: stretch;
}
.nl-panel-row:nth-child(1) .nl-panel-bar {
  background: #f5c842;
}
.nl-panel-row:nth-child(2) .nl-panel-bar {
  background: #d42b2b;
}
.nl-panel-row:nth-child(3) .nl-panel-bar {
  background: rgba(255, 255, 255, 0.25);
}
.nl-panel-inner {
  padding: 22px 24px;
}
.nl-panel-inner strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.nl-panel-inner span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.nl-demo-strip {
  background: #d42b2b;
  padding: 16px 56px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nl-demo-left {
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
}

.nl-videos {
  padding: 48px 56px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background-color: rgba(255, 255, 255, 0.04);
}
.nl-vid {
  background: #122044;
  overflow: hidden;
}
.nl-vid-thumb {
  height: 196px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.nl-vid:nth-child(1) .nl-vid-thumb {
  background: linear-gradient(150deg, #162848, #0d1f3c);
}
.nl-vid:nth-child(2) .nl-vid-thumb {
  background: linear-gradient(150deg, #3a0c0c, #1a0606);
}
.nl-vid:nth-child(3) .nl-vid-thumb {
  background: linear-gradient(150deg, #1a1500, #0d1200);
}
.nl-vid-num {
  position: absolute;
  right: 12px;
  top: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 72px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
}
.nl-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.nl-vid:nth-child(1) .nl-play {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.nl-vid:nth-child(2) .nl-play {
  background: #d42b2b;
}
.nl-vid:nth-child(3) .nl-play {
  background: #f5c842;
}
.nl-play::after {
  content: "▶";
  font-size: 18px;
  color: #fff;
  margin-left: 4px;
}
.nl-vid:nth-child(3) .nl-play::after {
  color: #0d1f3c;
}
.nl-vid-body {
  padding: 24px 24px 28px;
  border-top: 3px solid rgba(255, 255, 255, 0.04);
}
.nl-vid:nth-child(1) .nl-vid-body {
  border-top-color: rgba(255, 255, 255, 0.15);
}
.nl-vid:nth-child(2) .nl-vid-body {
  border-top-color: #d42b2b;
}
.nl-vid:nth-child(3) .nl-vid-body {
  border-top-color: #f5c842;
}
.nl-vid-title {
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.nl-vid-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.nl-cta-row {
  padding: 52px 56px 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0d1f3c;
}
.nl-btn-cta {
  background: #d42b2b;
  color: #fff;
  border: none;
  padding: 22px 64px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.3px;
}

/* ============================================================
   LANDING PAGE — Layout classes (sostituiscono inline styles)
   ============================================================ */

/* Topbar */
.lp-topbar {
  background: #0d1f3c;
  border-bottom: 3px solid #d42b2b;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.lp-topbar-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  cursor: pointer;
}
.lp-topbar-accedi {
  background: #d42b2b !important;
  border-color: #d42b2b !important;
  border-radius: 0 !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  margin-left: auto;
}

/* Hero */
.lp-hero {
  background: #0d1f3c;
  display: grid;
  grid-template-columns: 58% 1fr;
  min-height: 480px;
}
.lp-hero-left {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.lp-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #f5c842;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-hero-eyebrow span {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #f5c842;
}
.lp-hero-h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 26px;
  color: #fff;
  text-align: left;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.35;
}
.lp-hero-desc {
  color: rgba(255, 255, 255, 0.65);
  text-align: left;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 10px;
}
.lp-hero-sub {
  color: rgba(255, 255, 255, 0.45);
  text-align: left;
  font-style: italic;
  font-size: 14px;
  margin-bottom: 32px;
}
.lp-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.lp-hero-btn {
  border: none;
  border-radius: 0 !important;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
}
.lp-hero-btn-red {
  background: #d42b2b;
  color: #fff;
}
.lp-hero-btn-gold {
  background: #f5c842;
  color: #0d1f3c;
  padding: 16px 28px;
}

/* Hero right panel */
.lp-hero-right {
  background: #122044;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.lp-panel-label {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
  padding: 28px 28px 16px;
}
.lp-panel-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.lp-panel-row:last-child {
  border-bottom: none;
}
.lp-panel-bar {
  width: 5px;
  min-height: 80px;
  flex-shrink: 0;
  align-self: stretch;
}
.lp-panel-bar-gold {
  background: #f5c842;
}
.lp-panel-bar-red {
  background: #d42b2b;
}
.lp-panel-bar-gray {
  background: rgba(255, 255, 255, 0.25);
}
.lp-panel-text {
  padding: 20px 24px;
}
.lp-panel-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.lp-panel-text span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* Demo strip */
.lp-demo-strip {
  background: #d42b2b;
  padding: 16px 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.lp-demo-strip span {
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

/* Video cards */
.lp-video-cards {
  background: #0d1f3c;
  padding: 48px 48px 0;
  display: flex;
  gap: 2px;
}
.lp-video-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.lp-video-card-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
  cursor: pointer;
}
.lp-video-card-thumb svg {
  width: 100%;
  height: 220px;
}
.lp-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-video-card-body {
  padding: 22px 24px 28px;
}
.lp-video-card-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  margin: 0 0 8px;
}
.lp-video-card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0;
}

/* Social proof */
.lp-proof {
  background: #0d1f3c;
  padding: 52px 56px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.lp-stats-row {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.lp-stat {
  text-align: center;
  padding: 16px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.lp-stat:last-child {
  border-right: none;
}
.lp-stat-num {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 42px;
  color: #f5c842;
}
.lp-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lp-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.lp-testimonial {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 24px;
}
.lp-testimonial-stars {
  color: #f5c842;
  font-size: 20px;
  margin-bottom: 10px;
}
.lp-testimonial-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 14px;
}
.lp-testimonial-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}
.lp-testimonial-name span {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

/* Tutors */
.lp-tutors-section {
  background: #0f2444;
  padding: 52px 56px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.lp-tutors-header {
  text-align: center;
  margin-bottom: 36px;
}
.lp-tutors-eyebrow {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #f5c842;
  font-weight: 700;
  margin-bottom: 12px;
}
.lp-tutors-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: #fff;
}
.lp-tutors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.lp-tutor-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}
.lp-tutor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.lp-tutor-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}
.lp-tutor-role {
  font-size: 12px;
  color: #f5c842;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.lp-tutor-bio {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* Bottom CTA */
.lp-bottom-cta {
  background: #0d1f3c;
  padding: 52px 56px 56px;
  display: flex;
  justify-content: center;
}
.lp-bottom-cta .btn-cta-big {
  background: #d42b2b;
  border-radius: 0;
  font-size: 18px;
  padding: 22px 64px;
  font-weight: 800;
  max-width: 600px;
  width: 100%;
}

/* ============================================================
   RESPONSIVE — Mobile / Tablet
   ============================================================ */
@media (max-width: 768px) {
  /* Topbar */
  .lp-topbar {
    padding: 12px 16px;
  }
  .lp-topbar-logo {
    height: 34px;
  }

  /* Hero: stack columns */
  .lp-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .lp-hero-left {
    padding: 40px 24px 32px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .lp-hero-h1 {
    font-size: 22px;
  }
  .lp-hero-btns {
    flex-direction: column;
  }
  .lp-hero-btn,
  .lp-hero-btn-gold {
    width: 100%;
    text-align: center;
  }
  .lp-hero-right {
    display: none;
  } /* nasconde il panel su mobile */

  /* Demo strip */
  .lp-demo-strip {
    padding: 14px 20px;
  }
  .lp-demo-strip span {
    font-size: 14px;
    text-align: center;
  }

  /* Video cards: stack */
  .lp-video-cards {
    flex-direction: column;
    padding: 24px 16px 0;
    gap: 16px;
  }
  .lp-video-card-thumb {
    height: 180px;
  }
  .lp-video-card-thumb svg {
    height: 180px;
  }

  /* Stats */
  .lp-proof {
    padding: 36px 20px 32px;
  }
  .lp-stats-row {
    gap: 0;
  }
  .lp-stat {
    padding: 14px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 50%;
  }
  .lp-stat:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .lp-stat:last-child {
    border-bottom: none;
  }
  .lp-stat-num {
    font-size: 32px;
  }
  .lp-stat-label {
    font-size: 11px;
  }

  /* Testimonials: single column */
  .lp-testimonials {
    grid-template-columns: 1fr;
  }

  /* Tutors: single column */
  .lp-tutors-section {
    padding: 36px 20px 32px;
  }
  .lp-tutors-grid {
    grid-template-columns: 1fr;
  }

  /* Bottom CTA */
  .lp-bottom-cta {
    padding: 36px 20px 40px;
  }
  .lp-bottom-cta .btn-cta-big {
    font-size: 15px;
    padding: 18px 24px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Hero: riduce padding */
  .lp-hero-left {
    padding: 40px 32px;
  }

  /* Stats: 2 per riga */
  .lp-stat {
    padding: 16px 24px;
  }

  /* Video cards: rimangono affiancate ma riduce padding */
  .lp-video-cards {
    padding: 32px 24px 0;
  }

  /* Grid 3 col → 2 col */
  .lp-testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
  .lp-tutors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sections */
  .lp-proof,
  .lp-tutors-section {
    padding: 40px 32px;
  }
}

/* ============================================================
   RESPONSIVE GLOBALE — tutte le pagine interne
   ============================================================ */

/* ── Tablet (≤1024px) ─────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Dashboard topbar: riduce padding */
  .db-topbar {
    padding: 16px 20px 10px;
    gap: 12px;
  }
  .db-top-left {
    flex: 0 0 140px;
  }
  .db-how {
    font-size: 28px;
  }

  /* Plans */
  .plans-body-new {
    padding: 28px 20px 40px;
  }
  .plans-grid-new {
    gap: 16px;
  }

  /* Level test: riduce chart */
  .lt-chart-wrap {
    flex: 0 0 360px;
  }

  /* Payments table: scroll orizzontale */
  .pay-table-wrap {
    overflow-x: auto;
  }
  .pay-table {
    min-width: 600px;
  }

  /* Profile: 2 colonne rimangono ma si comprimono */
  .prof-field-row {
    gap: 12px;
  }

  /* Notifications body */
  .notif-body {
    padding: 20px 20px 40px;
  }
}

/* ── Mobile (≤768px) ──────────────────────────────────────── */
@media (max-width: 768px) {
  /* ── Shared ── */
  .simple-topbar {
    padding: 12px 16px;
  }
  .simple-topbar-title {
    font-size: 16px;
  }
  .back-btn {
    top: 10px;
    left: 12px;
    padding: 8px 14px;
    font-size: 12px;
  }

  /* ── Auth / Login ── */
  .auth-wrap {
    padding: 24px 16px;
  }
  .auth-box {
    padding: 28px 20px;
  }

  /* ── Register ── */
  .auth-new-wrap {
    flex-direction: column;
  }
  .auth-new-left {
    padding: 32px 20px 24px;
  }
  .auth-new-right {
    display: none;
  }
  .auth-new-title {
    font-size: 22px;
  }
  .btn-registrati {
    max-width: 100%;
  }

  /* ── Dashboard ── */
  .db-topbar {
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 12px;
    gap: 16px;
  }
  .db-top-left {
    flex: none;
    width: 100%;
    align-items: center;
  }
  .db-top-center {
    width: 100%;
  }
  .db-top-right {
    display: none;
  }
  .db-hello {
    font-size: 18px;
  }
  .db-how {
    font-size: 26px;
    margin-bottom: 10px;
  }
  .db-mood-btns {
    flex-wrap: wrap;
    justify-content: center;
  }
  .db-mood {
    padding: 7px 14px;
    font-size: 12px;
  }
  .db-credits-bar {
    padding: 10px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .db-main-grid {
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    gap: 16px;
  }
  .db-card-locked,
  .db-card--active {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
  .db-bottom-bar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 28px;
  }
  .btn-richiedi-db,
  .btn-fai-test-db {
    position: static;
    width: 100%;
    max-width: 320px;
  }
  .btn-scopri-db {
    width: 100%;
    max-width: 320px;
  }

  /* ── Plans ── */
  .plans-topbar {
    padding: 12px 16px;
  }
  .plans-body-new {
    padding: 20px 16px 32px;
  }
  .plans-grid-new {
    flex-direction: column;
    gap: 20px;
  }
  .plan-col {
    width: 100%;
  }

  /* ── Level test ── */
  .lt-body {
    flex-direction: column;
    padding: 20px 16px 32px;
    gap: 20px;
  }
  .lt-chart-wrap {
    flex: none;
    width: 100%;
  }
  .lt-chart {
    height: 220px;
  }
  .lt-right {
    width: 100%;
  }

  /* ── Level gate / Written test ── */
  .wt-body {
    padding: 40px 16px;
  }
  .wt-title {
    font-size: 22px;
  }
  .wt-desc {
    font-size: 14px;
  }

  /* ── Book lesson ── */
  .live-body {
    padding: 20px 16px;
  }
  .calendar-wrap {
    padding: 16px;
  }
  .time-slots {
    gap: 6px;
  }
  .time-slot {
    padding: 7px 12px;
    font-size: 12px;
  }
  .live-actions {
    flex-direction: column;
  }
  .live-actions .btn {
    min-width: 0;
    width: 100%;
  }

  /* ── Consultation ── */
  .consult-topbar {
    padding: 12px 16px;
  }
  .consult-outer {
    padding: 16px 12px 32px;
  }
  .consult-card {
    padding: 16px;
    gap: 16px;
  }
  .consult-main {
    flex-direction: column;
  }
  .consult-info-box {
    flex: none;
    width: 100%;
  }
  .consult-times {
    flex: none;
    width: 100%;
  }
  .consult-slots-wrap {
    height: 100px;
  }
  .consult-slots {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .consult-slot {
    width: auto;
    padding: 8px 10px;
    font-size: 13px;
  }
  .btn-prenota {
    padding: 12px;
  }

  /* ── Confirmed consult ── */
  .confirmed-body {
    padding: 40px 16px;
  }
  .confirmed-box {
    padding: 20px 20px;
  }
  .confirmed-label,
  .confirmed-value {
    font-size: 16px;
  }
  .confirmed-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .btn-confirmed {
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
    font-size: 15px;
  }

  /* ── Live lessons ── */
  .live-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
  .live-tab {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* ── Request info ── */
  .ri-body {
    padding: 24px 16px;
  }
  .ri-form {
    gap: 0;
  }

  /* ── My profile ── */
  .prof-body {
    padding: 20px 16px 40px;
  }
  .prof-hero {
    padding: 20px 16px;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }
  .prof-name {
    font-size: 22px;
  }
  .prof-field-row {
    flex-direction: column;
    gap: 0;
  }
  .prof-fields {
    padding: 16px;
  }
  .prof-section-header {
    padding: 14px 16px;
  }

  /* ── My plan ── */
  .myplan-body {
    padding: 20px 16px 40px;
  }

  /* ── Notifications ── */
  .notif-body {
    padding: 16px 12px 40px;
  }
  .notif-item {
    padding: 14px 12px;
    gap: 10px;
  }
  .notif-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  /* ── Payments ── */
  .pay-body {
    padding: 20px 12px 40px;
  }
  .pay-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pay-table {
    min-width: 560px;
    font-size: 12px;
  }

  /* ── Thank you ── */
  .simple-centered {
    padding: 40px 16px;
  }
  .ty-big-title {
    font-size: 24px;
  }
  .ty-big-sub {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .btn-torna {
    padding: 14px 32px;
    font-size: 15px;
  }

  /* ── Onboarding ── */
  .onboarding-body {
    padding: 40px 16px;
  }

  /* ── Buy credits ── */
  .buycredits-body {
    padding: 20px 16px 40px;
  }

  /* ── Payment ── */
  .payment-wrap {
    padding: 20px 16px 40px;
  }
  .payment-inner {
    max-width: 100%;
  }

  /* ── Footer ── */
  #site-footer {
    padding: 32px 20px 24px;
  }
  #site-footer > div:first-child {
    flex-direction: column;
    gap: 28px;
  }
  #site-footer > div:last-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ── Small mobile (≤480px) ────────────────────────────────── */
@media (max-width: 480px) {
  /* Landing */
  .lp-hero-h1 {
    font-size: 20px;
  }
  .lp-stat-num {
    font-size: 28px;
  }

  /* Dashboard */
  .db-how {
    font-size: 22px;
  }

  /* Plans prezzi */
  .plan-price-new {
    font-size: 34px;
  }

  /* Auth */
  .auth-new-title {
    font-size: 20px;
  }

  /* Confirmed */
  .confirmed-title {
    font-size: 22px;
  }
  .confirmed-label,
  .confirmed-value {
    font-size: 14px;
  }

  /* Modals */
  .modal-box {
    padding: 20px 16px;
  }
  .modal-box h3 {
    font-size: 16px;
  }

  /* Forms */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  } /* evita zoom su iOS */
}

/* ============================================================
   FIX CRITICI MOBILE — aggiunti dopo verifica visiva
   ============================================================ */

/* 1. Blocca scroll orizzontale globale */
html {
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* 2. Hero landing: forza colonna singola e nasconde pannello dx */
@media (max-width: 768px) {
  .lp-hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
    width: 100% !important;
  }

  .lp-hero-right {
    display: none !important;
  }

  .lp-hero-left {
    width: 100% !important;
    max-width: 100% !important;
    padding: 32px 20px 24px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  /* Eyebrow: spaziatura ridotta, non spezza le parole */
  .lp-hero-eyebrow {
    letter-spacing: 2px !important;
    font-size: 10px !important;
    word-break: normal;
  }

  /* Bottoni hero: impilati, full width */
  .lp-hero-btns {
    flex-direction: column !important;
    gap: 10px;
  }
  .lp-hero-btn,
  .lp-hero-btn-gold {
    width: 100% !important;
    text-align: center !important;
  }

  /* Topbar: logo centrato senza overflow */
  .lp-topbar {
    padding: 12px 16px !important;
    overflow: visible;
  }
  .lp-topbar-logo {
    height: 36px !important;
  }

  /* Pulsante accedi: rimane a destra senza sbordare */
  .lp-topbar-accedi {
    font-size: 13px !important;
    padding: 10px 16px !important;
    white-space: nowrap;
  }
}

/* ============================================================
   FIX BOTTONI CTA + VIDEO CARDS — mobile
   ============================================================ */
@media (max-width: 768px) {
  /* ── Bottoni hero: colonna piena, niente troncature ── */
  .lp-hero-btns {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .lp-hero-btn,
  .lp-hero-btn-red,
  .lp-hero-btn-gold {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 16px 20px !important;
    font-size: 14px !important;
    white-space: normal !important;
    word-break: break-word;
    box-sizing: border-box !important;
  }

  /* ── Video cards: colonna singola ── */
  .lp-video-cards {
    flex-direction: column !important;
    padding: 24px 16px 0 !important;
    gap: 16px !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .lp-video-card {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }
  .lp-video-card-thumb {
    height: 200px !important;
  }
  .lp-video-card-thumb svg {
    width: 100% !important;
    height: 200px !important;
  }
}

/* ============================================================
   FIX TESTIMONIALS + TUTORS — mobile
   ============================================================ */
@media (max-width: 768px) {
  /* ── Testimonials: colonna singola ── */
  .lp-testimonials {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 0 4px;
  }
  .lp-testimonial {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* ── Tutors grid: colonna singola ── */
  .lp-tutors-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .lp-tutor-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* ── Proof section: padding ridotto ── */
  .lp-proof {
    padding: 32px 16px 28px !important;
  }
  .lp-tutors-section {
    padding: 32px 16px 28px !important;
  }

  /* ── Stats: 2 per riga invece di 4 in fila ── */
  .lp-stats-row {
    flex-wrap: wrap !important;
  }
  .lp-stat {
    width: 50% !important;
    padding: 14px 12px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .lp-stat:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .lp-stat:last-child {
    border-bottom: none !important;
  }
  .lp-stat-num {
    font-size: 30px !important;
  }
  .lp-stat-label {
    font-size: 10px !important;
  }
}
/* ============================================================
   LANDING — aggiunte per varianti card e play button
   ============================================================ */

/* Video card backgrounds */
.lp-video-card--selfstudy {
  background: #0f2444;
  border-top: 3px solid rgba(255, 255, 255, 0.2);
}
.lp-video-card--conversation {
  background: #1a0a0a;
  border-top: 3px solid #d42b2b;
}
.lp-video-card--onetoone {
  background: #0f1a08;
  border-top: 3px solid #f5c842;
}

/* Play button varianti */
.lp-play-btn--glass {
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 20px;
  padding-left: 4px;
}
.lp-play-btn--red {
  background: #d42b2b;
  box-shadow: 0 0 30px rgba(212, 43, 43, 0.6);
  color: white;
  font-size: 20px;
  padding-left: 4px;
}
.lp-play-btn--gold {
  background: #f5c842;
  box-shadow: 0 0 30px rgba(245, 200, 66, 0.5);
  color: #0d1f3c;
  font-size: 20px;
  padding-left: 4px;
}

/* Video overlay bg */
.lp-video-overlay {
  background: rgba(0, 0, 0, 0.2);
}

/* Tutor avatar varianti */
.lp-tutor-avatar--blue {
  background: linear-gradient(135deg, #2563eb, #0d1f3c);
}
.lp-tutor-avatar--red {
  background: linear-gradient(135deg, #d42b2b, #0d1f3c);
}
.lp-tutor-avatar--green {
  background: linear-gradient(135deg, #22c55e, #0d1f3c);
}

/* ============================================================
   RESPONSIVE landing — mobile fixes
   ============================================================ */
@media (max-width: 768px) {
  /* Topbar: niente posizionamento assoluto, flex normale */
  .lp-topbar {
    justify-content: space-between;
    padding: 12px 16px;
  }
  .lp-topbar-logo {
    position: static;
    transform: none;
    height: 34px;
  }

  /* Hero: colonna singola, pannello dx nascosto */
  .lp-hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
  }
  .lp-hero-left {
    padding: 32px 20px 28px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .lp-hero-right {
    display: none;
  }
  .lp-hero-h1 {
    font-size: 20px;
  }
  .lp-hero-btns {
    flex-direction: column;
  }
  .lp-hero-btn {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    font-size: 14px;
  }

  /* Demo strip */
  .lp-demo-strip {
    padding: 14px 20px;
  }
  .lp-demo-strip span {
    font-size: 14px;
  }

  /* Video cards: colonna singola */
  .lp-video-cards {
    flex-direction: column;
    padding: 20px 16px 0;
    gap: 16px;
  }
  .lp-video-card {
    width: 100%;
    flex: none;
  }

  /* Social proof */
  .lp-proof {
    padding: 32px 16px 28px;
  }
  .lp-stats-row {
    flex-wrap: wrap;
  }
  .lp-stat {
    width: 50%;
    padding: 14px 12px;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .lp-stat:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .lp-stat:last-child {
    border-bottom: none !important;
  }
  .lp-stat-num {
    font-size: 30px;
  }
  .lp-stat-label {
    font-size: 10px;
  }
  .lp-testimonials {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Tutors */
  .lp-tutors-section {
    padding: 32px 16px 28px;
  }
  .lp-tutors-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Bottom CTA */
  .lp-bottom-cta {
    padding: 32px 16px 36px;
  }
  .lp-bottom-cta .btn-cta-big {
    font-size: 15px;
    padding: 18px 24px;
  }
}
/* ============================================================
   AUTH PAGES — login & register (layout unificato)
   ============================================================ */

.auth-page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f7f8fb;
}

/* Header navy con logo centrato */
.auth-page-header {
  background: #1a2744;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid #d42b2b;
}
.auth-page-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  cursor: pointer;
}

/* Body centrato */
.auth-page-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Box form */
.auth-page-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(26, 39, 68, 0.1);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
}

/* Titolo */
.auth-page-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #1a2744;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

/* Errore */
.auth-page-error {
  color: #e53e3e;
  font-size: 13px;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #fff5f5;
  border-radius: 6px;
  border-left: 3px solid #e53e3e;
}
.auth-page-error a {
  color: #e53e3e;
  font-weight: 700;
  text-decoration: underline;
}

/* Submit button */
.auth-page-submit {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  font-size: 15px;
}

/* Nome + cognome affiancati */
.auth-page-name-row {
  display: flex;
  gap: 12px;
}
.auth-page-name-row .form-group {
  flex: 1;
}

/* Mobile */
@media (max-width: 480px) {
  .auth-page-header {
    padding: 20px 16px;
  }
  .auth-page-logo {
    height: 38px;
  }
  .auth-page-body {
    padding: 24px 16px;
    align-items: flex-start;
  }
  .auth-page-box {
    padding: 28px 20px;
    border-radius: 10px;
  }
  .auth-page-title {
    font-size: 17px;
  }
  .auth-page-name-row {
    flex-direction: column;
    gap: 0;
  }
}
/* ============================================================
   DASHBOARD — nuovo layout coerente con brand navy/red
   Sostituisce le vecchie classi db-topbar, db-top-*, ecc.
   ============================================================ */

/* ── Header navy ── */
.db-header {
  background: #1a2744;
  border-bottom: 3px solid #d42b2b;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.db-header-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  cursor: pointer;
}
.db-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.db-header-user {
  text-align: right;
}
.db-header-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  line-height: 1.2;
}
.db-header-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  font-family: "Montserrat", sans-serif;
}
.db-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}
.db-header-avatar:hover {
  border-color: #f5c842;
}
.avatar-notif-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  background: #ef4444;
  color: #fff;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 900;
  font-family: "Montserrat", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #1a2744;
  pointer-events: none;
  line-height: 1;
  z-index: 10;
}

/* ── Greeting band ── */
.db-greeting-band {
  background: #f7f8fb;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 28px;
}
.db-greeting-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.db-greeting-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.db-greeting-hello {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #888;
  letter-spacing: 1px;
}
.db-greeting-sub {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: #1a2744;
}
.db-mood-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.db-mood {
  border: 1.5px solid #1a2744;
  border-radius: 4px;
  padding: 8px 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #1a2744;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.db-mood:hover,
.db-mood.selected {
  background: #1a2744;
  color: #fff;
}

/* ── Credits bar ── */
.db-credits-bar {
  border-top: 2px solid #e07020;
  border-bottom: 1px solid #eee;
  padding: 10px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.db-credits-left {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #111;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.db-credits-left strong {
  font-weight: 900;
}
.db-buy-more {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 11px;
  color: #1a2744;
  cursor: pointer;
}
.db-level-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.db-level-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #111;
}
.db-see-bsg {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 11px;
  color: #1a2744;
  cursor: pointer;
}

/* ── Main cards ── */
.db-main-grid {
  display: flex;
  gap: 28px;
  padding: 40px 28px 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.db-card-locked {
  flex: 0 0 260px;
  background: #e8eaed;
  border-radius: 16px;
  border: 1.5px solid #ccc;
  padding: 40px 24px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.db-card-locked:hover {
  background: #dde0e4;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.db-card-icon {
  font-size: 36px;
  margin-bottom: 4px;
}
.db-card-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #555;
  line-height: 1.2;
}
.db-card-sub {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Bottom actions ── */
.db-actions {
  display: flex;
  gap: 14px;
  padding: 20px 28px 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.db-action-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
}
.db-action-test {
  background: #3a7d14;
  color: #fff;
  border-radius: 12px;
}
.db-action-test:hover {
  background: #2d6010;
}
.db-action-scopri {
  background: #1a2744;
  color: #fff;
  border-radius: 12px;
}
.db-action-scopri:hover {
  background: #111827;
}
.db-action-richiedi {
  background: #d42b2b;
  color: #fff;
  border-radius: 12px;
}
.db-action-richiedi:hover {
  background: #b02020;
}
.db-action-contatto {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  animation: pulse-contatto 2s infinite;
}
.db-action-contatto:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.55);
  animation: none;
}
@keyframes pulse-contatto {
  0%, 100% { box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4); }
  50%       { box-shadow: 0 4px 22px rgba(249, 115, 22, 0.75); }
}

/* ============================================================
   RESPONSIVE — dashboard
   ============================================================ */
@media (max-width: 768px) {
  /* Header */
  .db-header {
    padding: 12px 16px;
  }
  .db-header-logo {
    height: 32px;
  }
  .db-header-name {
    font-size: 13px;
  }
  .db-header-sub {
    font-size: 10px;
  }
  .db-header-avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  /* Greeting */
  .db-greeting-band {
    padding: 16px;
  }
  .db-greeting-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .db-greeting-sub {
    font-size: 18px;
  }
  .db-mood-btns {
    gap: 6px;
  }
  .db-mood {
    padding: 7px 12px;
    font-size: 11px;
  }

  /* Credits bar */
  .db-credits-bar {
    padding: 10px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .db-level-right {
    text-align: left;
  }

  /* Cards */
  .db-main-grid {
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 16px;
    gap: 16px;
  }
  .db-card-locked {
    flex: none;
    width: 100%;
    max-width: 360px;
    padding: 28px 20px 24px;
  }

  /* Actions */
  .db-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px 32px;
    gap: 10px;
  }
  .db-action-btn {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .db-greeting-sub {
    font-size: 16px;
  }
  .db-mood {
    padding: 6px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .user-menu {
    right: 0;
    left: auto;
    min-width: 180px;
    max-width: calc(100vw - 32px);
  }
}
