/* ============================================================
   Fashion 360 — Design System Profesional v2
   ============================================================ */

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

:root {
    --color-primary:    #c0396b;
    --color-primary-dk: #9b2d56;
    --color-primary-lt: #fce8f0;
    --color-secondary:  #1e1b25;
    --color-accent:     #e9a8c7;

    --color-bg:       #f4f2f6;
    --color-surface:  #ffffff;
    --color-surface2: #faf9fb;
    --color-border:   #ebe6ee;
    --color-border2:  #ddd6e4;
    --color-text:     #1e1b25;
    --color-text-2:   #4a4558;
    --color-muted:    #8a8398;

    --color-success:  #1a9e6a;
    --color-success-lt:#e4f7ef;
    --color-danger:   #d93030;
    --color-danger-lt:#fdeaea;
    --color-warning:  #d08a20;
    --color-warning-lt:#fef3e0;
    --color-info:     #2f71c8;
    --color-info-lt:  #e8f0fb;

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 22px;

    --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);
    --shadow-xl: 0 32px 80px rgba(0,0,0,.18);

    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --sidebar-w: 260px;
    --topbar-h: 68px;
    --transition: .18s cubic-bezier(.4,0,.2,1);
}

/* ── Reset base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dk); }
h1,h2,h3,h4,h5 { line-height: 1.2; color: var(--color-text); font-weight: 700; }

/* ── Layout ── */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Botones ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 42px; padding: 0 20px;
    border: 1.5px solid transparent; border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer;
    letter-spacing: -.01em;
    background: var(--color-primary); color: #fff;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    text-decoration: none; white-space: nowrap;
}
.btn:hover  { background: var(--color-primary-dk); box-shadow: 0 4px 14px rgba(192,57,107,.35); text-decoration: none; color: #fff; }
.btn:active { transform: scale(.98); }
.btn svg    { width: 16px; height: 16px; flex-shrink: 0; }

.btn-secondary { background: var(--color-secondary); }
.btn-secondary:hover { background: #2e2a3a; box-shadow: 0 4px 14px rgba(30,27,37,.30); }
.btn-outline {
    background: var(--color-surface); color: var(--color-text-2);
    border-color: var(--color-border2);
}
.btn-outline:hover { background: var(--color-surface2); box-shadow: var(--shadow-sm); color: var(--color-text); }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: transparent; padding: 0 10px; min-height: 36px; }
.btn-ghost:hover { background: var(--color-primary-lt); box-shadow: none; }
.btn-danger  { background: var(--color-danger); }
.btn-danger:hover  { background: #b82626; box-shadow: 0 4px 14px rgba(217,48,48,.30); }
.btn-success { background: var(--color-success); }
.btn-success:hover { background: #157a53; box-shadow: 0 4px 14px rgba(26,158,106,.30); }
.btn-sm  { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg  { min-height: 50px; padding: 0 28px; font-size: 16px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

/* ── Formularios ── */
.field { margin-bottom: 18px; }
.field label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--color-text-2); margin-bottom: 7px; letter-spacing: .01em;
}
.field .hint { font-size: 12px; color: var(--color-muted); margin-top: 5px; }
.input, .select, .textarea {
    width: 100%; min-height: 42px; padding: 10px 13px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font);
    background: var(--color-surface); color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}
.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8398' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.textarea { min-height: 100px; resize: vertical; padding-top: 11px; }
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(192,57,107,.12);
}
.input::placeholder { color: var(--color-muted); opacity: .8; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ── Cards ── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}
.card + .card { margin-top: 20px; }
.card-title {
    font-size: 16px; font-weight: 700; margin-bottom: 18px;
    color: var(--color-text); display: flex; align-items: center; gap: 8px;
}
.card-title svg { width: 18px; height: 18px; color: var(--color-primary); flex-shrink: 0; }

/* ── Alertas ── */
.alert {
    padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 20px;
    font-size: 14px; border: 1px solid transparent;
    display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--color-success-lt); color: #145c42; border-color: #b3e6d0; }
.alert-error   { background: var(--color-danger-lt);  color: #8c1f1f; border-color: #f5bebe; }
.alert-info    { background: var(--color-info-lt);    color: #1f4f90; border-color: #bedaf5; }
.alert-warning { background: var(--color-warning-lt); color: #7a5210; border-color: #f0d6a0; }

/* ── Tablas ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
table.data {
    width: 100%; border-collapse: collapse;
    background: var(--color-surface); font-size: 14px;
}
table.data th, table.data td {
    padding: 13px 16px; text-align: left;
    border-bottom: 1px solid var(--color-border);
}
table.data th {
    background: var(--color-surface2); font-weight: 600; font-size: 12px;
    color: var(--color-muted); text-transform: uppercase; letter-spacing: .06em;
    white-space: nowrap;
}
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background var(--transition); }
table.data tbody tr:hover { background: var(--color-surface2); }

/* ── Badges ── */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: .03em; white-space: nowrap;
}
.badge-success { background: var(--color-success-lt); color: var(--color-success); }
.badge-danger  { background: var(--color-danger-lt);  color: var(--color-danger); }
.badge-warning { background: var(--color-warning-lt); color: var(--color-warning); }
.badge-muted   { background: #eee8f4; color: var(--color-muted); }
.badge-info    { background: var(--color-info-lt); color: var(--color-info); }
.badge-primary { background: var(--color-primary-lt); color: var(--color-primary); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }

/* ── App Shell (Sidebar + Main) ── */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w); flex-shrink: 0;
    background: var(--color-secondary);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-header {
    padding: 24px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 17px; color: #fff;
    letter-spacing: -.02em;
}
.sidebar-brand img { height: 36px; width: 36px; border-radius: var(--radius-xs); object-fit: cover; }
.sidebar-brand .brand-name { display: flex; flex-direction: column; }
.sidebar-brand .brand-name span { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.4); letter-spacing: .04em; }

.sidebar-nav { padding: 12px 10px; flex: 1; }
.sidebar-nav .nav-section {
    font-size: 10px; font-weight: 700; letter-spacing: .1em;
    color: rgba(255,255,255,.3); text-transform: uppercase;
    padding: 10px 10px 6px; margin-top: 8px;
}
.sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--radius-xs);
    color: rgba(255,255,255,.6); font-size: 14px; font-weight: 500;
    transition: background var(--transition), color var(--transition);
    margin-bottom: 2px;
}
.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.sidebar-nav a.active {
    background: var(--color-primary); color: #fff;
    box-shadow: 0 4px 12px rgba(192,57,107,.40);
}
.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: 11px; color: rgba(255,255,255,.25);
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: var(--topbar-h); background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px; position: sticky; top: 0; z-index: 10;
    box-shadow: var(--shadow-xs);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-title { font-weight: 700; font-size: 16px; color: var(--color-text); }
