/* ============================================================
   NOAH W FOOTBALL — TRANSFER HUB
   Public stylesheet · Bold redesign 2026
   ============================================================ */

/* ── Design tokens ────────────────────────────────────────── */
:root {
  /* Surfaces */
  --bg:          #020206;
  --surface:     #07070e;
  --surface-2:   #0b0b18;
  --card:        #0f0f1e;
  --card-hover:  #141428;
  --card-2:      #12122a;

  /* Borders */
  --border:      #1b1b32;
  --border-2:    #26264a;
  --border-glow: rgba(124, 58, 237, 0.35);

  /* Text */
  --text:        #f0f0fb;
  --text-soft:   #8888b2;
  --text-faint:  #3e3e60;

  /* Brand */
  --pink:        #e8407e;
  --purple:      #7c3aed;
  --grad:        linear-gradient(135deg, #7c3aed 0%, #e8407e 100%);
  --grad-subtle: linear-gradient(135deg, rgba(124,58,237,0.1) 0%, rgba(232,64,126,0.06) 100%);

  /* Status — vivid, with border tokens */
  --done-color:    #22c55e;
  --done-bg:       rgba(34, 197, 94, 0.13);
  --done-border:   rgba(34, 197, 94, 0.35);
  --hwg-color:     #fbbf24;
  --hwg-bg:        rgba(251, 191, 36, 0.13);
  --hwg-border:    rgba(251, 191, 36, 0.4);
  --rumour-color:  #38bdf8;
  --rumour-bg:     rgba(56, 189, 248, 0.12);
  --rumour-border: rgba(56, 189, 248, 0.35);
  --cold-color:    #64748b;
  --cold-bg:       rgba(100, 116, 139, 0.1);
  --cold-border:   rgba(100, 116, 139, 0.22);

  /* Accents */
  --gold:  #fbbf24;
  --green: #22c55e;
  --red:   #ef4444;

  /* Radii */
  --r-xs:  4px;
  --r-sm:  8px;
  --r:     14px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-2xl: 32px;

  /* Shadows */
  --shadow:    0 4px 28px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 72px rgba(0, 0, 0, 0.85);
  --glow:      0 0 60px rgba(124, 58, 237, 0.2);

  /* Typography */
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* ── App shell ────────────────────────────────────────────── */
.app-shell {
  background: var(--surface);
  min-height: 100dvh;
  position: relative;
  max-width: 100vw;
  /* clip prevents horizontal overflow without creating a scroll container,
     which preserves position:sticky on the bottom nav */
  overflow-x: clip;
}

/* ── Status bar (decorative on mobile) ───────────────────── */
.status-bar {
  height: 28px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
}

.status-bar-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

/* ── Header ───────────────────────────────────────────────── */
.h-header {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 7, 14, 0.96);
  border-bottom: 1px solid rgba(124, 58, 237, 0.22);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.h-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.h-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.h-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.h-brand-name {
  font-size: 16px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.h-brand-sub {
  font-size: 9px;
  /* Raised from var(--text-faint) for legibility — still clearly secondary */
  color: #6868a0;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 700;
}

.h-icons {
  display: flex;
  gap: 2px;
}

.h-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  border-radius: var(--r);
  transition: color 0.15s, background 0.15s;
}

.h-icons a:hover {
  color: var(--text);
  background: var(--card);
}

.h-icons i {
  font-size: 22px;
}

/* ── Story card (featured deal) ───────────────────────────────── */
.story-card {
  display: flex;
  flex-direction: row;
  min-height: 200px;
  background: var(--card);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s;
  cursor: pointer;
}

.story-card:hover {
  background: var(--card-hover);
}

/* Gradient left accent bar */
.story-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad);
  z-index: 2;
}

.story-info {
  flex: 1;
  padding: 18px 14px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.story-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.story-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
}

.story-kicker-pill i {
  font-size: 11px;
}

.story-player {
  font-family: var(--font-display);
  font-size: clamp(34px, 9.2vw, 50px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 0.92;
  text-transform: uppercase;
  margin: 0;
}

.story-route-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.story-route-from {
  color: var(--text-soft);
  font-weight: 700;
}

.story-route-arrow {
  color: var(--pink);
  font-weight: 900;
  font-size: 1.1em;
  line-height: 1;
  flex-shrink: 0;
}

.story-route-to {
  color: var(--text);
  font-weight: 800;
}

.story-datastrip {
  display: flex;
  align-items: stretch;
  gap: 5px;
  flex-wrap: wrap;
}

.story-datum {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px 9px;
  min-width: 52px;
}

.story-datum-l {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--text-faint);
  margin-bottom: 3px;
}

.story-datum-v {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1;
}

.story-datum-v.stars {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1px;
  font-family: inherit;
}

.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.story-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.story-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  /* Clearly visible pill — was near-invisible var(--text-faint) */
  color: var(--text-soft);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 5px 12px;
}

.story-card:hover .story-cta {
  color: var(--pink);
  background: rgba(232, 64, 126, 0.09);
  border-color: rgba(232, 64, 126, 0.35);
}

.story-cta i {
  font-size: 11px;
}

.story-vis {
  width: 115px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-left: 1px solid var(--border);
}

.story-vis img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Gradient bleed: left panel colour bleeds into the image */
.story-vis::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--card) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.story-card:hover .story-vis::before {
  background: linear-gradient(to right, var(--card-hover) 0%, transparent 60%);
}

