    :root {
      --primary:        #14304D;
      --primary-mid:    #0C2135;
      --primary-light:  #4C7FA6;
      --accent:         #2E6690;
      --accent-soft:    #E7EEF3;
      --accent-mid:     #1B4A6B;
      --green:          #16A34A;
      --green-soft:     #DCFCE7;
      --red:            #DC2626;
      --red-soft:       #FEE2E2;
      --amber:          #D97706;
      --amber-soft:     #FEF3C7;
      --bg:             #F9FAFB;
      --surface:        #FFFFFF;
      --surface-2:      #F2F4F7;
      --surface-3:      #E9ECF1;
      --border:         #E4E7EC;
      --border-soft:    #EEF1F5;
      --text-1:         #101828;
      --text-2:         #475467;
      --text-3:         #98A2B3;
      --text-4:         #B4BBC7;
      --radius-sm:      8px;
      --radius:         12px;
      --radius-lg:      16px;
      --radius-xl:      20px;
      --shadow-sm:      0 1px 3px rgba(16,24,40,.05), 0 2px 8px rgba(16,24,40,.04);
      --shadow:         0 2px 12px rgba(16,24,40,.08), 0 4px 24px rgba(16,24,40,.05);
      --shadow-lg:      0 8px 40px rgba(16,24,40,.14), 0 2px 8px rgba(16,24,40,.06);
      --shadow-xl:      0 24px 60px rgba(16,24,40,.18), 0 4px 16px rgba(16,24,40,.08);
      --step-trans:     cubic-bezier(.4, 0, .2, 1);
    }

    *, *::before, *::after {
      font-family: 'Plus Jakarta Sans', sans-serif;
      box-sizing: border-box; margin: 0; padding: 0;
    }

    ::-webkit-scrollbar { width: 4px; height: 4px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(46,102,144,.18); border-radius: 99px; }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      min-height: 100svh;
      -webkit-tap-highlight-color: transparent;
    }

    .topbar {
      background: linear-gradient(180deg, var(--primary-mid) 0%, var(--primary) 100%);
      height: 60px;
      display: flex; align-items: center; padding: 0 20px; gap: 14px;
      box-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 4px 18px rgba(16,24,40,.14);
      border-bottom: 1px solid rgba(255,255,255,.08);
      position: sticky; top: 0; z-index: 200;
    }
    .logo-icon {
      width: 34px; height: 34px;
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      box-shadow: 0 2px 8px rgba(0,0,0,.16);
    }
    .logo-text strong { display: block; color: #FFFFFF; font-size: 13px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
    .logo-text span   { display: block; color: rgba(255,255,255,.55); font-size: 10px; font-weight: 500; line-height: 1.2; }

    .topbar-nav {
      margin-left: auto;
      display: flex; align-items: center; gap: 10px;
    }
    .nav-links-group {
      display: flex; align-items: center; gap: 2px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 11px; padding: 3px;
    }
    .topbar-nav-btn {
      display: flex; align-items: center; gap: 6px;
      padding: 7px 14px;
      border-radius: 8px;
      font-size: 11.5px; font-weight: 700;
      color: rgba(255,255,255,.62);
      text-decoration: none;
      background: transparent;
      border: none;
      transition: background .16s, color .16s;
      white-space: nowrap;
      cursor: pointer;
    }
    .nav-links-group .topbar-nav-btn:hover { background: rgba(255,255,255,.10); color: rgba(255,255,255,.92); }
    .nav-links-group .topbar-nav-btn.active {
      background: #FFFFFF;
      color: var(--primary-mid);
      box-shadow: 0 2px 6px rgba(16,24,40,.18);
    }

    .topbar-profile {
      display: flex; align-items: center; gap: 8px;
      padding: 4px 10px 4px 4px; border-radius: 99px;
      background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10);
      transition: background .14s; flex-shrink: 0;
    }
    .topbar-profile:hover { background: rgba(255,255,255,.14); }
    .topbar-profile-avatar {
      width: 28px; height: 28px; border-radius: 50%;
      background: #FFFFFF; color: var(--primary-mid);
      display: flex; align-items: center; justify-content: center;
      font-size: 11.5px; font-weight: 800; flex-shrink: 0;
    }
    .topbar-profile-name {
      font-size: 12px; font-weight: 700; color: rgba(255,255,255,.92);
      white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis;
    }
    #btnLogout { color: rgba(255,255,255,.55); }
    #btnLogout:hover { background: rgba(220,38,38,.20); color: #fff; }

    @media (max-width: 540px) {
      .logo-text span { display: none; }
    }

    @media (max-width: 420px) {
      .topbar-nav-btn { padding: 7px 9px; font-size: 11px; }
      .nav-label { display: none; }
      .topbar-profile { padding: 4px; gap: 0; background: transparent; border-color: transparent; }
      .topbar-profile-name { display: none; }
    }

    .bottom-tabbar { display: none; }
    @media (max-width: 767px) {
      .topbar-nav-link { display: none; }
      body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
      .bottom-tabbar {
        display: flex;
        position: fixed; left: 0; right: 0; bottom: 0;
        background: var(--surface);
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 20px rgba(16,24,40,.10);
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        z-index: 500;
      }
      .bottom-tab {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
        padding: 6px 4px; border-radius: 12px;
        text-decoration: none; color: var(--text-3);
        font-size: 10px; font-weight: 700;
        transition: color .15s, background .15s;
      }
      .bottom-tab:active { background: var(--surface-2); }
      .bottom-tab.active { color: var(--primary); }
      .bottom-tab svg { width: 20px; height: 20px; }
    }

    .main {
      max-width: 740px;
      margin: 0 auto;
      padding: 24px 16px 100px;
    }
    @media (min-width: 640px) { .main { padding: 32px 24px 80px; } }

    .page-hero {
      text-align: center;
      margin-bottom: 28px;
      padding: 0 4px;
    }
    .page-hero-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--accent-soft);
      border: 1px solid rgba(46,102,144,.2);
      border-radius: 99px;
      padding: 5px 14px;
      font-size: 10.5px; font-weight: 800;
      color: var(--accent-mid);
      text-transform: uppercase; letter-spacing: .08em;
      margin-bottom: 12px;
    }
    .page-hero h1 {
      font-size: clamp(20px, 5vw, 26px);
      font-weight: 800;
      color: var(--text-1);
      letter-spacing: -.03em;
      line-height: 1.2;
    }
    .page-hero p {
      font-size: 13px;
      color: var(--text-3);
      font-weight: 500;
      margin-top: 7px;
      line-height: 1.65;
    }

    .steps-wrapper {
      margin-bottom: 20px;
    }
    .steps {
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 14px;
      gap: 0;
    }
    .step {
      display: flex; align-items: center; gap: 8px;
      font-size: 11px; font-weight: 700;
      color: var(--text-4);
      transition: color .3s var(--step-trans);
      flex-shrink: 0;
    }
    .step.active { color: var(--primary); }
    .step.done   { color: var(--green); }

    .step-num {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: var(--border);
      color: white;
      display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 800;
      transition: background .3s var(--step-trans), box-shadow .3s, transform .35s cubic-bezier(.34,1.56,.64,1);
      flex-shrink: 0;
      position: relative;
    }
    .step-num::after {
      content: '';
      position: absolute; inset: -4px;
      border-radius: 50%;
      background: transparent;
      border: 2px solid transparent;
      transition: border-color .3s, inset .3s;
    }
    .step.active .step-num {
      background: var(--primary);
      transform: scale(1.08);
    }
    .step.active .step-num::after {
      border-color: rgba(46,102,144,.2);
      inset: -5px;
    }
    .step.done .step-num {
      background: var(--green);
      transform: scale(1);
    }
    .step-label {
      font-size: 11px; font-weight: 700;
      white-space: nowrap;

    }
    @media (max-width: 320px) {
      .step-label { font-size: 9.5px; }
      .step { gap: 5px; }
      .step-num { width: 26px; height: 26px; font-size: 9px; }
    }

    .step-line {
      flex: 1; max-width: 56px; height: 2px;
      background: var(--border-soft);
      margin: 0 6px;
      border-radius: 99px;
      position: relative;
      overflow: hidden;
    }
    .step-line::after {
      content: '';
      position: absolute; top: 0; left: 0; bottom: 0;
      background: var(--green);
      border-radius: 99px;
      width: 0%;
      transition: width .5s cubic-bezier(.4,0,.2,1);
    }
    .step-line.done::after { width: 100%; }

    .steps-progress {
      height: 4px;
      background: var(--border-soft);
      border-radius: 99px;
      overflow: hidden;
      position: relative;
    }
    .steps-progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--accent) 0%, #1B4A6B 50%, var(--primary) 100%);
      border-radius: 99px;
      transition: width .5s cubic-bezier(.4,0,.2,1);
      width: 0%;
      position: relative;
    }
    .steps-progress-fill::after {
      content: '';
      position: absolute; top: 0; right: 0; bottom: 0; left: -100%;
      background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
      animation: shimmer 1.8s infinite;
    }
    @keyframes shimmer { from { transform: translateX(0); } to { transform: translateX(200%); } }
    .steps-progress-fill[style*="0%"]::after { display: none; }

    .form-card {
      background: var(--surface);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-soft);
      padding: 20px;
      box-shadow: var(--shadow);
      margin-bottom: 14px;
    }
    @media (min-width: 640px) { .form-card { padding: 28px 30px; } }

    .card-header {
      display: flex; align-items: center; gap: 13px;
      margin-bottom: 22px;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--border-soft);
    }
    .card-icon {
      width: 42px; height: 42px;
      border-radius: 13px;
      background: linear-gradient(135deg, var(--primary-mid), var(--primary));
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      box-shadow: 0 4px 14px rgba(46,102,144,.28);
    }
    .card-title { font-size: 14.5px; font-weight: 800; color: var(--text-1); line-height: 1.3; }
    .card-sub   { font-size: 11.5px; color: var(--text-3); font-weight: 500; margin-top: 2px; }

    .form-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
    }
    @media (min-width: 540px) {
      .form-grid { grid-template-columns: 1fr 1fr; }
      .form-group.full { grid-column: 1 / -1; }
    }

    .form-group { display: flex; flex-direction: column; }
    .form-label {
      font-size: 10.5px; font-weight: 800;
      text-transform: uppercase; letter-spacing: .08em;
      color: var(--text-2);
      margin-bottom: 7px;
      display: flex; align-items: center; gap: 4px;
    }
    .req { color: var(--red); font-size: 12px; line-height: 1; }
    .form-input {
      padding: 11px 14px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      font-size: 14px; font-weight: 500;
      color: var(--text-1);
      background: var(--surface);
      outline: none;
      font-family: inherit;
      resize: none;
      transition: border-color .2s, box-shadow .2s, background .2s;
      -webkit-appearance: none;
      appearance: none;
      min-height: 46px;
      width: 100%;
    }
    .form-input:disabled {
      background: var(--surface-2);
      color: var(--text-3);
      cursor: not-allowed;
      opacity: 1;
    }
    .form-input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(46,102,144,.10);
      background: #FAFBFF;
    }
    .form-input.error {
      border-color: var(--red);
      box-shadow: 0 0 0 3px rgba(220,38,38,.10);
      animation: shake .4s ease-out;
    }
    @keyframes shake {
      0%,100% { transform: translateX(0); }
      20%      { transform: translateX(-5px); }
      40%      { transform: translateX(5px); }
      60%      { transform: translateX(-4px); }
      80%      { transform: translateX(3px); }
    }
    .form-input::placeholder { color: var(--text-4); font-weight: 400; }
    select.form-input {
      cursor: pointer;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B8799' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 16px;
      padding-right: 38px;
    }
    textarea.form-input { line-height: 1.6; min-height: 90px; }

    .ac-wrap { position: relative; }
    .ac-list {
      position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 999;
      background: #fff; border: 1.5px solid var(--primary);
      border-radius: 10px; box-shadow: 0 8px 24px rgba(46,102,144,.13);
      max-height: 200px; overflow-y: auto; display: none;
    }
    .ac-list.open { display: block; }
    .ac-item {
      padding: 9px 14px; font-size: 13px; font-weight: 500; color: var(--text-1);
      cursor: pointer; transition: background .1s;
    }
    .ac-item:hover, .ac-item.active { background: var(--surface-2); color: var(--primary); }
    .ac-item mark { background: none; color: var(--primary); font-weight: 700; }

    .char-counter {
      font-size: 10px; font-weight: 600; color: var(--text-4);
      text-align: right; margin-top: 5px;
      transition: color .2s;
    }

    .brand-filter-bar {
      display: flex; align-items: center;
      padding: 11px 14px;
      background: var(--surface-2);
      border: 1px solid var(--border-soft);
      border-radius: var(--radius);
      margin-bottom: 16px;
      flex-wrap: wrap;
      gap: 8px;
    }
    .brand-filter-label {
      font-size: 10.5px; font-weight: 800;
      text-transform: uppercase; letter-spacing: .07em;
      color: var(--text-2);
      white-space: nowrap;
      display: flex; align-items: center; gap: 5px;
      flex-shrink: 0;
    }
    .brand-filter-select {
      flex: 1; min-width: 140px;
      padding: 8px 12px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 13px; font-weight: 500; color: var(--text-1);
      background: var(--surface);
      outline: none; font-family: inherit; cursor: pointer;
      transition: border-color .15s;
      min-height: 40px;

      -webkit-appearance: none;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B8799' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 15px;
      padding-right: 34px;
    }
    .brand-filter-select:focus { border-color: var(--primary); }
    .brand-filter-count {
      font-size: 11px; font-weight: 700; color: var(--text-3);
      white-space: nowrap; padding: 5px 11px;
      background: var(--surface);
      border: 1px solid var(--border-soft);
      border-radius: 99px;
      flex-shrink: 0;
    }

    .items-table-wrap { overflow-x: auto; margin-top: 4px; border-radius: var(--radius); border: 1px solid var(--border-soft); }
    .items-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
    .items-table th {
      background: var(--surface-2);
      padding: 10px 12px;
      text-align: left;
      font-size: 10px; font-weight: 800;
      text-transform: uppercase; letter-spacing: .07em;
      color: var(--text-3);
      border-bottom: 1px solid var(--border-soft);
      white-space: nowrap;
    }
    .items-table td {
      padding: 9px 10px;
      vertical-align: middle;
      border-bottom: 1px solid var(--border-soft);
    }
    .items-table tr:last-child td { border-bottom: none; }
    .items-table tr:hover td { background: #FAFBFF; }
    .items-table input {
      width: 100%; padding: 8px 10px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 13px; font-weight: 500;
      color: var(--text-1); background: white;
      outline: none; font-family: inherit;
      transition: border-color .15s;
      min-height: 38px;
    }
    .items-table input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(46,102,144,.08); }
    .row-num { font-size: 10px; font-weight: 800; color: var(--text-4); width: 28px; text-align: center; }
    .col-code-wrap { position: relative; min-width: 150px; }
    .col-desc { min-width: 160px; max-width: 280px; }
    .desc-cell {
      padding: 8px 10px;
      font-size: 12.5px; font-weight: 500;
      color: var(--text-3);
      background: var(--surface-2);
      border: 1.5px solid var(--border-soft);
      border-radius: var(--radius-sm);
      min-height: 38px;
      line-height: 1.45;
      word-break: break-word;
      overflow: hidden;
      cursor: default;
      font-family: inherit;
    }
    .desc-cell:empty::before {
      content: 'Nama produk';
      color: var(--text-4);
      font-weight: 400;
    }
    .mdesc-cell {
      padding: 11px 14px;
      font-size: 11.5px; font-weight: 500;
      color: var(--text-3);
      background: var(--surface-2);
      border: 1.5px solid var(--border-soft);
      border-radius: var(--radius);
      min-height: 46px;
      line-height: 1.55;
      word-break: break-word;
      display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
      overflow: hidden;
      font-family: inherit;
    }
    .mdesc-cell.is-placeholder {
      color: var(--text-4); font-weight: 400; font-style: italic;
    }
    .col-price { font-size: 12px; font-weight: 700; color: var(--text-2); white-space: nowrap; font-family: 'DM Mono', monospace; }
    .col-total { font-size: 12.5px; font-weight: 800; color: var(--primary); white-space: nowrap; font-family: 'DM Mono', monospace; }
    .col-stock { }
    .btn-del-row {
      width: 30px; height: 30px;
      border-radius: 50%;
      background: transparent;
      border: 1.5px solid var(--border);
      color: var(--text-4);
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: all .15s;
      margin: 0 auto;
    }
    .btn-del-row:hover, .btn-del-row:active {
      background: var(--red-soft);
      border-color: #FECACA;
      color: var(--red);
    }

    .col-del-th {
      position: sticky;
      right: 0;
      background: var(--surface-2);
      z-index: 3;
      width: 40px;
      min-width: 40px;
      text-align: center;
    }
    .col-del-td {
      position: sticky;
      right: 0;
      background: var(--surface);
      z-index: 2;
      width: 40px;
      min-width: 40px;
      text-align: center;
      padding: 0 5px;
    }
    .items-table tr:hover .col-del-td { background: #FAFBFF; }

    .items-table-wrap.is-scrolled .col-del-th,
    .items-table-wrap.is-scrolled .col-del-td {
      box-shadow: -4px 0 10px rgba(16,24,40,.10);
    }

    .items-mobile { display: none; }
    @media (max-width: 639px) {
      .items-table-wrap { display: none; }
      .items-mobile { display: block; }
    }

    .item-card-mobile {
      background: var(--surface);
      border: 1.5px solid var(--border-soft);
      border-radius: var(--radius-lg);
      padding: 16px;
      margin-bottom: 12px;
      position: relative;
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      animation: cardIn .22s ease-out both;
    }
    @keyframes cardIn {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .item-card-mobile::before {
      content: '';
      position: absolute; top: 0; left: 0; bottom: 0;
      width: 3px;
      background: linear-gradient(180deg, var(--accent), var(--primary));
      border-radius: 0 2px 2px 0;
    }
    .item-card-mobile .item-header {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 14px;
      padding-left: 4px;
    }
    .item-card-mobile .item-num {
      width: 26px; height: 26px; border-radius: 50%;
      background: linear-gradient(135deg, var(--primary-mid), var(--primary));
      font-size: 10px; font-weight: 800;
      color: white;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 2px 6px rgba(46,102,144,.25);
    }
    .item-card-mobile .item-del {
      width: 34px; height: 34px;
      border-radius: 50%;
      background: transparent;
      border: 1.5px solid var(--border);
      color: var(--text-4);
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: all .15s;
    }
    .item-card-mobile .item-del:active {
      background: var(--red-soft);
      border-color: #FECACA;
      color: var(--red);
      transform: scale(.92);
    }
    .item-card-mobile .row-field { margin-bottom: 12px; padding-left: 4px; }
    .item-card-mobile .row-field:last-child { margin-bottom: 0; }
    .item-card-mobile .row-label {
      font-size: 10px; font-weight: 800;
      text-transform: uppercase; letter-spacing: .07em;
      color: var(--text-3); margin-bottom: 5px;
    }
    .item-card-mobile .row-2col {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 12px; margin-bottom: 12px;
      padding-left: 4px;
    }
    .item-card-mobile .row-meta {
      display: flex; align-items: center; justify-content: space-between;
      padding: 12px 14px 0;
      margin: 0 -16px;
      border-top: 1px solid var(--border-soft);
      margin-top: 4px;
    }
    .item-card-mobile .mobile-total {
      font-size: 15px; font-weight: 800; color: var(--primary);
      font-family: 'DM Mono', monospace;
    }
    .item-card-mobile .mobile-price {
      font-size: 11px; font-weight: 600; color: var(--text-3);
      font-family: 'DM Mono', monospace; margin-top: 2px;
    }

    .mobile-code-trigger {
      position: relative; cursor: pointer;
    }
    .mobile-code-trigger-btn {
      display: flex; align-items: center;
      width: 100%;
      min-height: 48px;
      padding: 0 14px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
      cursor: pointer;
      transition: border-color .2s, box-shadow .2s, background .15s;
      gap: 10px;
      text-align: left;
    }
    .mobile-code-trigger-btn:active {
      background: var(--surface-2);
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(46,102,144,.08);
      transform: scale(.985);
    }
    .mobile-code-trigger-btn .trigger-icon {
      width: 32px; height: 32px;
      border-radius: 9px;
      background: linear-gradient(135deg, var(--primary-mid), var(--primary));
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      box-shadow: 0 2px 6px rgba(46,102,144,.2);
    }
    .mobile-code-trigger-btn .trigger-text {
      flex: 1; min-width: 0;
    }
    .mobile-code-trigger-btn .trigger-label {
      font-size: 10px; font-weight: 700;
      text-transform: uppercase; letter-spacing: .07em;
      color: var(--text-3);
      line-height: 1.2;
    }
    .mobile-code-trigger-btn .trigger-value {
      font-size: 12px; font-weight: 700;
      color: var(--text-1);
      font-family: 'DM Mono', monospace;
      line-height: 1.35;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .mobile-code-trigger-btn .trigger-value.empty {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 13px; font-weight: 400;
      color: var(--text-4);
    }
    .mobile-code-trigger-btn .trigger-chevron {
      flex-shrink: 0; color: var(--text-3);
    }

    .mobile-code-trigger-btn.has-value {
      border-color: rgba(46,102,144,.2);
      background: linear-gradient(135deg, #F3F5FF, #FAFBFF);
    }

    .btn-add-row {
      display: flex; align-items: center; gap: 8px;
      font-size: 13px; font-weight: 700;
      color: #fff;
      cursor: pointer;
      background: var(--primary);
      border: none;
      border-radius: var(--radius-sm);
      padding: 0 18px;
      height: 40px;
      justify-content: center;
      white-space: nowrap;
      transition: all .15s;
      font-family: inherit;
      box-shadow: 0 2px 6px rgba(46,102,144,.25);
    }
    .btn-add-row:hover:not(:disabled) { background: var(--primary-mid); box-shadow: 0 4px 12px rgba(46,102,144,.32); }
    .btn-add-row:active:not(:disabled) { transform: scale(.98); }
    .btn-add-row:disabled { background: var(--surface-3); color: var(--text-4); cursor: not-allowed; box-shadow: none; }

    .item-add-bar {
      display: flex; align-items: stretch; gap: 8px;
      margin-top: 4px;
    }
    .item-add-search-wrap {
      position: relative;
      flex: 1 1 auto;
      min-width: 0;
      display: flex; align-items: center;
    }
    .item-add-search-icon {
      position: absolute; left: 12px;
      color: var(--text-3);
      pointer-events: none;
    }
    .item-add-search-input {
      width: 100%; height: 40px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--surface);
      font-size: 13px; font-weight: 600; color: var(--text-1);
      padding: 0 34px 0 34px;
      font-family: inherit;
      transition: border-color .15s, box-shadow .15s;
    }
    .item-add-search-input:focus {
      outline: none; border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(46,102,144,.10);
    }
    .item-add-search-clear {
      position: absolute; right: 8px;
      display: flex; align-items: center; justify-content: center;
      width: 22px; height: 22px; border-radius: 99px;
      background: var(--surface-3); color: var(--text-2);
      border: none; cursor: pointer;
    }
    .item-add-qty-wrap {
      flex: 0 0 auto;
      display: flex; align-items: center; gap: 6px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--surface);
      padding: 0 10px;
      height: 40px;
    }
    .item-add-qty-label { font-size: 11px; font-weight: 700; color: var(--text-3); }
    .item-add-qty-input {
      width: 44px; height: 100%;
      border: none; background: transparent;
      font-size: 14px; font-weight: 800; color: var(--text-1);
      text-align: center; font-family: inherit;
    }
    .item-add-qty-input:focus { outline: none; }

    .item-add-selected {
      display: flex; align-items: center; gap: 10px;
      margin-top: 8px;
      padding: 10px 12px;
      background: var(--accent-soft);
      border: 1px solid rgba(46,102,144,.2);
      border-radius: var(--radius-sm);
    }
    .item-add-selected-icon {
      width: 30px; height: 30px; flex-shrink: 0;
      border-radius: 8px;
      background: var(--primary);
      color: #fff;
      display: flex; align-items: center; justify-content: center;
    }
    .item-add-selected-body { flex: 1; min-width: 0; padding-top: 2px; }
    .item-add-selected-code { font-size: 12px; font-weight: 800; color: var(--primary); font-family: 'DM Mono', monospace; }
    .item-add-selected-desc { font-size: 12px; font-weight: 500; color: var(--text-2); white-space: normal; word-break: break-word; line-height: 1.4; margin-top: 1px; }
    .item-add-selected-price { font-size: 11.5px; font-weight: 700; color: var(--text-2); flex-shrink: 0; padding-top: 2px; }

    .cart-list-wrap { margin-top: 16px; }
    .cart-list-head {
      display: flex; align-items: center; gap: 10px;
      padding: 0 12px 8px;
      font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
      color: var(--text-3);
    }
    .cart-list-head .cart-col-code { flex: 0 0 110px; }
    .cart-list-head .cart-col-name { flex: 1 1 auto; }
    .cart-list-head .cart-col-qty   { flex: 0 0 50px; text-align: right; }
    .cart-list-head .cart-col-price { flex: 0 0 100px; text-align: right; }
    .cart-list-head .cart-col-total { flex: 0 0 100px; text-align: right; }
    .cart-list-head .cart-col-action { flex: 0 0 28px; }

    .cart-list { display: flex; flex-direction: column; gap: 8px; }
    .cart-list-empty {
      display: flex; flex-direction: column; align-items: center; gap: 8px;
      padding: 32px 16px;
      color: var(--text-4);
      font-size: 12.5px; font-weight: 600; text-align: center;
      border: 1.5px dashed var(--border);
      border-radius: var(--radius);
      background: var(--surface-2);
    }
    .cart-item {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 12px;
      background: var(--surface);
      border: 1px solid var(--border-soft);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);

    }
    .cart-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .cart-field-label { display: none; font-size: 9.5px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; }
    .cart-field-code { flex: 0 0 110px; }
    .cart-field-name { flex: 1 1 auto; min-width: 90px; }
    .cart-field-qty  { flex: 0 0 50px; align-items: flex-end; }
    .cart-field-price{ flex: 0 0 100px; align-items: flex-end; }
    .cart-field-total{ flex: 0 0 100px; align-items: flex-end; }

    .cart-item-code { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 800; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .cart-item-name { font-size: 12.5px; font-weight: 600; color: var(--text-1); white-space: normal; word-break: break-word; line-height: 1.35; }
    .cart-item-qty {
      width: 46px; height: 30px; text-align: center;
      border: 1.5px solid var(--border); border-radius: var(--radius-sm);
      font-size: 13px; font-weight: 800; font-family: inherit;
    }
    .cart-item-qty:focus { outline: none; border-color: var(--primary); }
    .cart-item-price { font-size: 12px; font-weight: 600; color: var(--text-2); font-family: 'DM Mono', monospace; }
    .cart-item-total { font-size: 12.5px; font-weight: 800; color: var(--primary); font-family: 'DM Mono', monospace; }
    .cart-item-del {
      display: flex; align-items: center; justify-content: center;
      width: 28px; height: 28px; border-radius: 8px; flex: 0 0 28px;
      background: var(--red-soft); color: var(--red);
      border: none; cursor: pointer; margin-left: auto;
      transition: transform .1s;
    }
    .cart-item-del:active { transform: scale(.92); }

    @media (max-width: 640px) {
      .item-add-bar { flex-wrap: wrap; }
      .item-add-search-wrap { flex: 1 1 100%; }
      .item-add-qty-wrap { flex: 1 1 auto; }
      .btn-add-row { flex: 1 1 auto; }

      .item-add-search-input { height: 44px; }
      .brand-filter-select { min-height: 44px; padding: 8px 12px; }
      .cart-list-head { display: none; }
      .cart-item { position: relative; padding: 12px 40px 12px 12px; flex-wrap: wrap; }
      .cart-field-label { display: block; }
      .cart-field-code { flex: 1 1 100%; order: 1; }
      .cart-field-name { flex: 1 1 100%; order: 2; }
      .cart-field-qty   { flex: 1 1 auto; order: 3; align-items: flex-start; }
      .cart-field-price { flex: 1 1 auto; order: 4; align-items: flex-start; }
      .cart-field-total { flex: 1 1 auto; order: 5; align-items: flex-start; }
      .cart-item-del { position: absolute; top: 10px; right: 10px; margin-left: 0; }
    }

    .stock-badge {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 3px 9px; border-radius: 99px;
      font-size: 10.5px; font-weight: 700; white-space: nowrap;
    }
    .stock-ok  { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
    .stock-low { background: #FFF7ED; color: #D97706; border: 1px solid #FDE68A; }
    .stock-out { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
    .stock-na  { background: var(--surface-3);    color: var(--text-4); border: 1px solid var(--border); }

    .grand-total {
      display: flex; align-items: center; justify-content: space-between;
      padding: 16px 18px;
      background: linear-gradient(135deg, #EEF1FF, #F6F8FF);
      border: 1px solid var(--border-soft);
      border-radius: var(--radius);
      margin-top: 14px;
    }
    .grand-total-label {
      font-size: 12px; font-weight: 700; color: var(--text-2);
    }
    .grand-total-label span { display: block; font-size: 10px; font-weight: 500; color: var(--text-4); margin-top: 2px; }
    .grand-total-value {
      font-size: 20px; font-weight: 800;
      color: var(--primary);
      letter-spacing: -.02em;
      font-family: 'DM Mono', monospace;
    }

    #acDropdown {
      display: none; position: fixed; z-index: 9999;
      background: white;
      border: 1.5px solid var(--primary);
      border-radius: 14px;
      box-shadow: var(--shadow-xl);
      overflow: hidden;
      max-height: 320px; overflow-y: auto;
      min-width: 420px;
    }

    @media (max-width: 639px) {
      #acDropdown { min-width: 0; max-width: calc(100vw - 16px); }
    }
    #acDropdown::-webkit-scrollbar { width: 3px; }
    #acDropdown .ac-item {
      padding: 11px 14px; cursor: pointer;
      display: flex; align-items: center; justify-content: space-between; gap: 10px;
      transition: background .1s;
      border-bottom: 1px solid var(--border-soft);
    }
    #acDropdown .ac-item:last-child { border-bottom: none; }
    #acDropdown .ac-item:hover, #acDropdown .ac-item.hovered { background: var(--surface-2); }
    .ac-left { flex: 1; min-width: 0; }
    .ac-code { font-size: 12.5px; font-weight: 800; color: var(--text-1); font-family: 'DM Mono', monospace; }
    .ac-desc {
      font-size: 11px; color: var(--text-3); font-weight: 500; margin-top: 2px;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      overflow: hidden; line-height: 1.45;
    }
    .ac-empty { padding: 16px 14px; font-size: 12.5px; color: var(--text-3); font-weight: 600; text-align: center; }

    .ac-sheet-overlay {
      position: fixed; inset: 0;
      background: rgba(9,22,33,.55);
      z-index: 8000;
      opacity: 0; pointer-events: none;
      transition: opacity .28s;
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
    }
    .ac-sheet-overlay.open { opacity: 1; pointer-events: auto; }

    .ac-sheet {
      position: fixed; bottom: 0; left: 0; right: 0;
      z-index: 8001;
      background: white;
      border-radius: 26px 26px 0 0;
      box-shadow: 0 -12px 60px rgba(0,0,0,.22), 0 -1px 0 rgba(0,0,0,.06);
      transform: translateY(100%);
      transition: transform .38s cubic-bezier(.32,.72,0,1);
      display: flex; flex-direction: column;
      max-height: 90svh;
      padding-bottom: max(env(safe-area-inset-bottom), 12px);
    }
    .ac-sheet.open { transform: translateY(0); }

    .ac-sheet-handle {
      width: 44px; height: 4px;
      background: var(--border);
      border-radius: 99px;
      margin: 14px auto 0;
      flex-shrink: 0;
    }

    .ac-sheet-top {
      padding: 14px 20px 0;
      flex-shrink: 0;
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px;
    }
    .ac-sheet-title-group {
      flex: 1;
    }
    .ac-sheet-title {
      font-size: 15px; font-weight: 800; color: var(--text-1);
      letter-spacing: -.01em;
    }
    .ac-sheet-subtitle {
      font-size: 11px; font-weight: 500; color: var(--text-3);
      margin-top: 2px;
    }
    .ac-sheet-close {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: var(--surface-3);
      border: none; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      color: var(--text-2);
      flex-shrink: 0;
      transition: background .15s;
    }
    .ac-sheet-close:active { background: var(--border); }

    .ac-sheet-search-area {
      padding: 14px 16px 10px;
      flex-shrink: 0;
    }
    .ac-sheet-search-wrap {
      position: relative;
    }
    .ac-sheet-input {
      width: 100%;
      padding: 13px 16px 13px 46px;
      border: 2px solid var(--border);
      border-radius: var(--radius-lg);
      font-size: 15px; font-weight: 500;
      color: var(--text-1);
      outline: none; font-family: 'DM Mono', monospace;
      background: var(--surface-2);
      transition: border-color .18s, background .18s, box-shadow .18s;
      min-height: 52px;
      letter-spacing: .02em;
    }
    .ac-sheet-input:focus {
      border-color: var(--primary);
      background: white;
      box-shadow: 0 0 0 4px rgba(46,102,144,.08);
    }
    .ac-sheet-search-icon {
      position: absolute; left: 15px; top: 50%;
      transform: translateY(-50%);
      color: var(--text-3); pointer-events: none;
    }

    .ac-sheet-meta {
      display: flex; align-items: center; justify-content: space-between;
      padding: 4px 16px 10px;
      flex-shrink: 0;
    }
    .ac-sheet-count {
      font-size: 10.5px; font-weight: 700;
      color: var(--text-4);
      text-transform: uppercase; letter-spacing: .07em;
    }
    .ac-sheet-clear {
      font-size: 11px; font-weight: 700; color: var(--accent-mid);
      cursor: pointer; background: none; border: none;
      font-family: inherit; padding: 0;
      display: none;
    }
    .ac-sheet-clear.visible { display: block; }

    .ac-sheet-divider { height: 1px; background: var(--border-soft); flex-shrink: 0; }

    .ac-sheet-list {
      overflow-y: auto; flex: 1;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }
    .ac-sheet-item {
      padding: 14px 20px;
      border-bottom: 1px solid var(--border-soft);
      display: flex; align-items: center; gap: 12px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: background .08s;
    }
    .ac-sheet-item:active { background: var(--surface-2); }
    .ac-sheet-item:last-child { border-bottom: none; }

    .ac-sheet-item-icon {
      width: 36px; height: 36px;
      border-radius: 10px;
      background: var(--surface-2);
      border: 1px solid var(--border-soft);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      color: var(--text-3);
    }
    .ac-sheet-item-icon.has-stock {
      background: var(--green-soft);
      border-color: #BBF7D0;
      color: var(--green);
    }
    .ac-sheet-item-icon.low-stock {
      background: var(--amber-soft);
      border-color: #FDE68A;
      color: var(--amber);
    }
    .ac-sheet-item-body { flex: 1; min-width: 0; }
    .ac-sheet-item-code {
      font-family: 'DM Mono', monospace;
      font-size: 13px; font-weight: 700; color: var(--text-1);
    }
    .ac-sheet-item-desc {
      font-size: 11px; color: var(--text-3); font-weight: 500;
      margin-top: 2px;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      overflow: hidden; line-height: 1.4;
    }
    .ac-sheet-item-price {
      font-size: 11px; font-weight: 700; color: var(--accent-mid);
      font-family: 'DM Mono', monospace;
    }
    .ac-sheet-item-right {
      display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
      flex-shrink: 0;
    }
    .ac-sheet-empty {
      padding: 52px 20px;
      text-align: center;
    }
    .ac-sheet-empty-icon {
      font-size: 36px; margin-bottom: 12px;
    }
    .ac-sheet-empty p {
      font-size: 13.5px; font-weight: 700; color: var(--text-2);
    }
    .ac-sheet-empty small {
      font-size: 12px; color: var(--text-4); font-weight: 500; display: block; margin-top: 5px;
    }

    .step-pane-wrapper {
      position: relative;
      overflow: hidden;
    }
    .step-pane {
      display: none;
    }
    .step-pane.active {
      display: block;
    }
    .step-pane.entering-forward {
      animation: enterForward .3s cubic-bezier(.4,0,.2,1) both;
    }
    .step-pane.entering-back {
      animation: enterBack .3s cubic-bezier(.4,0,.2,1) both;
    }
    .step-pane.leaving-forward {
      animation: leaveForward .3s cubic-bezier(.4,0,.2,1) both;
      position: absolute; top: 0; left: 0; right: 0; pointer-events: none;
    }
    .step-pane.leaving-back {
      animation: leaveBack .3s cubic-bezier(.4,0,.2,1) both;
      position: absolute; top: 0; left: 0; right: 0; pointer-events: none;
    }
    @keyframes enterForward {
      from { opacity: 0; transform: translateX(32px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes enterBack {
      from { opacity: 0; transform: translateX(-32px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes leaveForward {
      from { opacity: 1; transform: translateX(0); }
      to   { opacity: 0; transform: translateX(-32px); }
    }
    @keyframes leaveBack {
      from { opacity: 1; transform: translateX(0); }
      to   { opacity: 0; transform: translateX(32px); }
    }

    .step-nav {
      display: flex; align-items: center; justify-content: space-between;
      margin-top: 16px; gap: 12px;
    }

    @media (max-width: 639px) {
      input:not([type="hidden"]), select, textarea { font-size: 16px !important; }
    }

    @media (max-width: 639px) {
      .step-nav {
        position: fixed; left: 0; right: 0;

        bottom: calc(60px + env(safe-area-inset-bottom));
        padding: 12px 16px;
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-soft);
        box-shadow: 0 -4px 24px rgba(16,24,40,.10);
        z-index: 100;
        margin-top: 0;
      }
    }

    .btn-back {
      padding: 11px 20px;
      border-radius: 99px;
      font-size: 13px; font-weight: 700;
      color: var(--text-2);
      background: var(--surface);
      border: 1.5px solid var(--border);
      cursor: pointer; font-family: inherit;
      transition: all .15s;
      display: flex; align-items: center; gap: 7px;
      min-height: 46px;
    }
    .btn-back:hover { border-color: var(--primary); color: var(--primary); }
    .btn-back:active { transform: scale(.97); }

    .btn-next {
      padding: 12px 26px;
      border-radius: 99px;
      font-size: 13px; font-weight: 800;
      color: white;
      background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
      border: none; cursor: pointer; font-family: inherit;
      box-shadow: 0 4px 16px rgba(46,102,144,.30), 0 1px 0 rgba(255,255,255,.1) inset;
      transition: all .15s;
      display: flex; align-items: center; gap: 8px;
      min-height: 46px;
      flex: 1; justify-content: center;
      max-width: 280px;
    }
    .btn-next:hover { box-shadow: 0 6px 24px rgba(46,102,144,.38); transform: translateY(-1px); }
    .btn-next:active { transform: translateY(0) scale(.98); }

    .btn-submit {
      padding: 12px 26px;
      border-radius: 99px;
      font-size: 13px; font-weight: 800;
      color: white;
      background: linear-gradient(135deg, #22C55E 0%, var(--green) 100%);
      border: none; cursor: pointer; font-family: inherit;
      box-shadow: 0 4px 16px rgba(22,163,74,.32), 0 1px 0 rgba(255,255,255,.15) inset;
      transition: all .15s;
      display: flex; align-items: center; gap: 8px;
      min-height: 46px;
      flex: 1; justify-content: center;
      max-width: 280px;
    }
    .btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(22,163,74,.40); }
    .btn-submit:active { transform: scale(.98); }
    .btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

    .btn-reset-sm {
      padding: 11px 18px;
      border-radius: 99px;
      font-size: 13px; font-weight: 600;
      color: var(--text-3);
      background: transparent;
      border: 1.5px solid var(--border-soft);
      cursor: pointer; font-family: inherit;
      transition: all .15s;
      min-height: 46px;
      white-space: nowrap;
    }
    .btn-reset-sm:hover { border-color: #FECACA; color: var(--red); }

    .review-card {
      background: var(--surface);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-soft);
      padding: 20px;
      box-shadow: var(--shadow);
      margin-bottom: 14px;
    }
    @media (min-width: 640px) { .review-card { padding: 24px 26px; } }

    .review-section-title {
      font-size: 10.5px; font-weight: 800;
      text-transform: uppercase; letter-spacing: .09em;
      color: var(--text-3);
      margin-bottom: 18px; padding-bottom: 13px;
      border-bottom: 1px solid var(--border-soft);
      display: flex; align-items: center; gap: 8px;
    }
    .review-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
    @media (min-width: 480px) { .review-grid { grid-template-columns: 1fr 1fr; } }
    .review-item.full { grid-column: 1 / -1; }
    .review-label { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--text-4); margin-bottom: 4px; }
    .review-value { font-size: 13.5px; font-weight: 600; color: var(--text-1); line-height: 1.55; }
    .review-empty { color: var(--text-4); font-style: italic; font-weight: 400; }

    .review-items-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-soft); margin-top: 4px; }
    .review-items-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 480px; }
    .review-items-table th {
      background: var(--surface-2);
      padding: 9px 12px;
      text-align: left;
      font-size: 9.5px; font-weight: 800;
      text-transform: uppercase; letter-spacing: .07em;
      color: var(--text-3);
      border-bottom: 1px solid var(--border-soft);
    }
    .review-items-table td {
      padding: 10px 12px;
      border-bottom: 1px solid var(--border-soft);
      color: var(--text-2);
      vertical-align: middle;
    }
    .review-items-table tr:last-child td { border-bottom: none; }
    .review-items-table tr:hover td { background: #FAFBFF; }

    .review-items-mobile { display: none; }
    @media (max-width: 639px) {
      .review-items-wrap { display: none; }
      .review-items-mobile { display: block; margin-top: 4px; }
    }

    .rev-item-card {
      background: var(--surface);
      border: 1.5px solid var(--border-soft);
      border-radius: var(--radius-lg);
      margin-bottom: 10px;
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      animation: cardIn .22s ease-out both;
    }
    .rev-item-card:last-child { margin-bottom: 0; }

    .rev-item-header {
      display: flex; align-items: center; gap: 12px;
      padding: 14px 16px 10px;
    }
    .rev-item-num-badge {
      width: 28px; height: 28px; border-radius: 8px;
      background: linear-gradient(135deg, var(--primary-mid), var(--primary));
      display: flex; align-items: center; justify-content: center;
      font-size: 10px; font-weight: 800; color: white;
      flex-shrink: 0;
      box-shadow: 0 2px 6px rgba(46,102,144,.22);
    }
    .rev-item-code-block { flex: 1; min-width: 0; }
    .rev-item-code {
      font-family: 'DM Mono', monospace;
      font-size: 13.5px; font-weight: 700; color: var(--text-1);
      letter-spacing: .01em;
    }
    .rev-item-desc {
      font-size: 11.5px; color: var(--text-3); font-weight: 500;
      margin-top: 2px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    .rev-item-body {
      padding: 10px 16px;
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 10px;
    }
    .rev-item-stat-label {
      font-size: 9px; font-weight: 800;
      text-transform: uppercase; letter-spacing: .07em;
      color: var(--text-4); margin-bottom: 3px;
    }
    .rev-item-stat-val {
      font-size: 13px; font-weight: 700; color: var(--text-2);
      font-family: 'DM Mono', monospace;
    }

    .rev-item-footer {
      background: linear-gradient(135deg, #EEF1FF, #F6F8FF);
      border-top: 1px solid var(--border-soft);
      padding: 10px 16px;
      display: flex; align-items: center; justify-content: space-between;
    }
    .rev-item-total-label {
      font-size: 9.5px; font-weight: 700;
      text-transform: uppercase; letter-spacing: .07em;
      color: var(--text-3); margin-bottom: 2px;
    }
    .rev-item-total-val {
      font-size: 16px; font-weight: 800; color: var(--primary);
      font-family: 'DM Mono', monospace;
      letter-spacing: -.01em;
    }

    .review-grand {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 18px;
      background: linear-gradient(135deg, #EEF1FF, #F6F8FF);
      border-radius: var(--radius);
      margin-top: 14px;
      border: 1px solid var(--border-soft);
    }
    .review-grand span:first-child { font-size: 12px; font-weight: 700; color: var(--text-2); }
    .review-grand-val {
      font-size: 22px; font-weight: 800;
      color: var(--primary);
      letter-spacing: -.02em;
      font-family: 'DM Mono', monospace;
    }

    .confirm-notice {
      background: #EFF6FF;
      border: 1px solid #BFDBFE;
      border-radius: var(--radius);
      padding: 13px 16px;
      font-size: 12.5px; font-weight: 600; color: #1D4ED8;
      display: flex; align-items: flex-start; gap: 10px;
      margin-bottom: 14px;
      line-height: 1.55;
    }

    .success-card {
      background: var(--surface);
      border-radius: var(--radius-xl);
      border: 1px solid #BBF7D0;
      padding: 52px 24px;
      text-align: center;
      display: none;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
    }
    .success-card::before {
      content: '';
      position: absolute; top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, #22C55E, #16A34A);
    }
    .success-icon {
      width: 80px; height: 80px;
      border-radius: 50%;
      background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
      border: 2px solid #BBF7D0;
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 24px;
      animation: successPop .5s cubic-bezier(.34,1.56,.64,1) both;
    }
    @keyframes successPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
    .success-rings {
      position: absolute; top: 40px; left: 50%;
      transform: translateX(-50%);
      width: 160px; height: 160px;
      pointer-events: none;
    }
    .success-ring {
      position: absolute; inset: 0;
      border-radius: 50%;
      border: 1.5px solid rgba(22,163,74,.2);
      animation: ringExpand 1.2s ease-out both;
    }
    .success-ring:nth-child(2) { animation-delay: .15s; }
    .success-ring:nth-child(3) { animation-delay: .30s; }
    @keyframes ringExpand { from { transform: scale(.5); opacity: 1; } to { transform: scale(2); opacity: 0; } }
    .success-card h2 { font-size: 22px; font-weight: 900; color: #166534; letter-spacing: -.02em; }
    .success-card p  { font-size: 13.5px; color: var(--text-3); margin-top: 10px; line-height: 1.65; }
    .order-id-badge {
      display: inline-block;
      background: var(--primary);
      color: white;
      border-radius: 99px;
      padding: 8px 22px;
      font-size: 15px; font-weight: 800;
      margin-top: 20px;
      letter-spacing: .05em;
      font-family: 'DM Mono', monospace;
    }
    .btn-new {
      margin-top: 24px;
      padding: 12px 32px;
      border-radius: 99px;
      font-size: 13px; font-weight: 700;
      color: var(--primary);
      background: transparent;
      border: 2px solid var(--primary);
      cursor: pointer; font-family: inherit;
      transition: all .15s;
      min-height: 46px;
    }
    .btn-new:hover { background: var(--primary); color: white; }

    .spinner {
      width: 15px; height: 15px;
      border: 2px solid rgba(255,255,255,.35);
      border-top-color: white;
      border-radius: 50%;
      animation: spin .7s linear infinite;
      display: none; flex-shrink: 0;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    .loading-bar {
      display: flex; align-items: center; gap: 8px;
      font-size: 11.5px; font-weight: 600; color: var(--text-3);
    }
    .loading-bar .spinner-sm {
      width: 12px; height: 12px;
      border: 2px solid var(--border);
      border-top-color: var(--primary);
      border-radius: 50%;
      animation: spin .7s linear infinite; flex-shrink: 0;
    }

    .toast-wrap {
      position: fixed; bottom: 20px; left: 50%;
      transform: translateX(-50%);
      z-index: 9999;
      display: flex; flex-direction: column; gap: 8px;
      pointer-events: none;
      width: calc(100% - 32px); max-width: 400px;
    }

    @media (max-width: 639px) { .toast-wrap { bottom: calc(146px + env(safe-area-inset-bottom)); } }

    .toast {
      background: var(--text-1);
      color: white;
      padding: 12px 18px;
      border-radius: var(--radius);
      font-size: 13px; font-weight: 700;
      box-shadow: var(--shadow-lg);
      border: 1px solid rgba(255,255,255,.08);
      display: flex; align-items: center; gap: 9px;
      animation: toastIn .25s cubic-bezier(.34,1.56,.64,1);
    }
    @keyframes toastIn { from { opacity:0; transform: translateY(14px) scale(.95); } to { opacity:1; transform: translateY(0) scale(1); } }

    @media (max-width: 639px) {
      .page-hero { margin-bottom: 18px; }
      .steps-wrapper { margin-bottom: 16px; }
    }

    .csv-import-bar {
      display: flex; align-items: center; gap: 8px;
      margin-bottom: 14px;
    }
    .btn-csv-import {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 9px 16px;
      border-radius: var(--radius);
      font-size: 12px; font-weight: 700;
      color: var(--primary);
      background: var(--surface-2);
      border: 1.5px solid var(--border);
      cursor: pointer; font-family: inherit;
      transition: all .15s;
      min-height: 40px;
      white-space: nowrap;
    }
    .btn-csv-import:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-mid); }
    .btn-csv-import:active { transform: scale(.97); }
    .btn-csv-template {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 9px 14px;
      border-radius: var(--radius);
      font-size: 11.5px; font-weight: 700;
      color: var(--text-3);
      background: transparent;
      border: 1.5px solid var(--border-soft);
      cursor: pointer; font-family: inherit;
      transition: all .15s;
      min-height: 40px;
      white-space: nowrap;
      text-decoration: none;
    }
    .btn-csv-template:hover { border-color: var(--green); color: var(--green); }

    .csv-modal-overlay {
      position: fixed; inset: 0;
      background: rgba(9,22,33,.6);
      z-index: 9000;
      display: none; align-items: center; justify-content: center;
      padding: 20px;
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
    }
    .csv-modal-overlay.open { display: flex; }
    .csv-modal {
      background: white;
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-xl);
      width: 100%; max-width: 500px;
      overflow: hidden;
      animation: modalIn .28s cubic-bezier(.34,1.56,.64,1) both;
    }
    @keyframes modalIn { from { opacity:0; transform:scale(.92) translateY(20px); } to { opacity:1; transform:scale(1) translateY(0); } }
    .csv-modal-header {
      background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
      padding: 20px 24px;
      display: flex; align-items: center; gap: 14px;
    }
    .csv-modal-icon {
      width: 42px; height: 42px;
      border-radius: 12px;
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.18);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .csv-modal-title { font-size: 15px; font-weight: 800; color: #FFFFFF; line-height: 1.25; }
    .csv-modal-sub { font-size: 11px; color: rgba(255,255,255,.45); font-weight: 500; margin-top: 2px; }
    .csv-modal-close {
      margin-left: auto;
      width: 30px; height: 30px; border-radius: 50%;
      background: rgba(255,255,255,.1); border: none;
      color: rgba(255,255,255,.7); cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: background .15s; flex-shrink: 0;
    }
    .csv-modal-close:hover { background: rgba(255,255,255,.2); color: white; }
    .csv-modal-body { padding: 22px 24px; }
    .csv-drop-zone {
      border: 2px dashed var(--border);
      border-radius: var(--radius-lg);
      padding: 36px 24px;
      text-align: center;
      cursor: pointer;
      transition: all .2s;
      background: var(--surface-2);
      position: relative;
    }
    .csv-drop-zone:hover, .csv-drop-zone.drag-over {
      border-color: var(--accent);
      background: var(--accent-soft);
    }
    .csv-drop-zone input[type="file"] {
      position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
    }
    .csv-drop-icon { font-size: 36px; margin-bottom: 12px; }
    .csv-drop-text { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
    .csv-drop-sub { font-size: 11.5px; color: var(--text-4); font-weight: 500; margin-top: 5px; }
    .csv-preview {
      display: none;
      margin-top: 14px;
      border: 1px solid var(--border-soft);
      border-radius: var(--radius);
      overflow: hidden;
    }
    .csv-preview-header {
      padding: 10px 14px;
      background: var(--surface-2);
      border-bottom: 1px solid var(--border-soft);
      display: flex; align-items: center; justify-content: space-between;
    }
    .csv-preview-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
    .csv-preview-count { font-size: 11.5px; font-weight: 700; color: var(--primary); }
    .csv-preview-body { max-height: 180px; overflow-y: auto; }
    .csv-preview-table { width: 100%; border-collapse: collapse; font-size: 12px; }
    .csv-preview-table th { padding: 7px 12px; background: var(--surface-2); font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); border-bottom: 1px solid var(--border-soft); text-align: left; }
    .csv-preview-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-soft); color: var(--text-2); font-weight: 500; }
    .csv-preview-table tr:last-child td { border-bottom: none; }
    .csv-preview-table .td-ok { color: var(--green); font-weight: 700; }
    .csv-preview-table .td-warn { color: var(--amber); font-weight: 700; }
    .csv-preview-table .td-err { color: var(--red); font-weight: 700; }
    .csv-modal-footer {
      padding: 0 24px 22px;
      display: flex; gap: 10px; justify-content: flex-end;
    }
    .btn-csv-cancel {
      padding: 10px 20px; border-radius: 99px;
      font-size: 13px; font-weight: 700;
      color: var(--text-3); background: transparent;
      border: 1.5px solid var(--border-soft);
      cursor: pointer; font-family: inherit; transition: all .15s; min-height: 42px;
    }
    .btn-csv-cancel:hover { border-color: var(--border); color: var(--text-2); }
    .btn-csv-import-confirm {
      padding: 10px 22px; border-radius: 99px;
      font-size: 13px; font-weight: 800;
      color: white;
      background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
      border: none; cursor: pointer; font-family: inherit;
      box-shadow: 0 4px 16px rgba(46,102,144,.28);
      transition: all .15s; min-height: 42px;
      display: flex; align-items: center; gap: 7px;
    }
    .btn-csv-import-confirm:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(46,102,144,.35); }
    .btn-csv-import-confirm:disabled { opacity: .5; cursor: not-allowed; transform: none; }

    .confirm-modal-overlay {
      position: fixed; inset: 0;
      background: rgba(9,22,33,.6);
      z-index: 9100;
      display: none; align-items: center; justify-content: center;
      padding: 20px;
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
    }
    .confirm-modal-overlay.open { display: flex; }
    .confirm-modal {
      background: white;
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-xl);
      width: 100%; max-width: 380px;
      overflow: hidden;
      padding: 28px 24px 22px;
      text-align: center;
      animation: modalIn .28s cubic-bezier(.34,1.56,.64,1) both;
    }
    .confirm-modal-icon {
      width: 52px; height: 52px; margin: 0 auto 16px;
      border-radius: 50%;
      background: var(--amber-soft); color: var(--amber);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .confirm-modal-icon.danger { background: var(--red-soft); color: var(--red); }
    .confirm-modal-title { font-size: 15.5px; font-weight: 800; color: var(--text-1); line-height: 1.3; }
    .confirm-modal-msg { font-size: 12.5px; font-weight: 500; color: var(--text-3); line-height: 1.55; margin-top: 7px; }
    .confirm-modal-actions { display: flex; gap: 10px; margin-top: 22px; }
    .confirm-modal-actions button {
      flex: 1; padding: 11px 16px; border-radius: 99px;
      font-size: 13px; font-weight: 700; font-family: inherit;
      cursor: pointer; transition: all .15s; min-height: 42px;
    }
    .btn-confirm-cancel { background: transparent; border: 1.5px solid var(--border-soft); color: var(--text-3); }
    .btn-confirm-cancel:hover { border-color: var(--border); color: var(--text-2); }
    .btn-confirm-ok {
      background: var(--amber); border: none; color: #fff;
      box-shadow: 0 4px 14px rgba(217,119,6,.3);
    }
    .btn-confirm-ok:hover { filter: brightness(1.06); transform: translateY(-1px); }
    .btn-confirm-ok:active { transform: translateY(0) scale(.98); }
    .btn-confirm-ok.danger { background: var(--red); box-shadow: 0 4px 14px rgba(220,38,38,.3); }

    [data-tooltip] { position: relative; }
    [data-tooltip]:hover::after {
      content: attr(data-tooltip);
      position: fixed;
      background: var(--text-1);
      color: white;
      font-size: 11.5px; font-weight: 500;
      padding: 7px 12px;
      border-radius: 8px;
      white-space: pre-wrap;
      max-width: 280px;
      line-height: 1.5;
      z-index: 99999;
      pointer-events: none;
      box-shadow: 0 4px 16px rgba(0,0,0,.25);
      transform: translateY(4px);
    }