.topbar-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-muted); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-user {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 500; color: var(--color-text-2);
}
.topbar-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dk));
    display: grid; place-items: center;
    font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}

.content { padding: 28px 28px 48px; flex: 1; }

/* ── Page header ── */
.page-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.page-head-left h1 { font-size: 22px; font-weight: 800; color: var(--color-text); }
.page-head-left p  { font-size: 14px; color: var(--color-muted); margin-top: 3px; }
.page-head h1 { font-size: 22px; font-weight: 800; margin: 0; }

/* ── KPI Stats ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin-bottom: 24px; }
.stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.stat:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat .stat-icon {
    width: 40px; height: 40px; border-radius: var(--radius-xs);
    background: var(--color-primary-lt);
    display: grid; place-items: center; margin-bottom: 14px;
}
.stat .stat-icon svg { width: 20px; height: 20px; color: var(--color-primary); }
.stat .label { font-size: 12px; font-weight: 600; color: var(--color-muted); text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-size: 26px; font-weight: 800; color: var(--color-text); margin-top: 4px; line-height: 1; }
.stat .value.accent { color: var(--color-primary); }
.stat .value.success { color: var(--color-success); }
.stat .stat-trend {
    font-size: 12px; font-weight: 600; margin-top: 8px;
    display: flex; align-items: center; gap: 4px;
    color: var(--color-muted);
}

/* ── Auth screens ── */
.auth-wrap {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background: var(--color-bg);
    position: relative; overflow: hidden;
}
.auth-wrap::before {
    content: '';
    position: fixed; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% -10%, rgba(192,57,107,.14) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 110%, rgba(192,57,107,.10) 0%, transparent 55%);
    pointer-events: none;
}
.auth-card { width: 100%; max-width: 420px; position: relative; z-index: 1; }
.auth-logo {
    text-align: center; margin-bottom: 28px;
}
.auth-logo .logo-mark {
    width: 60px; height: 60px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dk));
    display: grid; place-items: center; margin: 0 auto 14px;
    box-shadow: 0 8px 24px rgba(192,57,107,.35);
}
.auth-logo .logo-mark svg { width: 30px; height: 30px; color: #fff; }
.auth-logo h1 { font-size: 22px; font-weight: 800; color: var(--color-text); }
.auth-logo p  { font-size: 14px; color: var(--color-muted); margin-top: 4px; }
.auth-form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
}
.auth-form-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.auth-form-card .sub { font-size: 14px; color: var(--color-muted); margin-bottom: 24px; }
.auth-divider { font-size: 12px; color: var(--color-muted); text-align: center; margin: 16px 0; }