/* ── Deal cards (homepage feed) ───────────────────────────────── */
.deals-feed {
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.deals-feed .empty {
  padding: 60px 20px;
}

.dc {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  min-height: 88px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
  touch-action: manipulation;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.dc:hover {
  background: var(--surface-2);
}

.dc:active {
  background: var(--card);
}

.dc-info {
  flex: 1;
  padding: 13px 12px 13px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  justify-content: center;
}

.dc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.dc-player {
  font-family: var(--font-display);
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
  line-height: 1.1;
  text-transform: uppercase;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
}

.dc-badge {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.dc-route {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.dc-from { color: var(--text-soft); font-weight: 500; }
.dc-arr  { color: var(--pink); font-weight: 700; }
.dc-to   { color: var(--text); font-weight: 600; }
.dc-route-sep { color: var(--text-faint); }
.dc-route-fee { color: var(--text-faint); font-size: 11px; }

.dc-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.dc-stars {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.dc-likelihood {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-faint);
  font-weight: 700;
}

.dc-likelihood i {
  font-size: 11px;
}

.dc-vis {
  width: 76px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dc-vis img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ── Home controls (search + filter bar) ─────────────────────── */
.home-controls {
  position: sticky;
  top: 62px;
  z-index: 30;
  background: rgba(7, 7, 14, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* ── Sidebar widgets ───────────────────────────────────────────── */
.sb-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.sb-widget-head {
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sb-widget-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sb-widget-title > i {
  font-size: 14px;
  color: var(--pink);
}

.sb-widget-link {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.15s;
  text-decoration: none;
}

.sb-widget-link:hover {
  color: var(--pink);
}

.sb-widget-body {
  padding: 14px 15px;
}

.sb-top-list {
  display: flex;
  flex-direction: column;
}

.sb-deal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.sb-deal-row:last-child {
  border-bottom: none;
}

.sb-deal-row:hover {
  background: var(--card-hover);
}

.sb-deal-stars {
  color: var(--gold);
  font-size: 10px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.sb-deal-info {
  flex: 1;
  min-width: 0;
}

.sb-deal-player {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.sb-deal-route {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-status-key {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-status-desc {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

/* ── Search bar ───────────────────────────────────────────── */
.search-bar {
  padding: 10px 18px;
}

.search-wrap {
  position: relative;
}

.search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 17px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 12px 18px 12px 44px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 48px;
  font-weight: 500;
}

.search-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(232, 64, 126, 0.14);
}

.search-input::placeholder {
  /* Raised for legibility — was var(--text-faint) = #3e3e60 */
  color: #545478;
}

/* ── Tabs (pill style) ────────────────────────────────────── */
.tabs {
  display: flex;
  padding: 0 18px 12px;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex-shrink: 0;
  font-size: 11px;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  font-weight: 800;
  background: var(--card);
  border: 1px solid var(--border);
  font-family: inherit;
  min-height: 34px;
}

.tab:hover {
  color: var(--text-soft);
  border-color: var(--border-2);
}

.tab.act {
  color: var(--text);
  background: var(--card-2);
  border-color: var(--border-glow);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.15);
}

/* ── Deal list ────────────────────────────────────────────── */
.list {
  background: var(--surface);
  padding: 0 0 8px;
}

.list-row {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.12s;
  touch-action: manipulation;
}

.list-row:hover {
  background: var(--surface-2);
}

.list-row:active {
  background: var(--card);
}

.rank {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-faint);
  min-width: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.row-main {
  flex: 1;
  min-width: 0;
}

.row-player {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.1px;
  line-height: 1.2;
}

.row-meta {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 4px;
  line-height: 1.3;
}

.row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.row-stars {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.row-status {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* ── Status colours (pill + border) ──────────────────────── */
.s-done    { background: var(--done-bg);   color: var(--done-color);   border-color: var(--done-border); }
.s-hwg     { background: var(--hwg-bg);    color: var(--hwg-color);    border-color: var(--hwg-border); }
.s-rumour  { background: var(--rumour-bg); color: var(--rumour-color); border-color: var(--rumour-border); }
.s-cold    { background: var(--cold-bg);   color: var(--cold-color);   border-color: var(--cold-border); }

/* ── Empty state ──────────────────────────────────────────── */
.empty {
  padding: 72px 24px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1.7;
}

/* ── Deal page header ─────────────────────────────────────── */
.d-header {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 7, 14, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.d-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.15s;
  background: none;
  border: none;
  padding: 6px 0;
  touch-action: manipulation;
}

.d-back:hover {
  color: var(--pink);
}

.d-back i {
  font-size: 22px;
}

.d-actions {
  display: flex;
  gap: 4px;
}

.d-action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-soft);
  border-radius: var(--r);
  transition: color 0.15s, background 0.15s;
  padding: 0;
  touch-action: manipulation;
}

.d-action-btn:hover {
  color: var(--text);
  background: var(--card);
}

.d-action-btn i {
  font-size: 22px;
}

/* ── Deal hero (rebuilt — info + integrated graphic) ─────── */
.deal-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--grad);
  display: flex;
  flex-direction: column;
}

.deal-hero.deal-hero-done {
  background: linear-gradient(140deg, #0d3820 0%, #1e6040 35%, #4a3080 70%, #7c3aed 100%);
}

.deal-hero.deal-hero-hwg {
  background: linear-gradient(140deg, #3a2200 0%, #7c4800 30%, #7c3aed 70%, #e8407e 100%);
}

.deal-hero.deal-hero-cold {
  background: linear-gradient(140deg, #131325 0%, #1e1e38 50%, #2a2a45 100%);
}

.deal-hero.deal-hero-official {
  background: linear-gradient(140deg, #0d3820 0%, #174d2c 30%, #5b2a86 65%, #d4537e 100%);
}

/* ── Info panel ───────────────────────────────────────────── */
.deal-hero-info {
  padding: 22px 20px 20px;
  position: relative;
  z-index: 2;
}

/* ── Image / vis panel (stacked below info on mobile) ─────── */
.deal-hero-vis {
  position: relative;
  width: 100%;
  height: 210px;
  flex-shrink: 0;
  overflow: hidden;
  z-index: 1;
}

/* Top-to-bottom scrim — subtle depth on the stacked image panel */
.deal-hero-vis::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    transparent 35%,
    transparent 72%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Hide vis panel entirely when no graphic has been uploaded (mobile) */
.deal-hero:not(.deal-hero-has-image) .deal-hero-vis {
  display: none;
}

.deal-hero-vis-wrap {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.deal-hero-vis img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ── Fallback when no graphic ─────────────────────────────── */
.deal-hero-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-hero-fallback-monogram {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -2px;
  line-height: 1;
  user-select: none;
}

/* ── Eyebrow: status pill row ─────────────────────────────── */
.deal-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* ── Status pill ──────────────────────────────────────────── */
.deal-status-pill {
  font-size: 11px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-family: inherit;
  touch-action: manipulation;
}

.deal-status-pill:hover {
  background: rgba(0, 0, 0, 0.45);
}

.deal-status-pill i {
  font-size: 12px;
  opacity: 0.7;
}

/* ── Player name ──────────────────────────────────────────── */
.deal-player-name {
  font-family: var(--font-display);
  font-size: clamp(44px, 11vw, 78px);
  font-weight: 900;
  margin: 0 0 10px;
  line-height: 0.9;
  letter-spacing: -2px;
  text-transform: uppercase;
}

/* ── Transfer route ───────────────────────────────────────── */
.deal-route-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.deal-route-from {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.deal-route-arrow {
  font-size: 17px;
  font-weight: 900;
  color: var(--pink);
  flex-shrink: 0;
  line-height: 1;
}

.deal-route-to {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

/* ── Hero datastrip — fee / likelihood / rating / sources ─── */
.deal-hero-datastrip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.deal-hero-datum {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r);
  padding: 7px 12px;
  gap: 3px;
}

.deal-hero-datum-l {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1;
}

.deal-hero-datum-v {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.deal-hero-datum-stars {
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--gold);
  letter-spacing: 1px;
}

/* ── Hero actions row (Save + Instagram) ─────────────────── */
.deal-hero-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.deal-hero-insta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(232, 64, 126, 0.18);
  border: 1px solid rgba(232, 64, 126, 0.38);
  color: #ffd6e7;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  touch-action: manipulation;
}

.deal-hero-insta-btn:hover {
  background: rgba(232, 64, 126, 0.3);
  border-color: rgba(232, 64, 126, 0.6);
}

.deal-hero-insta-btn i {
  font-size: 15px;
}

/* ── Save to Watchlist button ─────────────────────────────── */
.deal-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
  touch-action: manipulation;
  white-space: nowrap;
}

.deal-save-btn .ti {
  font-size: 15px;
  flex-shrink: 0;
}

.deal-save-btn:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.38);
  color: var(--text);
}

.deal-save-btn:active {
  transform: scale(0.97);
}

.deal-save-btn.is-saved {
  background: rgba(232, 64, 126, 0.14);
  border-color: rgba(232, 64, 126, 0.4);
  color: #ffd6e7;
}

.deal-save-btn.is-saved .ti {
  color: var(--pink);
}

.deal-save-btn.is-saved:hover {
  background: rgba(232, 64, 126, 0.22);
  border-color: rgba(232, 64, 126, 0.6);
}

/* ── Likelihood strip ─────────────────────────────────────── */
.likelihood-strip {
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.lk-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.lk-l {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  font-weight: 800;
  margin-bottom: 4px;
}

.lk-sub {
  font-size: 12px;
  color: var(--text-soft);
}

.lk-pct {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
}

.lk-pct-num {
  color: var(--green);
}

.lk-bar {
  height: 8px;
  background: var(--card);
  border-radius: 4px;
  overflow: hidden;
}

.lk-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.lk-meta {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lk-clock-icon {
  font-size: 11px;
}

/* ── Rating ───────────────────────────────────────────────── */
.deal-rating-stars {
  color: var(--gold);
  font-size: 24px;
  letter-spacing: 1px;
  display: block;
  line-height: 1;
}

.deal-rating-num {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

/* ── Verdict block (creator card) ────────────────────────── */
.deal-verdict {
  padding: 22px 20px 26px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.deal-verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.deal-verdict-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.deal-verdict-l {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--pink);
  margin: 0;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.deal-verdict-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 16px;
  font-style: italic;
  border-left: 3px solid var(--pink);
  padding-left: 18px;
}

.deal-verdict-byline {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 600;
  padding-left: 21px;
}

/* ── Deal page layout — wrap / main / sidebar ─────────────── */
.deal-wrap {
  width: 100%;
}

.deal-main {
  min-width: 0;
}

.deal-sidebar {
  display: none;
}

/* ── Deal sidebar: likelihood widget ──────────────────────── */
.deal-sb-lk-pct {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -1px;
  line-height: 1;
  margin: 0 0 2px;
}

.deal-sb-lk-sub {
  font-size: 12px;
  color: var(--text-soft);
  margin: 0;
}

.deal-sb-lk-update {
  font-size: 11px;
  color: var(--text-faint);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Sources block ────────────────────────────────────────── */
.sources-block {
  padding: 26px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.sources-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sources-h {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  font-weight: 800;
}

.sources-trust {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sources-trust i {
  font-size: 15px;
}

.source-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.source-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.source-row:hover {
  background: var(--surface-2);
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.source-tier {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 13px;
}

.tier-1 { background: var(--done-bg);   color: var(--done-color);   border-color: var(--done-border); }
.tier-2 { background: var(--rumour-bg); color: var(--rumour-color); border-color: var(--rumour-border); }
.tier-3 { background: var(--cold-bg);   color: var(--cold-color);   border-color: var(--cold-border); }

.source-main {
  flex: 1;
  min-width: 0;
}

.source-name {
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
}

.source-quote {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 4px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.source-time {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 5px;
}

.source-link {
  color: var(--text-faint);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 4px;
}

.tier-legend {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  line-height: 1.8;
}

.tier-legend strong {
  color: var(--text-soft);
  font-weight: 700;
}

.tier-legend-inline {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* ── Community poll ───────────────────────────────────────── */
.deal-poll {
  padding: 26px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.poll-q {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 700;
}

.poll-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.poll-btn {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  color: var(--text-soft);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s;
  font-weight: 700;
  font-family: inherit;
  min-height: 54px;
  touch-action: manipulation;
}

.poll-btn:hover {
  background: var(--card-hover);
  color: var(--text);
  border-color: var(--border-glow);
}

.poll-btn i {
  font-size: 19px;
}

.poll-btn.voted-agree {
  background: var(--done-bg);
  border-color: var(--done-border);
  color: var(--done-color);
}

.poll-btn.voted-disagree {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--red);
}

.poll-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
}

.poll-bar-row-label {
  min-width: 58px;
}

.poll-bar-row-label--muted {
  color: var(--text-faint);
}

.poll-bar-row-pct {
  min-width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.poll-bar-row-pct--muted {
  color: var(--text-faint);
}

.poll-bar {
  flex: 1;
  height: 6px;
  background: var(--card);
  border-radius: 3px;
  overflow: hidden;
}

.poll-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  transition: width 0.4s ease;
  border-radius: 3px;
}

.poll-bar-fill-disagree {
  background: var(--text-faint);
}

/* ── Related deals ────────────────────────────────────────── */
.deal-related {
  padding: 26px 20px;
  background: var(--surface);
}

.related-h {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  margin-bottom: 14px;
  font-weight: 800;
}

.related-card {
  background: var(--card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s;
  touch-action: manipulation;
}

.related-card:last-child {
  margin-bottom: 0;
}

.related-card:hover {
  background: var(--card-hover);
  border-color: var(--border-2);
  transform: translateY(-1px);
}

.related-info {
  flex: 1;
  min-width: 0;
}

.related-name {
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
}

.related-meta {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 4px;
}

.related-stars {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.related-chevron {
  color: var(--text-faint);
  font-size: 18px;
  flex-shrink: 0;
}

/* ── Bottom navigation ────────────────────────────────────── */
.bottom-nav {
  background: rgba(7, 7, 14, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 6px 6px 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: sticky;
  bottom: 0;
  z-index: 40;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-faint);
  font-size: 8px;
  cursor: pointer;
  padding: 8px 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.15s;
  background: transparent;
  border: none;
  font-family: inherit;
  text-decoration: none;
  font-weight: 800;
  border-radius: var(--r);
  touch-action: manipulation;
}

.nav-btn span {
  white-space: nowrap;
}

.nav-btn i {
  font-size: 23px;
}

.nav-btn.act {
  color: var(--text);
}

.nav-btn.act i {
  color: var(--pink);
}

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 92px;
  left: 16px;
  right: 16px;
  background: var(--card-2);
  border: 1px solid var(--border-2);
  padding: 18px;
  border-radius: var(--r-lg);
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.65;
  display: none;
  z-index: 100;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.toast.show {
  display: block;
  animation: fadeUp 0.22s ease;
}

.toast strong {
  color: var(--text);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.toast-close {
  float: right;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  margin-top: -2px;
}

.toast-status-done   { color: var(--done-color);   font-weight: 700; }
.toast-status-hwg    { color: var(--hwg-color);    font-weight: 700; }
.toast-status-rumour { color: var(--rumour-color); font-weight: 700; }
.toast-status-cold   { color: var(--cold-color);   font-weight: 700; }

.empty-note {
  color: var(--text-faint);
  font-size: 12px;
  padding: 10px 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Tier list page ───────────────────────────────────────── */
.tier-group-header {
  padding: 20px 20px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tier-group-header + .tier-group-header {
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.tier-star-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(251, 191, 36, 0.15);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  letter-spacing: -0.3px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.tier-star-badge i {
  font-size: 14px;
}

.tier-group-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  font-weight: 700;
}

/* ── Mobile: content clearance for sticky bottom nav ─────── */
@media (max-width: 899px) {
  /* Bottom nav is ~65px tall; 88px gives comfortable breathing room */
  .app-shell {
    padding-bottom: 88px;
  }
}

/* ── Desktop responsive ───────────────────────────────────── */
@media (min-width: 900px) {
  .status-bar {
    display: none;
  }

  /* Header */
  .h-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 40px;
  }

  /* Search + tabs (non-homepage pages: saved, tier-list, etc.) */
  .search-bar,
  .tabs,
  .list {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .search-bar {
    padding: 0 40px 16px;
  }

  .tabs {
    padding: 0 40px 14px;
  }

  .list {
    padding: 0 40px 60px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .list-row {
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 18px 20px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
  }

  .list-row:hover {
    background: var(--card-hover);
    border-color: var(--border-2);
  }

  .row-player {
    font-size: 17px;
  }

  /* Deal page header */
  .d-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 40px;
  }

  /* Deal page content */
  .deal-hero,
  .likelihood-strip,
  .deal-verdict,
  .sources-block,
  .player-profile-card,
  .deal-poll,
  .deal-related {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .deal-hero {
    border-radius: var(--r-2xl);
    margin-top: 28px;
    padding: 60px 60px 64px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-lg);
  }

  .deal-player-name {
    font-size: clamp(80px, 8.5vw, 128px);
  }

  .deal-route {
    font-size: 20px;
  }

  .likelihood-strip,
  .deal-verdict,
  .sources-block,
  .deal-poll,
  .deal-related {
    padding-left: 48px;
    padding-right: 48px;
  }

  .player-profile-card {
    padding-left: 48px;
    padding-right: 48px;
  }

  .source-row:hover {
    margin-left: -48px;
    margin-right: -48px;
    padding-left: 48px;
    padding-right: 48px;
  }

  /* Tier list */
  .tier-group-header {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
  }

  /* Bottom nav — floating pill */
  .bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: auto;
    min-width: 480px;
    max-width: 640px;
    border: 1px solid var(--border-2);
    border-radius: var(--r-2xl);
    padding: 6px;
    box-shadow: var(--shadow-lg);
    background: rgba(7, 7, 14, 0.96);
  }

  .nav-btn {
    border-radius: var(--r-lg);
    padding: 10px 4px;
  }

  .nav-btn:hover {
    background: var(--card);
    color: var(--text-soft);
  }

  .nav-btn.act i {
    filter: drop-shadow(0 0 8px rgba(232, 64, 126, 0.5));
  }

  /* App shell desktop padding */
  .app-shell {
    padding-bottom: 100px;
  }
}

@media (min-width: 1200px) {
  .list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .player-profile-card {
    padding-left: 60px;
    padding-right: 60px;
  }
}

/* ── Story card: mobile full-bleed immersive (≤639px) ─────────── */
/*
   On small phones the side image panel would show as a flat dark
   rectangle if the graphic is missing or portrait-cropped. Instead,
   pin the image absolutely over the right 55% of the card and use a
   strong left-to-right gradient scrim so the text area stays fully
   readable — Sky Sports / BBC Sport style.
*/
@media (max-width: 639px) {

  .story-card {
    min-height: 190px;
    /* overflow already set; ensure no bleed beyond viewport */
    max-width: 100%;
  }

  /* Pull image out of flow — covers right 55% of card */
  .story-vis {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    left: auto;
    width: 55%;
    border-left: none;
    z-index: 0;
    min-height: 100%;
  }

  /* Stronger scrim: card bg solid for left 22%, then gradient fade */
  .story-vis::before {
    background: linear-gradient(
      to right,
      var(--card)              0%,
      var(--card)              22%,
      rgba(15, 15, 30, 0.92)  50%,
      rgba(15, 15, 30, 0.30)  100%
    );
  }

  .story-card:hover .story-vis::before {
    background: linear-gradient(
      to right,
      var(--card-hover)        0%,
      var(--card-hover)        22%,
      rgba(20, 20, 40, 0.92)  50%,
      rgba(20, 20, 40, 0.30)  100%
    );
  }

  /* Info panel spans full width (vis is absolute); indent right edge
     to stay inside the clearly readable gradient zone */
  .story-info {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-right: 30%;
  }
}

/* ── Homepage desktop layout (1024px+) ──────────────────────── */
@media (min-width: 1024px) {

  /* Subtle radial bloom gives depth on wide backgrounds so the area
     outside the 1200px content column isn't flat dead space */
  .home-page {
    background:
      radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 58, 237, 0.07) 0%, transparent 100%),
      var(--surface);
  }

  /* Story card — desktop upgrade */
  .story-card {
    border-radius: var(--r-2xl);
    border: 1px solid var(--border-2);
    border-bottom: 1px solid var(--border-2);
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    min-height: 260px;
  }

  .story-info {
    padding: 24px 22px 22px 28px;
    gap: 14px;
  }

  .story-player {
    font-size: clamp(46px, 4.8vw, 64px);
    letter-spacing: -1.5px;
  }

  .story-datum-v {
    font-size: 19px;
  }

  .story-vis {
    width: 210px;
  }

  /* Deals feed — 2-col grid within main column */
  .deals-feed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: transparent;
  }

  .dc {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    border-bottom: 1px solid var(--border);
    background: var(--card);
  }

  .dc:hover {
    background: var(--card-hover);
    border-color: var(--border-2);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }

  .dc:active {
    transform: translateY(0);
    box-shadow: none;
  }

  .dc-player {
    font-size: 19px;
  }

  /* Controls — static (not sticky) on desktop */
  .home-controls {
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    padding-top: 20px;
  }

}

/* ═══════════════════════════════════════════════════════════
   Deal page — desktop layout (1024px+)
   Uses .deal-page class on .app-shell for scoped overrides
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

  /* Deal hero — two-column: info left, vis right.
     padding: 0 overrides the generic 900px block which sets 60px padding
     for the old single-column padded hero. The image column must be flush
     to the card edges; each panel handles its own internal padding. */
  .deal-page .deal-hero {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    max-width: 1200px;
    margin: 24px auto 0;
    border-radius: var(--r-2xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-lg);
    min-height: 340px;
    overflow: hidden;
  }

  /* Info panel — proper padding, no right-squeeze needed */
  .deal-page .deal-hero .deal-hero-info {
    flex: 1;
    min-width: 0;
    padding: 48px 36px 48px 56px;
  }

  /* Reset mobile image-indent since vis is now a real column */
  .deal-page .deal-hero.deal-hero-has-image .deal-hero-info {
    padding-right: 36px;
  }

  /* Vis panel — relative column, not absolute overlay */
  .deal-page .deal-hero .deal-hero-vis {
    position: relative;
    width: 360px;
    height: auto;
    flex-shrink: 0;
    bottom: auto;
    top: auto;
    right: auto;
  }

  /* Show fallback monogram panel on desktop (hidden on mobile when no image) */
  .deal-page .deal-hero:not(.deal-hero-has-image) .deal-hero-vis {
    display: flex;
  }

  /* Lighter scrim on desktop — image is a proper side panel */
  .deal-page .deal-hero .deal-hero-vis::before {
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.18) 40%,
      transparent 70%
    );
  }

  /* Player name — larger on desktop */
  .deal-page .deal-player-name {
    font-size: clamp(72px, 7.5vw, 118px);
  }

  /* Deal route — slightly larger */
  .deal-page .deal-route-line {
    margin-bottom: 22px;
  }

  .deal-page .deal-route-from,
  .deal-page .deal-route-to {
    font-size: 16px;
  }

  .deal-page .deal-route-arrow {
    font-size: 19px;
  }

  /* Datastrip datum values — bigger on desktop */
  .deal-page .deal-hero-datum-v {
    font-size: 24px;
  }

  /* Deal wrap — two-column grid */
  .deal-page .deal-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 32px 120px;
    align-items: start;
  }

  /* Sidebar — revealed on desktop */
  .deal-page .deal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    scrollbar-width: none;
    padding-bottom: 24px;
  }

  .deal-page .deal-sidebar::-webkit-scrollbar {
    display: none;
  }

  /* Likelihood strip — hidden in main column (sidebar shows it) */
  .deal-page .deal-main .likelihood-strip {
    display: none;
  }

  /* Related deals — hidden in main column (sidebar shows it) */
  .deal-page .deal-main .deal-related {
    display: none;
  }

  /* Reset global max-width on sections inside deal-main */
  .deal-page .deal-main .deal-verdict,
  .deal-page .deal-main .sources-block,
  .deal-page .deal-main .player-profile-card,
  .deal-page .deal-main .deal-poll {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  /* Profile card hidden in main column on desktop (sidebar shows it) */
  .deal-page .deal-main .player-profile-card {
    display: none;
  }

  /* Source row hover within deal-main column */
  .deal-page .deal-main .source-row:hover {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* d-header max-width aligns with content */
  .deal-page .d-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 40px;
  }
}

/* ── Deal page: 900px–1023px hero override ───────────────────
   The generic 900px block adds 60px padding to .deal-hero for
   the padded-card look. With the new stacked (flex-column) layout
   that padding double-stacks with .deal-hero-info's own padding
   and insets the vis image. Reset it here.
   ─────────────────────────────────────────────────────────── */
@media (min-width: 900px) and (max-width: 1023px) {
  .deal-page .deal-hero {
    padding: 0;
    margin-top: 16px;
    margin-left: 16px;
    margin-right: 16px;
  }

  .deal-page .deal-hero-info {
    padding: 28px 36px 24px;
  }

  .deal-page .deal-hero-vis {
    height: 240px;
  }
}

/* ── Deal page: compact ticker ───────────────────────────────
   On deal.php the ticker is secondary context — the deal itself
   is the focus. Keep the ticker readable but smaller so the hero
   content appears quickly without scrolling.
   ─────────────────────────────────────────────────────────── */
.deal-page .transfer-window-ticker {
  margin: 8px 16px;
}

@media (min-width: 768px) {
  .deal-page .transfer-window-ticker {
    margin: 12px auto;
    max-width: 1200px;
  }
}

/* ══════════════════════════════════════════════════════════════
   TIER LIST PAGE
   .tier-page  ·  Noah's rankings — matches saved/noah/index style
   ══════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.tl-hero {
  position: relative;
  padding: 32px 20px 36px;
  background: linear-gradient(160deg, #0d0b18 0%, #0a0810 55%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Ambient glow — top right purple */
.tl-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.20) 0%, transparent 60%);
  pointer-events: none;
}

/* Ambient glow — bottom left pink */
.tl-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 64, 126, 0.11) 0%, transparent 70%);
  pointer-events: none;
}

.tl-hero-inner {
  position: relative;
  z-index: 1;
}

/* Right panel hidden on mobile */
.tl-hero-right {
  display: none;
}

.tl-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: 100px;
  padding: 4px 10px;
  margin-bottom: 16px;
}

.tl-hero-kicker i {
  font-size: 12px;
}

.tl-hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 12vw, 80px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.tl-hero-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 22px;
}

/* Badges row — live badge + info pills */
.tl-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Pulsing "Live Rankings" pill */
.tl-hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #e5ffd0;
  background: rgba(151, 196, 89, 0.14);
  border: 1px solid rgba(151, 196, 89, 0.26);
  padding: 5px 12px;
  border-radius: 100px;
}

.tl-hero-live-badge::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #97c459;
  animation: tlLivePulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes tlLivePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Plain info pills */
.tl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 5px 11px;
  border-radius: 100px;
}

.tl-hero-badge .ti {
  font-size: 12px;
  color: var(--pink);
}

/* ── Hero stats panel (desktop-only) ──────────────────────── */
.tl-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.tl-hero-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}

.tl-hero-stat-l {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  color: rgba(240, 240, 251, 0.38);
  margin-bottom: 8px;
}

.tl-hero-stat-v {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1px;
}

/* ── Body wrapper ─────────────────────────────────────────── */
.tl-body {
  padding-bottom: 20px;
}

/* ── Individual tier section ──────────────────────────────── */
.tl-tier {
  border-bottom: 1px solid var(--border);
}

.tl-tier:last-child {
  border-bottom: none;
}

/* ── Tier header ──────────────────────────────────────────── */
.tl-tier-head {
  padding: 16px 20px 14px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
}

.tl-tier-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tl-tier-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tl-tier-rank {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 2px;
  flex-shrink: 0;
  line-height: 1;
  color: var(--gold);
}

.tl-tier-head-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.tl-tier-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  color: var(--text);
  line-height: 1;
}

.tl-tier-subdesc {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-tier-count {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 100px;
  flex-shrink: 0;
  background: var(--card);
  color: var(--text-faint);
  border: 1px solid var(--border);
}

/* ── Tier colour accents ──────────────────────────────────── */
.tl-t5.tl-tier-head { border-left-color: var(--gold); }
.tl-t5 .tl-tier-rank { color: var(--gold); }
.tl-t5 .tl-tier-count {
  background: rgba(251, 191, 36, 0.12);
  color: var(--gold);
  border-color: rgba(251, 191, 36, 0.3);
}

.tl-t4.tl-tier-head { border-left-color: var(--done-color); }
.tl-t4 .tl-tier-rank { color: var(--done-color); }
.tl-t4 .tl-tier-count {
  background: var(--done-bg);
  color: var(--done-color);
  border-color: var(--done-border);
}

.tl-t3.tl-tier-head { border-left-color: var(--rumour-color); }
.tl-t3 .tl-tier-rank { color: var(--rumour-color); }
.tl-t3 .tl-tier-count {
  background: var(--rumour-bg);
  color: var(--rumour-color);
  border-color: var(--rumour-border);
}

.tl-t2.tl-tier-head { border-left-color: #f97316; }
.tl-t2 .tl-tier-rank { color: #f97316; }
.tl-t2 .tl-tier-count {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.30);
}

.tl-t1.tl-tier-head { border-left-color: var(--cold-color); }
.tl-t1 .tl-tier-rank { color: var(--cold-color); }
.tl-t1 .tl-tier-count {
  background: var(--cold-bg);
  color: var(--cold-color);
  border-color: var(--cold-border);
}

/* ── Tier card grid ───────────────────────────────────────── */
.tl-tier-grid {
  background: var(--surface);
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Deal card ────────────────────────────────────────────── */
.tl-card {
  display: flex;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.13s, border-color 0.13s, transform 0.13s, box-shadow 0.13s;
  min-height: 96px;
  touch-action: manipulation;
  cursor: pointer;
}

.tl-card:hover {
  background: var(--card-hover);
  border-color: var(--border-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.38);
}

.tl-card:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Card image */
.tl-card-img {
  width: 84px;
  flex-shrink: 0;
  position: relative;
  background: var(--surface-2);
  overflow: hidden;
  align-self: stretch;
}

.tl-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.tl-card-official-flag {
  position: absolute;
  bottom: 5px;
  left: 5px;
  color: var(--done-color);
  font-size: 13px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card body */
.tl-card-body {
  flex: 1;
  padding: 12px 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  justify-content: center;
}

.tl-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.tl-card-player {
  font-family: var(--font-display);
  font-size: clamp(17px, 4.5vw, 20px);
  font-weight: 900;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: -0.2px;
  line-height: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.tl-card-route {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  line-height: 1.3;
  min-width: 0;
}

.tl-card-from {
  color: var(--text-soft);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}

.tl-card-arrow {
  color: var(--pink);
  font-weight: 900;
  flex-shrink: 0;
  font-size: 13px;
}

.tl-card-to {
  color: var(--text);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}

.tl-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
}

.tl-card-foot-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tl-card-stars {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.tl-card-lk {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-soft);
  font-weight: 700;
  flex-shrink: 0;
}

.tl-card-lk i {
  font-size: 11px;
  color: var(--green);
}

.tl-card-foot-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tl-card-fee {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 100px;
  padding: 2px 8px;
}

.tl-card-insta {
  color: var(--text-faint);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
}

.tl-card-chevron {
  font-size: 16px;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: color 0.13s;
}

.tl-card:hover .tl-card-chevron {
  color: var(--text-soft);
}

/* ── Empty tier state ─────────────────────────────────────── */
.tl-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 4px;
  color: var(--text-faint);
  font-size: 13px;
}

.tl-empty i {
  font-size: 18px;
  flex-shrink: 0;
  opacity: 0.45;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (min-width: 430px) {
  .tl-hero {
    padding: 36px 24px 40px;
  }

  .tl-tier-grid {
    padding: 10px 16px 14px;
  }
}

@media (min-width: 640px) {
  .tl-tier-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tl-empty {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .tl-hero {
    padding: 40px 48px 48px;
  }

  .tl-tier-head {
    padding: 18px 32px 16px 36px;
  }

  .tl-tier-grid {
    padding: 12px 32px 18px;
    gap: 10px;
  }
}

@media (min-width: 1024px) {
  .tl-hero {
    padding: 56px 60px 60px;
  }

  /* Two-column hero layout */
  .tl-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 52px;
  }

  .tl-hero-left {
    flex: 1;
    min-width: 0;
  }

  /* Reveal right stats panel */
  .tl-hero-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 310px;
    flex-shrink: 0;
  }

  .tl-hero-title {
    font-size: clamp(72px, 6.5vw, 108px);
    letter-spacing: -3px;
  }

  /* Body centred, 1200px max */
  .tl-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 60px;
  }

  .tl-tier-head {
    padding: 20px 40px 16px 44px;
  }

  .tl-tier-rank {
    font-size: 16px;
    letter-spacing: 2.5px;
  }

  .tl-tier-name {
    font-size: 24px;
  }

  .tl-tier-subdesc {
    font-size: 12px;
  }

  .tl-tier-grid {
    padding: 14px 40px 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tl-card {
    min-height: 100px;
  }

  .tl-card-img {
    width: 90px;
  }

  .tl-card-body {
    padding: 13px 14px 13px 16px;
  }

  .tl-card-player {
    font-size: 20px;
  }

  .tl-card-from,
  .tl-card-to {
    max-width: 130px;
  }
}

@media (min-width: 1200px) {
  .tl-hero-right {
    width: 340px;
  }

  .tl-tier-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tl-card-from,
  .tl-card-to {
    max-width: 150px;
  }
}

@media (min-width: 1280px) {
  .tl-hero {
    padding: 60px 60px 64px;
  }
}

@media (min-width: 1440px) {
  .tl-hero {
    padding: 68px 80px 72px;
  }

  .tl-hero-inner {
    gap: 64px;
  }
}

/* ══════════════════════════════════════════════════════════
   PLAYER PROFILE CARD
   ══════════════════════════════════════════════════════════ */

.player-profile-card {
  padding: 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.player-profile-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 800;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.player-profile-kicker .ti {
  font-size: 13px;
  color: var(--purple);
}

.player-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.profile-fact {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-fact--wide {
  grid-column: 1 / -1;
}

.profile-fact-l {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  color: var(--text-faint);
}

.profile-fact-v {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1;
}

/* Sidebar variant — tighter padding, smaller text */
.player-profile-grid--sb {
  padding: 0 16px 16px;
  gap: 8px;
}

.player-profile-grid--sb .profile-fact {
  padding: 12px 14px;
}

.player-profile-grid--sb .profile-fact-v {
  font-size: 16px;
}

/* Responsive: 3 columns at 430px+ */
@media (min-width: 430px) {
  .player-profile-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .profile-fact--wide {
    grid-column: span 3;
  }
}

/* Tablet: wider padding already handled by deal-stats rule above */

/* ══════════════════════════════════════════════════════════
   SAVED / TRANSFER WATCHLIST PAGE
   ══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.sw-hero {
  position: relative;
  padding: 28px 20px 32px;
  background: linear-gradient(160deg, #0d0b18 0%, #0a080f 60%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.sw-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.sw-hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 64, 126, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.sw-hero-inner {
  position: relative;
  z-index: 1;
}

.sw-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.26);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.sw-hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 12vw, 80px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -1px;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.sw-hero-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 320px;
  margin-bottom: 20px;
}

.sw-hero-meta {
  display: flex;
  align-items: center;
}

.sw-hero-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
}

.sw-hero-count-badge #saved-count {
  color: var(--pink);
  font-weight: 800;
}

/* ── Body ─────────────────────────────────────────────────── */
.sw-body {
  padding-bottom: 96px;
}

/* ── Empty state ──────────────────────────────────────────── */
.sw-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px 48px;
}

.sw-empty-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  margin-bottom: 20px;
  color: var(--text-faint);
  font-size: 30px;
}

.sw-empty-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sw-empty-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 270px;
}

.sw-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: opacity 150ms ease, transform 150ms ease;
  touch-action: manipulation;
}

.sw-empty-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.sw-empty-cta:active {
  transform: scale(0.97);
  opacity: 0.95;
}

/* ── Grid ─────────────────────────────────────────────────── */
.sw-grid {
  display: flex;
  flex-direction: column;
}

/* ── Saved card ───────────────────────────────────────────── */
.saved-card {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  transition: background 120ms ease;
}

.saved-card:active {
  background: var(--card-hover);
}

/* Inner link row */
.saved-card-inner {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  min-height: 90px;
  padding-right: 14px;
}

/* Image column */
.saved-card-img {
  width: 80px;
  flex-shrink: 0;
  position: relative;
  background: var(--surface-2);
  overflow: hidden;
  align-self: stretch;
}

.saved-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.saved-card-official {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 14px;
  color: var(--gold);
  line-height: 1;
}

/* Body */
.saved-card-body {
  flex: 1;
  min-width: 0;
  padding: 13px 10px 13px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.saved-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.saved-card-player {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-card-route {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-soft);
  flex-wrap: nowrap;
  overflow: hidden;
}

.saved-card-from,
.saved-card-to {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
}

.saved-card-arrow {
  color: var(--pink);
  font-weight: 800;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
}

.saved-card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.saved-card-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 10px;
}

.saved-card-lk {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
}

.saved-card-lk .ti {
  color: var(--green);
  font-size: 12px;
}

.saved-card-fee {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 2px 7px;
  border-radius: 100px;
}

.saved-card-insta {
  font-size: 12px;
  color: var(--text-faint);
}

/* Chevron */
.saved-card-chevron {
  font-size: 17px;
  color: var(--text-faint);
  flex-shrink: 0;
  align-self: center;
}

/* Unsave button */
.saved-unsave-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
  touch-action: manipulation;
  letter-spacing: 0.2px;
}

.saved-unsave-btn .ti {
  font-size: 14px;
}

.saved-unsave-btn:hover {
  color: var(--red);
  background: rgba(239, 68, 68, 0.06);
}

.saved-unsave-btn:active {
  background: rgba(239, 68, 68, 0.12);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (min-width: 430px) {
  .sw-hero {
    padding: 32px 24px 36px;
  }

  .saved-card-from,
  .saved-card-to {
    max-width: 130px;
  }
}

@media (min-width: 768px) {
  .sw-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .saved-card {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .saved-card:nth-child(even) {
    border-right: none;
  }
}

@media (min-width: 900px) {
  .sw-hero {
    padding: 40px 48px 44px;
  }

  .sw-hero-inner {
    max-width: 900px;
  }

  .sw-grid {
    max-width: 1200px;
    margin: 0 auto;
  }

  .sw-empty {
    padding: 80px 24px 64px;
  }
}

@media (min-width: 1024px) {
  .sw-hero {
    padding: 52px 60px 56px;
  }

  .sw-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
  }

  .sw-hero-title {
    font-size: 88px;
  }

  .sw-body {
    padding: 32px 60px 60px;
  }

  .sw-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    background: none;
    border: none;
  }

  .saved-card {
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  }

  .saved-card:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-color: var(--border-2);
  }

  .saved-card:active {
    transform: scale(0.99);
  }

  .saved-card-from,
  .saved-card-to {
    max-width: 150px;
  }
}

@media (min-width: 1200px) {
  .sw-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .sw-hero {
    padding: 64px 80px 68px;
  }

  .sw-body {
    padding: 40px 80px 60px;
  }
}

/* ══════════════════════════════════════════════════════════
   NOAH / CREATOR PROFILE PAGE
   ══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.noah-hero {
  position: relative;
  padding: 28px 20px 32px;
  background: linear-gradient(160deg, #0d0b18 0%, #0a080f 60%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.noah-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.noah-hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -30px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 64, 126, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.noah-hero-inner {
  position: relative;
  z-index: 1;
}

.noah-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.26);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.noah-hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 12vw, 80px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -1px;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.noah-hero-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 340px;
  margin-bottom: 20px;
}

.noah-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.noah-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
}

.noah-hero-badge .ti {
  font-size: 12px;
  color: var(--pink);
}

/* ── Stats strip ──────────────────────────────────────────── */
.noah-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}

.noah-stat {
  padding: 14px 10px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.noah-stat:last-child {
  border-right: none;
}

.noah-stat-l {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.noah-stat-v {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

/* ── Body + grid ──────────────────────────────────────────── */
.noah-body {
  padding: 16px 16px 96px;
}

.noah-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 0;
}

/* ── Card base ────────────────────────────────────────────── */
.noah-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.noah-card-head {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.noah-card-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 800;
  color: var(--text-soft);
}

.noah-card-title-icon {
  font-size: 14px;
  color: var(--pink);
  flex-shrink: 0;
}

.noah-card-body {
  padding: 16px 18px;
}

/* ── Profile card ─────────────────────────────────────────── */
.noah-profile-inner {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.noah-profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.noah-profile-avatar {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: var(--grad);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  user-select: none;
}

.noah-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.noah-profile-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1;
  text-transform: uppercase;
}

.noah-profile-handle {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
}

.noah-profile-tagline {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
  text-transform: uppercase;
  line-height: 1.05;
}

.noah-profile-tagline span {
  color: var(--pink);
}

.noah-profile-intro {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

.noah-profile-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.noah-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 150ms ease, transform 150ms ease, background 150ms ease, border-color 150ms ease;
  touch-action: manipulation;
  white-space: nowrap;
}

.noah-btn .ti {
  font-size: 15px;
}

.noah-btn:active {
  transform: scale(0.97);
}

.noah-btn-primary {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

.noah-btn-primary:hover {
  opacity: 0.88;
}

.noah-btn-secondary {
  background: var(--surface-2);
  color: var(--text-soft);
  border-color: var(--border-2);
}

.noah-btn-secondary:hover {
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.35);
  color: var(--text);
}

/* ── Rating rows ──────────────────────────────────────────── */
.noah-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.noah-rating-row:first-child { padding-top: 0; }
.noah-rating-row:last-child  { border-bottom: none; padding-bottom: 0; }

.noah-rating-stars {
  font-size: 13px;
  flex-shrink: 0;
  width: 76px;
  letter-spacing: 1px;
  color: var(--gold);
}

.noah-rating-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.noah-rating-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.noah-rating-desc {
  font-size: 11px;
  color: var(--text-soft);
}

/* ── Status rows ──────────────────────────────────────────── */
.noah-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.noah-status-row:first-child { padding-top: 0; }
.noah-status-row:last-child  { border-bottom: none; padding-bottom: 0; }

.noah-status-desc {
  font-size: 12px;
  color: var(--text-soft);
  flex: 1;
  min-width: 120px;
}

/* ── Source tier rows ─────────────────────────────────────── */
.noah-source-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.noah-source-row:first-child { padding-top: 0; }
.noah-source-row:last-child  { border-bottom: none; padding-bottom: 0; }

.noah-source-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.noah-source-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: var(--text-soft);
  flex-shrink: 0;
}

.noah-source-row:first-child .noah-source-tier {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: var(--gold);
}

.noah-source-row:nth-child(2) .noah-source-tier {
  background: rgba(56, 189, 248, 0.10);
  border-color: rgba(56, 189, 248, 0.28);
  color: #38bdf8;
}

.noah-source-tier-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.noah-source-names {
  font-size: 12px;
  color: var(--text-soft);
  padding-left: 38px;
  line-height: 1.5;
}

/* ── How-to steps ─────────────────────────────────────────── */
.noah-howto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.noah-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.noah-step:first-child { padding-top: 0; }
.noah-step:last-child  { border-bottom: none; padding-bottom: 0; }

.noah-step-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: var(--purple);
  line-height: 1;
}

.noah-step-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}

