:root { --bg:#0d0e11; --panel:#16181d; --muted:#8b94a7; --text:#e7ecf5; --accent:#7cc4ff; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto;
  background: var(--bg);
  color: var(--text);
  font-size: clamp(16px, 1.1vw + 14px, 18px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
.entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 48px);
  background: rgba(0, 0, 0, 0.88);
  overflow-y: auto;
  transition: opacity 0.6s ease;
  opacity: 1;
}
.entry-overlay--fade-out {
  opacity: 0;
  pointer-events: none;
}
.entry-overlay__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(24px, 4vw, 32px);
  width: min(100%, 560px);
}
.entry-overlay__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}
.entry-overlay__teaser {
  display: grid;
  gap: clamp(14px, 3vw, 20px);
  text-align: center;
}
.entry-overlay__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.8vw, 16px);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(12, 18, 28, 0.82);
  border: 1px solid rgba(124,196,255,0.32);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.entry-overlay__logo {
  width: clamp(36px, 5vw, 44px);
  height: clamp(36px, 5vw, 44px);
  display: block;
}
.entry-overlay__name {
  font-size: clamp(16px, 2.4vw, 18px);
}
.entry-overlay__tagline {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 3.6vw, 17px);
  line-height: 1.6;
}
.container {
  max-width: 820px;
  margin: clamp(24px, 6vw, 56px) auto;
  padding: clamp(28px, 5vw, 40px) clamp(16px, 6vw, 32px);
}
.entry-overlay .entry-guard {
  margin-bottom: 0;
}
.container > .muted { margin-bottom: 20px; }
.entry-guard {
  display: grid;
  gap: clamp(14px, 3.6vw, 20px);
  padding: clamp(22px, 5.5vw, 30px);
  margin-bottom: clamp(24px, 7vw, 40px);
  border-radius: 18px;
  border: 1px solid rgba(124,196,255,0.18);
  background: rgba(12, 18, 28, 0.88);
  box-shadow: 0 20px 44px rgba(6, 20, 34, 0.32);
  text-align: center;
}
.entry-guard__title {
  margin: 0;
  font-size: clamp(20px, 5.6vw, 30px);
  font-weight: 700;
}
.entry-guard__message {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.6;
}
.entry-guard__slider-shell {
  position: relative;
  width: 100%;
  padding: clamp(8px, 3.6vw, 12px);
  border-radius: 14px;
  background: rgba(6, 10, 18, 0.92);
  border: 1px solid rgba(124,196,255,0.16);
  transition: opacity 160ms ease, border-color 160ms ease;
}
.entry-guard__slider-shell--disabled {
  opacity: 0.6;
}
.entry-guard--complete .entry-guard__slider-shell--disabled { border-color: rgba(102,210,156,0.35); }
.entry-guard--error .entry-guard__slider-shell--disabled { border-color: rgba(255,122,122,0.42); }
.entry-guard__slider {
  --fill: 0%;
  appearance: none;
  width: 100%;
  height: clamp(36px, 11vw, 44px);
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(124,196,255,0.78) 0%,
      rgba(124,196,255,0.78) var(--fill),
      rgba(18, 26, 38, 0.94) var(--fill),
      rgba(18, 26, 38, 0.94) 100%);
  border: 1px solid rgba(124,196,255,0.26);
  box-shadow: inset 0 0 0 1px rgba(8, 16, 28, 0.58);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.entry-guard__slider:focus-visible {
  border-color: rgba(124,196,255,0.48);
  box-shadow: 0 0 0 3px rgba(124,196,255,0.22);
}
.entry-guard__slider::-webkit-slider-runnable-track {
  height: 100%;
  border-radius: 999px;
  background: transparent;
}
.entry-guard__slider::-moz-range-track {
  height: 100%;
  border-radius: 999px;
  background: transparent;
}
.entry-guard__slider::-ms-track {
  height: 100%;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: transparent;
}
.entry-guard__slider::-webkit-slider-thumb {
  appearance: none;
  width: clamp(26px, 8vw, 34px);
  height: clamp(26px, 8vw, 34px);
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(124,196,255,0.9), rgba(124,196,255,0.62));
  border: 2px solid rgba(12, 22, 36, 0.7);
  box-shadow: 0 8px 20px rgba(10, 24, 40, 0.38);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.entry-guard__slider::-moz-range-thumb {
  width: clamp(26px, 8vw, 34px);
  height: clamp(26px, 8vw, 34px);
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(124,196,255,0.9), rgba(124,196,255,0.62));
  border: 2px solid rgba(12, 22, 36, 0.7);
  box-shadow: 0 8px 20px rgba(10, 24, 40, 0.38);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.entry-guard__slider::-webkit-slider-thumb:active,