/* ── Utility ── */
.muted { color: var(--color-muted); }
.text-right  { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.fw-bold { font-weight: 700; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 8px; }
.gap-lg { gap: 20px; }
.w-full { width: 100%; }
code { font-family: 'Cascadia Code', 'Fira Code', monospace; font-size: 12px; background: #f0ecf4; padding: 2px 7px; border-radius: 5px; color: var(--color-primary-dk); }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--color-border); margin: 20px 0; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state svg { width: 48px; height: 48px; color: var(--color-border2); margin: 0 auto 16px; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--color-text-2); }
.empty-state p  { font-size: 14px; color: var(--color-muted); margin-top: 6px; }

/* ── Section title ── */
.section-title {
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--color-muted);
    margin-bottom: 12px;
}

/* ── Store cards (admin) ── */
.store-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 18px; }
.store-card {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    position: relative; overflow: hidden;
}
.store-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.store-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.store-card.suspended::before { background: var(--color-danger); }
.store-card .store-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.store-card .store-slug { font-size: 12px; color: var(--color-muted); margin-bottom: 14px; }
.store-card .store-meta { font-size: 13px; color: var(--color-text-2); display: flex; flex-direction: column; gap: 4px; }
.store-card .store-actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border); }

/* ── Acciones rápidas ── */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 12px; margin-bottom: 24px; }
.quick-action {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 18px 14px;
    text-align: center; cursor: pointer; text-decoration: none;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.quick-action:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--color-primary); text-decoration: none; }
.quick-action .qa-icon {
    width: 44px; height: 44px; border-radius: var(--radius-xs);
    background: var(--color-primary-lt); display: grid; place-items: center;
}
.quick-action .qa-icon svg { width: 22px; height: 22px; color: var(--color-primary); }
.quick-action span { font-size: 13px; font-weight: 600; color: var(--color-text-2); }

/* ── Toast notifications ── */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: var(--color-secondary); color: #fff; padding: 14px 18px;
    border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
    box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
    min-width: 260px; animation: toast-in .3s ease;
}
@keyframes toast-in { from { opacity:0; transform: translateY(10px); } }

/* ── Responsive ── */
@media (max-width: 860px) {
    :root { --sidebar-w: 0px; }
    .app { flex-direction: column; }
    .sidebar {
        width: 100%; height: auto; position: relative;
        flex-direction: row; align-items: center; padding: 0 10px;
        overflow-x: auto;
    }
    .sidebar-header { padding: 12px 10px; border-bottom: none; border-right: 1px solid rgba(255,255,255,.07); }
    .sidebar-nav { display: flex; flex-direction: row; padding: 8px 4px; flex: 1; overflow-x: auto; }
    .sidebar-nav .nav-section { display: none; }
    .sidebar-nav a { padding: 8px 12px; white-space: nowrap; margin-bottom: 0; margin-right: 2px; }
    .sidebar-nav a svg { display: none; }
    .sidebar-footer { display: none; }
    .topbar { padding: 0 16px; }
    .content { padding: 18px 16px 32px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 480px) {
    .quick-actions { grid-template-columns: repeat(2,1fr); }
    .stats { grid-template-columns: 1fr 1fr; }
    .page-head { flex-direction: column; }
}

/* ── CRM: tarjetas de clientes ── */
.crm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.crm-card {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex; flex-direction: column; gap: 14px;
}
.crm-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.crm-card-head { display: flex; align-items: center; gap: 14px; }
.crm-avatar {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dk));
    color: #fff; font-weight: 800; font-size: 18px;
    display: grid; place-items: center;
}
.crm-card h3 { font-size: 16px; font-weight: 700; margin: 0; }
.crm-card .crm-meta { font-size: 13px; color: var(--color-muted); }
.crm-card-stats { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--color-border); }
.crm-card-stats div { flex: 1; }
.crm-card-stats .lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); }
.crm-card-stats .val { font-size: 15px; font-weight: 800; color: var(--color-text); }

