/* Phase 3 — dark mode + split payment + returns */
html[data-theme="dark"]{
  --fv-ivory:#0f0f10;
  --fv-white:#17171a;
  --fv-charcoal:#e9e6df;
  --fv-ink:#f6f2ea;
  --fv-muted:#a3a09a;
  --fv-line:#2a2a2e;
  --fv-gold:#d4b46a;
  --fv-gold-soft:#b79a55;
  --fv-bg:#0b0b0d;
  --fv-primary:#f6f2ea;
  --fv-secondary:#d4b46a;
  --fv-accent:#d4b46a;
  color-scheme: dark;
}
html[data-theme="dark"] body{background:var(--fv-bg);color:var(--fv-charcoal)}
html[data-theme="dark"] .site-header{background:rgba(20,20,22,.92);border-bottom-color:var(--fv-line)}
html[data-theme="dark"] .main-nav a{color:var(--fv-charcoal)}
html[data-theme="dark"] .store-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .pos-main,
html[data-theme="dark"] .pos-cart,
html[data-theme="dark"] .kpi,
html[data-theme="dark"] .data-table,
html[data-theme="dark"] .cart-table,
html[data-theme="dark"] .card,
html[data-theme="dark"] details,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .theme-preview{background:#17171a;border-color:#2a2a2e;color:var(--fv-charcoal)}
html[data-theme="dark"] .data-table th,
html[data-theme="dark"] .cart-table th{background:#1f1f24;color:#a3a09a}
html[data-theme="dark"] .data-table td,
html[data-theme="dark"] .cart-table td{border-color:#2a2a2e}
html[data-theme="dark"] .form input,
html[data-theme="dark"] .form textarea,
html[data-theme="dark"] .form select,
html[data-theme="dark"] .pos-search,
html[data-theme="dark"] .pos-payments input,
html[data-theme="dark"] .pos-payments select,
html[data-theme="dark"] .inline-form input,
html[data-theme="dark"] .inline-form select{background:#1f1f24;color:#f6f2ea;border-color:#2a2a2e}
html[data-theme="dark"] .btn-outline{border-color:#f6f2ea;color:#f6f2ea}
html[data-theme="dark"] .btn-outline:hover{background:#f6f2ea;color:#111}
html[data-theme="dark"] .site-footer{background:#050506;color:#e9e6df}
html[data-theme="dark"] .store-thumb,
html[data-theme="dark"] .product-thumb{background:#1f1f24;color:#5a564e}
html[data-theme="dark"] .theme-preview .preview-body{background:#1f1f24}
html[data-theme="dark"] .tab{color:#a3a09a}
html[data-theme="dark"] .tab.active{color:#f6f2ea;border-color:var(--fv-gold)}

/* Theme toggle */
.theme-toggle{border:1px solid var(--fv-line);border-radius:50%;width:40px;height:40px;background:transparent;color:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:.2s}
.theme-toggle:hover{background:rgba(200,164,93,.12);border-color:var(--fv-gold)}
html[data-theme="dark"] .theme-toggle:hover{background:rgba(212,180,106,.16)}

/* Split payments */
.split-pay{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.split-row{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;align-items:center}
.split-row select,.split-row input{padding:8px;border:1px solid var(--fv-line);border-radius:6px;font-size:.85rem;background:#fff;color:inherit}
html[data-theme="dark"] .split-row select,
html[data-theme="dark"] .split-row input{background:#1f1f24;color:#f6f2ea;border-color:#2a2a2e}
.split-row .link-btn{color:#c14848}
.split-summary{display:flex;justify-content:space-between;font-size:.85rem;color:var(--fv-muted);padding:6px 0}
.split-add{background:none;border:1px dashed var(--fv-line);border-radius:6px;padding:8px;color:var(--fv-muted);cursor:pointer;font-size:.82rem}
.split-add:hover{border-color:var(--fv-gold);color:var(--fv-gold)}

/* Return forms */
.return-form .form{max-width:none}
.return-item{display:grid;grid-template-columns:1fr 100px;gap:8px;margin-bottom:6px}