.noah-step-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.noah-step-desc {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.45;
}

/* ── Footer CTA ───────────────────────────────────────────── */
.noah-footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px 8px;
  gap: 14px;
}

.noah-footer-cta p {
  font-size: 14px;
  color: var(--text-soft);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (min-width: 430px) {
  .noah-hero {
    padding: 32px 24px 36px;
  }

  .noah-body {
    padding: 20px 20px 96px;
  }
}

@media (min-width: 640px) {
  .noah-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .noah-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .noah-card-full {
    grid-column: 1 / -1;
  }

  .noah-howto-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
  }

  .noah-step:nth-child(n+3) {
    border-bottom: none;
  }

  .noah-step:nth-child(1),
  .noah-step:nth-child(2) {
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
  }

  .noah-step:nth-child(3),
  .noah-step:nth-child(4) {
    padding-top: 12px;
    padding-bottom: 0;
  }

  .noah-step:nth-child(2n) {
    border-left: 1px solid var(--border);
    padding-left: 20px;
  }
}

@media (min-width: 900px) {
  .noah-hero {
    padding: 40px 48px 44px;
  }

  .noah-hero-inner {
    max-width: 900px;
  }

  .noah-body {
    padding: 24px 48px 60px;
  }
}

@media (min-width: 1024px) {
  .noah-hero {
    padding: 52px 60px 56px;
  }

  .noah-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
  }

  .noah-hero-title {
    font-size: 88px;
  }

  .noah-stats {
    max-width: 1200px;
    margin: 0 auto;
    border-left: none;
    border-right: none;
  }

  .noah-body {
    padding: 32px 60px 60px;
  }

  .noah-grid {
    max-width: 1200px;
    margin: 0 auto;
    gap: 16px;
  }

  .noah-footer-cta {
    max-width: 1200px;
    margin: 0 auto;
  }

  .noah-profile-inner {
    padding: 24px;
  }

  .noah-profile-tagline {
    font-size: 36px;
  }
}

