:root {
  color-scheme: light;
  font-family:
    Montserrat, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --text: #10131b;
  --muted: #667085;
  --line: #e6e8ef;
  --surface: #ffffff;
  --surface-soft: #f7f7f9;
  --ink: #080a10;
  --accent: #cf5cff;
  --accent-2: #1d9bf0;
  --accent-3: #21b56f;
  --warm: #ffb84d;
  --danger: #ca244d;
  --shadow: 0 24px 80px rgba(23, 26, 35, 0.12);
  --radius: 22px;
  --page-x: clamp(18px, 4vw, 56px);
  --slide-top: clamp(116px, 14vh, 146px);
  --slide-bottom: clamp(44px, 6vh, 68px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f9 100%);
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid rgba(29, 155, 240, 0.45);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 14px;
  left: 50%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  width: min(1160px, calc(100vw - 32px));
  min-height: 70px;
  padding: 10px 16px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(15, 18, 30, 0.1);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.signup-nav {
  display: flex;
  align-items: center;
}

.brand {
  justify-content: flex-start;
  min-width: 0;
}

.brand-logo {
  width: clamp(136px, 15vw, 190px);
  min-width: 136px;
  height: auto;
}

.signup-nav {
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.header-timer {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(207, 92, 255, 0.12), rgba(29, 155, 240, 0.12));
  border: 1px solid rgba(207, 92, 255, 0.2);
  color: #11141d;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.site-header.has-timer .header-timer {
  display: inline-flex;
}

.header-timer img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.header-timer-days strong,
.header-timer-clock strong {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.header-timer-days {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.header-timer-days small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.header-timer-clock {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.signup-label {
  flex: 0 0 auto;
  margin-right: 6px;
  color: #242936;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.messenger {
  flex: 0 1 auto;
  min-width: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: clamp(134px, 12vw, 164px);
  min-height: 50px;
  gap: 0;
  padding: 6px 14px 6px 52px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 12px 26px rgba(18, 22, 32, 0.12);
  isolation: isolate;
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    filter 220ms var(--ease);
}

.messenger::before {
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  content: "";
}

.messenger:hover {
  filter: saturate(1.12) brightness(1.03);
  box-shadow: 0 16px 34px rgba(18, 22, 32, 0.16);
  transform: translateY(-2px);
}

.messenger-icon {
  position: absolute;
  left: 4px;
  top: 50%;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform: translateY(-50%);
}

.messenger-icon img,
.messenger-icon svg {
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.messenger-whatsapp .messenger-icon img,
.messenger-telegram .messenger-icon img {
  width: 43px;
  height: 43px;
}

.messenger-max .messenger-icon img {
  width: 27px;
  height: 27px;
}

.messenger-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  line-height: 1;
}

.messenger-copy small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 750;
}

.messenger-copy strong {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
}

.messenger-whatsapp {
  background: linear-gradient(135deg, #19c852 0%, #35dc62 100%);
}

.messenger-telegram {
  background: linear-gradient(135deg, #0da7ea 0%, #17b9f3 100%);
}

.messenger-max {
  background: linear-gradient(135deg, #331066 0%, #5a2195 100%);
}

.deck {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100vw;
  height: 100dvh;
  padding: var(--slide-top) var(--page-x) var(--slide-bottom);
  overflow: hidden;
  scrollbar-gutter: stable;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 26px, 0) scale(0.985);
  transition:
    opacity 620ms var(--ease),
    transform 720ms var(--ease);
  will-change: opacity, transform;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.slide::before {
  content: none;
}

.intro-slide {
  align-content: center;
  justify-items: center;
  gap: clamp(18px, 3vh, 28px);
}

.timer-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  width: min(700px, 70vw);
  gap: 20px;
  padding: 10px 12px 10px 30px;
  border-radius: 24px;
  background: rgba(245, 243, 245, 0.92);
  box-shadow: 0 18px 60px rgba(42, 40, 49, 0.08);
}

.timer-card img {
  width: 46px;
  height: 46px;
}

.timer-card p {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  gap: 10px;
  padding: 18px 26px;
  border-radius: 22px;
  background: #fff;
}

.timer-unit {
  display: grid;
  justify-items: center;
}

.timer-unit strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.3vw, 42px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.timer-unit small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.teacher-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(450px, 500px) minmax(470px, 1fr);
  align-items: center;
  width: min(1077px, calc(100vw - 96px));
  min-height: 448px;
  border: 1px solid #d8d8d8;
  border-radius: 30px;
  background: rgba(246, 244, 245, 0.96);
  box-shadow: 0 22px 80px rgba(15, 18, 30, 0.08);
  overflow: hidden;
}

.teacher-photo-wrap {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 448px;
  margin-right: -82px;
}

.teacher-photo {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: min(584px, 116%);
  max-width: none;
}

.floating-keyboard {
  position: absolute;
  right: 126px;
  bottom: 86px;
  width: 58px;
  transform: rotate(2deg);
}

.teacher-copy {
  position: relative;
  z-index: 3;
  max-width: 620px;
  margin-left: -34px;
  padding: 58px 58px 52px 56px;
}

.teacher-copy::before {
  content: none;
}

.intro-kicker,
.lesson-eyebrow,
.admin-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.teacher-copy h1,
.lesson-info h2,
.gift-copy h2,
.admin-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(31px, 3vw, 50px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
}

.teacher-copy .intro-kicker {
  display: none;
}

.teacher-copy h1 {
  max-width: 440px;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 800;
  line-height: 1.12;
  text-transform: none;
}

.teacher-copy p {
  margin: 24px 0 0;
  color: #000;
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 500;
  line-height: 1.2;
}

.teacher-copy strong {
  color: var(--accent);
}

.decor-cd {
  position: absolute;
  right: 18px;
  top: 26px;
  width: 84px;
  opacity: 0.8;
  transform: rotate(18deg);
}

.lesson-slide,
.gift-slide {
  align-items: center;
  justify-items: center;
}

.lesson-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-areas:
    "info video"
    "info players";
  grid-template-columns: minmax(342px, 400px) minmax(620px, 760px);
  grid-template-rows: auto 76px;
  align-items: start;
  align-content: center;
  justify-content: center;
  gap: 14px clamp(32px, 3.2vw, 46px);
  width: min(1210px, calc(100vw - 128px));
  min-height: min(560px, calc(100dvh - var(--slide-top) - var(--slide-bottom)));
}

.lesson-info {
  grid-area: info;
  min-width: 0;
  max-height: min(560px, calc(100dvh - var(--slide-top) - var(--slide-bottom)));
  padding-top: 4px;
  overflow: visible;
}

.lesson-eyebrow {
  position: relative;
  padding-top: 16px;
}

.lesson-eyebrow::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 3px;
  border-radius: 999px;
  background: #c9cbd1;
  content: "";
}

.lesson-info h2 {
  max-width: 540px;
  font-size: clamp(28px, 2.45vw, 38px);
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.lesson-theme {
  max-width: 520px;
  margin: 14px 0 18px;
  color: #303542;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.48;
}

.lesson-highlight {
  position: relative;
  max-width: 520px;
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(207, 92, 255, 0.08), rgba(29, 155, 240, 0.08));
  border: 1px solid rgba(207, 92, 255, 0.18);
  color: #1c2030;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.45;
}

.lesson-card-list {
  display: grid;
  gap: 9px;
  overflow: visible;
}

.lesson-card-shell {
  position: relative;
  overflow: visible;
}

.lesson-card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 12px 17px 12px 13px;
  border: 1px solid rgba(16, 19, 27, 0.04);
  border-radius: 12px;
  background: #f6f4f4;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 22px rgba(16, 19, 27, 0);
  transition:
    transform 180ms var(--ease),
    background-color 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.lesson-card-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-right: 14px;
  object-fit: contain;
}

.lesson-card span {
  font-size: clamp(15px, 1.18vw, 17px);
  font-weight: 650;
  line-height: 1.22;
}

.lesson-card:hover {
  border-color: rgba(207, 92, 255, 0.24);
  background: #fff;
  box-shadow: 0 18px 40px rgba(36, 39, 52, 0.1);
  transform: translateX(6px);
}

.lesson-card-popover {
  position: absolute;
  z-index: 6;
  left: 22px;
  right: 22px;
  top: calc(100% - 5px);
  padding: 16px 18px;
  border: 1px solid rgba(207, 92, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 54px rgba(25, 25, 35, 0.16);
  animation: popover-in 180ms var(--ease);
}

.lesson-card-popover span,
.lesson-card-popover strong {
  display: block;
}

.lesson-card-popover span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.lesson-card-popover strong {
  margin-top: 6px;
  font-size: 24px;
}

.lesson-materials {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.lesson-materials p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lesson-materials > div {
  display: grid;
  gap: 8px;
}

.material-link {
  display: grid;
  gap: 3px;
  padding: 13px 16px;
  border: 1px solid rgba(207, 92, 255, 0.26);
  border-radius: 15px;
  background: #11141d;
  color: #fff;
  box-shadow: 0 16px 36px rgba(17, 20, 29, 0.14);
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    background-color 180ms var(--ease);
}

.material-link:hover {
  background: #1c2130;
  box-shadow: 0 20px 44px rgba(17, 20, 29, 0.18);
  transform: translateY(-2px);
}

.material-link span {
  font-size: 15px;
  font-weight: 950;
  line-height: 1.1;
}

.material-link small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

@keyframes popover-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lesson-video {
  grid-area: video;
  min-width: 0;
  width: 100%;
  align-self: end;
}

.lesson-player-panel {
  grid-area: players;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px 18px;
  border: 1px solid rgba(16, 19, 27, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 46px rgba(15, 18, 30, 0.07);
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: min(430px, calc(100dvh - var(--slide-top) - var(--slide-bottom) - 96px));
  min-height: 0;
  border-radius: 22px;
  background: #0a0c12;
  box-shadow: 0 28px 80px rgba(11, 12, 18, 0.22);
  overflow: hidden;
  transform-origin: center;
  transition:
    transform 220ms var(--ease),
    opacity 220ms var(--ease);
}

.video-stage.is-switching {
  opacity: 0.38;
  transform: scale(0.965);
}

.video-stage iframe,
.video-poster,
.video-poster img {
  width: 100%;
  height: 100%;
}

.video-stage iframe {
  display: block;
  border: 0;
}

.video-poster {
  position: relative;
  display: block;
  padding: 0;
  background: #0a0c12;
  cursor: pointer;
}

.video-poster img {
  object-fit: cover;
  opacity: 0.96;
  transition:
    transform 280ms var(--ease),
    opacity 280ms var(--ease);
}

.video-poster::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.26));
  content: "";
}

.video-poster:hover img {
  opacity: 1;
  transform: scale(1.025);
}

.play-button {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: #fff;
  background: #05060a;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
  transition:
    transform 180ms var(--ease),
    background-color 180ms var(--ease);
}

.video-poster:hover .play-button {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.08);
}

