/* MyDebrid — Design System */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy: #1f2a3c;
  --navy-2: #182232;
  --red: #d94452;
  --red-2: #c1374a;
  --ink: #1b2230;
  --muted: #6b7382;
  --muted-2: #9ba2b0;
  --line: #e6e8ed;
  --line-2: #eef0f3;
  --paper: #fbfaf7;
  --field: #f5f6f8;
  --green: #1f7a3a;
  --amber: #c98a14;
  --blue: #2f6fe5;
  --blue-2: #2660cf;
  --hdr-bg: #fbfaf7;
  --hdr-fg: var(--ink);
  --hdr-muted: var(--muted);
  --hdr-hover: rgba(0,0,0,.04);
  --hdr-border: var(--line);
}

*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; padding: 0; height: auto !important; }
body {
  margin: 0; padding: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.55;
  height: auto !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Override theme.css global link defaults (color:#4a90e2, font-weight:700, hover underline) */
a { color: inherit; text-decoration: none; font-weight: inherit; }
a:hover { text-decoration: none; }
/* Enforce Manrope + weight — theme.css sets Open Sans + weight:300 globally */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 700;
}
/* custom.css sets h1{text-align:center} — override only where needed, not globally */
.md-hero h1, .md-page-h { text-align: left; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Layout containers */
.md-container { max-width: 1120px; margin: 0 auto; padding: 0 28px; width: 100%; }
.md-container-sm { max-width: 780px; margin: 0 auto; padding: 0 28px; width: 100%; }
.md-content-wrap { flex: 1; display: flex; flex-direction: column; }

/* ========== HEADER ========== */
.md-header {
  background: var(--hdr-bg);
  border-bottom: 1px solid var(--hdr-border);
  padding: 18px 0;
  position: sticky; top: 0; z-index: 100;
}
.md-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.md-header-brand { justify-self: start; }
.md-header-brand img { height: 28px; }
.md-header-center { justify-self: center; }
.md-header-right { justify-self: end; }
.md-user-menu {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  padding: 6px 10px; border-radius: 8px;
  cursor: pointer; position: relative;
  text-decoration: none;
}
.md-user-menu:hover { background: var(--field); color: var(--ink); }
.md-user-menu svg { width: 12px; height: 12px; }
.md-login-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff;
  padding: 8px 18px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  transition: background .15s;
}
.md-login-btn:hover { background: var(--navy-2); color: #fff; }

/* Header dropdown */
.md-dropdown { position: relative; }
/* Invisible bridge between trigger and menu so hover doesn't break */
.md-dropdown::after {
  content: ""; position: absolute; left: 0; right: 0;
  top: 100%; height: 12px;
  display: none;
}
.md-dropdown:hover::after { display: block; }
.md-dropdown-menu {
  display: none;
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line);
  border-radius: 10px; min-width: 160px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.15);
  overflow: hidden;
  z-index: 200;
}
.md-dropdown:hover .md-dropdown-menu,
.md-dropdown-menu:hover { display: block; }
.md-dropdown-menu a {
  display: block; padding: 10px 16px;
  font-size: 14px; color: var(--ink);
  transition: background .1s;
}
.md-dropdown-menu a:hover { background: var(--field); color: var(--ink); }

