.crm-section{padding:0 0 4rem}
.demo-banner{display:flex;gap:.8rem;align-items:center;flex-wrap:wrap;padding:.8rem 1rem;border-radius:16px;background:rgba(255,210,63,.08);border:1px solid rgba(255,210,63,.35);margin-bottom:1rem;font-size:.92rem;color:#e6e6ef}
.demo-badge{font-weight:900;font-size:.72rem;letter-spacing:.12em;padding:.25rem .6rem;border-radius:8px;background:var(--volt);color:var(--ink)}
.link-btn{background:none;border:0;color:var(--volt);font-weight:700;text-decoration:underline;padding:.3rem}
.btn.sm{padding:.6rem 1rem;font-size:.9rem}
.crm-layout{display:grid;grid-template-columns:1fr;gap:1rem}
.crm{display:grid;grid-template-columns:210px 1fr;min-height:640px;border-radius:24px;background:#f6f6f9;color:#16161f;overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow)}
.crm-side{background:#0f0f18;color:#e6e6ef;padding:1.1rem .8rem;display:flex;flex-direction:column;gap:1.2rem}
.crm-brand{display:flex;gap:.6rem;align-items:center;padding:0 .4rem;font-family:var(--font-display)}
.brand-mark.sm{width:30px;height:30px;border-radius:9px}.brand-mark.sm svg{width:18px;height:18px}
.crm-tabs{display:grid;gap:.25rem}
.crm-tabs button{display:flex;gap:.6rem;align-items:center;text-align:left;padding:.7rem .8rem;border-radius:12px;border:0;background:transparent;color:#c6c6d4;font-weight:600;transition:background .2s}
.crm-tabs button:hover{background:rgba(255,255,255,.07)}
.crm-tabs button[aria-selected="true"]{background:var(--grad);color:var(--ink)}
.crm-user{margin-top:auto;display:flex;gap:.6rem;align-items:center;padding:.6rem;border-radius:12px;background:rgba(255,255,255,.05);font-size:.85rem}
.crm-user small{display:block;color:#9a9aae}
.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#2a2a3d;color:#fff;font-weight:800;font-size:.78rem;flex:none}
.crm-main{padding:1.3rem;min-width:0}
.view-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.1rem;flex-wrap:wrap}
.view-head h2{font-size:1.6rem;letter-spacing:-.02em}
.view-head p{color:#666678;font-size:.9rem}
.view-head select,.toolbar select,.toolbar input{font:inherit;padding:.6rem .8rem;border-radius:12px;border:1.5px solid #dcdce6;background:#fff;color:#16161f}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem;margin-bottom:1rem}
.kpi{background:#fff;border-radius:16px;padding:1rem;border:1px solid #e6e6ee}
.kpi small{color:#6a6a7c;font-weight:600;font-size:.78rem}
.kpi b{display:block;font-family:var(--font-display);font-size:1.55rem;margin:.2rem 0;letter-spacing:-.02em}
.trend{font-size:.76rem;color:#6a6a7c;font-weight:600}.trend.up{color:#16a34a}.trend.down{color:#dc2626}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin-bottom:.8rem}
.box-card{background:#fff;border-radius:16px;padding:1rem;border:1px solid #e6e6ee;min-width:0}
.box-card h3{font-family:var(--font);font-size:.95rem;font-weight:700;margin-bottom:.8rem}
.chart svg{width:100%;height:auto}
.legend{display:flex;gap:1rem;font-size:.8rem;color:#555;margin-top:.4rem}.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:.35rem}
.tasks,.activity,.alerts{list-style:none;display:grid;gap:.5rem;font-size:.9rem}
.tasks li{display:flex;gap:.6rem;align-items:center}
.tasks input{width:18px;height:18px;accent-color:#ff5a1f}
.tasks li.done span{text-decoration:line-through;color:#999}
.activity li{display:flex;gap:.6rem;align-items:flex-start;color:#333}
.activity li::before{content:"";width:8px;height:8px;margin-top:.45rem;border-radius:50%;background:var(--flame);flex:none}
.activity small{color:#888;display:block}
.kanban{display:grid;grid-template-columns:repeat(5,minmax(165px,1fr));gap:.7rem;overflow-x:auto;padding-bottom:.5rem}
.col{background:#ececf2;border-radius:16px;padding:.7rem;min-height:380px;display:flex;flex-direction:column;gap:.5rem;transition:background .2s,outline .2s}
.col.over{background:#ffe9df;outline:2px dashed var(--flame)}
.col-head{display:flex;justify-content:space-between;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#4a4a58}
.col-total{font-size:.78rem;color:#6a6a7c;margin-top:-.3rem}
.deal{background:#fff;border-radius:12px;padding:.7rem;border:1px solid #e3e3ea;border-left:4px solid var(--c,#ff5a1f);cursor:grab;font-size:.88rem;box-shadow:0 2px 6px rgba(0,0,0,.04);transition:transform .15s,box-shadow .15s}
.deal:hover{box-shadow:0 8px 18px -8px rgba(0,0,0,.25)}
.deal.dragging{opacity:.5;transform:rotate(2deg)}
.deal b{display:block}
.deal .amt{font-weight:800;font-variant-numeric:tabular-nums}
.deal .meta{display:flex;justify-content:space-between;align-items:center;gap:.4rem;margin-top:.4rem;color:#777;font-size:.78rem}
.deal .mv{white-space:nowrap;flex:none;border:0;background:#f2f2f6;border-radius:8px;padding:.2rem .5rem;font-size:.75rem;font-weight:700;color:#333}
.deal .mv:hover{background:var(--volt)}
.deal.flash{animation:flash 1s}
@keyframes flash{0%{box-shadow:0 0 0 0 rgba(34,197,94,.8)}100%{box-shadow:0 0 0 14px rgba(34,197,94,0)}}
.toolbar{display:flex;gap:.6rem;margin-bottom:.8rem;flex-wrap:wrap}.toolbar input{flex:1;min-width:200px}
.table-wrap{overflow-x:auto}
.ctable{width:100%;border-collapse:collapse;font-size:.88rem;background:#fff;border-radius:12px;overflow:hidden}
.ctable th,.ctable td{padding:.6rem .7rem;border-bottom:1px solid #eee;text-align:left;white-space:nowrap}
.ctable th{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:#777;background:#fafafc}
.ctable td.num,.ctable th.num{text-align:right;font-variant-numeric:tabular-nums}
.ctable tbody tr{cursor:pointer;transition:background .15s}.ctable tbody tr:hover{background:#fff6f1}
.ctable mark{background:#ffe58a;border-radius:3px}
.crm .pill.ok{background:#dcfce7;color:#15803d}.crm .pill.warn{background:#fef3c7;color:#a16207}.crm .pill.bad{background:#fee2e2;color:#b91c1c}
.stage-tag{font-size:.75rem;font-weight:700;padding:.15rem .5rem;border-radius:999px;background:#f0f0f5}
.muted{color:#777;font-size:.85rem;margin-top:.6rem}
.alerts li{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.7rem .8rem;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa}
.alerts li.rev{background:#f0fdf4;border-color:#bbf7d0;opacity:.75}
.alerts small{display:block;color:#7a7a88}
.alerts button{border:0;border-radius:10px;padding:.4rem .7rem;font-weight:700;background:#16161f;color:#fff;font-size:.8rem;white-space:nowrap}
.alerts li.rev button{background:#16a34a}
.checklist{order:-1;background:var(--ink-2);border:1px solid var(--line);border-radius:22px;padding:1rem 1.2rem;display:grid;grid-template-columns:200px 1fr auto;gap:1.2rem;align-items:center}
.checklist .progress{margin:.6rem 0 0}
.checklist h3{font-family:var(--font);font-size:1rem;display:flex;justify-content:space-between}
.progress{height:8px;border-radius:99px;background:rgba(255,255,255,.08);margin:.8rem 0 1rem;overflow:hidden}.progress i{display:block;height:100%;width:0;background:var(--grad);transition:width .5s}
.checklist ul{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem .9rem;font-size:.86rem}
.checklist li{display:flex;gap:.6rem;align-items:flex-start;color:#cfcfdc}
.checklist li::before{content:"";flex:none;width:20px;height:20px;border-radius:50%;border:2px solid #4a4a5e;margin-top:1px;transition:all .3s}
.checklist li.done{color:#8a8a9e;text-decoration:line-through}
.checklist li.done::before{background:var(--grad);border-color:transparent;box-shadow:inset 0 0 0 3px var(--ink-2)}
.cl-cta{display:grid;gap:.4rem;font-size:.85rem;justify-items:start}
/* tour */
.tour{position:fixed;inset:0;z-index:200}
.tour-hole{position:fixed;border-radius:18px;box-shadow:0 0 0 9999px rgba(5,5,10,.72);transition:all .35s cubic-bezier(.2,.8,.2,1);pointer-events:none;outline:3px solid var(--volt)}
.tour-tip{position:fixed;width:min(340px,calc(100vw - 24px));background:#fff;color:#16161f;border-radius:18px;padding:1.1rem 1.2rem;box-shadow:0 30px 60px -20px rgba(0,0,0,.6);transition:top .35s,left .35s}
.tour-step{font-size:.75rem;font-weight:800;color:var(--flame);letter-spacing:.08em}
.tour-tip h3{font-size:1.2rem;margin:.3rem 0}
.tour-tip p{font-size:.93rem;color:#444}
.tour-dots{display:flex;gap:5px;margin:.8rem 0}.tour-dots i{width:22px;height:4px;border-radius:4px;background:#e3e3ea}.tour-dots i.on{background:var(--grad)}
.tour-btns{display:flex;justify-content:space-between;align-items:center;gap:.5rem}
.tour-tip .btn-ghost{color:#16161f}
.tour-tip .link-btn{color:#777}
.modal{border:0;border-radius:22px;padding:1.5rem;width:min(440px,calc(100vw - 24px));margin:auto;color:#16161f;box-shadow:0 30px 80px -20px rgba(0,0,0,.6)}
.modal::backdrop{background:rgba(5,5,10,.65);backdrop-filter:blur(3px)}
.modal .field{margin-top:.8rem}
.modal .btn-ghost{color:#16161f}
.field-head{display:flex;justify-content:space-between;align-items:center}
@media (max-width:1000px){.checklist{grid-template-columns:1fr}}
@media (max-width:760px){
 .crm{grid-template-columns:1fr}
 .crm-side{flex-direction:row;align-items:center;padding:.6rem;overflow-x:auto;gap:.5rem}
 .crm-brand,.crm-user{display:none}
 .crm-tabs{display:flex}.crm-tabs button{white-space:nowrap;padding:.55rem .7rem;font-size:.88rem}
 .kpis{grid-template-columns:1fr 1fr}.grid-2{grid-template-columns:1fr}
 .crm-main{padding:.9rem}
}
@media (max-width:760px){.kpi b{font-size:1.15rem;word-break:break-word}.kpi{padding:.8rem}}
[data-view="restaurante"] .grid-2{grid-template-columns:1.3fr 1fr}
#r-table th,#r-table td{padding:.55rem .45rem}
@media (max-width:760px){[data-view="restaurante"] .grid-2{grid-template-columns:1fr}}
