/* ═══════════════════════════════════════════════════════════════
   TVPlus IPTV — Frontend CSS  v5.0
   ALL selectors scoped to .tvplus-wrap — safe for Elementor.
   Global reset removed. No position:sticky. No 100vh on sidebar.
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS variables (scoped) ─────────────────────────────────── */
.tvplus-wrap {
  --tv-bg:        #0d0d0d;
  --tv-sidebar:   #111111;
  --tv-card:      #1a1a1a;
  --tv-card2:     #202020;
  --tv-border:    #2a2a2a;
  --tv-blue:      #1d8cf8;
  --tv-blue-h:    #1475d6;
  --tv-blue-dim:  rgba(29,140,248,.12);
  --tv-text:      #e8e8e8;
  --tv-muted:     #888888;
  --tv-green:     #22c55e;
  --tv-red:       #ef4444;
  --tv-orange:    #f97316;
  --tv-radius:    10px;
  --tv-font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Box sizing — scoped only ───────────────────────────────── */
.tvplus-wrap,
.tvplus-wrap * {
  box-sizing: border-box;
}

/* ── Outer wrapper — NO 100vh, works inside any Elementor section */
.tvplus-wrap {
  display: flex;
  flex-direction: row;
  background: var(--tv-bg);
  color: var(--tv-text);
  font-family: var(--tv-font);
  font-size: 14px;
  line-height: 1.5;
  border-radius: var(--tv-radius);
  overflow: hidden;
  /* Elementor-safe: min-height instead of 100vh */
  min-height: 700px;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR — fixed width, normal scroll, NO sticky, NO 100vh
   ═══════════════════════════════════════════════════════════════ */
.tvplus-sidebar {
  width: 210px;
  min-width: 210px;
  background: var(--tv-sidebar);
  border-right: 1px solid var(--tv-border);
  display: flex;
  flex-direction: column;
  /* Normal scroll within sidebar, no sticky */
  overflow-y: auto;
  flex-shrink: 0;
}

.tvplus-sidebar-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--tv-border);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tv-text);
}
.tvplus-sidebar-logo:hover { color: var(--tv-text); text-decoration: none; }
.tvplus-sidebar-logo-icon { font-size: 24px; line-height: 1; flex-shrink: 0; }
.tvplus-sidebar-logo-text { font-size: 14px; font-weight: 700; color: #fff; }
.tvplus-sidebar-logo-text span { display: block; font-size: 10px; font-weight: 400; color: var(--tv-muted); margin-top: 1px; }

.tvplus-nav {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  flex: 1;
}
.tvplus-nav li { margin: 0; padding: 0; }

.tvplus-nav li a,
.tvplus-nav li button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: var(--tv-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .12s, color .12s;
  font-family: var(--tv-font);
  line-height: 1.4;
  text-align: left;
}
.tvplus-nav li a:hover,
.tvplus-nav li button:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
  text-decoration: none;
}
.tvplus-nav li.active > a,
.tvplus-nav li.active > button {
  color: #fff;
  background: var(--tv-blue-dim);
  border-left-color: var(--tv-blue);
}

.tvplus-nav-icon {
  width: 17px;
  height: 17px;
  opacity: .65;
  flex-shrink: 0;
}
.tvplus-nav li.active .tvplus-nav-icon,
.tvplus-nav li:hover .tvplus-nav-icon { opacity: 1; }

.tvplus-nav-sep {
  height: 1px;
  background: var(--tv-border);
  margin: 6px 18px;
}

