:root {
  --ink: #101520;
  --muted: #68758a;
  --line: #dce4ef;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --deep: #111827;
  --panel: #172032;
  --panel-2: #223047;
  --teal: #06bfa6;
  --teal-2: #13d4b8;
  --coral: #f06a5b;
  --gold: #f0ad3d;
  --violet: #6d5dfc;
  --blue: #2563eb;
  --shadow: 0 18px 60px rgba(16, 21, 32, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(6, 191, 166, .18), transparent 34rem),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

button,
input,
select {
  font: inherit;
}

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 34px;
  border-bottom: 1px solid rgba(16, 21, 32, .08);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 210px;
}

.brandMark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  box-shadow: 0 10px 26px rgba(6, 191, 166, .28);
}

.brandMark span {
  font-weight: 900;
  letter-spacing: 0;
}

.brand b {
  display: block;
  font-size: 18px;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.mainNav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.mainNav a,
.adminNav a {
  padding: 10px 12px;
  color: #3b4758;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
}

.mainNav a:hover,
.adminNav a:hover {
  color: var(--ink);
  background: rgba(6, 191, 166, .11);
}

.headerActions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.agePill {
  display: inline-flex;
  min-width: 42px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: #152033;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
}

.navToggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0;
  cursor: pointer;
}

.navToggle::before {
  content: "";
  display: block;
  width: 18px;
  height: 12px;
  margin: auto;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  box-shadow: inset 0 5px 0 -3px var(--ink);
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #0aa389);
  box-shadow: 0 14px 26px rgba(6, 191, 166, .22);
}

.btn.primary:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
}

.btn.ghost,
.btn.glass {
  color: #172032;
  border-color: var(--line);
  background: rgba(255, 255, 255, .8);
}

.btn.glass {
  color: #fff;
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .09);
}

.btn.large {
  min-height: 52px;
  padding: 14px 22px;
  font-size: 16px;
}

.btn.small {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 13px;
}

.flash {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 13px 16px;
  color: #7a3b02;
  border: 1px solid rgba(240, 173, 61, .45);
  border-radius: 8px;
  background: #fff7e7;
  font-weight: 800;
}

.homeShell,
.pageShell,
.dashboardShell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.heroPro {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(410px, .86fr);
  gap: 28px;
  align-items: stretch;
  padding: 44px 0 24px;
}

.heroCopy {
  min-height: 640px;
  padding: 44px;
  color: #fff;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, .94), rgba(34, 48, 71, .92)),
    linear-gradient(135deg, var(--teal), var(--coral));
  box-shadow: var(--shadow);
}

.microRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.microRow span,
.kicker,
.sectionTitle span,
.pageHero span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  color: var(--teal-2);
  border: 1px solid rgba(6, 191, 166, .35);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.heroCopy h1,
.pageHero h1,
.detailPanel h1 {
  margin: 0;
  max-width: 870px;
  font-size: clamp(42px, 6vw, 88px);
  line-height: .96;
  letter-spacing: 0;
}

.heroCopy p,
.pageHero p,
.detailPanel p,
.authIntro p,
.splitBlock p {
  max-width: 720px;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
  line-height: 1.65;
}

.heroCtas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trustGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 48px;
}

.trustGrid div,
.panelStrip div,
.featureGrid article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.trustGrid b,
.panelStrip b,
.featureGrid b {
  display: block;
  color: #fff;
  font-size: 26px;
}

.trustGrid span,
.panelStrip span,
.featureGrid span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 750;
}

.heroDevice {
  min-height: 640px;
  padding: 24px;
  color: #fff;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)),
    linear-gradient(145deg, #243146, #101520);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phoneTop,
.roomHeader,
.chatTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.phoneTop {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.phoneTop span,
.phoneTop i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.phoneTop i {
  background: var(--coral);
}

.stackedProfiles {
  display: grid;
  gap: 12px;
}

.miniProfile {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.miniProfile img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.miniProfile b {
  display: block;
  font-size: 18px;
}

.miniProfile small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .68);
}

.miniProfile em,
.onlineBadge {
  color: #083c32;
  background: #bff8ed;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.heroChat {
  margin-top: 24px;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(6, 191, 166, .2), rgba(240, 106, 91, .15));
}

.heroChat p {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.4;
}

.heroChat span {
  color: rgba(255, 255, 255, .72);
  font-weight: 800;
}

.panelStrip,
.featureGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 26px;
  padding: 18px;
  border-radius: 8px;
  background: var(--deep);
}

.sectionBlock {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 40px rgba(16, 21, 32, .08);
}

