/* DeutschUM product UI v2 - loaded after legacy compatibility styles. */
:root {
  --du-red: #e3262e;
  --du-red-dark: #bd1820;
  --du-red-soft: #fff0f1;
  --du-ink: #111827;
  --du-ink-2: #202b3c;
  --du-muted: #5f6b7a;
  --du-line: #dfe4ea;
  --du-soft: #f5f7f9;
  --du-white: #fff;
  --du-success: #15803d;
  --du-warning: #a85d00;
  --du-info: #175cd3;
  --du-radius: 8px;
  --du-page: 1240px;
  --du-shadow: 0 16px 38px rgba(17, 24, 39, .07);
}

/* Accessibility contract: keyboard focus, skip navigation and semantic FAQ. */
.skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: #111827;
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #2563eb !important;
  outline-offset: 3px !important;
}

.faq-head-ref {
  width: 100%;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

@media (forced-colors: active) {
  :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline-color: Highlight !important;
  }
}

body {
  color: var(--du-ink);
  font-size: 16px;
}

.wrap {
  width: min(var(--du-page), calc(100% - 48px));
}

.site-header {
  height: 76px;
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  background: rgba(255, 255, 255, .97);
}

.nav-wrap {
  height: 76px;
  gap: 38px;
}

.brand {
  font-size: 17px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 7px;
}

.site-nav {
  gap: 7px;
}

.site-nav a {
  padding: 10px 11px;
  color: #445063;
  font-size: 13px;
  font-weight: 700;
}

.nav-actions .btn,
.nav-actions .btn-ghost {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 13px;
}

.btn,
.btn-ghost,
.soft,
.link-soft,
button.soft {
  border-radius: 7px;
}

/* Full-bleed product hero */
.home-ref .hero2 {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  padding: 0;
  background: #edf1f4;
}

.home-ref .hero-grid {
  position: relative;
  display: flex;
  min-height: 690px;
  max-width: none;
  align-items: center;
}

.home-ref .hero-grid::before {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: -100vw;
  width: calc(100vw + 58%);
  background: rgba(255, 255, 255, .92);
  content: "";
}

.home-ref .hero-copy {
  position: relative;
  z-index: 3;
  width: min(650px, 56%);
  max-width: 650px;
  padding: 82px 0 76px;
}

.home-ref .pill {
  min-height: 32px;
  margin: 0 0 23px;
  border-color: #f5c9cc;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff4f4;
  font-size: 10px;
  text-transform: uppercase;
}

.home-ref .hero-copy h1 {
  max-width: 650px;
  margin: 0;
  color: var(--du-ink);
  font-size: 62px;
  font-weight: 850;
  line-height: 1.01;
  letter-spacing: 0;
}

.home-ref .hero-copy h1 span {
  display: block;
  margin-top: 4px;
  color: var(--du-red);
}

.home-ref .hero-copy > p {
  max-width: 590px;
  margin: 24px 0 0;
  color: #4f5d6d;
  font-size: 18px;
  line-height: 1.65;
}

.home-ref .hero-actions {
  gap: 12px;
  margin-top: 30px;
}

.home-ref .hero-actions .btn {
  min-height: 52px;
  border-radius: 7px;
  padding-inline: 22px;
  font-size: 14px;
}

.home-ref .hero-actions .btn b {
  font-size: 18px;
  line-height: 1;
}

.home-ref .hero-proof {
  display: flex;
  margin-top: 33px;
}

.home-ref .hero-proof > div {
  min-width: 124px;
  border-right: 1px solid #d7dde4;
  padding: 0 20px;
}

.home-ref .hero-proof > div:first-child {
  padding-left: 0;
}

.home-ref .hero-proof > div:last-child {
  border-right: 0;
}

.home-ref .hero-proof strong,
.home-ref .hero-proof span {
  display: block;
}

.home-ref .hero-proof strong {
  font-size: 24px;
  line-height: 1;
}

.home-ref .hero-proof span {
  margin-top: 7px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.home-ref .check-row {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  color: #667085;
  font-size: 12px;
}

.home-ref .check-row span {
  position: relative;
  padding-left: 17px;
}

.home-ref .check-row span::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--du-success);
  content: "✓";
  font-weight: 900;
}

.home-ref .hero-visual {
  position: absolute;
  z-index: 0;
  inset: 0 calc((100vw - min(var(--du-page), calc(100vw - 48px))) / -2);
  width: auto;
  max-width: none;
  height: 100%;
  min-height: 690px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #dfe4e8;
  box-shadow: none;
}

.home-ref .hero-visual::before,
.home-ref .hero-visual::after {
  display: none;
}

.home-ref .hero-visual > img {
  width: 100%;
  height: 100%;
  min-height: 690px;
  max-width: none;
  object-fit: cover;
  object-position: center 48%;
}

.home-ref .hero-session-card,
.home-ref .hero-level-card {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 8px;
  background: rgba(17, 24, 39, .88);
  color: #fff;
  box-shadow: 0 16px 34px rgba(17, 24, 39, .2);
  backdrop-filter: blur(12px);
}

.home-ref .hero-session-card {
  right: 52px;
  bottom: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: min(430px, calc(100% - 104px));
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}

.home-ref .live-dot {
  width: 10px;
  height: 10px;
  border: 3px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: #ff3640;
  box-shadow: 0 0 0 5px rgba(255, 54, 64, .15);
}

.home-ref .hero-session-card b,
.home-ref .hero-session-card small,
.home-ref .hero-level-card small,
.home-ref .hero-level-card b,
.home-ref .hero-level-card span {
  display: block;
}

.home-ref .hero-session-card b {
  font-size: 14px;
}

.home-ref .hero-session-card small,
.home-ref .hero-level-card small,
.home-ref .hero-level-card span {
  color: #cbd5e1;
  font-size: 10px;
}

.home-ref .hero-session-card > strong {
  font-size: 10px;
  text-transform: uppercase;
}

.home-ref .hero-level-card {
  top: 38px;
  right: 52px;
  width: 210px;
  padding: 17px 18px;
}

.home-ref .hero-level-card b {
  margin: 5px 0;
  font-size: 23px;
}

.home-ref .partner-strip {
  border-block: 0;
  padding: 25px 0;
  background: #111827;
}

.home-ref .partner-strip p {
  margin-bottom: 14px;
  color: #fda4a9;
  font-size: 9px;
  letter-spacing: 0;
}

.home-ref .partner-strip .wrap > div,
.home-ref .partner-strip div div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  color: #e5e7eb;
}

.home-ref .partner-strip span {
  font-size: 12px;
  text-align: center;
}

/* Public sections */
.home-ref .section {
  padding: 92px 0;
}

.home-ref .section.light {
  background: var(--du-soft);
}

.home-ref .section-head {
  max-width: 760px;
  margin: 0 auto 42px;
}

.home-ref .section-head > span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 5px;
  padding: 0 9px;
  background: var(--du-red-soft);
  color: var(--du-red-dark);
  font-size: 9px;
  letter-spacing: 0;
}

.home-ref .section-head h2 {
  margin: 13px 0;
  color: var(--du-ink);
  font-size: 42px;
  font-weight: 820;
  line-height: 1.12;
  letter-spacing: 0;
}

.home-ref .section-head p {
  color: var(--du-muted);
  font-size: 15px;
  line-height: 1.7;
}

.home-ref .home-feature-ref {
  padding-bottom: 0;
}

.home-ref .feature-list-ref {
  display: grid;
  max-width: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-ref .feature-row-ref {
  display: block;
  min-height: 238px;
  border: 1px solid var(--du-line);
  border-radius: 8px;
  padding: 25px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, .045);
}

.home-ref .feature-row-ref:hover {
  border-color: #c7cfd8;
  box-shadow: 0 15px 30px rgba(17, 24, 39, .075);
  transform: translateY(-3px);
}

.home-ref .feature-row-ref > div {
  display: grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  place-items: center;
  border-radius: 7px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.home-ref .feature-row-ref h3 {
  margin-top: 26px;
  color: var(--du-ink);
  font-size: 18px;
  line-height: 1.3;
}

.home-ref .feature-row-ref p {
  margin-top: 10px;
  color: var(--du-muted);
  font-size: 13px;
  line-height: 1.7;
}

.home-ref .home-stats {
  position: relative;
  z-index: 2;
  display: grid;
  margin: 76px 0 -56px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 22px 45px rgba(17, 24, 39, .14);
}

.home-ref .home-stats article {
  min-height: 142px;
  border: 0;
  border-right: 1px solid #2f3949;
  border-radius: 0;
  padding: 33px 30px;
  background: transparent;
  box-shadow: none;
}

.home-ref .home-stats article:last-child {
  border-right: 0;
}

.home-ref .home-stats b {
  color: #fff;
  font-size: 38px;
}

.home-ref .home-stats span {
  margin-top: 10px;
  color: #aeb8c7;
  font-size: 10px;
  text-transform: uppercase;
}

.home-ref .home-feature-ref + .section {
  padding-top: 154px;
}

.home-ref .level-track-ref {
  display: grid;
  overflow: visible;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
}

.home-ref .level-track-ref::before,
.home-ref .level-item-ref::before {
  display: none;
}

.home-ref .level-item-ref {
  min-width: 0;
  padding: 0;
  text-align: left;
}

.home-ref .level-dot-ref {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  box-shadow: none;
}

.home-ref .level-card-ref {
  min-height: 300px;
  border: 1px solid var(--du-line);
  border-radius: 8px;
  padding: 24px 24px 24px 84px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(17, 24, 39, .035);
}

.home-ref .level-card-ref:hover {
  border-color: #bcc5d0;
  box-shadow: 0 12px 25px rgba(17, 24, 39, .07);
  transform: translateY(-2px);
}

.home-ref .level-card-ref small {
  margin: 0 0 7px;
  color: var(--du-red-dark);
  font-size: 10px;
}

.home-ref .level-card-ref h3 {
  min-height: 0;
  margin: 0 0 5px;
  font-size: 18px;
}

.home-ref .level-card-ref p {
  margin-bottom: 18px;
  font-size: 12px;
}

.home-ref .level-card-ref ul {
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.home-ref .level-card-ref li {
  padding-left: 16px;
  font-size: 12px;
}

.home-ref .classroom-cards {
  gap: 16px;
}

.home-ref .feature-card {
  min-height: 334px;
  border: 1px solid var(--du-line);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .045);
}

.home-ref .feature-card > div:first-child {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.home-ref .feature-card h3 {
  margin-top: 26px;
  font-size: 20px;
}

.home-ref .feature-card strong {
  margin-top: 9px;
  color: #344054;
  font-size: 13px;
}

.home-ref .feature-card p {
  margin-top: 15px;
  font-size: 13px;
  line-height: 1.7;
}

.home-ref .tags span {
  border-radius: 5px;
  padding: 5px 8px;
  background: #f6f7f9;
  font-size: 10px;
}

.home-ref .feature-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.home-ref .feature-card .tags span {
  display: inline-flex;
  width: auto;
}

.home-ref .teacher-grid.single {
  display: block;
  max-width: 1080px;
  margin-inline: auto;
}

.home-ref .reference-teacher {
  display: grid;
  min-height: 235px;
  grid-template-columns: minmax(250px, .75fr) minmax(320px, 1.25fr) auto;
  align-items: center;
  gap: 34px;
  border: 1px solid var(--du-line);
  border-radius: 8px;
  padding: 38px;
  background: #fff;
  box-shadow: var(--du-shadow);
  text-align: left;
}

.home-ref .teacher-identity {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.home-ref .reference-teacher .avatar {
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 8px;
  background: var(--du-red);
  font-size: 22px;
}

.home-ref .teacher-label {
  color: var(--du-red-dark);
  font-size: 9px;
  font-weight: 850;
}

.home-ref .reference-teacher h3 {
  margin: 5px 0 4px;
  font-size: 22px;
}

.home-ref .reference-teacher p {
  margin: 0;
  color: var(--du-muted);
  font-size: 12px;
}

.home-ref .teacher-profile-copy {
  border-left: 1px solid var(--du-line);
  padding-left: 34px;
}

.home-ref .teacher-profile-copy h4 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.5;
}

.home-ref .teacher-pill-ref {
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 10px;
}

.home-ref .teacher-meta-ref {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 14px 0 0;
  font-size: 11px;
}

.home-ref .reference-teacher > .btn {
  min-width: 178px;
}

.home-ref .certificate-grid {
  max-width: 1080px;
  gap: 76px;
}

.home-ref .certificate-card {
  min-height: 300px;
  border: 1px solid var(--du-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, .06);
}

.home-ref .process-grid {
  gap: 14px;
}

.home-ref .process-card {
  min-height: 250px;
  border: 1px solid var(--du-line);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 7px 20px rgba(17, 24, 39, .04);
}

.home-ref .process-card > div {
  width: 42px;
  height: 42px;
  margin: 22px 0 19px;
  border-radius: 7px;
  background: #111827;
  color: #fff;
}

.home-ref .process-card h3 {
  font-size: 17px;
}

.home-ref .process-card p {
  font-size: 12px;
  line-height: 1.65;
}

.home-ref .testimonial-grid.two {
  max-width: 960px;
  gap: 16px;
}

.home-ref .testimonial-grid article {
  min-height: 230px;
  border: 1px solid var(--du-line);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .045);
}

.home-ref .testimonial-grid article > p {
  min-height: 78px;
  font-size: 14px;
  line-height: 1.7;
}

.home-ref .faq-wrap-ref {
  max-width: 900px;
}

.home-ref .faq-item-ref {
  border: 1px solid var(--du-line);
  border-bottom: 0;
  padding-inline: 20px;
  background: #fff;
}

.home-ref .faq-item-ref:first-of-type {
  border-radius: 8px 8px 0 0;
}

.home-ref .faq-item-ref:last-child {
  border-bottom: 1px solid var(--du-line);
  border-radius: 0 0 8px 8px;
}

.home-ref .faq-head-ref {
  min-height: 64px;
  padding: 0;
  font-size: 14px;
}

.home-ref .cta-dark {
  padding: 66px 0;
  background: #111827;
  text-align: left;
}

.home-ref .cta-dark .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.home-ref .cta-dark span {
  color: #fda4a9;
  font-size: 9px;
  font-weight: 850;
}

.home-ref .cta-dark h2 {
  margin: 9px 0 7px;
  font-size: 35px;
}

.home-ref .cta-dark p {
  margin: 0;
  font-size: 14px;
}

.home-ref .cta-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

@media (max-width: 1120px) {
  .home-ref .hero-copy { width: 62%; }
  .home-ref .hero-grid::before { width: calc(100vw + 66%); }
  .home-ref .hero-copy h1 { font-size: 52px; }
  .home-ref .feature-list-ref { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-ref .reference-teacher { grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr); }
  .home-ref .reference-teacher > .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 900px) {
  .home-ref .hero2 { min-height: auto; background: #fff; }
  .home-ref .hero-grid { display: grid; min-height: 0; }
  .home-ref .hero-grid::before { display: none; }
  .home-ref .hero-copy { width: 100%; max-width: 720px; padding: 64px 0 48px; }
  .home-ref .hero-copy h1 { font-size: 50px; }
  .home-ref .hero-visual { position: relative; inset: auto; width: 100%; min-height: 470px; border-radius: 8px 8px 0 0; }
  .home-ref .hero-visual > img { height: 470px; }
  .home-ref .level-track-ref { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-ref .feature-grid.classroom-cards { grid-template-columns: 1fr; }
  .home-ref .feature-card { min-height: 0; }
  .home-ref .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-ref .certificate-grid { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 30px, var(--du-page)); }
  .site-header, .nav-wrap { height: 66px; }
  .home-ref .hero-copy { padding: 46px 0 36px; }
  .home-ref .pill { max-width: 100%; font-size: 9px; }
  .home-ref .hero-copy h1 { font-size: 39px; line-height: 1.05; }
  .home-ref .hero-copy > p { margin-top: 19px; font-size: 15px; }
  .home-ref .hero-actions { display: grid; grid-template-columns: 1fr; margin-top: 24px; }
  .home-ref .hero-actions .btn { width: 100%; }
  .home-ref .hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
  .home-ref .hero-proof > div { min-width: 0; padding: 0 10px; }
  .home-ref .hero-proof strong { font-size: 20px; }
  .home-ref .hero-proof span { font-size: 8px; }
  .home-ref .check-row { display: grid; gap: 8px; }
  .home-ref .hero-visual, .home-ref .hero-visual > img { height: 340px; min-height: 340px; }
  .home-ref .hero-visual > img { object-position: 62% center; }
  .home-ref .hero-session-card { right: 12px; bottom: 12px; left: 12px; width: auto; padding: 13px; }
  .home-ref .hero-session-card > strong { display: none; }
  .home-ref .hero-level-card { top: 12px; right: 12px; width: 165px; padding: 12px; }
  .home-ref .hero-level-card b { font-size: 18px; }
  .home-ref .partner-strip .wrap > div, .home-ref .partner-strip div div { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
  .home-ref .section { padding: 68px 0; }
  .home-ref .section-head { margin-bottom: 30px; }
  .home-ref .section-head h2 { font-size: 32px; }
  .home-ref .section-head p { font-size: 14px; }
  .home-ref .feature-list-ref, .home-ref .level-track-ref { grid-template-columns: 1fr; }
  .home-ref .feature-row-ref { min-height: 0; }
  .home-ref .home-stats { margin: 50px 0 -42px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-ref .home-stats article { min-height: 112px; border-bottom: 1px solid #2f3949; padding: 24px 20px; }
  .home-ref .home-stats article:nth-child(2) { border-right: 0; }
  .home-ref .home-stats article:nth-child(n + 3) { border-bottom: 0; }
  .home-ref .home-stats b { font-size: 29px; }
  .home-ref .home-feature-ref + .section { padding-top: 120px; }
  .home-ref .level-card-ref { min-height: 0; }
  .home-ref .reference-teacher { grid-template-columns: 1fr; gap: 25px; padding: 25px; }
  .home-ref .teacher-profile-copy { border-top: 1px solid var(--du-line); border-left: 0; padding-top: 24px; padding-left: 0; }
  .home-ref .reference-teacher > .btn { width: 100%; }
  .home-ref .process-grid, .home-ref .testimonial-grid.two { grid-template-columns: 1fr; }
  .home-ref .process-card, .home-ref .testimonial-grid article { min-height: 0; }
  .home-ref .cta-dark { padding: 50px 0; }
  .home-ref .cta-dark .wrap { display: grid; gap: 27px; }
  .home-ref .cta-dark h2 { font-size: 30px; }
  .home-ref .cta-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
}

/* Public inner pages and authentication */
.subhero {
  display: grid;
  min-height: 340px;
  place-items: center;
  border-bottom: 1px solid var(--du-line);
  padding: 78px 0;
  background: var(--du-soft);
  text-align: center;
}

.subhero .wrap {
  max-width: 880px;
}

.subhero > .wrap > span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 5px;
  padding: 0 9px;
  background: var(--du-red-soft);
  color: var(--du-red-dark);
  font-size: 9px;
  font-weight: 850;
}

.subhero h1 {
  margin: 14px 0 15px;
  color: var(--du-ink);
  font-size: 48px;
  line-height: 1.08;
}

.subhero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--du-muted);
  font-size: 16px;
  line-height: 1.7;
}

.subhero .btn {
  margin-top: 26px;
}

main > .section {
  padding: 84px 0;
}

main > .section .teacher-grid:not(.single),
.room-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

main > .section .teacher-card,
.room-card,
.price-card {
  min-height: 280px;
  border: 1px solid var(--du-line);
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .045);
}

.auth-body {
  background: #eef1f4;
}

.auth-page {
  width: min(1180px, calc(100% - 48px));
  min-height: 720px;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  margin: 42px auto;
  border: 1px solid var(--du-line);
  border-radius: 8px;
  box-shadow: 0 24px 55px rgba(17, 24, 39, .11);
}

.auth-brand {
  position: relative;
  overflow: hidden;
  padding: 58px;
  background: #111827;
}

.auth-brand::before {
  position: absolute;
  inset: 0;
  background-image: url("../images/deutschum-live-class-hero.webp");
  background-position: 58% center;
  background-size: cover;
  content: "";
  opacity: .16;
}

.auth-brand::after {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .42);
  content: "";
}