@media (min-width: 1200px) {
  .noah-hero {
    padding: 60px 80px 64px;
  }

  .noah-body {
    padding: 40px 80px 60px;
  }
}

@media (min-width: 1440px) {
  .noah-stats {
    max-width: 1200px;
  }
}

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE REDESIGN  v2
   .home-page  ·  two-col hero + stats panel + feed, no sidebar
   ══════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.hp-hero {
  position: relative;
  padding: 32px 20px 36px;
  background: linear-gradient(160deg, #0d0b18 0%, #0a0810 55%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Ambient glow — top right purple */
.hp-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.20) 0%, transparent 60%);
  pointer-events: none;
}

/* Ambient glow — bottom left pink */
.hp-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 64, 126, 0.11) 0%, transparent 70%);
  pointer-events: none;
}

.hp-hero-inner {
  position: relative;
  z-index: 1;
}

/* Right panel: hidden on mobile, shown on desktop */
.hp-hero-right {
  display: none;
}

.hp-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.26);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.hp-hero-kicker .ti {
  font-size: 12px;
}

.hp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 12vw, 80px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hp-hero-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 22px;
}

.hp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 5px 11px;
  border-radius: 100px;
}

.hp-hero-badge .ti {
  font-size: 12px;
  color: var(--pink);
}

