/* A fonte (Inter) é carregada via <link> no index.php, para landing e painel. */

:root {
    --bg-main: #06080f;
    --bg-sidebar: #0b1220;
    --bg-card: rgba(16, 24, 42, 0.78);
    --bg-card-hover: rgba(28, 39, 66, 0.9);
    --bg-input: #090f1d;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --success: #10b981;
    --danger: #f43f5e;
    --warning: #f59e0b;
    --info: #0ea5e9;
}

html { scroll-behavior: smooth; }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* EFETOS DE GLOW DE FUNDO */
.bg-glow-top {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.08) 50%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-bottom {
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    bottom: -220px;
    left: -80px;
    pointer-events: none;
    z-index: 0;
}

.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.page-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.brand-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: -1.45rem 0 1.6rem;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 120;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
}
#app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

aside {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    top: 0; left: 0;
    z-index: 100;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 14px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.nav-link:hover, .nav-item.active .nav-link {
    background: rgba(99, 102, 241, 0.12);
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateX(3px);
}

.user-box {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-name { font-weight: 700; font-size: 0.9rem; color: #fff; }
.user-email { font-size: 0.75rem; color: var(--text-muted); }

/* MAIN CONTENT CONTAINER */
main {
    margin-left: 280px;
    flex: 1;
    padding: 2.25rem 3rem;
    max-width: 1600px;
}

.header-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-heading { font-size: 1.85rem; font-weight: 800; }

/* TAB SECTIONS */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

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

/* CARDS & CONTAINERS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.metric-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.05);
}

.metric-title { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.metric-value { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 0.25rem; }

/* GRÁFICOS CONTAINER */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.charts-grid-2 { grid-template-columns: 1fr 1fr; }

@media (max-width: 1200px) {
    .charts-grid, .charts-grid-2 { grid-template-columns: 1fr; }
}

.chart-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 1.75rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* TABELAS ENTERPRISE */
.data-table-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1.1rem 1.25rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.92rem;
    color: #e2e8f0;
}

tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* BADGES & DOTS */
.badge {
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-allow { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-block { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

/* BOTÕES & AÇÕES */
.btn {
    padding: 0.8rem 1.4rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.55);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.14); }

/* MODAIS */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-card {
    background: #0f172a;
    border: 1px solid var(--border-glow);
    border-radius: 26px;
    width: 100%;
    max-width: 680px;
    padding: 2.25rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

/* CODE VIEWER BOX */
.code-box {
    background: #050811;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: #38bdf8;
    max-height: 380px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* SANDBOX STEP BOX */
.step-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================================
   UI PRO — CARDS DE OPÇÃO, SWITCHES, CHIPS E PRESETS
   ============================================================ */

.section-block {
    background: rgba(9, 15, 29, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.1rem 1.15rem;
    margin-top: 1.15rem;
}
.section-block > .section-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}
.section-block > .section-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.opt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.7rem;
}

.opt-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.95rem;
    background: rgba(19, 27, 46, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}
.opt-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}
.opt-card input[type="checkbox"] { display: none; }
.opt-card .opt-emoji {
    font-size: 1.15rem;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 10px;
    flex-shrink: 0;
}
.opt-card .opt-text { flex: 1; min-width: 0; display: block; }
.opt-card .opt-title { display: block; font-size: 0.86rem; font-weight: 700; color: var(--text-main); }
.opt-card .opt-desc { display: block; font-size: 0.73rem; color: var(--text-muted); margin-top: 0.15rem; line-height: 1.3; }

.switch {
    width: 42px; height: 24px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.switch::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #64748b;
    transition: all 0.2s ease;
}
.opt-card input:checked ~ .switch { background: var(--primary-gradient); }
.opt-card input:checked ~ .switch::after { left: 21px; background: #fff; }
.opt-card:has(input:checked) {
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(99, 102, 241, 0.09);
    box-shadow: inset 0 0 24px rgba(99,102,241,0.08);
}
.opt-card:has(input:checked) .opt-emoji { background: rgba(99, 102, 241, 0.25); }

/* Chips de filtro / presets */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(19, 27, 46, 0.7);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}
.chip:hover { color: var(--text-main); border-color: rgba(99,102,241,0.4); }
.chip.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(99,102,241,0.35);
}

.btn-danger {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fb7185;
}
.btn-danger:hover { background: rgba(244, 63, 94, 0.22); }

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.1rem;
}
.toolbar .search-input {
    width: 260px;
    padding: 0.55rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
}

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; width: 100%; }
.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 1.6rem;
}
.panel-card h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 0.35rem; }
.panel-card .panel-sub { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.2rem; }

