@font-face {
  font-family: "Manrope Local";
  src: url("assets/fonts/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded Local";
  src: url("assets/fonts/unbounded.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --paper: #f4f6fb;
  --paper-deep: #e9edf6;
  --ink: #101628;
  --muted: #737b92;
  --violet: #6758f3;
  --violet-deep: #4d3ed0;
  --aqua: #24bcae;
  --sky: #38bdf8;
  --night: #0c1424;
  --night-soft: #121d31;
  --line: #dce1ed;
  --rose: #e25369;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(103, 88, 243, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(103, 88, 243, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  color: var(--ink);
  font-family: "Manrope Local", "Segoe UI", sans-serif;
}

button, input { font: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.5);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.site-shell { min-height: 100vh; overflow: hidden; }

.signal-rail {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 10px;
  flex-direction: column;
  gap: 4px;
  background: var(--night);
  padding: 4px 2px;
}

.signal-rail span {
  flex: 1;
  border-radius: 8px;
  background: var(--violet);
  opacity: 0.22;
  animation: signal 2.8s ease-in-out infinite;
}
.signal-rail span:nth-child(2) { animation-delay: .25s; }
.signal-rail span:nth-child(3) { animation-delay: .5s; }
.signal-rail span:nth-child(4) { animation-delay: .75s; }
.signal-rail span:nth-child(5) { animation-delay: 1s; }

@keyframes signal {
  0%, 72%, 100% { opacity: .18; }
  20% { background: var(--aqua); opacity: 1; }
}

.hero {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 42px clamp(26px, 5vw, 78px) 72px;
}

.hero::after {
  position: absolute;
  right: -220px;
  bottom: -210px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(103, 88, 243, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(103, 88, 243, .045), 0 0 0 110px rgba(103, 88, 243, .025);
  content: "";
  pointer-events: none;
}

.brand-row, .section-heading, .card-head, .card-foot, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-pill {
  border-radius: 999px;
  background: #e9e5ff;
  color: var(--violet-deep);
  font-family: "Unbounded Local", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  padding: 11px 16px;
  text-decoration: none;
}

.live-link {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-link i, .phone-name > i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9aa3b6;
}

.live-link.online i {
  background: var(--aqua);
  box-shadow: 0 0 0 7px rgba(36, 188, 174, .12);
  animation: live-pulse 1.7s ease-out infinite;
}

.live-link.connecting i {
  background: var(--sky);
  animation: live-pulse 1s ease-out infinite;
}

.live-link.offline i { background: var(--rose); }

@keyframes live-pulse { 50% { box-shadow: 0 0 0 12px rgba(36, 188, 174, 0); } }

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin-top: 82px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--violet-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
}

.hero h1 {
  max-width: 1050px;
  margin: 0;
  font-family: "Unbounded Local", sans-serif;
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 2px var(--violet);
}

.hero-description {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
}

.connect-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 180px minmax(420px, 1fr) minmax(260px, auto);
  align-items: center;
  gap: 20px;
  margin-top: 58px;
  border: 1px solid rgba(103, 88, 243, .2);
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 24px 80px rgba(26, 34, 62, .08);
  padding: 20px;
  backdrop-filter: blur(18px);
}

.connect-panel > label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.connect-row { display: flex; gap: 10px; }
.connect-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: .06em;
  padding: 15px 17px;
  text-transform: uppercase;
}
.connect-row input::placeholder { color: #adb4c4; }

.primary-button, .secondary-button, .fullscreen-button {
  border-radius: 15px;
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
}
.primary-button, .secondary-button { min-width: 150px; padding: 0 22px; }
.primary-button {
  border: 0;
  background: var(--violet);
  box-shadow: 0 10px 28px rgba(103, 88, 243, .25);
  color: #fff;
}
.primary-button:hover { background: var(--violet-deep); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.secondary-button { border: 1px solid var(--line); background: #fff; color: var(--ink); }

.connection-note { display: grid; gap: 4px; padding: 0 10px; }
.connection-note span { color: var(--ink); font-size: 13px; font-weight: 700; }
.connection-note small { color: var(--muted); font-size: 11px; }

.stream-section {
  position: relative;
  z-index: 3;
  min-height: 620px;
  border-top: 1px solid var(--line);
  background: rgba(233, 237, 246, .84);
  padding: 68px clamp(26px, 5vw, 78px) 90px;
}
.stream-section > * { max-width: 1284px; margin-right: auto; margin-left: auto; }
.section-heading h2 {
  margin: 0;
  font-family: "Unbounded Local", sans-serif;
  font-size: clamp(28px, 4vw, 47px);
  letter-spacing: -.04em;
}

.active-counter {
  display: flex;
  align-items: center;
  gap: 13px;
  border-left: 1px solid #ccd3e2;
  padding-left: 24px;
}
.active-counter span {
  color: var(--violet);
  font-family: "Unbounded Local", sans-serif;
  font-size: 38px;
  font-weight: 650;
  line-height: 1;
}
.active-counter small {
  width: 74px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
  text-transform: uppercase;
}

.empty-state {
  display: grid;
  min-height: 390px;
  place-items: center;
  margin-top: 40px;
  border: 1px dashed #bec6d8;
  border-radius: 32px;
  background: rgba(255, 255, 255, .5);
  padding: 50px 24px;
  text-align: center;
}
.empty-state h3 { margin: 22px 0 8px; font-family: "Unbounded Local", sans-serif; font-size: 24px; }
.empty-state p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.6; }
.empty-signal { display: flex; height: 44px; align-items: flex-end; gap: 7px; }
.empty-signal i {
  display: block;
  width: 10px;
  border-radius: 8px;
  background: var(--violet);
  animation: bars 1.2s ease-in-out infinite alternate;
}
.empty-signal i:nth-child(1) { height: 18px; }
.empty-signal i:nth-child(2) { height: 31px; animation-delay: .2s; }
.empty-signal i:nth-child(3) { height: 44px; animation-delay: .4s; }
@keyframes bars { to { height: 12px; opacity: .35; } }

.stream-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}
.stream-card {
  overflow: hidden;
  border: 1px solid #23304a;
  border-radius: 28px;
  background: var(--night);
  box-shadow: 0 22px 60px rgba(12, 20, 36, .14);
  color: #fff;
}
.stream-card.disconnected { filter: saturate(.35); opacity: .72; }
.card-head { min-height: 92px; padding: 18px 22px; }
.phone-name { display: flex; align-items: center; gap: 13px; }
.phone-name > i { background: var(--sky); }
.phone-name h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.phone-name small, .card-foot small { color: #8490a7; font-size: 11px; }
.card-status { display: flex; align-items: center; gap: 12px; }
.card-status span { color: #58e4d1; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.disconnected .card-status span { color: #a7afbf; }
.card-status time {
  border-radius: 999px;
  background: #1a2940;
  color: #87d9fa;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
}

.stream-stage {
  position: relative;
  display: grid;
  min-height: clamp(290px, 37vw, 500px);
  place-items: center;
  overflow: hidden;
  background: #030509;
}
.stream-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}
.stream-stage canvas.ready { opacity: 1; }
.waiting-frame { display: grid; place-items: center; gap: 20px; color: #8c95a9; font-size: 13px; }
.scanner {
  width: 54px;
  height: 54px;
  border: 3px solid #20283a;
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fullscreen-button {
  position: absolute;
  right: 17px;
  bottom: 17px;
  border: 1px solid #414c63;
  background: rgba(20, 27, 45, .9);
  color: #fff;
  padding: 12px 15px;
  backdrop-filter: blur(12px);
}
.fullscreen-button:hover { border-color: #8b80ff; }
.fullscreen-button:disabled { cursor: not-allowed; opacity: .35; }
.stream-card:fullscreen {
  display: grid;
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  grid-template-rows: auto 1fr auto;
}
.stream-card:fullscreen .stream-stage { min-height: 0; }
.card-foot { min-height: 86px; gap: 20px; background: var(--night-soft); padding: 17px 22px; }
.card-foot > div { display: grid; gap: 4px; }
.card-foot span { color: #9ca7ba; font-size: 13px; }
.card-foot strong { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 15px; }

footer { max-width: 1440px; margin: 0 auto; gap: 24px; padding: 28px clamp(26px, 5vw, 78px) 38px; }
footer span { color: var(--violet-deep); font-family: "Unbounded Local", sans-serif; font-weight: 650; }
footer p { margin: 0; color: var(--muted); font-size: 12px; }

@media (max-width: 980px) {
  .connect-panel { grid-template-columns: 1fr; }
  .connection-note { padding: 0; }
  .stream-grid { grid-template-columns: 1fr; }
  .stream-stage { min-height: min(70vw, 520px); }
}

@media (max-width: 620px) {
  .hero { padding-top: 26px; padding-bottom: 48px; }
  .hero-copy { margin-top: 56px; }
  .hero h1 span { -webkit-text-stroke-width: 1.3px; }
  .connect-row { flex-direction: column; }
  .primary-button, .secondary-button { min-height: 52px; }
  .section-heading { align-items: flex-end; }
  .active-counter { padding-left: 14px; }
  .active-counter small { display: none; }
  .card-head { align-items: flex-start; }
  .card-status { align-items: flex-end; flex-direction: column; gap: 7px; }
  .stream-stage { min-height: 480px; }
  .card-foot { align-items: flex-end; }
  footer { align-items: flex-start; flex-direction: column; }
}

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

/* Account landing and authentication layer. */
.landing-shell { padding: 34px clamp(26px, 7vw, 110px) 0; }
.landing-nav { display:flex; align-items:center; justify-content:space-between; max-width:1240px; margin:0 auto; }
.nav-login,.account-strip button,.text-button,.auth-switch { border:0; background:transparent; color:var(--ink); cursor:pointer; font-weight:800; }
.nav-login { border-bottom:2px solid var(--violet); padding:8px 0; }
.landing-hero { max-width:1240px; min-height:530px; margin:0 auto; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(330px,.8fr); align-items:center; gap:clamp(34px,8vw,130px); }
.landing-copy h1 { margin:14px 0 22px; max-width:780px; color:var(--night); font-family:"Unbounded Local",sans-serif; font-size:clamp(2.55rem,6.2vw,5.45rem); font-weight:800; letter-spacing:-.085em; line-height:.97; }
.landing-copy h1 span { color:var(--violet); }.landing-copy > p:not(.eyebrow) { max-width:570px; margin:0; color:var(--muted); font-size:1.08rem; line-height:1.72; }
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:20px; margin-top:30px; }.text-button { padding:10px 0; color:var(--violet); }
.route-card { position:relative; overflow:hidden; border:1px solid rgba(103,88,243,.25); border-radius:26px; padding:26px; color:white; background:var(--night); box-shadow:18px 22px 0 rgba(103,88,243,.14); }.route-card::after { content:""; position:absolute; width:160px; height:160px; right:-80px; bottom:-85px; border:24px solid var(--aqua); border-radius:50%; opacity:.18; }
.route-card-head { display:flex; align-items:center; justify-content:space-between; padding-bottom:22px; border-bottom:1px solid rgba(255,255,255,.15); font-size:.7rem; font-weight:900; letter-spacing:.1em; }.route-card-head i { color:var(--aqua); font-style:normal; }
.route-line { position:relative; display:grid; grid-template-columns:43px 1fr; align-items:center; gap:13px; min-height:76px; border-bottom:1px solid rgba(255,255,255,.1); color:#aab5cf; font-weight:700; }.route-line:last-child { border:0; }.route-line b { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#24304a; color:#cfd7ea; font-size:.68rem; }.route-line.active { color:white; }.route-line.active b { background:var(--violet); color:white; box-shadow:0 0 0 7px rgba(103,88,243,.2); }
.how-section,.plans-section { max-width:1240px; margin:0 auto; padding:98px 0 0; }.section-intro h2 { max-width:650px; margin:11px 0 0; color:var(--night); font-family:"Unbounded Local",sans-serif; font-size:clamp(1.55rem,3.2vw,2.65rem); letter-spacing:-.06em; line-height:1.18; }
.how-list { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:40px 0 0; padding:0; list-style:none; }.how-list li { border-top:2px solid var(--ink); padding:20px 12px 0 0; }.how-list li > span { display:block; margin-bottom:25px; color:var(--violet); font-family:"Unbounded Local",sans-serif; font-size:1.4rem; font-weight:800; }.how-list h3 { margin:0 0 10px; font-size:1.05rem; }.how-list p { margin:0; color:var(--muted); line-height:1.55; }
.pricing-note { max-width:570px; margin:18px 0 0; color:var(--muted); line-height:1.5; }.plan-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:38px; }.plan-card { min-height:270px; display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; padding:26px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.72); }.plan-card.featured { border:2px solid var(--violet); transform:translateY(-10px); background:linear-gradient(145deg,#f2f0ff,#fff); box-shadow:0 15px 35px rgba(103,88,243,.14); }.plan-card p { margin:0; color:var(--muted); font-size:.72rem; font-weight:900; letter-spacing:.1em; }.plan-card strong { display:block; color:var(--night); font-family:"Unbounded Local",sans-serif; font-size:2.25rem; letter-spacing:-.08em; }.plan-card strong small { font-size:1rem; }.plan-card > span { color:var(--muted); font-size:.92rem; }.plan-card button { width:100%; margin-top:24px; border:0; border-radius:10px; padding:13px; background:var(--night); color:white; cursor:pointer; font-weight:800; }.plan-card.featured button { background:var(--violet); }
.dashboard-shell .brand-row { gap:15px; }.account-strip { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-left:auto; font-size:.78rem; }.account-strip > span:first-child { font-weight:900; }.account-plan { border-radius:999px; padding:5px 9px; background:#ebe9ff; color:var(--violet-deep); font-weight:800; }.account-strip button { color:var(--muted); font-size:.76rem; }.dashboard-shell .live-link { margin-left:8px; }
.auth-overlay { position:fixed; z-index:100; inset:0; display:grid; place-items:center; padding:24px; background:rgba(12,20,36,.7); backdrop-filter:blur(8px); }.auth-card { position:relative; width:min(100%,470px); max-height:calc(100vh - 48px); overflow:auto; padding:34px; border-radius:22px; background:var(--paper); box-shadow:0 30px 85px rgba(0,0,0,.32); }.auth-card h2 { margin:10px 0 12px; color:var(--night); font-family:"Unbounded Local",sans-serif; font-size:1.65rem; letter-spacing:-.06em; line-height:1.2; }.auth-description { margin:0; color:var(--muted); line-height:1.55; }.modal-close { position:absolute; top:16px; right:16px; width:32px; height:32px; border:0; border-radius:50%; background:#e6eaf3; color:var(--ink); cursor:pointer; font-size:1.5rem; line-height:1; }.selected-plan { margin:22px 0; padding:12px 14px; border-left:3px solid var(--aqua); background:#eafaf7; color:var(--night); font-weight:900; }.selected-plan span { display:block; margin-top:3px; color:#4d7b75; font-size:.75rem; font-weight:700; }.auth-card form { display:grid; gap:15px; }.auth-card label { display:grid; gap:7px; color:var(--ink); font-size:.82rem; font-weight:800; }.auth-card input { width:100%; border:1px solid #cbd2e0; border-radius:10px; padding:13px 14px; background:white; color:var(--night); }.auth-submit { width:100%; justify-content:center; margin-top:4px; }.form-message { min-height:1.3em; margin:15px 0 0; color:var(--rose); font-size:.85rem; font-weight:700; }.form-message.success { color:#167b71; }.auth-switch { display:block; margin:17px auto 0; color:var(--violet); font-size:.84rem; }
@media (max-width:800px) { .landing-shell{padding:25px 25px 0}.landing-hero{grid-template-columns:1fr;min-height:auto;padding:64px 0 30px}.route-card{max-width:550px}.how-list,.plan-grid{grid-template-columns:1fr}.how-list{gap:32px}.plan-card{min-height:210px}.plan-card.featured{transform:none;order:-1}.how-section,.plans-section{padding-top:68px}.dashboard-shell .brand-row{align-items:flex-start}.account-strip{order:3;width:100%;margin-left:0}.dashboard-shell .live-link{margin-left:auto} }
@media (max-width:520px) { .landing-copy h1{font-size:2.6rem}.landing-nav{gap:18px}.route-card{padding:20px}.auth-overlay{padding:12px}.auth-card{padding:27px 22px}.dashboard-shell .live-link{font-size:.68rem}.account-strip{font-size:.7rem}.hero-actions{align-items:flex-start;flex-direction:column;gap:8px} }

.admin-section { max-width:1440px; margin:0 auto; padding:52px clamp(26px,5vw,78px) 12px; }
.admin-heading { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:end; gap:20px; padding-bottom:22px; border-bottom:2px solid var(--night); }
.admin-heading h2 { margin:8px 0 0; font-family:"Unbounded Local",sans-serif; font-size:clamp(1.35rem,2.5vw,2rem); letter-spacing:-.055em; }
.admin-total { display:flex; align-items:end; gap:8px; color:var(--muted); }.admin-total strong { color:var(--violet); font-family:"Unbounded Local",sans-serif; font-size:2rem; line-height:1; }.admin-total span { max-width:75px; font-size:.68rem; line-height:1.15; }
.admin-notice { margin:15px 0 22px; color:var(--muted); font-size:.82rem; }.admin-users { display:grid; gap:8px; }
.admin-user { display:grid; grid-template-columns:minmax(150px,1.4fr) minmax(115px,.7fr) minmax(120px,.8fr) minmax(110px,.7fr) auto; align-items:center; gap:16px; min-height:64px; padding:12px 15px; border:1px solid var(--line); border-left:4px solid var(--aqua); border-radius:10px; background:rgba(255,255,255,.75); }
.admin-user.is-admin { border-left-color:var(--violet); background:#f0eeff; }.admin-user-name { min-width:0; }.admin-user-name strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.admin-user-name small,.admin-user-meta small { display:block; margin-top:3px; color:var(--muted); font-size:.68rem; }.admin-role { width:max-content; border-radius:999px; padding:5px 8px; background:#e6f8f5; color:#167b71; font-size:.68rem; font-weight:900; text-transform:uppercase; }.admin-user.is-admin .admin-role { background:#ded9ff; color:var(--violet-deep); }.admin-delete { border:1px solid #edc4cb; border-radius:8px; padding:8px 11px; background:#fff6f7; color:#b72e45; cursor:pointer; font-size:.74rem; font-weight:800; }.admin-delete:disabled { cursor:not-allowed; opacity:.42; }.admin-message { min-height:1.2em; margin:14px 0 0; color:var(--rose); font-size:.8rem; font-weight:700; }.admin-message.success { color:#167b71; }
@media (max-width:850px) { .admin-heading { grid-template-columns:1fr auto; }.admin-heading .secondary-button { grid-column:1/-1; justify-self:start; }.admin-user { grid-template-columns:1fr 1fr auto; }.admin-user-meta.created { display:none; }.admin-delete { grid-row:1/3; grid-column:3; } }
@media (max-width:560px) { .admin-user { grid-template-columns:1fr auto; gap:10px; }.admin-user-meta { display:none; }.admin-delete { grid-row:auto; grid-column:auto; }.admin-heading { align-items:start; }.admin-total span { display:none; } }