.sectionTitle {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.sectionTitle h2 {
  margin: 8px 0 0;
  max-width: 720px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
}

.sectionTitle a {
  color: var(--blue);
  font-weight: 900;
}

.profileGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.profileGrid.wide {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 36px;
}

.profileCard {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 16px 44px rgba(16, 21, 32, .16);
}

.profileCard img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  opacity: .92;
  transition: transform .28s ease;
}

.profileCard:hover img {
  transform: scale(1.035);
}

.profileCard .onlineBadge {
  position: absolute;
  top: 14px;
  left: 14px;
}

.profileText {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 16px;
  color: #fff;
  border-radius: 8px;
  background: rgba(17, 24, 39, .78);
  backdrop-filter: blur(12px);
}

.profileText h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.profileText p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.45;
}

.profileText span {
  color: var(--teal-2);
  font-weight: 950;
}

.splitBlock {
  display: grid;
  grid-template-columns: 1fr minmax(360px, .72fr);
  gap: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--panel), #0d1420);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.steps div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.steps b {
  display: block;
  color: var(--gold);
  font-size: 24px;
}

.steps span {
  color: rgba(255, 255, 255, .76);
  font-weight: 800;
}

.roomPreview {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.roomHeader {
  margin-bottom: 18px;
  color: #fff;
}

.roomHeader span {
  color: var(--teal-2);
  font-weight: 950;
}

.bubble {
  width: fit-content;
  max-width: min(680px, 82%);
  margin: 12px 0;
  padding: 13px 15px;
  border-radius: 8px;
  line-height: 1.45;
}

.bubble.other {
  color: #172032;
  background: #fff;
}

.bubble.me {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), #4f46e5);
}

.bubble.system {
  margin: 12px auto;
  color: #5c4a0b;
  background: #fff4c7;
}

.bubble small {
  display: block;
  margin-top: 6px;
  color: rgba(104, 117, 138, .9);
  font-size: 12px;
}

.packageGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.packageCard {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 21, 32, .08);
}

.packageCard small {
  color: var(--coral);
  font-weight: 950;
  text-transform: uppercase;
}

.packageCard b {
  display: block;
  margin: 10px 0;
  font-size: 38px;
}

.packageCard p {
  color: var(--muted);
  line-height: 1.55;
}

.pageHero {
  margin: 34px 0 24px;
  padding: 34px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--deep), var(--panel-2));
  box-shadow: var(--shadow);
}

.profileDetail {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) 1.1fr;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto;
}

.portraitPanel,
.detailPanel,
.authCard,
.checkoutCard,
.tablePanel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(16, 21, 32, .08);
}

.portraitPanel {
  min-height: 680px;
  overflow: hidden;
}

.portraitPanel img {
  width: 100%;
  height: 100%;
  min-height: 680px;
  object-fit: cover;
}

.detailPanel {
  padding: 36px;
}

.detailPanel h1,
.detailPanel p {
  color: var(--ink);
}

.detailPanel p {
  color: var(--muted);
}

.detailStats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.detailStats div,
.profileNotes {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.detailStats b {
  display: block;
  color: var(--violet);
  font-size: 26px;
}

.detailStats span,
.profileNotes span {
  display: block;
  color: var(--muted);
  font-weight: 750;
}

.startBox,
.authCard {
  display: grid;
  gap: 12px;
}

label {
  color: #4b5870;
  font-size: 13px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.checkLine {
  display: flex;
  gap: 10px;
  align-items: center;
}

.checkLine input {
  width: 18px;
  min-height: 18px;
}

.profileNotes {
  margin-top: 20px;
}

.authShell {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 36px auto;
}

.authShell.compact {
  grid-template-columns: minmax(320px, 520px);
  justify-content: center;
}

.authIntro {
  padding: 34px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--deep), var(--panel-2));
  box-shadow: var(--shadow);
}

.authIntro h1 {
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
}

.oauthBox {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.authCards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.authCard {
  padding: 24px;
}

.chatLayout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  width: min(1280px, calc(100% - 36px));
  margin: 28px auto;
}

.chatSide,
.chatRoom {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 21, 32, .08);
}

.chatSide {
  padding: 20px;
}

.chatSide img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 8px;
}

.chatSide h2 {
  margin: 18px 0 8px;
  font-size: 34px;
}

.chatSide p {
  color: var(--muted);
  line-height: 1.5;
}

.backLink {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 900;
}

.balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
}

.balance b {
  color: var(--violet);
  font-size: 34px;
}

.balance span {
  color: var(--muted);
  font-weight: 900;
}

.chatRoom {
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr) auto;
  min-height: 740px;
  overflow: hidden;
}