/* ============================================================
   FORMULÁRIOS
   ============================================================ */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea,
.search-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: #090f1d;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-group textarea { min-height: 84px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.search-input:focus {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder,
.search-input::placeholder { color: #4b5871; }
.form-group select option { background: #090f1d; color: var(--text-main); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   GUIA PASSO A PASSO
   ============================================================ */
.guide-wrap { display: flex; flex-direction: column; gap: 1.25rem; max-width: 940px; }
.alert-warn {
    display: flex; gap: 0.75rem; align-items: flex-start;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 16px;
    padding: 1rem 1.15rem;
    font-size: 0.87rem;
    color: #fcd9a0;
    line-height: 1.55;
}
.alert-warn .alert-icon { font-size: 1.1rem; line-height: 1.3; }
.step-list { list-style: none; padding: 0; margin: 0.4rem 0 0; display: flex; flex-direction: column; gap: 1rem; }
.step-list > li { display: flex; gap: 0.85rem; align-items: flex-start; }
.step-num {
    flex-shrink: 0;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff; font-size: 0.78rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}
.step-num.sm { width: 22px; height: 22px; font-size: 0.7rem; margin-right: 0.35rem; vertical-align: middle; }
.step-title { font-size: 0.92rem; font-weight: 700; color: var(--text-main); }
.step-desc { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; margin-top: 0.2rem; }
.split-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.split-box {
    background: rgba(19, 27, 46, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.9rem 1rem;
}
.split-box.highlight { border-color: rgba(99, 102, 241, 0.55); background: rgba(99, 102, 241, 0.09); }
.split-title { font-size: 0.88rem; font-weight: 700; color: var(--text-main); }
.split-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; line-height: 1.5; }
.ascii-flow {
    margin-top: 1rem;
    background: #05090f;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #93a3bd;
    overflow-x: auto;
    white-space: pre;
}
.tip-list { margin: 0.6rem 0 0; padding-left: 1.15rem; font-size: 0.85rem; color: var(--text-muted); line-height: 1.85; }
.tip-list strong { color: var(--text-main); }
.guide-wrap code, .tip-list code, .step-desc code {
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 6px;
    padding: 0.06rem 0.35rem;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 0.82em;
    color: #c7d2fe;
}

/* ============================================================
   LANDING — GELO DARK
   ============================================================ */
body.is-landing {
    --ice: #7dd3fc;
    --ice-deep: #38bdf8;
    --frost: #e0f2fe;
    --glacier: #bae6fd;
    --primary: #38bdf8;
    --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #7dd3fc 52%, #e0f2fe 100%);
    --border-glow: rgba(125, 211, 252, 0.4);
    --text-muted: #9fb6c9;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(56, 189, 248, 0.16), transparent 55%),
        radial-gradient(900px 500px at 0% 100%, rgba(14, 165, 233, 0.1), transparent 50%),
        #02080e;
    font-family: 'Manrope', 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}
body.is-landing .bg-glow-top,
body.is-landing .bg-glow-bottom,
body.is-landing .bg-grid { display: none; }

body.is-landing h1,
body.is-landing h2,
body.is-landing .pricing-value,
body.is-landing .path-num {
    font-family: 'Syne', 'Plus Jakarta Sans', sans-serif;
}

.is-landing .btn-primary {
    background: var(--primary-gradient);
    color: #031018;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.28);
}
.is-landing .btn-primary:hover {
    box-shadow: 0 14px 36px rgba(125, 211, 252, 0.4);
}
.is-landing .btn-secondary {
    background: rgba(125, 211, 252, 0.06);
    border: 1px solid rgba(125, 211, 252, 0.22);
}
.btn-lg { padding: 0.95rem 1.45rem; font-size: 0.95rem; }
.btn-whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: #86efac;
    border: 1px solid rgba(74, 222, 128, 0.35);
}
.btn-whatsapp:hover { background: rgba(37, 211, 102, 0.22); color: #fff; }

.ice-stage {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.ice-aurora {
    position: absolute;
    width: 70vw;
    height: 70vw;
    max-width: 820px;
    max-height: 820px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
    animation: auroraDrift 18s ease-in-out infinite alternate;
}
.ice-aurora-a {
    top: -18%;
    right: -8%;
    background: radial-gradient(circle, rgba(56,189,248,0.55), rgba(14,165,233,0.08) 55%, transparent 70%);
}
.ice-aurora-b {
    bottom: -22%;
    left: -12%;
    background: radial-gradient(circle, rgba(186,230,253,0.22), rgba(8,47,73,0.2) 50%, transparent 70%);
    animation-duration: 24s;
    animation-delay: -6s;
}
.ice-veil {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 20%, black 10%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 20%, black 10%, transparent 72%);
}
.ice-flakes span {
    position: absolute;
    top: -8%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #e0f2fe;
    opacity: 0.35;
    box-shadow: 0 0 8px #7dd3fc;
    animation: flakeFall linear infinite;
}

@keyframes auroraDrift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-6%, 8%, 0) scale(1.08); }
}
@keyframes flakeFall {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    12% { opacity: 0.5; }
    100% { transform: translateY(110vh) translateX(40px); opacity: 0; }
}
@keyframes shine {
    0% { transform: translateX(-120%) skewX(-18deg); }
    100% { transform: translateX(220%) skewX(-18deg); }
}
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(125, 211, 252, 0); }
}
@keyframes chartRise {
    from { transform: scaleY(0.2); opacity: 0.3; }
    to { transform: scaleY(1); opacity: 1; }
}