.insight-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.insight-card {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.insight-card h3 {
    font-size: 14px; font-weight: 700; margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.insight-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.insight-list li {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--color-border);
}
.insight-list li:last-child { border-bottom: none; }

/* ── Citas ── */
.appt-list { display: flex; flex-direction: column; gap: 12px; }
.appt-card {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 18px 20px;
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 16px; align-items: center; box-shadow: var(--shadow-sm);
}
.appt-time {
    text-align: center; min-width: 72px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    background: var(--color-primary-lt); border: 1px solid rgba(192,57,107,.2);
}
.appt-time .day { font-size: 22px; font-weight: 800; color: var(--color-primary); line-height: 1; }
.appt-time .hour { font-size: 12px; font-weight: 600; color: var(--color-primary-dk); margin-top: 4px; }
.appt-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.appt-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.appt-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.appt-card--compact { padding: 14px 16px; }
.appt-layout { grid-template-columns: minmax(280px, 380px) 1fr; }
.appt-calendar-card { padding: 20px; }
.appt-cal-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 16px;
}
.appt-cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.appt-cal-weekday {
    text-align: center; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--color-muted); padding: 6px 0;
}
.appt-cal-cell {
    aspect-ratio: 1; min-height: 44px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: var(--radius-xs); border: 1px solid transparent;
    text-decoration: none; color: inherit; position: relative;
    transition: background .15s, border-color .15s;
}
.appt-cal-cell:hover:not(.appt-cal-cell--empty) {
    background: var(--color-surface2); border-color: var(--color-border);
}
.appt-cal-cell.is-today { font-weight: 700; }
.appt-cal-cell.is-selected {
    background: var(--color-primary-lt); border-color: rgba(192,57,107,.35);
    box-shadow: inset 0 0 0 1px rgba(192,57,107,.15);
}
.appt-cal-cell.has-events .appt-cal-day { color: var(--color-primary-dk); }
.appt-cal-cell--empty { pointer-events: none; }
.appt-cal-day { font-size: 14px; font-weight: 600; line-height: 1; }
.appt-cal-badge {
    position: absolute; bottom: 4px;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; font-size: 10px; font-weight: 700;
    background: var(--color-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
}

/* ── Formularios seccionados ── */
.form-section { margin-bottom: 8px; }
.form-section .section-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--color-muted);
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}
.color-picker-row { display: flex; align-items: center; gap: 12px; }
.color-picker-row input[type="color"] {
    width: 48px; height: 48px; padding: 4px; border: 1px solid var(--color-border);
    border-radius: var(--radius-xs); cursor: pointer;
}
.color-preview-strip {
    height: 8px; border-radius: 999px; margin-top: 12px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-secondary));
}