.auth-brand > div {
  position: relative;
  z-index: 1;
}

.auth-brand h1 {
  margin-top: 100px;
  font-size: 44px;
  line-height: 1.05;
}

.auth-brand > div > p {
  color: #d2d7df;
  font-size: 15px;
  line-height: 1.7;
}

.auth-testimonial {
  border-left: 2px solid var(--du-red);
  border-radius: 0 7px 7px 0;
  padding: 18px 20px;
  background: rgba(8, 13, 24, .58);
}

.auth-testimonial p {
  color: #e5e7eb;
}

.auth-testimonial b {
  color: #fff;
}

.auth-testimonial span {
  color: #aeb8c7;
}

.auth-stats span {
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 7px;
  padding: 13px;
  background: rgba(8, 13, 24, .52);
  color: #aeb8c7;
}

.auth-stats b {
  color: #fff;
}

.auth-form {
  padding: 68px 76px;
}

.form-shell {
  width: min(100%, 460px);
}

.form-shell > h1 {
  margin-top: 10px;
  font-size: 34px;
}

.form-shell > p {
  margin-bottom: 32px;
  font-size: 13px;
  line-height: 1.65;
}

.form-shell label,
.form-grid label {
  color: #344054;
  font-size: 12px;
}

input,
select,
textarea {
  min-height: 46px;
  border-color: #cfd6de;
}

/* Operations workspaces */
.panel-body,
.panel-app {
  background: #f4f6f8;
}

.panel-top {
  height: 72px;
  border-bottom-color: #d9dee5;
  padding: 0 26px;
  box-shadow: 0 1px 0 rgba(17, 24, 39, .03);
}

.panel-top .brand {
  font-size: 17px;
}

.panel-user {
  gap: 12px;
}

.panel-user > span {
  font-size: 13px;
}

.panel-user button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 11px;
}

.side {
  top: 72px;
  width: 272px;
  border-right: 0;
  padding: 18px 13px 34px;
  background: #111827;
}

.side .ns {
  margin: 22px 11px 8px;
  color: #697589;
  font-size: 9px;
  letter-spacing: 0;
}

.ni {
  min-height: 44px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  border-radius: 7px;
  padding: 7px 10px;
  color: #b7c0ce;
  font-size: 12px;
  font-weight: 650;
}

.ni:hover {
  background: #1c2738;
  color: #fff;
}

.ni.on {
  background: var(--du-red);
  color: #fff;
}

.ni .ico {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  filter: grayscale(1);
  font-size: 13px;
}

.ni.on .ico {
  background: rgba(255, 255, 255, .16);
}

.panel-main {
  margin-left: 272px;
  padding: 106px 34px 56px;
}

.page {
  width: min(100%, 1480px);
}

.page-head {
  margin-bottom: 27px;
}

.page-head h1 {
  font-size: 30px;
  font-weight: 820;
}

.page-head p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  min-height: 116px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 15px;
  border-color: var(--du-line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 5px 16px rgba(17, 24, 39, .035);
}

.stat-card > span {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: #111827;
  filter: grayscale(1);
  color: #fff;
}

.stat-card b {
  font-size: 23px;
}

.stat-card small {
  margin-top: 5px;
  font-size: 11px;
}

.grid-2,
.grid-3 {
  gap: 18px;
  margin-bottom: 18px;
}

.card {
  border-color: var(--du-line);
  border-radius: 8px;
  padding: 23px;
  box-shadow: 0 5px 16px rgba(17, 24, 39, .035);
}

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

.toolbar {
  gap: 9px;
  margin-bottom: 16px;
}

.table-wrap {
  border-color: var(--du-line);
  border-radius: 7px;
}

table {
  font-size: 12px;
}

th,
td {
  padding: 13px 14px;
}

th {
  background: #f5f7f9;
  font-size: 9px;
}

.badge {
  min-height: 25px;
  border-radius: 5px;
  font-size: 9px;
}

.quick > button,
.quick > a {
  min-height: 44px;
  border-radius: 7px;
  font-size: 12px;
}

/* Classroom and secure lobby */
.classroom-body,
.classroom-page {
  background: #070b13;
}

.live-gate-page {
  padding: 34px;
  background: #0b111d;
}

.live-gate-card,
.classroom-lobby {
  width: min(1220px, 100%);
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  border-color: #273246;
  border-radius: 8px;
  background: #121a28;
  box-shadow: 0 30px 85px rgba(0, 0, 0, .38);
}

.live-gate-copy,
.lobby-main {
  padding: 60px;
}

.live-gate-side,
.lobby-side {
  border-left-color: #273246;
  padding: 46px;
  background: #0d1420;
}

.live-gate-copy h1,
.lobby-main h1 {
  margin-top: 18px;
  font-size: 42px;
}

.live-gate-copy > p,
.lobby-main > p {
  font-size: 13px;
  line-height: 1.7;
}

.live-meta-grid,
.live-gate-details {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 29px 0;
}

.live-meta-grid span,
.live-gate-details span,
.lobby-panel {
  min-height: 62px;
  border-color: #2d394d;
  border-radius: 7px;
  padding: 13px;
  background: #172234;
}

.classroom-shell {
  grid-template-rows: 72px minmax(0, 1fr) 64px;
}

.cls-header {
  gap: 20px;
  border-bottom-color: #273246;
  padding: 0 24px;
  background: #101724;
}

.live-title strong {
  max-width: 520px;
  font-size: 14px;
}

.classroom-layout {
  grid-template-columns: minmax(0, 1fr) 400px;
}

.video-stage {
  padding: 12px;
  background: #070b13;
}

.video-frame {
  min-height: 560px;
  border-color: #273246;
  border-radius: 8px;
}

.jitsi-api-frame,
.jitsi-api-frame > div,
.jitsi-api-frame iframe,
.video-stage iframe {
  min-height: 560px;
}

.lesson-panel {
  border-left-color: #273246;
  background: #101724;
}

.lesson-panel .tabs {
  border-bottom-color: #273246;
  background: #151e2e;
}

.lesson-panel .tabs button {
  min-height: 58px;
  font-size: 10px;
}

.lesson-panel .tabs button.on {
  background: #101724;
}

.live-tab {
  padding: 18px;
}

.messages {
  gap: 9px;
}

.messages p {
  padding: 12px 13px;
  background: #1c2738;
  font-size: 11px;
  line-height: 1.55;
}

.chat-box input,
.notes-box textarea {
  border-color: #364257;
  background: #172234;
}

.host-tools,
.room-tools {
  border-color: #2d394d;
  border-radius: 7px;
  padding: 16px;
  background: #151e2e;
}

.control-bar {
  gap: 8px;
  border-top-color: #273246;
  padding: 10px 16px;
  background: #101724;
}

.control-bar button,
.control-bar a {
  min-height: 40px;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 10px;
}

@media (max-width: 1040px) {
  .panel-main { padding-inline: 24px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .classroom-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .live-gate-copy, .lobby-main { padding: 44px; }
  .live-gate-side, .lobby-side { padding: 36px; }
}

@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; width: min(100% - 30px, 680px); }
  .auth-brand { min-height: 390px; padding: 42px; }
  .auth-brand h1 { margin-top: 74px; }
  .auth-form { padding: 52px 42px; }
  .side { top: 68px; right: 0; bottom: auto; width: 100%; height: 62px; display: flex; gap: 5px; overflow-x: auto; overflow-y: hidden; padding: 8px 12px; }
  .side .ns { display: none; }
  .ni { width: max-content; min-width: max-content; grid-template-columns: 27px auto; margin: 0; padding-inline: 10px; }
  .panel-top { height: 68px; padding-inline: 16px; }
  .panel-main { margin-left: 0; padding: 154px 18px 44px; }
  .live-gate-card, .classroom-lobby { grid-template-columns: 1fr; }
  .live-gate-side, .lobby-side { border-top: 1px solid #273246; border-left: 0; }
  .classroom-layout { grid-template-columns: 1fr; overflow: auto; }
  .video-stage { min-height: 58vh; }
  .video-frame, .jitsi-api-frame, .jitsi-api-frame > div, .jitsi-api-frame iframe, .video-stage iframe { min-height: 58vh; }
  .lesson-panel { min-height: 540px; border-top: 1px solid #273246; border-left: 0; }
}

@media (max-width: 640px) {
  .subhero { min-height: 290px; padding: 62px 0; }
  .subhero h1 { font-size: 36px; }
  .subhero p { font-size: 14px; }
  main > .section { padding: 65px 0; }
  .auth-page { width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .auth-brand { min-height: 330px; padding: 32px 24px; }
  .auth-brand h1 { margin-top: 58px; font-size: 34px; }
  .auth-form { padding: 44px 24px; }
  .form-shell > h1 { font-size: 30px; }
  .panel-user > span { display: none; }
  .panel-main { padding-inline: 14px; }
  .page-head h1 { font-size: 25px; }
  .stat-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .toolbar { align-items: stretch; }
  .toolbar input, .toolbar select, .toolbar .btn { width: 100%; }
  .live-gate-page { padding: 0; }
  .live-gate-card, .classroom-lobby { min-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .live-gate-copy, .lobby-main { padding: 36px 22px; }
  .live-gate-side, .lobby-side { padding: 32px 22px; }
  .live-gate-copy h1, .lobby-main h1 { font-size: 32px; }
  .live-meta-grid, .live-gate-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .classroom-shell { grid-template-rows: 64px minmax(0, 1fr) 58px; }
  .cls-header { grid-template-columns: auto minmax(0, 1fr) auto; padding: 0 10px; }
  .cls-header .brand > span { display: none; }
  .live-title { justify-content: flex-start; }
  .live-title span { display: none; }
  .live-title strong { font-size: 11px; }
  .classroom-actions .btn:not(:last-child), .classroom-actions form { display: none; }
  .video-stage { min-height: 54vh; padding: 6px; }
  .video-frame, .jitsi-api-frame, .jitsi-api-frame > div, .jitsi-api-frame iframe, .video-stage iframe { min-height: 54vh; }
  .lesson-panel { min-height: 510px; }
  .lesson-panel .tabs button { min-height: 50px; font-size: 9px; }
  .control-bar { padding: 8px; }
  .control-bar > span, .control-bar button:nth-of-type(2) { display: none; }
  .control-bar button, .control-bar a { min-height: 38px; padding: 0 10px; }
}

/* Public learning analytics */
.intelligence-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid #e8ebef;
  border-bottom: 1px solid #e8ebef;
  background: #f7f8fa;
}

.intelligence-heading {
  max-width: 760px;
}

.insights-shell {
  overflow: hidden;
  margin-top: 42px;
  border: 1px solid #d9dfe7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 58px rgba(17, 24, 39, .1);
}

.insights-toolbar {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  background: #111827;
  color: #fff;
}

.insights-toolbar h3 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 20px;
}

.insights-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.insights-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 0 0 rgba(45, 212, 191, .45);
  animation: insights-pulse 2s infinite;
}