.landing {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem 3.5rem;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(to bottom, rgba(2,8,14,0.92), rgba(2,8,14,0.55) 75%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.landing-nav.scrolled {
    border-bottom-color: rgba(125, 211, 252, 0.12);
    background: rgba(2, 8, 14, 0.86);
}

.landing-brand {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #f0f9ff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Syne', sans-serif;
}
.ice-mark {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background:
        linear-gradient(135deg, rgba(224,242,254,0.95), rgba(14,165,233,0.4)),
        #082f49;
    box-shadow: 0 0 18px rgba(125, 211, 252, 0.45);
    position: relative;
}
.ice-mark::after {
    content: '';
    position: absolute;
    inset: 5px 5px 6px 8px;
    border-right: 2px solid #02080e;
    border-bottom: 2px solid #02080e;
    transform: rotate(45deg);
    opacity: 0.75;
}

.landing-links {
    display: flex;
    gap: 1.35rem;
}
.landing-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    position: relative;
}
.landing-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 1px;
    background: var(--ice);
    transition: width 0.25s ease;
}
.landing-links a:hover { color: #f0f9ff; }
.landing-links a:hover::after { width: 100%; }
.landing-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 1.25rem 1rem;
    background: rgba(2, 10, 16, 0.96);
    border-bottom: 1px solid rgba(125,211,252,0.15);
}
.landing-links.open a { padding: 0.7rem 0; }

.landing-nav-actions {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}
.landing-nav-actions .btn {
    padding: 0.58rem 1rem;
    font-size: 0.82rem;
}
.landing-menu-btn {
    display: none;
    width: 42px; height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(125,211,252,0.2);
    background: rgba(8, 24, 36, 0.8);
    color: #e0f2fe;
    font-size: 1.1rem;
    cursor: pointer;
}

