*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0d0d0d;
    --surface: #1a1a1a;
    --surface2: #242424;
    --border: #2e2e2e;
    --accent: #2AABEE;
    --accent-hover: #1a9de0;
    --text: #e8e8e8;
    --text-muted: #666;
    --danger: #e74c3c;
    --success: #27ae60;
    --radius: 12px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: 8px; border: none;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 10px 14px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-size: 14px;
}
.form-control:focus { outline: none; border-color: var(--accent); }

.nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    display: flex; align-items: center; gap: 24px; height: 56px;
}
.nav-brand { font-weight: 700; font-size: 17px; color: var(--accent); text-decoration: none; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-spacer { flex: 1; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
tr:last-child td { border-bottom: none; }

.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: rgba(231,76,60,0.15); border: 1px solid rgba(231,76,60,0.3); color: #e74c3c; }
.alert-success { background: rgba(39,174,96,0.15); border: 1px solid rgba(39,174,96,0.3); color: #27ae60; }

.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.7); z-index: 100;
    align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius); padding: 32px; width: 90%; max-width: 480px; }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 24px; }

.funnel-bar-wrap { margin: 8px 0; }
.funnel-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.funnel-bar { height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.funnel-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.4s ease; }
.funnel-dropoff { font-size: 11px; color: var(--text-muted); margin: 6px 0 2px 0; padding-left: 4px; }

@media (max-width: 600px) {
    .hide-mobile { display: none; }
    .card { padding: 16px; }
}