.period-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  border: 1px solid #354055;
  border-radius: 7px;
  padding: 3px;
  background: #1c2535;
}

.period-switch button {
  min-width: 58px;
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #aeb8c7;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.period-switch button:hover,
.period-switch button.on {
  background: #fff;
  color: #111827;
}

.insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
  min-height: 520px;
}

.insights-main {
  min-width: 0;
  padding: 30px;
}

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

.metric-row article {
  min-height: 126px;
  border: 1px solid #e3e7ec;
  border-radius: 7px;
  padding: 19px;
  background: #fafbfc;
}

.metric-row span,
.metric-row strong,
.metric-row small {
  display: block;
}

.metric-row span {
  color: #697586;
  font-size: 11px;
  font-weight: 750;
}

.metric-row strong {
  margin-top: 9px;
  color: #111827;
  font-size: 28px;
  line-height: 1;
}

.metric-row article:first-child strong {
  color: #15803d;
}

.metric-row small {
  margin-top: 10px;
  color: #8a94a3;
  font-size: 10px;
}

.chart-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 34px;
}

.chart-head span,
.chart-head strong {
  display: block;
}

.chart-head span {
  color: #8a94a3;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.chart-head strong {
  margin-top: 4px;
  font-size: 17px;
}

.chart-head > b {
  border-radius: 5px;
  padding: 6px 9px;
  background: #eaf8f3;
  color: #0f7a5a;
  font-size: 11px;
}

.progress-chart {
  position: relative;
  display: grid;
  height: 250px;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  align-items: end;
  margin-top: 18px;
  border-bottom: 1px solid #cfd6df;
  padding: 26px 14px 0;
  background-image: repeating-linear-gradient(to top, transparent 0, transparent 49px, #edf0f4 50px);
}

.chart-column {
  position: relative;
  display: grid;
  height: 100%;
  align-items: end;
  justify-items: center;
}

.chart-column > span {
  position: absolute;
  z-index: 2;
  bottom: calc(var(--bar) + 8px);
  opacity: 0;
  border-radius: 4px;
  padding: 4px 6px;
  background: #111827;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}

.chart-column > i {
  width: min(100%, 46px);
  height: var(--bar);
  border-radius: 5px 5px 0 0;
  background: #e3262e;
  transform-origin: bottom;
  transition: height .55s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1) var(--delay);
}

.chart-column:nth-child(2) > i,
.chart-column:nth-child(5) > i {
  background: #0f9f8f;
}

.chart-column:nth-child(3) > i,
.chart-column:nth-child(6) > i {
  background: #3268d4;
}

.chart-column:nth-child(7) > i {
  background: #6b4eff;
}

.chart-column > small {
  position: absolute;
  bottom: -24px;
  color: #7a8594;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}

.chart-column:hover > span {
  opacity: 1;
  transform: translateY(0);
}

.chart-column:hover > i {
  filter: brightness(.92);
}

.insights-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 26px;
  border-left: 1px solid #e1e5eb;
  padding: 30px;
  background: #fbfcfd;
}

.ai-readiness {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.score-ring {
  position: relative;
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#e3262e calc(var(--score) * 1%), #e8ebef 0);
}

.score-ring::before {
  position: absolute;
  width: 84px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.score-ring span {
  position: relative;
  z-index: 1;
  color: #111827;
}

.score-ring b {
  font-size: 27px;
}

.score-ring small {
  font-size: 12px;
  font-weight: 800;
}

.ai-readiness > div:last-child > span,
.next-action > span {
  color: #e3262e;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.ai-readiness h3 {
  margin: 5px 0 0;
  font-size: 18px;
}

.ai-readiness p {
  margin: 8px 0 0;
  color: #727d8c;
  font-size: 11px;
  line-height: 1.55;
}

.skill-stack {
  display: grid;
  gap: 15px;
  border-top: 1px solid #e2e6eb;
  border-bottom: 1px solid #e2e6eb;
  padding: 24px 0;
}

.skill-stack > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
}

.skill-stack span,
.skill-stack b {
  color: #475467;
  font-size: 10px;
  font-weight: 800;
}

.skill-stack i {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #e7ebf0;
}

.skill-stack em {
  display: block;
  width: var(--skill);
  height: 100%;
  border-radius: inherit;
  background: #3268d4;
  transition: width .9s cubic-bezier(.22, 1, .36, 1) .3s;
}

.skill-stack > div:nth-child(2) em {
  background: #0f9f8f;
}

.skill-stack > div:nth-child(3) em {
  background: #e3262e;
}

.next-action {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  border: 1px solid #dce2e8;
  border-left: 4px solid #e3262e;
  border-radius: 7px;
  padding: 20px;
  background: #fff;
}

.next-action strong,
.next-action small {
  display: block;
}

.next-action strong {
  margin-top: 7px;
  font-size: 16px;
}

.next-action small {
  margin-top: 5px;
  color: #7a8594;
  font-size: 10px;
}

.next-action a,
.catalog-head > a,
.catalog-table a {
  color: #e3262e;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.next-action a {
  display: inline-flex;
  gap: 6px;
  margin-top: 16px;
}

.next-action a span,
.catalog-head > a span,
.catalog-table a span {
  transition: transform .2s ease;
}

.next-action a:hover span,
.catalog-head > a:hover span,
.catalog-table a:hover span {
  transform: translateX(3px);
}

.catalog-panel {
  border-top: 1px solid #dfe4ea;
  padding: 28px 30px 30px;
}

.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.catalog-head span:first-child {
  color: #e3262e;
  font-size: 9px;
  font-weight: 850;
}

.catalog-head h3 {
  margin: 5px 0 0;
  font-size: 19px;
}

.catalog-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid #e0e5eb;
  border-radius: 7px;
}

.catalog-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.catalog-table th {
  height: 42px;
  padding: 0 16px;
  background: #f5f7f9;
  color: #788393;
  font-size: 9px;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
}

.catalog-table td {
  height: 74px;
  border-top: 1px solid #e6e9ed;
  padding: 10px 16px;
  color: #556172;
  font-size: 11px;
}

.catalog-table tbody tr {
  transition: background-color .2s ease;
}

.catalog-table tbody tr:hover {
  background: #fafbfc;
}

.catalog-table td:first-child {
  display: flex;
  min-width: 310px;
  align-items: center;
  gap: 13px;
}

.catalog-table td:first-child strong,
.catalog-table td:first-child small {
  display: block;
}

.catalog-table td:first-child strong {
  color: #182230;
  font-size: 12px;
}

.catalog-table td:first-child small {
  margin-top: 4px;
  color: #8791a0;
  font-size: 9px;
}

.catalog-level {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 6px;
  background: #fff0f1;
  color: #cf1f27;
  font-size: 10px;
  font-weight: 900;
}

.catalog-level.level-a2,
.catalog-level.level-b1 {
  background: #eaf8f3;
  color: #08785f;
}

.catalog-level.level-b2,
.catalog-level.level-c1,
.catalog-level.level-c2 {
  background: #edf3ff;
  color: #265fc5;
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease var(--delay, 0ms), transform .65s cubic-bezier(.22, 1, .36, 1) var(--delay, 0ms);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .insights-shell:not(.is-visible) [data-chart-bar] {
  transform: scaleY(0);
}

.motion-ready .insights-shell:not(.is-visible) .skill-stack em {
  width: 0;
}

@keyframes insights-pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, .45); }
  70% { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

@media (max-width: 980px) {
  .insights-grid { grid-template-columns: 1fr; }
  .insights-side { border-top: 1px solid #e1e5eb; border-left: 0; }
  .ai-readiness { grid-template-columns: 112px minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .insights-shell { margin-top: 28px; }
  .insights-toolbar { min-height: 76px; padding: 15px; }
  .insights-toolbar h3 { font-size: 17px; }
  .period-switch button { min-width: 44px; min-height: 32px; }
  .insights-main, .insights-side { padding: 20px 15px; }
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-row article { min-height: 108px; padding: 15px; }
  .metric-row article:last-child { grid-column: 1 / -1; }
  .metric-row strong { font-size: 24px; }
  .progress-chart { height: 220px; gap: 8px; padding-inline: 4px; }
  .chart-column > i { width: min(100%, 30px); }
  .ai-readiness { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
  .score-ring { width: 90px; }
  .score-ring::before { width: 68px; }
  .score-ring b { font-size: 22px; }
  .catalog-panel { padding: 22px 15px; }
  .catalog-head { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .insights-live i { animation: none; }
  .motion-ready [data-reveal],
  .chart-column > i,
  .skill-stack em,
  .next-action a span,
  .catalog-head > a span,
  .catalog-table a span { transition: none; }
}

/* Encrypted AI provider key management */
.ai-keyring-card {
  margin-top: 18px;
}

.ai-keyring-card > .card-head {
  align-items: flex-start;
}

.ai-keyring-card > .card-head h3,
.ai-keyring-card > .card-head p {
  margin: 0;
}

.ai-keyring-card > .card-head p {
  margin-top: 6px;
  color: #6b7280;
  font-size: 11px;
}

.ai-key-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.ai-key-summary span {
  min-height: 72px;
  border: 1px solid #e1e6ec;
  border-radius: 7px;
  padding: 13px 15px;
  background: #f8fafb;
  color: #6b7280;
  font-size: 10px;
  font-weight: 750;
}

.ai-key-summary b {
  display: block;
  margin-bottom: 4px;
  color: #111827;
  font-size: 22px;
}

.ai-key-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .7fr);
  gap: 24px;
  align-items: start;
}

.ai-key-list {
  display: grid;
  gap: 9px;
}

.ai-key-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 82px;
  border: 1px solid #e1e6ec;
  border-radius: 7px;
  padding: 13px;
  background: #fff;
}

.ai-key-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.ai-key-copy {
  min-width: 0;
}

.ai-key-copy > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-key-copy strong {
  overflow: hidden;
  color: #182230;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-key-copy code,
.ai-key-copy small,
.ai-key-copy em {
  display: block;
}

.ai-key-copy code {
  overflow: hidden;
  margin-top: 7px;
  color: #475467;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-key-copy small {
  margin-top: 5px;
  color: #8791a0;
  font-size: 9px;
}

.ai-key-copy em {
  margin-top: 5px;
  color: #b42318;
  font-size: 9px;
  font-style: normal;
}

.ai-key-actions {
  display: flex;
  gap: 6px;
}

.ai-key-actions form {
  margin: 0;
}

.ai-key-actions .soft {
  min-height: 34px;
  padding: 0 10px;
  font-size: 9px;
}

.soft.danger {
  border-color: #f2c7ca;
  background: #fff5f5;
  color: #c81e27;
}

.ai-key-add {
  border-left: 1px solid #e1e6ec;
  padding-left: 24px;
}

.ai-key-add h4 {
  margin: 0 0 2px;
  font-size: 15px;
}

.ai-key-test-all {
  margin-top: 12px;
}

.ai-key-empty {
  min-height: 108px;
  border: 1px dashed #d7dde5;
  border-radius: 7px;
  padding: 34px 18px;
  text-align: center;
}

@media (max-width: 980px) {
  .ai-key-layout { grid-template-columns: 1fr; }
  .ai-key-add { border-top: 1px solid #e1e6ec; border-left: 0; padding-top: 22px; padding-left: 0; }
}

@media (max-width: 680px) {
  .ai-key-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-key-row { grid-template-columns: 34px minmax(0, 1fr); }
  .ai-key-icon { width: 34px; height: 34px; }
  .ai-key-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* DeutschUM premium interface refresh */
:root {
  --du-premium-red: #e3262e;
  --du-premium-red-dark: #b9151d;
  --du-premium-ink: #101723;
  --du-premium-ink-2: #1b2432;
  --du-premium-slate: #344154;
  --du-premium-muted: #697586;
  --du-premium-line: #dfe5ee;
  --du-premium-page: #f4f7fb;
  --du-premium-green: #12a37f;
  --du-premium-blue: #2563eb;
  --du-premium-shadow: 0 24px 70px rgba(16, 23, 35, .12);
  --du-premium-shadow-soft: 0 14px 36px rgba(16, 23, 35, .08);
}

html {
  text-rendering: geometricPrecision;
}

body {
  background: var(--du-premium-page);
  color: var(--du-premium-ink);
  letter-spacing: 0;
}

.wrap {
  width: min(1260px, calc(100% - 48px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  height: 72px;
  border-bottom: 1px solid rgba(16, 23, 35, .08);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 34px rgba(16, 23, 35, .05);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  height: 72px;
}

.brand {
  gap: 10px;
  color: var(--du-premium-ink);
  font-weight: 850;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--du-premium-red), var(--du-premium-red-dark));
  box-shadow: 0 12px 28px rgba(227, 38, 46, .28);
}

.site-nav {
  gap: 4px;
  border: 1px solid rgba(16, 23, 35, .08);
  border-radius: 8px;
  padding: 4px;
  background: rgba(244, 247, 251, .82);
}

.site-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 12px;
  color: #435066;
  font-size: 12px;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.site-nav a.active,
.site-nav a:hover {
  background: #fff;
  color: var(--du-premium-red);
  box-shadow: 0 8px 18px rgba(16, 23, 35, .07);
}

.nav-actions .btn,
.nav-actions .btn-ghost,
.btn,
.btn-ghost,
.soft,
.link-soft,
button.soft {
  border-radius: 8px;
  letter-spacing: 0;
}

.btn,
.btn-red,
.nav-actions .btn {
  background: linear-gradient(135deg, var(--du-premium-red), var(--du-premium-red-dark));
  box-shadow: 0 16px 32px rgba(227, 38, 46, .22);
}

.btn:hover,
.btn-red:hover,
.nav-actions .btn:hover {
  filter: saturate(1.04);
  transform: translateY(-1px);
}

.btn-ghost,
.nav-actions .btn-ghost {
  border: 1px solid rgba(16, 23, 35, .12);
  background: #fff;
  color: var(--du-premium-ink);
}

.home-ref {
  background:
    linear-gradient(90deg, rgba(16, 23, 35, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 23, 35, .03) 1px, transparent 1px),
    #f4f7fb;
  background-size: 46px 46px;
}

.home-ref main {
  overflow: hidden;
}

.home-ref .hero2 {
  min-height: 740px;
  border-bottom: 1px solid rgba(16, 23, 35, .08);
  background:
    linear-gradient(120deg, #fff 0%, #fff 45%, rgba(227, 38, 46, .08) 45%, rgba(227, 38, 46, .08) 63%, rgba(16, 23, 35, .04) 63%, rgba(16, 23, 35, .04) 100%),
    #fff;
}

.home-ref .hero2::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 23, 35, .05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 23, 35, .04) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  opacity: .32;
  pointer-events: none;
}

.home-ref .hero2::after {
  position: absolute;
  right: -13vw;
  bottom: -28%;
  width: 58vw;
  height: 86%;
  background: linear-gradient(135deg, rgba(227, 38, 46, .13), rgba(18, 163, 127, .09));
  clip-path: polygon(18% 0, 100% 16%, 82% 100%, 0 76%);
  content: "";
  pointer-events: none;
}

.home-ref .hero-grid {
  display: grid;
  min-height: 740px;
  grid-template-columns: minmax(0, .96fr) minmax(430px, .88fr);
  gap: 58px;
  align-items: center;
}

.home-ref .hero-grid::before {
  display: none;
}

.home-ref .hero-copy {
  width: auto;
  max-width: 760px;
  padding: 86px 0 78px;
}

.home-ref .pill {
  min-height: 34px;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(227, 38, 46, .18);
  border-radius: 8px;
  padding: 0 13px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(227, 38, 46, .08);
  color: var(--du-premium-red);
  font-size: 11px;
  font-weight: 900;
}

.home-ref .hero-copy h1 {
  max-width: 720px;
  margin-top: 0;
  color: var(--du-premium-ink);
  font-size: clamp(46px, 5.35vw, 78px);
  line-height: .92;
  letter-spacing: 0;
}

.home-ref .hero-copy h1 span {
  display: inline;
  color: var(--du-premium-red);
  text-shadow: 0 18px 42px rgba(227, 38, 46, .13);
}

.home-ref .hero-copy > p {
  max-width: 660px;
  margin-top: 24px;
  color: #4b5b70;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.75;
}

.home-ref .hero-actions {
  margin-top: 32px;
  gap: 12px;
}

.home-ref .hero-actions .btn,
.home-ref .hero-actions .btn-ghost {
  min-height: 52px;
  border-radius: 8px;
  padding-inline: 22px;
  font-size: 13px;
}

.home-ref .hero-proof {
  width: min(100%, 620px);
  margin-top: 34px;
  border: 1px solid rgba(16, 23, 35, .08);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--du-premium-shadow-soft);
  backdrop-filter: blur(12px);
}

.home-ref .hero-proof > div {
  min-height: 68px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(16, 23, 35, .08);
  padding: 8px 14px;
}

.home-ref .hero-proof > div:last-child {
  border-right: 0;
}

.home-ref .hero-proof strong {
  color: var(--du-premium-ink);
  font-size: 28px;
  font-weight: 900;
}

.home-ref .hero-proof span {
  color: #627189;
  font-size: 10px;
  font-weight: 850;
}

.home-ref .check-row {
  margin-top: 20px;
  gap: 10px;
}

.home-ref .check-row span {
  min-height: 32px;
  border: 1px solid rgba(16, 23, 35, .08);
  border-radius: 8px;
  padding: 0 11px;
  background: #fff;
  color: #526176;
  box-shadow: 0 8px 18px rgba(16, 23, 35, .05);
}

.home-ref .hero-visual {
  position: relative;
  inset: auto;
  width: 100%;
  height: 560px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 23, 35, .14);
  border-radius: 8px;
  background: #101723;
  box-shadow: 0 34px 90px rgba(16, 23, 35, .26);
}

.home-ref .hero-visual::before,
.home-ref .hero-visual::after {
  display: block;
  position: absolute;
  z-index: 2;
  content: "";
  pointer-events: none;
}

.home-ref .hero-visual::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 23, 35, .05), rgba(16, 23, 35, .38));
  background-size: 38px 38px, 38px 38px, auto;
  mix-blend-mode: screen;
  opacity: .5;
}