/* ── Hero stats panel ─────────────────────────────────────── */
.hp-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.hp-hero-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}

.hp-hero-stat-l {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  color: rgba(240, 240, 251, 0.38);
  margin-bottom: 8px;
}

.hp-hero-stat-v {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1px;
}

/* ── Hero window status pill ──────────────────────────────── */
.hp-hero-window {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--r-lg);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.hp-hero-window-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-faint);
}

.hp-hero-window.is-open {
  color: #e5ffd0;
  border-color: rgba(151, 196, 89, 0.25);
  background: rgba(151, 196, 89, 0.06);
}

.hp-hero-window.is-open .hp-hero-window-dot {
  background: #97c459;
  animation: tlLivePulse 1.8s ease-in-out infinite;
}

.hp-hero-window.is-closed {
  color: var(--text-faint);
  border-color: var(--cold-border);
}

/* ── Body wrapper ─────────────────────────────────────────── */
.hp-body {
  padding-bottom: 20px;
}

/* ── Featured card ────────────────────────────────────────── */
.hp-body .story-card {
  margin: 20px 14px 0;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-2);
  overflow: hidden;
  min-height: 160px;
}

/* ── Homepage controls override ───────────────────────────── */
.home-page .home-controls {
  margin-top: 4px;
}

/* ── Feed header ──────────────────────────────────────────── */
.hp-feed-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
}

