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

:root {
    --bg: #f2f2f7;
    --surface: #ffffff;
    --surface-2: #f8f8fa;
    --text: #1c1c1e;
    --text-2: #48484a;
    --muted: #8e8e93;
    --accent: #0a84ff;
    --accent-hover: #0071e3;
    --accent-soft: #e8f2ff;
    --success: #30d158;
    --success-soft: #e3f9eb;
    --warning: #ff9f0a;
    --danger: #ff453a;
    --border: #e5e5ea;
    --border-strong: #c7c7cc;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 20px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ── Settings Bar ── */
#settings-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}
#settings-bar .key-label {
    font-size: 12px;
    color: var(--text-2);
    margin-right: 4px;
}
#settings-bar .key-badge {
    font-family: monospace;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--success);
}
#settings-bar .key-badge.missing { color: var(--danger); }
#settings-bar .balance-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 12px;
    border-radius: 8px;
}
#settings-bar .balance-badge.hidden { display: none; }
#settings-bar button {
    background: #fff;
    color: #000;
    border: none;
    padding: 7px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: opacity 0.15s;
}
#settings-bar button:hover { opacity: 0.85; }

/* ── Startup View ── */
#startup {
    max-width: 960px;
    margin: 72px auto;
    padding: 0 24px;
    text-align: center;
}
#startup h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
#startup .subtitle {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 48px;
}
.startup-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
}

/* ── Company Grid ── */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 32px;
    text-align: left;
}
.company-card {
    background: var(--surface);
    padding: 22px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    box-shadow: var(--shadow-sm);
}
.company-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}
.company-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.company-card .sub { font-size: 12px; color: var(--muted); }
.company-card .date { font-size: 11px; color: var(--border-strong); margin-top: 12px; }

/* ── Buttons ── */
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s, opacity 0.15s;
    white-space: nowrap;
}
button:hover { background: var(--surface-2); }
button:active { transform: scale(0.98); }
button.accent {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(10,132,255,0.30);
}
button.accent:hover { background: var(--accent-hover); box-shadow: 0 4px 14px rgba(10,132,255,0.35); }
button.wide { width: 100%; }
button.ghost {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
    font-weight: 500;
}
button.ghost:hover { color: var(--text); background: var(--surface-2); }
button.danger { background: var(--danger); color: #fff; border-color: transparent; }
button.sm { padding: 5px 12px; font-size: 12px; border-radius: 7px; }

/* ── Inputs ── */
input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10,132,255,0.12);
}
textarea { resize: none; }

/* ── Onboarding View ── */
#onboarding {
    max-width: 560px;
    margin: 80px auto;
    padding: 0 24px;
    text-align: center;
}
#onboarding h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}
#onboarding .sub {
    color: var(--muted);
    margin-bottom: 40px;
    font-size: 15px;
}
.input-group { display: flex; flex-direction: column; gap: 12px; }
.input-group textarea { height: 100px; }
.onboard-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}
.onboard-buttons .cancel-row {
    grid-column: 1 / -1;
}

/* ── Infrastructure Grid ── */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.service-card .service-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.service-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.service-card .service-status {
    font-size: 12px;
    color: var(--text-2);
}

.service-card .service-action {
    margin-top: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Page Grid ── */
.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.page-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.page-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.page-preview {
    width: 100%;
    aspect-ratio: 16/9;
    border-bottom: 1px solid var(--border);
    background: #fff;
    position: relative;
    overflow: hidden;
}

.page-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1440px; /* Simulated desktop viewport width */
    height: 810px; /* Simulated desktop viewport height */
    border: none;
    transform: scale(0.25); /* 360px container width / 1440px viewport = 0.25 */
    transform-origin: 0 0;
    pointer-events: none;
    overflow: hidden;
}

.page-preview iframe::-webkit-scrollbar {
    display: none;
}

.page-info {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-slug {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    font-family: monospace;
}

/* ── Asset Picker ── */
.asset-picker {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}
.asset-picker-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.asset-group-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 8px;
}
.asset-check-list { display: flex; flex-direction: column; gap: 4px; }
.asset-check-list.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}
.asset-check-card {
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    transition: border-color 0.15s;
}
.asset-check-card:hover { border-color: var(--accent); }
.asset-check-card input {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    width: 14px;
    height: 14px;
}
.asset-preview {
    aspect-ratio: 1;
    overflow: hidden;
    background: #eee;
}
.asset-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.asset-info {
    padding: 4px 6px;
}
.asset-info .name {
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-2);
}