.home-ref .hero-visual::after {
  top: 18px;
  left: 18px;
  width: calc(100% - 36px);
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(16, 23, 35, .78);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.home-ref .hero-visual > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  opacity: .9;
  transform: scale(1.02);
}

.home-ref .hero-session-card,
.home-ref .hero-level-card {
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 44px rgba(16, 23, 35, .22);
  backdrop-filter: blur(14px);
}

.home-ref .hero-session-card {
  right: 22px;
  bottom: 22px;
  width: min(360px, calc(100% - 44px));
}

.home-ref .hero-level-card {
  top: 74px;
  right: 22px;
  width: 220px;
}

.home-ref .live-dot {
  box-shadow: 0 0 0 7px rgba(227, 38, 46, .13);
}

.home-ref .partner-strip {
  border-bottom: 1px solid rgba(16, 23, 35, .07);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
}

.home-ref .partner-strip p,
.home-ref .section-head > span {
  color: var(--du-premium-red);
  letter-spacing: .11em;
}

.home-ref .partner-strip span {
  border: 1px solid rgba(16, 23, 35, .08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(16, 23, 35, .04);
}

.home-ref .section {
  position: relative;
  padding: 108px 0;
  background: #fff;
}

.home-ref .section.light,
.home-ref .intelligence-section {
  background:
    linear-gradient(90deg, rgba(16, 23, 35, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 23, 35, .03) 1px, transparent 1px),
    #f4f7fb;
  background-size: 48px 48px;
}

.home-ref .section-head {
  width: min(800px, 100%);
  margin-bottom: 42px;
}

.home-ref .section-head h2 {
  color: var(--du-premium-ink);
  font-size: clamp(34px, 3.2vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.home-ref .section-head p {
  color: #657387;
  font-size: 15px;
  line-height: 1.75;
}

.home-ref .home-feature-ref {
  align-items: stretch;
  gap: 34px;
}

.home-ref .feature-list-ref {
  gap: 14px;
}

.home-ref .feature-row-ref,
.home-ref .feature-card,
.home-ref .level-card-ref,
.home-ref .process-card,
.home-ref .testimonial-grid article,
.home-ref .reference-teacher,
.home-ref .certificate-card,
.insights-shell,
.metric-row article,
.progress-chart,
.ai-readiness,
.next-action,
.student-teacher-card,
.student-schedule-item,
.stat-card,
.card {
  border: 1px solid rgba(16, 23, 35, .08);
  border-radius: 8px;
  box-shadow: var(--du-premium-shadow-soft);
}

.home-ref .feature-row-ref,
.home-ref .feature-card,
.home-ref .level-card-ref,
.home-ref .process-card,
.home-ref .testimonial-grid article,
.home-ref .reference-teacher,
.home-ref .certificate-card {
  background: rgba(255, 255, 255, .94);
}

.home-ref .feature-row-ref {
  min-height: 96px;
  border-left: 4px solid transparent;
}

.home-ref .feature-row-ref:hover,
.home-ref .feature-card:hover,
.home-ref .level-card-ref:hover,
.home-ref .process-card:hover,
.home-ref .testimonial-grid article:hover,
.home-ref .reference-teacher:hover {
  border-color: rgba(227, 38, 46, .24);
  box-shadow: var(--du-premium-shadow);
  transform: translateY(-4px);
}

.home-ref .feature-row-ref:hover {
  border-left-color: var(--du-premium-red);
}

.home-ref .feature-row-ref > div,
.home-ref .feature-card > div:first-child,
.home-ref .process-card > div {
  border-radius: 8px;
  background: #fff2f3;
  color: var(--du-premium-red);
}

.home-ref .home-stats {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(227, 38, 46, .16), transparent 38%),
    #101723;
  box-shadow: 0 28px 70px rgba(16, 23, 35, .22);
}

.home-ref .home-stats article {
  border-right-color: rgba(255, 255, 255, .1);
}

.home-ref .home-stats b {
  color: #fff;
}

.home-ref .home-stats span {
  color: rgba(255, 255, 255, .68);
}

.home-ref .level-track-ref {
  gap: 14px;
}

.home-ref .level-track-ref::before {
  top: 29px;
  background: linear-gradient(90deg, var(--du-premium-red), var(--du-premium-green), var(--du-premium-blue));
  opacity: .55;
}

.home-ref .level-dot-ref {
  width: 54px;
  height: 54px;
  border: 6px solid #fff;
  box-shadow: 0 12px 28px rgba(16, 23, 35, .13);
}

.home-ref .level-card-ref {
  min-height: 300px;
  padding: 24px;
}

.home-ref .level-card-ref h3,
.home-ref .feature-card h3,
.home-ref .process-card h3,
.home-ref .reference-teacher h3 {
  color: var(--du-premium-ink);
  letter-spacing: 0;
}

.home-ref .level-card-ref li {
  color: #4f5e73;
}

.home-ref .classroom-cards {
  gap: 18px;
}

.home-ref .feature-card {
  min-height: 320px;
  padding: 24px;
}

.home-ref .feature-card strong {
  color: var(--du-premium-red-dark);
}

.home-ref .tags span,
.home-ref .feature-card .tags span,
.home-ref .teacher-pill-ref {
  border: 1px solid rgba(16, 23, 35, .08);
  border-radius: 999px;
  background: #f7f9fc;
  color: #4e5e73;
}

.home-ref .reference-teacher {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr) auto;
  background:
    linear-gradient(120deg, rgba(227, 38, 46, .08), transparent 35%),
    #fff;
}

.home-ref .reference-teacher::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 100%;
  background: linear-gradient(180deg, rgba(227, 38, 46, .11), transparent);
  content: "";
  pointer-events: none;
}

.home-ref .reference-teacher .avatar {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--du-premium-red), #f45a61);
  box-shadow: 0 18px 36px rgba(227, 38, 46, .23);
}

.home-ref .teacher-profile-copy {
  border-left-color: rgba(16, 23, 35, .08);
}

.home-ref .certificate-card {
  min-height: 320px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(227, 38, 46, .5), rgba(18, 163, 127, .35)) border-box;
}

.home-ref .certificate-card::before {
  border-radius: 8px;
}

.home-ref .process-card {
  min-height: 230px;
}

.home-ref .testimonial-grid article {
  min-height: 190px;
}

.home-ref .faq-wrap-ref {
  border: 1px solid rgba(16, 23, 35, .08);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--du-premium-shadow-soft);
}

.home-ref .faq-item-ref {
  border-bottom-color: rgba(16, 23, 35, .08);
}

.home-ref .cta-dark {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(227, 38, 46, .18), transparent 35%),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    #101723;
  background-size: auto, 48px 48px, auto;
}

.home-ref .cta-dark::after {
  position: absolute;
  inset: auto -8% -55% auto;
  width: 48%;
  height: 120%;
  background: linear-gradient(135deg, rgba(227, 38, 46, .2), rgba(37, 99, 235, .12));
  clip-path: polygon(20% 0, 100% 20%, 78% 100%, 0 78%);
  content: "";
  pointer-events: none;
}

.home-ref .cta-dark .wrap {
  position: relative;
  z-index: 1;
}

.intelligence-section {
  border-color: rgba(16, 23, 35, .08);
}

.insights-shell {
  overflow: hidden;
  border-color: rgba(16, 23, 35, .12);
  background: #fff;
  box-shadow: 0 32px 90px rgba(16, 23, 35, .14);
}

.insights-toolbar {
  background:
    linear-gradient(110deg, rgba(227, 38, 46, .18), transparent 30%),
    #101723;
}

.period-switch {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .08);
}

.metric-row article {
  background:
    linear-gradient(135deg, rgba(227, 38, 46, .06), transparent 40%),
    #fff;
}

.metric-row strong {
  font-size: 32px;
}

.progress-chart {
  border-color: rgba(16, 23, 35, .08);
  background:
    linear-gradient(90deg, rgba(16, 23, 35, .035) 1px, transparent 1px),
    #f8fafc;
  background-size: 38px 38px;
}

.chart-bars i {
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--du-premium-red), var(--du-premium-red-dark));
  box-shadow: 0 14px 26px rgba(227, 38, 46, .22);
}

.insights-side {
  background:
    linear-gradient(180deg, rgba(16, 23, 35, .03), transparent),
    #f7f9fc;
}

.ai-readiness strong {
  color: var(--du-premium-red);
}

.skill-stack em {
  background: linear-gradient(90deg, var(--du-premium-red), var(--du-premium-green));
}

.next-action {
  background:
    linear-gradient(135deg, rgba(227, 38, 46, .08), transparent 45%),
    #fff;
}

.auth-body {
  background:
    linear-gradient(120deg, rgba(227, 38, 46, .12), transparent 35%),
    linear-gradient(90deg, rgba(16, 23, 35, .05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 23, 35, .04) 1px, transparent 1px),
    #f4f7fb;
  background-size: auto, 46px 46px, 46px 46px, auto;
}

.auth-body .site-header {
  position: static;
}

.auth-page {
  border: 1px solid rgba(16, 23, 35, .1);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(16, 23, 35, .16);
}

.auth-brand {
  background:
    linear-gradient(135deg, rgba(227, 38, 46, .28), transparent 40%),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    #101723;
  background-size: auto, 42px 42px, auto;
}

.auth-brand h1 {
  letter-spacing: 0;
}

.auth-form {
  background: rgba(255, 255, 255, .98);
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  border-radius: 8px;
  background: #f8fafc;
}

.panel-body,
.panel-app {
  background:
    linear-gradient(90deg, rgba(16, 23, 35, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 23, 35, .03) 1px, transparent 1px),
    #f4f7fb;
  background-size: 48px 48px;
}

.panel-top {
  height: 76px;
  border-bottom: 1px solid rgba(16, 23, 35, .08);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 34px rgba(16, 23, 35, .06);
  backdrop-filter: blur(14px);
}

.panel-user button {
  border-radius: 8px;
  background: #101723;
  color: #fff;
}