.tvplus-sub-expiry-pill {
  margin: 0 12px 14px;
  background: var(--tv-card);
  border: 1px solid var(--tv-border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
}
.tvplus-sub-expiry-pill .label { color: var(--tv-muted); margin-bottom: 2px; }
.tvplus-sub-expiry-pill .val { font-weight: 700; }
.tvplus-sub-expiry-pill .val.active   { color: var(--tv-green); }
.tvplus-sub-expiry-pill .val.expired  { color: var(--tv-red); }
.tvplus-sub-expiry-pill .val.expiring { color: var(--tv-orange); }
.tvplus-sub-expiry-pill .val.no-sub   { color: var(--tv-muted); }

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════ */
.tvplus-main {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  overflow-y: auto;
  background: var(--tv-bg);
}

/* Top bar */
.tvplus-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tvplus-page-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

/* Expiry badge top-right */
.tvplus-expiry-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--tv-card);
  border: 1px solid var(--tv-border);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  flex-shrink: 0;
}
.tvplus-expiry-badge .eb-icon { font-size: 15px; opacity: .55; }
.tvplus-expiry-badge .eb-info .eb-lbl { color: var(--tv-muted); font-size: 11px; display: block; line-height: 1.2; }
.tvplus-expiry-badge .eb-info .eb-val { font-weight: 700; color: #fff; font-size: 13px; display: block; }
.tvplus-expiry-badge .eb-info .eb-val.active   { color: var(--tv-green); }
.tvplus-expiry-badge .eb-info .eb-val.expired  { color: var(--tv-red); }
.tvplus-expiry-badge .eb-info .eb-val.expiring { color: var(--tv-orange); }
.tvplus-expiry-badge .eb-info .eb-val.no-sub   { color: var(--tv-muted); }

/* Panel switching */
.tvplus-panel { display: none; }
.tvplus-panel.active { display: block; }

/* ═══════════════════════════════════════════════════════════════
   DEVICE CARDS
   ═══════════════════════════════════════════════════════════════ */
.tvplus-subtitle {
  color: var(--tv-muted);
  font-size: 13.5px;
  margin: 0 0 18px;
}

.tvplus-device-card {
  background: var(--tv-card);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  padding: 24px 26px;
  margin-bottom: 14px;
}
.tvplus-device-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.tvplus-device-icon {
  width: 40px;
  height: 40px;
  background: var(--tv-blue-dim);
  border: 1px solid rgba(29,140,248,.22);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.tvplus-device-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  padding: 0;
}

.tvplus-step-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--tv-muted);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin: 0 0 3px;
}
.tvplus-step-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 3px;
}
.tvplus-step-desc {
  font-size: 12.5px;
  color: var(--tv-muted);
  margin: 0 0 14px;
}
.tvplus-step-divider {
  border: none;
  border-top: 1px solid var(--tv-border);
  margin: 16px 0;
}

/* App buttons */
.tvplus-apps-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tvplus-app-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--tv-card2);
  border: 1px solid var(--tv-border);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--tv-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .12s, background .12s;
  font-family: var(--tv-font);
  cursor: pointer;
}
.tvplus-app-btn:hover { border-color: var(--tv-blue); background: var(--tv-blue-dim); color: #fff; text-decoration: none; }
.tvplus-app-btn .app-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: #2563eb;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.tvplus-app-btn .or-sep { color: var(--tv-muted); font-weight: 400; font-size: 12px; }

/* Credential field */
.tvplus-cred-field {
  background: var(--tv-card2);
  border: 1px solid var(--tv-border);
  border-radius: 8px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.tvplus-cred-field .cf-wrap { flex: 1; min-width: 0; }
.tvplus-cred-field .cf-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--tv-muted);
  display: block;
  margin-bottom: 3px;
  line-height: 1;
}
.tvplus-cred-field .cf-value {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tv-blue);
  word-break: break-all;
  display: block;
  line-height: 1.3;
}
.tvplus-cred-field .cf-value.blurred { filter: blur(5px); cursor: pointer; user-select: none; }
.tvplus-cred-field .cf-actions { display: flex; gap: 5px; flex-shrink: 0; }

/* M3U + QR row */
.tvplus-m3u-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.tvplus-m3u-row .tvplus-cred-field { flex: 1; margin-bottom: 0; }
.tvplus-qr-box {
  width: 78px; height: 78px; flex-shrink: 0;
  background: var(--tv-card2);
  border: 1px solid var(--tv-border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--tv-muted); text-align: center;
}

/* Creds 2-column row */
.tvplus-creds-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.tvplus-creds-row .tvplus-cred-field { margin-bottom: 0; }

/* Icon copy/toggle button */
.tvplus-icon-btn {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--tv-border);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--tv-muted);
  font-size: 14px;
  transition: all .12s;
  flex-shrink: 0;
  font-family: var(--tv-font);
}
.tvplus-icon-btn:hover { background: var(--tv-blue-dim); border-color: var(--tv-blue); color: var(--tv-blue); }
.tvplus-icon-btn.tvplus-copied { background: rgba(34,197,94,.12); border-color: var(--tv-green); color: var(--tv-green); }

/* Primary button */
.tvplus-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--tv-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, transform .1s;
  font-family: var(--tv-font);
  line-height: 1.3;
}
.tvplus-btn-primary:hover { background: var(--tv-blue-h); transform: translateY(-1px); color: #fff; text-decoration: none; }
.tvplus-btn-primary:active { transform: none; }

/* Secondary button */
.tvplus-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,.06);
  color: var(--tv-muted);
  border: 1px solid var(--tv-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .12s;
  font-family: var(--tv-font);
}
.tvplus-btn-secondary:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }

/* Alert boxes */
.tvplus-alert {
  padding: 11px 15px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.4;
}
.tvplus-alert-success { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.25); color: #4ade80; }
.tvplus-alert-error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.25); color: #f87171; }
.tvplus-alert-info    { background: rgba(29,140,248,.1); border: 1px solid rgba(29,140,248,.2); color: #60a5fa; }
.tvplus-alert-warn    { background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.2); color: #fb923c; }

/* No-sub notice */
.tvplus-no-sub-notice {
  background: rgba(29,140,248,.07);
  border: 1px solid rgba(29,140,248,.18);
  border-radius: var(--tv-radius);
  padding: 14px 18px;
  color: var(--tv-muted);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.tvplus-no-sub-notice a { color: var(--tv-blue); text-decoration: none; font-weight: 600; }
.tvplus-no-sub-notice a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   SUBSCRIPTIONS PANEL
   ═══════════════════════════════════════════════════════════════ */
.tvplus-subs-grid { display: flex; flex-direction: column; gap: 12px; }

.tvplus-sub-card {
  background: var(--tv-card);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  padding: 18px 20px;
  border-left: 3px solid var(--tv-green);
}
.tvplus-sub-card.expired  { border-left-color: var(--tv-red); }
.tvplus-sub-card.expiring { border-left-color: var(--tv-orange); }

.tvplus-sub-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tvplus-sub-expire-val {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
}
.tvplus-sub-expire-val.active   { color: var(--tv-green); }
.tvplus-sub-expire-val.expired  { color: var(--tv-red); }
.tvplus-sub-expire-val.expiring { color: var(--tv-orange); }

.tvplus-sub-creds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.tvplus-sub-creds .tvplus-cred-field { margin-bottom: 0; }

.tvplus-sub-footer {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--tv-border);
  flex-wrap: wrap;
  align-items: center;
}

/* Badges */
.tvplus-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  line-height: 1.4;
}
.tvplus-badge.m3u      { background: rgba(29,140,248,.15); color: #60a5fa; }
.tvplus-badge.mag      { background: rgba(251,191,36,.12);  color: #fbbf24; }
.tvplus-badge.protocol { background: rgba(167,139,250,.15); color: #a78bfa; }
.tvplus-badge.active   { background: rgba(34,197,94,.12);   color: #22c55e; }
.tvplus-badge.expired  { background: rgba(239,68,68,.12);   color: #f87171; }
.tvplus-badge.expiring { background: rgba(249,115,22,.12);  color: #fb923c; }

/* ═══════════════════════════════════════════════════════════════
   PROFILE / PASSWORD PANEL
   ═══════════════════════════════════════════════════════════════ */
.tvplus-form-card {
  background: var(--tv-card);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  padding: 26px 28px;
  max-width: 500px;
}
.tvplus-form-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tv-border);
}
.tvplus-form-group { margin-bottom: 16px; }
.tvplus-form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--tv-muted);
  margin-bottom: 6px;
}
.tvplus-form-input {
  width: 100%;
  background: var(--tv-card2);
  border: 1.5px solid var(--tv-border);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 14px;
  color: var(--tv-text);
  font-family: var(--tv-font);
  transition: border-color .12s, box-shadow .12s;
  outline: none;
}
.tvplus-form-input:focus {
  border-color: var(--tv-blue);
  box-shadow: 0 0 0 3px rgba(29,140,248,.15);
}
.tvplus-form-input::placeholder { color: #444; }
.tvplus-form-input:disabled { opacity: .45; cursor: not-allowed; }
.tvplus-inline-msg { font-size: 13px; font-weight: 600; padding: 6px 0; }
.tvplus-inline-msg.ok  { color: var(--tv-green); }
.tvplus-inline-msg.err { color: var(--tv-red); }

/* ═══════════════════════════════════════════════════════════════
   CLAIM ORDER
   ═══════════════════════════════════════════════════════════════ */
.tvplus-claim-card {
  background: var(--tv-card);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  padding: 20px 24px;
  margin-top: 18px;
}
.tvplus-claim-card h3 { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.tvplus-claim-card p { color: var(--tv-muted); font-size: 13px; margin: 0 0 14px; }
.tvplus-claim-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.tvplus-claim-row .tvplus-form-group { margin: 0; }

/* ═══════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════ */
.tvplus-faq-wrap { max-width: 680px; }
.tvplus-faq-item {
  background: var(--tv-card);
  border: 1px solid var(--tv-border);
  border-radius: 9px;
  margin-bottom: 8px;
  overflow: hidden;
}
.tvplus-faq-item summary {
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-size: 14px;
}
.tvplus-faq-item summary::-webkit-details-marker { display: none; }
.tvplus-faq-item summary .faq-ico { color: var(--tv-muted); font-size: 18px; font-weight: 300; flex-shrink: 0; margin-left: 10px; }
.tvplus-faq-body { padding: 0 18px 16px; color: var(--tv-muted); font-size: 13.5px; line-height: 1.7; }
.tvplus-faq-body strong { color: #ccc; }

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES (Login / Register) — dark
   ═══════════════════════════════════════════════════════════════ */
.tvplus-auth-wrap {
  min-height: 80vh;
  background: var(--tv-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  font-family: var(--tv-font);
  font-size: 14px;
  color: var(--tv-text);
  box-sizing: border-box;
  width: 100%;
}
.tvplus-auth-wrap * { box-sizing: border-box; }

.tvplus-auth-card {
  background: var(--tv-card);
  border: 1px solid var(--tv-border);
  border-radius: 14px;
  padding: 36px 40px;
  width: 100%;
  max-width: 430px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.tvplus-auth-logo { font-size: 40px; text-align: center; display: block; margin-bottom: 10px; }
.tvplus-auth-title { margin: 0 0 4px; font-size: 21px; font-weight: 800; text-align: center; color: #fff; }
.tvplus-auth-subtitle { margin: 0 0 24px; font-size: 13.5px; color: var(--tv-muted); text-align: center; }

.tvplus-auth-card .tvplus-form-group { margin-bottom: 14px; }
.tvplus-auth-card .tvplus-form-group label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--tv-muted); margin-bottom: 6px;
}
.tvplus-auth-card .tvplus-form-input {
  width: 100%; background: var(--tv-card2);
  border: 1.5px solid var(--tv-border); border-radius: 8px;
  padding: 10px 13px; font-size: 14px; color: var(--tv-text);
  font-family: var(--tv-font); outline: none; transition: border-color .12s, box-shadow .12s;
}
.tvplus-auth-card .tvplus-form-input:focus {
  border-color: var(--tv-blue);
  box-shadow: 0 0 0 3px rgba(29,140,248,.15);
}
.tvplus-auth-card .tvplus-form-input::placeholder { color: #444; }

.tvplus-input-wrap { position: relative; }
.tvplus-input-wrap .tvplus-form-input { padding-right: 42px; }
.tvplus-pass-toggle {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 15px; color: var(--tv-muted); padding: 2px; line-height: 1;
}
.tvplus-pass-toggle:hover { color: var(--tv-blue); }

.tvplus-form-row-split {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; font-size: 13px; color: var(--tv-muted);
}
.tvplus-checkbox-label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.tvplus-forgot-link { color: var(--tv-blue); text-decoration: none; font-size: 13px; }
.tvplus-forgot-link:hover { text-decoration: underline; }

.tvplus-btn-full { width: 100%; justify-content: center; padding: 13px; font-size: 15px; }

.tvplus-auth-footer {
  text-align: center; font-size: 13.5px; color: var(--tv-muted);
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--tv-border);
}
.tvplus-auth-footer a { color: var(--tv-blue); font-weight: 600; text-decoration: none; }
.tvplus-auth-footer a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   ELEMENTOR COMPATIBILITY
   Override Elementor section padding when dashboard is inside one
   ═══════════════════════════════════════════════════════════════ */

/* If a parent Elementor container has class .tvplus-elementor-section,
   it removes its own padding so dashboard fills the space cleanly */
.tvplus-elementor-section .elementor-widget-container { padding: 0 !important; }
.tvplus-elementor-section .elementor-container { max-width: 100% !important; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .tvplus-wrap { flex-direction: column; min-height: unset; }

  .tvplus-sidebar {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid var(--tv-border);
  }

  .tvplus-nav {
    display: flex;
    flex-wrap: wrap;
    padding: 6px 8px;
    gap: 2px;
  }
  .tvplus-nav li a,
  .tvplus-nav li button {
    padding: 7px 11px;
    font-size: 12.5px;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: 6px;
    white-space: nowrap;
  }
  .tvplus-nav li.active > a,
  .tvplus-nav li.active > button {
    border-left: none;
    border-bottom-color: var(--tv-blue);
    background: var(--tv-blue-dim);
  }
  .tvplus-nav-sep { display: none; }
  .tvplus-sub-expiry-pill { display: none; }
  .tvplus-sidebar-logo { padding: 14px 16px; }

  .tvplus-main { padding: 18px 16px; }

  .tvplus-creds-row,
  .tvplus-sub-creds { grid-template-columns: 1fr; }

  .tvplus-topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tvplus-expiry-badge { align-self: stretch; }
  .tvplus-apps-row { flex-direction: column; }
  .tvplus-m3u-row { flex-direction: column; }
  .tvplus-qr-box { display: none; }
  .tvplus-form-card { max-width: 100%; }
}

@media (max-width: 480px) {
  .tvplus-main { padding: 14px 12px; }
  .tvplus-auth-card { padding: 24px 18px; }
  .tvplus-device-card { padding: 18px 16px; }
  .tvplus-claim-row .tvplus-form-input { width: 100% !important; }
}
