/* ============================================================
   Web app — UI components inside browser viewport
   ============================================================ */

.w-app {
  position: absolute; inset: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  display: flex; flex-direction: column;
}

/* Top nav bar */
.w-nav {
  display: flex; align-items: center;
  padding: 0 32px;
  height: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(10,13,16,0.85);
  backdrop-filter: blur(20px);
  flex-shrink: 0;
  gap: 32px;
}
.w-nav .brand {
  font-family: var(--sans); font-weight: 600; font-size: 17px;
  letter-spacing: -0.02em;
}
.w-nav .brand em { font-family: var(--serif); font-style: italic; color: var(--coral); font-weight: 400; margin-left: 1px; }

.w-nav .navlinks { display: flex; gap: 22px; align-items: center; flex: 1; }
.w-nav .navlinks a {
  font-size: 13px; color: rgba(255,255,255,0.65); text-decoration: none;
}
.w-nav .navlinks a.active { color: #fff; }

.w-nav .modeswitch {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 3px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
}
.w-nav .modeswitch button {
  height: 26px; padding: 0 12px;
  background: transparent; border: 0; color: rgba(255,255,255,0.55);
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  border-radius: 6px;
  cursor: pointer;
}
.w-nav .modeswitch button.on { background: var(--coral); color: #0a0d10; }
.w-nav .modeswitch button.on.sports { background: var(--pacific); color: #fff; }

.w-nav .actions { display: flex; gap: 18px; align-items: center; color: rgba(255,255,255,0.7); }
.w-nav .actions svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.w-nav .actions .av {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), #4a2418);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 13px; color: #fff;
}

/* Wallet strip — secondary nav row in Lifestyle */
.w-wallet {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
}
.w-wallet .group { display: flex; gap: 28px; }
.w-wallet .group span b { color: #fff; font-weight: 500; }
.w-wallet .actions { display: flex; gap: 18px; }
.w-wallet .actions a { color: var(--coral); text-decoration: none; }

/* Page body */
.w-body { flex: 1; overflow: hidden; min-height: 0; }
.w-pad { padding: 24px 32px 32px; }

/* Hero (web) */
.w-hero {
  position: relative;
  height: 360px;
  margin: 24px 32px 32px;
  border-radius: 16px;
  overflow: hidden;
}
.w-hero .meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.w-hero .meta-l { display: flex; flex-direction: column; gap: 10px; max-width: 65%; }
.w-hero .tag {
  align-self: flex-start;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #fff; padding: 5px 9px;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 999px;
  background: rgba(0,0,0,0.25); backdrop-filter: blur(8px);
}
.w-hero h2 { font-family: var(--serif); font-size: 48px; line-height: 1.05; font-weight: 400; margin: 0; letter-spacing: -0.02em; color: #fff; }
.w-hero h2 em { font-style: italic; color: var(--coral-2); }
.w-hero .sub { font-size: 13px; color: rgba(255,255,255,0.7); max-width: 60ch; }
.w-hero .cta-row { display: flex; gap: 10px; margin-top: 6px; }
.w-hero .cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 18px;
  background: #fff; color: #0a0d10; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.w-hero .cta.ghost { background: rgba(255,255,255,0.1); color: #fff; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); }
.w-hero .meta-r { display: flex; gap: 8px; }
.w-hero .meta-r .pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.w-hero .meta-r .pip.on { background: #fff; width: 26px; border-radius: 4px; }

/* Section header */
.w-secthead {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 28px 32px 16px;
}
.w-secthead .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral); }
.w-secthead.sports .lbl { color: var(--pacific-2); }
.w-secthead h3 { font-family: var(--sans); font-weight: 500; font-size: 24px; margin: 4px 0 0; letter-spacing: -0.015em; line-height: 1.05; }
.w-secthead .right { display: flex; gap: 14px; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

/* Card rail */
.w-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 14px; padding: 0 32px 24px; overflow: hidden; }
.w-rail .card { display: flex; flex-direction: column; gap: 8px; }
.w-rail .card .thumb { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; position: relative; }
.w-rail .card .ttl { font-size: 13px; font-weight: 500; line-height: 1.25; }
.w-rail .card .sub { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; text-transform: uppercase; }
.w-rail .card .meta-row { display: flex; justify-content: space-between; align-items: baseline; }
.w-rail .card .price { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--cream); }

/* Card grid */
.w-grid { display: grid; gap: 14px; padding: 0 32px 24px; }
.w-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.w-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.w-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.w-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

.w-tile { display: flex; flex-direction: column; gap: 8px; }
.w-tile .thumb { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; position: relative; }
.w-tile .thumb.tall { aspect-ratio: 3/4; }
.w-tile .ttl { font-size: 13px; font-weight: 500; line-height: 1.25; }
.w-tile .sub { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; text-transform: uppercase; }
.w-tile .row { display: flex; justify-content: space-between; align-items: baseline; }
.w-tile .price { font-family: var(--mono); font-size: 12px; font-weight: 600; }

/* Sport chips (web) */
.w-chips { display: flex; gap: 8px; padding: 0 32px 20px; }
.w-chips .chip {
  height: 32px; padding: 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}
.w-chips .chip.active { color: #0a0d10; background: var(--cream); border-color: var(--cream); }

/* Schedule table */
.w-table {
  margin: 0 32px 24px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.w-table .head {
  display: grid; grid-template-columns: 90px 1fr 1fr 90px 110px 100px;
  padding: 12px 18px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.w-table .row {
  display: grid; grid-template-columns: 90px 1fr 1fr 90px 110px 100px;
  padding: 14px 18px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
}
.w-table .row:last-child { border-bottom: 0; }
.w-table .row .time { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.7); }
.w-table .row .team { display: flex; gap: 8px; align-items: center; }
.w-table .row .crest { width: 22px; height: 22px; border-radius: 4px; display: grid; place-items: center; font-family: var(--mono); font-size: 9px; font-weight: 600; background: rgba(255,255,255,0.08); }
.w-table .row .price { font-family: var(--mono); font-size: 12px; }
.w-table .row .comp { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); text-transform: uppercase; }
.w-table .row .action {
  height: 28px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: #fff;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
}
.w-table .row .action.primary { background: var(--coral); color: #0a0d10; }
.w-table .row .action.sports { background: var(--pacific); color: #fff; }

/* Live now strip — top of page */
.w-livestrip {
  display: flex; gap: 18px;
  padding: 12px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.w-livestrip .item { display: flex; gap: 8px; align-items: center; color: rgba(255,255,255,0.7); flex-shrink: 0; }
.w-livestrip .live { color: var(--signal); display: inline-flex; align-items: center; gap: 5px; }
.w-livestrip .live::before { content:''; width:6px; height:6px; border-radius:50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(218,60,60,0.2); }

/* Sidebar layouts (e.g. eSIM detail) */
.w-twocol { display: grid; grid-template-columns: 1fr 380px; gap: 24px; padding: 24px 32px; height: 100%; min-height: 0; }
.w-twocol .left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.w-twocol .right { display: flex; flex-direction: column; gap: 14px; }

/* eSIM plan card (web) */
.w-esim {
  border-radius: 12px;
  background: linear-gradient(135deg, #1a3a5a 0%, #0e1a2c 100%);
  border: 1px solid rgba(110,168,223,0.18);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  overflow: hidden;
}
.w-esim::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(110,168,223,0.3), transparent 70%);
  filter: blur(20px);
}
.w-esim .name { font-family: var(--serif); font-size: 24px; font-style: italic; }
.w-esim .row { display: flex; justify-content: space-between; align-items: baseline; }
.w-esim .data { font-family: var(--mono); font-size: 14px; }
.w-esim .price { font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--pacific-2); }

/* Subscription plan grid (web) */
.w-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 24px 32px; }
.w-plans .plan {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 0;
}
.w-plans .plan.featured { background: linear-gradient(180deg, rgba(232,153,112,0.08), rgba(232,153,112,0.02)); border-color: rgba(232,153,112,0.3); }
.w-plans .plan h4 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.005em; }
.w-plans .plan .pill { align-self: flex-start; color: var(--coral); border-color: rgba(232,153,112,0.3); }
.w-plans .plan .price { font-family: var(--mono); font-weight: 600; font-size: 36px; line-height: 1; letter-spacing: -0.01em; }
.w-plans .plan .price small { font-family: var(--sans); font-weight: 400; font-size: 12px; color: rgba(255,255,255,0.5); margin-left: 4px; }
.w-plans .plan .desc { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.45; }
.w-plans .plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.75); }
.w-plans .plan ul li::before { content: '✓'; color: var(--coral); margin-right: 8px; }
.w-plans .plan .pick {
  margin-top: auto;
  height: 36px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.w-plans .plan.featured .pick { background: var(--coral); color: #0a0d10; }

/* Shop card (product) */
.w-product { display: flex; flex-direction: column; gap: 8px; }
.w-product .thumb { aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; position: relative; }
.w-product .meta { display: flex; justify-content: space-between; align-items: baseline; }
.w-product .ttl { font-size: 12px; font-weight: 500; }
.w-product .sub { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.w-product .price { font-family: var(--mono); font-size: 12px; font-weight: 600; }

/* Now-playing strip (bottom dock — radio mini player) */
.w-dock {
  height: 56px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(15,18,22,0.9);
  display: grid; grid-template-columns: 40px 1fr auto 1fr 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 0 24px;
  flex-shrink: 0;
}
.w-dock .art { width: 40px; height: 40px; border-radius: 6px; }
.w-dock .meta { min-width: 0; }
.w-dock .ttl { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-dock .sub { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.55); }
.w-dock .controls { display: flex; gap: 18px; align-items: center; color: #fff; }
.w-dock .controls svg { width: 16px; height: 16px; fill: #fff; }
.w-dock .scrub { height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; position: relative; }
.w-dock .scrub::after { content:''; position:absolute; left:0; top:0; height:100%; width:48%; background: var(--coral); border-radius: 2px; }
.w-dock .live { font-family: var(--mono); font-size: 10px; color: var(--signal); letter-spacing: 0.14em; }

/* Mode chooser (web) */
.w-modechooser {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 64px;
  background:
    radial-gradient(60% 60% at 70% 20%, rgba(232,153,112,0.08), transparent 70%),
    radial-gradient(50% 50% at 20% 80%, rgba(78,143,204,0.08), transparent 70%),
    var(--ink);
  text-align: center;
}
.w-modechooser h1 {
  font-family: var(--serif); font-weight: 400; font-size: 80px;
  letter-spacing: -0.03em; line-height: 1.0;
  margin: 0 0 14px;
}
.w-modechooser h1 em { font-style: italic; color: var(--coral); }
.w-modechooser p { font-size: 16px; color: rgba(255,255,255,0.65); max-width: 60ch; margin: 0 0 48px; }
.w-modechooser .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 800px; max-width: 100%; }
.w-modechooser .opt {
  height: 240px; border-radius: 16px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px;
  text-align: left;
}
.w-modechooser .opt.bula { background: linear-gradient(135deg, #3a1d11 0%, #6b3a1f 100%); }
.w-modechooser .opt.sports { background: linear-gradient(135deg, #102236 0%, #1b3a5e 100%); }
.w-modechooser .opt .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.w-modechooser .opt .ttl { font-family: var(--serif); font-size: 36px; font-style: italic; }
.w-modechooser .opt .desc { font-size: 12px; color: rgba(255,255,255,0.7); max-width: 36ch; }

/* AI assistant (web) — side panel */
.w-aipanel {
  position: absolute; right: 24px; top: 24px; bottom: 24px;
  width: 380px;
  background: linear-gradient(180deg, #181d23 0%, #12161B 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  z-index: 50;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.w-aipanel .head { display: flex; align-items: center; justify-content: space-between; }
.w-aipanel .head .lbl {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral);
}
.w-aipanel h4 { font-family: var(--serif); font-size: 28px; font-style: italic; font-weight: 400; margin: 0; line-height: 1.05; }
.w-aipanel .msg {
  background: rgba(232,153,112,0.06);
  border: 1px solid rgba(232,153,112,0.18);
  padding: 14px; border-radius: 12px;
  font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,0.9);
}
.w-aipanel .msg b { color: var(--coral); }
.w-aipanel .user {
  align-self: flex-end;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 14px; border-radius: 12px;
  font-size: 12.5px; max-width: 80%;
}
.w-aipanel .input {
  margin-top: auto;
  display: flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.w-aipanel .suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.w-aipanel .suggest .chip {
  font-size: 11px; padding: 6px 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
}

/* Destination mosaic */
.w-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 14px;
  padding: 0 32px 24px;
}
.w-mosaic .cell { border-radius: 12px; overflow: hidden; position: relative; }
.w-mosaic .cell.big { grid-row: span 2; }
.w-mosaic .cell .lbl {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--serif); font-style: italic; font-size: 22px; color: #fff;
}
.w-mosaic .cell .sub {
  position: absolute; left: 14px; bottom: 40px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

/* Channel grid (live) */
.w-channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0 32px 24px; }
.w-channels .ch {
  border-radius: 12px; overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
}
.w-channels .ch .thumb { aspect-ratio: 16/9; }
.w-channels .ch .body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.w-channels .ch .ttl { font-size: 13px; font-weight: 500; }
.w-channels .ch .sub { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; text-transform: uppercase; }
.w-channels .ch .row { display: flex; justify-content: space-between; align-items: center; }
.w-channels .ch .viewers { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.55); }

/* Reels grid */
.w-reels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 0 32px 24px; }
.w-reels .reel { aspect-ratio: 9/14; border-radius: 10px; position: relative; overflow: hidden; }
.w-reels .reel .ttl { position: absolute; left: 8px; right: 8px; bottom: 8px; font-size: 11px; line-height: 1.2; }

/* Compact browser for two-up slides */
.browser.compact {
  --bw: 860px;
  --bh: 540px;
  box-shadow:
    0 0 0 1px #1a1f25,
    0 20px 50px -15px rgba(0,0,0,0.6);
}
.browser.compact .titlebar { height: 36px; padding: 0 12px; }
.browser.compact .lights i { width: 10px; height: 10px; }
.browser.compact .url { height: 24px; font-size: 11px; padding: 4px 10px; max-width: 360px; }

/* Web reels (smaller for compact view) */
