
      :root {
        --bg: #050506;
        --surface: #0c0c0f;
        --surface-2: #131318;
        --surface-glass: rgba(12, 12, 15, 0.68);
        --text: #f5f5f7;
        --muted: #92929b;
        --line: rgba(255, 255, 255, 0.1);
        --line-bright: rgba(138, 92, 255, 0.38);
        --brand: #3b9cff;
        --violet: #7a4dff;
        --violet-2: #8a5cff;
        --emerald: #65d17a;
        --glow: rgba(138, 92, 255, 0.26);
        --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
      }

      * {
        box-sizing: border-box;
        user-select: none;
        -webkit-user-select: none;
        margin: 0;
        padding: 0;
      }

      html,
      body {
        width: 100%;
        height: 100%;
        background: var(--bg);
        color: var(--text);
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .cf-pos-viewport-wrap {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
      }

      .cf-pos-shell {
        width: 1440px;
        height: 860px;
        display: flex;
        flex-direction: column;
        color: var(--text);
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        position: relative;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: radial-gradient(circle at 80% 10%, rgba(122, 77, 255, 0.12), transparent 45%),
          radial-gradient(circle at 15% 85%, rgba(59, 156, 255, 0.1), transparent 45%),
          rgba(5, 5, 6, 0.92);
        transform-origin: center center;
        box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
      }

      html[data-theme="light"] {
        color-scheme: light;
        --bg: #f3f4f8;
        --surface: rgba(255, 255, 255, .82);
        --surface-2: #eef0f7;
        --surface-glass: rgba(255, 255, 255, .72);
        --text: #202232;
        --muted: #6b7082;
        --line: rgba(35, 38, 58, .13);
        --line-bright: rgba(122, 77, 255, .3);
        --brand: #5a58db;
        --violet: #7657de;
        --violet-2: #8a5cff;
        --emerald: #21865a;
        --glow: rgba(122, 77, 255, .14);
        --shadow: 0 24px 60px rgba(30, 32, 55, .13);
      }

      html[data-theme="light"] .cf-pos-shell {
        background: radial-gradient(circle at 80% 10%, rgba(122, 77, 255, .09), transparent 45%), radial-gradient(circle at 15% 85%, rgba(59, 156, 255, .08), transparent 45%), rgba(246, 247, 251, .96);
      }

      html[data-theme="light"] .cf-topbar {
        background: rgba(255, 255, 255, .68);
      }

      html[data-theme="light"] .cf-panel,
      html[data-theme="light"] .cf-box,
      html[data-theme="light"] .cf-modal {
        background: rgba(255, 255, 255, .78);
        border-color: var(--line);
      }

      html[data-theme="light"] .cf-input,
      html[data-theme="light"] .cf-select {
        background: rgba(247, 248, 252, .92);
        color: var(--text);
        border-color: var(--line);
      }

      html[data-theme="light"] .cf-product-card,
      html[data-theme="light"] .cf-cart-item,
      html[data-theme="light"] .cf-chip {
        background: rgba(255, 255, 255, .82);
        border-color: var(--line);
        color: var(--text);
      }

      html[data-theme="light"] .cf-pos-shell .cf-box-head,
      html[data-theme="light"] .cf-pos-shell .cf-special-strip {
        background: rgba(232, 234, 244, .76);
      }

      html[data-theme="light"] .cf-pos-shell .cf-cart-item-sub,
      html[data-theme="light"] .cf-pos-shell .cf-field-label,
      html[data-theme="light"] .cf-pos-shell .cf-subhint {
        color: var(--muted);
      }

      html[data-theme="light"] .cf-pos-shell .cf-toast {
        background: #fff;
        color: #202232;
        border-color: var(--line);
      }

      .cf-theme-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 36px;
        padding: 0 12px;
        border: 1px solid var(--line-bright);
        border-radius: 999px;
        color: var(--text);
        background: color-mix(in srgb, var(--surface) 68%, transparent);
        cursor: pointer;
        font: 600 11px Inter, sans-serif;
        transition: transform .2s ease, border-color .2s ease, background .2s ease;
      }

      .cf-theme-toggle:hover {
        transform: translateY(-1px);
        border-color: var(--violet-2);
      }

      .cf-title {
        color: var(--text);
        background: none;
        -webkit-text-fill-color: currentColor;
      }

      html[data-theme="light"] .cf-search-box,
      html[data-theme="light"] .cf-cart-box,
      html[data-theme="light"] .cf-qty-ctrl {
        background: rgba(255, 255, 255, .72);
      }

      html[data-theme="light"] .cf-card {
        background: rgba(255, 255, 255, .76);
        border-color: var(--line);
        box-shadow: 0 8px 24px rgba(35, 38, 58, .06);
      }

      html[data-theme="light"] .cf-card:hover {
        background: rgba(255, 255, 255, .96);
        border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
      }

      html[data-theme="light"] .cf-card-name,
      html[data-theme="light"] .cf-card-price {
        color: var(--text);
      }

      html[data-theme="light"] .cf-modal {
        background: rgba(255, 255, 255, .96);
      }

      html[data-theme="light"] .cf-modal-backdrop {
        background: rgba(35, 38, 58, .24);
      }

      html[data-theme="light"] .cf-special-btn {
        color: var(--text);
      }

      html[data-theme="light"] .cf-box.highlight-border {
        background: linear-gradient(180deg, rgba(122, 77, 255, .07), rgba(255, 255, 255, .75));
      }

      html[data-theme="light"] .cf-qty-ctrl {
        border-color: var(--line);
      }

      html[data-theme="light"] .cf-cat-btn.active {
        color: #fff;
      }

      @media (max-width: 760px) {
        .cf-theme-toggle span {
          display: none;
        }

        .cf-topbar {
          padding: 0 12px;
        }

        .cf-title {
          font-size: 17px;
        }
      }

      .cf-topbar {
        height: 58px;
        padding: 0 22px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(12, 12, 15, 0.78);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        border-bottom: 1px solid var(--line);
        z-index: 20;
      }

      .cf-topbar-right {
        display: flex;
        align-items: center;
        gap: 14px;
      }

      .cf-menu-btn {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        border: 1px solid var(--line);
        background: var(--surface-2);
        color: var(--text);
        display: grid;
        place-items: center;
        cursor: pointer;
        font-size: 18px;
        transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
      }

      .cf-menu-btn:hover {
        transform: translateY(-2px);
        border-color: var(--brand);
        box-shadow: 0 8px 20px rgba(59, 156, 255, 0.2);
      }

      .cf-title {
        font-size: 22px;
        font-weight: 800;
        letter-spacing: -0.02em;
        background: linear-gradient(110deg, #fff, #b9a4ff);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }

      .cf-status-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 13px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: var(--surface);
        font-size: 12px;
        color: var(--muted);
        font-family: 'Inter', 'Cairo', sans-serif;
      }

      .cf-pulse {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--emerald);
        box-shadow: 0 0 0 0 rgba(101, 209, 122, 0.5);
        animation: cfPulse 2s infinite;
      }

      @keyframes cfPulse {
        70% {
          box-shadow: 0 0 0 8px transparent;
        }

        100% {
          box-shadow: 0 0 0 0 transparent;
        }
      }

      .cf-workspace {
        flex: 1;
        display: grid;
        grid-template-columns: 1fr 485px;
        gap: 14px;
        padding: 14px 18px 14px 18px;
        min-height: 0;
        position: relative;
      }

      .cf-panel {
        background: var(--surface-glass);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid var(--line);
        border-radius: 22px;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
        box-shadow: var(--shadow);
      }

      .cf-catalog {
        padding: 16px 18px;
        gap: 12px;
      }

      .cf-search-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
      }

      .cf-search-box {
        flex: 1;
        max-width: 340px;
        margin-inline-start: auto;
      }

      .cf-search-label {
        display: block;
        font-size: 11px;
        color: var(--muted);
        margin-bottom: 5px;
        text-align: center;
        font-weight: 600;
      }

      .cf-input {
        width: 100%;
        background: rgba(5, 5, 6, 0.75);
        border: 1px solid var(--line);
        color: var(--text);
        border-radius: 12px;
        padding: 9px 14px;
        font-family: inherit;
        font-size: 13px;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
      }

      .cf-input:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(59, 156, 255, 0.16);
      }

      .cf-subhint {
        font-size: 11px;
        color: var(--muted);
        text-align: right;
        margin-top: -4px;
      }

      .cf-cat-row {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
      }

      .cf-cat-btn {
        flex: 1;
        min-width: 82px;
        padding: 9px 12px;
        border-radius: 12px;
        border: 1px solid var(--line);
        background: var(--surface-2);
        color: var(--muted);
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .cf-cat-btn:hover {
        color: var(--text);
        border-color: rgba(255, 255, 255, 0.24);
        transform: translateY(-2px);
      }

      .cf-cat-btn.active {
        background: linear-gradient(135deg, rgba(59, 156, 255, 0.22), rgba(122, 77, 255, 0.28));
        color: #fff;
        border-color: var(--brand);
        box-shadow: 0 8px 24px -10px var(--brand);
      }

      .cf-special-strip {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 10px 14px;
        border-radius: 15px;
        border: 1px solid var(--line-bright);
        background: linear-gradient(90deg, rgba(122, 77, 255, 0.08), rgba(59, 156, 255, 0.12), rgba(122, 77, 255, 0.08));
        box-shadow: inset 0 0 24px rgba(122, 77, 255, 0.08);
      }

      .cf-special-btn {
        padding: 9px 18px;
        border-radius: 11px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(19, 19, 24, 0.85);
        color: var(--text);
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
      }

      .cf-special-btn:hover {
        transform: translateY(-2px);
        border-color: var(--brand);
        background: rgba(59, 156, 255, 0.16);
        box-shadow: 0 10px 25px -10px var(--brand);
      }

      .cf-special-btn:active {
        transform: scale(0.97);
      }

      .cf-products-grid {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        overflow-y: auto;
        padding: 4px 2px 10px 6px;
        align-content: start;
      }

      .cf-products-grid::-webkit-scrollbar {
        width: 6px;
      }

      .cf-products-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 999px;
      }

      .cf-products-grid::-webkit-scrollbar-thumb {
        background: rgba(138, 92, 255, 0.4);
        border-radius: 999px;
      }

      .cf-card {
        position: relative;
        background: var(--surface-2);
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        overflow: hidden;
        transform-style: preserve-3d;
        transition: transform 0.22s ease, border-color 0.25s ease, box-shadow 0.25s ease;
      }

      .cf-card::before {
        content: "";
        position: absolute;
        inset: -40%;
        background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(59, 156, 255, 0.22), transparent 28%);
        opacity: 0;
        transition: opacity 0.25s;
        pointer-events: none;
      }

      .cf-card:hover {
        border-color: rgba(59, 156, 255, 0.45);
        box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.7);
      }

      .cf-card:hover::before {
        opacity: 1;
      }

      .cf-card.pop {
        animation: cardClickPop 0.36s cubic-bezier(0.16, 1, 0.3, 1);
      }

      @keyframes cardClickPop {
        0% {
          transform: scale(1);
        }

        40% {
          transform: scale(0.94);
          border-color: var(--brand);
        }

        100% {
          transform: scale(1);
        }
      }

      .cf-card-img {
        width: 100%;
        height: 108px;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        background: linear-gradient(135deg, #171721, #0c0c12);
        display: grid;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, 0.06);
      }

      .cf-card-img svg {
        width: 82px;
        height: 82px;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
      }

      .cf-card:hover .cf-card-img svg {
        transform: scale(1.08) rotate(6deg);
      }

      .cf-card-title {
        font-family: 'Inter', 'Cairo', sans-serif;
        font-size: 13.5px;
        font-weight: 700;
        color: var(--text);
        text-align: center;
        line-height: 1.25;
        min-height: 34px;
        display: grid;
        place-items: center;
      }

      .cf-price-btn {
        width: 100%;
        padding: 7px 10px;
        border-radius: 10px;
        border: 1px solid rgba(59, 156, 255, 0.5);
        background: linear-gradient(135deg, #3b9cff, #7a4dff);
        color: #fff;
        font-family: inherit;
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
        transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
        box-shadow: 0 8px 20px -8px rgba(59, 156, 255, 0.65);
      }

      .cf-price-btn:hover {
        filter: brightness(1.12);
        box-shadow: 0 10px 24px -6px rgba(122, 77, 255, 0.85);
      }

      .cf-ing-btn {
        padding: 4px 12px;
        border-radius: 8px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.04);
        color: var(--muted);
        font-family: inherit;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        transition: color 0.2s, border-color 0.2s, background 0.2s;
      }

      .cf-ing-btn:hover {
        color: var(--text);
        border-color: var(--brand);
        background: rgba(59, 156, 255, 0.12);
      }

      .cf-card-hint {
        font-size: 10px;
        color: rgba(146, 146, 155, 0.65);
      }

      .cf-order-panel {
        padding: 14px;
        gap: 10px;
        overflow-y: auto;
      }

      .cf-box {
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(19, 19, 24, 0.55);
        padding: 11px 13px;
        display: flex;
        flex-direction: column;
        gap: 9px;
      }

      .cf-box.highlight-border {
        border-color: rgba(138, 92, 255, 0.35);
        background: linear-gradient(180deg, rgba(122, 77, 255, 0.07), rgba(19, 19, 24, 0.6));
      }

      .cf-box-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 12px;
        font-weight: 700;
        color: var(--text);
      }

      .cf-box-head .cf-caret {
        color: var(--brand);
        font-size: 10px;
      }

      .cf-row-2 {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        gap: 8px;
        align-items: end;
      }

      .cf-field-label {
        display: block;
        font-size: 11px;
        color: var(--muted);
        margin-bottom: 4px;
        font-weight: 600;
      }

      .cf-select {
        width: 100%;
        background: rgba(5, 5, 6, 0.8);
        border: 1px solid var(--line);
        color: var(--text);
        border-radius: 10px;
        padding: 8px 10px;
        font-family: inherit;
        font-size: 12.5px;
        font-weight: 600;
        outline: none;
        cursor: pointer;
      }

      .cf-select:focus {
        border-color: var(--brand);
      }

      .cf-split-pay-btn {
        padding: 8px 11px;
        border-radius: 10px;
        border: 1px solid var(--line);
        background: var(--surface-2);
        color: var(--muted);
        font-family: inherit;
        font-size: 11.5px;
        font-weight: 700;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.2s;
      }

      .cf-split-pay-btn.active {
        border-color: var(--brand);
        color: #fff;
        background: rgba(59, 156, 255, 0.18);
        box-shadow: 0 0 16px rgba(59, 156, 255, 0.25);
      }

      .cf-cust-grid {
        display: grid;
        grid-template-columns: 1.1fr auto auto 1fr;
        gap: 6px;
        align-items: end;
      }

      .cf-icon-btn {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        border: 1px solid var(--line);
        background: var(--surface-2);
        color: var(--text);
        display: grid;
        place-items: center;
        cursor: pointer;
        font-size: 14px;
        transition: border-color 0.2s, background 0.2s, transform 0.2s;
      }

      .cf-icon-btn:hover {
        border-color: var(--brand);
        background: rgba(59, 156, 255, 0.15);
        transform: translateY(-1px);
      }

      .cf-address-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 6px;
        align-items: center;
      }

      .cf-cart-box {
        flex: 1;
        min-height: 215px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(5, 5, 6, 0.55);
        padding: 11px 13px;
        display: flex;
        flex-direction: column;
        gap: 8px;
      }

      .cf-cart-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
      }

      .cf-hold-btn {
        padding: 5px 10px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: var(--surface-2);
        color: var(--text);
        font-family: inherit;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s;
      }

      .cf-hold-btn:hover {
        border-color: var(--brand);
        background: rgba(59, 156, 255, 0.14);
      }

      .cf-cart-items {
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding-left: 2px;
        max-height: 200px;
      }

      .cf-cart-empty {
        margin: auto;
        text-align: center;
        color: var(--muted);
        font-size: 12.5px;
        opacity: 0.7;
      }

      .cf-cart-item {
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 10px;
        align-items: center;
        padding: 8px 10px;
        border-radius: 11px;
        background: rgba(19, 19, 24, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.08);
        animation: slideInItem 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      }

      @keyframes slideInItem {
        from {
          opacity: 0;
          transform: translateY(8px);
        }

        to {
          opacity: 1;
          transform: none;
        }
      }

      .cf-cart-item-name {
        font-size: 12.5px;
        font-weight: 700;
        color: var(--text);
      }

      .cf-cart-item-sub {
        font-size: 10.5px;
        color: var(--muted);
      }

      .cf-qty-ctrl {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(5, 5, 6, 0.8);
        padding: 3px 6px;
        border-radius: 8px;
        border: 1px solid var(--line);
      }

      .cf-qty-btn {
        width: 20px;
        height: 20px;
        border-radius: 6px;
        border: 0;
        background: var(--surface-2);
        color: var(--text);
        cursor: pointer;
        font-weight: 800;
        font-size: 12px;
        display: grid;
        place-items: center;
      }

      .cf-qty-btn:hover {
        background: var(--brand);
        color: #050506;
      }

      .cf-cart-item-price {
        font-size: 12.5px;
        font-weight: 800;
        color: var(--brand);
        min-width: 58px;
        text-align: left;
      }

      .cf-cart-footer {
        border-top: 1px solid var(--line);
        padding-top: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }

      .cf-total-Readout {
        display: flex;
        align-items: baseline;
        gap: 6px;
      }

      .cf-total-Readout span {
        font-size: 11.5px;
        color: var(--muted);
      }

      .cf-total-Readout strong {
        font-size: 20px;
        font-weight: 800;
        background: linear-gradient(135deg, #fff 30%, var(--brand));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }

      .cf-checkout-btn {
        padding: 8px 18px;
        border-radius: 999px;
        border: 1px solid transparent;
        background: #fff;
        color: #050506;
        font-family: inherit;
        font-size: 12.5px;
        font-weight: 800;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
      }

      .cf-checkout-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(255, 255, 255, 0.22);
      }

      .cf-notes-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
      }

      .cf-pending-tab {
        position: absolute;
        left: 6px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 30;
        width: 44px;
        padding: 12px 6px;
        border-radius: 14px;
        border: 1px solid var(--line-bright);
        background: linear-gradient(180deg, rgba(122, 77, 255, 0.28), rgba(19, 19, 24, 0.95));
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        color: var(--text);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
        transition: transform 0.25s, border-color 0.25s;
      }

      .cf-pending-tab:hover {
        transform: translateY(-50%) scale(1.05);
        border-color: var(--brand);
      }

      .cf-pending-tab span {
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
      }

      .cf-pending-badge {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--brand), var(--violet));
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        display: grid;
        place-items: center;
        box-shadow: 0 0 12px rgba(59, 156, 255, 0.6);
      }

      .cf-toast {
        position: absolute;
        left: 50%;
        bottom: 20px;
        transform: translate(-50%, 24px);
        padding: 10px 18px;
        border-radius: 999px;
        border: 1px solid var(--line-bright);
        background: rgba(12, 12, 15, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        color: var(--text);
        font-size: 12.5px;
        font-weight: 600;
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 60;
      }

      .cf-toast.show {
        opacity: 1;
        transform: translate(-50%, 0);
      }

      .cf-modal-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(5, 5, 6, 0.72);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: none;
        place-items: center;
        z-index: 50;
      }

      .cf-modal-backdrop.open {
        display: grid;
      }

      .cf-modal {
        width: 420px;
        border-radius: 22px;
        border: 1px solid var(--line-bright);
        background: #0c0c0f;
        padding: 22px;
        box-shadow: var(--shadow);
        display: flex;
        flex-direction: column;
        gap: 14px;
      }

      .cf-modal-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }

      .cf-chip {
        padding: 7px 13px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: var(--surface-2);
        color: var(--text);
        font-size: 12px;
        cursor: pointer;
        transition: all 0.2s;
      }

      .cf-chip.on {
        border-color: var(--brand);
        background: rgba(59, 156, 255, 0.18);
        color: #fff;
      }

      @media (max-width: 1460px) {
        .cf-pos-shell {
          transform: scale(calc((100vw - 32px) / 1440));
        }
      }
      @media (max-width: 900px) {
        html.cf-pos-mobile,
        html.cf-pos-mobile body {
          width: 100%;
          min-width: 0;
          height: auto;
          min-height: 100%;
          overflow-x: hidden;
          overflow-y: auto;
          display: block;
          background: var(--bg);
        }
        .cf-pos-mobile .cf-pos-viewport-wrap {
          display: block;
          width: 100%;
          height: auto;
          min-height: 100dvh;
        }
        .cf-pos-mobile .cf-pos-shell {
          width: 100%;
          height: auto;
          min-height: 100dvh;
          margin: 0;
          transform: none !important;
          overflow: visible;
          border-radius: 0;
          border: 0;
          box-shadow: none;
        }
        .cf-pos-mobile .cf-topbar {
          position: sticky;
          top: 0;
          height: auto;
          min-height: 58px;
          padding: 8px 10px;
          gap: 8px;
          flex-wrap: wrap;
        }
        .cf-pos-mobile .cf-topbar-right {
          min-width: 0;
          flex: 1 1 100%;
          gap: 8px;
        }
        .cf-pos-mobile .cf-title {
          min-width: 0;
          font-size: 16px;
          line-height: 1.25;
        }
        .cf-pos-mobile .cf-title span { display: none; }
        .cf-pos-mobile .cf-status-pill { font-size: 10px; padding: 5px 7px; white-space: nowrap; }
        .cf-pos-mobile .cf-pos-top-actions {
          width: 100%;
          justify-content: flex-end;
          gap: 7px !important;
        }
        .cf-pos-mobile .cf-theme-toggle { min-height: 34px; }
        .cf-pos-mobile .cf-workspace {
          display: flex;
          flex-direction: column;
          gap: 12px;
          padding: 10px;
          min-height: 0;
        }
        .cf-pos-mobile .cf-panel {
          width: 100%;
          min-width: 0;
          overflow: visible;
          border-radius: 16px;
        }
        .cf-pos-mobile .cf-catalog { padding: 12px; gap: 10px; }
        .cf-pos-mobile .cf-search-row { align-items: stretch; flex-direction: column; gap: 8px; }
        .cf-pos-mobile .cf-search-box { width: 100%; }
        .cf-pos-mobile .cf-cat-row { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; }
        .cf-pos-mobile .cf-cat-btn { flex: 0 0 auto; white-space: nowrap; }
        .cf-pos-mobile .cf-special-strip { display: flex; gap: 8px; overflow-x: auto; }
        .cf-pos-mobile .cf-special-btn { flex: 0 0 auto; max-width: 88%; white-space: normal; }
        .cf-pos-mobile .cf-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
        .cf-pos-mobile .cf-card { min-width: 0; padding: 9px; border-radius: 13px; }
        .cf-pos-mobile .cf-card-img { height: 72px; }
        .cf-pos-mobile .cf-card-title { font-size: 12px; line-height: 1.3; }
        .cf-pos-mobile .cf-price-btn,
        .cf-pos-mobile .cf-ing-btn { min-height: 34px; padding: 7px 8px; font-size: 11px; }
        .cf-pos-mobile .cf-order-panel { gap: 10px; }
        .cf-pos-mobile .cf-box { padding: 12px; border-radius: 15px; }
        .cf-pos-mobile .cf-row-2 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
        .cf-pos-mobile .cf-cust-grid { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
        .cf-pos-mobile .cf-cust-grid > div:last-child { grid-column: 1 / -1; }
        .cf-pos-mobile .cf-address-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
        .cf-pos-mobile .cf-cart-box { min-height: 250px; border-radius: 15px; }
        /* Mobile: make Hold order a clear, thumb-friendly action instead of a tiny pill. */
        .cf-pos-mobile .cf-cart-top {
          display: grid;
          grid-template-columns: minmax(0, 1fr);
          align-items: stretch;
          gap: 10px;
        }
        .cf-pos-mobile .cf-cart-top > div {
          font-size: 14px !important;
          line-height: 1.35;
        }
        .cf-pos-mobile .cf-hold-btn {
          width: 100%;
          min-height: 44px;
          padding: 10px 14px;
          justify-content: center;
          border-radius: 12px;
          font-size: 13px;
          line-height: 1.25;
          white-space: normal;
          touch-action: manipulation;
          -webkit-tap-highlight-color: transparent;
        }
        .cf-pos-mobile .cf-hold-btn:active { transform: scale(.99); }
        .cf-pos-mobile .cf-cart-items { max-height: 270px; overflow-y: auto; }
        .cf-pos-mobile .cf-cart-footer { gap: 10px; flex-wrap: wrap; padding: 12px; }
        .cf-pos-mobile .cf-total-Readout { flex: 1 1 100%; }
        .cf-pos-mobile .cf-checkout-btn { width: 100%; min-height: 44px; }
        .cf-pos-mobile .cf-notes-grid { grid-template-columns: minmax(0, 1fr); }
        .cf-pos-mobile .cf-pending-tab { position: fixed; z-index: 30; right: 8px; bottom: 12px; transform: none; }
        .cf-pos-mobile .cf-modal-backdrop { position: fixed; overflow-y: auto; padding: 16px; }
        .cf-pos-mobile .cf-modal { width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; }
      }
      @media (max-width: 380px) {
        .cf-pos-mobile .cf-topbar-right { flex-wrap: wrap; }
        .cf-pos-mobile .cf-title { flex: 1 1 calc(100% - 54px); }
        .cf-pos-mobile .cf-status-pill#orderModeBadge { margin-left: 46px; }
        .cf-pos-mobile .cf-cust-grid { grid-template-columns: minmax(0, 1fr) auto; }
        .cf-pos-mobile .cf-cust-grid > div:last-child { grid-column: 1 / -1; }
      }
      @media (max-width: 760px) {
        .cf-pending-tab { position: fixed !important; left: auto !important; right: 12px !important; top: auto !important; bottom: 14px !important; transform: none !important; width: auto !important; flex-direction: row !important; gap: 8px !important; padding: 10px 14px !important; border-radius: 999px !important; font-size: 13px; }
        .cf-pending-tab br { display: none; }
      }
