/* Squidi Growth Suite — shared admin + front-end styles (no external CSS/CDN). */
:root {
    --sq-bg: #060a18;
    --sq-panel: #0c1226;
    --sq-card: rgba(255, 255, 255, .05);
    --sq-line: rgba(255, 255, 255, .12);
    --sq-text: #f1f5f9;
    --sq-muted: #94a3b8;
    --sq-a: #7c5cff;   /* Squidi violet */
    --sq-b: #19d3e6;   /* Squidi cyan   */
    --sq-ok: #34d399;
    --sq-err: #f87171;
    --sq-radius: 22px;
}

/* ---------- admin page frame ---------- */
.wrap.sq-admin { margin: 0 0 0 -20px; max-width: none; }
.sq-admin .sq-shell { min-height: calc(100vh - 32px); }
body[class*="squidi"] #wpcontent, body[class*="squidi"] #wpbody-content { background: var(--sq-bg); }
body[class*="squidi"] #wpfooter { display: none; }
.sq-admin h1, .sq-admin h2, .sq-admin h3 { color: var(--sq-text); }
.sq-admin a { color: #67e8f9; }
.sq-admin table.widefat { background: var(--sq-panel); border-color: var(--sq-line); color: #e2e8f0; border-radius: 14px; overflow: hidden; }
.sq-admin table.widefat th { background: #121a33; color: #fff; }
.sq-admin table.widefat td { color: #cbd5e1; border-color: rgba(255, 255, 255, .06); vertical-align: top; }
.sq-admin table.widefat.striped > tbody > :nth-child(odd) { background: rgba(255, 255, 255, .02); }
.sq-admin code { background: rgba(255, 255, 255, .08); color: #e2e8f0; border-radius: 6px; padding: 2px 6px; }

/* ---------- shell & layout ---------- */
.sq-shell {
    background: radial-gradient(circle at 10% 0%, rgba(124, 92, 255, .18), transparent 35%), radial-gradient(circle at 90% 0%, rgba(25, 211, 230, .14), transparent 30%), var(--sq-bg);
    color: var(--sq-text); font-family: Inter, "Segoe UI", Arial, sans-serif; padding: 28px; line-height: 1.5;
}
.sq-report-body { margin: 0; background: var(--sq-bg); }
.sq-grid { display: grid; gap: 18px; margin-bottom: 18px; }
.sq-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sq-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sq-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sq-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sq-between { justify-content: space-between; }
.sq-center { justify-content: center; text-align: center; }
.sq-narrow { max-width: 980px; margin: 0 auto; }

/* ---------- cards ---------- */
.sq-card {
    position: relative; background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
    border: 1px solid var(--sq-line); border-radius: var(--sq-radius); padding: 24px; margin-bottom: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35); color: var(--sq-text);
}
.sq-card h1 { font-size: 32px; line-height: 1.1; margin: 12px 0 6px; font-weight: 900; color: #fff; }
.sq-card h2 { font-size: 20px; margin: 0 0 14px; color: #fff; }
.sq-card h3 { font-size: 22px; margin: 0 0 10px; color: #fff; }
.sq-card h4 { margin: 14px 0 8px; color: #fff; }
.sq-card ul { margin: 0 0 0 18px; }
.sq-card li { margin-bottom: 4px; }
.sq-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.sq-soft { background: rgba(6, 10, 24, .7); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.sq-soft strong { display: block; font-size: 22px; color: #fff; }
.sq-metric-value { font-size: 38px; font-weight: 900; line-height: 1; margin: 14px 0 6px; color: #fff; }
.sq-logo { max-height: 64px; width: auto; }
.sq-pill {
    display: inline-flex; align-items: center; border: 1px solid rgba(25, 211, 230, .35); background: rgba(25, 211, 230, .1);
    color: #67e8f9; border-radius: 999px; padding: 5px 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em;
}
.sq-muted { color: var(--sq-muted); }
.sq-small, .sq-small * { font-size: 12px; }
.sq-ok { color: var(--sq-ok); font-weight: 700; }
.sq-error { color: var(--sq-err); }
.sq-notice { background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .35); color: #d1fae5; border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }
.sq-notice.error { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .4); color: #fee2e2; }
.sq-checklist { list-style: none; margin: 0 0 16px !important; padding: 0; }
.sq-checklist li.ok { color: var(--sq-ok); }
.sq-checklist li.todo { color: var(--sq-muted); }
.sq-pri-high { color: #fca5a5; } .sq-pri-medium { color: #fcd34d; } .sq-pri-low { color: var(--sq-muted); }
.sq-platform-meta { border-color: rgba(96, 165, 250, .3); }
.sq-platform-google { border-color: rgba(248, 113, 113, .3); }
.sq-platform-tiktok { border-color: rgba(25, 211, 230, .3); }

/* ---------- forms & buttons ---------- */
.sq-field { display: block; margin-bottom: 12px; }
.sq-label { display: block; font-size: 13px; color: #cbd5e1; font-weight: 700; margin-bottom: 6px; }
.sq-input, .sq-admin .sq-input {
    width: 100%; box-sizing: border-box; background: var(--sq-bg) !important; color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .15) !important; border-radius: 14px !important; padding: 11px 13px !important;
    font: inherit; max-width: none; min-height: 44px;
}
.sq-row .sq-input { width: auto; flex: 1 1 180px; }
.sq-input:focus { border-color: var(--sq-b) !important; box-shadow: 0 0 0 3px rgba(25, 211, 230, .15) !important; outline: none; }
select.sq-input option { background: var(--sq-panel); color: #fff; }
.sq-check { display: inline-flex; gap: 8px; align-items: center; margin: 0 14px 10px 0; color: #e2e8f0; }
.sq-targets { display: flex; flex-wrap: wrap; margin-bottom: 8px; }
.sq-btn, a.sq-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; cursor: pointer;
    background: linear-gradient(90deg, var(--sq-a), var(--sq-b)); color: #fff !important; padding: 12px 18px; font-weight: 800;
    text-decoration: none !important; letter-spacing: .02em; min-height: 44px; transition: transform .15s ease, filter .15s ease;
}
.sq-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.sq-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.sq-btn.secondary { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); }
.sq-btn.small { padding: 7px 12px; min-height: 34px; font-size: 13px; border-radius: 10px; }
.sq-mini-form { margin-top: 10px; min-width: 240px; }
.sq-form-status { min-height: 1.4em; margin: 0; }
.sq-link { color: #67e8f9; font-weight: 700; }

/* ---------- front widgets ---------- */
.sq-lead-form, .sq-audit, .sq-calc, .sq-ask-ai { background: var(--sq-panel); }
.sq-case { display: block; text-decoration: none !important; color: var(--sq-text) !important; background: linear-gradient(145deg, #151d3a, var(--sq-panel)) !important; }
.sq-case h3, .sq-case p, .sq-case .sq-metric-value { color: #fff !important; }
.sq-case .sq-muted { color: var(--sq-muted) !important; }
.sq-cases > h2 { margin-bottom: 16px; }
.sq-case:hover { border-color: rgba(25, 211, 230, .5); }
.sq-score strong { font-size: 26px; }
.sq-whatsapp {
    position: fixed; right: 18px; bottom: 18px; z-index: 99990; display: inline-flex; align-items: center; gap: 8px;
    background: #25d366; color: #fff !important; border-radius: 999px; padding: 12px 18px 12px 14px; font: 700 15px/1 Inter, Arial, sans-serif;
    text-decoration: none !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.sq-whatsapp:hover { filter: brightness(1.05); }

@media (max-width: 960px) {
    .sq-grid-3, .sq-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .sq-shell { padding: 16px; }
    .sq-grid-2, .sq-grid-3, .sq-grid-4 { grid-template-columns: 1fr; }
    .sq-card { padding: 18px; }
    .sq-card h1 { font-size: 26px; }
    .sq-whatsapp span { display: none; }
    .sq-whatsapp { padding: 14px; }
    .wrap.sq-admin { margin-left: -10px; }
}

/* ---------- onboarding (0.7.0) ---------- */
.sq-steps-inline { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 18px !important; padding: 0; counter-reset: sqstep; }
.sq-steps-inline li { counter-increment: sqstep; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--sq-line); color: var(--sq-muted); font-size: 13px; font-weight: 700; margin: 0 !important; }
.sq-steps-inline li::before { content: counter(sqstep); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 11px; }
.sq-steps-inline li.on { color: #fff; border-color: var(--sq-b); }
.sq-steps-inline li.done { color: var(--sq-ok); border-color: rgba(52, 211, 153, .45); }
.sq-steps-inline li.done::before { content: "✓"; background: rgba(52, 211, 153, .18); }
.sq-services { border: 0; padding: 0; margin: 6px 0 14px; display: grid; gap: 10px; }
.sq-service { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--sq-line); border-radius: 16px; background: rgba(6, 10, 24, .6); cursor: pointer; }
.sq-service:has(input:checked) { border-color: var(--sq-b); box-shadow: 0 0 0 3px rgba(25, 211, 230, .12); }
.sq-service strong { display: block; color: #fff; }
.sq-service small { display: block; }
.sq-price { font-weight: 800; color: #fff; white-space: nowrap; }
.sq-onboarding { margin-bottom: 20px; }
@media (max-width: 640px) { .sq-service { grid-template-columns: auto 1fr; } .sq-price { grid-column: 2; } }

/* 0.7.0: onboarding banner sits above the light client dashboard, outside the dark shell — use the dashboard's light palette. */
.sq-card.sq-onboarding { background: #fff; color: #172c3e; border: 1px solid #e2eaf0; box-shadow: 0 8px 24px rgba(23, 44, 62, .08); max-width: none; }
.sq-card.sq-onboarding .sq-muted, .sq-card.sq-onboarding p { color: #627687; }
.sq-card.sq-onboarding strong { color: #172c3e; }
.sq-card.sq-onboarding a:not(.sq-btn) { color: #087f8c; }
.sq-card.sq-onboarding .sq-pill { color: #087f8c; border-color: rgba(8, 127, 140, .35); background: rgba(8, 127, 140, .06); }
.sq-onboarding .sq-steps-inline li { color: #627687; border-color: #d5e0e8; }
.sq-onboarding .sq-steps-inline li::before { background: #eef3f6; color: #172c3e; }
.sq-onboarding .sq-steps-inline li.on { color: #172c3e; border-color: #087f8c; background: rgba(8, 127, 140, .06); }
.sq-onboarding .sq-steps-inline li.done { color: #0f7a52; border-color: rgba(15, 122, 82, .35); }
.sq-onboarding .sq-steps-inline li.done::before { background: rgba(15, 122, 82, .12); color: #0f7a52; }
/* 0.8.0: order summary carried over from the Squidi homepage */
.sq-order{margin:0 0 18px;display:grid;gap:6px}
.sq-order .sq-row{display:flex;justify-content:space-between;align-items:baseline;gap:6px 14px;flex-wrap:wrap}
.sq-order .sq-row b{text-align:right}