/* Flashes */
.md-flashes { padding: 12px 0 0; }
.md-flash {
  padding: 12px 18px; border-radius: 8px; margin-bottom: 10px;
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.md-flash.alert--success, .md-flash.bg--success { background: #e9f7ed; color: #1f7a3a; border: 1px solid #c5e3d0; }
.md-flash.alert--warning { background: #fdf3dd; color: #7a5100; border: 1px solid #f0daa0; }
.md-flash.alert--danger, .md-flash.alert--error, .md-flash.bg--error { background: #fdecee; color: var(--red); border: 1px solid #f5c5ca; }
.md-flash.bg--primary { background: #e8effd; color: var(--blue); border: 1px solid #c0d3f8; }
.md-flash .alert__close { cursor: pointer; opacity: .6; font-size: 18px; line-height: 1; }
.md-flash .alert__close:hover { opacity: 1; }

/* ========== MAIN ========== */
.md-main { flex: 1; padding: 36px 0 60px; }
.md-main--no-top { padding-top: 0; }

/* Page heading */
.md-page-h {
  font-size: 32px; font-weight: 800; color: var(--navy);
  margin: 0 0 24px; letter-spacing: -.02em;
}

/* ========== FOOTER ========== */
.md-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  background: #fff;
}
.md-footer-inner {
  text-align: center; font-size: 13px; color: var(--muted);
}
.md-footer-inner a { color: var(--navy); font-weight: 500; }
.md-footer-inner a:hover { color: var(--red); text-decoration: underline; }
.md-foot-sep { margin: 0 8px; color: var(--muted-2); }

/* ========== TABS ========== */
.md-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.md-tabs a {
  padding: 11px 20px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  border: 1px solid transparent; border-bottom: 0;
  border-radius: 8px 8px 0 0;
  margin-bottom: -1px;
  transition: color .15s;
}
.md-tabs a:hover { color: var(--ink); text-decoration: none; }
.md-tabs a.active {
  color: var(--red);
  background: #fff;
  border-color: var(--line);
}

/* ========== FORMS ========== */
.md-sect { margin-bottom: 44px; }
.md-sect:last-child { margin-bottom: 0; }
.md-sect-h {
  font-size: 20px; font-weight: 700; color: var(--ink);
  margin: 0 0 18px; letter-spacing: -.01em;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-2);
}
.md-form-row {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 18px; align-items: center;
  margin-bottom: 14px; max-width: 640px;
}
.md-form-row label { font-size: 14px; color: var(--ink); font-weight: 500; }
.md-input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff; font: inherit; font-size: 14px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.md-input:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(217,68,82,.1); }
textarea.md-input { resize: vertical; min-height: 120px; font-family: inherit; line-height: 1.5; }

/* ========== BUTTONS ========== */
.md-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 6px;
  font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.md-btn:hover { transform: translateY(-1px); }
.md-btn-red { background: var(--red); color: #fff; }
.md-btn-red:hover { background: var(--red-2); color: #fff; }
.md-btn-navy { background: var(--navy); color: #fff; }
.md-btn-navy:hover { background: var(--navy-2); color: #fff; }
.md-btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.md-btn-ghost:hover { background: var(--field); border-color: var(--muted-2); color: var(--ink); }
.md-btn-danger { background: #fff; color: var(--red); border-color: var(--line); }
.md-btn-danger:hover { background: #fef0f1; border-color: var(--red); color: var(--red); }
.md-btn-sm { padding: 7px 14px; font-size: 13px; }

/* ========== CARDS ========== */
.md-card {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.md-card + .md-card { margin-top: 16px; }
.md-card-h {
  padding: 14px 20px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between;
  background: #fcfcfd; border-radius: 10px 10px 0 0;
}
.md-card-h h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.md-card-b { padding: 18px 20px; }

/* ========== TABLE ========== */
.md-tbl { width: 100%; border-collapse: collapse; }
.md-tbl th {
  text-align: left; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  padding: 12px 20px; border-bottom: 1px solid var(--line-2); background: #fcfcfd;
}
.md-tbl td {
  padding: 13px 20px; border-bottom: 1px solid var(--line-2);
  font-size: 14px; color: var(--ink); vertical-align: middle;
}
.md-tbl tr:last-child td { border-bottom: 0; }
.md-tbl tr:hover td { background: #fcfcfd; }
.md-tbl td.mono { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--muted); }

/* ========== PILLS ========== */
.md-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.md-pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.md-pill-green { background: #e9f7ed; color: var(--green); }
.md-pill-green .dot { background: var(--green); }
.md-pill-red { background: #fdecee; color: var(--red); }
.md-pill-red .dot { background: var(--red); }
.md-pill-amber { background: #fdf3dd; color: var(--amber); }
.md-pill-amber .dot { background: var(--amber); }
.md-pill-muted { background: var(--field); color: var(--muted); }
.md-pill-muted .dot { background: var(--muted); }

/* ========== TOGGLE ========== */
.md-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
}
.md-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.md-toggle .track {
  width: 36px; height: 20px; border-radius: 999px;
  background: #d3d6dd; position: relative; transition: background .15s; flex: none;
}
.md-toggle .track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2);
  transition: transform .15s;
}
.md-toggle input:checked + .track { background: var(--red); }
.md-toggle input:checked + .track::after { transform: translateX(16px); }

/* Stateless toggle track (server-rendered on/off state, no checkbox needed) */
.md-toggle-track {
  display: inline-block; width: 36px; height: 20px; border-radius: 999px;
  background: #d3d6dd; position: relative; transition: background .15s; flex: none;
}
.md-toggle-track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2);
  transition: transform .15s;
}
.md-toggle-track.on { background: var(--green); }
.md-toggle-track.on::after { transform: translateX(16px); }

/* ========== DOWNLOAD HISTORY ========== */
.history-toggle {
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fcfcfd; margin-bottom: 28px;
}
.history-toggle h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.history-toggle p  { margin: 0; font-size: 13px; color: var(--muted); max-width: 560px; }
@media (max-width: 680px) { .history-toggle { grid-template-columns: 1fr; gap: 12px; } }

.summary-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 28px; }
.stat-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 16px 20px; }
.stat-card .lbl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.stat-card .val { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
@media (max-width: 680px) { .summary-row { grid-template-columns: 1fr 1fr; } }

.history-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.hist-search { flex: 1; min-width: 180px; position: relative; }
.hist-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.hist-search input {
  width: 100%; padding: 9px 12px 9px 34px;
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 14px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.hist-search input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,229,.12); }

.history-tbl .hist-filename { display: flex; align-items: center; gap: 10px; }
.hist-ico {
  width: 32px; height: 32px; border-radius: 6px; flex: none;
  background: var(--field); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.hist-ico svg { width: 14px; height: 14px; }
.hist-ico--failed { background: #fdecee; border-color: #f5c5ca; color: var(--red); }
.hist-ftext { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }

.hist-size-bar {
  display: block; height: 3px; border-radius: 99px;
  background: var(--navy); opacity: .25;
  width: var(--pct); max-width: 80px; margin-top: 4px;
  transition: opacity .15s;
}
tr:hover .hist-size-bar { opacity: .5; }

.hist-actions { display: flex; gap: 5px; justify-content: flex-end; }

.hist-empty {
  text-align: center; padding: 60px 20px;
  border: 1px dashed var(--line); border-radius: 10px;
  background: #fcfcfd; color: var(--muted);
}
.hist-empty h3 { margin: 0 0 6px; color: var(--ink); font-size: 16px; }
.hist-empty p  { margin: 0; font-size: 13.5px; }

/* Copy toast */
.hist-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--navy); color: #fff;
  padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 9999; white-space: nowrap;
}
.hist-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Icon-only action buttons for tables */
.md-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px;
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
  text-decoration: none; font: inherit; padding: 0;
}
.md-icon-btn:hover { background: var(--field); color: var(--ink); border-color: var(--muted-2); }
.md-icon-btn svg { width: 14px; height: 14px; }
.md-icon-btn--danger:hover { background: #fdecee; color: var(--red); border-color: #f5c5ca; }

/* ========== CHECKBOX ========== */
.md-check {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; cursor: pointer; font-size: 14px;
}
.md-check input { position: absolute; opacity: 0; pointer-events: none; }
.md-check .box {
  width: 20px; height: 20px; border-radius: 5px;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex: none;
  transition: background .15s, border-color .15s;
}
.md-check input:checked + .box { background: var(--red); border-color: var(--red); }
.md-check .box svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity .15s; }
.md-check input:checked + .box svg { opacity: 1; }

/* ========== HERO (landing) ========== */
.md-hero {
  background: var(--navy); color: #fff;
  position: relative; overflow: hidden;
  padding: 0 0 140px;
}
.md-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 22%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 60%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 70%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 35%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 18% 80%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 65% 85%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 42% 12%, rgba(255,255,255,.45) 50%, transparent 51%);
  pointer-events: none;
}
.md-hero-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 60px; position: relative; z-index: 4;
}
.md-hero-brand {
  display: flex; align-items: center; gap: 10px;
}
.md-hero-brand img { height: 30px; filter: brightness(0) invert(1); }
.md-hero-nav-links {
  display: flex; gap: 28px;
  font-size: 14px; color: #cdd3df;
}
.md-hero-nav-links a { transition: color .15s; }
.md-hero-nav-links a:hover { color: #fff; }
/* Pill-shaped auth button group */
.md-hero-auth {
  display: flex; gap: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 4px;
}
.md-hero-auth a {
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
  color: #cdd3df; transition: color .15s, background .15s;
}
.md-hero-auth a:hover { color: #fff; }
.md-hero-auth a.primary { background: var(--red); color: #fff; }
.md-hero-auth a.primary:hover { background: var(--red-2); color: #fff; }
.md-hero-grid {
  display: grid; grid-template-columns: 1.3fr .9fr; gap: 56px; align-items: center;
  position: relative; z-index: 2;
}
.md-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #e9d6a7; margin-bottom: 22px;
}
.md-hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.md-hero h1 {
  font-size: clamp(42px, 5.5vw, 64px); font-weight: 800;
  line-height: 1.02; letter-spacing: -.025em;
  margin: 0 0 20px; color: #fff;
}
/* Accent = red text + underline (not background highlight) */
.md-hero h1 .accent {
  color: var(--red); position: relative; white-space: nowrap;
}
.md-hero h1 .accent::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px; background: var(--red); border-radius: 2px;
}
.md-hero-sub {
  max-width: 480px; font-size: 17px; line-height: 1.55;
  color: #b9c0cc; margin: 0 0 30px;
}
/* Ghost pill CTA */
.md-hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.04);
  color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  transition: background .15s;
}
.md-hero-cta:hover { background: rgba(255,255,255,.1); color: #fff; }
.md-hero-cta svg { width: 14px; height: 14px; }
.md-hero-stats {
  margin-top: 44px; display: flex; gap: 36px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); max-width: 520px;
}
.md-hero-stat .num { font-size: 24px; font-weight: 700; color: #fff; }
.md-hero-stat .lbl { font-size: 12px; color: #8d96a6; text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }

/* Signup card */
.md-signup-card {
  background: #fff; color: var(--ink); border-radius: 14px; padding: 26px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  position: relative; z-index: 3;
}
.md-signup-tabs {
  display: flex; gap: 4px;
  background: #f3f4f7; padding: 4px; border-radius: 10px; margin-bottom: 22px;
}
.md-signup-tabs button {
  flex: 1; border: none; background: transparent;
  padding: 10px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.md-signup-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.md-signup-card .md-field { margin-bottom: 14px; }
.md-signup-card .md-field-label {
  display: block; font-size: 12px; font-weight: 600; color: var(--ink);
  margin-bottom: 6px;
}
.md-signup-card input[type=text],
.md-signup-card input[type=email],
.md-signup-card input[type=password] {
  width: 100%; border: 1px solid var(--line); background: var(--field);
  border-radius: 8px; padding: 12px 14px; font-size: 14px; font-family: inherit;
  color: var(--ink); outline: none; transition: border .15s, box-shadow .15s;
}
.md-signup-card input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(217,68,82,.1); background: #fff; }
.md-signup-submit {
  width: 100%; margin-top: 16px; background: var(--red); color: #fff;
  border: none; padding: 13px; border-radius: 8px;
  font-weight: 700; font-size: 14px; font-family: inherit; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 10px 24px -10px rgba(217,68,82,.55);
  cursor: pointer;
  transition: background .15s, transform .15s;
  text-decoration: none;
}
.md-signup-submit:hover { background: var(--red-2); transform: translateY(-1px); color: #fff; }
.md-signup-foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
.md-signup-foot a { color: var(--ink); font-weight: 600; }
.md-field-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin: 6px 0 0; }
.md-field-row a { color: var(--red); font-weight: 600; }

/* ── Hero load + mouse animations ── */
@keyframes md-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes md-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.7); opacity: .55; }
}
.md-hero-nav     { animation: md-fade-up .55s cubic-bezier(.22,.68,0,1.2) both; }
.md-hero-eyebrow { animation: md-fade-up .55s cubic-bezier(.22,.68,0,1.2) .08s both; }
.md-hero h1      { animation: md-fade-up .6s  cubic-bezier(.22,.68,0,1.2) .18s both; }
.md-hero-sub     { animation: md-fade-up .55s cubic-bezier(.22,.68,0,1.2) .28s both; }
.md-hero-cta     { animation: md-fade-up .55s cubic-bezier(.22,.68,0,1.2) .38s both; }
.md-hero-stats   { animation: md-fade-up .55s cubic-bezier(.22,.68,0,1.2) .48s both; }
.md-signup-card  { animation: md-fade-up .65s cubic-bezier(.22,.68,0,1.2) .12s both; will-change: transform; }
.md-hero-eyebrow .dot { animation: md-dot-pulse 2.4s ease-in-out 1s infinite; }
/* Cursor aurora — uses --cx/--cy set by JS */
.md-hero::after {
  content: "";
  position: absolute; border-radius: 50%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(217,68,82,.15) 0%, transparent 70%);
  left: var(--cx, 30%); top: var(--cy, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 1;
  transition: left .12s linear, top .12s linear;
}

/* Hosts panel — overlaps the hero bottom */
.md-hosts-wrap { margin-top: -100px; position: relative; z-index: 5; padding-bottom: 0; background: transparent; }
.md-hosts-panel {
  background: #fff; border-radius: 18px;
  padding: 44px 40px 36px;
  box-shadow: 0 30px 80px -30px rgba(15,23,38,.35);
}
.md-hosts-title {
  text-align: center; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .22em; color: var(--muted);
  margin: 0 0 4px;
}
.md-hosts-rule {
  width: 38px; height: 2px; background: var(--red);
  margin: 0 auto 30px; border-radius: 2px;
}
.md-hosts-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px;
}
.md-host {
  aspect-ratio: 1/1;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: #fff; transition: border-color .15s, transform .15s; cursor: pointer;
}
.md-host:hover { border-color: var(--red); transform: translateY(-2px); color: var(--ink); }
.md-host-logo { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; }
.md-host-logo img { width: 100%; height: 100%; object-fit: contain; }
.md-host-logo-ph {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
  font-family: 'JetBrains Mono', monospace; letter-spacing: -.02em;
}
.md-host-name { font-size: 11px; font-weight: 600; color: var(--ink); text-align: center; }