.chatTop {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.chatTop b {
  display: block;
  font-size: 20px;
}

.chatTop span:not(.onlineBadge) {
  color: var(--muted);
  font-size: 13px;
}

.onlineBadge.static {
  position: static;
}

.messageList {
  padding: 22px;
  overflow: auto;
  background: linear-gradient(180deg, #f8fbff, #eef3fa);
}

.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.checkoutShell {
  width: min(1080px, calc(100% - 40px));
  margin: 40px auto;
}

.checkoutCard {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  padding: 28px;
}

.checkoutCard aside {
  padding: 22px;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
}

.checkoutCard aside small {
  color: rgba(255, 255, 255, .68);
  font-weight: 900;
}

.checkoutCard aside b {
  display: block;
  margin: 8px 0 22px;
  font-size: 42px;
}

.dashboardShell .pageHero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tablePanel {
  margin: 20px 0;
  overflow: hidden;
}

.tablePanel h2 {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #e8edf4;
  text-align: left;
  vertical-align: top;
}

th {
  color: #526075;
  background: #f1f5fb;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.adminShell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 80px);
}

.adminNav {
  position: sticky;
  top: 79px;
  height: calc(100vh - 79px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  color: #fff;
  background: var(--deep);
}

.adminNav b {
  margin-bottom: 14px;
  font-size: 20px;
}

.adminNav a {
  color: rgba(255, 255, 255, .78);
}

.adminMain {
  padding: 26px;
}

.metricGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metricGrid > div {
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 21, 32, .08);
}

.metricGrid b {
  display: block;
  color: var(--violet);
  font-size: 36px;
}

.metricGrid span {
  color: var(--muted);
  font-weight: 900;
}

.siteFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding: 26px 34px;
  color: rgba(255, 255, 255, .76);
  background: var(--deep);
}

.siteFooter b {
  display: block;
  color: #fff;
}

.siteFooter span {
  display: block;
  margin-top: 4px;
  max-width: 780px;
  line-height: 1.45;
}

.siteFooter nav {
  display: flex;
  gap: 16px;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: 360px;
  padding: 14px 16px;
  color: #fff;
  border-radius: 8px;
  background: var(--deep);
  box-shadow: var(--shadow);
  font-weight: 800;
}

@media (max-width: 1120px) {
  .siteHeader {
    grid-template-columns: auto auto 1fr;
  }

  .navToggle {
    display: block;
  }

  .mainNav {
    position: absolute;
    top: 78px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .mainNav.is-open {
    display: flex;
  }

  .headerActions {
    justify-self: end;
  }

  .heroPro,
  .profileDetail,
  .authShell,
  .chatLayout,
  .checkoutCard,
  .splitBlock,
  .adminShell {
    grid-template-columns: 1fr;
  }

  .heroCopy,
  .heroDevice,
  .portraitPanel,
  .portraitPanel img {
    min-height: auto;
  }

  .profileGrid,
  .profileGrid.wide,
  .packageGrid,
  .metricGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .adminNav {
    position: static;
    height: auto;
  }
}

@media (max-width: 720px) {
  .siteHeader {
    padding: 12px 14px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .agePill,
  .headerActions .btn.ghost {
    display: none;
  }

  .homeShell,
  .pageShell,
  .dashboardShell,
  .profileDetail,
  .authShell,
  .chatLayout,
  .checkoutShell {
    width: min(100% - 22px, 100%);
  }

  .heroPro {
    padding-top: 18px;
  }

  .heroCopy,
  .pageHero,
  .detailPanel,
  .sectionBlock {
    padding: 22px;
  }

  .heroCopy h1,
  .pageHero h1,
  .detailPanel h1 {
    font-size: 42px;
  }

  .heroCopy p,
  .pageHero p,
  .detailPanel p,
  .authIntro p,
  .splitBlock p {
    font-size: 16px;
  }

  .trustGrid,
  .panelStrip,
  .featureGrid,
  .profileGrid,
  .profileGrid.wide,
  .packageGrid,
  .steps,
  .detailStats,
  .authCards,
  .metricGrid {
    grid-template-columns: 1fr;
  }

  .sectionTitle,
  .dashboardShell .pageHero,
  .siteFooter {
    display: block;
  }

  .sectionTitle a {
    display: inline-block;
    margin-top: 12px;
  }

  .profileCard,
  .profileCard img {
    min-height: 380px;
  }

  .chatRoom {
    min-height: 620px;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 12px 10px;
    font-size: 13px;
  }

  .siteFooter nav {
    margin-top: 14px;
  }
}
