:root {
  --bg: #050806;
  --bg-soft: #0b120d;
  --panel: #0f1711;
  --panel-2: #121d15;
  --panel-blue: #0b1017;
  --line: rgba(215, 181, 109, 0.24);
  --line-soft: rgba(255, 255, 255, 0.11);
  --text: #f4f0e7;
  --text-soft: #c7c2b4;
  --muted: #c7c2b4;
  --soft: #9ea897;
  --gold: #d7b56d;
  --gold-2: #f2d795;
  --green: #7aa85c;
  --green-2: #a4d17d;
  --max: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button,
.signout-button,
.menu-button,
.student-button {
  border-radius: 6px;
  cursor: pointer;
}

.primary-button {
  min-height: 44px;
  padding: 10px 18px;
  color: #17130b;
  background: var(--gold);
  border: 1px solid var(--gold);
  font-weight: 900;
}

.primary-button:hover {
  background: var(--gold-2);
}

.primary-button:disabled {
  cursor: default;
  opacity: 0.68;
}

.secondary-button {
  min-height: 40px;
  padding: 9px 14px;
  color: var(--gold-2);
  background: #111820;
  border: 1px solid rgba(215, 181, 109, 0.42);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.secondary-button:disabled {
  color: var(--soft);
  cursor: default;
}

.login-screen {
  min-height: 100vh;
  padding: 28px clamp(24px, 5vw, 78px);
  display: grid;
  grid-template-rows: auto 1fr;
  background-image: linear-gradient(90deg, rgba(5, 8, 6, 0.98) 0%, rgba(5, 8, 6, 0.86) 50%, rgba(5, 8, 6, 0.56) 100%), url("../../../web_publica/assets/img/academia-floxo-hero-v1.png");
  background-position: center;
  background-size: cover;
}

.login-brand,
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.login-brand img,
.app-brand img {
  border-radius: 50%;
}

.login-brand span,
.app-brand span {
  display: grid;
}

.login-brand strong,
.app-brand strong {
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 500;
}

.login-brand small,
.app-brand small {
  color: var(--green-2);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.login-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.55fr);
  align-items: center;
  gap: 100px;
}

.login-layout > *,
.login-intro,
.login-panel {
  min-width: 0;
}

.login-intro h1,
.welcome-row h1,
.simple-page > h1,
.class-detail h1 {
  margin: 8px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.login-intro h1 {
  max-width: 660px;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 0.98;
}

.login-intro > p:last-child {
  max-width: 560px;
  color: rgba(244, 240, 231, 0.76);
  font-size: 1.04rem;
}

.login-panel {
  padding: 30px;
  display: grid;
  gap: 20px;
  background: rgba(7, 10, 8, 0.94);
  border: 1px solid rgba(215, 181, 109, 0.36);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.login-panel h2 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.login-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.login-panel input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  color: var(--text);
  background: #030507;
  border: 1px solid rgba(154, 166, 181, 0.32);
  border-radius: 6px;
}

.login-error,
[data-password-error],
[data-password-required] {
  margin: 0;
  color: #f0a89d;
  font-size: 0.75rem;
  line-height: 1.45;
}

.login-help-button {
  justify-self: center;
  padding: 2px;
  color: var(--gold);
  background: transparent;
  border: 0;
  font-size: 0.73rem;
  cursor: pointer;
}

.access-gate {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
  background-image: linear-gradient(90deg, rgba(5, 8, 6, 0.98), rgba(5, 8, 6, 0.82)), url("../../../web_publica/assets/img/academia-floxo-hero-v1.png");
  background-position: center;
  background-size: cover;
}

.access-gate-panel {
  width: min(760px, 100%);
  padding: clamp(28px, 5vw, 54px);
  background: rgba(7, 10, 8, 0.96);
  border: 1px solid rgba(215, 181, 109, 0.36);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.access-gate-panel.is-compact {
  width: min(620px, 100%);
}

.access-gate-panel > img {
  margin-bottom: 22px;
  border-radius: 50%;
}

.access-gate-panel h1 {
  margin: 8px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
}

.access-gate-panel > p {
  max-width: 620px;
  color: var(--muted);
}

.renewal-options {
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.renewal-options article {
  padding: 20px;
  display: grid;
  gap: 5px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
}

.renewal-options article > span,
.renewal-options article > small {
  color: var(--muted);
}

.renewal-options strong {
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.access-gate-panel > .text-button {
  margin-top: 22px;
}

.campus-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.app-sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 250px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: #070a08;
  border-right: 1px solid var(--line);
}

.app-brand {
  padding: 0 6px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.app-nav {
  margin-top: 22px;
  display: grid;
  gap: 5px;
}

.app-nav button {
  width: 100%;
  min-height: 43px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  text-align: left;
  color: #aeb8c4;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.app-nav button span {
  color: var(--gold);
  font-size: 0.9rem;
}

.app-nav button:hover,
.app-nav button.is-active {
  color: var(--text);
  background: #111820;
  border-color: rgba(215, 181, 109, 0.34);
}

.sidebar-access {
  margin-top: auto;
  padding: 14px;
  display: grid;
  gap: 4px;
  background: var(--panel);
  border: 1px solid rgba(122, 168, 92, 0.3);
  border-radius: 7px;
}

.sidebar-access span {
  color: var(--green-2);
  font-size: 0.61rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-access strong {
  font-size: 0.77rem;
}

.sidebar-access small {
  color: var(--soft);
  font-size: 0.64rem;
}

.signout-button {
  min-height: 38px;
  margin-top: 9px;
  color: var(--soft);
  background: transparent;
  border: 1px solid var(--line-soft);
  font-size: 0.7rem;
  font-weight: 800;
}

.app-content {
  grid-column: 2;
  min-width: 0;
}

.app-header {
  position: sticky;
  z-index: 10;
  top: 0;
  height: 72px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: rgba(5, 8, 6, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.app-header > div {
  display: grid;
  gap: 1px;
}

.app-header small {
  color: var(--soft);
  font-size: 0.63rem;
}

.app-header strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  font-weight: 500;
}

.student-button {
  min-height: 42px;
  padding: 5px 8px 5px 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-soft);
}

.student-button span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #17130b;
  background: var(--gold);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 900;
}

.student-button b {
  font-size: 0.72rem;
}

.menu-button {
  display: none;
}

.app-page {
  width: min(var(--max), 100%);
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 40px clamp(22px, 3.5vw, 56px) 70px;
}

.app-page:not(.is-active) {
  display: none;
}

.welcome-row {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.welcome-row h1,
.simple-page > h1 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 1;
}

.welcome-row > div:first-child > p:last-child,
.simple-page > p + h1 + p {
  color: var(--muted);
}

.access-status {
  min-width: 260px;
  padding: 16px 18px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: var(--panel);
  border-left: 3px solid var(--green);
}

.access-status span {
  color: var(--green-2);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.access-status strong {
  font-size: 0.86rem;
}

.access-status small {
  color: var(--soft);
  font-size: 0.65rem;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 16px;
  align-items: stretch;
}

.home-main-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
}

.continue-panel {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.continue-media {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1672 / 941;
  align-self: center;
  display: grid;
  place-items: center;
  background-color: #030507;
  background-image: linear-gradient(rgba(3, 5, 7, 0.38), rgba(3, 5, 7, 0.7)), url("../../../web_publica/assets/img/academia-floxo-hero-v1.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.continue-media > span {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 8px;
  color: var(--gold);
  background: rgba(3, 5, 7, 0.78);
  border: 1px solid rgba(215, 181, 109, 0.3);
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.continue-media button {
  width: 58px;
  height: 58px;
  padding-left: 4px;
  color: #17130b;
  background: var(--gold);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.continue-copy {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.continue-copy > span {
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.continue-copy h2 {
  margin: 10px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
}

.continue-copy > strong {
  font-size: 0.84rem;
}

.continue-copy > small {
  color: var(--soft);
  font-size: 0.65rem;
}

.continue-copy .primary-button {
  align-self: flex-start;
  margin-top: 24px;
}

.progress {
  height: 5px;
  margin: 10px 0 7px;
  overflow: hidden;
  background: #1b2320;
  border-radius: 4px;
}

.progress span {
  display: block;
  width: 18%;
  height: 100%;
  background: var(--gold);
}

.home-aside {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-aside section,
.simple-panel {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.home-aside h3,
.simple-panel h2 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  font-weight: 500;
}

.home-aside p,
.simple-panel p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.78rem;
}

.partner-community-card {
  border-color: rgba(215, 181, 109, 0.45) !important;
  border-left: 3px solid var(--gold) !important;
  background: linear-gradient(135deg, rgba(22, 31, 29, 0.98), rgba(10, 15, 12, 0.98)) !important;
}

.home-partner-card {
  padding: 22px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.home-partner-card h3 {
  margin: 7px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 500;
}

.home-partner-card p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.partner-button {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.home-aside dl,
.simple-panel dl {
  margin: 12px 0 0;
}

.home-aside dl div,
.simple-panel dl div {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.home-aside dt,
.simple-panel dt {
  color: var(--soft);
  font-size: 0.7rem;
}

.home-aside dd,
.simple-panel dd {
  margin: 0;
  color: var(--gold-2);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: right;
}

.module-overview {
  margin-top: 38px;
}

.section-title {
  margin-bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-title h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.text-button {
  padding: 7px 0;
  color: var(--gold);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(215, 181, 109, 0.45);
  font-size: 0.72rem;
  font-weight: 900;
}

.module-strip {
  border-top: 1px solid var(--line);
}

.module-item {
  min-height: 84px;
  padding: 14px 4px;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.module-item > span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.module-item div {
  display: grid;
  gap: 3px;
}

.module-item strong {
  font-size: 0.82rem;
}

.module-item small,
.module-item b {
  color: var(--soft);
  font-size: 0.65rem;
}

.module-item b {
  font-weight: 900;
  text-transform: uppercase;
}

.module-item.is-current b {
  color: var(--green-2);
}

.module-item.is-complete b {
  color: var(--gold-2);
}

.course-page {
  padding-top: 24px;
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.68fr) minmax(520px, 1.5fr);
  gap: 16px;
  align-items: start;
}

.course-browser {
  position: sticky;
  top: 96px;
  padding: 18px;
  background: #070a08;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.course-browser-head {
  padding: 4px 4px 18px;
}

.course-module-picker {
  margin-bottom: 16px;
  display: grid;
  gap: 5px;
  color: var(--soft);
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.course-module-picker select {
  width: 100%;
  min-height: 40px;
  padding: 7px 9px;
  color: var(--text);
  background: #030507;
  border: 1px solid rgba(215, 181, 109, 0.3);
  border-radius: 5px;
  font-size: 0.67rem;
  text-transform: none;
}

.course-browser-head h2 {
  margin: 5px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 500;
}

.course-browser-head p {
  margin: 0;
  color: var(--soft);
  font-size: 0.68rem;
}

.course-lessons {
  display: grid;
  gap: 8px;
}

.course-lesson {
  min-height: 74px;
  padding: 8px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-align: left;
  background: #030507;
  border: 1px solid rgba(154, 166, 181, 0.2);
  border-radius: 7px;
  cursor: pointer;
}

.course-lesson > img {
  width: 76px;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(215, 181, 109, 0.2);
  border-radius: 5px;
}

.course-lesson:hover,
.course-lesson.is-current {
  background: var(--panel-blue);
  border-color: rgba(215, 181, 109, 0.58);
}

.course-lesson.is-locked {
  cursor: not-allowed;
  opacity: 0.46;
}

.course-lesson.is-preview {
  border-color: rgba(215, 181, 109, 0.3);
  cursor: pointer;
  opacity: 0.78;
}

.course-lesson.is-preview small {
  color: var(--gold-2);
}

.review-mode-notice {
  max-width: 1460px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  background: rgba(215, 181, 109, 0.08);
  border: 1px solid rgba(215, 181, 109, 0.35);
  border-radius: 7px;
  font-size: 0.72rem;
}

.review-mode-notice[hidden] {
  display: none;
}

.review-mode-notice > div:first-child {
  display: grid;
  gap: 3px;
}

.review-mode-notice strong {
  color: var(--gold-2);
  font-size: 0.78rem;
}

.review-mode-notice a {
  flex: 0 0 auto;
  color: var(--gold-2);
  font-weight: 900;
  text-decoration: none;
}

.review-mode-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-mode-actions .text-button {
  color: var(--gold-2);
  font-size: 0.72rem;
}

.course-lesson > span {
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: #111820;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 900;
}

.course-lesson div {
  display: grid;
  gap: 2px;
}

.course-lesson small {
  color: var(--green-2);
  font-size: 0.57rem;
  font-weight: 900;
  text-transform: uppercase;
}

.course-lesson strong {
  font-size: 0.72rem;
  line-height: 1.25;
}

.course-lesson em {
  color: var(--soft);
  font-size: 0.61rem;
  font-style: normal;
}

.classroom {
  min-width: 0;
}

.player-shell {
  overflow: hidden;
  background: #020406;
  border: 1px solid rgba(215, 181, 109, 0.42);
  border-radius: 8px;
}

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020406;
}

.player-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.academy-player-controls {
  min-height: 54px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #111820, #090d11);
  border-top: 1px solid rgba(215, 181, 109, 0.48);
}

.academy-player-button {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--gold);
  background: rgba(215, 181, 109, 0.08);
  border: 1px solid rgba(215, 181, 109, 0.56);
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
}

.academy-player-button:hover:not(:disabled),
.academy-player-button:focus-visible {
  color: #07100c;
  background: var(--gold);
  border-color: var(--gold);
}

.academy-player-button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.academy-player-button-main {
  min-width: 112px;
}

.academy-player-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.academy-player-icon {
  width: 14px;
  color: currentColor;
  font-size: 0.83rem;
  line-height: 1;
  text-align: center;
}

.academy-player-timeline {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 auto;
}

.academy-player-timeline input[type="range"] {
  --player-seek: 0%;
  width: 100%;
  min-width: 90px;
  height: 5px;
  appearance: none;
  background: linear-gradient(to right, var(--gold) 0 var(--player-seek), rgba(255, 255, 255, 0.2) var(--player-seek) 100%);
  border-radius: 999px;
  cursor: pointer;
}

.academy-player-timeline input[type="range"]::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  appearance: none;
  background: var(--gold);
  border: 2px solid #070b0e;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(215, 181, 109, 0.3);
}

.academy-player-timeline input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border: 2px solid #070b0e;
  border-radius: 50%;
}

.academy-player-timeline span {
  min-width: 82px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.player-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #020406;
  border: 6px solid var(--gold);
  border-radius: 0;
}

.player-shell:fullscreen .player-frame,
.player-shell:fullscreen .academy-player-controls {
  width: min(100%, calc((100vh - 92px) * 16 / 9));
  margin-inline: auto;
}

.class-detail {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.class-detail h1 {
  font-size: 1.8rem;
}

.class-detail p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.class-state {
  align-self: flex-start;
  padding: 5px 8px;
  color: var(--green-2);
  background: rgba(122, 168, 92, 0.09);
  border: 1px solid rgba(122, 168, 92, 0.28);
  border-radius: 4px;
  font-size: 0.61rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.class-partner-action {
  margin-top: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(120deg, rgba(19, 30, 22, 0.98), rgba(8, 13, 10, 0.98));
  border: 1px solid rgba(215, 181, 109, 0.42);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
}

.class-partner-action > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.class-partner-action strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.class-partner-action p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.watch-progress {
  margin-top: 12px;
  padding: 18px;
  background: #070a08;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.watch-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

.watch-progress > div:first-child strong {
  color: var(--gold-2);
}

.watch-progress-track {
  height: 7px;
  margin: 10px 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 2px;
}

.watch-progress-track span {
  display: block;
  width: 62%;
  height: 100%;
  background: var(--green-2);
  transition: width 180ms ease;
}

.watch-progress p {
  margin: 0;
  color: var(--soft);
  font-size: 0.72rem;
}

.completion-row {
  margin-top: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #070a08;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.completion-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.simple-page {
  max-width: 1100px;
  margin: 0;
}

.simple-page > h1 {
  margin-bottom: 34px;
}

.simple-panel {
  max-width: 720px;
}

.simple-panel.is-highlighted {
  border-color: rgba(215, 181, 109, 0.48);
}

.meeting-panel p + p {
  margin-top: -8px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.contact-actions .primary-button,
.contact-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.subscription-grid,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.subscription-grid .simple-panel,
.profile-grid .simple-panel {
  max-width: none;
}

.profile-action {
  margin-top: 18px;
}

.profile-partner-offer {
  margin-top: 18px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(120deg, rgba(20, 31, 23, 0.98), rgba(9, 14, 11, 0.98));
  border: 1px solid rgba(215, 181, 109, 0.42);
  border-left: 3px solid var(--gold);
}

.profile-partner-offer > div {
  min-width: 0;
}

.profile-partner-offer h2 {
  margin: 7px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 500;
}

.profile-partner-offer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.certificate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
}

.certificate-preview,
.certificate-status {
  border-radius: 6px;
}

.certificate-preview {
  position: relative;
  align-self: start;
  width: 100%;
  aspect-ratio: 1491 / 1055;
  overflow: hidden;
  background: #060806;
  border: 1px solid rgba(202, 161, 67, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.certificate-template {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.certificate-name,
.certificate-date {
  position: absolute;
  z-index: 1;
  margin: 0;
  color: #172019;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.certificate-name {
  top: 54.8%;
  left: 23%;
  width: 54%;
  overflow: hidden;
  font-size: clamp(0.66rem, 2.25vw, 2rem);
  text-overflow: ellipsis;
  transform: translateY(-50%);
}

.certificate-date {
  top: 64.35%;
  left: 79.1%;
  width: 11.6%;
  font-size: clamp(0.38rem, 0.9vw, 0.82rem);
}

.certificate-status {
  min-height: 420px;
  padding: clamp(26px, 4vw, 48px);
  background: var(--panel);
  border: 1px solid var(--line);
}

.certificate-status h2 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.certificate-status > p {
  color: var(--muted);
}

.certificate-status dl {
  margin: 24px 0;
}

.certificate-status dl > div {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.certificate-status dt {
  color: var(--muted);
}

.certificate-status dd {
  margin: 0;
  font-weight: 800;
}

.modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.76);
}

.modal-panel {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  padding: 26px;
  overflow-y: auto;
  color: var(--text);
  background: #0b110d;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.compact-modal {
  width: min(520px, 100%);
}

.modal-head {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.modal-head span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-head h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.modal-head > button {
  width: 38px;
  height: 38px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  cursor: pointer;
}

.modal-panel label {
  margin-top: 14px;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.modal-panel input,
.modal-panel textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: var(--text);
  background: #050806;
  border: 1px solid rgba(154, 166, 181, 0.32);
  border-radius: 5px;
}

.modal-panel textarea {
  resize: vertical;
}

.modal-panel > p {
  color: var(--muted);
}

.modal-panel > p[data-password-error] {
  color: #f0a89d;
}

.modal-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.rating-modal-panel > p strong {
  color: var(--gold-2);
}

.rating-fieldset {
  margin: 22px 0 4px;
  padding: 0;
  border: 0;
}

.rating-fieldset legend {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.star-options {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 7px;
}

.star-options input {
  position: absolute;
  width: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
}

.star-options label {
  margin: 0;
  display: block;
  color: #4e554d;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 150ms ease, transform 150ms ease;
}

.star-options label:hover,
.star-options label:hover ~ label,
.star-options input:checked ~ label {
  color: var(--gold-2);
}

.star-options label:hover {
  transform: translateY(-2px);
}

.star-options input:focus-visible + label {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.rating-error {
  color: #f0a89d !important;
}

.rating-privacy {
  display: block;
  margin-top: 12px;
  color: var(--soft);
  font-size: 0.67rem;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  max-width: min(380px, calc(100vw - 36px));
  padding: 13px 16px;
  color: #17130b;
  background: var(--gold-2);
  border-radius: 5px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
  font-weight: 800;
}

.sif-student-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding: 30px;
  border: 1px solid rgba(204, 168, 94, 0.42);
  border-left: 3px solid var(--gold-2);
  background: linear-gradient(115deg, rgba(22, 31, 29, 0.98), rgba(12, 17, 17, 0.98));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.sif-offer-copy h2 {
  max-width: 650px;
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  line-height: 1.12;
}

.sif-offer-copy p {
  max-width: 690px;
  margin: 0 0 20px;
  color: var(--text-soft);
  line-height: 1.65;
}

.sif-offer-copy .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sif-offer-price {
  width: 100%;
  min-width: 0;
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.sif-offer-price span,
.sif-offer-price small {
  color: var(--text-soft);
}

.sif-offer-price s {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.56);
}

.sif-offer-price strong {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 14px 0 2px;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.25vw, 2.15rem);
  line-height: 1;
  white-space: nowrap;
}

.subscription-price {
  display: block;
  margin: 14px 0 12px;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

@media (max-width: 1050px) {
  .login-layout {
    gap: 50px;
  }

  .home-grid,
  .course-layout,
  .certificate-layout {
    grid-template-columns: 1fr;
  }

  .home-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .partner-community-card {
    grid-column: 1 / -1;
  }

  .course-browser {
    position: static;
  }

  .course-lessons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .login-screen {
    padding: 22px;
  }

  .login-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .login-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .login-panel > * {
    min-width: 0;
  }

  .login-intro {
    padding-top: 50px;
  }

  .login-intro h1 {
    font-size: 3.5rem;
  }

  .campus-app {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    width: min(290px, 88vw);
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.45);
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .app-content {
    grid-column: 1;
  }

  .app-header {
    grid-template-columns: 42px 1fr auto;
    padding: 0 16px;
  }

  .menu-button {
    width: 36px;
    height: 36px;
    display: block;
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--line);
  }

  .continue-panel {
    grid-template-columns: 1fr;
  }

  .continue-media {
    min-height: 0;
  }

  .welcome-row {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
  }

  .access-status {
    min-width: 0;
  }

  .renewal-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .login-screen {
    padding-inline: 18px;
  }

  .login-intro > p:last-child {
    overflow-wrap: anywhere;
  }

  .login-intro h1 {
    font-size: 2.9rem;
  }

  .login-panel {
    padding: 22px;
  }

  .student-button b {
    display: none;
  }

  .app-page {
    padding: 28px 14px 50px;
  }

  .home-aside,
  .course-lessons,
  .subscription-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .sif-student-offer {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .sif-offer-price {
    min-height: 0;
  }

  .continue-media {
    min-height: 0;
  }

  .continue-copy {
    padding: 24px;
  }

  .home-partner-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .home-partner-card .partner-button {
    width: 100%;
  }

  .review-mode-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-item {
    grid-template-columns: 40px 1fr;
  }

  .module-item > b {
    grid-column: 2;
  }

  .class-detail,
  .completion-row,
  .class-partner-action,
  .profile-partner-offer {
    align-items: stretch;
    flex-direction: column;
  }

  .access-gate {
    padding: 14px;
  }

  .access-gate-panel {
    padding: 26px 20px;
  }

  .modal {
    padding: 10px;
  }

  .modal-panel {
    max-height: calc(100vh - 20px);
    padding: 20px;
  }

  .modal-actions,
  .access-gate-panel .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .completion-row .primary-button {
    width: 100%;
  }

  .academy-player-controls {
    gap: 7px;
    flex-wrap: wrap;
  }

  .academy-player-timeline {
    min-width: 100%;
    order: 3;
  }

  .academy-player-button {
    flex: 1 1 calc(50% - 4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