.profile-header {
    display: flex; align-items: center; gap: 20px; margin-bottom: 24px;
    padding: 24px; background: var(--color-surface);
    border: 1px solid var(--color-border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.profile-header .crm-avatar { width: 64px; height: 64px; font-size: 26px; }

@media (max-width: 720px) {
    .insight-cards { grid-template-columns: 1fr; }
    .appt-card { grid-template-columns: 1fr; }
    .appt-layout { grid-template-columns: 1fr; }
    .crm-grid { grid-template-columns: 1fr; }
}

/* ── Inventario ── */
.inv-toolbar-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.inv-search-wrap {
    flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
    background: var(--color-surface2); border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); padding: 0 12px;
}
.inv-search-wrap .input { border: none; background: transparent; box-shadow: none; flex: 1; min-height: 42px; }
.inv-filter-row.is-filter-hidden { display: none !important; }
details.inv-product-card.is-filter-hidden { display: none !important; }
#inv-low-stock.is-filter-empty { display: none !important; }
/* Galería de imágenes de producto (inventario) */
.product-images-field { margin-top: 12px; }
.product-gallery-edit {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.product-gallery-item {
    position: relative;
    width: 100px;
    cursor: pointer;
}
.product-gallery-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-border);
    display: block;
}
.product-gallery-item:has(input[name="primary_image"]:checked) img {
    border-color: var(--color-primary);
}
.product-gallery-item-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
}
.product-gallery-primary,
.product-gallery-delete {
    display: flex;
    align-items: center;
    gap: 4px;
}
.product-gallery-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.product-gallery-view img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}
.product-gallery-view-main {
    grid-column: 1 / -1;
    aspect-ratio: 4/3;
    max-height: 280px;
}
.product-gallery-badge {
    position: absolute; top: 6px; right: 6px;
    background: var(--color-secondary); color: #fff;
    font-size: 9px; font-weight: 800; letter-spacing: .06em;
    padding: 2px 6px; border-radius: 4px;
}
.product-gallery-item-empty {
    width: 100px; height: 100px;
    display: grid; place-items: center;
    background: var(--color-bg); border-radius: var(--radius-sm);
    border: 2px dashed var(--color-border);
    font-size: 11px; color: var(--color-muted); text-align: center; padding: 8px;
}
.product-images-section { margin: 0; }
.product-edit-images-card {
    border: 2px solid var(--color-primary-lt);
    background: linear-gradient(180deg, var(--color-primary-lt) 0%, var(--color-surface) 48px);
}
.product-images-title { margin-bottom: 8px; color: var(--color-primary); }
.product-images-intro { margin-bottom: 14px; }
.product-url-highlight {
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: var(--radius);
    border: 2px dashed var(--color-primary);
    background: var(--color-surface);
}
.product-url-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}
.product-url-textarea { min-height: 120px; font-family: ui-monospace, monospace; font-size: 13px; }
.product-upload-field { margin-top: 4px; }

.inv-product-card { margin-bottom: 16px; padding: 0; overflow: hidden; }
.inv-product-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 20px; flex-wrap: wrap;
}
.inv-product-link {
    display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; flex: 1; min-width: 200px;
}
.inv-product-link:hover .inv-product-name { color: var(--color-primary); }
.inv-product-thumb {
    width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm);
    border: 1px solid var(--color-border); flex-shrink: 0;
}
.inv-product-thumb--empty {
    display: grid; place-items: center; background: var(--color-primary-lt); font-size: 24px;
}
.inv-product-name { font-size: 16px; font-weight: 700; margin: 0 0 4px; transition: color var(--transition); }
.inv-product-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inv-product-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inv-product-table { border-top: 1px solid var(--color-border); }
.inv-product-table table { margin: 0; }
.inv-attr-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--color-surface2); border: 1px solid var(--color-border);
    border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600;
}
.inv-attr-key {
    font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--color-muted); font-weight: 700;
}
.inv-matrix th { white-space: nowrap; }
.text-xs { font-size: 11px; }
@media (max-width: 720px) {
    .inv-product-head { flex-direction: column; align-items: stretch; }
    .inv-product-actions { justify-content: flex-start; }
}

/* Pestañas inventario */
.inv-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.inv-quick-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius, 10px);
    background: var(--color-surface, #fff);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.inv-quick-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.inv-quick-card.active {
    border-color: var(--color-primary);
    background: var(--color-primary-lt, rgba(184,51,106,.08));
}
@media (max-width: 720px) {
    .inv-quick-actions { grid-template-columns: 1fr; }
}