.hp-feed-title {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 800;
  color: var(--text-faint);
}

.hp-feed-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── Deal feed: card style, not flat list rows ────────────── */
.home-page .deals-feed {
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 0 14px 12px;
  gap: 8px;
}

.home-page .dc {
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: var(--r-lg);
  min-height: 100px;
}

.home-page .dc:hover {
  background: var(--card-hover);
  border-color: var(--border-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.40);
}

.home-page .dc:active {
  transform: translateY(0);
  box-shadow: none;
}

.home-page .dc-vis {
  width: 84px;
  background: var(--surface-2);
  border-left: 1px solid var(--border);
}

/* Make fee slightly more readable */
.home-page .dc-route-fee {
  color: var(--text-soft);
  font-size: 12px;
}

/* ── No-results empty state ───────────────────────────────── */
.hp-no-results {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 52px 24px 40px;
  gap: 10px;
  grid-column: 1 / -1;
}

.hp-no-results-icon {
  font-size: 36px;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.hp-no-results-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: -0.3px;
}

.hp-no-results-desc {
  font-size: 13px;
  color: var(--text-soft);
  max-width: 240px;
  line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (min-width: 430px) {
  .hp-hero {
    padding: 36px 24px 40px;
  }

  .hp-body .story-card {
    margin-left: 16px;
    margin-right: 16px;
  }

  .home-page .deals-feed {
    padding: 0 16px 12px;
  }
}

@media (min-width: 640px) {
  .home-page .deals-feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 16px 16px;
  }
}