.asset-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.15s;
}
.asset-check-item:hover { background: var(--surface); }
.asset-check-item input { width: 14px; height: 14px; margin: 0; }
.asset-check-name { font-weight: 600; color: var(--text-2); }
.asset-check-val { color: var(--muted); font-size: 11px; font-family: monospace; }
.asset-type-badge { font-size: 10px; }
.asset-type-badge.webhook { color: #e07b00; }

/* Loading state */
#loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 60px 0;
}
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.spinner-small {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loadingText { color: var(--muted); font-size: 15px; }

/* ── Assets View ── */
#assets { padding: 40px; max-width: 1200px; margin: 0 auto; }
#assets header { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
#assets h1 { font-size: 28px; font-weight: 800; }
.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.asset-item {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    padding: 0;
}
.asset-item:hover { transform: translateY(-2px); border-color: var(--accent); }

.asset-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: rgba(255, 59, 48, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    z-index: 10;
    line-height: 1;
}
.asset-item:hover .asset-delete-btn { opacity: 1; }
.asset-delete-btn:hover { background: #ff3b30; transform: scale(1.1); }

.asset-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.asset-item div { padding: 8px 10px; font-size: 10px; color: var(--muted); word-break: break-all; }

/* ── Dashboard ── */
#dashboard { padding: 32px 40px; max-width: 1400px; margin: 0 auto; }

header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
#compName { font-size: 26px; font-weight: 800; letter-spacing: -0.3px; }

.badge {
    background: var(--success-soft);
    color: var(--success);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.stat-box {
    background: var(--surface);
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* ── Dashboard Grid ── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* ── Cards ── */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.card:last-child { margin-bottom: 0; }
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.card h3 {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ── Action Box ── */
.action-box {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.action-box input { flex: 1; padding: 9px 14px; font-size: 14px; }
.action-box button { flex-shrink: 0; padding: 9px 16px; }

/* ── Doc Items ── */
.doc-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.doc-item:last-child { border-bottom: none; }
.doc-item strong { font-size: 13px; color: var(--text-2); }
.doc-item .content { 
    font-size: 13px; 
    color: var(--muted); 
    margin-top: 4px; 
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.doc-item.expanded .content {
    display: block;
    overflow: visible;
}
.doc-item.expanded .chevron { transform: rotate(180deg); }

/* ── Task Items ── */
.task-item {
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    cursor: pointer;
    overflow: hidden;
    max-height: 72px;
    transition: max-height 0.3s ease;
}
.task-item:last-child { border-bottom: none; }
.task-item.expanded { max-height: 600px; }
.task-item .task-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.task-item .task-title { font-size: 14px; font-weight: 500; }
.task-item .task-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 3px;
}
.task-item .chevron {
    font-size: 10px;
    color: var(--muted);
    flex-shrink: 0;
    margin-top: 2px;
    transition: transform 0.2s;
}
.task-item.expanded .chevron { transform: rotate(180deg); }
.task-item .spinner-wrap { margin-top: 8px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.ai-result {
    display: none;
    margin-top: 12px;
    background: var(--surface-2);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    color: var(--text-2);
    border: 1px solid var(--border);
}
.expanded .ai-result { display: block; }

/* ── Tabs ── */
.tab-group { display: flex; gap: 4px; }
.tab {
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.tab.active { background: var(--accent); color: #fff; border-color: transparent; box-shadow: none; }
.tab:hover:not(.active) { background: var(--surface-2); color: var(--text); }

/* ── Domain Rows ── */
.domain-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}
.domain-row:last-child { border-bottom: none; }
.domain-status {
    display: inline-block;
    margin-left: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--success-soft);
    color: var(--success);
}
.domain-status.pending { background: #fff3e0; color: #e07b00; }
.domain-status.expired { background: #ffe5e5; color: var(--danger); }
.domain-status.selected { background: var(--accent-soft); color: var(--accent); }

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}
.pagination.hidden { display: none; }
.pagination button { min-width: 60px; }

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1c1c1e;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 200;
    pointer-events: none;
    white-space: nowrap;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-success { background: #1c1c1e; border-left: 4px solid var(--success); }
.toast.toast-error { background: #1c1c1e; border-left: 4px solid var(--danger); }

/* ── Suggestions ── */
.suggest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    background: var(--surface-2);
    border-radius: 8px;
    border: 1px solid transparent;
    margin-bottom: 8px;
    font-size: 13px;
    transition: border-color 0.15s, opacity 0.2s;
}
.suggest-item:hover { border-color: var(--accent); }
.suggest-item.checking { background: var(--surface-2); border-style: dashed; border-color: var(--border); color: var(--text-2); }
.suggest-item.available { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.suggest-item.disabled { background: var(--surface-2); opacity: 0.6; cursor: not-allowed; border-color: transparent; }
.suggest-item.disabled:hover { border-color: transparent; }

.suggest-item strong { font-size: 14px; }
.suggest-item .price { color: var(--text-1); font-size: 12px; font-weight: 700; margin-left: 8px; }

/* ── Automations ── */
.auto-item {
    padding: 11px 14px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.auto-item strong { color: var(--text); }
.auto-item .arrow { color: var(--muted); }

/* ── Website Builder ── */
#funnelStatus { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
#htmlContent {
    width: 100%;
    height: 200px;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 11px;
    background: #1c1c1e;
    color: #e5e5ea;
    border-color: #3a3a3c;
    border-radius: var(--radius-sm);
    padding: 12px;
}
#htmlContent:focus { border-color: var(--accent); }

/* ── Pixel Feed ── */
.pixel-feed { max-height: 260px; overflow-y: auto; }
#pixelList div { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
#pixelList div:last-child { border-bottom: none; }

/* ── Workflow Modal ── */
.wf-url {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    word-break: break-all;
}
.step-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 12px;
}
.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.step-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}
.step-badge.email { background: #e8f2ff; color: var(--accent); }
.step-badge.slack { background: #fff3e0; color: #e07b00; }
.step-fields { display: flex; flex-direction: column; gap: 10px; }
.field-row { display: flex; flex-direction: column; gap: 4px; }
.field-label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.field-hint { font-weight: 400; color: var(--muted); }
select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238e8e93' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    transition: border-color 0.2s;
}
select:hover { border-color: var(--text-2); }
select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,132,255,0.12); }

.field-row select {
    width: 100%;
    padding: 10px 14px;
    background-position: right 14px center;
    padding-right: 36px;
    font-size: 14px;
}
.step-warning {
    background: #fff8e7;
    border: 1px solid #ffe066;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 12px;
    color: #7a5c00;
    line-height: 1.6;
}

/* ── Modal ── */
.modal {
    position: fixed; z-index: 100;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    width: 560px;
    max-width: 94vw;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal-content input {
    font-size: 14px;
    padding: 10px 14px;
}
.close { color: var(--muted); float: right; font-size: 26px; cursor: pointer; line-height: 1; }

/* ── Live Feed Page ── */
.live-body { padding: 0; background: #000; color: #fff; min-height: 100vh; font-family: 'Inter', monospace; }
.live-header {
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1c1c1e;
    position: sticky;
    top: 0;
    z-index: 10;
}
.logo { font-weight: 800; font-size: 18px; letter-spacing: -0.3px; display: flex; align-items: center; gap: 8px; }
.logo .dot {
    height: 8px; width: 8px;
    background: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff3b30;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.live-grid {
    display: grid;
    grid-template-columns: 280px 1fr 1fr 1fr;
    gap: 1px;
    background: #1c1c1e;
    min-height: calc(100vh - 57px);
}
.col-live { background: #000; padding: 24px; overflow-y: auto; max-height: calc(100vh - 57px); }
.col-live h4 {
    color: #3a3a3c;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1c1c1e;
}

.stats-card-live {
    background: #111;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 28px;
    border: 1px solid #1c1c1e;
}
.stats-card-live h3 { font-size: 10px; color: #3a3a3c; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.stat-row:last-child { margin-bottom: 0; }
.stat-val { font-size: 22px; font-weight: 800; color: #fff; }
.stat-lbl { font-size: 11px; color: #48484a; }
.event-card {
    padding: 13px 0;
    border-bottom: 1px solid #1c1c1e;
    animation: fadeIn 0.4s ease-out;
}

/* ── Tags ── */
.tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--surface-2);
    color: var(--text-2);
    border: 1px solid var(--border);
    white-space: nowrap;
}
.tag.bot {
    background: #fff1f2;
    color: #e11d48;
    border-color: #fda4af;
}
.tag.mobile { color: var(--accent); }
.tag.desktop { color: var(--success); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.event-card .time { color: #3a3a3c; font-size: 10px; display: block; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.event-card .company { color: #0a84ff; font-weight: 700; font-size: 13px; display: block; margin-bottom: 3px; }
.event-card .action { color: #e5e5ea; font-size: 13px; }
.event-card .meta { color: #636366; font-size: 11px; display: block; margin-top: 4px; font-style: italic; }

.try-btn {
    background: #fff;
    color: #000;
    padding: 9px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: transform 0.15s;
    display: inline-block;
}
.try-btn:hover { transform: scale(1.04); }

/* Asset Picker */
.asset-picker { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; }
.asset-picker-label { font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.asset-check-list { display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow-y: auto; }
.asset-check-item { display: flex; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; padding: 4px 0; }
.asset-check-item input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--accent); flex-shrink: 0; }
.asset-check-name { font-weight: 600; color: var(--text-1); flex-shrink: 0; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-check-val { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Asset item labels */
.asset-item-name { padding: 6px 10px 2px; font-size: 12px; font-weight: 600; color: var(--text-1); }
.asset-item-url { padding: 0 10px 8px; font-size: 11px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Asset type badge in picker */
.asset-type-badge { font-size: 12px; flex-shrink: 0; }
