:root {
    --bg: #0a0e17;
    --bg2: #111827;
    --bg3: #1f2937;
    --bg4: #2a3548;
    --border: #374151;
    --border-light: #4b5563;
    --text: #f3f4f6;
    --text2: #9ca3af;
    --text3: #6b7280;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --green: #10b981;
    --red: #ef4444;
    --yellow: #f59e0b;
    --blue: #3b82f6;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,.4);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
    --transition: .15s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ===== Login page ===== */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow);
}
.login-card h1 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--accent), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-card p { color: var(--text2); margin-bottom: 24px; font-size: .9rem; }
.login-card label {
    display: block;
    font-size: .75rem;
    color: var(--text2);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.login-card input, .login-card button {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    outline: none;
    border: 1px solid var(--border);
}
.login-card input { background: var(--bg3); color: var(--text); transition: border var(--transition); }
.login-card input:focus { border-color: var(--accent); }
.login-card button {
    background: var(--accent);
    color: #fff;
    border: none;
    margin-top: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.login-card button:hover { background: var(--accent-hover); }

/* ===== App layout ===== */
.app {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
}
.sidebar {
    background: var(--bg2);
    border-right: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-brand {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.sidebar-brand h1 {
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--accent), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sidebar-brand small { display: block; color: var(--text3); font-size: .7rem; margin-top: 2px; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text2);
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all var(--transition);
    user-select: none;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { color: var(--text); background: var(--bg3); border-left-color: var(--accent); }
.nav-item .icon { width: 18px; text-align: center; }

.main {
    padding: 24px 32px;
    overflow-x: hidden;
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.page-header h2 { font-size: 1.5rem; font-weight: 700; }
.page-header .subtitle { color: var(--text2); font-size: .9rem; margin-top: 2px; }

/* ===== Buttons ===== */
.btn {
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg3); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg4); border-color: var(--border-light); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { background: var(--bg3); color: var(--text); }

/* ===== Brand grid ===== */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.brand-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 160px;
}
.brand-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.brand-card-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}
.brand-card-logo img { max-width: 70%; max-height: 70%; object-fit: contain; }
.brand-card-logo .placeholder { color: var(--text3); font-size: 1.6rem; font-weight: 700; }
.brand-card-name { font-weight: 600; font-size: .95rem; margin-bottom: 4px; word-break: break-word; }
.brand-card-slug { color: var(--text3); font-size: .7rem; font-family: monospace; }
.brand-card-colors {
    display: flex;
    gap: 4px;
    margin-top: 10px;
}
.brand-card-colors .swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

/* ===== Brand form ===== */
.brand-form {
    max-width: 720px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.form-group label {
    display: block;
    font-size: .75rem;
    color: var(--text2);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.form-group input[type=text], .form-group input[type=color], .form-group textarea {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text);
    font-size: .9rem;
    outline: none;
    transition: border var(--transition);
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group input[type=color] { height: 42px; padding: 4px; cursor: pointer; }
.form-group textarea { min-height: 70px; resize: vertical; }
.form-group .hint { color: var(--text3); font-size: .75rem; margin-top: 4px; }

/* ===== Asset uploaders ===== */
.asset-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg3);
    position: relative;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.asset-upload:hover { border-color: var(--accent); }
.asset-upload.dragover { border-color: var(--accent); background: var(--bg4); }
.asset-upload .preview { max-width: 70px; max-height: 70px; object-fit: contain; }
.asset-upload .label { font-size: .75rem; color: var(--text2); text-transform: uppercase; letter-spacing: .4px; }
.asset-upload .help { font-size: .7rem; color: var(--text3); }
.asset-upload input[type=file] { display: none; }

/* ===== Alerts ===== */
.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 12px; font-size: .85rem; }
.alert-error { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.4); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.4); color: #86efac; }
.alert-info { background: rgba(59,130,246,.15); border: 1px solid rgba(59,130,246,.4); color: #93c5fd; }

/* ===== Search input ===== */
.search-input {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    color: var(--text);
    font-size: .9rem;
    outline: none;
    min-width: 240px;
}
.search-input:focus { border-color: var(--accent); }

/* ===== Stub for unfinished pages ===== */
.stub {
    padding: 60px 20px;
    text-align: center;
    color: var(--text3);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
}
.stub h3 { font-size: 1.2rem; color: var(--text2); margin-bottom: 8px; }

/* ===== Loader ===== */
.loader { color: var(--text3); padding: 40px 0; text-align: center; font-size: .9rem; }

/* ===== Cloak presets ===== */
.cloak-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 14px;
}
.cloak-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cloak-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cloak-card-head { display: flex; align-items: center; gap: 10px; }
.cloak-card-name { font-weight: 600; font-size: .95rem; flex: 1; word-break: break-word; }
.cloak-card-url {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: .75rem;
    color: var(--text2);
    background: var(--bg);
    padding: 8px 10px;
    border-radius: 6px;
    word-break: break-all;
    border: 1px solid var(--border);
}
.cloak-card-url.muted, .url-preview.muted { color: var(--text3); font-style: italic; }
.cloak-type {
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: .5px;
}
.badge {
    font-size: .65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: .5px;
}
.badge-default { background: rgba(99,102,241,.18); color: #a5b4fc; border: 1px solid rgba(99,102,241,.4); }
.badge-ok { background: rgba(34,197,94,.18); color: #86efac; border: 1px solid rgba(34,197,94,.4); }
.badge-muted { background: rgba(148,163,184,.15); color: #94a3b8; border: 1px solid rgba(148,163,184,.3); }

.prompt-key {
    display: inline-block;
    min-width: 28px;
    text-align: center;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(99,102,241,.18);
    color: #a5b4fc;
    border: 1px solid rgba(99,102,241,.4);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: .75rem;
}

.url-preview {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: .8rem;
    color: var(--green);
    background: var(--bg);
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    word-break: break-all;
    min-height: 38px;
}

.form-group select {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text);
    font-size: .9rem;
    outline: none;
    cursor: pointer;
}
.form-group select:focus { border-color: var(--accent); }
code { font-family: 'JetBrains Mono', monospace; font-size: .85em; background: var(--bg3); padding: 1px 5px; border-radius: 3px; color: var(--accent-hover); }

/* ===== Alt-brands builder ===== */
.alt-brands-block { margin: 16px 0; padding: 16px; background: var(--bg3); border-radius: var(--radius); border: 1px solid var(--border); }
.alt-row {
    display: grid;
    grid-template-columns: 50px 1fr 30px;
    gap: 12px;
    padding: 10px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    align-items: center;
}
.alt-row-logo {
    width: 44px;
    height: 44px;
    background: var(--bg3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.alt-row-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.alt-row-logo .placeholder { color: var(--text3); font-weight: 700; font-size: 1.2rem; }
.alt-row-info { min-width: 0; }
.alt-row-name { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.alt-row-slug { color: var(--text3); font-size: .75rem; font-family: monospace; font-weight: normal; }
.alt-row-url {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 9px;
    color: var(--text);
    font-size: .8rem;
    font-family: monospace;
    outline: none;
}
.alt-row-url:focus { border-color: var(--accent); }
.btn-icon-remove {
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    transition: all var(--transition);
}
.btn-icon-remove:hover { background: var(--red); color: #fff; border-color: var(--red); }

.alt-empty {
    padding: 14px;
    text-align: center;
    color: var(--text3);
    font-style: italic;
    font-size: .85rem;
    background: var(--bg);
    border-radius: 6px;
    border: 1px dashed var(--border);
}

.alt-brand-picker { position: relative; margin-top: 12px; }
.alt-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    max-height: 320px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}
.alt-suggestions.open { display: block; }
.alt-sug-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}
.alt-sug-item:last-child { border-bottom: none; }
.alt-sug-item:hover { background: var(--bg3); }
.alt-sug-logo {
    width: 32px;
    height: 32px;
    background: var(--bg3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.alt-sug-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.alt-sug-logo .placeholder { font-weight: 700; font-size: 1rem; color: var(--text3); }
.alt-sug-name { font-size: .9rem; }
.alt-sug-slug { color: var(--text3); font-family: monospace; font-size: .75rem; }
.alt-sug-empty { padding: 16px; text-align: center; color: var(--text3); font-style: italic; font-size: .85rem; }

/* ===== Cards preview ===== */
.cards-preview-section { margin: 16px 0; padding: 16px; background: var(--bg3); border-radius: var(--radius); border: 1px solid var(--border); }
.cards-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.preview-card {
    background: var(--bg2);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
}
.preview-card-logo {
    width: 60px;
    height: 60px;
    background: var(--bg3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto 8px;
}
.preview-card-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.preview-card-logo .placeholder { font-size: 1.8rem; font-weight: 800; }
.preview-card-name { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.preview-card-warn { color: var(--yellow); font-size: .7rem; margin-bottom: 6px; }
.preview-card-url {
    font-family: monospace;
    font-size: .65rem;
    color: var(--text3);
    word-break: break-all;
    background: var(--bg);
    padding: 6px;
    border-radius: 4px;
    margin-top: 8px;
}

/* ===== Form section titles ===== */
.form-section-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text2);
    margin: 24px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.form-section-title:first-child { margin-top: 0; }

/* ===== Data table ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: .85rem;
}
.data-table th, .data-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.data-table thead {
    background: var(--bg3);
}
.data-table th {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text2);
}
.data-table tbody tr:hover { background: var(--bg3); }
.data-table .muted { color: var(--text3); }
.data-table a { color: var(--accent-hover); text-decoration: none; }
.data-table a:hover { text-decoration: underline; }
.error-cell { color: var(--red); font-family: monospace; font-size: .75rem; max-width: 280px; }

/* ===== Status badges ===== */
.status-badge {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.status-pending { background: rgba(245,158,11,.15); color: var(--yellow); border: 1px solid rgba(245,158,11,.3); }
.status-in_progress { background: rgba(59,130,246,.15); color: var(--blue); border: 1px solid rgba(59,130,246,.3); }
.status-done, .status-deployed { background: rgba(16,185,129,.15); color: var(--green); border: 1px solid rgba(16,185,129,.3); }
.status-failed { background: rgba(239,68,68,.15); color: var(--red); border: 1px solid rgba(239,68,68,.3); }
.status-removed { background: rgba(107,114,128,.15); color: var(--text3); border: 1px solid rgba(107,114,128,.3); }

.btn-sm { padding: 4px 10px; font-size: .75rem; }

.mode-badge {
    font-size: .65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: .8px;
    display: inline-block;
}
.mode-dry_run { background: rgba(245,158,11,.18); color: var(--yellow); border: 1px solid rgba(245,158,11,.4); }
.mode-real_partial { background: rgba(59,130,246,.18); color: var(--blue); border: 1px solid rgba(59,130,246,.4); }
.mode-real { background: rgba(239,68,68,.18); color: var(--red); border: 1px solid rgba(239,68,68,.5); animation: pulse-red 2s infinite; }
.ss-status { margin-left: auto; font-size: .75rem; font-weight: 500; }
.ss-ok { color: var(--green); }
.ss-err { color: var(--red); }

.prices-summary {
    display: flex;
    gap: 24px;
    padding: 12px 16px;
    margin-top: 10px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .85rem;
}
.prices-summary span { color: var(--text2); }
.prices-summary span b { color: var(--text); font-weight: 700; }

/* ===== Action menu (Sites row dropdown) ===== */
.action-menu {
    position: absolute;
    background: var(--bg2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    min-width: 220px;
    z-index: 100;
    padding: 4px 0;
}
.action-menu-item {
    padding: 8px 14px;
    cursor: pointer;
    font-size: .85rem;
    color: var(--text);
    transition: background var(--transition);
    user-select: none;
}
.action-menu-item:hover { background: var(--bg3); }
.action-menu-item.action-danger { color: var(--red); }
.action-menu-item.action-danger:hover { background: rgba(239,68,68,.15); }
.action-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }

.cloak-mini {
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(99,102,241,.18);
    color: #a5b4fc;
    border: 1px solid rgba(99,102,241,.3);
    letter-spacing: .5px;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: fade-in .15s ease;
}
.modal {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.1rem; font-weight: 600; margin: 0; }
.modal-close {
    background: transparent;
    border: none;
    color: var(--text2);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
}
.modal-close:hover { color: var(--red); }
.modal-body { padding: 22px; }
@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }

/* ===== Settings ===== */
.setting-row {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-bottom: 12px;
    max-width: 760px;
}
.setting-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.setting-head label {
    font-weight: 600;
    color: var(--text);
    font-size: .95rem;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
}
.setting-key {
    font-size: .7rem;
    color: var(--text3);
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: auto;
    font-family: monospace;
}
.setting-src {
    font-size: .6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.setting-src.db { background: rgba(99,102,241,.18); color: #a5b4fc; border: 1px solid rgba(99,102,241,.3); }
.setting-src.cfg { background: rgba(245,158,11,.15); color: var(--yellow); border: 1px solid rgba(245,158,11,.3); }
.setting-src.def { background: var(--bg3); color: var(--text3); border: 1px solid var(--border); }
.setting-field input[type=text], .setting-field input[type=number], .setting-field select {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text);
    font-size: .9rem;
    outline: none;
}
.setting-field input[type=text], .setting-field select { width: 100%; max-width: 560px; }
.setting-field input:focus, .setting-field select:focus { border-color: var(--accent); }
.setting-hint {
    font-size: .8rem;
    color: var(--text3);
    margin-top: 8px;
    line-height: 1.45;
}

.sp-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg2);
    color: var(--green);
    border: 1px solid rgba(16,185,129,.4);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    box-shadow: var(--shadow);
    font-size: .9rem;
    z-index: 300;
    animation: toast-in .2s ease;
}
.sp-toast.out { animation: toast-out .4s ease forwards; }
@keyframes toast-in { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
@keyframes toast-out { to { transform: translateY(-10px); opacity: 0 } }

.wm-spinner {
    display: inline-block;
    animation: spin 1.4s linear infinite;
    color: var(--accent);
    font-weight: 700;
}
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
    50% { box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}

/* ===== Model pricing preview ===== */
.model-pricing {
    margin-top: 10px;
    padding: 12px 14px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.model-pricing-row {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    padding: 3px 0;
}
.model-pricing-row span:first-child { color: var(--text2); }

/* ===== Deploy summary box ===== */
.deploy-summary-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 18px;
}
.deploy-summary-cell {
    text-align: center;
}
.deploy-summary-label {
    font-size: .7rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}
.deploy-summary-val {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}