.entry-guard__slider::-moz-range-thumb:active {
  transform: scale(0.96);
  box-shadow: 0 4px 14px rgba(10, 24, 40, 0.4);
}
.entry-guard__slider:disabled {
  cursor: not-allowed;
}
.entry-guard__slider:disabled::-webkit-slider-thumb,
.entry-guard__slider:disabled::-moz-range-thumb {
  opacity: 0.45;
}
.entry-guard__progress {
  display: grid;
  gap: 12px;
  text-align: center;
}
.entry-guard__progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(12, 20, 32, 0.78);
  border: 1px solid rgba(124,196,255,0.28);
  overflow: hidden;
}
.entry-guard__progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(124,196,255,0.95), rgba(164,220,255,0.72));
  transform-origin: left center;
  transition: width 220ms ease;
}
.entry-guard--working .entry-guard__progress-fill {
  animation: entryProgressPulse 1.4s ease-in-out infinite;
}
.entry-guard__progress-label {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, 3.4vw, 14px);
  letter-spacing: 0.01em;
}
.entry-guard__retry {
  justify-self: center;
}
.entry-guard--error {
  border-color: rgba(255,122,122,0.42);
  background: rgba(44, 18, 26, 0.92);
}
.entry-guard--error .entry-guard__slider-shell {
  border-color: rgba(255,122,122,0.32);
  background: rgba(32, 12, 18, 0.94);
}
.entry-guard--error .entry-guard__slider {
  background:
    linear-gradient(90deg,
      rgba(255,122,122,0.76) 0%,
      rgba(255,122,122,0.76) var(--fill),
      rgba(44, 18, 26, 0.92) var(--fill),
      rgba(44, 18, 26, 0.92) 100%);
  border-color: rgba(255,122,122,0.4);
  box-shadow: inset 0 0 0 1px rgba(40, 14, 22, 0.6);
}
.entry-guard--error .entry-guard__message {
  color: #ffc6c6;
}
.entry-guard--complete {
  border-color: rgba(102,210,156,0.45);
  background: rgba(18, 34, 28, 0.92);
}
.entry-guard--complete .entry-guard__slider-shell {
  border-color: rgba(102,210,156,0.26);
  background: rgba(14, 28, 24, 0.92);
}
.entry-guard--complete .entry-guard__slider {
  background:
    linear-gradient(90deg,
      rgba(102,210,156,0.85) 0%,
      rgba(102,210,156,0.85) var(--fill),
      rgba(20, 44, 32, 0.92) var(--fill),
      rgba(20, 44, 32, 0.92) 100%);
  border-color: rgba(102,210,156,0.42);
  box-shadow: inset 0 0 0 1px rgba(18, 36, 28, 0.52);
}
.entry-guard--complete .entry-guard__message {
  color: #9ce9b3;
}
.entry-guard--fade-out {
  animation: entryGuardFade 0.6s ease forwards;
}
@keyframes entryGuardFade {
  to {
    opacity: 0;
    transform: translateY(-18px);
    pointer-events: none;
  }
}
@keyframes entryProgressPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}
@media (max-width: 540px) {
  .entry-guard {
    padding: clamp(20px, 8vw, 28px);
  }
  .entry-guard__message {
    font-size: clamp(13px, 4vw, 15px);
  }
  .entry-guard__progress-label {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-guard,
  .entry-guard__slider,
  .entry-guard__progress-fill,
  .entry-guard--fade-out {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}

.banner {
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(124,196,255,0.24);
  background: rgba(10, 16, 26, 0.82);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.banner--success {
  border-color: rgba(92, 188, 126, 0.5);
  background: rgba(14, 30, 22, 0.82);
  color: #9ce9b3;
}
.banner--error {
  border-color: rgba(255, 120, 120, 0.5);
  background: rgba(40, 18, 24, 0.82);
  color: #ffc6c6;
}
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(124,196,255,0.22), rgba(124,196,255,0))
    , var(--panel);
  border: 1px solid #1f2430;
  border-radius: 20px;
  padding: clamp(32px, 6vw, 56px);
  display: grid;
  gap: clamp(24px, 4vw, 32px);
  justify-items: start;
  box-shadow: 0 24px 60px rgba(6, 24, 40, 0.35);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -120px auto auto -120px;
  width: clamp(180px, 32vw, 260px);
  height: clamp(180px, 32vw, 260px);
  background: radial-gradient(circle, rgba(124,196,255,0.2) 0%, rgba(124,196,255,0) 70%);
  opacity: 0.6;
  pointer-events: none;
}
.hero__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(9, 15, 26, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(124,196,255,0.18);
  font-weight: 700;
  font-size: clamp(16px, 2.2vw, 18px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__icon {
  width: clamp(32px, 4vw, 40px);
  height: clamp(32px, 4vw, 40px);
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.hero__name { letter-spacing: 0.08em; }
.hero__pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(124,196,255,0.18);
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(124,196,255,0.35);
  white-space: nowrap;
}
.hero__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 32px);
  align-items: flex-start;
  width: 100%;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3.2vw, 24px);
  width: 100%;
  align-items: flex-start;
}
.hero__headline {
  margin: 0;
  font-size: clamp(34px, 6.6vw, 48px);
  line-height: 1.08;
}
.hero__subheadline {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.6vw, 19px);
  max-width: 48ch;
}
.hero__features {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.hero__features li { line-height: 1.5; }
.hero__cta {
  position: relative;
  align-self: flex-start;
  width: min(100%, 320px);
  font-size: 18px;
  padding: 16px 30px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(120deg, #7cc4ff, #c1f4ff, #caa9ff, #7cc4ff);
  background-size: 220% 220%;
  animation: heroCtaGradient 6s ease-in-out infinite;
  color: #04192d;
  box-shadow:
    0 20px 48px rgba(65, 195, 255, 0.32),
    0 0 0 1px rgba(8, 28, 44, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: translateX(-150%) skewX(-18deg);
  animation: heroCtaSheen 4.8s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__cta:hover {
  filter: brightness(1.05) saturate(1.08);
  transform: translateY(-1px);
}

.hero__cta:hover::after {
  animation-duration: 3.4s;
}

.hero__cta:active {
  transform: translateY(0) scale(0.98);
}

.hero__cta:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 4px rgba(124, 196, 255, 0.4),
    0 22px 52px rgba(65, 195, 255, 0.35);
}

.hero__cta:disabled {
  animation: none;
  background-position: 50% 50%;
  box-shadow: 0 0 0 1px rgba(8, 28, 44, 0.4);
}

.hero__cta:disabled::after {
  display: none;
}
.hero__actions { 
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 20px);
  width: 100%;
  align-items: flex-start;
}

@keyframes heroCtaGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes heroCtaSheen {
  0% {
    transform: translateX(-160%) skewX(-18deg);
    opacity: 0;
  }
  40% {
    opacity: 0.55;
  }
  60% {
    opacity: 0.4;
  }
  100% {
    transform: translateX(160%) skewX(-18deg);
    opacity: 0;
  }
}
.hero__actions-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: color 150ms ease;
}
.hero__actions-link::after {
  content: "→";
  font-size: 16px;
  transition: transform 150ms ease;
}
.hero__actions-link:hover {
  color: #a2d6ff;
}
.hero__actions-link:hover::after {
  transform: translateX(2px);
}
.hero__actions-link:focus-visible {
  outline: 0;
  color: #c8e5ff;
  text-decoration: underline;
}

@media (max-width: 639px) {
  .hero__header {
    display: none;
  }
}
.advanced-section {
  margin-top: clamp(32px, 7vw, 48px);
}
.advanced__panel {
  width: 100%;
  display: grid;
  gap: clamp(20px, 4vw, 28px);
  padding: clamp(24px, 4.4vw, 34px);
  background: linear-gradient(140deg, rgba(11, 18, 28, 0.94), rgba(15, 22, 34, 0.92));
  border: 1px solid rgba(124,196,255,0.22);
  border-radius: 20px;
  box-shadow: 0 26px 60px rgba(5, 18, 32, 0.56);
}
.advanced-section__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.advanced-section__titles {
  display: grid;
  gap: 6px;
}
.advanced-section__title {
  margin: 0;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 700;
}
.advanced-section__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 17px);
  max-width: 52ch;
}
.advanced__intro {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.advanced__form {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}
.advanced__field {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  border-radius: 14px;
  border: 1px solid rgba(35, 42, 54, 0.9);
  background: rgba(9, 14, 24, 0.82);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.advanced__field--full {
  grid-column: 1 / -1;
}
.advanced__field:focus-within {
  border-color: rgba(124,196,255,0.42);
  box-shadow: 0 0 0 1px rgba(124,196,255,0.24);
}
.advanced__field-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.advanced__field-label {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.advanced__field-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.advanced__hint {
  color: var(--muted);
  line-height: 1.6;
}
.advanced__slider {
  --value: 0.04;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg,
      rgba(124,196,255,0.75) 0%,
      rgba(124,196,255,0.75) calc(var(--value) * 100%),
      rgba(26, 36, 52, 0.92) calc(var(--value) * 100%),
      rgba(26, 36, 52, 0.92) 100%);
  cursor: pointer;
  transition: box-shadow 160ms ease;
}
.advanced__slider:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(124,196,255,0.22);
}
.advanced__slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}
.advanced__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(7, 18, 28, 0.95);
  box-shadow: 0 4px 10px rgba(6, 20, 36, 0.55);
}
.advanced__slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}
.advanced__slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(7, 18, 28, 0.95);
  box-shadow: 0 4px 10px rgba(6, 20, 36, 0.55);
}
.advanced__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 46px;
  background-color: #0f1218;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 26px) 52%, calc(100% - 18px) 52%;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
  cursor: pointer;
  line-height: 1.4;
}
.advanced__input {
  letter-spacing: 0.01em;
}
.advanced__actions {
  justify-content: flex-end;
  gap: 12px;
  grid-column: 1 / -1;
}
.advanced__actions .btn {
  width: auto;
  min-width: 0;
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    align-items: center;
    gap: clamp(18px, 2.6vw, 28px);
  }

  .hero__cta {
    width: auto;
    min-width: clamp(220px, 32vw, 320px);
    max-width: none;
  }

  .hero__actions-link {
    font-size: 16px;
  }

  .advanced-section__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(16px, 3vw, 24px);
  }

  .advanced-section__subtitle {
    max-width: 44ch;
  }

  .advanced__panel {
    padding: clamp(26px, 3.8vw, 34px);
    gap: clamp(20px, 3vw, 28px);
  }

  .advanced__form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(18px, 2.8vw, 28px);
    row-gap: clamp(18px, 2.6vw, 24px);
    align-items: stretch;
  }

  .advanced__field {
    height: 100%;
    align-content: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cta {
    animation: none;
    background-position: 50% 50%;
  }

  .hero__cta::after {
    animation: none;
    opacity: 0;
  }
}
.hero__note {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 16px 20px;
  width: 100%;
  border-radius: 16px;
  background: rgba(10, 16, 26, 0.72);
  border: 1px solid rgba(124,196,255,0.12);
  color: var(--muted);
  font-size: 15px;
}
h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 5vw, 40px);
}
.h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 3.6vw, 26px);
}
.muted { color: var(--muted); line-height: 1.6; }
.row { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.right { margin-left: auto; }
.card { background: var(--panel); padding: clamp(24px, 4vw, 32px); border-radius: 14px; border: 1px solid #232632; }
.technical-note {
  position: relative;
  z-index: 0;
  margin-top: clamp(32px, 7vw, 56px);
  padding: clamp(28px, 5vw, 40px);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(16, 22, 34, 0.96), rgba(10, 16, 26, 0.92));
  border: 1px solid rgba(124,196,255,0.32);
  box-shadow:
    0 28px 68px rgba(6, 18, 34, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.technical-note::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(124,196,255,0.22) 0%, rgba(16, 22, 34, 0) 58%),
    radial-gradient(120% 120% at 100% 100%, rgba(124,196,255,0.18) 0%, rgba(16, 22, 34, 0) 62%);
  pointer-events: none;
}
.technical-note > * {
  position: relative;
  z-index: 1;
}
.technical-note ul {
  margin: 0;
  padding-left: 1.35rem;
  display: grid;
  gap: 14px;
}
.technical-note li {
  color: var(--text);
  line-height: 1.7;
}
.technical-note li::marker {
  color: var(--accent);
}
.technical-note code {
  background: rgba(124,196,255,0.16);
  color: var(--accent);
  padding: 0 0.3em;
  border-radius: 6px;
}
.hidden { display: none; }
.btn {
  background: var(--accent);
  color: #06263d;
  border: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
}
.btn--shiny {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 55%) 0 0 / 180% 180% no-repeat,
    linear-gradient(145deg, #050608 0%, #161b26 55%, #050608 100%);
  background-blend-mode: lighten;
  color: var(--text);
  border: 1px solid rgba(124,196,255,0.32);
  box-shadow: 0 14px 28px rgba(4, 8, 14, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  background-position: 0 0, center;
  background-size: 180% 180%, 100% 100%;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 180ms ease, background-position 220ms ease;
}
.btn--shiny:hover {
  background-position: 25% 25%, center;
  box-shadow: 0 18px 36px rgba(6, 12, 20, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn--shiny:active {
  background-position: 40% 40%, center;
  box-shadow: 0 10px 20px rgba(4, 8, 14, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn--shiny[data-state=copied] {
  background-position: 60% 60%, center;
  box-shadow: 0 22px 44px rgba(16, 32, 48, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  filter: brightness(1.1);
}
.btn.secondary { background: transparent; color: var(--text); border: 1px solid #2a2f3b; }
.btn.secondary:disabled {
  color: rgba(231, 236, 245, 0.7);
  border-color: rgba(42, 47, 59, 0.6);
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px) scale(0.98); filter: brightness(0.95); }
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(124,196,255,0.35); }
.input {
  width: 100%;
  background: #0f1218;
  color: var(--text);
  border: 1px solid #2a2f3b;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.5;
  min-height: 48px;
}
.input:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(124,196,255,0.2); }
.grow { flex: 1; }
.room-page .room-layout {
  display: grid;
  gap: clamp(20px, 3.4vw, 32px);
}

.room-page .room-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 24px);
  flex-wrap: wrap;
}

.room-page .room-header__info {
  display: grid;
  gap: 6px;
}

.room-page .room-header__title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.room-page .room-header__logo {
  width: clamp(32px, 4vw, 40px);
  height: clamp(32px, 4vw, 40px);
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.room-page .room-header__subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.room-page .room-header__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.room-page .room-presence {
  margin: 0;
  padding: clamp(20px, 3.2vw, 26px);
  border-radius: 18px;
  background: rgba(13, 18, 28, 0.92);
  border: 1px solid rgba(124,196,255,0.18);
  box-shadow: 0 20px 48px rgba(5, 18, 32, 0.45);
  display: grid;
  gap: 6px;
}

.room-page .room-presence__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.room-page .room-presence__value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  word-break: break-word;
}

.room-page .chat-shell {
  padding: clamp(24px, 4vw, 32px);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(11, 18, 28, 0.96), rgba(16, 22, 32, 0.92));
  border: 1px solid rgba(124,196,255,0.2);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.6vw, 22px);
  box-shadow: 0 28px 64px rgba(6, 18, 32, 0.48);
}

.room-page .chat-shell__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 24px);
  flex-wrap: wrap;
}