.hero { padding: 2.4rem 0 4rem; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: rgba(8, 47, 73, 0.45);
    color: #bae6fd;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.35rem;
}
.pulse-live {
    width: 8px; height: 8px; border-radius: 50%;
    background: #7dd3fc;
    animation: livePulse 1.8s ease-out infinite;
}
.hero h1 {
    font-size: clamp(2.4rem, 5.4vw, 4.05rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.045em;
    color: #f8fbff;
}
.hero h1 span {
    background: linear-gradient(120deg, #e0f2fe 0%, #38bdf8 45%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-lead {
    max-width: 540px;
    margin: 1.15rem 0 1.7rem;
    color: #9fb6c9;
    font-size: 1.08rem;
    line-height: 1.75;
}
.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.2rem;
    margin-top: 1.6rem;
    color: #7a93a8;
    font-size: 0.8rem;
    font-weight: 600;
}
.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.hero-trust span::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
}

.ice-frame {
    background: linear-gradient(180deg, rgba(14, 40, 56, 0.78), rgba(4, 14, 22, 0.92));
    border: 1px solid rgba(186, 230, 253, 0.18);
    border-radius: 24px;
    padding: 1.1rem;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}
.ice-frame::before {
    content: '';
    position: absolute;
    top: 0; left: -40%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(224,242,254,0.08), transparent);
    animation: shine 5.5s ease-in-out infinite;
}
.ice-frame-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    color: #7dd3fc;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.ice-frame-bar span {
    width: 8px; height: 8px; border-radius: 50%;
    background: #38bdf8;
    opacity: 0.45;
}
.ice-frame-bar span:first-child { background: #7dd3fc; opacity: 1; }
.ice-frame-bar em { margin-left: auto; font-style: normal; color: #93c5fd; }
.ice-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.ice-metrics div {
    background: rgba(2, 8, 14, 0.55);
    border: 1px solid rgba(125,211,252,0.12);
    border-radius: 14px;
    padding: 0.75rem 0.8rem;
}
.ice-metrics small { display: block; color: #7a93a8; font-size: 0.7rem; }
.ice-metrics strong { font-size: 1.15rem; color: #e0f2fe; }
.ice-chart {
    height: 92px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 0.4rem 0.2rem 0.7rem;
}
.ice-chart i {
    flex: 1;
    display: block;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #e0f2fe, #0ea5e9);
    transform-origin: bottom;
    animation: chartRise 1.1s cubic-bezier(.2,.8,.2,1) both;
    opacity: 0.85;
}
.ice-chart i:nth-child(2) { animation-delay: 0.08s; }
.ice-chart i:nth-child(3) { animation-delay: 0.14s; }
.ice-chart i:nth-child(4) { animation-delay: 0.2s; }
.ice-chart i:nth-child(5) { animation-delay: 0.26s; }
.ice-chart i:nth-child(6) { animation-delay: 0.32s; }
.ice-chart i:nth-child(7) { animation-delay: 0.38s; }
.ice-chart i:nth-child(8) { animation-delay: 0.44s; }
.ice-feed { display: flex; flex-direction: column; gap: 0.45rem; }
.ice-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: rgba(2,8,14,0.5);
    font-size: 0.78rem;
    color: #9fb6c9;
}
.ice-row b { font-size: 0.7rem; letter-spacing: 0.06em; }
.ice-row.ok b { color: #7dd3fc; }
.ice-row.no b { color: #fda4af; }

.landing-section { padding: 3.4rem 0 1.4rem; }
.landing .section-head { margin-bottom: 1.8rem; }
.section-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 0.55rem;
}
.section-title {
    font-size: clamp(1.7rem, 3.2vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #f0f9ff;
}
.section-sub {
    color: var(--text-muted);
    margin: 0.65rem 0 0;
    max-width: 560px;
    line-height: 1.7;
}
.section-sub a { color: #7dd3fc; }

.path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.path-card {
    padding: 1.45rem 1.3rem 1.5rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(12,36,52,0.7), rgba(4,14,22,0.8));
    border: 1px solid rgba(125, 211, 252, 0.14);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.path-card:hover {
    transform: translateY(-6px);
    border-color: rgba(186, 230, 253, 0.35);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.12);
}
.path-num {
    font-size: 1.7rem;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 0.7rem;
    letter-spacing: -0.04em;
}
.path-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.path-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.feature-card {
    background: rgba(6, 22, 32, 0.72);
    border: 1px solid rgba(125, 211, 252, 0.12);
    border-radius: 22px;
    padding: 1.3rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(125, 211, 252, 0.35);
}
.feature-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #7dd3fc;
    margin-bottom: 0.85rem;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: stretch;
    margin-top: 0.6rem;
}
.pricing-grid.in-app { max-width: 1080px; }
.pricing-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(10,32,46,0.85), rgba(4,14,22,0.92));
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: 26px;
    padding: 1.7rem 1.45rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.pricing-card:hover { transform: translateY(-6px); border-color: rgba(125,211,252,0.32); }
.pricing-card.featured {
    border-color: rgba(186, 230, 253, 0.45);
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.28), rgba(4, 16, 24, 0.95));
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(14, 165, 233, 0.2);
}
.pricing-card.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(224,242,254,0.08), transparent 70%);
    animation: shine 6s ease-in-out infinite;
    pointer-events: none;
}
.pricing-ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: #031018;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    white-space: nowrap;
}
.pricing-name {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7dd3fc;
}
.pricing-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin: 0.5rem 0 1.1rem;
    min-height: 2.6em;
    line-height: 1.45;
}
.pricing-price { display: flex; align-items: flex-start; gap: 0.2rem; color: #f0f9ff; }
.pricing-currency { font-size: 1rem; font-weight: 700; margin-top: 0.55rem; }
.pricing-value { font-size: 3.1rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.pricing-cents { font-size: 1.1rem; font-weight: 700; margin-top: 0.45rem; }
.pricing-period { font-size: 0.8rem; color: var(--text-muted); margin: 0.35rem 0 1.15rem; }
.pricing-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.4rem;
    flex: 1;
}
.pricing-list li {
    font-size: 0.88rem;
    color: #d7e8f3;
    padding-left: 1.35rem;
    position: relative;
}
.pricing-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #7dd3fc;
    font-weight: 800;
}

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 820px; }
.faq-item {
    background: rgba(6, 22, 32, 0.72);
    border: 1px solid rgba(125, 211, 252, 0.12);
    border-radius: 16px;
    padding: 0.2rem 1.1rem;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    padding: 1rem 0;
    color: #f0f9ff;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    float: right;
    color: #7dd3fc;
    font-weight: 800;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    padding-bottom: 1rem;
}
.faq-item a { color: #7dd3fc; }

.login-section { padding-top: 1.4rem; }
.login-shell {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(180deg, rgba(10,32,46,0.8), rgba(4,14,22,0.9));
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: 28px;
    padding: 2rem;
}
.login-card { min-width: 0; }
.login-hint { margin-top: 1rem; text-align: center; font-size: 0.78rem; color: var(--text-muted); }
.is-landing .form-group input:focus {
    border-color: rgba(125, 211, 252, 0.7);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.landing-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(125, 211, 252, 0.12);
    color: var(--text-muted);
    font-size: 0.8rem;
}
.landing-footer a { color: #86efac; text-decoration: none; font-weight: 700; }

.wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 14px 40px rgba(37, 211, 102, 0.35);
    animation: livePulse 2.8s ease-out infinite;
}
.wa-float:hover { transform: translateY(-2px); color: #fff; }

.reveal {
    opacity: 0;
    transform: translateY(22px);
    animation: riseIn 0.85s cubic-bezier(.2,.7,.2,1) forwards;
}
.reveal.delay-1 { animation-delay: 0.12s; }
.reveal.delay-2 { animation-delay: 0.22s; }
.reveal.delay-3 { animation-delay: 0.32s; }
@keyframes riseIn {
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .ice-aurora, .ice-flakes span, .ice-frame::before, .ice-chart i, .wa-float {
        animation: none !important;
    }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
    .hero-grid,
    .feature-grid,
    .pricing-grid,
    .path-grid,
    .login-shell {
        grid-template-columns: 1fr;
    }
    .landing-links { display: none; }
    .landing-links.open { display: flex; }
    .landing-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
    .pricing-card.featured { transform: none; }
    .hero-visual { order: -1; }
    .landing-nav-actions .btn-primary { display: none; }
}

@media (max-width: 640px) {
    .hero { padding: 1.4rem 0 2.4rem; }
    .wa-float span { display: none; }
    .wa-float { width: 58px; height: 58px; justify-content: center; padding: 0; border-radius: 50%; }
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.metric-inline {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
}
.mobile-cards { display: none; }
.toolbar-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}
.toolbar-tools .search-input { min-width: 160px; flex: 1; }
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}
.live-pill.is-paused {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}
.empty-note {
    text-align: center;
    color: #64748b;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
}
.entity-card, .log-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1rem 1.05rem;
}
.entity-top, .log-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}
.entity-top small, .log-head time {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}
.log-campaign {
    flex: 1;
    min-width: 140px;
    font-weight: 800;
    color: #e0f2fe;
    font-size: 0.92rem;
}
.log-reason {
    font-size: 0.9rem;
    color: #e2e8f0;
    margin-bottom: 0.85rem;
    line-height: 1.45;
}
.entity-grid, .log-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}
.entity-grid span, .log-grid span, .log-meta span {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}
.entity-grid b, .log-grid b {
    font-size: 0.86rem;
    color: #f8fafc;
    word-break: break-word;
}
.log-card.is-allow { border-color: rgba(16, 185, 129, 0.28); }
.log-card.is-block { border-color: rgba(244, 63, 94, 0.28); }
.log-feed { display: flex; flex-direction: column; gap: 0.8rem; }
.log-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border-color);
}
.log-meta code {
    display: block;
    font-size: 0.75rem;
    color: #93c5fd;
    word-break: break-word;
    white-space: pre-wrap;
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
}
.app-topbar, .sidebar-backdrop { display: none; }