.side {
  top: 76px;
  width: 286px;
  border-right: 1px solid rgba(255, 255, 255, .08);
  background:
    linear-gradient(180deg, rgba(227, 38, 46, .14), transparent 26%),
    #101723;
}

.side .ns {
  color: rgba(255, 255, 255, .45);
  letter-spacing: .11em;
}

.ni {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, .72);
}

.ni:hover {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .08);
}

.ni.on {
  background: linear-gradient(135deg, var(--du-premium-red), var(--du-premium-red-dark));
  box-shadow: 0 16px 34px rgba(227, 38, 46, .22);
}

.panel-main {
  margin-left: 286px;
  padding: 112px 36px 58px;
}

.page-head {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(16, 23, 35, .08);
}

.page-head h1 {
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
}

.card,
.stat-card,
.table-wrap,
.data-table,
.form-card,
.admin-card,
.student-teacher-card,
.student-schedule-item {
  background: rgba(255, 255, 255, .96);
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 76px;
  height: 100%;
  background: linear-gradient(180deg, rgba(227, 38, 46, .12), transparent);
  content: "";
  pointer-events: none;
}

.card h2,
.card h3,
.stat-card b {
  letter-spacing: 0;
}

.data-table th {
  background: #f3f6fa;
  color: #425066;
}

.data-table tr:hover td {
  background: #fff7f7;
}

.classroom-body,
.classroom-page,
.classroom-shell {
  background:
    linear-gradient(120deg, rgba(227, 38, 46, .12), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    #080d18;
  background-size: auto, 44px 44px, auto;
}

.classroom-lobby {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(16, 23, 35, .92);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .34);
}

.lobby-main,
.lobby-side,
.live-gate-copy,
.live-gate-side {
  background:
    linear-gradient(135deg, rgba(227, 38, 46, .1), transparent 35%),
    rgba(16, 23, 35, .84);
}

.classroom-shell {
  grid-template-rows: 76px minmax(0, 1fr) 70px;
}

