/* TOP STRIP */

    /* NAV */

    /* BUTTONS */

    .btn-upi {
      background: #007A6B;
      color: #fff;
    }

    .btn-upi:hover {
      background: #005c51;
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0, 122, 107, .3);
    }

    .btn-bank {
      background: #1a56db;
      color: #fff;
    }

    .btn-bank:hover {
      background: #1447c0;
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(26, 86, 219, .3);
    }

    .btn-outline {
      background: transparent;
      border: 1.5px solid var(--paper);
      color: var(--ink-2);
    }

    .btn-outline:hover {
      border-color: var(--tagz);
      color: var(--tagz);
    }

    .btn-lg {
      padding: 14px 28px;
      font-size: 15px;
      border-radius: var(--r-lg);
    }

    /* LAYOUT */
    .wrap {
      max-width: 1320px;
      margin: auto;
      padding: 0 16px;
    }

    section {
      padding: 32px 0 60px;
    }

    .page-header {
      text-align: center;
      margin-bottom: 32px;
    }

    .page-header h1 {
      font-family: var(--ff-head);
      font-size: clamp(28px, 6vw, 44px);
      font-weight: 700;
      letter-spacing: -.03em;
      margin-bottom: 10px;
    }

    .page-header p {
      color: var(--ink-2);
      font-size: 15px;
      max-width: 600px;
      margin: auto;
      line-height: 1.6;
    }

    /* Two-column layout — stacks on mobile */
    .calc-grid {
      display: flex;
      flex-direction: column;
      gap: 24px;
      align-items: flex-start;
    }

    /* FORM CARD */
    .calc-form-card {
      background: #fff;
      border: 1px solid var(--paper);
      border-radius: var(--r-lg);
      padding: 20px;
      box-shadow: var(--shadow-card);
      width: 100%;
    }

    /* SECTION LABEL */
    .section-label {
      font-family: var(--ff-head);
      font-size: 10px;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--ink-3);
      margin-bottom: 12px;
      font-weight: 700;
    }

    /* FORM */
    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      font-family: var(--ff-head);
      font-weight: 700;
      font-size: 13px;
      margin-bottom: 7px;
      color: var(--ink);
    }

    .form-control {
      width: 100%;
      padding: 12px 14px;
      border: 1.5px solid var(--paper);
      border-radius: var(--r);
      font-family: var(--ff-body);
      font-size: 14px;
      color: var(--ink);
      background: var(--cream);
      transition: all .2s;
      appearance: none;
      -webkit-appearance: none;
    }

    .form-control:focus {
      outline: none;
      border-color: var(--tagz);
      background: #fff;
      box-shadow: 0 0 0 3px var(--tagz-lt);
    }

    .form-row-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .checkbox-group {
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
    }

    .checkbox-group input {
      width: 18px;
      height: 18px;
      accent-color: var(--tagz);
      cursor: pointer;
      flex-shrink: 0;
    }

    .checkbox-group span {
      font-size: 13px;
      font-weight: 500;
      color: var(--ink-2);
      line-height: 1.4;
    }

    .error-msg {
      color: #DC2626;
      font-size: 12px;
      margin-top: 6px;
      display: none;
      font-weight: 600;
    }

    /* GST toggle field */
    .gst-field {
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      transition: max-height .3s var(--ease), opacity .3s, margin .3s;
      margin-bottom: 0;
    }

    .gst-field.visible {
      max-height: 90px;
      opacity: 1;
      margin-bottom: 20px;
    }

    /* CATEGORY TOGGLE — NFC / RFID segmented control */
    .cat-toggle {
      position: relative;
      display: grid;
      grid-template-columns: 1fr 1fr;
      width: 100%;
      max-width: 280px;
      background: var(--warm);
      border: 1.5px solid var(--paper);
      border-radius: 999px;
      padding: 4px;
      margin-bottom: 14px;
      gap: 0;
    }

    .cat-tab-slider {
      position: absolute;
      top: 4px;
      left: 4px;
      width: calc(50% - 4px);
      height: calc(100% - 8px);
      background: #fff;
      border-radius: 999px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .1), 0 0 0 1px rgba(255, 69, 0, .12);
      transition: transform .32s var(--ease);
      z-index: 0;
    }

    .cat-toggle.rfid-active .cat-tab-slider {
      transform: translateX(100%);
    }

    .cat-tab {
      position: relative;
      z-index: 1;
      border: none;
      background: transparent;
      font-family: var(--ff-head);
      font-weight: 700;
      font-size: 13px;
      letter-spacing: .02em;
      color: var(--ink-3);
      padding: 9px 0;
      border-radius: 999px;
      cursor: pointer;
      transition: color .25s var(--ease);
    }

    .cat-tab.active {
      color: var(--tagz);
    }

    .cat-tab:hover:not(.active) {
      color: var(--ink-2);
    }

    /* PRODUCT GRID — smooth filter transition */
    .product-grid {
      transition: opacity .2s var(--ease);
    }

    .product-grid.switching {
      opacity: 0;
    }

    .prod-card {
      animation: prodFadeIn .35s var(--ease);
    }

    @keyframes prodFadeIn {
      from {
        opacity: 0;
        transform: translateY(6px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* PRODUCT GRID — responsive horizontal scroll guard */
    .product-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      margin-bottom: 20px;
    }

    @media(min-width:480px) {
      .product-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    @media(min-width:768px) {
      .product-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    .prod-card {
      border: 2px solid var(--paper);
      border-radius: var(--r);
      padding: 12px;
      cursor: pointer;
      transition: all .2s var(--ease);
      position: relative;
      background: var(--cream);
      user-select: none;
      min-width: 0;
    }

    .prod-card:hover {
      border-color: var(--tagz);
      background: #fff;
    }

    .prod-card.selected {
      border-color: var(--tagz);
      background: var(--tagz-lt);
      box-shadow: 0 0 0 3px rgba(255, 69, 0, .1);
    }

    .prod-card.bundle-card {
      border-color: rgba(0, 122, 107, .35);
      background: var(--teal-lt);
    }

    .prod-card.bundle-card:hover {
      border-color: var(--teal);
      background: #d4eeeb;
    }

    .prod-card.bundle-card.selected {
      border-color: var(--teal);
      background: #c0e8e3;
      box-shadow: 0 0 0 3px rgba(0, 122, 107, .12);
    }

    .prod-card.bundle-card.selected .check {
      background: var(--teal);
      border-color: var(--teal);
    }

    .prod-card .check {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 2px solid var(--paper);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all .2s;
      background: #fff;
      flex-shrink: 0;
    }

    .prod-card.selected .check {
      background: var(--tagz);
      border-color: var(--tagz);
    }

    .prod-card.selected .check svg {
      display: block;
    }

    .prod-card .check svg {
      display: none;
      width: 9px;
      height: 9px;
      fill: #fff;
    }

    .bundle-badge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      background: rgba(0, 122, 107, .12);
      color: var(--teal);
      border-radius: 99px;
      padding: 2px 6px;
      font-size: 9px;
      font-weight: 700;
      font-family: var(--ff-head);
      letter-spacing: .06em;
      text-transform: uppercase;
      margin-bottom: 5px;
    }

    .prod-card .prod-name {
      font-family: var(--ff-head);
      font-weight: 700;
      font-size: 12px;
      color: var(--ink);
      margin-bottom: 3px;
      padding-right: 20px;
      line-height: 1.3;
    }

    .prod-card .prod-code {
      font-size: 9px;
      letter-spacing: .06em;
      color: var(--ink-3);
      font-family: var(--ff-head);
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .prod-card .prod-price {
      font-family: var(--ff-head);
      font-size: 16px;
      font-weight: 700;
      color: var(--tagz);
    }

    .prod-card.bundle-card .prod-price {
      color: var(--teal);
    }

    .prod-card .prod-price span {
      font-size: 10px;
      color: var(--ink-3);
      font-weight: 400;
    }

    /* ITEM ROWS */
    .selected-items {
      margin-bottom: 20px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .item-row {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--cream);
      border: 1.5px solid var(--paper);
      border-radius: var(--r);
      padding: 10px 12px;
      transition: border-color .2s;
      min-width: 0;
    }

    .item-row:focus-within {
      border-color: var(--tagz);
    }

    .item-row.bundle-row {
      background: var(--teal-lt);
      border-color: rgba(0, 122, 107, .25);
    }

    .item-row .item-label {
      flex: 1;
      min-width: 0;
    }

    .item-row .item-label .iname {
      font-family: var(--ff-head);
      font-weight: 700;
      font-size: 12px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .item-row .item-label .iprice {
      font-size: 10px;
      color: var(--ink-3);
    }

    .item-row .qty-ctrl {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
    }

    .qty-btn {
      width: 26px;
      height: 26px;
      border-radius: 6px;
      border: 1.5px solid var(--paper);
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 14px;
      line-height: 1;
      color: var(--ink-2);
      transition: all .15s;
    }

    .qty-btn:hover {
      border-color: var(--tagz);
      color: var(--tagz);
    }

    .qty-input {
      width: 52px;
      text-align: center;
      font-family: var(--ff-head);
      font-weight: 700;
      font-size: 13px;
      border: 1.5px solid var(--paper);
      border-radius: 6px;
      padding: 5px 2px;
      background: #fff;
      color: var(--ink);
    }

    .qty-input:focus {
      outline: none;
      border-color: var(--tagz);
    }

    .fixed-qty-label {
      font-size: 11px;
      font-family: var(--ff-head);
      font-weight: 600;
      color: var(--teal);
      padding: 0 2px;
      white-space: nowrap;
    }

    .item-row .item-total {
      font-family: var(--ff-head);
      font-weight: 700;
      font-size: 12px;
      color: var(--ink);
      flex-shrink: 0;
      min-width: 52px;
      text-align: right;
    }

    .empty-hint {
      text-align: center;
      padding: 20px;
      color: var(--ink-3);
      font-size: 13px;
      border: 2px dashed var(--paper);
      border-radius: var(--r);
    }

    /* TIER GUIDE */
    .tier-guide {
      background: var(--warm);
      border-radius: var(--r);
      padding: 14px;
      margin-top: 16px;
      border: 1px solid var(--paper);
    }

    .tier-guide h4 {
      font-family: var(--ff-head);
      font-size: 10px;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--ink-3);
      margin-bottom: 10px;
    }

    .tier-row {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      margin-bottom: 7px;
      color: var(--ink-2);
    }

    .tier-row:last-child {
      margin-bottom: 0;
    }

    .tier-row b {
      color: var(--tagz);
      font-family: var(--ff-head);
      font-weight: 700;
    }

    /* ══ QUOTE CARD — Professional Receipt Style ══ */
    .quote-card {
      background: #fff;
      border: 1px solid var(--paper);
      border-radius: var(--r-lg);
      padding: 0;
      box-shadow: var(--shadow-strong);
      width: 100%;
      overflow: hidden;
    }

    /* Header band */
    .qc-header {
      background: var(--ink);
      color: #fff;
      padding: 20px 24px 18px;
      position: relative;
      overflow: hidden;
    }

    .qc-header::before {
      content: '';
      position: absolute;
      top: -30px;
      right: -30px;
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: rgba(255, 69, 0, .15);
    }

    .qc-header::after {
      content: '';
      position: absolute;
      bottom: -20px;
      left: 60px;
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .04);
    }

    .qc-logo-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .qc-brand {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .qc-brand-icon {
      width: 26px;
      height: 26px;
      background: var(--tagz);
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .qc-brand-icon svg {
      width: 14px;
      height: 14px;
    }

    .qc-brand-name {
      font-family: var(--ff-head);
      font-size: 17px;
      font-weight: 700;
      letter-spacing: -.02em;
    }

    .qc-brand-name em {
      color: var(--tagz);
      font-style: normal;
    }

    .qc-badge {
      font-family: var(--ff-head);
      font-size: 9px;
      font-weight: 700;
      letter-spacing: .12em;
      text-transform: uppercase;
      background: rgba(255, 255, 255, .12);
      border: 1px solid rgba(255, 255, 255, .15);
      border-radius: 99px;
      padding: 3px 10px;
      color: rgba(255, 255, 255, .7);
    }

    .qc-meta {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
    }

    .qc-meta-item {
      display: flex;
      flex-direction: column;
      gap: 1px;
    }

    .qc-meta-label {
      font-size: 9px;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .4);
      font-family: var(--ff-head);
    }

    .qc-meta-value {
      font-size: 12px;
      font-weight: 600;
      font-family: var(--ff-head);
      color: rgba(255, 255, 255, .9);
    }

    /* Customer block */
    .qc-customer {
      padding: 16px 24px;
      border-bottom: 1px solid var(--paper);
      background: var(--warm);
    }

    .qc-customer-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .qc-field {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .qc-field-label {
      font-size: 9px;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--ink-3);
      font-family: var(--ff-head);
      font-weight: 700;
    }

    .qc-field-value {
      font-size: 12px;
      font-weight: 600;
      font-family: var(--ff-head);
      color: var(--ink);
      word-break: break-word;
    }

    .qc-field.full-width {
      grid-column: 1/-1;
    }

    /* Items table */
    .qc-items {
      padding: 16px 24px;
    }

    .q-items-table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 4px;
    }

    .q-items-table th {
      font-family: var(--ff-head);
      font-size: 9px;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--ink-3);
      padding: 0 0 8px;
      text-align: left;
      border-bottom: 1.5px solid var(--paper);
    }

    .q-items-table th:nth-child(2),
    .q-items-table th:nth-child(3),
    .q-items-table th:last-child {
      text-align: right;
    }

    .q-items-table td {
      font-size: 12px;
      padding: 8px 0;
      color: var(--ink-2);
      border-bottom: 1px solid var(--paper);
    }

    .q-items-table td:nth-child(2),
    .q-items-table td:nth-child(3),
    .q-items-table td:last-child {
      text-align: right;
      font-family: var(--ff-head);
      font-weight: 600;
      color: var(--ink);
    }

    .q-items-table .td-name {
      font-weight: 700;
      color: var(--ink);
      font-family: var(--ff-head);
      font-size: 12px;
    }

    .q-items-table .td-sub {
      font-size: 10px;
      color: var(--ink-3);
    }

    .q-items-table td:nth-child(2),
    .q-items-table td:nth-child(3) {
      color: var(--ink-3);
      font-weight: 500;
    }

    /* Totals block */
    .qc-totals {
      padding: 12px 24px 0;
      border-top: 1px solid var(--paper);
    }

    .qt-line {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 13px;
      padding: 6px 0;
      color: var(--ink-2);
    }

    .qt-line .qt-label {
      font-family: var(--ff-body);
      font-size: 13px;
    }

    .qt-line .qt-val {
      font-family: var(--ff-head);
      font-weight: 600;
      color: var(--ink);
      font-size: 14px;
    }

    .qt-line.discount .qt-val {
      color: var(--green);
      font-weight: 700;
    }

    .qt-line.shipping-free .qt-val {
      color: var(--green);
    }

    .qt-line.gst-line .qt-val {
      color: var(--ink-2);
    }

    .qt-separator {
      border: none;
      border-top: 1.5px dashed var(--paper);
      margin: 8px 0;
    }

    /* GST breakdown detail box */
    .gst-breakdown {
      background: var(--teal-lt);
      border: 1px solid rgba(0, 122, 107, .2);
      border-radius: 8px;
      padding: 10px 14px;
      margin: 8px 0 4px;
      display: none;
    }

    .gst-breakdown.visible {
      display: block;
    }

    .gst-breakdown-row {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      color: var(--teal);
      font-family: var(--ff-head);
      font-weight: 600;
      padding: 2px 0;
    }

    .gst-breakdown-row span:first-child {
      font-weight: 500;
      color: var(--ink-3);
    }

    /* Grand total */
    .qc-grand-total {
      background: var(--ink);
      padding: 16px 24px;
      margin-top: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .qgt-label {
      font-family: var(--ff-head);
      font-size: 13px;
      font-weight: 600;
      color: rgba(255, 255, 255, .6);
      letter-spacing: .02em;
      text-transform: uppercase;
    }

    .qgt-amount {
      font-family: var(--ff-head);
      font-size: 28px;
      font-weight: 700;
      color: #fff;
      letter-spacing: -.02em;
    }

    .qgt-amount small {
      font-size: 16px;
      opacity: .6;
      margin-right: 2px;
    }

    /* QR + actions */
    .qc-pay {
      padding: 20px 24px;
    }

    .upi-qr-wrapper {
      background: var(--cream);
      border: 1px solid var(--paper);
      border-radius: var(--r);
      padding: 16px;
      margin-bottom: 16px;
      text-align: center;
    }

    .upi-qr-wrapper p {
      font-size: 11px;
      color: var(--ink-3);
      margin-top: 10px;
      font-weight: 500;
    }

    #qrcode {
      display: flex;
      justify-content: center;
      align-items: center;
      mix-blend-mode: multiply;
    }

    /* Payment method tabs */
    .pay-tabs {
      display: flex;
      background: var(--warm);
      border: 1px solid var(--paper);
      border-radius: var(--r);
      padding: 4px;
      gap: 4px;
      margin-bottom: 16px;
    }

    .pay-tab {
      flex: 1;
      padding: 9px 8px;
      border-radius: 8px;
      font-family: var(--ff-head);
      font-size: 12px;
      font-weight: 600;
      color: var(--ink-3);
      background: transparent;
      border: none;
      cursor: pointer;
      transition: all .2s var(--ease);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      line-height: 1.2;
      text-align: center;
    }

    .pay-tab.active {
      background: #fff;
      color: var(--ink);
      box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
    }

    .pay-tab.active.tab-upi {
      color: var(--teal);
    }

    .pay-tab.active.tab-bank {
      color: #1a56db;
    }

    .pay-panel {
      display: none;
    }

    .pay-panel.active {
      display: block;
    }

    /* UPI limit notice */
    .upi-limit-notice {
      display: none;
      align-items: center;
      gap: 8px;
      background: #fffbeb;
      border: 1px solid #fcd34d;
      border-radius: var(--r);
      padding: 10px 14px;
      margin-bottom: 12px;
      font-size: 12px;
      font-family: var(--ff-head);
      font-weight: 600;
      color: #92400e;
    }

    .upi-limit-notice.show {
      display: flex;
    }

    /* Bank transfer details card */
    .bank-card {
      background: #eff6ff;
      border: 1.5px solid #bfdbfe;
      border-radius: var(--r);
      padding: 16px;
      margin-bottom: 12px;
    }

    .bank-card-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 14px;
    }

    .bank-card-icon {
      width: 32px;
      height: 32px;
      background: #1a56db;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .bank-card-title {
      font-family: var(--ff-head);
      font-size: 13px;
      font-weight: 700;
      color: #1e3a8a;
      line-height: 1.2;
    }

    .bank-card-subtitle {
      font-size: 10px;
      color: #3b82f6;
      font-family: var(--ff-head);
      font-weight: 500;
    }

    .bank-details-grid {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .bank-detail-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 7px 10px;
      background: #fff;
      border-radius: 8px;
      border: 1px solid #dbeafe;
      gap: 8px;
    }

    .bank-detail-label {
      font-family: var(--ff-head);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: #93c5fd;
      flex-shrink: 0;
    }

    .bank-detail-value {
      font-family: var(--ff-head);
      font-size: 12px;
      font-weight: 700;
      color: #1e3a8a;
      text-align: right;
      word-break: break-all;
    }

    .bank-copy-btn {
      background: #dbeafe;
      border: none;
      border-radius: 5px;
      padding: 4px 8px;
      font-family: var(--ff-head);
      font-size: 10px;
      font-weight: 700;
      color: #1a56db;
      cursor: pointer;
      transition: all .15s;
      flex-shrink: 0;
      letter-spacing: .02em;
    }

    .bank-copy-btn:hover {
      background: #bfdbfe;
    }

    .bank-copy-btn.copied {
      background: var(--green-lt);
      color: var(--green);
    }

    .bank-transfer-note {
      background: #fff;
      border: 1px dashed #93c5fd;
      border-radius: 8px;
      padding: 10px 12px;
      font-size: 11px;
      color: #3b82f6;
      font-family: var(--ff-head);
      font-weight: 500;
      margin-top: 8px;
      line-height: 1.5;
    }

    .bank-transfer-note strong {
      color: #1e3a8a;
    }

    .quote-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .quote-validity {
      text-align: center;
      font-size: 11px;
      color: var(--ink-3);
      margin-top: 12px;
      font-style: italic;
    }

    /* Shipping info pill */
    .shipping-info-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: var(--green-lt);
      border: 1px solid rgba(22, 163, 74, .2);
      border-radius: 99px;
      padding: 4px 10px;
      font-size: 11px;
      font-family: var(--ff-head);
      font-weight: 600;
      color: var(--green);
      margin-top: 6px;
    }

    .shipping-info-pill.paid {
      background: var(--tagz-lt);
      border-color: rgba(255, 69, 0, .2);
      color: var(--tagz);
    }

    /* Required star */
    .req-star {
      color: var(--tagz);
      font-size: 14px;
    }

    /* Location auto-display */
    .location-display {
      width: 100%;
      padding: 12px 14px;
      border: 1.5px solid var(--paper);
      border-radius: var(--r);
      font-family: var(--ff-body);
      font-size: 14px;
      background: var(--warm);
      min-height: 46px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .location-display.filled {
      border-color: var(--teal);
      background: var(--teal-lt);
      color: var(--ink);
      font-weight: 600;
    }

    .location-placeholder {
      color: var(--ink-3);
      font-size: 13px;
      font-style: italic;
    }

    .location-city {
      font-weight: 700;
      color: var(--teal);
      font-family: var(--ff-head);
    }

    .location-state {
      color: var(--ink-2);
      font-size: 12px;
    }

    select.form-control {
      padding-right: 36px;
      cursor: pointer;
    }

    /* FOOTER */

    .footer-top {
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
      margin-bottom: 40px;
    }

    .footer-brand p {
      font-size: 13px;
      line-height: 1.6;
      margin-top: 12px;
      font-weight: 300;
    }

    .footer-col h4 {
      font-family: var(--ff-head);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .35);
      margin-bottom: 16px;
    }

    .footer-col ul {
      list-style: none;
    }

    .footer-col li {
      margin-bottom: 10px;
    }

    .footer-col a {
      font-size: 13px;
      font-weight: 400;
      color: rgba(255, 255, 255, .5);
      transition: color .2s;
    }

    .footer-col a:hover {
      color: #fff;
    }

    /* Quote number */
    .quote-num-tag {
      font-family: var(--ff-head);
      font-size: 10px;
      letter-spacing: .06em;
      font-weight: 700;
      color: rgba(255, 255, 255, .5);
      background: rgba(255, 255, 255, .08);
      padding: 2px 8px;
      border-radius: 4px;
    }

    /* RESPONSIVE */
    @media(min-width:768px) {

      .calc-form-card {
        padding: 28px;
      }

      .wrap {
        padding: 0 24px;
      }
    }

    @media(min-width:1024px) {
      section {
        padding: 48px 0 100px;
      }

      .calc-grid {
        flex-direction: row;
        gap: 40px;
      }

      .calc-form-card {
        flex: 1;
        min-width: 0;
      }

      .quote-card {
        width: 420px;
        flex-shrink: 0;
        position: sticky;
        top: 80px;
      }

      .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 48px;
      }

      .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
      }

      .footer-bottom-r {
        justify-content: flex-end;
      }
    }

    /* PRINT — Professional PDF output */
    @media print {
      @page {
        size: A4;
        margin: 12mm 14mm 14mm 14mm;
      }

      nav,
      footer,
      .top-strip,
      .tap-hero,
      .calc-form-card,
      .page-header,
      .quote-actions,
      .upi-qr-wrapper,
      .pay-tabs,
      .upi-limit-notice,
      #panelUpi,
      .qc-pay>.quote-actions {
        display: none !important;
      }

      .qc-pay {
        padding: 0 !important;
      }

      .pay-panel {
        display: none !important;
      }

      #panelBank {
        display: block !important;
        padding: 0 24px 16px !important;
      }

      .bank-card {
        background: #eff6ff !important;
        border: 1.5px solid #bfdbfe !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

      .bank-detail-row {
        background: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

      .bank-copy-btn {
        display: none !important;
      }

      * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
      }

      body {
        background: #fff;
        color: #111;
        font-family: 'Manrope', sans-serif;
        font-size: 11pt;
      }

      .wrap {
        padding: 0;
        max-width: 100%;
      }

      section {
        padding: 0;
      }

      .calc-grid {
        display: block;
      }

      .quote-card {
        box-shadow: none !important;
        border: none !important;
        width: 100%;
        max-width: 100%;
        position: static !important;
        overflow: visible !important;
        page-break-inside: avoid;
      }

      /* Print header — dark band */
      .qc-header {
        background: #1A1714 !important;
        color: #fff !important;
        padding: 18px 24px 16px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

      .qc-header::before,
      .qc-header::after {
        display: none !important;
      }

      .qc-brand-name,
      .qc-meta-value,
      .qc-badge,
      .quote-num-tag {
        color: #fff !important;
      }

      .qc-meta-label {
        color: rgba(255, 255, 255, 0.5) !important;
      }

      /* Customer section */
      .qc-customer {
        background: #F5F3EF !important;
        border-bottom: 1px solid #ddd !important;
        padding: 14px 24px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

      .qc-field-value {
        font-size: 11pt !important;
        color: #111 !important;
      }

      .qc-field-label {
        color: #888 !important;
        font-size: 7.5pt !important;
      }

      /* Items table */
      .qc-items {
        padding: 14px 24px !important;
      }

      .q-items-table {
        width: 100%;
        border-collapse: collapse;
      }

      .q-items-table th {
        font-size: 8pt !important;
        color: #777 !important;
        padding: 0 0 7px !important;
        border-bottom: 1.5px solid #ddd !important;
      }

      .q-items-table td {
        font-size: 10pt !important;
        padding: 7px 0 !important;
        border-bottom: 1px solid #eee !important;
        color: #222 !important;
      }

      .q-items-table .td-name {
        font-size: 10pt !important;
        color: #111 !important;
      }

      .q-items-table .td-sub {
        font-size: 8pt !important;
        color: #888 !important;
      }

      /* Totals */
      .qc-totals {
        padding: 10px 24px 0 !important;
        border-top: 1px solid #ddd !important;
      }

      .qt-line {
        font-size: 10pt !important;
      }

      .qt-separator {
        border-top: 1.5px dashed #ccc !important;
        margin: 6px 0 !important;
      }

      .gst-breakdown {
        background: #EBF7F5 !important;
        border: 1px solid #b2dbd6 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

      /* Grand total */
      .qc-grand-total {
        background: #1A1714 !important;
        padding: 14px 24px !important;
        margin-top: 6px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

      .qgt-label,
      .qgt-amount {
        color: #fff !important;
      }

      /* Footer note */
      .quote-card::after {
        content: "Thank you for choosing ntagz. This is a system-generated quotation. Valid for 15 days from the issue date. · GSTIN: 27AAPCA8177N1ZQ · ntagz.in · WhatsApp: +91 9960 160016";
        display: block;
        margin: 20px 24px 8px;
        text-align: center;
        font-size: 8pt;
        color: #aaa;
        border-top: 1px dashed #ddd;
        padding-top: 14px;
        font-family: 'Manrope', sans-serif;
      }
    }

/* ── HERO SECTION (recovered — was in a second inline <style> block lost during the CSS/JS restructure) ── */
    .tap-hero {
      position: relative;
      overflow: hidden;
      background: radial-gradient(ellipse 80% 60% at 80% 0%, rgba(255, 69, 0, .18), transparent 60%),
        radial-gradient(ellipse 60% 50% at 10% 100%, rgba(200, 150, 12, .16), transparent 60%),
        linear-gradient(180deg, #06070d 0%, #0a0e1a 60%, #0c1020 100%);
      padding: 64px 0 88px;
      isolation: isolate;
    }

    .tap-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
      background-size: 42px 42px;
      mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black, transparent 80%);
      pointer-events: none;
    }

    .tap-hero .wrap {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1.05fr .95fr;
      gap: 56px;
      align-items: center;
    }

    @media (max-width: 880px) {
      .tap-hero .wrap {
        grid-template-columns: 1fr;
        gap: 40px;
      }
    }

    .tap-hero-copy {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 22px;
    }

    .tap-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 16px;
      border-radius: 999px;
      font-family: var(--ff-body);
      font-size: 12.5px;
      font-weight: 700;
      letter-spacing: .06em;
      color: #FFCBAF;
      background: rgba(255, 69, 0, .1);
      border: 1px solid rgba(255, 69, 0, .35);
      box-shadow: 0 0 24px rgba(255, 69, 0, .15);
    }

    .tap-h1 {
      font-family: var(--ff-head);
      font-weight: 700;
      font-size: clamp(40px, 6vw, 68px);
      line-height: 1.04;
      letter-spacing: -.02em;
      color: #f5f7fb;
      margin: 0;
    }

    .tap-h1 .grad {
      background: linear-gradient(92deg, #FF4500 0%, #C8960C 55%, #FF4500 100%);
      background-size: 200% auto;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: tapGradShift 6s ease-in-out infinite;
    }

    @keyframes tapGradShift {

      0%,
      100% {
        background-position: 0% 50%;
      }

      50% {
        background-position: 100% 50%;
      }
    }

    .tap-sub {
      font-family: var(--ff-body);
      font-size: 18px;
      line-height: 1.6;
      color: #aab2c5;
      max-width: 540px;
      font-weight: 400;
    }

    .tap-ctas {
      display: flex;
      align-items: center;
      gap: 22px;
      flex-wrap: wrap;
      margin-top: 6px;
    }

    .tap-btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 16px 30px;
      border-radius: 14px;
      font-family: var(--ff-body);
      font-weight: 700;
      font-size: 16px;
      color: #06070d;
      background: linear-gradient(92deg, #FF4500, #C8960C);
      box-shadow: 0 8px 30px rgba(255, 69, 0, .35), 0 4px 14px rgba(200, 150, 12, .25);
      text-decoration: none;
      border: none;
      cursor: pointer;
      transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    }

    .tap-btn-primary:hover {
      transform: translateY(-2px) scale(1.035);
      box-shadow: 0 12px 38px rgba(255, 69, 0, .45), 0 6px 18px rgba(200, 150, 12, .32);
    }

    .tap-btn-ghost {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      font-family: var(--ff-body);
      font-weight: 600;
      font-size: 15.5px;
      color: #e7eaf3;
      text-decoration: none;
      padding: 14px 6px;
      border-bottom: 1px solid transparent;
      transition: border-color .25s var(--ease), color .25s var(--ease), gap .25s var(--ease);
    }

    .tap-btn-ghost:hover {
      border-color: rgba(255, 255, 255, .45);
      color: #ffffff;
      gap: 13px;
    }

    .tap-btn-ghost .play {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .08);
      border: 1px solid rgba(255, 255, 255, .25);
      flex-shrink: 0;
    }

    .tap-social {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 4px;
    }

    .tap-stars {
      display: flex;
      gap: 2px;
      color: #fbbf24;
      font-size: 16px;
      letter-spacing: 1px;
    }

    .tap-social-text {
      font-family: var(--ff-body);
      font-size: 13.5px;
      color: #8b93a8;
      font-weight: 500;
    }

    /* ── RIGHT: VISUAL HOOK ── */
    .tap-visual {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 420px;
    }

    .tap-ripple-stage {
      position: relative;
      width: 100%;
      max-width: 380px;
      aspect-ratio: 1/1;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .tap-ripple {
      position: absolute;
      border-radius: 50%;
      border: 1.5px solid rgba(255, 69, 0, .55);
      animation: tapRipple 2.8s var(--ease) infinite;
    }

    .tap-ripple:nth-child(2) {
      animation-delay: .7s;
      border-color: rgba(200, 150, 12, .5);
    }

    .tap-ripple:nth-child(3) {
      animation-delay: 1.4s;
    }

    @keyframes tapRipple {
      0% {
        width: 60px;
        height: 60px;
        opacity: .9;
      }

      100% {
        width: 380px;
        height: 380px;
        opacity: 0;
      }
    }

    .tap-card-3d {
      position: relative;
      z-index: 2;
      width: 200px;
      height: 126px;
      border-radius: 16px;
      background: linear-gradient(150deg, #1c2030 0%, #11131e 100%);
      border: 1px solid rgba(255, 255, 255, .12);
      box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 69, 0, .08) inset,
        0 0 50px rgba(255, 69, 0, .18);
      transform: rotate(-9deg);
      animation: tapFloat 5s ease-in-out infinite;
      padding: 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    @keyframes tapFloat {

      0%,
      100% {
        transform: rotate(-9deg) translateY(0);
      }

      50% {
        transform: rotate(-7deg) translateY(-12px);
      }
    }

    .tap-card-3d .chip {
      width: 30px;
      height: 22px;
      border-radius: 4px;
      background: linear-gradient(135deg, #FF4500, #C8960C);
      opacity: .9;
    }

    .tap-card-3d .wave {
      align-self: flex-end;
      font-size: 16px;
      opacity: .8;
    }

    .tap-card-3d .name {
      font-family: var(--ff-body);
      font-size: 11px;
      font-weight: 700;
      color: #e7eaf3;
      letter-spacing: .04em;
    }

    .tap-phone {
      position: absolute;
      right: -6px;
      bottom: -8px;
      z-index: 3;
      width: 92px;
      height: 188px;
      border-radius: 24px;
      background: linear-gradient(160deg, #2a2e3d, #14161f);
      border: 2px solid rgba(255, 255, 255, .15);
      box-shadow: 0 25px 50px rgba(0, 0, 0, .6);
      transform: rotate(8deg);
      animation: tapPhoneFloat 5s ease-in-out infinite .3s;
    }

    @keyframes tapPhoneFloat {

      0%,
      100% {
        transform: rotate(8deg) translateY(0);
      }

      50% {
        transform: rotate(10deg) translateY(-10px);
      }
    }

    .tap-phone::before {
      content: '';
      position: absolute;
      inset: 8px;
      border-radius: 16px;
      background: linear-gradient(200deg, rgba(255, 69, 0, .25), rgba(200, 150, 12, .15));
    }

    .tap-glow-dot {
      position: absolute;
      top: 10%;
      left: 6%;
      width: 70px;
      height: 70px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255, 69, 0, .5), transparent 70%);
      filter: blur(6px);
      animation: tapFloat 6s ease-in-out infinite;
    }

    @media (max-width: 880px) {
      .tap-hero {
        padding: 48px 0 56px;
        text-align: left;
      }

      .tap-hero-copy {
        align-items: flex-start;
      }

      .tap-visual {
        min-height: 320px;
        margin-top: 8px;
      }
    }
