:root {
    --bg: #f6f7fb;
    --ink: #18212f;
    --muted: #6b7280;
    --panel: #ffffff;
    --line: #e7eaf0;
    --brand: #2563eb;
    --brand-dark: #1e40af;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--brand); text-decoration: none; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 280px; background: #111827; color: #fff; padding: 24px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 32px; }
.brand-mark { width: 44px; height: 44px; border-radius: 8px; background: #22c55e; display: grid; place-items: center; font-weight: 800; }
.brand span, .sidebar-footer span { display: block; color: #a7b0c0; font-size: 13px; }
.sidebar .nav-link { color: #dbe3ef; border-radius: 8px; padding: 10px 12px; }
.sidebar .nav-link:hover { background: #1f2937; color: #fff; }
.sidebar-footer { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; }
.main-content { flex: 1; padding: 32px; min-width: 0; }
.auth-content { display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 460px); background: var(--panel); padding: 34px; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 22px 70px rgba(15, 23, 42, .08); }
.auth-card h1, .page-header h1 { font-size: clamp(28px, 4vw, 40px); margin: 0; letter-spacing: 0; }
.eyebrow { text-transform: uppercase; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: 0; margin-bottom: 6px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card, .panel, .step-panel, .plan-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 34px rgba(15, 23, 42, .05); }
.stat-card { padding: 20px; }
.stat-card span { color: var(--muted); display: block; }
.stat-card strong { font-size: 32px; }
.content-grid { display: grid; grid-template-columns: 390px 1fr; gap: 20px; align-items: start; }
.panel { padding: 22px; }
.form-narrow { max-width: 780px; }
.panel h2, .step-panel h2, .plan-card h2 { font-size: 20px; margin-bottom: 14px; }
.connection-row, .section-title { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.connection-row:last-child { border-bottom: 0; }
.toast-stack { position: fixed; top: 18px; right: 18px; z-index: 20; width: min(420px, calc(100vw - 36px)); }
.wizard { display: grid; gap: 16px; }
.step-panel { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 22px; }
.step-number { width: 38px; height: 38px; border-radius: 50%; background: #dcfce7; color: #166534; display: grid; place-items: center; font-weight: 800; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks span { padding: 8px 10px; background: #f1f5f9; border-radius: 8px; font-size: 14px; }
.search-form { width: min(320px, 100%); }
.thumb { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.preview { width: 140px; height: 140px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin-top: 8px; }
.empty-thumb { background: #eef2f7; }
.empty-state { border: 1px dashed #cbd5e1; color: var(--muted); border-radius: 8px; padding: 28px; text-align: center; background: #f8fafc; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan-card { padding: 22px; }
.price { font-size: 24px; font-weight: 800; color: var(--brand-dark); }
.order-image { width: 100%; max-height: 420px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #f8fafc; }
.btn, .form-control, .form-select { border-radius: 8px; }
@media (max-width: 1000px) {
    .app-shell { display: block; }
    .sidebar { width: 100%; height: auto; position: static; }
    .status-grid, .content-grid, .plans { grid-template-columns: 1fr; }
    .page-header { align-items: flex-start; flex-direction: column; }
}
