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

:root {
    --bg: #050811;
    --bg-elevated: #090f1d;
    --card: #0c1324;
    --card-hover: #10192e;
    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.24);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --primary: #06b6d4;
    --primary-bright: #22d3ee;
    --accent: #10b981;
    --secondary: #3b82f6;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code {
    background: #070c18;
    border: 1px solid rgba(56, 189, 248, 0.22);
    padding: 2px 7px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.82em;
    color: #38bdf8;
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tabular { font-variant-numeric: tabular-nums; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Subtle architectural background grid for landing */
.bg-grid-pattern {
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(6, 182, 212, 0.16), transparent 65%),
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
    background-position: top center, top center, top center;
}

/* ================= TOPBAR ================= */
.topbar {
    position: sticky; top: 0; z-index: 60;
    background: rgba(5, 8, 17, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px; gap: 20px;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; color: #fff;
}
.brand-mark {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, #06b6d4, #10b981);
    display: inline-flex; align-items: center; justify-content: center;
    color: #041016; flex-shrink: 0;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}
.badge-pill {
    font-size: 0.7rem; font-weight: 600; color: #94a3b8;
    background: rgba(148, 163, 184, 0.08); border: 1px solid var(--border);
    padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.nav-links {
    display: flex; align-items: center; gap: 24px;
    font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-menu-btn {
    display: none; background: transparent; border: 1px solid var(--border);
    color: var(--text); width: 38px; height: 38px; border-radius: 9px;
    align-items: center; justify-content: center; cursor: pointer;
}
.mobile-drawer {
    display: none; flex-direction: column; gap: 10px;
    padding: 16px 24px 20px; background: #070d1a; border-bottom: 1px solid var(--border);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a { padding: 8px 0; font-size: 0.94rem; color: var(--text-muted); font-weight: 500; }
.mobile-drawer a:hover { color: #fff; }

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 0.88rem;
    border: 1px solid transparent; cursor: pointer; transition: all .18s ease; white-space: nowrap;
    font-family: var(--font-sans);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
    background: #f8fafc; color: #050811;
    box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.btn-primary:hover { background: #e2e8f0; transform: translateY(-1px); }
.btn-accent {
    background: linear-gradient(135deg, #06b6d4, #10b981); color: #041016; font-weight: 700;
}
.btn-accent:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-secondary {
    background: rgba(148, 163, 184, 0.08); border-color: var(--border-strong); color: #e2e8f0;
}
.btn-secondary:hover { background: rgba(148, 163, 184, 0.14); border-color: rgba(148, 163, 184, 0.4); color: #fff; }
.btn-outline { background: transparent; border-color: var(--border-strong); color: #cbd5e1; }
.btn-outline:hover { border-color: #38bdf8; color: #fff; }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 8px 12px; }
.btn-ghost:hover { color: #fff; }
.btn-danger { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.btn-sm { padding: 7px 13px; font-size: 0.8rem; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 0.94rem; border-radius: 10px; }

/* ================= HERO ================= */
.hero { padding: 84px 0 56px; text-align: center; position: relative; }
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(15, 23, 42, 0.8); border: 1px solid var(--border-strong);
    color: #cbd5e1; padding: 6px 14px; border-radius: 999px;
    font-size: 0.78rem; font-weight: 500; margin-bottom: 24px;
}
.hero-badge .dot {
    width: 7px; height: 7px; border-radius: 50%; background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22); display: inline-block;
}
.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.6rem);
    font-weight: 800; line-height: 1.08; letter-spacing: -0.035em;
    color: #ffffff; margin-bottom: 18px;
}
.hero h1 .text-gradient {
    background: linear-gradient(135deg, #f8fafc 15%, #38bdf8 65%, #34d399 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
    color: var(--text-muted); font-size: 1.06rem; line-height: 1.65;
    max-width: 600px; margin: 0 auto 30px; font-weight: 400;
}
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }

/* Architectural Metrics Strip */
.metrics-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: rgba(12, 19, 36, 0.65); backdrop-filter: blur(8px);
    overflow: hidden;
}
.metric-item {
    padding: 20px 18px; text-align: center;
    border-right: 1px solid var(--border);
}
.metric-item:last-child { border-right: none; }
.metric-val {
    font-family: var(--font-mono); font-size: 1.35rem; font-weight: 700;
    color: #fff; letter-spacing: -0.02em; display: block; margin-bottom: 2px;
}
.metric-lbl { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

/* ================= SECTIONS ================= */
.section { padding: 76px 0; border-top: 1px solid rgba(148, 163, 184, 0.08); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-eyebrow {
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary-bright);
    margin-bottom: 10px; display: inline-block;
}
.section-head h2 {
    font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 700;
    letter-spacing: -0.03em; color: #fff; margin-bottom: 10px; line-height: 1.18;
}
.section-head p { color: var(--text-muted); font-size: 0.96rem; }

/* ================= INFRASTRUCTURE CARDS ================= */
.infra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.infra-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; display: flex; flex-direction: column;
    transition: border-color .2s ease, transform .2s ease;
}
.infra-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.infra-media { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #070d1c; overflow: hidden; }
.infra-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.infra-card:hover .infra-img { transform: scale(1.03); }
.infra-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(12, 19, 36, 0.92) 0%, rgba(12, 19, 36, 0.15) 55%, transparent 100%);
    pointer-events: none;
}
.infra-pill {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
    padding: 4px 9px; border-radius: 6px;
    background: rgba(5, 8, 17, 0.78); backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 163, 184, 0.22); color: #e2e8f0; white-space: nowrap;
}
.infra-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.infra-body h3 { font-size: 1.05rem; font-weight: 600; color: #fff; letter-spacing: -0.015em; }
.infra-body p  { font-size: 0.87rem; color: var(--text-muted); line-height: 1.55; }
.infra-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.infra-tag {
    font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; color: var(--text-muted);
    background: rgba(15, 23, 42, 0.85); border: 1px solid var(--border);
    padding: 3px 8px; border-radius: 6px; white-space: nowrap;
}

/* ================= PRICING (4 CARDS + CALCULATOR) ================= */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan-card {
    position: relative; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px 22px; display: flex; flex-direction: column;
    transition: border-color .2s ease, transform .2s ease;
}
.plan-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.plan-card.featured {
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.08) 0%, var(--card) 42%);
    border-color: rgba(6, 182, 212, 0.55);
    box-shadow: 0 16px 40px -16px rgba(6, 182, 212, 0.28);
}
.plan-badge {
    position: absolute; top: -11px; left: 22px;
    background: #06b6d4; color: #041016;
    font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
    letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px;
}
.plan-cx-label {
    font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
    color: var(--primary-bright); text-transform: uppercase; letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.plan-card h3 { font-size: 1.08rem; font-weight: 600; color: #fff; letter-spacing: -0.015em; }
.plan-price {
    font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.03em;
    margin: 14px 0 6px; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 3px;
}
.plan-price .currency { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.plan-price .period { font-size: 0.84rem; font-weight: 500; color: var(--text-subtle); }
.plan-desc { color: var(--text-muted); font-size: 0.84rem; line-height: 1.5; margin-bottom: 18px; min-height: 40px; }
.plan-divider { height: 1px; background: var(--border); margin-bottom: 16px; }
.plan-features {
    list-style: none; display: flex; flex-direction: column; gap: 10px;
    font-size: 0.84rem; color: #cbd5e1; margin-bottom: 22px; flex: 1;
}
.plan-features li { display: flex; align-items: center; gap: 8px; }
.plan-features li svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

/* Sleek Horizontal On-Demand Calculator */
.slider-box {
    margin-top: 24px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px 28px;
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center;
}
.slider-range {
    width: 100%; height: 6px; border-radius: 999px; background: #1e293b;
    accent-color: #06b6d4; cursor: pointer; margin: 16px 0 8px;
}
.slider-summary {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 18px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ================= CHANNEL GRID + CATEGORY FILTER ================= */
.grade-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin-bottom: 20px;
}
.cat-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-pill {
    padding: 7px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 500;
    background: transparent; border: 1px solid var(--border); color: var(--text-muted);
    cursor: pointer; transition: all .15s ease; font-family: var(--font-sans);
}
.cat-pill:hover { color: #fff; border-color: var(--border-strong); }
.cat-pill.active { background: #f8fafc; color: #050811; border-color: #f8fafc; font-weight: 600; }

.search-wrap { position: relative; min-width: 260px; flex: 0 1 320px; }
.search-wrap svg {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 15px; height: 15px; color: var(--text-subtle); pointer-events: none;
}
.search-wrap input { padding-left: 36px; height: 38px; font-size: 0.85rem; }

.ch-grid-v2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 12px; }
.ch-card-v2 {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 14px; display: flex; flex-direction: column; gap: 12px;
    transition: border-color .18s ease, background .18s ease;
}
.ch-card-v2:hover { border-color: var(--border-strong); background: var(--card-hover); }
.ch-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ch-logo-svg { width: 108px; height: 38px; flex-shrink: 0; display: block; }
.ch-logo-box {
    width: 108px; height: 38px; border-radius: 8px; background: #070c18;
    border: 1px solid rgba(255,255,255,0.09); display: flex; align-items: center; justify-content: center;
    padding: 4px 8px; overflow: hidden; flex-shrink: 0;
}
.ch-logo-img { max-width: 100%; max-height: 30px; object-fit: contain; display: block; }
.ch-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
.ch-sub {
    font-size: 0.8rem; color: var(--text-muted); font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.ch-badges { display: flex; align-items: center; gap: 5px; flex-shrink: 0; flex-wrap: nowrap; }

.tag, .ch-badge {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 5px;
    white-space: nowrap !important; flex-shrink: 0 !important; line-height: 1.1;
    padding: 3px 7px; border-radius: 6px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
}
.tag-ativo, .ch-badge.live  { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.28); }
.tag-teste, .ch-badge.fps   { background: rgba(6, 182, 212, 0.12); color: #38bdf8; border: 1px solid rgba(6, 182, 212, 0.25); }
.tag-pendente               { background: rgba(245, 158, 11, 0.14); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.tag-bloqueado              { background: rgba(239, 68, 68, 0.14); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.ch-badge.codec             { background: rgba(148, 163, 184, 0.1); color: #cbd5e1; border: 1px solid var(--border); }
.ch-badge.bkp               { background: rgba(99, 102, 241, 0.14); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.26); }

/* ================= TRIAL SPLIT SECTION ================= */
.trial-shell {
    background: var(--card); border: 1px solid var(--border); border-radius: 20px;
    display: grid; grid-template-columns: 1fr 1.15fr; overflow: hidden;
}
.trial-info {
    padding: 36px 32px;
    background: linear-gradient(160deg, rgba(6, 182, 212, 0.08) 0%, rgba(12, 19, 36, 0.2) 100%);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.trial-info h2 { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.025em; color: #fff; line-height: 1.2; margin-bottom: 10px; }
.trial-info p { color: var(--text-muted); font-size: 0.9rem; }
.trial-checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.trial-checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: #cbd5e1; }
.trial-checklist li svg { width: 16px; height: 16px; color: var(--primary-bright); margin-top: 2px; flex-shrink: 0; }
.trial-form-col { padding: 36px 32px; }

/* ================= SHARED ADMIN & CLIENT COMPONENTS ================= */
.subtabs {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px;
    background: #080d1a; border: 1px solid var(--border); padding: 7px; border-radius: 14px;
}
.subtab {
    padding: 8px 14px; border-radius: 9px; font-size: 0.84rem; font-weight: 600; color: var(--text-muted);
    transition: all .15s ease; display: inline-flex; align-items: center; gap: 6px;
}
.subtab:hover { color: #fff; background: rgba(148, 163, 184, 0.08); }
.subtab.active {
    background: rgba(6, 182, 212, 0.16); border: 1px solid rgba(6, 182, 212, 0.4); color: #fff;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-box, .stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.stat-box strong, .stat-value { display: block; font-size: 1.5rem; font-weight: 800; color: #38bdf8; font-family: var(--font-mono); }
.stat-box span, .stat-label { font-size: 0.82rem; color: var(--text-muted); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.card h3 { color: #fff; font-size: 1.08rem; margin-bottom: 4px; }
.card p { color: var(--text-muted); font-size: 0.88rem; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.8rem; color: #cbd5e1; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea, select, input[type="text"], input[type="password"], input[type="email"], input[type="number"] {
    width: 100%; background: #070c18; border: 1px solid var(--border-strong); color: #fff;
    border-radius: 9px; padding: 10px 12px; font-size: 0.88rem; font-family: var(--font-sans);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14);
}
input[type="checkbox"] { width: auto; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 0.8rem; color: #38bdf8; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 0.88rem; }
.alert-success { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35); color: #6ee7b7; }
.alert-danger, .alert-error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35); color: #fca5a5; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; }

.conn-meter-wrap { width: 100%; height: 10px; background: rgba(148,163,184,0.14); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.conn-meter-bar { height: 100%; background: linear-gradient(90deg, #06b6d4, #10b981); transition: width 0.4s ease; }

.ip-chip {
    display: inline-flex; align-items: center; gap: 8px; background: #070c18;
    border: 1px solid rgba(56, 189, 248, 0.28); padding: 5px 10px; border-radius: 7px;
    font-family: var(--font-mono); font-size: 0.8rem; color: #e2e8f0;
}
.pix-box { background: #070c18; border: 1px solid #10b981; border-radius: 14px; padding: 22px; text-align: center; margin-bottom: 22px; }
.pix-qr { background: #fff; padding: 12px; border-radius: 10px; display: inline-block; margin: 12px 0; }
.pix-qr img { width: 200px; height: 200px; display: block; }

.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-top: 20px; }
.status-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-ping {
    font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; color: #34d399;
    background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.32);
    padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}

.toast {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    background: #0c1324; border: 1px solid var(--primary); color: #fff;
    padding: 11px 16px; border-radius: 10px; font-size: 0.85rem; font-weight: 500;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5); display: none;
}

/* ================= FOOTER ================= */
.footer {
    border-top: 1px solid var(--border); padding: 42px 0 36px;
    background: #04070f; color: var(--text-muted); font-size: 0.84rem;
}
.footer-grid {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 20px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
    .infra-grid { grid-template-columns: repeat(2, 1fr); }
    .slider-box { grid-template-columns: 1fr; gap: 18px; }
    .trial-shell { grid-template-columns: 1fr; }
    .trial-info { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: inline-flex; }
    .metrics-strip { grid-template-columns: repeat(2, 1fr); }
    .metric-item:nth-child(2) { border-right: none; }
    .metric-item:nth-child(1), .metric-item:nth-child(2) { border-bottom: 1px solid var(--border); }
    .infra-grid, .plans-grid { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 40px; }
    .trial-info, .trial-form-col { padding: 24px 20px; }
}


/* ================= v3 — REAL PNG LOGOS, BOOTSTRAP ICONS & SEARCH FIX ================= */
.brand-logo-img {
    display: block;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.22);
}
.auth-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.auth-logo-img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: block;
    box-shadow: 0 10px 26px rgba(6, 182, 212, 0.25);
}
.bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: -0.08em;
}
.plan-features li i.bi {
    color: var(--accent);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.trial-checklist li i.bi {
    color: var(--primary-bright);
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Fix definitivo para ícone da busca não sobrepor o texto */
.search-wrap {
    position: relative;
    min-width: 260px;
    flex: 0 1 320px;
}
.search-wrap i.bi-search {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-subtle);
    pointer-events: none;
    z-index: 2;
}
.search-wrap input {
    padding-left: 40px !important;
    height: 40px;
    font-size: 0.86rem;
}

/* Logos reais dos canais (via logo_proxy.php) e fallback PNG limpo */
.ch-logo-box {
    width: 118px;
    height: 42px;
    border-radius: 8px;
    background: #070c18;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    overflow: hidden;
    flex-shrink: 0;
    gap: 7px;
}
.ch-logo-img {
    max-width: 100%;
    max-height: 32px;
    object-fit: contain;
    display: block;
}
.ch-logo-fallback {
    justify-content: flex-start;
    padding: 4px 9px;
    background: linear-gradient(135deg, #0b1326, #111c36);
}
.ch-fallback-ico {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.ch-fallback-txt {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.grade-footer-bar {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.ui-icon-sm { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(56,189,248,0.28); }


/* ================= v4.3 — LOGO LIMPO SEM BORDA + MINIATURA AO VIVO ================= */
.ch-logo-box {
    width: auto !important;
    min-width: 56px;
    height: 48px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    justify-content: flex-start !important;
    overflow: visible !important;
}
.ch-logo-img {
    max-width: 145px !important;
    max-height: 46px !important;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}
.ch-logo-fallback {
    background: transparent !important;
    padding: 0 !important;
}
.live-ch-ico {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.75);
    padding: 2px;
    flex-shrink: 0;
    vertical-align: middle;
}


/* ================= v4.4 — PROFESSIONAL UI ICON BADGES & IP WHITELIST CONTROLS ================= */
.ui-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(15, 23, 42, 0.85));
    color: #38bdf8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(6, 182, 212, 0.12);
}
.ui-icon-badge.blue {
    border-color: rgba(59, 130, 246, 0.34);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(15, 23, 42, 0.85));
    color: #60a5fa;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(59, 130, 246, 0.14);
}
.ui-icon-badge.emerald {
    border-color: rgba(16, 185, 129, 0.34);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(15, 23, 42, 0.85));
    color: #34d399;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(16, 185, 129, 0.14);
}
.ui-icon-badge.sm {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 0.88rem;
}

/* Interactive IP Whitelist chips with Edit & Delete buttons */
.ip-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0a1020;
    border: 1px solid rgba(56, 189, 248, 0.28);
    padding: 5px 8px 5px 11px;
    border-radius: 9px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #e2e8f0;
}
.ip-chip-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 2px;
    padding-left: 7px;
    border-left: 1px solid rgba(148, 163, 184, 0.18);
}
.ip-chip-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all .15s ease;
    padding: 0;
}
.ip-chip-btn.edit:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}
.ip-chip-btn.del:hover {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}
.ip-edit-inline {
    display: none;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #0a1224;
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.ip-edit-inline.open {
    display: flex;
}