.player-help {
  margin: 0;
  color: #d71920;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
}

.player-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

.player-tab {
  min-height: 48px;
  min-width: 112px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    color 180ms var(--ease),
    background-color 180ms var(--ease);
}

.player-tab:hover,
.player-tab.is-selected {
  border-color: rgba(207, 92, 255, 0.32);
  background: #fff;
  color: var(--text);
  transform: translateY(-2px);
}

.gift-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.86fr);
  align-items: center;
  width: min(1120px, calc(100vw - 120px));
  min-height: min(560px, calc(100dvh - var(--slide-top) - var(--slide-bottom)));
  border-radius: 30px;
  background: rgba(246, 244, 245, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gift-copy {
  position: relative;
  z-index: 1;
  padding: clamp(34px, 5vw, 64px);
}

.gift-copy h2 {
  max-width: 620px;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 0.98;
  text-transform: uppercase;
}

.gift-copy p {
  max-width: 620px;
  margin: 16px 0 0;
  color: #303542;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.42;
}

.gift-points {
  display: grid;
  max-width: 620px;
  gap: 10px;
  margin-top: 18px;
}

.gift-points span {
  display: block;
  padding: 14px 18px;
  border: 1px solid rgba(16, 19, 27, 0.06);
  border-radius: 14px;
  background: #fff;
  font-weight: 700;
  line-height: 1.35;
}

.gift-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.gift-actions .messenger {
  width: 168px;
}

.gift-visual {
  position: relative;
  align-self: stretch;
  min-height: 430px;
}

.gift-teacher {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: min(500px, 108%);
  max-height: 96%;
  object-fit: contain;
  object-position: bottom center;
}

.gift-cd {
  position: absolute;
  top: 52px;
  left: 12px;
  width: 112px;
  transform: rotate(18deg);
}

.gift-piano {
  position: absolute;
  right: 66px;
  top: 96px;
  width: 72px;
  transform: rotate(-5deg);
}

.slide-controls {
  position: fixed;
  z-index: 32;
  top: 50%;
  right: 28px;
  display: grid;
  justify-items: center;
  gap: 12px;
  transform: translateY(-50%);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 14px 38px rgba(15, 18, 30, 0.12);
  transition:
    transform 180ms var(--ease),
    background-color 180ms var(--ease);
}

.icon-button:hover {
  background: #fff;
  transform: translateY(-2px);
}

.slide-dots {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px);
}

