:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface2: #1c1c28;
  --border: #2a2a3a;
  --accent: #ff4d6d;
  --accent2: #ffb703;
  --green: #00c864;
  --blue: #4488ff;
  --text: #f0f0f8;
  --muted: #6b6b88;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { color-scheme: dark; }
body { font-family:'DM Sans',sans-serif; background:var(--bg); color:var(--text); min-height:100vh; overflow-x:hidden; }
body::before { content:''; position:fixed; inset:0; background: radial-gradient(ellipse 55% 35% at 15% 15%, rgba(255,77,109,0.07) 0%, transparent 60%), radial-gradient(ellipse 45% 35% at 85% 85%, rgba(255,183,3,0.05) 0%, transparent 60%); pointer-events:none; z-index:0; }
.auth-modal[hidden],
.auth-backdrop[hidden] { display:none !important; }
.container { max-width:880px; margin:0 auto; padding:0 18px; position:relative; z-index:1; }

header { padding:26px 0 18px; display:flex; align-items:center; justify-content:flex-end; gap:12px; }
.logo { font-family:'Syne',sans-serif; font-weight:800; font-size:21px; letter-spacing:-0.5px; }
.logo span { color:var(--accent); }
.hero-logo {
  font-family:'Syne',sans-serif;
  font-weight:800;
  font-size:clamp(26px,5vw,50px);
  letter-spacing:-0.5px;
  margin:0 auto 14px;
  display:inline-flex;
}
.hero-logo span { color:var(--accent); }
.header-actions { display:flex; align-items:center; gap:8px; }
.region-toggle {
  width:34px;
  height:34px;
  border-radius:10px;
  border:1.5px solid var(--border);
  background:var(--surface2);
  color:var(--text);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  transition:all 0.2s;
}
.region-toggle:hover { border-color:var(--muted); transform:translateY(-1px); }
.account-toggle {
  border:1.5px solid var(--border);
  background:var(--surface2);
  color:var(--text);
  border-radius:10px;
  padding:8px 12px;
  font-family:'Syne',sans-serif;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  transition:all 0.2s;
}
.account-toggle:hover { border-color:var(--muted); transform:translateY(-1px); }
.admin-toggle {
  border:1.5px solid var(--border);
  background:var(--surface2);
  color:var(--accent2);
  border-radius:10px;
  padding:8px 12px;
  font-family:'Syne',sans-serif;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:all 0.2s;
}
.admin-toggle:hover { border-color:var(--accent2); transform:translateY(-1px); }
.api-status {
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:800;
  letter-spacing:0;
  text-transform:uppercase;
  padding:0;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--surface2);
  color:var(--muted);
  flex-shrink:0;
}
.api-status.ok { border-color:rgba(0,200,100,0.3); color:var(--green); background:rgba(0,200,100,0.08); }
.api-status.warn { border-color:rgba(255,183,3,0.35); color:var(--accent2); background:rgba(255,183,3,0.08); }
.api-status.bad { border-color:rgba(255,77,109,0.35); color:var(--accent); background:rgba(255,77,109,0.08); }
.beta-tag { font-size:10px; font-weight:500; background:var(--accent); color:white; padding:3px 8px; border-radius:20px; letter-spacing:0.5px; text-transform:uppercase; }

.hero { padding:28px 0 36px; text-align:center; }
.hero h1 { font-family:'Syne',sans-serif; font-weight:800; font-size:clamp(20px,3vw,26px); line-height:1.08; letter-spacing:-1px; margin-bottom:12px; }
.hero h1 em { font-style:normal; color:var(--accent); }
.hero p { color:var(--muted); font-size:14px; font-weight:300; max-width:440px; margin:0 auto; line-height:1.6; }

/* Steps */
.steps { display:flex; align-items:center; justify-content:center; margin-bottom:32px; flex-wrap:wrap; gap:3px; }
.step { display:flex; align-items:center; gap:6px; padding:6px 12px; border-radius:24px; font-size:11px; font-weight:500; color:var(--muted); transition:all 0.3s; }
.step.active { background:var(--surface2); color:var(--text); border:1px solid var(--border); }
.step.done { color:var(--accent); }
.step-num { width:18px; height:18px; border-radius:50%; background:var(--border); display:flex; align-items:center; justify-content:center; font-size:9px; font-weight:700; flex-shrink:0; }
.step.active .step-num { background:var(--accent); color:white; }
.step.done .step-num { background:transparent; border:1.5px solid var(--accent); color:var(--accent); }
.step-connector { width:16px; height:1px; background:var(--border); }

/* Panels */
.panel { display:none; animation:fadeUp 0.35s ease; }
.panel.active { display:block; }
@keyframes fadeUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.panel-title { font-family:'Syne',sans-serif; font-weight:700; font-size:18px; margin-bottom:4px; letter-spacing:-0.3px; }
.panel-sub { color:var(--muted); font-size:13px; margin-bottom:20px; line-height:1.5; }