@media (min-width: 768px) {
  .hp-body .story-card {
    margin: 24px 20px 0;
  }

  .hp-feed-hd {
    padding: 16px 22px 12px;
  }

  .home-page .deals-feed {
    padding: 0 20px 16px;
  }
}

@media (min-width: 900px) {
  .hp-hero {
    padding: 40px 48px 48px;
  }

  .hp-body .story-card {
    margin: 24px 32px 0;
  }

  .home-page .deals-feed {
    padding: 0 32px 24px;
  }

  .hp-feed-hd {
    padding: 18px 34px 12px;
  }
}

@media (min-width: 1024px) {
  .hp-hero {
    padding: 56px 60px 60px;
  }

  /* Two-column hero layout on desktop */
  .hp-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 52px;
  }

  .hp-hero-left {
    flex: 1;
    min-width: 0;
  }

  /* Stats panel revealed */
  .hp-hero-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 310px;
    flex-shrink: 0;
  }

  .hp-hero-title {
    font-size: clamp(72px, 6.5vw, 108px);
    letter-spacing: -3px;
  }

  /* Body: centred, max 1200px */
  .hp-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 60px;
  }

  /* Featured card: flush to body edges */
  .hp-body .story-card {
    margin: 28px 0 0;
    border-radius: var(--r-2xl);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-lg);
    min-height: 300px;
  }

  /* Controls: static, no blur, no sticky on desktop */
  .home-page .home-controls {
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    padding-top: 24px;
    margin-top: 0;
  }

  .home-page .home-controls .search-bar {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0 0 12px;
  }

  .home-page .home-controls .tabs {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0 0 10px;
  }

  .hp-feed-hd {
    padding: 6px 0 12px;
  }

  /* Deals grid: 2-col, card style */
  .home-page .deals-feed {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    background: transparent;
  }

  .home-page .dc {
    border-radius: var(--r-lg);
    min-height: 110px;
  }

  .home-page .dc-info {
    padding: 15px 14px 15px 20px;
    gap: 7px;
  }

  .home-page .dc-player {
    font-size: 20px;
  }

  .home-page .dc-vis {
    width: 96px;
  }
}