.inv-tabs {
    display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap;
    border-bottom: 1px solid var(--color-border); padding-bottom: 0;
}
.inv-tab {
    padding: 10px 16px; font-size: 13px; font-weight: 600; text-decoration: none;
    color: var(--color-muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.inv-tab:hover { color: var(--color-primary); }
.inv-tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.sortable-th { cursor: pointer; user-select: none; white-space: nowrap; }
.sortable-th:hover { color: var(--color-primary); }
.sortable-th[data-sort-dir="asc"] .sort-icon,
.sortable-th[data-sort-dir="desc"] .sort-icon { color: var(--color-primary); font-weight: 700; }

.inv-table-scroll {
    max-height: 70vh;
    overflow: auto;
}
.inv-table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--color-surface, #fff);
    box-shadow: 0 1px 0 var(--color-border);
}
.inv-product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}
.inv-product-cell-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
}
.inv-product-cell-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg, #f6f4f8);
    font-size: 18px;
}
.inv-product-cell-name {
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}
.inv-product-cell-name:hover { color: var(--color-primary); }
.inv-col-product { min-width: 220px; }
.sort-icon { font-size: 11px; opacity: .6; margin-left: 4px; }

.inv-product-card { margin-bottom: 10px; }
.inv-product-summary {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 14px 18px; cursor: pointer; list-style: none;
}
.inv-product-summary::-webkit-details-marker { display: none; }
.inv-product-summary .inv-product-name { font-weight: 700; flex: 1; min-width: 120px; }
.inv-summary-actions { margin-left: auto; display: flex; gap: 6px; }

/* Catálogos admin */
.catalogs-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 1100px) {
    .catalogs-grid { grid-template-columns: 1fr; }
}
.catalogs-panel { padding: 0; overflow: hidden; }
.catalogs-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--color-border);
}
.catalogs-panel .table-wrap { max-height: 360px; overflow: auto; }
.catalogs-add-row {
    display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--color-border);
    background: var(--color-surface2);
}
.catalogs-add-row .input { flex: 1; min-height: 38px; }
.cat-actions { white-space: nowrap; }
.cat-value-input { min-height: 36px; padding: 6px 10px; }

/* ============ Reportes ============ */
.rep-toolbar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    justify-content: space-between; margin-bottom: 22px;
}
.rep-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.rep-preset {
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--color-border); background: var(--color-surface);
    color: var(--color-text-2, #4a4558); font-size: 13px; font-weight: 600;
    text-decoration: none; transition: all .14s;
}
.rep-preset:hover { border-color: var(--color-primary); }
.rep-preset.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.rep-range { display: flex; align-items: center; gap: 8px; }
.rep-range .input { min-height: 40px; max-width: 160px; }
.rep-range span { color: var(--color-muted); }

/* Ventas — filtros compactos */
.sales-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md, 10px);
}
.sales-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}
.sales-preset {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-2, #4a4558);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.sales-preset:hover { border-color: var(--color-primary); }
.sales-preset.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.sales-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    margin: 0;
}
.sales-filter-form .input,
.sales-filter-form .select {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 13px;
}
.sales-filter-form .input[type="date"] {
    width: 142px;
    max-width: 42vw;
}
.sales-filter-form .select {
    width: auto;
    min-width: 118px;
    max-width: 150px;
}
.sales-filter-form .btn {
    min-height: 38px;
    padding: 6px 16px;
    white-space: nowrap;
}
.sales-filter-sep {
    color: var(--color-muted);
    font-size: 13px;
    user-select: none;
}