/* TV Service cards */
.tv-service-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; margin-bottom:20px; }
.tv-service-card { border:1.5px solid var(--border); border-radius:13px; padding:16px 12px; text-align:center; cursor:pointer; transition:all 0.2s; background:var(--surface); position:relative; }
.tv-service-card:hover { border-color:var(--muted); transform:translateY(-2px); }
.tv-service-card.selected { border-color:var(--accent); background:rgba(255,77,109,0.07); }
.tv-service-card .check { position:absolute; top:7px; right:7px; width:17px; height:17px; border-radius:50%; background:var(--accent); display:none; align-items:center; justify-content:center; font-size:9px; }
.tv-service-card.selected .check { display:flex; }
.tv-icon { width:42px; height:42px; border-radius:10px; margin:0 auto 10px; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:900; font-family:'Syne',sans-serif; }
.tv-name { font-size:12px; font-weight:600; display:block; margin-bottom:2px; }
.tv-sub { font-size:10px; color:var(--muted); }

/* Package selector */
.package-section { margin-bottom:20px; display:none; }
.package-section.visible { display:block; }
.package-header { font-size:12px; font-weight:500; text-transform:uppercase; letter-spacing:0.4px; color:var(--muted); margin-bottom:10px; display:flex; align-items:center; gap:6px; }
.package-grid { display:flex; flex-direction:column; gap:8px; }
.package-card { border:1.5px solid var(--border); border-radius:12px; padding:13px 16px; cursor:pointer; transition:all 0.2s; background:var(--surface); display:flex; align-items:flex-start; gap:12px; }
.package-card:hover { border-color:var(--muted); }
.package-card.selected { border-color:var(--accent); background:rgba(255,77,109,0.06); }
.package-radio { width:16px; height:16px; border-radius:50%; border:1.5px solid var(--border); flex-shrink:0; margin-top:2px; display:flex; align-items:center; justify-content:center; }
.package-card.selected .package-radio { border-color:var(--accent); background:var(--accent); }
.package-card.selected .package-radio::after { content:''; width:6px; height:6px; border-radius:50%; background:white; }
.package-info { flex:1; }
.package-name { font-size:13px; font-weight:600; margin-bottom:4px; }
.package-price { font-size:11px; color:var(--muted); margin-bottom:6px; }
.package-includes { display:flex; flex-wrap:wrap; gap:4px; }
.include-pill { font-size:10px; padding:2px 7px; border-radius:20px; background:var(--surface2); border:1px solid var(--border); color:var(--muted); }
.include-pill.streaming { background:rgba(68,136,255,0.08); border-color:rgba(68,136,255,0.2); color:var(--blue); }

.contract-row { display:flex; align-items:center; gap:10px; margin-top:12px; padding:12px 14px; background:var(--surface2); border-radius:10px; border:1px solid var(--border); }
.contract-label { font-size:12px; color:var(--muted); white-space:nowrap; }
.contract-input { flex:1; background:transparent; border:none; color:var(--text); font-family:'Syne',sans-serif; font-size:13px; outline:none; }

/* Alert banner */
.alert-banner { border-radius:12px; padding:13px 16px; margin-bottom:14px; display:flex; align-items:flex-start; gap:10px; font-size:12px; line-height:1.5; }
.alert-warning { background:rgba(255,183,3,0.07); border:1px solid rgba(255,183,3,0.2); color:var(--accent2); }
.alert-success { background:rgba(0,200,100,0.06); border:1px solid rgba(0,200,100,0.18); color:var(--green); }
.alert-info { background:rgba(68,136,255,0.06); border:1px solid rgba(68,136,255,0.18); color:var(--blue); }
.alert-icon { font-size:16px; flex-shrink:0; }
.alert-title { font-weight:600; margin-bottom:2px; }
.alert-body { color:var(--muted); }
.alert-body strong { color:var(--text); }

/* Streamer grid */
.streamer-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(115px,1fr)); gap:9px; margin-bottom:24px; }
.streamer-card { border:1.5px solid var(--border); border-radius:12px; padding:13px 10px; text-align:center; cursor:pointer; transition:all 0.2s; background:var(--surface); position:relative; }
.streamer-card:hover { border-color:var(--muted); transform:translateY(-2px); }
.streamer-card.selected { border-color:var(--accent); background:rgba(255,77,109,0.07); }
.streamer-card.included { border-color:rgba(0,200,100,0.3); background:rgba(0,200,100,0.04); opacity:0.7; cursor:default; }
.streamer-card.included:hover { transform:none; }
.streamer-card.duplicate { border-color:rgba(255,183,3,0.4); background:rgba(255,183,3,0.06); }
.streamer-card .check { position:absolute; top:6px; right:6px; width:16px; height:16px; border-radius:50%; background:var(--accent); display:none; align-items:center; justify-content:center; font-size:8px; }
.streamer-card.selected .check { display:flex; }
.streamer-card.included .check { display:flex; background:var(--green); }
.streamer-card.duplicate .check { display:flex; background:var(--accent2); }
.streamer-icon { width:36px; height:36px; border-radius:8px; margin:0 auto 8px; display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:900; font-family:'Syne',sans-serif; }
.streamer-name { font-size:11px; font-weight:500; color:var(--text); display:block; margin-bottom:2px; line-height:1.3; }
.streamer-price { font-size:10px; color:var(--muted); }
.included-label { font-size:9px; color:var(--green); display:block; margin-top:2px; font-weight:500; }
.duplicate-label { font-size:9px; color:var(--accent2); display:block; margin-top:2px; font-weight:500; }