@media (max-width: 900px) {
    .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
    .app-topbar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 130;
        height: 56px;
        padding: 0 0.85rem;
        background: rgba(11, 18, 32, 0.94);
        border-bottom: 1px solid var(--border-color);
        backdrop-filter: blur(12px);
        font-weight: 800;
    }
    .app-topbar .sidebar-toggle {
        display: flex;
        position: static;
        width: 40px;
        height: 40px;
    }
    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.55);
        z-index: 90;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }
    .sidebar-backdrop.open { opacity: 1; pointer-events: auto; }
    aside {
        transform: translateX(-110%);
        transition: transform 0.25s ease;
        z-index: 140;
    }
    aside.open { transform: translateX(0); }
    body.is-app {
        overflow: hidden;
        height: 100dvh;
    }
    #app-layout { height: 100dvh; }
    main {
        margin-left: 0;
        padding: 4.35rem 0.85rem 1.6rem;
        height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        max-width: none;
    }
    .header-title-bar { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
    .page-heading { font-size: 1.35rem; }
    .desktop-table { display: none; }
    .mobile-cards { display: flex; flex-direction: column; gap: 0.8rem; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar .search-input, .toolbar-tools .search-input { width: 100%; min-width: 0; }
    .toolbar-tools { width: 100%; }
    .data-table-card, .chart-card, .panel-card { padding: 1rem; }
    .chart-card canvas { max-width: 100%; height: auto !important; }
    .modal-card {
        max-width: calc(100vw - 1.2rem) !important;
        max-height: 88dvh;
        padding: 1.15rem;
        margin: 0.6rem;
    }
    .is-app [style*="grid-template-columns:1fr"] {
        grid-template-columns: 1fr !important;
    }
    .log-grid, .entity-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid.in-app { grid-template-columns: 1fr; }
}