.room-page .chat-shell__titles {
  display: grid;
  gap: 6px;
}

.room-page .chat-shell__title {
  margin: 0;
  font-size: clamp(22px, 4.2vw, 28px);
}

.room-page .chat-shell__subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 48ch;
}

.room-page .chat-shell__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(124,196,255,0.26);
  background: rgba(124,196,255,0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 120ms ease, filter 120ms ease;
}

.room-page .chat-shell__badge[data-state="on"] {
  background: rgba(74, 196, 135, 0.18);
  border-color: rgba(102, 210, 156, 0.42);
  color: #8fe4b0;
}

.room-page .chat-shell__badge[data-state="off"] {
  background: rgba(255, 122, 122, 0.14);
  border-color: rgba(255, 122, 122, 0.36);
  color: #ff9ea8;
}

.room-page .chat-shell__body {
  flex: 1;
  padding: clamp(18px, 3vw, 24px);
  border-radius: 16px;
  border: 1px solid rgba(124,196,255,0.18);
  background: rgba(6, 12, 20, 0.82);
  min-height: clamp(260px, 45vh, 520px);
  max-height: clamp(360px, 62vh, 620px);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 16px);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
  -webkit-overflow-scrolling: touch;
}

.msg {
  margin: 0;
  padding: clamp(12px, 2.4vw, 16px);
  border-radius: 14px;
  background: rgba(124,196,255,0.08);
  border: 1px solid rgba(124,196,255,0.18);
  box-shadow: 0 12px 28px rgba(6, 18, 32, 0.42);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.msg strong {
  color: var(--accent);
  font-weight: 700;
}

.msg.system {
  background: rgba(18, 24, 34, 0.82);
  border: 1px dashed rgba(124,196,255,0.22);
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-grid {
  display: grid;
  gap: clamp(12px, 2vw, 16px);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: start;
  justify-items: start;
}

.status-grid__item {
  display: grid;
  gap: 4px;
}

.status-grid__item--wide {
  grid-column: 1 / -1;
}

.status-grid__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.status-grid__value {
  font-weight: 600;
  color: var(--text);
}

.status-grid__value--timer {
  font-size: clamp(20px, 4vw, 28px);
  letter-spacing: 0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.status-grid__meta {
  color: var(--muted);
  line-height: 1.55;
}

.status-grid[data-state="pending"] .status-grid__value--timer {
  color: var(--muted);
}

.status-grid[data-state="notice"] .status-grid__value--timer {
  color: #ffd58a;
}

.status-grid[data-state="alert"] .status-grid__value--timer {
  color: #ff9aa9;
}

.status-grid[data-state="alert"] .status-grid__meta {
  color: #ffb5c0;
}

.room-page .chat-shell__composer {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(12px, 2.2vw, 16px);
  padding: clamp(14px, 2.6vw, 18px);
  background: rgba(10, 14, 22, 0.88);
  border: 1px solid rgba(124,196,255,0.18);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(124,196,255,0.05);
}

.room-page .chat-shell__composer .input {
  min-height: 52px;
}

.room-page .chat-shell__composer .btn {
  width: auto;
  min-width: 140px;
  justify-self: end;
}

.room-page .room-status {
  padding: clamp(18px, 3vw, 22px);
  border-radius: 18px;
  background: rgba(8, 12, 20, 0.9);
  border: 1px solid rgba(124,196,255,0.18);
  box-shadow: 0 22px 52px rgba(5, 18, 32, 0.42);
  display: grid;
  gap: clamp(12px, 2vw, 16px);
}

.room-page .room-status__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Create-room view spacing */
#result { margin-top: 24px; padding: clamp(26px, 4.2vw, 36px); }
#result p { margin: 0 0 12px; }
.instructions { margin-top: 18px; display: grid; gap: 14px; }
.instructions__list { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--muted); }
.instructions__list li strong { color: var(--text); }
#copy { margin-top: 12px; margin-bottom: 8px; padding: 12px 16px; }
#expires { margin-top: 16px; display: block; }

.small { font-size: 12px; }

/* Mobile adjustments */
@media (max-width: 900px) {
  .hero { padding: clamp(28px, 6vw, 44px); }
  .hero__body {
    gap: clamp(24px, 6vw, 32px);
  }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .container { margin: 0 auto; padding: 24px 16px 40px; }
  .banner { margin-bottom: 20px; padding: 12px 14px; font-size: 14px; }
  .hero {
    padding: 28px 20px 34px;
    gap: 28px;
  }
  .hero__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero__brand { padding: 10px 16px; }
  .hero__pill { align-self: flex-start; padding: 10px 16px; }
  .hero__body {
    gap: 26px;
  }
  .hero__copy { gap: 22px; }
  .hero__cta {
    width: 100%;
    padding: 18px 24px;
    font-size: 19px;
  }
  .hero__actions-link {
    font-size: 15px;
  }
  .hero__features { gap: 12px; }
  .hero__note {
    font-size: 15px;
    padding: 18px;
  }
  .advanced-section {
    margin-top: 30px;
  }
  .advanced__panel {
    padding: 22px 18px;
  }
  .advanced__field {
    padding: 14px 16px 16px;
  }
  .advanced__field-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .advanced__actions {
    justify-content: center;
  }
  .row { flex-direction: column; align-items: stretch; gap: 12px; }
  header.row { align-items: flex-start; }
  .card { padding: 20px 16px; }
  #result { padding: 22px 16px; }
  .btn { font-size: 17px; }
  #copy { width: auto; align-self: flex-start; }
  .input { font-size: 17px; }
  .room-page .room-layout { gap: 20px; }
  .room-page .room-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .room-page .room-header__info { gap: 4px; }
  .room-page .room-header__title {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .room-page .room-header__logo {
    width: 28px;
    height: 28px;
  }
  .room-page .room-header__actions {
    width: auto;
    align-self: flex-end;
  }
  .room-page .room-header__actions .btn {
    width: auto;
  }
  .room-page .room-presence { padding: 18px 16px; }
  .room-page .chat-shell { padding: 22px 18px; gap: 16px; }
  .room-page .chat-shell__top { flex-direction: column; align-items: stretch; gap: 16px; }
  .room-page .chat-shell__badge { width: 100%; justify-content: center; }
  .room-page .chat-shell__body {
    min-height: min(320px, 58vh);
    max-height: min(420px, 68vh);
    padding: 18px;
  }
  .room-page .room-status { padding: 16px 18px; gap: 14px; }
  .room-page .room-status__note { font-size: 15px; }
  .room-page .status-grid { grid-template-columns: minmax(0, 1fr); }
  .room-page .chat-shell__composer {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
    gap: 12px;
  }
  .room-page .chat-shell__composer .btn {
    justify-self: stretch;
    min-width: 0;
  }
}