/* Search */
.search-box { position:relative; margin-bottom:10px; }
.search-box input { width:100%; background:var(--surface); border:1.5px solid var(--border); border-radius:12px; padding:12px 46px 12px 15px; color:var(--text); font-family:'Syne',sans-serif; font-size:14px; outline:none; transition:border-color 0.2s; }
.search-box input:focus { border-color:var(--accent); }
.search-box input::placeholder { color:var(--muted); }
.search-btn { position:absolute; right:10px; top:50%; transform:translateY(-50%); background:var(--accent); border:none; border-radius:7px; width:28px; height:28px; cursor:pointer; display:flex; align-items:center; justify-content:center; color:white; font-size:12px; }

.search-results { background:var(--surface); border:1.5px solid var(--border); border-radius:12px; overflow:hidden; margin-bottom:10px; display:none; }
.search-results.top-streamed {
  display:block;
  background:none;
  border:none;
  border-radius:0;
  overflow:visible;
  margin-bottom:0;
  padding:0;
}
.search-result-item { padding:11px 15px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; transition:background 0.15s; border-bottom:1px solid var(--border); gap:10px; }
.search-result-item:last-child { border-bottom:none; }
.search-result-item:hover { background:var(--surface2); }
.result-season-count {
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-top:4px;
  padding:2px 7px;
  border-radius:999px;
  border:1px solid rgba(255,77,109,0.25);
  background:rgba(255,77,109,0.08);
  color:var(--accent);
  font-size:10px;
  line-height:1.4;
  white-space:nowrap;
}
.search-results.trending { max-height:none; overflow:visible; }
.top-wall-tabs {
  display:flex;
  gap:8px;
  justify-content:center;
  margin:0 0 10px;
}
.top-wall-tab {
  border:1.5px solid var(--border);
  background:var(--surface2);
  color:var(--muted);
  border-radius:999px;
  padding:9px 14px;
  font-family:'Syne',sans-serif;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:all 0.2s;
}
.top-wall-tab.active {
  color:var(--text);
  border-color:var(--accent);
  background:rgba(255,77,109,0.1);
}
.top-wall-tab:hover {
  transform:translateY(-1px);
  border-color:var(--muted);
}
.search-results.top-streamed .search-results-header {
  padding:0 2px 10px;
  border-bottom:none;
}
.search-results-header { padding:12px 15px 10px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:8px; }
.search-results-title { font-family:'Syne',sans-serif; font-size:12px; font-weight:700; letter-spacing:0.3px; text-transform:uppercase; color:var(--muted); }
.search-results-helper { font-size:11px; color:var(--muted); margin-top:3px; line-height:1.35; }
.search-results-region { font-size:11px; color:var(--muted); }
.trending-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.top-streamed .trending-grid {
  gap:10px;
}
.trending-tile {
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface2);
  overflow:hidden;
  cursor:pointer;
  transition:transform 0.15s, border-color 0.15s, background 0.15s;
  position:relative;
}
.top-streamed .trending-tile {
  flex:none;
}
.trending-tile:hover {
  transform:translateY(-2px);
  border-color:var(--muted);
  background:#232334;
}
.trending-tile-art {
  width:100%;
  aspect-ratio:2/3;
  background:linear-gradient(180deg,rgba(255,255,255,0.04),rgba(255,255,255,0));
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:24px;
  position:relative;
}
.trending-tile-art img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.trending-tile-body {
  padding:10px 9px 10px;
}
.top-streamed .trending-tile-body {
  padding:8px 8px 9px;
}
.trending-tile-title {
  font-size:12px;
  font-weight:600;
  line-height:1.25;
  margin-bottom:3px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.top-streamed .trending-tile-title {
  font-size:11px;
  line-height:1.2;
  margin-bottom:0;
  -webkit-line-clamp:1;
}
.trending-tile-source {
  margin-top:2px;
  font-size:9px;
  line-height:1.2;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.trending-tile-check {
  position:absolute;
  top:8px;
  right:8px;
  width:22px;
  height:22px;
  border-radius:999px;
  background:rgba(255,77,109,0.92);
  color:white;
  display:none;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:700;
  box-shadow:0 8px 20px rgba(255,77,109,0.25);
}
.trending-tile.selected {
  border-color:rgba(255,77,109,0.75);
  background:rgba(255,77,109,0.08);
}
.trending-tile.selected .trending-tile-check { display:flex; }
.trending-tile.selected .trending-tile-title { color:var(--text); }
.result-art {
  width:40px;
  height:60px;
  border-radius:8px;
  background:var(--surface2);
  overflow:hidden;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:16px;
}
.result-art img,
.watchlist-item-art img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.result-info { flex:1; min-width:0; }
.result-title { font-size:13px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.result-meta { font-size:11px; color:var(--muted); margin-top:1px; }
.result-type-badge { font-size:10px; padding:2px 7px; border-radius:20px; flex-shrink:0; }
.badge-series { background:rgba(100,120,255,0.12); color:#8899ff; border:1px solid rgba(100,120,255,0.2); }
.badge-film { background:rgba(255,183,3,0.1); color:var(--accent2); border:1px solid rgba(255,183,3,0.2); }
.add-btn { background:var(--surface2); border:1px solid var(--border); border-radius:7px; padding:5px 11px; color:var(--text); font-size:11px; font-weight:500; cursor:pointer; font-family:'Syne',sans-serif; transition:all 0.2s; white-space:nowrap; flex-shrink:0; }
.add-btn:hover { background:var(--accent); border-color:var(--accent); color:white; }

.loading { text-align:center; padding:14px; color:var(--muted); font-size:13px; display:none; }
.trending-loading { display:none; padding:12px 15px; color:var(--muted); font-size:12px; }
.spinner { display:inline-block; width:13px; height:13px; border:2px solid var(--border); border-top-color:var(--accent); border-radius:50%; animation:spin 0.7s linear infinite; margin-right:6px; vertical-align:middle; }
@keyframes spin { to{transform:rotate(360deg)} }

/* Watchlist */
.watchlist { display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.watchlist-item { background:var(--surface); border:1.5px solid var(--border); border-radius:12px; padding:9px 11px; display:flex; align-items:center; gap:10px; animation:fadeUp 0.3s ease; min-height:72px; }
.watchlist-item-art { width:70px; height:44px; border-radius:9px; background:var(--surface2); display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; overflow:hidden; color:var(--muted); }
.watchlist-item-info { flex:1; min-width:0; }
.watchlist-item-title { font-size:13px; font-weight:500; margin-bottom:3px; line-height:1.2; }
.watchlist-item-source { display:inline-flex; align-items:center; gap:4px; margin-bottom:3px; padding:2px 7px; border-radius:999px; border:1px solid var(--border); background:var(--surface2); color:var(--muted); font-size:10px; line-height:1.4; }
.watchlist-item-season-count {
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-bottom:3px;
  margin-left:6px;
  padding:2px 7px;
  border-radius:999px;
  border:1px solid rgba(255,77,109,0.25);
  background:rgba(255,77,109,0.08);
  color:var(--accent);
  font-size:10px;
  line-height:1.4;
  white-space:nowrap;
}
.season-platforms { display:flex; flex-wrap:wrap; gap:3px; }
.season-tag { font-size:10px; padding:2px 6px; border-radius:20px; border:1px solid var(--border); color:var(--muted); background:var(--surface2); }
.season-tag.highlight { border-color:var(--accent); color:var(--accent); }
.season-tag.covered { border-color:var(--green); color:var(--green); }
.season-tag.rental { border-color:var(--accent2); color:var(--accent2); }
.remove-btn { background:none; border:none; color:var(--muted); cursor:pointer; font-size:14px; padding:3px; border-radius:5px; transition:color 0.2s; flex-shrink:0; }
.remove-btn:hover { color:var(--accent); }
.empty-watchlist { text-align:center; padding:32px 20px; color:var(--muted); font-size:13px; }
.empty-watchlist .icon { font-size:26px; display:block; margin-bottom:8px; opacity:0.35; }

.demo-estimate {
  margin:14px 0 6px;
  background:linear-gradient(135deg,rgba(68,136,255,0.12),rgba(255,77,109,0.07));
  border:1.5px solid rgba(68,136,255,0.22);
  border-radius:14px;
  padding:14px 15px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.demo-estimate.floating {
  position: sticky;
  top: 14px;
  z-index: 3;
  box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}
.demo-estimate-copy { flex:1; }
.demo-estimate-title { font-family:'Syne',sans-serif; font-size:13px; font-weight:700; margin-bottom:3px; }
.demo-estimate-sub { font-size:11px; color:var(--muted); line-height:1.45; }
.demo-estimate-value {
  background:var(--surface2);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 14px;
  min-width:118px;
  text-align:right;
}
.demo-estimate-amount { font-family:'Syne',sans-serif; font-size:22px; font-weight:800; display:block; color:var(--text); }
.demo-estimate-label { font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:0.4px; }

/* Plan */
.plan-header { background:var(--surface); border:1.5px solid var(--border); border-radius:14px; padding:16px 20px; margin-bottom:12px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.savings-badge { background:linear-gradient(135deg,var(--accent),#ff8fa3); border-radius:11px; padding:10px 16px; text-align:right; flex-shrink:0; }
.savings-amount { font-family:'Syne',sans-serif; font-weight:800; font-size:24px; color:white; letter-spacing:-1px; display:block; }
.savings-label { font-size:10px; color:rgba(255,255,255,0.8); text-transform:uppercase; letter-spacing:0.5px; }
.plan-title { font-family:'Syne',sans-serif; font-weight:700; font-size:17px; margin-bottom:3px; }
.plan-subtitle { color:var(--muted); font-size:12px; }

.cal-export-card { background:linear-gradient(135deg,rgba(255,77,109,0.09),rgba(255,183,3,0.05)); border:1.5px solid rgba(255,77,109,0.22); border-radius:13px; padding:16px 18px; margin-bottom:14px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.cal-export-info { flex:1; }
.cal-export-title { font-family:'Syne',sans-serif; font-weight:700; font-size:14px; margin-bottom:2px; }
.cal-export-desc { font-size:11px; color:var(--muted); line-height:1.4; }
.btn-cal { background:var(--accent); color:white; border:none; border-radius:10px; padding:10px 18px; font-family:'Syne',sans-serif; font-size:13px; font-weight:500; cursor:pointer; transition:opacity 0.2s; white-space:nowrap; flex-shrink:0; }
.btn-cal:hover { opacity:0.87; }

.month-plan { display:flex; flex-direction:column; gap:9px; margin-bottom:18px; }
.month-card { background:var(--surface); border:1.5px solid var(--border); border-radius:12px; overflow:hidden; animation:fadeUp 0.4s ease both; }
.month-card:nth-child(1){animation-delay:0.04s}
.month-card:nth-child(2){animation-delay:0.08s}
.month-card:nth-child(3){animation-delay:0.12s}
.month-card:nth-child(4){animation-delay:0.16s}
.month-card:nth-child(5){animation-delay:0.2s}
.month-header { padding:12px 15px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border); gap:8px; flex-wrap:wrap; }
.month-label { font-family:'Syne',sans-serif; font-weight:700; font-size:13px; }
.month-subs { display:flex; gap:4px; align-items:center; flex-wrap:wrap; }
.sub-pill { font-size:10px; font-weight:500; padding:2px 8px; border-radius:20px; border:1px solid; }
.month-cost { font-size:11px; color:var(--muted); font-weight:500; }
.month-shows { padding:12px 15px; display:flex; flex-direction:column; gap:8px; }
.show-row { display:flex; align-items:center; gap:7px; font-size:12px; }
.show-platform-dot { width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.show-title-row { flex:1; font-weight:500; }
.show-badge { font-size:10px; padding:2px 6px; border-radius:20px; background:var(--surface2); color:var(--muted); white-space:nowrap; flex-shrink:0; }
.show-badge.rental { background:rgba(255,183,3,0.1); color:var(--accent2); border:1px solid rgba(255,183,3,0.2); }
.show-badge.covered { background:rgba(0,200,100,0.08); color:var(--green); }

.month-checkin { border-top:1px solid var(--border); padding:9px 15px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.checkin-label { font-size:11px; color:var(--muted); }
.checkin-btns { display:flex; gap:5px; }
.checkin-btn { padding:5px 11px; border-radius:7px; border:1.5px solid var(--border); background:var(--surface2); color:var(--muted); font-size:10px; font-weight:500; cursor:pointer; font-family:'Syne',sans-serif; transition:all 0.2s; }
.checkin-btn.done { border-color:var(--green); color:var(--green); background:rgba(0,200,100,0.08); }
.checkin-btn.behind { border-color:var(--accent); color:var(--accent); background:rgba(255,77,109,0.08); }

.action-card { background:var(--surface2); border:1.5px solid var(--border); border-radius:12px; padding:12px 15px; display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; gap:9px; }
.action-icon { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
.action-info { flex:1; min-width:0; }
.action-title { font-size:12px; font-weight:500; margin-bottom:1px; }
.action-desc { font-size:11px; color:var(--muted); }
.action-btn { background:var(--surface); border:1.5px solid var(--border); border-radius:8px; padding:6px 13px; color:var(--text); font-size:11px; font-weight:500; cursor:pointer; font-family:'Syne',sans-serif; transition:all 0.2s; text-decoration:none; white-space:nowrap; flex-shrink:0; }
.action-btn.cancel { border-color:var(--accent); color:var(--accent); }
.action-btn.cancel:hover { background:var(--accent); color:white; }
.action-btn.sky { border-color:var(--accent2); color:var(--accent2); }
.action-btn.sky:hover { background:var(--accent2); color:var(--bg); }

.section-sm { font-family:'Syne',sans-serif; font-weight:700; font-size:14px; margin:16px 0 10px; }

.nav-row { display:flex; gap:9px; margin-top:8px; margin-bottom:40px; }
#panel1 .nav-row { justify-content:center; }
#panel1 .nav-row .btn-primary { flex:0 1 320px; text-align:center; }
#panel1 .panel-title { text-align:center; }
.btn-primary { background:var(--accent); color:white; border:none; border-radius:11px; padding:13px 22px; font-family:'Syne',sans-serif; font-size:14px; font-weight:500; cursor:pointer; transition:opacity 0.2s,transform 0.15s; flex:1; }
.btn-primary:hover { opacity:0.87; transform:translateY(-1px); }
.btn-primary:disabled { opacity:0.35; cursor:not-allowed; transform:none; background:var(--accent); }
.btn-secondary { background:var(--surface); color:var(--text); border:1.5px solid var(--border); border-radius:11px; padding:13px 16px; font-family:'Syne',sans-serif; font-size:14px; cursor:pointer; transition:border-color 0.2s; }
.btn-secondary:hover { border-color:var(--muted); }

.auth-backdrop {
  position:fixed;
  inset:0;
  background:rgba(5,5,10,0.72);
  backdrop-filter:blur(8px);
  z-index:9;
}
.auth-modal {
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:10;
}
.plan-preview-backdrop {
  position:fixed;
  inset:0;
  background:rgba(5,5,10,0.72);
  backdrop-filter:blur(8px);
  z-index:11;
}
.plan-preview-modal {
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:12;
}
.plan-preview-backdrop[hidden],
.plan-preview-modal[hidden] {
  display:none !important;
}
.region-change-backdrop {
  position:fixed;
  inset:0;
  background:rgba(5,5,10,0.72);
  backdrop-filter:blur(8px);
  z-index:15;
}
.region-change-modal {
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:16;
}
.region-change-backdrop[hidden],
.region-change-modal[hidden] {
  display:none !important;
}
.region-change-card {
  width:min(480px, 100%);
  max-height:min(86vh, 720px);
  overflow:auto;
}
.region-change-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin:14px 0 18px;
}
.region-choice {
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1.5px solid var(--border);
  background:var(--surface2);
  text-align:left;
  cursor:pointer;
  transition:all 0.18s ease;
}
.region-choice:hover {
  border-color:var(--muted);
  transform:translateY(-1px);
}
.region-choice.selected {
  border-color:var(--accent);
  background:rgba(255,77,109,0.08);
}
.region-choice.current:not(.selected) {
  border-color:rgba(255,255,255,0.14);
}
.region-choice-flag {
  flex:0 0 auto;
  width:36px;
  height:36px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,0.05);
  font-size:18px;
}
.region-choice-copy {
  min-width:0;
  flex:1;
}
.region-choice-label {
  font-family:'Syne',sans-serif;
  font-size:14px;
  font-weight:700;
}
.region-choice-code {
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--muted);
  margin-top:2px;
}
.region-change-label {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:0.4px;
  color:var(--muted);
  margin-bottom:4px;
}
.region-change-value {
  font-family:'Syne',sans-serif;
  font-size:14px;
  font-weight:700;
}
.plan-preview-card {
  width:min(760px, 100%);
  max-height:min(90vh, 920px);
  overflow:auto;
}
.plan-preview-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.plan-preview-summary {
  background:var(--surface2);
  border:1.5px solid var(--border);
  border-radius:12px;
  padding:12px 14px;
  margin-bottom:12px;
}
.plan-preview-summary .plan-title {
  margin-bottom:0;
}
.plan-preview-summary .plan-subtitle {
  margin-top:4px;
}
.plan-preview-months {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:12px 0 14px;
}
.plan-preview-month .month-card {
  margin-bottom:0;
}
.plan-preview-month.preview .month-card {
  position:relative;
  overflow:hidden;
  max-height:220px;
}
.month-card.teaser {
  position:relative;
  overflow:hidden;
  max-height:220px;
}
.plan-preview-month.preview .month-card::after {
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:76%;
  bottom:0;
  backdrop-filter:blur(10px);
  background:linear-gradient(to bottom, rgba(10,10,15,0.02), rgba(10,10,15,0.66));
  pointer-events:none;
}
.month-card.teaser::after {
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:76%;
  bottom:0;
  backdrop-filter:blur(10px);
  background:linear-gradient(to bottom, rgba(10,10,15,0.02), rgba(10,10,15,0.66));
  pointer-events:none;
}
.plan-preview-month.preview .month-shows {
  max-height:220px;
  overflow:hidden;
}
.month-card.teaser .month-shows {
  max-height:220px;
  overflow:hidden;
}
.plan-preview-month.preview .month-checkin {
  opacity:0.35;
}
.month-card.teaser .month-checkin {
  opacity:0.35;
}
.plan-preview-month.preview .month-download,
.month-card.teaser .month-download {
  position:absolute;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  z-index:2;
  border:1.5px solid rgba(240,240,248,0.16);
  background:rgba(19,19,26,0.88);
  color:var(--text);
  border-radius:999px;
  padding:10px 14px;
  font:inherit;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.01em;
  box-shadow:0 12px 30px rgba(0,0,0,0.28);
}
.plan-preview-month .month-checkin,
.plan-preview-month .month-header {
  pointer-events:none;
}
.month-card.teaser .month-checkin,
.month-card.teaser .month-header {
  pointer-events:none;
}
.plan-preview-cta {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.plan-help-row {
  display:flex;
  justify-content:center;
  margin-top:10px;
}
.plan-help-btn {
  flex:0 1 320px;
  width:100%;
  max-width:320px;
  background:white;
  color:var(--accent);
  border:1.5px solid rgba(255,77,109,0.26);
  border-radius:11px;
  padding:13px 22px;
  font-family:'Syne',sans-serif;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  transition:opacity 0.2s,transform 0.15s;
  box-shadow:0 10px 24px rgba(0,0,0,0.18);
}
.plan-help-btn:hover {
  background:rgba(255,77,109,0.06);
  opacity:1;
  transform:translateY(-1px);
}
.plan-help-btn:active {
  transform:translateY(0);
}
.site-footer {
  margin:28px 0 18px;
  padding:18px 0 6px;
  border-top:1px solid var(--border);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
  text-align:center;
}
.footer-brand {
  max-width:540px;
}
.footer-logo {
  font-family:'Syne',sans-serif;
  font-weight:800;
  font-size:20px;
  letter-spacing:-0.3px;
  color:var(--text);
  margin-bottom:6px;
}
.footer-logo span { color:var(--accent); }
.footer-copy {
  font-size:12px;
  line-height:1.5;
  color:var(--muted);
}
.footer-links {
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  align-items:center;
  justify-content:center;
}
.footer-link {
  background:none;
  border:none;
  padding:0;
  font:inherit;
  font-size:12px;
  color:var(--muted);
  text-decoration:none;
  cursor:pointer;
}
.footer-link:hover {
  color:var(--text);
}
.footer-link.primary {
  color:var(--accent);
  font-weight:700;
}
.how-it-works-backdrop {
  position:fixed;
  inset:0;
  background:rgba(5,5,10,0.72);
  backdrop-filter:blur(8px);
  z-index:13;
}
.how-it-works-modal {
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:14;
}
.how-it-works-backdrop[hidden],
.how-it-works-modal[hidden] {
  display:none !important;
}
.how-it-works-card {
  width:min(700px, 100%);
  max-height:min(88vh, 860px);
  overflow:auto;
}
.how-it-works-list {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:12px 0 16px;
}
.how-it-works-item {
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px 14px;
  border-radius:14px;
  border:1.5px solid var(--border);
  background:var(--surface2);
}
.how-it-works-step {
  flex:0 0 auto;
  width:26px;
  height:26px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,77,109,0.12);
  color:var(--accent);
  font-weight:700;
  font-size:12px;
}
.how-it-works-copy {
  flex:1;
  min-width:0;
  font-size:13px;
  line-height:1.5;
  color:var(--text);
}
.how-it-works-copy strong {
  color:var(--text);
}
.auth-card {
  width:min(440px, 100%);
  background:var(--surface);
  border:1.5px solid var(--border);
  border-radius:18px;
  padding:20px;
  box-shadow:0 20px 60px rgba(0,0,0,0.45);
}
.auth-top { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:16px; }
.auth-title { font-family:'Syne',sans-serif; font-size:18px; font-weight:700; }
.auth-sub { color:var(--muted); font-size:12px; line-height:1.45; margin-top:3px; }
.auth-form { display:flex; flex-direction:column; gap:12px; }
.auth-form .btn-primary,
.auth-form .btn-secondary { width:100%; }
.auth-stage { display:flex; flex-direction:column; gap:12px; }
.auth-stage[hidden] { display:none !important; }
.auth-label { display:flex; flex-direction:column; gap:6px; font-size:11px; color:var(--muted); }
.auth-password-field { display:flex; flex-direction:column; gap:6px; }
.auth-password-label { font-size:11px; color:var(--muted); }
.auth-input {
  background:var(--surface2);
  border:1.5px solid var(--border);
  color:var(--text);
  border-radius:10px;
  padding:12px 12px;
  outline:none;
  font-family:'DM Sans',sans-serif;
  font-size:14px;
}
.auth-input:focus { border-color:var(--accent); }
.auth-note { font-size:12px; color:var(--muted); line-height:1.45; }
.auth-divider {
  display:flex;
  align-items:center;
  gap:10px;
  margin:16px 0 12px;
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.4px;
}
.auth-divider::before,
.auth-divider::after {
  content:'';
  height:1px;
  background:var(--border);
  flex:1;
}
.google-button-wrap { min-height:44px; display:flex; justify-content:center; align-items:center; width:100%; }
.google-button-wrap > div { width:auto; display:flex; justify-content:center; }
.google-button-wrap button { border-radius:10px !important; }
.auth-switch {
  border:none;
  background:none;
  color:var(--accent2);
  padding:0;
  font:inherit;
  cursor:pointer;
  text-align:left;
}
.auth-switch-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:2px;
}
.auth-switch-copy {
  font-size:11px;
  color:var(--muted);
  line-height:1.45;
}
.admin-card {
  width:min(760px, 100%);
  max-height:min(90vh, 900px);
  overflow:auto;
}
.admin-dials {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  margin:4px 0 12px;
}
.admin-dial {
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  color:var(--muted);
}
.admin-dial input {
  width:100%;
  background:var(--surface2);
  border:1.5px solid var(--border);
  border-radius:10px;
  color:var(--text);
  padding:10px 12px;
  outline:none;
}
.admin-dial input:focus { border-color:var(--accent); }
.admin-textarea {
  width:100%;
  min-height:320px;
  resize:vertical;
  background:var(--surface2);
  border:1.5px solid var(--border);
  border-radius:12px;
  color:var(--text);
  padding:12px;
  font-family:'SFMono-Regular',Consolas,Monaco,monospace;
  font-size:12px;
  line-height:1.5;
  outline:none;
}
.admin-textarea:focus { border-color:var(--accent); }
.admin-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.admin-section {
  margin:4px 0 12px;
}
.admin-section-head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.admin-section-title {
  font-family:'Syne',sans-serif;
  font-size:13px;
  font-weight:700;
  margin-bottom:2px;
}
.admin-section-copy {
  font-size:11px;
  color:var(--muted);
  line-height:1.4;
}
.admin-add-row {
  flex:0 0 auto;
}
.admin-table-wrap {
  overflow:auto;
  border:1.5px solid var(--border);
  border-radius:12px;
  background:var(--surface2);
}
.admin-table {
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}
.admin-table th,
.admin-table td {
  padding:8px 10px;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:top;
  font-size:11px;
}
.admin-table th {
  position:sticky;
  top:0;
  background:var(--surface2);
  color:var(--muted);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.4px;
  z-index:1;
}
.admin-table tr:last-child td { border-bottom:none; }
.admin-table input {
  width:100%;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:8px;
  color:var(--text);
  padding:8px 9px;
  outline:none;
  font:inherit;
  font-size:11px;
}
.admin-table input:focus { border-color:var(--accent); }
.admin-table .admin-row-actions {
  width:1%;
  white-space:nowrap;
}
.admin-row-remove {
  background:none;
  border:none;
  color:var(--muted);
  cursor:pointer;
  padding:4px;
  border-radius:6px;
}
.admin-row-remove:hover { color:var(--accent); }

@media(max-width:580px){
  .tv-service-grid{grid-template-columns:repeat(2,1fr)}
  .streamer-grid{grid-template-columns:repeat(3,1fr)}
  .plan-header{flex-direction:column;gap:12px;align-items:flex-start}
  .savings-badge{width:100%;text-align:left}
  .cal-export-card{flex-direction:column}
  .btn-cal{width:100%;text-align:center}
  .auth-card{padding:16px}
  .auth-top{margin-bottom:14px}
  .auth-switch-row{flex-direction:column;align-items:flex-start}
  .google-button-wrap{justify-content:center}
  .demo-estimate {
    margin:12px 0 8px;
    padding:12px 13px;
  }
  .demo-estimate.floating {
    position: sticky;
    top: 10px;
    z-index: 4;
  }
  .demo-estimate-value {
    min-width:100px;
    padding:9px 11px;
  }
  .demo-estimate-amount { font-size:20px; }
  .admin-card {
    width:100%;
    max-height:none;
  }
  .admin-dials{grid-template-columns:1fr}
  .admin-section-head {
    align-items:flex-start;
    flex-direction:column;
  }
  .admin-add-row {
    width:100%;
  }
  .plan-preview-card {
    width:100%;
    max-height:none;
  }
  .region-change-card {
    width:100%;
    max-height:none;
  }
  .how-it-works-card {
    width:100%;
    max-height:none;
  }
  .site-footer {
    margin-top:24px;
    padding-top:16px;
  }
  .footer-links {
    justify-content:center;
  }
}

@media(min-width:581px){
  .trending-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .top-streamed .trending-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(min-width:901px){
  .trending-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .top-streamed .trending-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
