:root {
    --ink: #070707;
    --ink-soft: #151515;
    --gold: #c99618;
    --gold-bright: #e6bd48;
    --gold-pale: #f6e6b9;
    --ivory: #f7f5ef;
    --paper: #ffffff;
    --text: #242321;
    --muted: #79756d;
    --line: #e9e4d9;
    --danger: #c84738;
    --warning: #d47e18;
    --success: #2f815e;
    --info: #3f6e9c;
    --shadow: 0 14px 42px rgba(45, 37, 20, .07);
    --shadow-strong: 0 24px 70px rgba(0, 0, 0, .18);
    --radius: 16px;
    --sidebar: 238px;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background:
      radial-gradient(circle at 88% 2%, rgba(230, 189, 72, .13), transparent 27rem),
      linear-gradient(135deg, #fbfaf6 0%, var(--ivory) 54%, #f1eee5 100%);
    color: var(--text);
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    min-height: 100vh;
  }

  button, input, select, textarea { font: inherit; }
  button { cursor: pointer; }
  a { color: inherit; }
  .link-button { border: 0; padding: 0; background: transparent; color: inherit; text-align: left; font: inherit; }
  .link-button:hover { color: var(--gold); }
  .hidden { display: none !important; }
  .muted { color: var(--muted); }
  .text-danger { color: var(--danger); }
  .text-success { color: var(--success); }
  .text-gold { color: var(--gold); }
  .money { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .align-right { text-align: right; }
  .nowrap { white-space: nowrap; }

  .app-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-content: center;
    justify-items: center;
    color: #fff;
    background:
      radial-gradient(circle at center, rgba(201, 150, 24, .2), transparent 30%),
      #050505;
    transition: opacity .35s ease, visibility .35s ease;
  }
  .app-loader.is-hidden { opacity: 0; visibility: hidden; }
  .loader-mark {
    width: 64px;
    height: 64px;
    border: 1px solid rgba(230, 189, 72, .65);
    transform: rotate(45deg);
    display: grid;
    place-items: center;
    margin-bottom: 22px;
  }
  .loader-mark span { transform: rotate(-45deg); color: var(--gold-bright); font: 600 42px/1 "Cormorant Garamond"; }
  .loader-title { color: var(--gold-bright); font: 700 32px/1 "Cormorant Garamond"; letter-spacing: .22em; }
  .loader-subtitle { margin-top: 7px; font-size: 9px; letter-spacing: .42em; }
  .app-loader p { color: #b8b2a5; margin-top: 22px; }
  .gold-spinner { width: 28px; height: 28px; border: 2px solid #383124; border-top-color: var(--gold-bright); border-radius: 50%; margin-top: 28px; animation: spin .8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  .app-shell { min-height: 100vh; }
  .app-shell.is-loading { visibility: hidden; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: var(--sidebar);
    display: flex;
    flex-direction: column;
    color: #e8e4dc;
    background:
      radial-gradient(circle at 50% 7%, rgba(230, 189, 72, .11), transparent 11rem),
      linear-gradient(180deg, #050505, #0d0d0c 72%, #050505);
    border-right: 1px solid #262219;
    box-shadow: 14px 0 50px rgba(0, 0, 0, .12);
  }
  .brand { height: 142px; display: grid; place-content: center; justify-items: center; cursor: pointer; position: relative; }
  .brand::after { content: ""; position: absolute; bottom: 0; width: 70%; height: 1px; background: linear-gradient(90deg, transparent, #4c3d18, transparent); }
  .brand-logo { display: none; width: 58px; height: 58px; margin-bottom: 5px; object-fit: contain; border-radius: 14px; }
  .brand-logo.has-image { display: block; }
  .brand-flower { color: var(--gold-bright); font-size: 28px; line-height: 1; }
  .brand-name { margin-top: -5px; color: var(--gold-bright); font: italic 700 36px/1 "Cormorant Garamond"; }
  .brand-sub { margin-top: 6px; font-size: 8px; letter-spacing: .35em; color: #d9c887; }
  .main-nav { padding: 15px 10px; overflow: auto; flex: 1; }
  .nav-item {
    width: 100%; height: 39px; border: 0; border-radius: 10px; margin: 2px 0;
    background: transparent; color: #c9c5bd; display: flex; align-items: center; gap: 11px;
    padding: 0 12px; font-size: 12px; text-align: left; transition: .18s ease;
  }
  .nav-item svg { width: 17px; height: 17px; color: var(--gold-bright); stroke-width: 1.7; }
  .nav-item:hover { background: #1a1813; color: white; transform: translateX(2px); }
  .nav-item.is-active { color: #fff; background: linear-gradient(110deg, #84600b, var(--gold)); box-shadow: 0 8px 22px rgba(201, 150, 24, .2); }
  .nav-item.is-active svg { color: white; }
  .sidebar-footer { padding: 14px 16px 20px; border-top: 1px solid #24211b; }
  .sidebar-version { color: #6e6a61; font-size: 9px; margin-bottom: 12px; }
  .sidebar-user { font-size: 11px; color: #aaa59b; }
  .sidebar-user strong { display: block; color: #eee9df; margin-bottom: 2px; }
  .mobile-close { display: none; position: absolute; right: 10px; top: 10px; color: white; }

  .main-area { margin-left: var(--sidebar); min-height: 100vh; }
  .topbar {
    height: 72px; position: sticky; top: 0; z-index: 40; display: flex; align-items: center;
    gap: 20px; padding: 0 28px; background: rgba(247, 245, 239, .82); backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(220, 214, 201, .7);
  }
  .menu-trigger { display: none; }
  .global-search { position: relative; max-width: 500px; flex: 1; }
  .global-search > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; color: #9d8a5a; }
  .global-search input {
    width: 100%; height: 42px; padding: 0 58px 0 42px; border: 1px solid var(--line); border-radius: 12px;
    background: rgba(255,255,255,.84); outline: none; transition: .2s; color: var(--text);
  }
  .global-search input:focus { border-color: rgba(201,150,24,.7); box-shadow: 0 0 0 4px rgba(201,150,24,.08); background: white; }
  .global-search kbd { position: absolute; right: 11px; top: 10px; color: #999388; background: #f3f0e8; padding: 3px 7px; border-radius: 6px; border: 1px solid #e5dfd3; font-size: 10px; }
  .search-results {
    display: none; position: absolute; left: 0; right: 0; top: 48px; max-height: 390px; overflow: auto;
    background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-strong); padding: 7px;
  }
  .search-results.is-open { display: block; animation: rise .18s ease; }
  .search-result { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 9px; border-radius: 10px; }
  .search-result:hover { background: #faf5e7; }
  .search-result .mini-avatar { width: 38px; height: 38px; }
  .search-result strong { display: block; font-size: 12px; }
  .search-result small { color: var(--muted); }
  .topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .icon-button { width: 38px; height: 38px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; border-radius: 10px; }
  .icon-button:hover { background: rgba(201,150,24,.1); }
  .icon-button svg { width: 19px; }
  .notification-button { position: relative; }
  .notification-button span { width: 6px; height: 6px; background: var(--danger); border-radius: 50%; position: absolute; top: 7px; right: 7px; }
  .avatar-button, .mini-avatar {
    width: 38px; height: 38px; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 1px #d7c58c;
    color: #fff; background: linear-gradient(145deg, #2d271c, #b1841d); font-weight: 700;
  }

  .page { padding: 26px 28px 96px; max-width: 1600px; margin: 0 auto; }
  .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
  .eyebrow { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 7px; }
  .page-title { margin: 0; font: 700 clamp(28px, 3vw, 40px)/1 "Cormorant Garamond"; color: #171612; }
  .page-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
  .page-actions { display: flex; flex-wrap: wrap; gap: 9px; }
  .button {
    border: 0; min-height: 39px; border-radius: 10px; padding: 0 16px; display: inline-flex; align-items: center;
    justify-content: center; gap: 8px; font-size: 11px; font-weight: 700; transition: transform .16s, box-shadow .16s, opacity .16s;
  }
  .button:hover { transform: translateY(-1px); }
  .button:disabled { opacity: .55; cursor: wait; transform: none; }
  .button svg { width: 16px; height: 16px; }
  .button-primary { color: white; background: linear-gradient(110deg, #a8790d, var(--gold), #ddae38); box-shadow: 0 8px 20px rgba(201,150,24,.2); }
  .button-secondary { color: #7a5810; background: white; border: 1px solid #d7b65e; }
  .button-ghost { color: #665f54; background: #f7f4ed; }
  .button-danger { color: white; background: var(--danger); }
  .button-small { min-height: 31px; padding: 0 11px; font-size: 10px; }

  .grid { display: grid; gap: 16px; }
  .grid-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
  .card {
    background: rgba(255,255,255,.94); border: 1px solid rgba(230,224,212,.85); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 18px; position: relative; overflow: hidden;
  }
  .card::before { content: ""; position: absolute; width: 100px; height: 100px; border-radius: 50%; right: -65px; top: -65px; background: rgba(230,189,72,.08); }
  .card-hover { transition: transform .2s, box-shadow .2s; }
  .card-hover:hover { transform: translateY(-2px); box-shadow: 0 18px 45px rgba(45,37,20,.1); }
  .kpi-card { min-height: 112px; display: flex; align-items: center; gap: 14px; }
  .kpi-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--gold); background: linear-gradient(145deg, #fffaf0, #f7e5b6); }
  .kpi-icon svg { width: 21px; }
  .kpi-label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
  .kpi-value { margin-top: 7px; color: #a66f00; font-size: 21px; font-weight: 800; }
  .section-title { margin: 0; font: 700 21px/1.1 "Cormorant Garamond"; }
  .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
  .section-head small { color: var(--muted); }
  .debt-total { font: 700 32px/1 "Cormorant Garamond"; color: #b77d00; margin: 18px 0 8px; }
  .rank-list { display: grid; gap: 9px; }
  .rank-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; font-size: 11px; }
  .rank-number { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #f5edda; color: #9d7111; font-size: 9px; }
  .stock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
  .stock-stat { padding: 13px 10px; border-radius: 11px; background: #faf8f3; }
  .stock-stat small { display: block; color: var(--muted); font-size: 9px; }
  .stock-stat strong { display: block; font-size: 20px; margin-top: 7px; }

  .toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
  .field, .select, .textarea {
    width: 100%; min-height: 41px; border: 1px solid var(--line); border-radius: 10px; background: white;
    color: var(--text); padding: 9px 12px; outline: none; transition: .18s;
  }
  .field:focus, .select:focus, .textarea:focus { border-color: rgba(201,150,24,.75); box-shadow: 0 0 0 4px rgba(201,150,24,.08); }
  .toolbar .field { width: min(320px, 100%); }
  .toolbar .select { width: auto; min-width: 150px; }
  .field-group { display: grid; gap: 6px; }
  .field-group label { font-size: 10px; font-weight: 700; color: #5f5a51; }
  .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .form-grid .full { grid-column: 1 / -1; }
  .textarea { min-height: 80px; resize: vertical; }
  .input-money { text-align: right; font-variant-numeric: tabular-nums; }

  .tabs { display: flex; gap: 5px; padding: 5px; border-radius: 12px; background: #f3f0e9; overflow: auto; }
  .tab { border: 0; background: transparent; min-height: 34px; padding: 0 14px; border-radius: 8px; color: #706a60; white-space: nowrap; font-size: 10px; font-weight: 700; }
  .tab.is-active { color: #fff; background: linear-gradient(110deg, #a8790d, var(--gold)); box-shadow: 0 5px 12px rgba(201,150,24,.2); }

  .table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
  table { width: 100%; border-collapse: collapse; font-size: 11px; }
  th { text-align: left; padding: 11px 12px; background: #faf8f3; color: #665f53; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
  td { padding: 11px 12px; border-top: 1px solid #eeeae1; vertical-align: middle; }
  tbody tr { transition: background .15s; }
  tbody tr:hover { background: #fffcf4; }
  tbody tr.clickable { cursor: pointer; }
  .table-primary { font-weight: 700; }
  .table-secondary { color: var(--muted); font-size: 9px; margin-top: 3px; }
  .row-actions { display: flex; gap: 5px; justify-content: flex-end; }
  .row-action { width: 29px; height: 29px; border: 1px solid var(--line); background: white; border-radius: 8px; display: grid; place-items: center; color: #655d4f; }
  .row-action:hover { color: var(--gold); border-color: #d9bb6d; }
  .row-action svg { width: 14px; }
  .badge { display: inline-flex; align-items: center; min-height: 23px; border-radius: 999px; padding: 0 8px; font-size: 8px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
  .badge-gold { color: #8a5d00; background: #faedc8; }
  .badge-success { color: #236b4d; background: #dcf2e8; }
  .badge-warning { color: #a45c00; background: #fff0d8; }
  .badge-danger { color: #a62d22; background: #fde4df; }
  .badge-neutral { color: #625e57; background: #efede8; }
  .pagination { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 10px; }
  .help-steps { display: grid; gap: 12px; }
  .help-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fffdf8; }
  .help-step-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--gold), #8f650a); font-weight: 800; }
  .help-step h3 { margin: 1px 0 5px; font-size: 13px; }
  .help-step p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

  .empty-state { min-height: 260px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); padding: 30px; }
  .empty-state svg { width: 42px; height: 42px; color: #d1ad4c; margin-bottom: 13px; }
  .empty-state h3 { margin: 0; color: #3a362f; font: 700 23px "Cormorant Garamond"; }
  .empty-state p { max-width: 380px; font-size: 11px; line-height: 1.65; }
  .skeleton { min-height: 90px; border-radius: 13px; background: linear-gradient(90deg, #f2efe8 25%, #faf8f2 50%, #f2efe8 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
  @keyframes shimmer { to { background-position: -200% 0; } }

  .modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(4,4,4,.68); backdrop-filter: blur(6px); animation: fade .18s ease; }
  .modal { width: min(720px, 100%); max-height: min(88vh, 900px); overflow: auto; background: var(--ivory); border: 1px solid rgba(230,189,72,.3); border-radius: 20px; box-shadow: var(--shadow-strong); animation: rise .22s ease; }
  .modal-lg { width: min(1020px, 100%); }
  .modal-sm { width: min(500px, 100%); }
  .modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 20px; background: rgba(247,245,239,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .modal-title { margin: 0; font: 700 25px "Cormorant Garamond"; }
  .modal-body { padding: 20px; }
  .modal-foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px; background: rgba(247,245,239,.96); border-top: 1px solid var(--line); }
  @keyframes fade { from { opacity: 0; } }
  @keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.99); } }

  .checkin-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr); gap: 16px; }
  .customer-list { display: grid; gap: 7px; margin-top: 12px; max-height: 420px; overflow: auto; }
  .customer-option { border: 1px solid transparent; background: white; border-radius: 12px; padding: 11px; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; text-align: left; }
  .customer-option:hover, .customer-option.is-selected { border-color: #dfbe65; background: #fffaf0; }
  .customer-option strong { display: block; }
  .customer-option small { color: var(--muted); }
  .customer-metrics { text-align: right; font-size: 9px; }
  .customer-metrics span { display: block; margin: 2px 0; }
  .customer-hero { display: flex; align-items: center; gap: 13px; padding-bottom: 16px; }
  .customer-hero .mini-avatar { width: 52px; height: 52px; font-size: 16px; }
  .customer-hero h3 { margin: 0 0 5px; font: 700 24px "Cormorant Garamond"; }
  .customer-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .summary-box { background: white; border: 1px solid var(--line); padding: 13px; border-radius: 12px; }
  .summary-box small { display: block; color: var(--muted); font-size: 9px; }
  .summary-box strong { display: block; margin-top: 6px; }
  .visit-ticket { margin-top: 16px; padding: 18px; border: 1px solid #e6cf8b; border-radius: 13px; background: linear-gradient(145deg, #fffdf8, #fff5d9); position: relative; }
  .visit-ticket::after { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(201,150,24,.25); border-radius: 9px; pointer-events: none; }
  .visit-ticket strong { display: block; font-size: 18px; margin: 8px 0; }

  .workspace { display: grid; grid-template-columns: 250px 1fr; gap: 16px; }
  .workspace-side { align-self: start; position: sticky; top: 90px; }
  .workspace-total { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  .workspace-total strong { display: block; color: #a66f00; font-size: 22px; margin-top: 5px; }
  .catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 450px; overflow: auto; }
  .catalog-item { border: 1px solid var(--line); background: white; border-radius: 13px; padding: 13px; text-align: left; transition: .18s; }
  .catalog-item:hover { border-color: #d9b453; transform: translateY(-1px); }
  .catalog-item strong { display: block; margin: 8px 0 5px; }
  .catalog-item .price { color: #a76f00; font-weight: 800; }
  .cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cart-line:last-child { border-bottom: 0; }
  .payment-preview { display: grid; gap: 9px; padding: 16px; border-radius: 13px; background: #fff; border: 1px solid var(--line); }
  .payment-row { display: flex; justify-content: space-between; gap: 12px; }
  .payment-row.total { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 800; }

  .chart-card { min-height: 330px; }
  .chart-container { height: 260px; position: relative; }
  .timeline { display: grid; gap: 14px; }
  .timeline-item { border-left: 2px solid #d6ad42; padding: 0 0 0 18px; position: relative; }
  .timeline-item::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); position: absolute; left: -5.5px; top: 3px; box-shadow: 0 0 0 4px #f7edcf; }
  .timeline-item h4 { margin: 0 0 4px; }

  .toast-root { position: fixed; z-index: 300; right: 18px; bottom: 18px; display: grid; gap: 9px; width: min(370px, calc(100vw - 36px)); }
  .toast { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; color: white; background: #171714; padding: 13px; border-radius: 13px; box-shadow: var(--shadow-strong); animation: toast-in .25s ease; border-left: 3px solid var(--gold); }
  .toast.is-error { border-left-color: var(--danger); }
  .toast.is-success { border-left-color: var(--success); }
  .toast svg { width: 18px; }
  .toast strong { display: block; font-size: 11px; margin-bottom: 3px; }
  .toast small { color: #bbb6ad; line-height: 1.5; }
  .toast button { color: white; border: 0; background: transparent; }
  @keyframes toast-in { from { opacity: 0; transform: translateX(20px); } }

  .mobile-nav { display: none; }
  .sidebar-backdrop { display: none; }

  @media (max-width: 1180px) {
    :root { --sidebar: 78px; }
    .brand-name, .brand-sub, .nav-item span, .sidebar-footer { display: none; }
    .brand-logo { width: 46px; height: 46px; margin: 0; }
    .brand { height: 95px; }
    .nav-item { justify-content: center; padding: 0; }
    .nav-item svg { width: 19px; height: 19px; }
    .grid-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 860px) {
    :root { --sidebar: 238px; }
    .sidebar { transform: translateX(-105%); transition: transform .25s ease; }
    .sidebar.is-open { transform: translateX(0); }
    .brand-name, .brand-sub, .nav-item span, .sidebar-footer { display: initial; }
    .nav-item { justify-content: flex-start; padding: 0 12px; }
    .mobile-close { display: grid; }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.45); }
    .sidebar-backdrop.is-open { display: block; }
    .main-area { margin-left: 0; }
    .menu-trigger { display: grid; }
    .topbar { padding: 0 16px; }
    .desktop-create, .topbar .notification-button { display: none; }
    .page { padding: 20px 16px 94px; }
    .grid-kpis, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .workspace { grid-template-columns: 1fr; }
    .workspace-side { position: static; }
    .checkin-layout { grid-template-columns: 1fr; }
    .mobile-nav {
      position: fixed; z-index: 44; left: 10px; right: 10px; bottom: 9px; height: 64px; padding: 6px 9px;
      display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: rgba(7,7,7,.94);
      backdrop-filter: blur(14px); border: 1px solid #29261f; border-radius: 19px; box-shadow: 0 18px 50px rgba(0,0,0,.3);
    }
    .mobile-nav button { color: #aaa59b; border: 0; background: transparent; display: grid; justify-items: center; gap: 3px; font-size: 8px; }
    .mobile-nav svg { width: 18px; color: var(--gold-bright); }
    .mobile-nav .mobile-create { width: 48px; height: 48px; margin: -21px auto 0; border-radius: 50%; color: white; background: linear-gradient(145deg, var(--gold-bright), #a16f00); box-shadow: 0 7px 24px rgba(201,150,24,.4); }
    .mobile-nav .mobile-create svg { color: white; width: 22px; }
  }

  @media (max-width: 600px) {
    body { font-size: 13px; }
    .topbar { gap: 8px; height: 64px; }
    .global-search kbd, .avatar-button { display: none; }
    .global-search input { height: 39px; font-size: 11px; }
    .page-head { align-items: flex-start; flex-direction: column; }
    .page-actions { width: 100%; }
    .page-actions .button { flex: 1; }
    .grid-kpis, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .kpi-card { min-height: 92px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .customer-summary-grid, .stock-stats { grid-template-columns: 1fr; }
    .catalog-grid { grid-template-columns: 1fr; }
    .modal-backdrop { padding: 0; place-items: end center; }
    .modal { width: 100%; max-height: 94vh; border-radius: 20px 20px 0 0; }
    .toolbar > * { width: 100% !important; }
    .card { padding: 14px; }
  }