.cls-header {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(12, 18, 30, .96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
  backdrop-filter: blur(14px);
}

.live-title strong {
  color: #fff;
  font-size: 15px;
}

.live-title span {
  border-radius: 999px;
  background: var(--du-premium-red);
  color: #fff;
}

.classroom-layout {
  grid-template-columns: minmax(0, 1fr) 420px;
  background: transparent;
}

.video-stage {
  padding: 18px;
  background: transparent;
}

.video-frame,
.jitsi-api-frame,
.jitsi-api-frame > div,
.jitsi-api-frame iframe,
.video-stage iframe {
  min-height: 600px;
  border-radius: 8px;
}

.video-frame {
  border: 1px solid rgba(255, 255, 255, .11);
  background:
    linear-gradient(135deg, rgba(227, 38, 46, .08), transparent 35%),
    #050812;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .32);
}

.lesson-panel {
  border-left: 1px solid rgba(255, 255, 255, .1);
  background: rgba(16, 23, 35, .9);
}

.lesson-panel .tabs {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(22, 31, 46, .96);
}

.lesson-panel .tabs button {
  min-height: 62px;
  color: rgba(255, 255, 255, .74);
}

.lesson-panel .tabs button.on {
  background: var(--du-premium-red);
  color: #fff;
}

.messages p,
.host-tools,
.room-tools,
.chat-box input,
.notes-box textarea {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.messages p strong {
  color: #fff;
}

.control-bar {
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(12, 18, 30, .96);
}

.control-bar button,
.control-bar a,
.classroom-actions .btn,
.classroom-actions .link-soft {
  border-radius: 8px;
}

@media (prefers-reduced-motion: no-preference) {
  .home-ref .hero-visual,
  .home-ref .hero-session-card,
  .home-ref .hero-level-card,
  .insights-shell {
    animation: du-premium-rise .72s ease both;
  }

  .home-ref .hero-session-card {
    animation-delay: .1s;
  }

  .home-ref .hero-level-card {
    animation-delay: .18s;
  }

  .home-ref .feature-row-ref,
  .home-ref .feature-card,
  .home-ref .level-card-ref,
  .home-ref .process-card,
  .home-ref .testimonial-grid article,
  .home-ref .reference-teacher,
  .btn {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
  }
}

/* Premium readability corrections */
.home-ref .hero-session-card,
.home-ref .hero-level-card {
  color: var(--du-premium-ink);
}

.home-ref .hero-session-card b,
.home-ref .hero-session-card small,
.home-ref .hero-session-card strong,
.home-ref .hero-level-card small,
.home-ref .hero-level-card b,
.home-ref .hero-level-card span {
  color: var(--du-premium-ink);
  opacity: 1;
}

.home-ref .hero-session-card small,
.home-ref .hero-level-card small,
.home-ref .hero-level-card span {
  color: #5c687a;
}

.home-ref .partner-strip span {
  color: #556174;
  opacity: 1;
}

.home-ref .hero-actions .btn-ghost {
  border: 1px solid rgba(16, 23, 35, .12);
  background: #fff;
  color: var(--du-premium-ink);
  box-shadow: 0 16px 32px rgba(16, 23, 35, .08);
}

.home-ref .hero-actions .btn-ghost:hover {
  color: var(--du-premium-red);
}

@media (max-width: 640px) {
  .home-ref .hero-copy,
  .home-ref .hero-copy h1,
  .home-ref .hero-copy > p,
  .home-ref .pill,
  .home-ref .check-row,
  .home-ref .hero-actions,
  .home-ref .hero-proof {
    max-width: 100%;
  }

  .home-ref .hero-copy {
    overflow: hidden;
  }

  .home-ref .hero-copy h1 {
    font-size: clamp(31px, 8.8vw, 36px);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .home-ref .pill {
    min-height: 0;
    white-space: normal;
    line-height: 1.45;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .home-ref .check-row span {
    white-space: normal;
    line-height: 1.45;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .home-ref .hero-session-card b {
    font-size: 13px;
  }

  .home-ref .hero-session-card small {
    font-size: 9px;
  }
}

/* Final mobile overflow guard */
html,
body {
  overflow-x: hidden;
}

.home-ref .hero-actions .btn-white {
  border: 1px solid rgba(16, 23, 35, .12);
  background: #fff;
  color: var(--du-premium-ink);
  box-shadow: 0 16px 32px rgba(16, 23, 35, .08);
}

.home-ref .hero-actions .btn-white:hover {
  color: var(--du-premium-red);
}

@media (max-width: 640px) {
  .home-ref .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .home-ref .hero-copy h1 {
    max-width: calc(100vw - 30px);
    font-size: clamp(24px, 6.1vw, 30px);
    line-height: 1.08;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .home-ref .hero-copy h1 span {
    display: block;
  }

  .home-ref .pill {
    display: block;
    width: 100%;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 8px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .home-ref .pill span {
    display: none;
  }
}

@media (max-width: 430px) {
  .home-ref .hero-copy h1 {
    font-size: 22px !important;
    line-height: 1.12;
  }

  .home-ref .hero-copy > p {
    font-size: 14px;
  }
}

/* EOF mobile responsive lock */
@media (max-width: 700px) {
  .auth-brand,
  .auth-form,
  .form-shell,
  .live-gate-card,
  .classroom-lobby,
  .live-gate-copy,
  .lobby-main,
  .live-gate-side,
  .lobby-side,
  .live-gate-details,
  .live-meta-grid,
  .live-gate-actions,
  .lobby-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    overflow-x: hidden;
  }

  .auth-brand h1,
  .auth-brand p,
  .live-gate-copy h1,
  .lobby-main h1,
  .live-gate-copy > p,
  .lobby-main > p,
  .live-gate-details span,
  .live-meta-grid span {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .live-gate-actions .btn,
  .live-gate-actions .link-soft,
  .lobby-actions .btn,
  .lobby-actions .link-soft {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    justify-content: center;
    white-space: normal;
  }
}

@media (max-width: 430px) {
  .live-gate-copy h1,
  .lobby-main h1 {
    display: block;
    width: auto;
    max-width: calc(100vw - 40px) !important;
    max-inline-size: calc(100vw - 40px) !important;
    font-size: 22px !important;
    line-height: 1.18;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .live-gate-copy > p,
  .lobby-main > p {
    max-width: calc(100vw - 40px) !important;
    max-inline-size: calc(100vw - 40px) !important;
    font-size: 13px;
  }
}

/* Stitch final lock - must stay at physical EOF. */
body {
  background:
    linear-gradient(rgba(15, 28, 46, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 46, .035) 1px, transparent 1px),
    #f7f6f2 !important;
  background-size: 32px 32px, 32px 32px, auto !important;
  color: #0f1c2e;
  font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  height: 72px !important;
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(15, 28, 46, .10) !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 10px 30px rgba(15, 28, 46, .045) !important;
  backdrop-filter: blur(18px);
}

.brand {
  color: #050505 !important;
  font-family: Manrope, Inter, sans-serif !important;
  font-size: 31px !important;
  font-weight: 900 !important;
  letter-spacing: -.06em !important;
}

.brand-mark {
  display: none !important;
}

.site-nav a {
  color: #050505 !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}

.site-nav a:hover,
.site-nav a.active {
  color: #d91010 !important;
  background: rgba(217, 16, 16, .07) !important;
}

.btn-red,
.nav-actions .btn-red,
.hero-actions .btn-red,
.cta-actions .btn-red {
  border: 1px solid #d91010 !important;
  background: linear-gradient(180deg, #e51a1a 0%, #d91010 100%) !important;
  color: #fff !important;
  box-shadow: 0 16px 36px rgba(217, 16, 16, .26) !important;
}

.btn-white,
.hero-actions .btn-white,
.btn-dark-outline {
  border: 1px solid #e4e7ec !important;
  background: #fff !important;
  color: #0f1c2e !important;
  box-shadow: 0 12px 30px rgba(15, 28, 46, .055) !important;
}

.home-ref .hero2 {
  min-height: 650px !important;
  padding: 86px 0 64px !important;
  background:
    radial-gradient(circle at 72% 28%, rgba(217, 16, 16, .12), transparent 25%),
    linear-gradient(rgba(15, 28, 46, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 46, .035) 1px, transparent 1px),
    #faf9f5 !important;
  background-size: auto, 32px 32px, 32px 32px, auto !important;
}

.home-ref .hero-grid {
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr) !important;
  gap: 72px !important;
  align-items: center !important;
}

.home-ref .pill,
.subhero .eyebrow,
.section-head > span,
.eyebrow,
.insights-live {
  border: 1px solid rgba(217, 16, 16, .11) !important;
  border-radius: 999px !important;
  background: rgba(217, 16, 16, .07) !important;
  color: #d91010 !important;
}

.home-ref .hero-copy h1,
.subhero h1,
.page-head h1,
.section-head h2,
.cta-dark h2 {
  font-family: Manrope, Inter, sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -.055em !important;
}

.home-ref .hero-copy h1 {
  font-size: clamp(48px, 6vw, 78px) !important;
  line-height: .98 !important;
}

.home-ref .hero-copy h1 span {
  color: #d91010 !important;
}

.home-ref .hero-visual {
  height: 424px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.home-ref .hero-visual::after {
  content: "" !important;
  position: absolute !important;
  inset: -10px !important;
  z-index: -1 !important;
  width: auto !important;
  height: auto !important;
  border: 1px solid rgba(15, 28, 46, .10) !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 24px 60px rgba(15, 28, 46, .10) !important;
}

.home-ref .hero-visual img {
  position: relative !important;
  z-index: 1 !important;
  height: 100% !important;
  border: 8px solid #fff !important;
  border-radius: 20px !important;
  object-fit: cover !important;
}

.feature-row-ref,
.feature-card,
.teacher-card,
.pricing-card,
.exam-card,
.course-card,
.class-card,
.panel,
.card,
.stat-card,
.metric-card,
.dashboard-card,
.auth-page,
.form-shell,
.insights-shell,
.catalog-panel,
.level-card-ref,
.testimonial-card,
.process-card,
.faq-item,
.live-gate-card,
.classroom-lobby,
.data-card,
.table-card {
  border: 1px solid #e4e7ec !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 12px 34px rgba(15, 28, 46, .075) !important;
}

.feature-row-ref:hover,
.feature-card:hover,
.teacher-card:hover,
.pricing-card:hover,
.exam-card:hover,
.course-card:hover,
.class-card:hover,
.panel:hover,
.card:hover,
.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(15, 28, 46, .10) !important;
}

.insights-shell,
.cta-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(217, 16, 16, .28), transparent 28%),
    #11141b !important;
  color: #fff !important;
}

.footer {
  border-top: 1px solid #e4e7ec !important;
  background: #faf9f5 !important;
}

@media (max-width: 980px) {
  .home-ref .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 25px !important;
  }

  .home-ref .hero2 {
    padding: 34px 0 42px !important;
  }

  .home-ref .hero-copy h1 {
    font-size: clamp(34px, 12vw, 48px) !important;
  }

  .home-ref .hero-visual {
    height: 270px !important;
  }
}

/* Stitch premium bento refresh - 2026-07-17
   Source language: ARAYUZLER Stitch exports. Implemented as safe CSS over
   the existing PHP views so routing, auth, data and deployment stay intact. */
:root {
  --du-stitch-red: #d91010;
  --du-stitch-red-dark: #a70808;
  --du-stitch-black: #090b10;
  --du-stitch-ink: #0f1c2e;
  --du-stitch-muted: #667085;
  --du-stitch-line: #e4e7ec;
  --du-stitch-warm: #f7f6f2;
  --du-stitch-blue: #eef3ff;
  --du-stitch-card: #ffffff;
  --du-stitch-shadow: 0 24px 60px rgba(15, 28, 46, .10);
  --du-stitch-shadow-soft: 0 12px 34px rgba(15, 28, 46, .075);
  --du-stitch-radius: 18px;
}

body {
  background:
    linear-gradient(rgba(15, 28, 46, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 46, .035) 1px, transparent 1px),
    var(--du-stitch-warm);
  background-size: 32px 32px, 32px 32px, auto;
  color: var(--du-stitch-ink);
  font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wrap {
  width: min(1280px, calc(100% - 52px));
}

.site-header {
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(15, 28, 46, .10);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 30px rgba(15, 28, 46, .045);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  height: 72px;
  gap: 28px;
}

.brand {
  gap: 0;
  color: #050505;
  font-family: Manrope, Inter, sans-serif;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -.06em;
}

.brand-mark {
  display: none;
}

.brand span span {
  color: #050505;
}

.logo-suffix {
  margin-left: 8px;
  color: var(--du-stitch-muted);
  font-size: 13px;
  letter-spacing: 0;
}

.site-nav {
  gap: 16px;
  margin-left: auto;
}

.site-nav a {
  color: #050505;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--du-stitch-red);
  background: rgba(217, 16, 16, .07);
}

.nav-actions {
  gap: 10px;
}

.nav-actions .btn-ghost {
  color: #050505;
  border: 0;
  background: transparent;
  font-weight: 750;
}

.btn,
.btn-ghost,
.soft,
.link-soft,
button.soft {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 850;
  letter-spacing: -.01em;
}

.btn-red,
.nav-actions .btn-red,
.hero-actions .btn-red,
.cta-actions .btn-red {
  border: 1px solid var(--du-stitch-red);
  background: linear-gradient(180deg, #e51a1a 0%, var(--du-stitch-red) 100%);
  color: #fff !important;
  box-shadow: 0 16px 36px rgba(217, 16, 16, .26);
}

.btn-red:hover,
.nav-actions .btn-red:hover,
.hero-actions .btn-red:hover {
  background: linear-gradient(180deg, #c90d0d 0%, var(--du-stitch-red-dark) 100%);
  transform: translateY(-1px);
}

.btn-white,
.hero-actions .btn-white,
.btn-dark-outline {
  border: 1px solid var(--du-stitch-line) !important;
  background: #fff !important;
  color: var(--du-stitch-ink) !important;
  box-shadow: 0 12px 30px rgba(15, 28, 46, .055) !important;
}

.home-ref .hero2 {
  min-height: 650px;
  padding: 86px 0 64px;
  background:
    radial-gradient(circle at 72% 28%, rgba(217, 16, 16, .12), transparent 25%),
    linear-gradient(rgba(15, 28, 46, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 46, .035) 1px, transparent 1px),
    #faf9f5;
  background-size: auto, 32px 32px, 32px 32px, auto;
}

.home-ref .hero-grid {
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 72px;
  align-items: center;
}

.home-ref .hero-copy {
  max-width: 590px;
}

.home-ref .pill,
.subhero .eyebrow,
.section-head > span,
.eyebrow,
.insights-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(217, 16, 16, .11);
  border-radius: 999px;
  background: rgba(217, 16, 16, .07);
  color: var(--du-stitch-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-ref .pill {
  padding: 9px 13px;
}

.home-ref .pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--du-stitch-red);
  box-shadow: 0 0 0 7px rgba(217, 16, 16, .11);
}

.home-ref .hero-copy h1,
.subhero h1,
.page-head h1 {
  color: #101828;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 900;
  letter-spacing: -.065em;
}

.home-ref .hero-copy h1 {
  margin: 28px 0 22px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: .98;
}

.home-ref .hero-copy h1 span {
  position: relative;
  color: var(--du-stitch-red);
}

.home-ref .hero-copy h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .05em;
  z-index: -1;
  height: .18em;
  background: rgba(217, 16, 16, .13);
}

.home-ref .hero-copy > p,
.subhero p,
.section-head p,
.page-head p {
  color: var(--du-stitch-muted);
  font-size: 17px;
  line-height: 1.78;
}

.home-ref .hero-actions {
  gap: 14px;
  margin-top: 34px;
}

.home-ref .hero-proof {
  display: none;
}

.home-ref .check-row,
.partner-strip {
  border-top: 1px solid var(--du-stitch-line);
  border-bottom: 1px solid var(--du-stitch-line);
  background: rgba(255, 255, 255, .82);
}

.home-ref .check-row {
  margin-top: 44px;
  padding: 15px 0 0;
  border: 0;
  color: #4b5565;
  font-size: 13px;
}

.home-ref .check-row span::before {
  border-color: #98a2b3;
  color: #344054;
}

.home-ref .hero-visual {
  height: 424px;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

.home-ref .hero-visual::before {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: -2;
  border-radius: 32px;
  background: radial-gradient(circle at 12% 86%, rgba(217, 16, 16, .18), transparent 25%);
  filter: blur(8px);
}

.home-ref .hero-visual::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border: 1px solid rgba(15, 28, 46, .10);
  border-radius: 24px;
  background: linear-gradient(#fff, #fff);
  box-shadow: var(--du-stitch-shadow);
}

.home-ref .hero-visual img {
  position: relative;
  z-index: 1;
  height: 100%;
  border: 8px solid #fff;
  border-radius: 20px;
  object-fit: cover;
}

.home-ref .hero-session-card,
.home-ref .hero-level-card {
  z-index: 3;
  border: 1px solid rgba(15, 28, 46, .10);
  border-radius: 12px;
  background: rgba(255, 255, 255, .95);
  color: var(--du-stitch-ink);
  box-shadow: 0 18px 40px rgba(15, 28, 46, .12);
  backdrop-filter: blur(10px);
}

.home-ref .hero-session-card {
  top: 58px;
  right: -24px;
  bottom: auto;
  width: 158px;
  padding: 14px;
}

.home-ref .hero-session-card .live-dot,
.home-ref .hero-session-card::before {
  background: var(--du-stitch-red);
}

.home-ref .hero-level-card {
  left: -8px;
  bottom: -8px;
}

.partner-strip {
  padding: 0;
}

.partner-strip .wrap {
  min-height: 70px;
}

.partner-strip p {
  color: #344054;
  font-weight: 850;
}

.partner-strip span {
  color: #667085 !important;
  font-weight: 750;
}

.section,
.light,
.intelligence-section {
  background: transparent !important;
}

.section {
  padding: 88px 0;
}

.section-head {
  margin-bottom: 42px;
}

.section-head h2 {
  color: #101828;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.feature-list-ref,
.teacher-grid,
.pricing-grid,
.course-grid,
.exam-grid,
.classroom-cards,
.testimonial-grid,
.process-grid,
.stats-grid,
.dashboard-grid,
.quick-grid,
.admin-grid,
.student-grid,
.profile-grid {
  gap: 24px;
}

.feature-row-ref,
.feature-card,
.teacher-card,
.pricing-card,
.exam-card,
.course-card,
.class-card,
.panel,
.card,
.stat-card,
.metric-card,
.dashboard-card,
.auth-page,
.form-shell,
.insights-shell,
.catalog-panel,
.level-card-ref,
.testimonial-card,
.process-card,
.faq-item,
.live-gate-card,
.classroom-lobby,
.data-card,
.table-card {
  border: 1px solid var(--du-stitch-line) !important;
  border-radius: var(--du-stitch-radius) !important;
  background: rgba(255, 255, 255, .93) !important;
  box-shadow: var(--du-stitch-shadow-soft) !important;
}

.feature-row-ref:hover,
.feature-card:hover,
.teacher-card:hover,
.pricing-card:hover,
.exam-card:hover,
.course-card:hover,
.class-card:hover,
.panel:hover,
.card:hover,
.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--du-stitch-shadow) !important;
}

.feature-row-ref {
  min-height: 190px;
  padding: 30px;
}

.feature-row-ref > div,
.level-dot-ref,
.catalog-level,
.icon-badge,
.stat-icon {
  border: 1px solid rgba(217, 16, 16, .10);
  border-radius: 12px;
  background: #eef3ff;
  color: #111827;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 900;
}

.feature-row-ref h3,
.teacher-card h3,
.pricing-card h3,
.exam-card h3,
.course-card h3,
.panel h3,
.card h3,
.dashboard-card h3,
.level-card-ref h3 {
  color: #101828;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 900;
  letter-spacing: -.035em;
}

.feature-row-ref p,
.teacher-card p,
.pricing-card p,
.exam-card p,
.course-card p,
.panel p,
.card p,
.dashboard-card p,
.level-card-ref p,
.level-card-ref li {
  color: var(--du-stitch-muted);
}

.home-stats {
  margin-top: 24px;
}

.home-stats article {
  border: 1px solid var(--du-stitch-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 28, 46, .055);
}

.home-stats b {
  color: var(--du-stitch-red);
}

.intelligence-section {
  color: #fff;
}

.insights-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(217, 16, 16, .28), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, .08), transparent 30%),
    #11141b !important;
  color: #fff;
}

.insights-shell::before,
.cta-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .32;
}

.insights-toolbar,
.insights-grid,
.catalog-panel {
  position: relative;
  z-index: 1;
}

.insights-toolbar,
.metric-row article,
.insights-side > div,
.catalog-panel {
  border-color: rgba(255, 255, 255, .12) !important;
}

.metric-row article,
.insights-side > div {
  background: rgba(255, 255, 255, .06) !important;
  box-shadow: none !important;
}

.catalog-panel {
  background: rgba(255, 255, 255, .96) !important;
  color: var(--du-stitch-ink);
}

.progress-chart i,
.skill-stack em {
  background: linear-gradient(180deg, #ef4444, var(--du-stitch-red));
}

.level-track-ref {
  align-items: stretch;
}

.level-track-ref::before {
  top: 45px;
  background: linear-gradient(90deg, #15171c, var(--du-stitch-red), #e5e7eb);
  opacity: .25;
}

.level-dot-ref {
  width: 76px;
  height: 76px;
  background: #11141b !important;
  color: #fff;
  box-shadow: 0 16px 36px rgba(15, 28, 46, .16);
}

.level-item-ref:nth-child(3) .level-dot-ref,
.level-item-ref:nth-child(3) .level-card-ref {
  border-color: rgba(217, 16, 16, .40) !important;
}

.level-item-ref:nth-child(3) .level-card-ref {
  box-shadow: 0 22px 44px rgba(217, 16, 16, .14) !important;
}

.cta-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(217, 16, 16, .24), transparent 24%),
    #12151c !important;
  color: #fff;
}

.cta-dark .wrap {
  position: relative;
  z-index: 1;
}

.cta-dark h2 {
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -.055em;
}

.cta-dark p {
  color: rgba(255, 255, 255, .70);
}

.footer {
  border-top: 1px solid var(--du-stitch-line);
  background: #faf9f5;
}

.footer .brand {
  font-size: 26px;
}

.footer-grid h4 {
  color: #050505;
  font-size: 16px;
}

.footer-grid a,
.footer-grid p,
.footer-bottom {
  color: #667085;
}

.subhero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 70px;
  border-bottom: 1px solid var(--du-stitch-line);
  background:
    radial-gradient(circle at 80% 25%, rgba(217, 16, 16, .10), transparent 25%),
    linear-gradient(rgba(15, 28, 46, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 46, .035) 1px, transparent 1px),
    #faf9f5;
  background-size: auto, 32px 32px, 32px 32px, auto;
}

.subhero h1 {
  max-width: 780px;
  font-size: clamp(40px, 5.8vw, 72px);
  line-height: 1;
}

.page-head {
  border: 1px solid var(--du-stitch-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at right top, rgba(217, 16, 16, .10), transparent 28%),
    #fff;
  box-shadow: var(--du-stitch-shadow-soft);
}

table,
.table {
  border-radius: 16px;
  overflow: hidden;
}

th {
  background: #f8fafc !important;
  color: #344054 !important;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

td {
  border-color: var(--du-stitch-line) !important;
}

input,
select,
textarea {
  border: 1px solid var(--du-stitch-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(15, 28, 46, .035);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(217, 16, 16, .55) !important;
  box-shadow: 0 0 0 4px rgba(217, 16, 16, .12) !important;
}

.auth-page {
  overflow: hidden;
  background: #fff !important;
}

.auth-brand {
  background:
    radial-gradient(circle at 20% 10%, rgba(217, 16, 16, .26), transparent 25%),
    #11141b !important;
  color: #fff;
}

.auth-brand h1,
.auth-brand p {
  color: #fff;
}

.auth-form {
  background: #fff;
}

.app-shell,
.dashboard-shell,
.panel-shell {
  background:
    linear-gradient(rgba(15, 28, 46, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 46, .035) 1px, transparent 1px),
    #f7f6f2 !important;
  background-size: 32px 32px, 32px 32px, auto;
}

.sidebar,
.app-sidebar {
  border-right: 1px solid rgba(15, 28, 46, .10);
  background: rgba(255, 255, 255, .86) !important;
  backdrop-filter: blur(16px);
}

.sidebar a,
.app-sidebar a,
.nav-link {
  border-radius: 12px;
  color: #344054;
  font-weight: 750;
}

.sidebar a.active,
.app-sidebar a.active,
.nav-link.active {
  background: #11141b !important;
  color: #fff !important;
}

.sidebar a:hover,
.app-sidebar a:hover,
.nav-link:hover {
  background: rgba(217, 16, 16, .08);
  color: var(--du-stitch-red);
}

.badge,
.tag,
.status,
.pill-soft {
  border-radius: 999px !important;
  font-weight: 850;
}

.badge-red,
.tag-red,
.status-live,
.status.active {
  background: rgba(217, 16, 16, .09) !important;
  color: var(--du-stitch-red) !important;
}

@media (max-width: 980px) {
  .wrap {
    width: min(100% - 30px, 1280px);
  }

  .site-header,
  .nav-wrap {
    height: 66px;
  }

  .brand {
    font-size: 25px;
  }

  .menu-btn {
    margin-left: auto;
    border: 1px solid var(--du-stitch-line);
    border-radius: 12px;
    background: #fff;
  }

  .site-nav {
    top: 66px;
    border: 1px solid var(--du-stitch-line);
    border-radius: 0 0 18px 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--du-stitch-shadow);
  }

  .site-nav a {
    padding: 15px 18px;
  }

  .home-ref .hero2 {
    padding: 52px 0 42px;
  }

  .home-ref .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-ref .hero-copy h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .home-ref .hero-visual {
    height: min(62vw, 390px);
  }

  .home-ref .hero-session-card {
    right: 8px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 24px, 1280px);
  }

  .nav-actions {
    display: none;
  }

  .home-ref .hero2 {
    padding-top: 34px;
  }

  .home-ref .pill {
    width: auto;
    max-width: 100%;
    text-align: left;
  }

  .home-ref .hero-copy h1 {
    font-size: clamp(34px, 12vw, 48px) !important;
    letter-spacing: -.055em;
  }

  .home-ref .hero-actions,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-ref .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .home-ref .hero-visual {
    height: 270px;
  }

  .home-ref .hero-session-card {
    width: calc(100% - 20px);
    top: auto;
    right: 10px;
    bottom: 10px;
  }

  .home-ref .hero-level-card {
    display: none;
  }

  .section {
    padding: 58px 0;
  }

  .section-head h2,
  .subhero h1,
  .page-head h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .feature-row-ref,
  .card,
  .panel,
  .pricing-card,
  .teacher-card {
    padding: 22px !important;
  }
}

/* Premium interface refresh - 2026-07-17 */
:root {
  --du-modern-ink: #08111f;
  --du-modern-navy: #101827;
  --du-modern-slate: #253348;
  --du-modern-muted: #607086;
  --du-modern-line: #dde5ef;
  --du-modern-paper: #ffffff;
  --du-modern-page: #f4f7fb;
  --du-modern-red: #e1192a;
  --du-modern-red-dark: #b90f1d;
  --du-modern-cyan: #0e7490;
  --du-modern-green: #157f55;
  --du-modern-shadow: 0 24px 70px rgba(8, 17, 31, .12);
  --du-modern-soft-shadow: 0 14px 38px rgba(8, 17, 31, .08);
}

html {
  background: var(--du-modern-page);
}

body {
  background:
    linear-gradient(180deg, rgba(244, 247, 251, .92), rgba(255, 255, 255, 1) 720px),
    var(--du-modern-page);
  color: var(--du-modern-ink);
}

.wrap {
  width: min(1220px, calc(100% - 44px));
}

.site-header {
  height: 82px;
  border-bottom: 1px solid rgba(221, 229, 239, .72);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 48px rgba(8, 17, 31, .06);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  height: 82px;
  grid-template-columns: minmax(170px, auto) minmax(0, 1fr) auto;
  gap: 28px;
}

.brand {
  gap: 11px;
  color: var(--du-modern-ink);
  font-size: 18px;
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ff3544, var(--du-modern-red) 52%, #990d19);
  box-shadow: 0 14px 28px rgba(225, 25, 42, .24);
}

.site-nav {
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(221, 229, 239, .9);
  border-radius: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

.site-nav a {
  border-radius: 7px;
  padding: 11px 14px;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.site-nav a:hover,
.site-nav a.active {
  background: #fff;
  color: var(--du-modern-red);
  box-shadow: 0 10px 24px rgba(8, 17, 31, .08);
}

.nav-actions {
  gap: 10px;
}

.btn,
.btn-ghost,
.soft,
.link-soft,
button.soft {
  min-height: 44px;
  border-radius: 8px;
  padding-inline: 18px;
  font-weight: 850;
}

.btn-red {
  border-color: var(--du-modern-red);
  background:
    linear-gradient(180deg, #ff3140, var(--du-modern-red));
  box-shadow: 0 18px 36px rgba(225, 25, 42, .24);
}

.btn-red:hover {
  border-color: var(--du-modern-red-dark);
  background:
    linear-gradient(180deg, #e72232, var(--du-modern-red-dark));
}

.btn-white,
.btn-ghost,
.soft,
.link-soft {
  border-color: rgba(221, 229, 239, .95);
  background: rgba(255, 255, 255, .92);
  color: var(--du-modern-ink);
  box-shadow: 0 12px 30px rgba(8, 17, 31, .07);
}

.home-ref .hero2 {
  min-height: 760px;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 43%, rgba(255,255,255,.55) 66%, rgba(255,255,255,.12) 100%),
    repeating-linear-gradient(90deg, rgba(8, 17, 31, .045) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(8, 17, 31, .035) 0 1px, transparent 1px 84px),
    var(--du-modern-page);
}

.home-ref .hero2::after {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(180deg, transparent, var(--du-modern-page));
  content: "";
  pointer-events: none;
}

.home-ref .hero-grid {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(460px, 1.02fr);
  gap: 48px;
  align-items: center;
}

.home-ref .hero-grid::before {
  display: none;
}

.home-ref .hero-copy {
  z-index: 3;
  width: 100%;
  max-width: 680px;
  padding: 92px 0 104px;
}

.home-ref .pill {
  width: fit-content;
  min-height: 38px;
  border: 1px solid rgba(225, 25, 42, .18);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .88);
  color: var(--du-modern-red);
  box-shadow: 0 14px 28px rgba(8, 17, 31, .06);
}

.home-ref .pill span {
  background: var(--du-modern-red);
  box-shadow: 0 0 0 7px rgba(225, 25, 42, .12);
}

.home-ref .hero-copy h1 {
  max-width: 720px;
  color: var(--du-modern-ink);
  font-size: clamp(48px, 5.9vw, 86px);
  font-weight: 950;
  line-height: .94;
}

.home-ref .hero-copy h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--du-modern-red), #ff4050 58%, #7f1d1d);
  -webkit-background-clip: text;
  background-clip: text;
}

.home-ref .hero-copy > p {
  max-width: 620px;
  color: var(--du-modern-slate);
  font-size: 19px;
  line-height: 1.72;
}

.home-ref .hero-actions {
  gap: 14px;
  margin-top: 34px;
}

.home-ref .hero-actions .btn {
  min-height: 58px;
  border-radius: 8px;
  padding-inline: 26px;
}

.home-ref .hero-proof {
  width: min(650px, 100%);
  border: 1px solid rgba(221, 229, 239, .9);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--du-modern-soft-shadow);
}

.home-ref .hero-proof > div {
  border-color: rgba(8, 17, 31, .09);
}

.home-ref .hero-proof strong {
  color: var(--du-modern-ink);
  font-size: 30px;
}

.home-ref .hero-proof span,
.home-ref .check-row {
  color: var(--du-modern-muted);
}

.home-ref .check-row span::before {
  color: var(--du-modern-green);
  content: "✓";
}

.home-ref .hero-visual {
  position: relative;
  z-index: 2;
  height: min(590px, 68vh);
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(8, 17, 31, .12);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(8, 17, 31, .24);
}

.home-ref .hero-visual::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 17, 31, .08), rgba(8, 17, 31, .34)),
    linear-gradient(90deg, rgba(225, 25, 42, .12), transparent 42%);
  content: "";
  pointer-events: none;
}