/* Landing sections */
.md-section { padding: 110px 0; }
.md-section-bg-paper { background: var(--paper); }
.md-section-bg-white { background: #fff; }
.md-section-eyebrow {
  text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
.md-section-headline {
  text-align: center; font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 14px;
}
.md-section-headline em { font-style: normal; color: var(--red); }
/* Red underline rule after section headline */
.md-section-rule {
  width: 38px; height: 2px; background: var(--red);
  margin: 0 auto; border-radius: 2px;
}
.md-intro-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; margin-top: 70px; }
.md-illust { display: flex; align-items: center; justify-content: center; }
.md-steps h3 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 28px; }
.md-steps h3 em { color: var(--red); font-style: normal; }
.md-step {
  display: grid; grid-template-columns: 36px 1fr; gap: 18px;
  margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.md-step:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.md-step-num { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; color: var(--red); padding-top: 2px; }
.md-step h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.md-step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Why-choose grid */
.md-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 70px; }

.md-why-card {
  text-align: center; padding: 32px 22px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .15s, transform .15s;
}
.md-why-card:hover { border-color: var(--red); transform: translateY(-3px); }
.md-why-card .ico {
  width: 56px; height: 56px; border-radius: 14px;
  margin: 0 auto 18px;
  background: #fef0f1; display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.md-why-card .ico svg { width: 26px; height: 26px; }
.md-why-card h4 { margin: 0 0 8px; font-size: 15px; font-weight: 700; text-align: center; }
.md-why-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* Pricing */
.md-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 940px; margin: 56px auto 0; }
.md-plan {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px 34px;
  position: relative; display: flex; flex-direction: column;
  box-shadow: 0 10px 28px -18px rgba(15,23,38,.15);
  transition: transform .2s, box-shadow .2s;
}
.md-plan:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -22px rgba(22,26,38,.2); }
.md-plan.featured { background: var(--navy); color: #fff; border-color: transparent; transform: translateY(-10px); box-shadow: 0 28px 60px -22px rgba(15,23,38,.55); }
.md-plan.featured:hover { transform: translateY(-14px); }
.md-plan-badge {
  position: absolute; top: -11px; left: 24px;
  padding: 5px 11px; border-radius: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.md-plan-badge { background: var(--red); color: #fff; }
.md-plan-badge.popular { background: #e9d6a7; color: var(--navy); }
.md-plan-name { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin: 0 0 6px; }
.md-plan.featured .md-plan-name { color: rgba(255,255,255,.6); }
.md-plan-term { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 22px; }
.md-plan .price .per { font-size: 14px; color: var(--muted); }
.md-plan.featured .price .per { color: #8d96a6; }
.md-plan .billed { font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.md-plan.featured .billed { color: #8d96a6; }
.md-plan-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.md-plan-features li { display: flex; gap: 10px; font-size: 14px; color: #4a5263; line-height: 1.5; }
.md-plan.featured .md-plan-features li { color: #cdd3df; }
.md-plan-features li::before {
  content: ""; flex: none;
  width: 16px; height: 16px; margin-top: 3px; border-radius: 50%;
  background: #fef0f1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d94452' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 10px 10px; background-repeat: no-repeat; background-position: center;
}
.md-plan.featured .md-plan-features li::before { background-color: rgba(217,68,82,.15); }
/* Push price + billed + CTA to bottom */
.md-plan .price { margin-top: auto; display: flex; align-items: baseline; gap: 6px; font-size: 42px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 6px; }
.md-plan.featured .price span:first-child { color: var(--red); }
.md-plan-cta {
  width: 100%;
  background: var(--navy); color: #fff;
  border: none; padding: 13px; border-radius: 10px;
  font-weight: 700; font-size: 14px; font-family: inherit; letter-spacing: .02em;
  cursor: pointer; transition: background .15s, transform .1s;
  display: block; text-align: center; text-decoration: none;
}
.md-plan-cta:hover { background: var(--navy-2); transform: translateY(-1px); color: #fff; }
.md-plan.featured .md-plan-cta { background: var(--red); color: #fff; }
.md-plan.featured .md-plan-cta:hover { background: var(--red-2); color: #fff; }

/* Landing footer */
.md-land-footer { background: #0f1726; color: #b9c0cc; padding: 80px 0 40px !important; text-align: left; }
.md-land-footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px; align-items: start;
}
/* Ensure footer brand logo is left-aligned block */
.md-land-footer-brand img { display: block; }
.md-land-footer h5 {
  color: #fff; font-size: 13px; text-transform: uppercase;
  letter-spacing: .14em; margin: 0 0 16px; font-weight: 600; text-align: left;
}
.md-land-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.md-land-footer ul li { text-align: left; }
.md-land-footer ul a { font-size: 13.5px; color: #b9c0cc; transition: color .15s; }
.md-land-footer ul a:hover { color: #fff; }
.md-land-footer .blurb { font-size: 13.5px; line-height: 1.6; color: #8d96a6; max-width: 320px; margin: 14px 0 0; text-align: left; }
.md-land-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #6f7787;
}
.md-land-footer-bottom .links { display: flex; gap: 18px; }
.md-land-footer-bottom a { color: #6f7787; transition: color .15s; }
.md-land-footer-bottom a:hover { color: #fff; }

/* ========== DOWNLOADER PAGE ========== */
.md-link-bar { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 28px; }
.md-link-wrap {
  background: var(--field) !important; border: 1px solid var(--line) !important; border-radius: 8px !important; overflow: hidden;
  transition: border-color .15s, background .15s;
}
.md-link-wrap:focus-within { background: #fff !important; border-color: var(--navy) !important; }
.md-link-textarea, .md-link-input {
  width: 100%; border: 0 !important; outline: 0; background: transparent !important;
  padding: 12px 16px; font: inherit; font-size: 14px; color: var(--ink);
  box-shadow: none !important; border-radius: 0 !important;
}
.md-link-textarea { min-height: 44px; max-height: 240px; resize: none; line-height: 1.5; }
.md-link-textarea::placeholder, .md-link-input::placeholder { color: var(--muted-2); }

/* Host support grid on downloader */
.md-support-section { margin-top: 48px; }
.md-support-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin: 0 0 18px; }

/* ========== DETAIL PAGE ========== */
.md-result-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px;
  margin-bottom: 28px;
}
.md-result-meta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.md-result-field { margin-bottom: 14px; }
.md-result-field .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.md-result-field .val { font-size: 16px; font-weight: 600; color: var(--ink); }
.md-result-field .val.host-name { font-size: 18px; }
.md-copy-bar { display: flex; gap: 10px; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.md-copy-url { flex: 1; background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; font: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ========== CONTACT PAGE ========== */
.md-contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.md-contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.md-contact-info { background: var(--field); border-radius: 14px; padding: 28px; }
.md-contact-info h3 { font-size: 16px; font-weight: 700; margin: 0 0 18px; }
.md-contact-info p { font-size: 14px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.md-contact-info a { color: var(--red); font-weight: 500; }

/* ========== STATUS PAGE ========== */
.md-status-summary { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.md-summary-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; background: #fff; }
.md-summary-card.hero { background: #f1f9f4; border-color: #c5e3d0; }
.md-summary-card .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.md-summary-card .val { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.md-summary-card.hero .val { color: var(--green); }
.md-summary-card .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.md-status-tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.md-status-tools h2 { margin: 0; font-size: 18px; font-weight: 600; }
.md-filter-pills { display: flex; gap: 6px; }
.md-filter-pills button { padding: 6px 12px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); cursor: pointer; transition: all .15s; }
.md-filter-pills button.active, .md-filter-pills button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.md-quota { display: flex; align-items: center; gap: 10px; }
.md-quota-bar { width: 70px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.md-quota-bar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.md-quota .txt { font-size: 13px; color: var(--muted); }
.md-quota.unlimited .txt { color: var(--green); font-weight: 500; }

/* ========== DANGER ZONE ========== */
.md-danger-card { border: 1px solid #f3d3d7; border-radius: 10px; background: #fff; }
.md-danger-card-b { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.md-danger-title { font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.md-danger-sub { font-size: 13px; color: var(--muted); }

.delete-modal-box {
  background: #fff; border-radius: 14px; padding: 32px;
  max-width: 480px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.delete-modal-ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: #fdecee; color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.delete-modal-ico svg { width: 24px; height: 24px; }
.delete-confirm-field input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(217,68,82,.1); }

/* ========== SUBSCRIPTION / PAYMENTS ========== */
.sub-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  background: #fff;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 16px;
}
.sub-card--active {
  background: linear-gradient(180deg, #f6faff, #fff 60%);
  border-color: #cfe0fb;
}
.sub-meta-lbl {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 6px;
}
.sub-meta h3 { margin: 0 0 8px; font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.sub-meta p  { margin: 0; font-size: 13.5px; color: var(--muted); }
.sub-renews  { margin-top: 14px; font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.sub-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.sub-price {
  font-size: 36px; font-weight: 800;
  color: var(--ink); letter-spacing: -.02em; line-height: 1;
}
.sub-per { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }

.change-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.plan-pick {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: #fff;
  cursor: pointer;
  display: block;
  transition: border-color .15s, box-shadow .15s;
  position: relative;
}
.plan-pick:hover { border-color: var(--blue); }
.plan-pick--selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,111,229,.12);
}
.plan-name {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin-bottom: 4px;
}
.plan-amt {
  font-size: 28px; font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 4px;
}
.plan-per { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan-tot { font-size: 12.5px; color: var(--muted); }
.plan-badge {
  position: absolute; top: -9px; right: 14px;
  background: var(--blue); color: #fff;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  padding: 3px 8px; border-radius: 4px;
}

.pay-method {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.pay-ico {
  width: 46px; height: 30px; border-radius: 5px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  flex: none;
}
.pay-info { flex: 1; }
.pay-l1 { font-weight: 600; color: var(--ink); }
.pay-l2 { font-size: 12.5px; color: var(--muted); }

.md-btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.md-btn-blue:hover { background: var(--blue-2); border-color: var(--blue-2); color: #fff; }
.md-btn-blue:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.md-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

@media (max-width: 760px) {
  .sub-card { grid-template-columns: 1fr; }
  .sub-actions { align-items: flex-start; }
  .change-grid { grid-template-columns: 1fr; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .md-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .md-hero h1 { font-size: 44px; }
  .md-signup-card { max-width: 420px; margin-inline: auto; }
  .md-hosts-grid { grid-template-columns: repeat(4, 1fr); }
  .md-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .md-why-grid { grid-template-columns: repeat(2, 1fr); }
  .md-price-grid { grid-template-columns: 1fr; max-width: 420px; }
  .md-plan.featured { transform: none; }
  .md-land-footer-top { grid-template-columns: 1fr 1fr; }
  .md-contact-grid { grid-template-columns: 1fr; }
  .md-status-summary { grid-template-columns: 1fr 1fr; }
  .md-hero-nav-links { display: none; }
}
@media (max-width: 640px) {
  .md-form-row { grid-template-columns: 1fr; gap: 6px; }
  .md-header-inner { grid-template-columns: 1fr auto; }
  .md-header-center { display: none; }
  .md-tabs { overflow-x: auto; }
  .md-link-bar { grid-template-columns: 1fr; }
  .md-result-meta { grid-template-columns: 1fr; }
  .md-why-grid { grid-template-columns: 1fr 1fr; }
  .md-hosts-grid { grid-template-columns: repeat(3, 1fr); }
  .md-hero-auth { display: none; }
}

/* ========== PREMIUM PAGE ========== */
.prem-hero {
  background: var(--navy); color: #fff;
  padding: 56px 40px 48px; text-align: center;
}
.prem-hero-inner { max-width: 620px; margin: 0 auto; }
.prem-hero .md-section-eyebrow { color: rgba(255,255,255,.65); border-color: rgba(255,255,255,.2); margin-bottom: 16px; }
.prem-title { font-size: clamp(26px,5vw,42px); font-weight: 800; line-height: 1.15; margin: 0 0 14px; color: #fff; }
.prem-sub   { font-size: 16px; color: rgba(255,255,255,.72); margin: 0; line-height: 1.6; }

.prem-layout {
  display: flex; gap: 24px; padding: 36px 40px 0;
  max-width: 1100px; margin: 0 auto; align-items: flex-start;
}
.prem-col       { flex: 1 1 0; min-width: 0; }
.prem-col-hosts { flex: 1.1; }
.prem-col-plan  { flex: 0.9; }

/* host list */
.prem-hosts-card { padding: 0 !important; overflow: hidden; }
.prem-hosts-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.prem-hosts-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.prem-hosts-count { font-size: 12px; color: var(--muted); background: var(--field); border-radius: 20px; padding: 2px 10px; }
.prem-host-list   { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.prem-host-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 20px; border-bottom: 1px solid var(--line); transition: background .12s;
}
.prem-host-row:last-child { border-bottom: none; }
.prem-host-row:hover { background: var(--field); }
.prem-host-logo  { width: 90px; height: 26px; object-fit: contain; flex-shrink: 0; }
.prem-host-name  { flex: 1; font-size: 13px; color: var(--muted); }
.prem-host-price { font-size: 13px; font-weight: 600; color: var(--muted-2); white-space: nowrap; }
.prem-host-price--strike { text-decoration: line-through; }
.prem-price-period { font-size: 11px; font-weight: 400; }

.prem-hosts-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px; background: var(--field); border-top: 1px solid var(--line);
}
.prem-hosts-total-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.prem-hosts-total-price { font-size: 14px; font-weight: 700; color: var(--muted-2); text-decoration: line-through; }

.prem-hosts-empty { padding: 28px 20px; text-align: center; font-size: 14px; color: var(--muted); }
.prem-hosts-footer { padding: 10px 20px; border-top: 1px solid var(--line); }
.prem-hosts-footer-text { font-size: 12px; color: var(--muted); }

/* plan card */
.prem-plan-card   { padding: 28px; }
.prem-plan-badge  {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: #fff; background: var(--navy); border-radius: 20px;
  padding: 3px 12px; margin-bottom: 16px;
}
.prem-instead-of  { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.prem-instead-of s { color: var(--muted-2); }
.prem-plan-price  { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.prem-price-amount { font-size: 52px; font-weight: 800; color: var(--ink); line-height: 1; }
.prem-price-per   { font-size: 17px; color: var(--muted); }
.prem-plan-tagline { font-size: 14px; color: var(--muted); margin: 0 0 16px; }

.prem-savings-pill {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: #1a7a3c; background: #e6f4ec; border-radius: 20px;
  padding: 4px 12px; margin-bottom: 20px;
}

.prem-features    { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.prem-feature     { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); line-height: 1.4; }
.prem-feature-ico { color: var(--navy); font-weight: 800; flex-shrink: 0; }

.prem-cta-btn     { display: flex !important; width: 100%; justify-content: center; font-size: 15px; padding: 13px 20px !important; }

.prem-alt-links   { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
.prem-alt-link    { font-size: 13px; color: var(--muted); text-decoration: none; }
.prem-alt-link:hover { color: var(--ink); text-decoration: underline; }
.prem-alt-sep     { color: var(--line); }

@media (max-width: 768px) {
  .prem-hero   { padding: 36px 20px 32px; }
  .prem-layout { flex-direction: column; padding: 20px 16px 0; }
}