@media (min-width: 1200px) {
  .hp-hero-right {
    width: 340px;
  }
}

@media (min-width: 1280px) {
  .hp-hero {
    padding: 60px 60px 64px;
  }

  .hp-body {
    padding-left: 48px;
    padding-right: 48px;
  }

  .home-page .deals-feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1440px) {
  .hp-hero {
    padding: 68px 80px 72px;
  }

  .hp-hero-inner {
    max-width: 1200px;
    gap: 64px;
  }

  .hp-body {
    padding-left: 60px;
    padding-right: 60px;
  }
}


/* ══════════════════════════════════════════════════════════════
   PUSH NOTIFICATION OPT-IN
   ══════════════════════════════════════════════════════════════ */

.push-opt-in-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.push-enable-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  background: var(--purple);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity 0.15s, background 0.15s;
}

.push-enable-btn:hover {
  opacity: 0.88;
}

.push-enable-btn:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.push-enable-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.push-enable-btn.push-btn-enabled {
  background: #16a34a;
}

.push-enable-btn.push-btn-blocked {
  background: #64748b;
}

.push-ios-hint {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border-left: 3px solid var(--purple);
}

.push-enable-btn.push-btn-unsupported {
  background: #334155;
}

@keyframes push-spin {
  to { transform: rotate(360deg); }
}

.push-enable-btn:disabled .ti-loader-2 {
  display: inline-block;
  animation: push-spin 0.8s linear infinite;
}


/* ══════════════════════════════════════════════════════════════
   PUSH PROMPT BANNER
   Fixed above the bottom nav, slides in from below.
   z-index 50 = above bottom-nav (40) and headers (40).
   ══════════════════════════════════════════════════════════════ */

.push-prompt {
  position: fixed;
  bottom: 80px;           /* clear the bottom nav (~66px) + 14px gap */
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 12px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.push-prompt.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.push-prompt-card {
  background: var(--card-2);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 16px 18px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(124, 58, 237, 0.1);
}

.push-prompt-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 5px;
  letter-spacing: 0.01em;
}

.push-prompt-title .ti {
  color: var(--purple);
  font-size: 1rem;
}

.push-prompt-text {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0 0 13px;
}

.push-prompt-actions {
  display: flex;
  gap: 8px;
}

.push-prompt-enable {
  flex: 1;
  padding: 0 16px;
  height: 44px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.push-prompt-enable:hover:not(:disabled) {
  opacity: 0.88;
}

.push-prompt-enable:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.push-prompt-enable:disabled {
  opacity: 0.6;
  cursor: default;
}

.push-prompt-dismiss {
  padding: 0 14px;
  height: 44px;
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.push-prompt-dismiss:hover:not(:disabled) {
  border-color: var(--border-2);
  color: var(--text);
}

.push-prompt-dismiss:focus-visible {
  outline: 2px solid var(--border-2);
  outline-offset: 2px;
}

.push-prompt-dismiss:disabled {
  opacity: 0.5;
  cursor: default;
}

.push-prompt-note {
  margin: 9px 0 0;
  font-size: 0.72rem;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.4;
}

/* Tuck the prompt higher on taller phones where the nav has safe-area padding */
@supports (padding: max(0px)) {
  .push-prompt {
    bottom: max(80px, calc(66px + env(safe-area-inset-bottom)));
  }
}

/* On desktop (no bottom nav visible), drop it to 24px from bottom */
@media (min-width: 768px) {
  .push-prompt {
    bottom: 24px;
  }
}


/* ══════════════════════════════════════════════════════════════
   PUSH PROMPT — iOS STEPS VIEW
   ══════════════════════════════════════════════════════════════ */

/* Wider card when expanded to show steps */
.push-prompt-card--steps {
  max-width: 480px;
}

.push-prompt-step-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.push-prompt-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.push-prompt-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.push-prompt-step:first-child {
  padding-top: 0;
}

.push-prompt-step-num {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
  margin-top: 1px;
}

.push-prompt-step-text {
  font-size: 0.81rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.push-prompt-step-text strong {
  color: var(--text);
  font-weight: 600;
}

.push-prompt-step-text .ti {
  font-size: 0.8rem;
  color: var(--purple);
  vertical-align: middle;
}

/* Full-width enable button variant (used in steps view) */
.push-prompt-enable--full {
  width: 100%;
}

/* ══════════════════════════════════════════════════════════════
   NOAH.PHP — iPHONE GUIDE CARD
   ══════════════════════════════════════════════════════════════ */

.noah-ios-guide-intro {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0 0 14px;
}

.noah-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.noah-ios-step {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.noah-ios-step:first-child { padding-top: 0; }
.noah-ios-step:last-child  { border-bottom: none; padding-bottom: 0; }

.noah-ios-step-num {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
  margin-top: 1px;
}

.noah-ios-step-text {
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.45;
  padding-top: 3px;
}

.noah-ios-step-text strong {
  color: var(--text);
  font-weight: 600;
}

.noah-ios-step-text .ti {
  font-size: 0.85rem;
  color: var(--purple);
  vertical-align: middle;
}