.home-ref .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.home-ref .hero-session-card,
.home-ref .hero-level-card {
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 22px 54px rgba(8, 17, 31, .18);
  backdrop-filter: blur(16px);
}

.home-ref .hero-level-card b {
  color: var(--du-modern-ink);
  font-size: 30px;
}

.partner-strip {
  border-block: 1px solid rgba(221, 229, 239, .92);
  background: #fff;
}

.home-ref .partner-strip .wrap {
  min-height: 96px;
}

.home-ref .partner-strip p {
  color: var(--du-modern-red);
  font-weight: 900;
}

.home-ref .partner-strip span {
  border: 1px solid rgba(221, 229, 239, .9);
  border-radius: 8px;
  padding: 12px 16px;
  background: #f8fafc;
  color: var(--du-modern-slate);
  font-weight: 850;
}

.section {
  padding: 96px 0;
}

.section.light,
.home-feature-ref,
.faq-ref-section {
  background:
    linear-gradient(180deg, #f8fafc, #fff);
}

.section-head span,
.section-head.left span,
.catalog-head span,
.teacher-label {
  color: var(--du-modern-red);
  font-size: 12px;
  font-weight: 950;
}

.section-head h2,
.page-head h1,
.subhero h1 {
  color: var(--du-modern-ink);
  font-weight: 950;
  line-height: 1.03;
}

.section-head h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.section-head p,
.subhero p,
.page-head p {
  color: var(--du-modern-muted);
  line-height: 1.75;
}

.feature-row-ref,
.feature-card,
.process-card,
.teacher-card,
.certificate-card,
.catalog-panel,
.card,
.exam-card,
.homework-card,
.faq-item-ref,
.testimonial-grid article {
  border: 1px solid rgba(221, 229, 239, .95);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--du-modern-soft-shadow);
}

.feature-row-ref {
  align-items: center;
  padding: 26px;
}

.feature-row-ref > div,
.process-card > div,
.feature-card > div {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(225, 25, 42, .12), rgba(14, 116, 144, .10));
  color: var(--du-modern-red);
}

.feature-row-ref h3,
.feature-card h3,
.process-card h3,
.teacher-card h3,
.card h3 {
  color: var(--du-modern-ink);
}

.feature-grid,
.process-grid,
.teacher-grid,
.homework-grid,
.exam-grid,
.pricing-grid,
.grid-2,
.grid-3 {
  gap: 22px;
}

.catalog-panel {
  overflow: hidden;
}

.catalog-head {
  background: var(--du-modern-navy);
  color: #fff;
}

.catalog-head span,
.catalog-head h3,
.catalog-head a {
  color: #fff;
}

.catalog-table th {
  color: #728096;
  font-size: 12px;
  text-transform: uppercase;
}

.catalog-table td {
  border-color: rgba(221, 229, 239, .88);
}

.level-card-ref {
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--du-modern-soft-shadow);
}

.level-badge-ref {
  border-radius: 8px;
  background: var(--du-modern-navy);
  color: #fff;
}

.classroom-section {
  background:
    linear-gradient(180deg, #fff, #f4f7fb);
}

.teacher-card.reference-teacher,
.certificate-grid {
  border: 1px solid rgba(221, 229, 239, .92);
  border-radius: 8px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.94));
  box-shadow: var(--du-modern-shadow);
}

.avatar {
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--du-modern-red), var(--du-modern-cyan));
  color: #fff;
}

.certificate-card.certificate-ref {
  background:
    linear-gradient(150deg, var(--du-modern-navy), #17243a);
  color: #fff;
}

.certificate-card.certificate-ref h3,
.certificate-card.certificate-ref small,
.certificate-card.certificate-ref em {
  color: #fff;
}

.cta-dark {
  background:
    linear-gradient(135deg, #08111f 0%, #111c31 55%, #24111a 100%);
}

.cta-dark .wrap {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.subhero,
.exam-hero,
.auth-page {
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(244,247,251,.96)),
    repeating-linear-gradient(90deg, rgba(8, 17, 31, .04) 0 1px, transparent 1px 78px);
}

.auth-page,
.form-shell {
  border-radius: 8px;
  box-shadow: var(--du-modern-shadow);
}

input,
select,
textarea {
  border-radius: 8px !important;
  border-color: rgba(221, 229, 239, .95) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(225, 25, 42, .55) !important;
  box-shadow: 0 0 0 4px rgba(225, 25, 42, .10) !important;
}

.footer {
  background: #08111f;
  color: #dbe5f2;
}

.footer a,
.footer p,
.footer-bottom {
  color: #c9d5e5;
}

@media (max-width: 980px) {
  .site-header,
  .nav-wrap {
    height: auto;
  }

  .nav-wrap {
    min-height: 72px;
    grid-template-columns: auto auto;
  }

  .site-nav {
    border-radius: 8px;
    box-shadow: var(--du-modern-shadow);
  }

  .home-ref .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 44px;
  }

  .home-ref .hero-copy {
    max-width: 100%;
    padding: 64px 0 12px;
  }

  .home-ref .hero-visual {
    width: 100%;
    min-height: 380px;
    height: 48vh;
  }

  .home-ref .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1220px);
  }

  .home-ref .hero2,
  .home-ref .hero-grid {
    min-height: auto;
  }

  .home-ref .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(34px, 11vw, 48px) !important;
    line-height: .98;
  }

  .home-ref .hero-copy > p {
    font-size: 16px;
  }

  .home-ref .hero-actions,
  .home-ref .check-row,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-ref .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .home-ref .hero-proof {
    grid-template-columns: 1fr;
  }

  .home-ref .hero-proof > div {
    border-right: 0;
    border-bottom: 1px solid rgba(8, 17, 31, .09);
    padding: 12px 0;
  }

  .home-ref .hero-proof > div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 64px 0;
  }

  .section-head h2 {
    font-size: 31px;
  }

  .teacher-card.reference-teacher,
  .certificate-grid,
  .cta-dark .wrap {
    padding: 22px;
  }
}

/* Full mobile responsive hardening */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

input,
select,
textarea,
button {
  max-width: 100%;
}

.auth-page,
.auth-form,
.form-shell,
.form-shell form,
.form-grid,
.card,
.panel-main,
.page,
.live-gate-card,
.classroom-lobby,
.classroom-shell,
.lesson-panel {
  min-width: 0;
}

.form-shell input,
.form-shell select,
.form-shell textarea,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
}