/* Catálogo staff — tabla compacta */
.cat-staff-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.cat-staff-stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md, 10px);
    padding: 10px 12px;
}
.cat-staff-stat .lbl {
    display: block;
    font-size: 11px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.cat-staff-stat strong { font-size: 20px; }
.cat-staff-stat--link { grid-column: span 2; }
@media (max-width: 640px) {
    .cat-staff-stat--link { grid-column: span 1; }
}
.cat-staff-help summary { list-style: none; }
.cat-staff-help summary::-webkit-details-marker { display: none; }
.cat-staff-toolbar { margin-bottom: 14px; }
.cat-staff-table-head {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg, #fafafa);
}
.cat-staff-table td,
.cat-staff-table th {
    padding: 8px 10px;
    font-size: 13px;
    vertical-align: middle;
}
.cat-staff-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.cat-staff-thumb--empty {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--color-bg);
    border-radius: 6px;
    font-size: 18px;
}
.cat-staff-actions { white-space: nowrap; }
.input-sm { min-height: 34px; font-size: 12px; padding: 5px 8px; }
.th-sort {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.th-sort:hover { color: var(--color-primary); }
.th-sort--active { color: var(--color-primary); }
.cat-staff-table thead th { user-select: none; }

.rep-stats { margin-bottom: 22px; }
.rep-card { margin-bottom: 22px; }
.rep-card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.rep-card-head .card-title { margin: 0; }
.rep-grid { gap: 22px; align-items: start; }
.rep-chart-wrap { position: relative; width: 100%; min-height: 240px; }
.rep-chart-sm { min-height: 260px; }
.rep-legend { font-size: 12px; color: var(--color-muted); display: inline-flex; align-items: center; }
.rep-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.rep-legend .dot-primary { background: var(--color-primary); }
.rep-legend .dot-accent { background: var(--color-accent); border: 1px dashed color-mix(in srgb, var(--color-accent) 60%, #000); }
.rep-subtitle { font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.rep-expense-grid { gap: 24px; align-items: start; }
.rep-expense-form .field { margin-bottom: 12px; }
.rep-expense-cats {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.rep-expense-cats li a {
    color: inherit;
    text-decoration: none;
}
.rep-expense-cats li a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}
.rep-expense-cats li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; border-radius: 10px;
    background: var(--color-bg, #f6f4f8);
    font-size: 13px;
}
.purchase-search-bar { position: relative; margin-bottom: 8px; }
.purchase-search-results {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    max-height: 280px; overflow: auto; box-shadow: var(--shadow-md);
}
.purchase-search-item {
    display: block; width: 100%; text-align: left; padding: 10px 14px;
    border: none; background: none; cursor: pointer; font-size: 13px;
    border-bottom: 1px solid var(--color-border);
}
.purchase-search-item:hover { background: var(--color-primary-lt); }
.purchase-search-empty { padding: 12px 14px; font-size: 13px; color: var(--color-muted); }
.input-sm, .select-sm { padding: 6px 8px; font-size: 13px; }
.inv-pricing-toggle { display:flex; align-items:flex-start; gap:10px; cursor:pointer; font-size:14px; }
.inv-pricing-toggle input { margin-top: 3px; }
.inv-pricing-toggle input { margin-top:3px; }
.text-right { text-align: right; }

/* ============ Guía inventario / catálogo ============ */
.guide-section-title {
    font-size: 17px; font-weight: 800; margin-bottom: 18px;
    padding-bottom: 10px; border-bottom: 1px solid var(--color-border);
}
.guide-hero { padding: 24px; }
.guide-flow {
    display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap;
}
.guide-flow-step {
    flex: 1; min-width: 140px; padding: 16px;
    background: var(--color-surface2); border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 4px;
}
.guide-flow-step--primary {
    background: var(--color-primary-lt);
    border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
}
.guide-flow-step strong { font-size: 14px; }
.guide-flow-sub { font-size: 12px; color: var(--color-muted); line-height: 1.4; }
.guide-flow-num {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--color-primary); color: #fff;
    font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
}
.guide-flow-arrow {
    display: flex; align-items: center; color: var(--color-muted);
    font-size: 20px; font-weight: 700; padding: 0 2px;
}
.guide-grid-3 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.guide-grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.guide-term { padding: 20px; }
.guide-term h3 { font-size: 15px; margin-bottom: 8px; }
.guide-term p { font-size: 13px; line-height: 1.55; color: var(--color-text-2); margin-bottom: 12px; }
.guide-term a { font-size: 13px; font-weight: 600; }
.guide-term-icon {
    width: 44px; height: 44px; border-radius: var(--radius-xs);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; letter-spacing: .04em;
    margin-bottom: 12px;
}
.guide-term-icon--inv { background: var(--color-primary-lt); color: var(--color-primary-dk); }
.guide-term-icon--lists { background: var(--color-info-lt); color: var(--color-info); }
.guide-term-icon--web { background: var(--color-success-lt); color: var(--color-success); }
.guide-split {
    display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start;
}
.guide-tree-root {
    padding: 16px 18px; background: var(--color-primary-lt);
    border: 2px solid color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
    border-radius: var(--radius-sm); font-weight: 700; font-size: 15px;
}
.guide-tree-root small, .guide-tree-leaf small {
    display: block; font-weight: 500; font-size: 12px; color: var(--color-muted); margin-top: 4px;
}
.guide-tree-branches {
    margin-left: 24px; padding-left: 20px;
    border-left: 2px dashed var(--color-border2);
    display: flex; flex-direction: column; gap: 10px; margin-top: 12px;
}
.guide-tree-leaf {
    padding: 12px 14px; background: var(--color-surface2);
    border: 1px solid var(--color-border); border-radius: var(--radius-xs);
    font-size: 13px; font-weight: 600;
}
.guide-tree-leaf--muted { opacity: .65; border-style: dashed; }
.guide-tree-label {
    display: block; font-size: 9px; font-weight: 800; letter-spacing: .12em;
    color: var(--color-primary); margin-bottom: 2px;
}
.guide-mock-card {
    border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    overflow: hidden; background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}
.guide-mock-img {
    height: 120px; background: linear-gradient(135deg, var(--color-surface2) 0%, var(--color-border) 100%);
}
.guide-mock-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.guide-mock-cat { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); }
.guide-mock-body strong { font-size: 14px; }
.guide-mock-price { font-size: 16px; font-weight: 800; color: var(--color-primary); }
.guide-mock-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 2px; }
.guide-mock-chip-label { font-size: 10px; color: var(--color-muted); margin-right: 2px; }
.guide-mock-chip {
    padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 600;
    border: 1px solid var(--color-border); background: var(--color-surface2);
}
.guide-mock-btn {
    margin-top: 8px; padding: 8px; text-align: center; font-size: 11px; font-weight: 700;
    background: var(--color-primary); color: #fff; border-radius: var(--radius-xs);
}
.guide-steps { list-style: none; display: flex; flex-direction: column; gap: 0; }
.guide-step {
    padding: 20px 0; border-bottom: 1px solid var(--color-border);
}
.guide-step:last-child { border-bottom: none; padding-bottom: 0; }
.guide-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.guide-step-num {
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
    color: var(--color-primary); background: var(--color-primary-lt);
    padding: 4px 10px; border-radius: 999px;
}
.guide-step p { font-size: 14px; line-height: 1.55; color: var(--color-text-2); margin-bottom: 10px; }
.guide-rules { display: flex; flex-direction: column; gap: 8px; }
.guide-rule {
    display: flex; align-items: center; gap: 10px; font-size: 13px;
    padding: 10px 12px; border-radius: var(--radius-xs); border: 1px solid var(--color-border);
}
.guide-rule span:first-child {
    min-width: 28px; height: 22px; border-radius: 4px; font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.guide-rule--ok { background: var(--color-success-lt); border-color: color-mix(in srgb, var(--color-success) 25%, var(--color-border)); }
.guide-rule--ok span:first-child { background: var(--color-success); color: #fff; }
.guide-rule--no { background: var(--color-surface2); }
.guide-rule--no span:first-child { background: var(--color-muted); color: #fff; }
.guide-checklist, .guide-mistakes {
    list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.guide-checklist li {
    padding-left: 28px; position: relative; font-size: 14px; line-height: 1.45;
}
.guide-checklist li::before {
    content: ''; position: absolute; left: 0; top: 3px;
    width: 16px; height: 16px; border-radius: 4px;
    border: 2px solid var(--color-success); background: var(--color-success-lt);
}
.guide-mistakes li {
    padding: 12px 14px; background: var(--color-warning-lt);
    border: 1px solid color-mix(in srgb, var(--color-warning) 30%, var(--color-border));
    border-radius: var(--radius-xs); font-size: 13px; line-height: 1.45;
}
.guide-daily {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.guide-daily-item {
    padding: 14px 16px; background: var(--color-surface2);
    border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    display: flex; flex-direction: column; gap: 4px;
}
.guide-daily-item strong { font-size: 14px; }
.guide-daily-item span { font-size: 12px; color: var(--color-muted); line-height: 1.4; }

@media (max-width: 900px) {
    .guide-grid-3, .guide-grid-2, .guide-split, .guide-daily { grid-template-columns: 1fr; }
    .guide-flow-arrow { display: none; }
    .guide-flow-step { min-width: calc(50% - 8px); }
}
@media (max-width: 520px) {
    .guide-flow-step { min-width: 100%; }
}