.slide-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dot-core {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c7cad4;
  transition:
    transform 180ms var(--ease),
    background-color 180ms var(--ease);
}

.slide-dot:hover .dot-core,
.slide-dot.is-active .dot-core {
  background: var(--accent);
  transform: scale(1.55);
}

.dot-tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  min-width: max-content;
  padding: 7px 11px;
  border: 1px solid rgba(16, 19, 27, 0.08);
  border-radius: 999px;
  background: rgba(12, 14, 20, 0.9);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 18, 30, 0.16);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition:
    opacity 160ms var(--ease),
    transform 160ms var(--ease);
}

.slide-dot:hover .dot-tooltip,
.slide-dot:focus-visible .dot-tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}

.scroll-hint {
  position: fixed;
  z-index: 31;
  right: 96px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px 0 22px;
  border-radius: 999px;
  background: rgba(12, 14, 20, 0.82);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 180ms var(--ease),
    background-color 180ms var(--ease);
}

.scroll-hint:hover {
  background: #0c0e14;
  transform: translateY(-2px);
}

.scroll-hint.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.admin-page {
  min-height: 100dvh;
  padding: 54px;
  overflow: auto;
}

.admin-page h1,
.admin-page h2,
.admin-page p {
  margin-top: 0;
}

.admin-hero,
.admin-form,
.generated-box,
.history-box {
  width: min(920px, calc(100vw - 108px));
  margin: 0 auto 22px;
  border: 1px solid rgba(16, 19, 27, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 56px rgba(15, 18, 30, 0.08);
}

.admin-hero {
  padding: 36px 40px;
}

.admin-hero h1 {
  max-width: 760px;
}

.admin-hero p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.admin-form,
.generated-box,
.history-box {
  padding: 28px;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-form label {
  display: grid;
  gap: 9px;
  color: #323846;
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-form input,
.generated-url input,
.link-record input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.admin-submit,
.generated-url button,
.history-head button,
.link-record button {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  background: #11141d;
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  transition:
    transform 180ms var(--ease),
    opacity 180ms var(--ease),
    background-color 180ms var(--ease);
}

.admin-submit:hover,
.generated-url button:hover,
.history-head button:hover,
.link-record button:hover {
  background: #262b38;
  transform: translateY(-1px);
}

.admin-submit:disabled,
.generated-url button:disabled,
.history-head button:disabled,
.link-record button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.generated-url {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.link-records {
  display: grid;
  gap: 12px;
}

.link-record {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.link-record strong,
.link-record span {
  display: block;
}

.link-record strong {
  margin-bottom: 4px;
}

.link-record span,
.empty-history {
  color: var(--muted);
}

@media (max-width: 1180px) {
  :root {
    --page-x: clamp(16px, 3vw, 34px);
    --slide-top: 104px;
    --slide-bottom: 64px;
  }

  .site-header {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    grid-template-areas:
      "brand messengers"
      "timer timer";
    justify-items: stretch;
    gap: 8px 12px;
    width: calc(100vw - 24px);
    min-height: 64px;
    padding: 8px 12px;
  }

  .brand {
    grid-area: brand;
  }

  .signup-nav {
    grid-area: messengers;
    justify-content: flex-end;
    width: auto;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .site-header.has-timer .header-timer {
    grid-area: timer;
    justify-self: stretch;
    width: 100%;
    padding: 6px 12px;
    border-radius: 14px;
  }

  .header-timer-days strong,
  .header-timer-clock strong {
    font-size: 15px;
  }

  .signup-label {
    width: auto;
    max-width: 136px;
    margin: 0 4px 0 0;
    font-size: 14px;
    line-height: 1.05;
    white-space: normal;
  }

  .messenger {
    width: clamp(106px, 12.8vw, 132px);
    min-height: 46px;
    gap: 0;
    padding: 5px 11px 5px 48px;
  }

  .messenger-icon {
    left: 3px;
    width: 39px;
    height: 39px;
  }

  .messenger-whatsapp .messenger-icon img,
  .messenger-telegram .messenger-icon img {
    width: 39px;
    height: 39px;
  }

  .messenger-max .messenger-icon img {
    width: 25px;
    height: 25px;
  }

  .messenger-copy {
    gap: 4px;
  }

  .messenger-copy small {
    font-size: 11px;
  }

  .messenger-copy strong {
    font-size: 12px;
  }

  .brand-logo {
    width: clamp(132px, 17vw, 176px);
    min-width: 0;
  }

  .lesson-shell {
    grid-template-columns: minmax(310px, 350px) minmax(560px, 1fr);
    gap: 14px 26px;
    width: min(1040px, calc(100vw - 64px));
  }

  .lesson-info h2 {
    font-size: clamp(26px, 2.6vw, 34px);
  }

  .lesson-card {
    min-height: 66px;
  }

  .teacher-card {
    grid-template-columns: 420px 1fr;
    width: min(964px, calc(100vw - 48px));
    min-height: 390px;
  }

  .teacher-photo-wrap {
    min-height: 390px;
    margin-right: -70px;
  }

  .teacher-photo {
    width: min(510px, 120%);
  }

  .floating-keyboard {
    right: 104px;
    bottom: 72px;
    width: 52px;
  }

  .teacher-copy {
    margin-left: -24px;
    padding: 48px 46px 44px 48px;
  }

  .teacher-copy h1 {
    font-size: clamp(23px, 2.35vw, 28px);
  }

  .teacher-copy p {
    margin-top: 18px;
    font-size: clamp(17px, 1.9vw, 21px);
  }

  .gift-shell {
    grid-template-columns: minmax(390px, 1fr) minmax(320px, 0.8fr);
  }
}

@media (min-width: 981px) and (max-height: 720px) {
  :root {
    --slide-top: 92px;
    --slide-bottom: 34px;
  }

  .site-header {
    top: 8px;
    min-height: 58px;
    padding: 7px 12px;
    border-radius: 20px;
  }

  .brand-logo {
    width: clamp(120px, 12vw, 154px);
  }

  .messenger {
    min-height: 40px;
    width: 128px;
    transform-origin: center;
  }

  .slide {
    align-content: start;
    overflow: hidden;
  }

  .slide.is-active {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .intro-slide {
    gap: 16px;
  }

  .timer-card {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .teacher-card {
    min-height: 390px;
  }

  .teacher-photo-wrap {
    min-height: 390px;
  }

  .teacher-photo {
    width: min(510px, 120%);
    bottom: 0;
  }

  .teacher-copy {
    padding: 42px 48px 38px 52px;
  }

  .teacher-copy h1 {
    font-size: 27px;
  }

  .teacher-copy p {
    margin-top: 16px;
    font-size: 19px;
    line-height: 1.22;
  }

  .lesson-shell,
  .gift-shell {
    transform: none;
    transform-origin: center top;
  }

  .lesson-info {
    max-height: 540px;
  }
}

@media (max-width: 980px) {
  :root {
    --page-x: 18px;
    --slide-top: 124px;
    --slide-bottom: 116px;
  }

  body {
    overflow: hidden;
  }

  .site-header {
    top: 8px;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    grid-template-areas:
      "brand messengers"
      "timer timer";
    width: calc(100vw - 18px);
    min-height: 60px;
    padding: 7px 10px;
    border-radius: 18px;
    gap: 6px 10px;
  }

  .brand {
    justify-content: flex-start;
  }

  .brand-logo {
    width: clamp(118px, 18vw, 146px);
    min-width: 0;
  }

  .signup-nav {
    gap: 7px;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .signup-label {
    width: auto;
    max-width: 116px;
    font-size: 13px;
    line-height: 1.05;
    text-align: left;
    white-space: normal;
  }

  .messenger {
    width: clamp(94px, 15.5vw, 122px);
    min-height: 42px;
    gap: 0;
    padding: 5px 8px 5px 42px;
  }

  .messenger-icon {
    left: 3px;
    width: 39px;
    height: 39px;
  }

  .messenger-whatsapp .messenger-icon img,
  .messenger-telegram .messenger-icon img {
    width: 39px;
    height: 39px;
  }

  .messenger-max .messenger-icon img {
    width: 25px;
    height: 25px;
  }

  .messenger-copy strong {
    font-size: 11px;
  }

  .slide {
    align-content: start;
    height: 100dvh;
    overflow: hidden;
  }

  .lesson-slide,
  .gift-slide,
  .intro-slide {
    align-items: start;
  }

  .slide.is-active {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .intro-slide {
    gap: 12px;
  }

  .timer-card {
    grid-template-columns: auto minmax(120px, 1fr) auto;
    justify-items: stretch;
    width: 100%;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 18px;
    text-align: left;
  }

  .timer-card img {
    display: block;
    width: 34px;
    height: 34px;
  }

  .timer-card p {
    font-size: 14px;
    line-height: 1.08;
  }

  .timer-grid {
    width: auto;
    grid-template-columns: repeat(4, auto);
    gap: 8px;
    justify-content: end;
    padding: 8px 10px;
    border-radius: 16px;
  }

  .timer-unit strong {
    font-size: clamp(22px, 3.5vw, 30px);
  }

  .timer-unit small {
    font-size: 10px;
  }

  .teacher-card {
    grid-template-columns: minmax(240px, 44%) minmax(0, 1fr);
    width: 100%;
    min-height: clamp(340px, 50vh, 400px);
    border-radius: 22px;
    transform: none;
  }

  .teacher-photo-wrap {
    height: 100%;
    min-height: clamp(340px, 50vh, 400px);
    margin-right: -42px;
  }

  .teacher-photo {
    left: 50%;
    width: auto;
    height: 100%;
    bottom: 0;
    max-width: 150%;
    object-fit: contain;
    object-position: bottom left;
    transform: translateX(-46%);
  }

  .floating-keyboard {
    right: 88px;
    bottom: 54px;
    width: 42px;
  }

  .decor-cd {
    top: 24px;
    right: 28px;
    width: 76px;
  }

  .teacher-copy {
    margin-left: -24px;
    padding: clamp(24px, 4vw, 38px) clamp(20px, 4vw, 34px) clamp(24px, 4vw, 38px) clamp(28px, 5vw, 46px);
  }

  .teacher-copy::before {
    content: none;
  }

  .teacher-copy h1 {
    max-width: 320px;
    font-size: clamp(20px, 3.3vw, 27px);
    line-height: 1.1;
  }

  .teacher-copy p,
  .lesson-theme,
  .gift-copy p {
    font-size: 16px;
  }

  .teacher-copy p {
    margin-top: 14px;
    line-height: 1.22;
  }

  .lesson-info h2,
  .gift-copy h2,
  .admin-hero h1 {
    font-size: 28px;
  }

  .lesson-shell {
    grid-template-areas:
      "info"
      "video"
      "players";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    width: 100%;
    min-height: 0;
    gap: 18px;
    padding-bottom: 110px;
  }

  .lesson-info {
    max-height: none;
    padding-top: 0;
  }

  .lesson-info h2 {
    max-width: 720px;
    font-size: clamp(28px, 5vw, 36px);
  }

  .lesson-card {
    min-height: 66px;
    padding: 14px 16px;
    border-radius: 15px;
  }

  .lesson-card-icon {
    width: 38px;
    height: 38px;
    margin-right: 12px;
  }

  .lesson-card span {
    font-size: 16px;
  }

  .lesson-card-popover {
    left: 12px;
    right: 12px;
  }

  .lesson-card-popover strong {
    font-size: 20px;
  }

  .video-stage {
    max-height: none;
    min-height: 0;
    border-radius: 16px;
  }

  .lesson-player-panel {
    grid-template-columns: 1fr;
    min-height: 92px;
    padding: 14px 16px 16px;
    gap: 8px;
  }

  .player-help {
    margin: 0;
    line-height: 1.25;
  }

  .player-tabs {
    flex-wrap: wrap;
  }

  .gift-shell {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 0;
    border-radius: 22px;
    margin-bottom: 70px;
  }

  .gift-copy {
    padding: 26px 22px;
  }

  .gift-points span {
    padding: 12px 14px;
  }

  .gift-visual {
    min-height: 260px;
  }

  .gift-teacher {
    right: 50%;
    width: min(310px, 82vw);
    transform: translateX(50%);
  }

  .gift-cd {
    top: 20px;
    left: 22px;
    width: 74px;
  }

  .gift-piano {
    top: 30px;
    right: 28px;
    width: 52px;
  }

  .slide-controls {
    top: auto;
    right: auto;
    left: 50%;
    bottom: 18px;
    grid-template-columns: auto auto auto;
    align-items: center;
    width: min(420px, calc(100vw - 28px));
    gap: 8px;
    transform: translateX(-50%);
  }

  .slide-dots {
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
    max-width: min(62vw, 300px);
    overflow: visible;
    padding: 8px;
  }

  .dot-tooltip {
    display: none;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .scroll-hint {
    display: none;
    left: 18px;
    right: auto;
    bottom: 18px;
    width: min(280px, calc(100vw - 40px));
    justify-content: center;
    text-align: center;
    transform: none;
  }

  .scroll-hint:hover {
    transform: translateY(-2px);
  }

  .admin-page {
    padding: 18px;
  }

  .admin-hero,
  .admin-form,
  .generated-box,
  .history-box {
    width: 100%;
  }

  .admin-grid,
  .generated-url,
  .link-record {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --page-x: 14px;
    --slide-top: 122px;
    --slide-bottom: 124px;
  }

  .site-header {
    width: calc(100vw - 14px);
    min-height: 52px;
    padding: 6px 8px;
    border-radius: 16px;
    gap: 4px 8px;
  }

  .site-header.has-timer .header-timer {
    padding: 4px 10px;
    border-radius: 12px;
  }

  .header-timer img {
    width: 18px;
    height: 18px;
  }

  .header-timer-days strong,
  .header-timer-clock strong {
    font-size: 13px;
  }

  .brand-logo {
    width: clamp(104px, 31vw, 124px);
  }

  .signup-nav {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
  }

  .signup-label {
    display: none;
  }

  .messenger {
    flex: none;
    width: 48px;
    max-width: 48px;
    min-height: 48px;
    gap: 0;
    padding: 0;
    justify-content: center;
    text-align: center;
  }

  .messenger-icon {
    position: static;
    left: auto;
    top: auto;
    width: 44px;
    height: 44px;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .messenger-whatsapp .messenger-icon img,
  .messenger-telegram .messenger-icon img {
    width: 40px;
    height: 40px;
  }

  .messenger-max .messenger-icon img {
    width: 29px;
    height: 29px;
  }

  .messenger-copy small {
    display: none;
  }

  .messenger-copy strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .messenger-max {
    grid-column: auto;
    justify-self: auto;
  }

  .timer-card {
    grid-template-columns: auto 1fr;
    border-radius: 18px;
  }

  .timer-card p {
    font-size: 13px;
  }

  .timer-grid {
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    justify-content: stretch;
  }

  .timer-unit strong {
    font-size: 22px;
  }

  .teacher-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .teacher-photo-wrap {
    order: 2;
    min-height: 280px;
    margin-right: 0;
    overflow: hidden;
  }

  .teacher-photo {
    position: relative;
    left: 50%;
    width: min(360px, 92vw);
    height: auto;
    bottom: auto;
    object-fit: contain;
    object-position: bottom center;
    transform: translateX(-50%);
  }

  .floating-keyboard {
    right: 18%;
    bottom: 34px;
    width: 38px;
  }

  .decor-cd {
    display: none;
  }

  .teacher-copy {
    order: 1;
    margin-left: 0;
    padding: 22px 18px 12px;
  }

  .teacher-copy h1,
  .lesson-info h2,
  .gift-copy h2,
  .admin-hero h1 {
    max-width: 100%;
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.08;
  }

  .teacher-copy {
    padding: 22px 18px 12px;
  }

  .teacher-copy p {
    margin-top: 12px;
  }

  .lesson-theme {
    margin-bottom: 16px;
    font-size: 16px;
  }

  .lesson-card {
    min-height: 62px;
    padding: 12px 13px;
  }

  .lesson-card-icon {
    width: 34px;
    height: 34px;
  }

  .player-tab {
    flex: 1 1 130px;
  }

  .slide-controls {
    width: min(360px, calc(100vw - 20px));
  }

  .slide-dots {
    max-width: calc(100vw - 126px);
    gap: 4px;
    padding: 8px;
  }

  .slide-dot {
    width: 16px;
    height: 16px;
  }

  .dot-core {
    width: 6px;
    height: 6px;
  }

  .scroll-hint {
    display: none;
  }
}

@media (min-width: 521px) and (max-width: 640px) {
  .teacher-card {
    grid-template-columns: minmax(205px, 40%) minmax(0, 1fr);
    min-height: 294px;
  }

  .teacher-photo-wrap {
    order: 0;
    min-height: 294px;
    margin-right: -38px;
    overflow: visible;
  }

  .teacher-photo {
    left: -8px;
    width: min(318px, 112%);
    bottom: 0;
    transform: none;
  }

  .teacher-copy {
    order: 0;
    margin-left: -20px;
    padding: 24px 22px 22px 34px;
  }

  .teacher-copy h1 {
    font-size: clamp(20px, 4.4vw, 26px);
  }

  .teacher-copy p {
    font-size: 15px;
  }

  .floating-keyboard {
    right: 72px;
    bottom: 42px;
  }

  .decor-cd {
    display: block;
    top: 20px;
    right: 18px;
    bottom: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.landing-body {
  overflow: auto;
  background: radial-gradient(circle at top left, #f7f3ff 0%, #ffffff 35%, #f3f7fb 100%);
  min-height: 100dvh;
}

.landing-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1080px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 14px 0 8px;
  background: transparent;
}

.landing-logo img {
  width: clamp(150px, 14vw, 200px);
  height: auto;
  display: block;
}

.landing-top-timer.header-timer {
  display: none;
  position: static;
  background: linear-gradient(135deg, rgba(207, 92, 255, 0.12), rgba(29, 155, 240, 0.12));
  border: 1px solid rgba(207, 92, 255, 0.2);
  padding: 8px 16px;
  border-radius: 999px;
}

.landing-top-timer.header-timer:not([hidden]) {
  display: inline-flex;
}

.landing {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  width: min(1080px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) 0 64px;
}

.landing-hero {
  display: grid;
  gap: 18px;
  justify-items: center;
  max-width: 820px;
  margin: 0 auto;
}

.greet-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(14px, 2vw, 22px);
  width: 100%;
  max-width: 720px;
  padding: clamp(20px, 2.6vw, 32px) clamp(22px, 3vw, 38px) clamp(22px, 3vw, 32px);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 18, 30, 0.08);
  overflow: hidden;
}

.greet-avatar {
  width: clamp(86px, 10vw, 120px);
  height: clamp(86px, 10vw, 120px);
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: #f3eef7;
  box-shadow: 0 8px 22px rgba(15, 18, 30, 0.1);
}

.greet-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding-right: clamp(0px, 6vw, 80px);
}

.greet-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.25;
}

.greet-title strong {
  font-weight: 900;
}

.greet-wave {
  font-size: 1.15em;
  line-height: 1;
  flex: 0 0 auto;
}

.greet-body {
  margin: 0;
  color: #1c2030;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.45;
}

.greet-body strong {
  color: var(--text);
  font-weight: 800;
}

.greet-body em {
  color: #e07a3a;
  font-style: normal;
  font-weight: 800;
}

.greet-cta {
  margin: 4px 0 0;
  color: var(--accent);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 800;
  line-height: 1.35;
}

.greet-cd {
  position: absolute;
  top: 14px;
  right: 14px;
  width: clamp(64px, 7vw, 96px);
  height: auto;
  opacity: 0.85;
  transform: rotate(16deg);
  pointer-events: none;
}

.greet-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 28px rgba(15, 18, 30, 0.1);
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.greet-arrow:hover {
  transform: translateY(3px);
  box-shadow: 0 16px 34px rgba(15, 18, 30, 0.16);
}

.landing-choice {
  display: grid;
  gap: 22px;
}

.landing-choice-title {
  margin: 0;
  text-align: center;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  line-height: 1.2;
}

.landing-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.level-card {
  display: grid;
  place-items: center;
  gap: clamp(18px, 2vw, 28px);
  min-height: clamp(220px, 28vw, 320px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 32px;
  border: 1px solid rgba(16, 19, 27, 0.08);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: #f4f3f5;
  box-shadow: 0 22px 60px rgba(15, 18, 30, 0.06);
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    filter 220ms var(--ease);
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(15, 18, 30, 0.16);
  filter: saturate(1.05);
}

.level-emoji {
  font-size: clamp(64px, 9vw, 110px);
  line-height: 1;
}

.level-label {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.level-card-pro {
  background: linear-gradient(135deg, #c054ff 0%, #a832e3 100%);
  border-color: transparent;
  color: #fff;
}

.landing-foot {
  display: grid;
  gap: 14px;
  padding-top: 12px;
}

.landing-foot p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.landing-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 720px) {
  .landing-top {
    padding: 10px 0 6px;
  }

  .landing-top-timer.header-timer {
    padding: 6px 12px;
  }

  .header-timer-days strong,
  .header-timer-clock strong {
    font-size: 13px;
  }

  .landing-choice-grid {
    grid-template-columns: 1fr;
  }

  .level-card {
    min-height: 180px;
    padding: 28px;
  }

  .greet-card {
    padding: 18px 18px 20px;
    border-radius: 22px;
  }

  .greet-copy {
    padding-right: 0;
  }

  .greet-cd {
    top: 10px;
    right: 10px;
    width: 56px;
    opacity: 0.65;
  }
}

@media (max-width: 460px) {
  .greet-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .greet-title {
    justify-content: center;
  }

  .greet-cd {
    display: none;
  }
}

/* Premium Expired Screen */
.expired-body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  background: radial-gradient(circle at center, #151821 0%, #0a0c10 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.expired-container {
  width: 100%;
  max-width: 620px;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.expired-card {
  position: relative;
  width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 28px;
  background: rgba(18, 22, 33, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 48px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.05);
  text-align: center;
  overflow: hidden;
}

.expired-icon-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0) 70%);
  pointer-events: none;
}

.expired-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #ffe596;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.expired-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffe596 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.expired-desc {
  margin: 0 0 36px;
  color: #a0a5b5;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.55;
}

.expired-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.expired-actions .messenger {
  width: 100%;
  max-width: 320px;
  min-height: 54px;
  justify-content: center;
  padding: 8px 24px 8px 60px;
}

.expired-actions .messenger-icon {
  left: 12px;
}

@media (max-width: 480px) {
  .expired-card {
    padding: 36px 24px;
    border-radius: 24px;
  }
  
  .expired-badge {
    margin-bottom: 18px;
  }
  
  .expired-desc {
    margin-bottom: 28px;
  }
}