.table-wrap,
.catalog-table-wrap,
.card:has(table) {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table,
.card table,
.catalog-table {
  min-width: 720px;
}

.inline-form {
  max-width: 100%;
}

@media (max-width: 980px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav-wrap {
    position: relative;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    border: 1px solid rgba(16, 23, 35, .1);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 22px 48px rgba(16, 23, 35, .14);
    backdrop-filter: blur(14px);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    min-height: 44px;
    justify-content: center;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-actions .btn,
  .nav-actions .btn-ghost {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 11px;
  }
}

@media (max-width: 700px) {
  body {
    width: 100%;
  }

  .wrap {
    width: min(100% - 28px, 1260px);
  }

  .site-header {
    height: 64px;
  }

  .nav-wrap {
    height: 64px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand > span:last-child {
    overflow: hidden;
    max-width: 122px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-actions .btn {
    min-height: 36px;
    padding-inline: 10px;
  }

  .subhero {
    min-height: 0;
    padding: 54px 0;
  }

  .subhero h1,
  .auth-brand h1,
  .live-gate-copy h1,
  .lobby-main h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .subhero p,
  .auth-brand > div > p,
  .live-gate-copy > p,
  .lobby-main > p {
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: break-word;
  }

  .auth-page {
    width: 100%;
    min-height: 0;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .auth-brand {
    min-height: 310px;
    padding: 32px 20px;
  }

  .auth-brand h1 {
    margin-top: 48px;
  }

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

  .auth-form {
    padding: 42px 20px;
  }

  .auth-top {
    display: none;
  }

  .form-shell {
    width: 100%;
    max-width: none;
  }

  .form-shell > h1 {
    font-size: 29px;
    line-height: 1.1;
  }

  .form-shell > p {
    overflow-wrap: break-word;
  }

  .two,
  .form-grid .two {
    grid-template-columns: 1fr;
  }

  label.check {
    align-items: flex-start;
    line-height: 1.55;
  }

  label.check input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin-top: 2px;
  }

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

  .panel-top {
    height: 64px;
    padding-inline: 12px;
  }

  .panel-top .brand > span:last-child {
    max-width: 116px;
  }

  .panel-user {
    gap: 6px;
  }

  .panel-user > span {
    display: none;
  }

  .panel-user button {
    min-height: 34px;
    padding-inline: 10px;
  }

  .side {
    top: 64px;
    height: 60px;
    padding: 8px 10px;
    gap: 6px;
  }

  .ni {
    min-height: 42px;
    grid-template-columns: 26px max-content;
    white-space: nowrap;
  }

  .ni .ico {
    width: 26px;
    height: 26px;
  }

  .panel-main {
    margin-left: 0;
    padding: 142px 14px 42px;
  }

  .page-head {
    margin-bottom: 18px;
  }

  .page-head h1 {
    font-size: 25px;
    line-height: 1.12;
  }

  .stat-grid,
  .grid-2,
  .grid-3,
  .student-teacher-grid,
  .student-schedule-list,
  .ai-key-summary,
  .ai-key-layout {
    grid-template-columns: 1fr;
  }

  .stat-card,
  .card {
    padding: 16px;
  }

  .card-head,
  .toolbar,
  .form-row,
  .ai-key-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .toolbar input,
  .toolbar select,
  .toolbar .btn,
  .toolbar .soft,
  .card-head .soft,
  .card-head .btn {
    width: 100%;
  }

  th,
  td {
    padding: 11px 12px;
  }

  .live-gate-page {
    min-height: 100dvh;
    padding: 0;
  }

  .live-gate-card,
  .classroom-lobby {
    width: 100%;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .live-gate-copy,
  .lobby-main,
  .live-gate-side,
  .lobby-side {
    padding: 32px 20px;
  }

  .live-gate-side,
  .lobby-side {
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-left: 0;
  }

  .live-meta-grid,
  .live-gate-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .live-meta-grid span,
  .live-gate-details span {
    min-height: 58px;
  }

  .live-gate-actions,
  .lobby-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .live-gate-actions .btn,
  .live-gate-actions .link-soft,
  .lobby-actions .btn,
  .lobby-actions .link-soft {
    width: 100%;
  }

  .classroom-shell {
    min-height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .cls-header {
    min-height: 64px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
  }

  .cls-header .brand > span:last-child {
    display: none;
  }

  .live-title {
    min-width: 0;
  }

  .live-title strong {
    max-width: 100%;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .live-title span {
    display: none;
  }

  .classroom-actions {
    gap: 6px;
  }

  .classroom-actions form,
  .classroom-actions .btn:not(:last-child) {
    display: none;
  }

  .classroom-layout {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .video-stage {
    min-height: 56vh;
    padding: 8px;
  }

  .video-frame,
  .jitsi-api-frame,
  .jitsi-api-frame > div,
  .jitsi-api-frame iframe,
  .video-stage iframe {
    min-height: 56vh;
  }

  .lesson-panel {
    min-height: 520px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-left: 0;
  }

  .lesson-panel .tabs {
    overflow-x: auto;
  }

  .lesson-panel .tabs button {
    min-width: 92px;
    min-height: 48px;
    white-space: nowrap;
  }

  .control-bar {
    overflow-x: auto;
    padding: 8px;
  }

  .control-bar > span,
  .control-bar button:nth-of-type(2) {
    display: none;
  }

  .control-bar button,
  .control-bar a {
    min-width: max-content;
  }
}

@media (max-width: 430px) {
  .wrap {
    width: min(100% - 28px, 1260px);
  }

  .brand > span:last-child {
    max-width: 110px;
  }

  .nav-actions .btn {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .auth-brand,
  .auth-form,
  .live-gate-copy,
  .lobby-main,
  .live-gate-side,
  .lobby-side {
    padding-right: 16px;
    padding-left: 16px;
  }

  .auth-brand h1,
  .subhero h1,
  .live-gate-copy h1,
  .lobby-main h1 {
    font-size: 28px;
  }

  .table-wrap table,
  .card table,
  .catalog-table {
    min-width: 640px;
  }
}

/* Absolute final narrow viewport guard */
@media (max-width: 700px) {
  .auth-brand,
  .auth-form,
  .form-shell,
  .live-gate-card,
  .classroom-lobby,
  .live-gate-copy,
  .lobby-main,
  .live-gate-side,
  .lobby-side,
  .live-gate-details,
  .live-meta-grid,
  .live-gate-actions,
  .lobby-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    overflow-x: hidden;
  }

  .auth-brand h1,
  .auth-brand p,
  .live-gate-copy h1,
  .lobby-main h1,
  .live-gate-copy > p,
  .lobby-main > p,
  .live-gate-details span,
  .live-meta-grid span {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .live-gate-actions .btn,
  .live-gate-actions .link-soft,
  .lobby-actions .btn,
  .lobby-actions .link-soft {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    justify-content: center;
    white-space: normal;
  }
}

@media (max-width: 430px) {
  .live-gate-copy h1,
  .lobby-main h1 {
    display: block;
    width: auto;
    max-width: calc(100vw - 40px) !important;
    max-inline-size: calc(100vw - 40px) !important;
    font-size: 22px !important;
    line-height: 1.18;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .live-gate-copy > p,
  .lobby-main > p {
    max-width: calc(100vw - 40px) !important;
    max-inline-size: calc(100vw - 40px) !important;
    font-size: 13px;
  }
}

@keyframes du-premium-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@media (max-width: 1180px) {
  .home-ref .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .home-ref .hero-copy {
    max-width: 820px;
    padding: 48px 0 0;
  }

  .home-ref .hero-visual {
    height: 520px;
  }

  .home-ref .home-feature-ref,
  .home-ref .reference-teacher {
    grid-template-columns: 1fr;
  }

  .home-ref .reference-teacher > .btn {
    justify-self: start;
  }

  .panel-main {
    padding-inline: 26px;
  }

  .classroom-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

@media (max-width: 860px) {
  .wrap {
    width: min(100% - 30px, 1260px);
  }

  .site-header,
  .nav-wrap {
    height: 66px;
  }

  .site-nav {
    border: 0;
    background: transparent;
  }

  .home-ref .hero2 {
    min-height: 0;
  }

  .home-ref .hero-grid {
    min-height: 0;
    padding-top: 18px;
  }

  .home-ref .hero-copy h1 {
    font-size: clamp(40px, 10vw, 58px);
  }

  .home-ref .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px;
  }

  .home-ref .hero-proof > div {
    min-height: 58px;
    padding: 8px;
  }

  .home-ref .hero-proof strong {
    font-size: 22px;
  }

  .home-ref .hero-visual {
    height: 420px;
  }

  .home-ref .hero-level-card {
    top: 70px;
    width: 190px;
  }

  .home-ref .section {
    padding: 78px 0;
  }

  .home-ref .home-stats,
  .metric-row,
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .panel-top {
    height: 68px;
  }

  .side {
    top: 68px;
    width: 100%;
  }

  .panel-main {
    margin-left: 0;
    padding: 154px 18px 44px;
  }

  .classroom-layout {
    grid-template-columns: 1fr;
  }

  .lesson-panel {
    min-height: 520px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .home-ref .pill {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .home-ref .hero-copy {
    padding-top: 30px;
  }

  .home-ref .hero-copy h1 {
    font-size: 38px;
    line-height: 1;
  }

  .home-ref .hero-copy > p {
    font-size: 15px;
  }

  .home-ref .hero-actions,
  .home-ref .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-ref .hero-actions .btn,
  .home-ref .hero-actions .btn-ghost,
  .home-ref .cta-actions .btn,
  .home-ref .cta-actions .btn-ghost {
    width: 100%;
  }

  .home-ref .hero-proof {
    grid-template-columns: 1fr;
  }

  .home-ref .hero-proof > div {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 23, 35, .08);
  }

  .home-ref .hero-proof > div:last-child {
    border-bottom: 0;
  }

  .home-ref .hero-visual {
    height: 330px;
  }

  .home-ref .hero-visual::after {
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    height: 34px;
  }

  .home-ref .hero-session-card {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .home-ref .hero-level-card {
    display: none;
  }

  .home-ref .partner-strip .wrap > div,
  .home-ref .partner-strip div div,
  .home-ref .feature-list-ref,
  .home-ref .level-track-ref,
  .home-ref .process-grid,
  .home-ref .testimonial-grid.two,
  .home-ref .classroom-cards {
    grid-template-columns: 1fr;
  }

  .home-ref .section-head h2 {
    font-size: 31px;
  }

  .home-ref .level-track-ref::before {
    display: none;
  }

  .home-ref .level-item-ref {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
  }

  .home-ref .level-card-ref {
    margin-top: 0;
  }

  .insights-toolbar,
  .chart-head {
    display: grid;
    gap: 14px;
  }

  .auth-page {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .auth-brand,
  .auth-form {
    padding: 32px 20px;
  }

  .page-head h1 {
    font-size: 28px;
  }

  .classroom-shell {
    grid-template-rows: 64px minmax(0, 1fr) 62px;
  }

  .cls-header {
    padding: 0 12px;
  }

  .live-title strong {
    max-width: 160px;
    font-size: 12px;
  }

  .video-stage {
    padding: 8px;
  }

  .video-frame,
  .jitsi-api-frame,
  .jitsi-api-frame > div,
  .jitsi-api-frame iframe,
  .video-stage iframe {
    min-height: 54vh;
  }
}

/* Absolute final phone override */
html,
body {
  overflow-x: hidden;
}

.home-ref .hero-session-card,
.home-ref .hero-level-card {
  color: var(--du-premium-ink);
}

.home-ref .hero-session-card b,
.home-ref .hero-session-card small,
.home-ref .hero-session-card strong,
.home-ref .hero-level-card small,
.home-ref .hero-level-card b,
.home-ref .hero-level-card span {
  color: var(--du-premium-ink);
  opacity: 1;
}

.home-ref .hero-session-card small,
.home-ref .hero-level-card small,
.home-ref .hero-level-card span {
  color: #5c687a;
}

.home-ref .partner-strip span {
  color: #556174;
  opacity: 1;
}

.home-ref .hero-actions .btn-white {
  border: 1px solid rgba(16, 23, 35, .12);
  background: #fff;
  color: var(--du-premium-ink);
  box-shadow: 0 16px 32px rgba(16, 23, 35, .08);
}

@media (max-width: 640px) {
  .home-ref .hero-copy {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .home-ref .hero-copy h1 {
    max-width: calc(100vw - 30px);
    font-size: clamp(24px, 6.1vw, 30px);
    line-height: 1.08;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .home-ref .hero-copy h1 span {
    display: block;
  }

  .home-ref .pill {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 9px 8px;
    font-size: 8px;
    line-height: 1.45;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .home-ref .pill span {
    display: none;
  }
}

@media (max-width: 430px) {
  .home-ref .hero-copy h1 {
    font-size: 22px !important;
    line-height: 1.12;
  }

  .home-ref .hero-copy > p {
    font-size: 14px;
  }
}

/* EOF mobile responsive lock - actual final */
@media (max-width: 700px) {
  .auth-brand,
  .auth-form,
  .form-shell,
  .live-gate-card,
  .classroom-lobby,
  .live-gate-copy,
  .lobby-main,
  .live-gate-side,
  .lobby-side,
  .live-gate-details,
  .live-meta-grid,
  .live-gate-actions,
  .lobby-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    overflow-x: hidden;
  }

  .auth-brand h1,
  .auth-brand p,
  .live-gate-copy h1,
  .lobby-main h1,
  .live-gate-copy > p,
  .lobby-main > p,
  .live-gate-details span,
  .live-meta-grid span {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .live-gate-actions .btn,
  .live-gate-actions .link-soft,
  .lobby-actions .btn,
  .lobby-actions .link-soft {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    justify-content: center;
    white-space: normal;
  }
}

/* Stitch hard EOF lock - ARAYUZLER visual language. */
body {
  background:
    linear-gradient(rgba(15, 28, 46, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 46, .035) 1px, transparent 1px),
    #f7f6f2 !important;
  background-size: 32px 32px, 32px 32px, auto !important;
}

.site-header {
  height: 72px !important;
  background: rgba(255, 255, 255, .94) !important;
  border-bottom: 1px solid rgba(15, 28, 46, .10) !important;
  box-shadow: 0 10px 30px rgba(15, 28, 46, .045) !important;
  backdrop-filter: blur(18px);
}

.brand {
  color: #050505 !important;
  font-family: Manrope, Inter, sans-serif !important;
  font-size: 31px !important;
  font-weight: 900 !important;
  letter-spacing: -.06em !important;
}

.brand-mark {
  display: none !important;
}

.site-nav a {
  color: #050505 !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}

.site-nav a:hover,
.site-nav a.active {
  color: #d91010 !important;
  background: rgba(217, 16, 16, .07) !important;
}

.btn-red,
.nav-actions .btn-red,
.hero-actions .btn-red,
.cta-actions .btn-red {
  border: 1px solid #d91010 !important;
  background: linear-gradient(180deg, #e51a1a 0%, #d91010 100%) !important;
  color: #fff !important;
  box-shadow: 0 16px 36px rgba(217, 16, 16, .26) !important;
}

.btn-white,
.hero-actions .btn-white,
.btn-dark-outline {
  border: 1px solid #e4e7ec !important;
  background: #fff !important;
  color: #0f1c2e !important;
  box-shadow: 0 12px 30px rgba(15, 28, 46, .055) !important;
}

.home-ref .hero2 {
  min-height: 650px !important;
  padding: 86px 0 64px !important;
  background:
    radial-gradient(circle at 72% 28%, rgba(217, 16, 16, .12), transparent 25%),
    linear-gradient(rgba(15, 28, 46, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 46, .035) 1px, transparent 1px),
    #faf9f5 !important;
  background-size: auto, 32px 32px, 32px 32px, auto !important;
}

.home-ref .hero-grid {
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr) !important;
  gap: 72px !important;
  align-items: center !important;
}

.home-ref .hero-copy h1,
.subhero h1,
.page-head h1,
.section-head h2,
.cta-dark h2 {
  font-family: Manrope, Inter, sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -.055em !important;
}

.home-ref .hero-copy h1 {
  font-size: clamp(48px, 6vw, 78px) !important;
  line-height: .98 !important;
}

.home-ref .hero-copy h1 span {
  color: #d91010 !important;
}

.home-ref .hero-visual {
  height: 424px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.home-ref .hero-visual::after {
  content: "" !important;
  position: absolute !important;
  inset: -10px !important;
  z-index: -1 !important;
  width: auto !important;
  height: auto !important;
  border: 1px solid rgba(15, 28, 46, .10) !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 24px 60px rgba(15, 28, 46, .10) !important;
}

.home-ref .hero-visual img {
  position: relative !important;
  z-index: 1 !important;
  height: 100% !important;
  border: 8px solid #fff !important;
  border-radius: 20px !important;
  object-fit: cover !important;
}

.feature-row-ref,
.feature-card,
.teacher-card,
.pricing-card,
.exam-card,
.course-card,
.class-card,
.panel,
.card,
.stat-card,
.metric-card,
.dashboard-card,
.auth-page,
.form-shell,
.insights-shell,
.catalog-panel,
.level-card-ref,
.testimonial-card,
.process-card,
.faq-item,
.live-gate-card,
.classroom-lobby,
.data-card,
.table-card {
  border: 1px solid #e4e7ec !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 12px 34px rgba(15, 28, 46, .075) !important;
}

.insights-shell,
.cta-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(217, 16, 16, .28), transparent 28%),
    #11141b !important;
  color: #fff !important;
}

@media (max-width: 980px) {
  .home-ref .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 25px !important;
  }

  .home-ref .hero2 {
    padding: 34px 0 42px !important;
  }

  .home-ref .hero-copy h1 {
    font-size: clamp(34px, 12vw, 48px) !important;
  }

  .home-ref .hero-visual {
    height: 270px !important;
  }
}

@media (max-width: 430px) {
  .live-gate-copy h1,
  .lobby-main h1 {
    display: block;
    width: auto;
    max-width: calc(100vw - 40px) !important;
    max-inline-size: calc(100vw - 40px) !important;
    font-size: 22px !important;
    line-height: 1.18;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .live-gate-copy > p,
  .lobby-main > p {
    max-width: calc(100vw - 40px) !important;
    max-inline-size: calc(100vw - 40px) !important;
    font-size: 13px;
  }
}
