/* ============================================================
   Onboarding (welcome + login bottom-sheet)
   src: raw-css-Onboarding_v3.css
   ============================================================ */

.mark {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: var(--bp-espresso);
    font-family: var(--bp-font);
    font-weight: 800;
    letter-spacing: -0.04em;
    font-size: 22px;
  }
  .mark svg { display: block; fill: currentColor; flex-shrink: 0; }
  .mark .bk { height: 0.55em; width: auto; }
  .mark .gap { width: 0.42em; display: inline-block; }
  .mark .core { position: relative; display: inline-block; }
  .mark .steam {
    position: absolute;
    left: 54%;
    top: -0.78em;
    height: 0.86em;
    width: auto;
    color: var(--bp-espresso);
    transform: translateX(-50%);
  }

  
  .scr-welcome {
    height: calc(100% - 54px);
    padding: 36px 28px 36px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0;
  }

  .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .state-tag {
    font-family: var(--bp-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--bp-espresso-2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .state-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--bp-ember);
    flex-shrink: 0;
  }
  .state-tag .dot.muted { background: var(--bp-espresso-3); }

  .message {
    align-self: center;
    margin-top: -28px;
  }
  .message h1 {
    font-family: var(--bp-font);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--bp-espresso);
    margin: 0 0 12px;
  }
  .message p {
    font-family: var(--bp-font);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    color: var(--bp-espresso-2);
    margin: 0;
    max-width: 30ch;
  }
  .message .num {
    font-family: var(--bp-mono);
    font-weight: 500;
    color: var(--bp-espresso);
    font-variant-numeric: tabular-nums;
  }

  
  .renew-card {
    margin-top: 24px;
    border: 1px solid rgba(61, 43, 26, 0.14);
    border-radius: 14px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    background: var(--bp-paper);
  }
  .renew-card .name {
    font-family: var(--bp-font);
    font-weight: 700;
    font-size: 15px;
    color: var(--bp-espresso);
  }
  .renew-card .meta-r {
    font-family: var(--bp-mono);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--bp-espresso-2);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
  }
  .renew-card .price {
    font-family: var(--bp-font);
    font-weight: 700;
    font-size: 17px;
    color: var(--bp-espresso);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
  }
  .renew-card .price small {
    font-weight: 500;
    font-size: 11px;
    color: var(--bp-espresso-2);
    margin-left: 2px;
  }

  
  .actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: 999px;
    font-family: var(--bp-font);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.005em;
    border: none;
    cursor: pointer;
    transition: background 160ms cubic-bezier(.22,1,.36,1),
                transform 160ms cubic-bezier(.22,1,.36,1);
    width: 100%;
  }
  .btn:active { transform: scale(0.98); }
  .btn-primary {
    background: var(--bp-espresso);
    color: var(--bp-cream);
  }
  .btn-primary:hover { background: var(--bp-ink); }
  .btn-primary[disabled] {
    background: var(--bp-cream-3);
    color: var(--bp-espresso-3);
    cursor: not-allowed;
  }
  .btn-secondary {
    background: transparent;
    color: var(--bp-espresso);
    border: 1px solid var(--bp-espresso);
  }
  .btn-secondary:hover { background: rgba(61, 43, 26, 0.04); }

  .text-link-row {
    display: flex;
    justify-content: center;
    margin-top: 12px;
  }
  .text-link {
    font-family: var(--bp-font);
    font-weight: 500;
    font-size: 14px;
    color: var(--bp-espresso-2);
    text-decoration: none;
    padding: 8px 4px;
    border: none;
    background: transparent;
    cursor: pointer;
  }
  .text-link b { color: var(--bp-espresso); font-weight: 600; }
  .text-link:hover b { text-decoration: underline; text-underline-offset: 3px; }

  
  .scr-modal {
    height: calc(100% - 54px);
    position: relative;
    background: rgba(21, 17, 12, 0.55);
  }
  
  .scr-modal .behind {
    position: absolute;
    inset: 0;
    padding: 24px 28px;
    color: rgba(242, 234, 216, 0.62);
    pointer-events: none;
  }
  .scr-modal .behind .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-family: var(--bp-font);
    font-weight: 600;
    font-size: 13px;
  }
  .scr-modal .behind .x {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(242, 234, 216, 0.1);
    display: flex; align-items: center; justify-content: center;
  }
  .scr-modal .behind h3 {
    font-family: var(--bp-font);
    font-weight: 700;
    font-size: 22px;
    margin: 0 0 14px;
    color: rgba(242, 234, 216, 0.85);
    letter-spacing: -0.02em;
  }
  .scr-modal .behind .line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(242, 234, 216, 0.08);
    font-size: 13px;
    font-family: var(--bp-font);
    font-weight: 500;
  }

  .sheet {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: var(--bp-cream);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    padding: 14px 28px 36px;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .sheet .grab {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: rgba(61, 43, 26, 0.18);
    margin: 0 auto 8px;
  }
  .sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sheet-head .ctx {
    font-family: var(--bp-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--bp-espresso-2);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .sheet-head .back {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    color: var(--bp-espresso);
    cursor: pointer;
    margin-left: -8px;
  }
  .sheet-title {
    font-family: var(--bp-font);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--bp-espresso);
    margin: 0;
  }
  .sheet-help {
    font-family: var(--bp-font);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.45;
    color: var(--bp-espresso-2);
    margin: 8px 0 0;
  }
  .sheet-help .num {
    font-family: var(--bp-mono);
    color: var(--bp-espresso);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
  }
  .sheet-help .num em {
    font-style: normal;
    color: var(--bp-espresso-3);
  }

  
  .field {
    display: flex;
    flex-direction: column;
  }
  .field .lbl {
    font-family: var(--bp-mono);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--bp-espresso-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(61, 43, 26, 0.18);
    background: var(--bp-paper);
    border-radius: 12px;
    font-family: var(--bp-font);
    font-weight: 500;
    font-size: 17px;
    color: var(--bp-espresso);
    font-variant-numeric: tabular-nums;
    outline: none;
  }
  .input.is-focused {
    border-color: var(--bp-espresso);
    box-shadow: 0 0 0 3px rgba(61, 43, 26, 0.08);
  }

  .privacy {
    font-family: var(--bp-font);
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--bp-espresso-3);
    margin: 0;
  }
  .privacy a { color: var(--bp-espresso-2); text-decoration: underline; text-underline-offset: 2px; }

  
  .otp {
    display: flex;
    gap: 10px;
  }
  .otp .b {
    flex: 1;
    height: 64px;
    border: 1.5px solid rgba(61, 43, 26, 0.18);
    background: var(--bp-paper);
    border-radius: 14px;
    font-family: var(--bp-font);
    font-weight: 700;
    font-size: 26px;
    color: var(--bp-espresso);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
  }
  .otp .b.is-filled {
    border-color: var(--bp-espresso);
  }
  .otp .b.is-active {
    border-color: var(--bp-espresso);
    box-shadow: 0 0 0 3px rgba(61, 43, 26, 0.08);
    color: var(--bp-espresso-3);
    position: relative;
  }
  .otp .b.is-active::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 28px;
    background: var(--bp-espresso);
    animation: blink 1s steps(2) infinite;
  }
  .otp .b.is-empty { color: var(--bp-espresso-3); font-weight: 500; }
  @keyframes blink { 50% { opacity: 0; } }

  .resend {
    font-family: var(--bp-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--bp-espresso-2);
    text-align: center;
    font-variant-numeric: tabular-nums;
  }
  .resend b { color: var(--bp-espresso); font-weight: 500; }

  
  .stack-msg { display: flex; flex-direction: column; gap: 0; }


/* ============================================================
   Home (7 states + tracker + pass card)
   src: raw-css-Home_States_v3.css
   ============================================================ */

.scr {
    padding: 18px 24px 110px;
    display: flex; flex-direction: column;
    min-height: 760px;
    position: relative;
  }

  
  .hdr {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; gap: 16px;
  }
  .hdr.center { justify-content: center; }
  .hdr-meta {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 500;
    letter-spacing: 0.06em; color: var(--bp-fg-2); text-transform: uppercase;
    text-align: right; line-height: 1.4;
  }
  .hdr-meta .accent { color: var(--bp-pistachio-d); font-weight: 600; }

  
  .mark {
    display: inline-flex; align-items: center; line-height: 1; color: var(--bp-fg);
    font-weight: 800; letter-spacing: -0.04em; font-size: 32px;
  }
  .mark svg { display: block; fill: currentColor; flex-shrink: 0; }
  .mark .bk { height: 0.55em; width: auto; color: var(--bp-fg); }
  .mark .gap { width: 0.42em; display: inline-block; }
  .mark .core { position: relative; display: inline-block; color: var(--bp-fg); }
  .mark .steam {
    position: absolute; left: 56%; top: -0.78em; height: 0.82em; width: auto;
    color: var(--bp-pistachio); transform: translateX(-50%);
  }

  
  .pass {
    --card-bg: var(--bp-cream-3);
    --card-fg: var(--bp-espresso);
    --card-fg-2: var(--bp-espresso-2);
    --card-pill-bg: rgba(61,43,26,0.06);
    --card-pill-border: rgba(61,43,26,0.18);
    --card-perf: rgba(61,43,26,0.30);
    background: var(--card-bg);
    color: var(--card-fg);
    border-radius: 22px;
    padding: 22px 22px 20px;
    position: relative;
    overflow: hidden;
  }
  .pass.is-active {
    --card-bg: #0B1733;
    --card-fg: #ffffff;
    --card-fg-2: rgba(255,255,255,0.65);
    --card-pill-bg: transparent;
    --card-pill-border: rgba(255,255,255,1);
    --card-perf: rgba(255,255,255,0.25);
  }
  .pass.is-active .pass-status { border-width: 1.5px; }
  .pass.is-muted {
    --card-bg: #C8B79A;
    --card-fg: rgba(61,43,26,0.62);
    --card-fg-2: rgba(61,43,26,0.5);
    --card-pill-bg: rgba(61,43,26,0.08);
    --card-pill-border: rgba(61,43,26,0.22);
    --card-perf: rgba(61,43,26,0.26);
  }
  .pass-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px;
  }
  .pass-brand {
    font-weight: 800; font-size: 22px; letter-spacing: -0.025em;
    color: var(--card-fg); line-height: 1;
  }
  .pass-brand .b1 { font-weight: 800; }
  .pass-brand .b2 { font-weight: 800; }
  .pass-cap-top {
    font-family: var(--bp-font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--card-fg-2); margin-top: 6px;
  }

  .pass-status {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--card-pill-bg);
    border: 1px solid var(--card-pill-border);
    border-radius: 999px;
    padding: 6px 12px;
    font-family: var(--bp-font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--card-fg);
    flex-shrink: 0;
  }
  .pass-status .sd {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--bp-pistachio-l);
  }
  .pass.is-active .pass-status .sd { background: var(--bp-pistachio); }
  .pass.is-muted .pass-status { color: var(--bp-warn); border-color: rgba(201,123,18,0.42); background: rgba(201,123,18,0.10); }
  .pass.is-muted .pass-status .sd { background: var(--bp-warn); }
  .pass-status.is-outline { background: transparent; }
  .pass-status.is-dim { color: var(--bp-fg-3); border-color: var(--bp-fg-3); }
  .pass-status.is-dim .sd { display: none; }

  .pass-hero {
    margin-top: 28px;
    display: flex; flex-direction: column; gap: 4px;
  }
  .pass-num {
    font-weight: 800; font-size: 76px; line-height: 0.9;
    letter-spacing: -0.05em; color: var(--card-fg);
    font-variant-numeric: tabular-nums;
  }
  .pass-num.dim { color: var(--card-fg-2); font-weight: 700; }
  .pass-num.small { font-size: 64px; }
  .pass-cap-hero {
    font-family: var(--bp-font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--card-fg-2);
    margin-top: 6px;
  }

  
  .perf {
    position: relative;
    height: 1px;
    margin: 22px -22px 18px;
    background-image: linear-gradient(to right, var(--card-perf) 0, var(--card-perf) 6px, transparent 6px, transparent 12px);
    background-size: 12px 1px;
    background-repeat: repeat-x;
  }
  .perf::before, .perf::after {
    content: "";
    position: absolute;
    width: 22px; height: 22px;
    background: var(--bp-cream);
    border-radius: 50%;
    top: 50%; transform: translateY(-50%);
  }
  .perf::before { left: -11px; }
  .perf::after { right: -11px; }

  .pass-bottom {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  }
  .pass-bottom .col.r { text-align: right; }
  .pass-bottom .lab {
    font-family: var(--bp-font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--card-fg-2);
    margin-bottom: 4px;
  }
  .pass-bottom .val {
    font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
    color: var(--card-fg);
    font-variant-numeric: tabular-nums;
  }
  .pass-bottom .val.mono {
    font-family: var(--bp-font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  }

  
  .eyebrow {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--bp-fg-2);
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 12px;
  }

  
  .facts { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--bp-border); }
  .facts li {
    display: grid; grid-template-columns: 32px 1fr auto;
    align-items: baseline; gap: 12px;
    padding: 14px 0; border-bottom: 1px solid var(--bp-border);
  }
  .facts .n { font-family: var(--bp-font-mono); font-size: 11px; font-weight: 500; color: var(--bp-fg-3); letter-spacing: 0.06em; }
  .facts .l { font-size: 14px; color: var(--bp-fg); line-height: 1.4; }
  .facts .v { font-size: 14px; font-weight: 700; color: var(--bp-fg); text-align: right; font-variant-numeric: tabular-nums; }
  .facts .v.mono { font-family: var(--bp-font-mono); font-weight: 600; font-size: 13px; letter-spacing: 0.01em; }
  .facts .v.pist { color: var(--bp-pistachio-d); }

  
  .qo { margin-top: 24px; }
  .qo-head {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bp-border);
  }
  .qo-head .l, .qo-head .r {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
  }
  .qo-head .l { color: var(--bp-fg); }
  .qo-head .r { color: var(--bp-fg-3); }
  .qo-list { list-style: none; padding: 0; margin: 0; }
  .qo-list li {
    display: grid; grid-template-columns: 32px 1fr auto auto;
    align-items: center; gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bp-border);
  }
  .qo-list .n { font-family: var(--bp-font-mono); font-size: 11px; font-weight: 500; color: var(--bp-fg-3); letter-spacing: 0.06em; }
  .qo-list .nm { font-size: 14px; color: var(--bp-fg); line-height: 1.35; font-weight: 500; }
  .qo-list .pr { font-family: var(--bp-font-mono); font-size: 13px; font-weight: 600; color: var(--bp-fg); letter-spacing: 0.01em; }
  .qo-add {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bp-espresso); color: var(--bp-paper);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 400;
    transition: transform 150ms var(--bp-ease-out);
  }
  .qo-add:active { transform: scale(0.92); }

  
  .tracker {
    background: var(--bp-paper);
    border: 1px solid var(--bp-border);
    border-radius: 22px;
    padding: 22px 22px 24px;
    text-align: center;
  }
  .tracker .t-cap {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--bp-fg-3);
    margin-bottom: 8px;
  }
  .tracker .t-status {
    font-weight: 800; font-size: 32px; letter-spacing: -0.025em;
    color: var(--bp-fg); line-height: 1.05; margin-bottom: 24px;
  }
  .stepper {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
  }
  
  .ctrack {
    margin: 4px 0 18px;
  }
  .ctrack-row {
    display: grid;
    grid-template-columns: 56px 1fr 56px 1fr 56px 1fr 56px;
    align-items: center;
    gap: 0;
  }
  .ctrack-ill {
    width: 56px; height: 56px;
    color: var(--bp-espresso);
    display: block;
  }
  .ctrack-ill.future { opacity: 0.35; }
  .ctrack-conn { height: 2px; }
  .ctrack-conn.done { background: var(--bp-pistachio); }
  .ctrack-conn.dash-strong {
    background-image: linear-gradient(to right, rgba(61,43,26,0.30) 0, rgba(61,43,26,0.30) 5px, transparent 5px, transparent 10px);
    background-size: 10px 2px;
    background-repeat: repeat-x;
  }
  .ctrack-conn.dash-weak {
    background-image: linear-gradient(to right, rgba(61,43,26,0.20) 0, rgba(61,43,26,0.20) 5px, transparent 5px, transparent 10px);
    background-size: 10px 2px;
    background-repeat: repeat-x;
  }
  .ctrack-labels {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    margin-top: 14px;
  }
  .ctrack-labels span {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    text-align: center;
  }
  .ctrack-labels .ok  { color: var(--bp-pistachio); }
  .ctrack-labels .cur { color: var(--bp-espresso); font-weight: 700; }
  .ctrack-labels .fut { color: rgba(61,43,26,0.35); }

  
  @keyframes brewLevel {
    0%   { transform: scaleY(0.30); }
    100% { transform: scaleY(0.85); }
  }
  .ctrack-level {
    transform-origin: center bottom;
    animation: brewLevel 2.5s ease-in-out infinite alternate;
  }
  
  @keyframes steamWaft {
    0%   { transform: translateY(0); opacity: 0.5; }
    100% { transform: translateY(-3px); opacity: 1; }
  }
  .ctrack-steam-a, .ctrack-steam-b {
    transform-origin: center;
    animation: steamWaft 3s ease-in-out infinite alternate;
  }
  .ctrack-steam-b { animation-delay: 0.4s; }

  @media (max-width: 380px) {
    .ctrack-row { grid-template-columns: 48px 1fr 48px 1fr 48px 1fr 48px; }
    .ctrack-ill { width: 48px; height: 48px; }
  }
  .tracker .eta {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--bp-fg-3);
    padding-top: 14px; border-top: 1px solid var(--bp-border);
  }
  .order-items { margin-top: 18px; padding: 0; list-style: none; }
  .order-items li {
    display: grid; grid-template-columns: 32px 1fr auto;
    align-items: baseline; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bp-border);
  }
  .order-items .n { font-family: var(--bp-font-mono); font-size: 11px; font-weight: 500; color: var(--bp-fg-3); letter-spacing: 0.06em; }
  .order-items .nm { font-size: 14px; color: var(--bp-fg); }
  .order-items .pr { font-family: var(--bp-font-mono); font-size: 13px; font-weight: 600; color: var(--bp-fg); letter-spacing: 0.01em; }
  .order-total {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-top: 14px;
  }
  .order-total .l { font-size: 14px; color: var(--bp-fg-2); font-weight: 500; }
  .order-total .v { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--bp-fg); font-variant-numeric: tabular-nums; }

  
  .ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
  .btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 18px 22px; border-radius: 999px;
    font-weight: 600; font-size: 16px; border: none; cursor: pointer;
    width: 100%;
    transition: transform var(--bp-dur-press) var(--bp-ease-out), background var(--bp-dur-press) var(--bp-ease-out);
    letter-spacing: -0.005em; line-height: 1.2; text-decoration: none;
    font-family: inherit;
  }
  .btn:active { transform: scale(0.97); }
  .btn .arr { font-weight: 500; transform: translateY(-1px); }
  .btn-primary { background: var(--bp-espresso); color: var(--bp-paper); }
  .btn-secondary { background: transparent; color: var(--bp-espresso); border: 1px solid var(--bp-espresso); }

  .tertiary {
    text-align: center; margin-top: 16px;
    font-size: 14px; font-weight: 400; color: var(--bp-fg-2);
    letter-spacing: -0.005em;
  }
  .tertiary u { color: var(--bp-fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 500; }
  .tertiary.danger { color: var(--bp-warn); }
  .tertiary.danger u { color: var(--bp-warn); }

  .tert-row {
    margin-top: 16px;
    display: flex; justify-content: center; align-items: center; gap: 24px;
    font-size: 14px;
  }
  .tert-row a {
    color: var(--bp-fg-2); text-decoration: none;
  }
  .tert-row a u {
    color: var(--bp-fg); text-decoration: underline; text-underline-offset: 3px;
    text-decoration-thickness: 1px; font-weight: 500;
  }

  
  .bnav {
    position: absolute;
    left: 16px; right: 16px; bottom: 16px;
    height: 64px;
    background: var(--bp-espresso);
    border-radius: 999px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    align-items: center;
    padding: 0 8px;
    z-index: 5;
    box-shadow: 0 8px 24px rgba(61,43,26,0.25);
  }
  .bnav button {
    background: transparent; border: none; cursor: pointer;
    color: rgba(255,255,255,0.78);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 4px;
    font-family: var(--bp-font-mono); font-size: 9.5px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    line-height: 1; position: relative;
  }
  .bnav button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .bnav button.active { color: var(--bp-pistachio-l); }
  .bnav button.active::after {
    content: "";
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--bp-pistachio-l);
    position: absolute; bottom: -2px;
  }
  .bnav button .lbl { display: block; }


/* ============================================================
   Menu + Drink Detail + Cart
   src: raw-css-Menu_Order.css
   ============================================================ */

.mark {
    display: inline-flex; align-items: center; line-height: 1; color: var(--bp-fg);
    font-weight: 800; letter-spacing: -0.04em; font-size: 24px;
  }
  .mark svg { display: block; fill: currentColor; flex-shrink: 0; }
  .mark .bk { height: 0.55em; width: auto; }
  .mark .gap { width: 0.42em; display: inline-block; }
  .mark .core { position: relative; display: inline-block; }
  .mark .steam {
    position: absolute; left: 56%; top: -0.78em; height: 0.82em; width: auto;
    color: var(--bp-pistachio); transform: translateX(-50%);
  }

  
  .ibtn {
    width: 40px; height: 40px; border-radius: 999px;
    background: var(--bp-paper); border: 1px solid var(--bp-border);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--bp-fg); cursor: pointer; position: relative;
    transition: transform var(--bp-dur-press) var(--bp-ease-out);
  }
  .ibtn:active { transform: scale(0.92); }
  .ibtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .ibtn .badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--bp-pistachio); color: #fff;
    font-family: var(--bp-font); font-size: 10px; font-weight: 700;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bp-cream);
  }

  
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 18px 22px; border-radius: 999px;
    font-family: inherit; font-weight: 600; font-size: 16px; border: none; cursor: pointer;
    width: 100%; line-height: 1.2; letter-spacing: -0.005em;
    transition: transform var(--bp-dur-press) var(--bp-ease-out);
  }
  .btn:active { transform: scale(0.97); }
  .btn-primary { background: var(--bp-espresso); color: var(--bp-paper); }
  .btn-secondary { background: transparent; color: var(--bp-espresso); border: 1px solid var(--bp-espresso); }
  .btn .arr { font-weight: 500; transform: translateY(-1px); }

  
  .bnav {
    position: absolute; left: 16px; right: 16px; bottom: 16px; height: 64px;
    background: var(--bp-espresso); border-radius: 999px;
    display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
    padding: 0 8px; z-index: 50;
    box-shadow: 0 8px 24px rgba(61,43,26,0.25);
  }
  .bnav button {
    background: transparent; border: none; cursor: pointer;
    color: rgba(255,255,255,0.78);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 4px;
    font-family: var(--bp-font-mono); font-size: 9.5px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; position: relative;
  }
  .bnav button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .bnav button.active { color: var(--bp-pistachio-l); }
  .bnav button.active::after {
    content: ""; width: 4px; height: 4px; border-radius: 50%;
    background: var(--bp-pistachio-l); position: absolute; bottom: -2px;
  }

  
  .menu-scr {
    display: flex; flex-direction: column;
    min-height: 820px;
    padding-bottom: 120px;
  }

  
  .menu-header {
    position: sticky; top: 0; z-index: 10;
    padding: 8px 24px 14px;
    background: rgba(242, 234, 216, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(217, 206, 186, 0.6);
  }
  .menu-topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
  }
  .menu-actions { display: flex; gap: 10px; }

  
  .tabs-l1 {
    display: flex; gap: 4px;
    background: var(--bp-cream-2);
    border-radius: 999px;
    padding: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs-l1::-webkit-scrollbar { display: none; }
  .tab-l1 {
    flex-shrink: 0; flex: 1;
    background: transparent; border: none;
    font-family: var(--bp-font); font-size: 15px; font-weight: 600;
    letter-spacing: -0.01em; color: var(--bp-espresso);
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer; user-select: none;
    opacity: 0.55; line-height: 1.2;
    white-space: nowrap;
    transition: background .15s, color .15s, opacity .15s;
  }
  .tab-l1.active {
    opacity: 1;
    background: var(--bp-espresso);
    color: var(--bp-paper);
    font-weight: 700;
  }

  
  .section-head {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--bp-fg-3);
    padding: 22px 24px 14px;
  }
  .section-head .accent { color: var(--bp-pistachio-d); }

  
  .grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 24px;
  }
  .card {
    background: transparent;
    text-decoration: none; color: inherit;
    cursor: pointer; user-select: none;
    transition: transform var(--bp-dur-press) var(--bp-ease-out), filter var(--bp-dur-press) var(--bp-ease-out);
    display: flex; flex-direction: column;
  }
  .card:active { transform: scale(0.98); filter: brightness(0.97); }

  .card-photo {
    aspect-ratio: 5 / 6;
    border-radius: 16px;
    background-color: var(--bp-cream-2);
    background-size: 140% auto;
    background-position: 50% 0%;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
  }
  .card-photo.fallback {
    background-image: none !important;
    background-color: var(--bp-cream-3);
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 16px;
  }
  .card-photo.fallback span {
    font-family: var(--bp-font); font-weight: 800;
    font-size: 20px; line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--bp-espresso);
    text-wrap: balance;
  }
  .card-photo.fallback span small {
    display: block; margin-top: 8px;
    font-family: var(--bp-font-mono); font-weight: 600; font-size: 10px;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--bp-espresso-2);
  }

  .card-body { padding: 10px 4px 0; display: flex; flex-direction: column; gap: 4px; }
  .card-name { font-family: var(--bp-font); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; line-height: 1.15; color: var(--bp-fg); }
  .card-meta { font-family: var(--bp-font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.02em; color: var(--bp-fg-2); }
  .card-prices { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
  .price-cost { font-family: var(--bp-font); font-weight: 700; font-size: 17px; color: var(--bp-pistachio-d); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .price-retail { font-family: var(--bp-font); font-weight: 500; font-size: 13px; color: var(--bp-fg-3); text-decoration: line-through; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .price-sub-cap { font-family: var(--bp-font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bp-pistachio); }

  
  .detail-scr {
    display: flex; flex-direction: column;
    min-height: 844px;
    position: relative;
    padding: 0;
  }
  .detail-photo {
    height: 422px;
    background-color: #B89A78;
    background-size: 140% auto;
    background-position: 50% 0%;
    background-repeat: no-repeat;
    position: relative;
  }
  .detail-photo::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
    background: linear-gradient(to bottom, rgba(217,206,186,0) 0%, var(--bp-cream) 100%);
    pointer-events: none;
  }
  .detail-photo .float-top {
    position: absolute; top: 16px; left: 16px; right: 16px;
    display: flex; justify-content: space-between; align-items: flex-start;
    z-index: 5;
  }
  .pill-glass {
    background: rgba(255,253,248,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 10px 14px;
    font-family: var(--bp-font-mono); font-size: 10.5px; font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--bp-fg);
    line-height: 1.2;
  }
  .ibtn-glass {
    background: rgba(255,253,248,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
  }
  .detail-overlay {
    position: absolute; left: 24px; right: 24px; bottom: 32px;
    z-index: 4;
  }
  .detail-cat {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--bp-fg-2);
    margin-bottom: 6px;
  }
  .detail-name {
    font-family: var(--bp-font); font-weight: 800; font-size: 38px;
    letter-spacing: -0.03em; line-height: 1.0;
    color: var(--bp-fg);
    margin: 0;
  }

  .detail-body {
    background: var(--bp-cream);
    border-radius: 24px 24px 0 0;
    margin-top: -24px;
    padding: 24px 24px 220px;
    position: relative;
    flex: 1;
  }

  .sec-h {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--bp-fg-3);
    margin: 0 0 12px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .sec { margin-bottom: 24px; }
  .sec.collapsed .sec-h { cursor: pointer; }

  
  .size-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .size-pill {
    border-radius: 14px;
    padding: 14px 8px;
    background: var(--bp-cream-3);
    color: var(--bp-fg);
    border: none; cursor: pointer;
    text-align: center;
    display: flex; flex-direction: column; gap: 4px;
    font-family: var(--bp-font);
    transition: transform var(--bp-dur-press) var(--bp-ease-out);
  }
  .size-pill:active { transform: scale(0.97); }
  .size-pill.selected { background: var(--bp-espresso); color: #fff; }
  .size-pill .lbl { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
  .size-pill .vol { font-family: var(--bp-font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; opacity: 0.8; }
  .size-pill .delta { font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600; margin-top: 2px; }
  .size-pill.selected .delta { color: rgba(255,255,255,0.7); }
  .size-pill .delta.neutral { color: var(--bp-fg-3); }

  
  .hscroll {
    display: flex; gap: 8px;
    overflow-x: auto;
    margin: 0 -24px;
    padding: 0 24px 6px;
    scrollbar-width: none;
  }
  .hscroll::-webkit-scrollbar { display: none; }
  .opt-pill {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 12px 16px;
    background: var(--bp-cream-3); color: var(--bp-fg);
    border: none; cursor: pointer;
    font-family: var(--bp-font); font-size: 14px; font-weight: 600;
    letter-spacing: -0.005em; line-height: 1.2;
    display: inline-flex; align-items: center; gap: 8px;
    transition: transform var(--bp-dur-press) var(--bp-ease-out);
  }
  .opt-pill:active { transform: scale(0.97); }
  .opt-pill.selected { background: var(--bp-espresso); color: #fff; }
  .opt-pill .delta { font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600; opacity: 0.7; }
  .opt-pill.selected .delta { opacity: 0.7; }
  .opt-pill .check {
    width: 14px; height: 14px; flex-shrink: 0;
    stroke: currentColor; fill: none; stroke-width: 2.5;
  }

  
  .acc-toggle {
    width: 24px; height: 24px;
    transition: transform 200ms var(--bp-ease-out);
    color: var(--bp-fg-3);
  }
  .acc-toggle svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .sec.open .acc-toggle { transform: rotate(90deg); }
  .acc-body { display: none; }
  .sec.open .acc-body { display: block; }

  .addon-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--bp-border); }
  .addon-list li {
    display: grid; grid-template-columns: 28px 1fr auto auto;
    gap: 10px; align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--bp-border);
  }
  .addon-list .n { font-family: var(--bp-font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; color: var(--bp-fg-3); }
  .addon-list .nm { font-family: var(--bp-font); font-size: 14px; font-weight: 500; color: var(--bp-fg); }
  .addon-list .pr { font-family: var(--bp-font-mono); font-size: 12px; font-weight: 600; color: var(--bp-fg-2); }
  .addon-list li.disabled { opacity: 0.5; }
  .badge-out {
    font-family: var(--bp-font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--bp-warn);
    background: rgba(201,123,18,0.12);
    padding: 3px 7px; border-radius: 999px;
    margin-right: 6px;
  }
  .checkbox {
    width: 22px; height: 22px;
    border: 1.5px solid var(--bp-border);
    border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: var(--bp-paper);
  }
  .checkbox.on { background: var(--bp-espresso); border-color: var(--bp-espresso); }
  .checkbox svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

  
  .stick-detail {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: rgba(242,234,216,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--bp-border);
    padding: 16px 20px 20px;
    display: flex; flex-direction: column; gap: 8px;
    z-index: 9;
  }
  .stick-detail .summary {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--bp-fg-2);
  }
  .stick-detail .summary .save { color: var(--bp-pistachio-d); }

  
  .cart-scr {
    display: flex; flex-direction: column;
    min-height: 844px;
    padding-bottom: 130px;
  }
  .cart-header {
    display: grid; grid-template-columns: 40px 1fr 70px;
    align-items: center;
    padding: 8px 16px 18px;
    gap: 8px;
  }
  .cart-header .title {
    text-align: center;
    font-family: var(--bp-font); font-weight: 800; font-size: 22px;
    letter-spacing: -0.02em; color: var(--bp-fg);
  }
  .clear-link {
    text-align: right;
    font-family: var(--bp-font); font-size: 13px; font-weight: 500;
    color: var(--bp-fg-2); text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer; user-select: none;
  }

  .cart-list { padding: 0 24px; display: flex; flex-direction: column; gap: 14px; }
  .cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    align-items: center;
  }
  .cart-thumb {
    width: 64px; height: 64px;
    border-radius: 12px;
    background-color: var(--bp-cream-2);
    background-size: 130% auto;
    background-position: 50% 6%;
    background-repeat: no-repeat;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
  }
  .cart-thumb.fallback {
    background-image: none !important;
    background-color: var(--bp-cream-3);
    display: flex; align-items: center; justify-content: center;
    color: var(--bp-fg);
    font-family: var(--bp-font); font-weight: 800;
    font-size: 22px; letter-spacing: -0.02em;
  }
  .cart-mid { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .cart-mid .nm { font-family: var(--bp-font); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--bp-fg); line-height: 1.2; }
  .cart-mid .opts { font-family: var(--bp-font-mono); font-size: 11px; color: var(--bp-fg-2); letter-spacing: 0.02em; line-height: 1.4; }
  .cart-mid .pr { display: flex; gap: 6px; align-items: baseline; margin-top: 4px; }
  .cart-mid .pr .c { font-family: var(--bp-font-mono); font-weight: 700; font-size: 13px; color: var(--bp-pistachio-d); }
  .cart-mid .pr .r { font-family: var(--bp-font-mono); font-size: 11px; color: var(--bp-fg-3); text-decoration: line-through; }

  .qty {
    display: flex; align-items: center;
    background: var(--bp-cream-3);
    border-radius: 999px;
    padding: 4px;
    height: 36px;
  }
  .qty button {
    width: 28px; height: 28px; border: none;
    background: transparent; cursor: pointer;
    color: var(--bp-fg);
    font-family: var(--bp-font); font-size: 18px; font-weight: 500;
    display: flex; align-items: center; justify-content: center;
    border-radius: 999px;
    transition: background var(--bp-dur-press) var(--bp-ease-out);
  }
  .qty button.plus { background: var(--bp-espresso); color: #fff; }
  .qty button.minus:hover { background: rgba(0,0,0,0.05); }
  .qty .v { min-width: 22px; text-align: center; font-family: var(--bp-font); font-weight: 700; font-size: 14px; color: var(--bp-fg); font-variant-numeric: tabular-nums; }

  .summary-card {
    margin: 18px 24px 0;
    background: var(--bp-cream-3);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex; flex-direction: column; gap: 10px;
  }
  .sum-row {
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--bp-font-mono); font-size: 13px;
    letter-spacing: 0.02em; color: var(--bp-fg);
  }
  .sum-row.discount { color: var(--bp-pistachio-d); font-weight: 600; }
  .sum-divider { height: 1px; background: rgba(61,43,26,0.18); margin: 4px 0; }
  .sum-total {
    display: flex; justify-content: space-between; align-items: baseline;
  }
  .sum-total .l { font-family: var(--bp-font); font-weight: 700; font-size: 18px; color: var(--bp-fg); letter-spacing: -0.01em; }
  .sum-total .v { font-family: var(--bp-font); font-weight: 800; font-size: 28px; color: var(--bp-fg); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }

  .stick-cta {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: rgba(242,234,216,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--bp-border);
    padding: 16px 20px 22px;
  }

  
  .ck-scr {
    display: flex; flex-direction: column;
    min-height: 844px;
    padding-bottom: 220px;
  }
  .ck-header {
    display: grid; grid-template-columns: 40px 1fr 40px;
    align-items: center; gap: 8px;
    padding: 8px 16px 12px;
  }
  .ck-step {
    text-align: center;
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--bp-fg-2);
  }
  .ck-step .accent { color: var(--bp-pistachio-d); }
  .ck-title {
    padding: 0 24px 8px;
    font-family: var(--bp-font); font-weight: 800; font-size: 28px;
    letter-spacing: -0.025em; color: var(--bp-fg);
    line-height: 1.05;
  }
  .ck-sec {
    padding: 22px 24px 4px;
  }
  .ck-sec-h {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--bp-fg-3);
    margin: 0 0 12px;
  }

  .ro-list { list-style: none; padding: 0; margin: 0; }
  .ro-list li {
    display: grid; grid-template-columns: 28px 1fr auto;
    gap: 10px; align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--bp-border);
  }
  .ro-list li:first-child { padding-top: 6px; }
  .ro-list li:last-child { border-bottom: none; }
  .ro-list .n { font-family: var(--bp-font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; color: var(--bp-fg-3); }
  .ro-list .info { display: flex; flex-direction: column; gap: 2px; }
  .ro-list .nm { font-family: var(--bp-font); font-weight: 600; font-size: 14px; color: var(--bp-fg); }
  .ro-list .opts { font-family: var(--bp-font-mono); font-size: 11px; color: var(--bp-fg-2); letter-spacing: 0.02em; }
  .ro-list .qty-pr { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
  .ro-list .q { font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600; color: var(--bp-fg-3); }
  .ro-list .pr { font-family: var(--bp-font-mono); font-size: 13px; font-weight: 700; color: var(--bp-fg); }

  
  .chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .chip {
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--bp-cream-3);
    color: var(--bp-fg);
    border: none; cursor: pointer;
    font-family: var(--bp-font); font-size: 14px; font-weight: 600;
    letter-spacing: -0.005em; line-height: 1.2;
  }
  .chip.selected { background: var(--bp-espresso); color: #fff; }

  
  .pay-card {
    background: var(--bp-cream-3);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
  }
  .pay-icon {
    width: 36px; height: 24px;
    background: var(--bp-paper);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--bp-font-mono); font-size: 8px; font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--bp-espresso);
    flex-shrink: 0;
  }
  .pay-num { font-family: var(--bp-font-mono); font-weight: 600; font-size: 14px; color: var(--bp-fg); flex: 1; }
  .pay-edit { font-family: var(--bp-font); font-size: 13px; font-weight: 500; color: var(--bp-fg-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

  .pay-alts { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 0 4px; }
  .pay-alts a {
    font-family: var(--bp-font); font-size: 13px; font-weight: 500;
    color: var(--bp-fg-2); text-decoration: none;
    padding: 6px 0;
    display: flex; align-items: center; gap: 8px;
  }
  .pay-alts a u { color: var(--bp-fg); text-decoration: underline; text-underline-offset: 3px; }
  .pay-alts a .plus { color: var(--bp-fg-3); font-weight: 400; }

  
  .bonus-row {
    background: var(--bp-pistachio-xxl);
    border: 1px solid var(--bp-pistachio-xl);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
  }
  .bonus-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
  .bonus-info .lbl { font-family: var(--bp-font); font-weight: 600; font-size: 14px; color: var(--bp-fg); }
  .bonus-info .cap { font-family: var(--bp-font-mono); font-size: 11px; color: var(--bp-fg-2); letter-spacing: 0.02em; }
  .bonus-row .v { font-family: var(--bp-font-mono); font-size: 14px; font-weight: 700; color: var(--bp-pistachio-d); }

  
  .stick-total {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: rgba(242,234,216,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--bp-border);
    padding: 16px 20px 20px;
    display: flex; flex-direction: column; gap: 8px;
  }
  .stick-total .total-row {
    display: flex; justify-content: space-between; align-items: baseline;
  }
  .stick-total .l { font-family: var(--bp-font); font-weight: 700; font-size: 22px; color: var(--bp-fg); letter-spacing: -0.02em; }
  .stick-total .v { font-family: var(--bp-font); font-weight: 800; font-size: 30px; color: var(--bp-fg); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
  .stick-total .legal {
    font-family: var(--bp-font-mono); font-size: 10px; font-weight: 500;
    letter-spacing: 0.04em; color: var(--bp-fg-3);
    text-align: center;
    margin-top: 2px;
  }


/* ============================================================
   Profile
   src: raw-css-Profile.css
   ============================================================ */

.mark {
    display: inline-flex; align-items: center; line-height: 1; color: var(--bp-fg);
    font-weight: 800; letter-spacing: -0.04em; font-size: 22px;
  }
  .mark svg { display: block; fill: currentColor; flex-shrink: 0; }
  .mark .bk { height: 0.55em; width: auto; }
  .mark .gap { width: 0.42em; display: inline-block; }
  .mark .core { position: relative; display: inline-block; }
  .mark .steam {
    position: absolute; left: 56%; top: -0.78em; height: 0.82em; width: auto;
    color: var(--bp-pistachio); transform: translateX(-50%);
  }

  
  .ibtn {
    width: 40px; height: 40px; border-radius: 999px;
    background: var(--bp-paper); border: 1px solid var(--bp-border);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--bp-fg); cursor: pointer; position: relative;
    transition: transform var(--bp-dur-press) var(--bp-ease-out);
  }
  .ibtn:active { transform: scale(0.92); }
  .ibtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

  
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 22px; border-radius: 999px;
    font-family: inherit; font-weight: 600; font-size: 15px; border: none; cursor: pointer;
    width: 100%; line-height: 1.2; letter-spacing: -0.005em;
    transition: transform var(--bp-dur-press) var(--bp-ease-out);
  }
  .btn:active { transform: scale(0.97); }
  .btn-primary { background: var(--bp-espresso); color: var(--bp-paper); }
  .btn-outline { background: transparent; color: var(--bp-espresso); border: 1px solid var(--bp-espresso); }
  .btn .arr { font-weight: 500; transform: translateY(-1px); }

  
  .bnav {
    position: absolute; left: 16px; right: 16px; bottom: 16px; height: 64px;
    background: var(--bp-espresso); border-radius: 999px;
    display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
    padding: 0 8px; z-index: 50;
    box-shadow: 0 8px 24px rgba(61,43,26,0.25);
  }
  .bnav button {
    background: transparent; border: none; cursor: pointer;
    color: rgba(255,255,255,0.78);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 4px;
    font-family: var(--bp-font-mono); font-size: 9.5px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; position: relative;
  }
  .bnav button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .bnav button.active { color: var(--bp-pistachio-l); }
  .bnav button.active::after {
    content: ""; width: 4px; height: 4px; border-radius: 50%;
    background: var(--bp-pistachio-l); position: absolute; bottom: -2px;
  }

  
  .prof-scr {
    display: flex; flex-direction: column;
    min-height: 920px;
    padding-bottom: 120px;
  }

  
  .prof-header {
    position: sticky; top: 0; z-index: 10;
    padding: 8px 24px 14px;
    background: rgba(242, 234, 216, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
  }

  
  .sec { padding: 0 24px; }
  .sec + .sec { margin-top: 28px; }
  .sec-h {
    font-family: var(--bp-font-mono); font-size: 10.5px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--bp-espresso-3); margin: 0 0 14px;
  }

  
  .identity {
    display: flex; align-items: center; gap: 18px;
    padding: 18px 24px 24px;
  }
  .avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--bp-espresso); color: var(--bp-cream);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--bp-font-mono); font-size: 32px; font-weight: 700;
    letter-spacing: -0.02em; text-transform: uppercase;
    box-shadow: 0 0 0 2px var(--bp-cream-3);
    cursor: pointer; flex-shrink: 0;
    transition: transform var(--bp-dur-press) var(--bp-ease-out);
  }
  .avatar:active { transform: scale(0.96); }
  .ident-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .ident-name {
    font-family: var(--bp-font); font-weight: 700; font-size: 24px;
    color: var(--bp-espresso); letter-spacing: -0.02em; line-height: 1;
  }
  .ident-phone {
    font-family: var(--bp-font-mono); font-size: 13px; font-weight: 500;
    color: var(--bp-espresso-3); letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
  }
  .ident-since {
    font-family: var(--bp-font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--bp-espresso-3);
  }

  
  .pass-wrap { padding: 8px 24px 0; }
  .pass {
    --card-bg: #0B1733;
    --card-fg: #ffffff;
    --card-fg-2: rgba(255,255,255,0.65);
    --card-pill-bg: transparent;
    --card-pill-border: rgba(255,255,255,1);
    --card-perf: rgba(255,255,255,0.25);
    background: var(--card-bg);
    color: var(--card-fg);
    border-radius: 22px;
    padding: 22px 22px 20px;
    position: relative;
    overflow: hidden;
  }
  .pass-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
  .pass-brand {
    font-weight: 800; font-size: 22px; letter-spacing: -0.025em;
    color: var(--card-fg); line-height: 1;
  }
  .pass-cap-top {
    font-family: var(--bp-font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--card-fg-2); margin-top: 6px;
  }
  .pass-status {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--card-pill-bg);
    border: 1.5px solid var(--card-pill-border);
    padding: 7px 12px; border-radius: 999px;
    font-family: var(--bp-font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--card-fg); flex-shrink: 0;
  }
  .pass-status .sd { width: 7px; height: 7px; border-radius: 50%; background: var(--bp-pistachio); }
  .pass-hero { margin-top: 28px; display: flex; flex-direction: column; gap: 4px; }
  .pass-num {
    font-weight: 800; font-size: 76px; line-height: 0.9;
    letter-spacing: -0.05em; color: var(--card-fg);
    font-variant-numeric: tabular-nums;
  }
  .pass-cap-hero {
    font-family: var(--bp-font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--card-fg-2); margin-top: 6px;
  }
  .perf {
    position: relative; height: 1px;
    margin: 22px -22px 18px;
    background-image: linear-gradient(to right, var(--card-perf) 0, var(--card-perf) 6px, transparent 6px, transparent 12px);
    background-size: 12px 1px; background-repeat: repeat-x;
  }
  .perf::before, .perf::after {
    content: ""; position: absolute;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--bp-cream);
    top: 50%; transform: translateY(-50%);
  }
  .perf::before { left: -11px; }
  .perf::after { right: -11px; }
  .pass-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .pass-bottom .col.r { text-align: right; }
  .pass-bottom .lab {
    font-family: var(--bp-font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--card-fg-2); margin-bottom: 4px;
  }
  .pass-bottom .val {
    font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
    color: var(--card-fg);
    font-variant-numeric: tabular-nums;
  }
  .pass-bottom .val.mono {
    font-family: var(--bp-font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  }

  
  .metrics {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    padding: 22px 24px;
    margin-top: 28px;
    border-top: 1px solid rgba(61,43,26,0.12);
    border-bottom: 1px solid rgba(61,43,26,0.12);
    position: relative;
  }
  .metrics > div { padding: 0 4px; text-align: center; position: relative; }
  .metrics > div + div::before {
    content: ""; position: absolute;
    left: 0; top: 8px; bottom: 8px; width: 1px;
    background: rgba(61,43,26,0.12);
  }
  .metric-val {
    font-family: var(--bp-font); font-weight: 800; font-size: 26px;
    letter-spacing: -0.025em; line-height: 1;
    color: var(--bp-espresso);
    font-variant-numeric: tabular-nums;
  }
  .metric-val.save { color: var(--bp-pistachio-d); }
  .metric-lab {
    font-family: var(--bp-font-mono); font-size: 9.5px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--bp-espresso-3); margin-top: 8px;
  }

  
  .nlist { display: flex; flex-direction: column; }
  .nlist .row {
    display: grid; grid-template-columns: 28px 1fr auto;
    align-items: center; gap: 14px;
    padding: 14px 0;
    border-top: 1px solid rgba(61,43,26,0.10);
    cursor: pointer;
    transition: opacity var(--bp-dur-press) var(--bp-ease-out);
  }
  .nlist .row:active { opacity: 0.5; }
  .nlist .row:first-child { border-top: none; padding-top: 4px; }
  .nlist .row:last-child { padding-bottom: 4px; }
  .nlist .n {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.06em; color: var(--bp-espresso-3);
    font-variant-numeric: tabular-nums;
  }
  .nlist .body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .nlist .ttl {
    font-family: var(--bp-font); font-weight: 600; font-size: 15px;
    color: var(--bp-espresso); letter-spacing: -0.01em; line-height: 1.2;
  }
  .nlist .sub {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 500;
    color: var(--bp-espresso-2); letter-spacing: 0.01em; line-height: 1.3;
  }
  .nlist .chev { color: var(--bp-espresso-3); display: inline-flex; }
  .nlist .chev svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

  
  .sub-block {
    padding: 4px 0 6px;
  }
  .sub-tier {
    font-family: var(--bp-font); font-weight: 700; font-size: 24px;
    color: var(--bp-espresso); letter-spacing: -0.02em; line-height: 1;
  }
  .sub-plan {
    font-family: var(--bp-font-mono); font-size: 12px; font-weight: 600;
    color: var(--bp-espresso-2); letter-spacing: 0.02em; margin-top: 8px;
    font-variant-numeric: tabular-nums;
  }
  .sub-until {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 500;
    color: var(--bp-espresso-3); letter-spacing: 0.02em; margin-top: 4px;
  }
  .sub-divider {
    height: 1px; background: rgba(61,43,26,0.12);
    margin: 16px 0 14px;
  }
  .sub-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

  
  .links { margin-top: 12px; }
  .link-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0;
    border-top: 1px solid rgba(61,43,26,0.10);
    cursor: pointer;
    font-family: var(--bp-font); font-weight: 500; font-size: 15px;
    color: var(--bp-espresso); letter-spacing: -0.005em;
  }
  .link-row:last-child { border-bottom: 1px solid rgba(61,43,26,0.10); }
  .link-row .chev { color: var(--bp-espresso-3); display: inline-flex; }
  .link-row .chev svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

  
  .prof-footer {
    margin-top: 36px;
    padding: 0 24px;
    text-align: center;
    display: flex; flex-direction: column; gap: 2px;
  }
  .prof-footer span {
    font-family: var(--bp-font-mono); font-size: 10px; font-weight: 500;
    letter-spacing: 0.08em; color: rgba(61,43,26,0.42);
    text-transform: lowercase;
  }
  .prof-footer span.upper { text-transform: uppercase; letter-spacing: 0.12em; }


/* =============================================================
   PRODUCTION VIEWPORT PATCHES
   These override geometry inherited from the 390×844 preview canvas.
   Loaded after the original rules so they win on specificity tie.
   ============================================================= */

/* Screen wrappers fill the real viewport, not a fake phone */
.scr-welcome,
.scr,
.menu-scr,
.detail-scr,
.cart-scr,
.prof-scr {
    min-height: 100dvh;
    height: auto;
    max-width: 720px;
    margin: 0 auto;
}

/* Onboarding welcome: respect device safe-area on top */
.scr-welcome {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100dvh;          /* fallback */
    min-height: 100dvh;         /* iOS Safari / Yandex respects toolbar */
    padding-top: max(20px, env(safe-area-inset-top, 20px));
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
}
.scr-welcome .top     { flex: 0 0 auto; }
.scr-welcome .message { flex: 0 0 auto; margin-top: 28px; }
.scr-welcome .actions {
    flex: 0 0 auto;
    margin-top: auto;          /* push to bottom of available space */
    padding-top: 32px;         /* breathing room above buttons */
}

/* Bottom nav: float over viewport */
.bnav {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    max-width: 688px;
    margin: 0 auto;
    z-index: 50;
}

/* Bottom-sheet modal: full viewport overlay */
.scr-modal {
    position: fixed;
    inset: 0;
    height: 100vh;
    background: rgba(21, 17, 12, 0.55);
    z-index: 100;
    overflow: hidden;
}
.scr-modal .behind {
    /* The behind-preview is rendered by the underlying screen itself in production,
       so we hide the placeholder. */
    display: none;
}
.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: max(36px, env(safe-area-inset-bottom, 36px));
    z-index: 101;
}

/* Sticky headers: use safe-area top */
.menu-header,
.prof-header {
    top: env(safe-area-inset-top, 0);
}

/* Order tracker SVG illustrations need their color from currentColor.
   Set fg on container so SVGs inherit it. */
.tracker { color: var(--bp-espresso); }
.tracker .future { color: var(--bp-espresso-3); }

/* === v2.1 additions === */
.bnav button .badge,
[data-cart-badge] {
    position: absolute;
    top: 4px; right: 4px;
    min-width: 18px; height: 18px;
    background: var(--bp-pistachio);
    color: #fff;
    border-radius: 999px;
    font-family: var(--bp-font-mono);
    font-size: 10px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
}
.ibtn {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 999px;
    background: var(--bp-cream-2);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--bp-fg);
}
.ibtn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ibtn-glass {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
}
.cart-thumb.fallback {
    background: var(--bp-cream-2);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--bp-font); font-weight: 700; font-size: 22px;
    color: var(--bp-fg-2);
}
.card-photo.fallback {
    background: var(--bp-cream-2);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; padding: 16px;
    text-align: center;
}
.card-photo.fallback span {
    font-family: var(--bp-font); font-weight: 600; font-size: 14px;
    color: var(--bp-fg-2);
}
.card-photo.fallback small {
    display: block; margin-top: 6px;
    font-family: var(--bp-font-mono); font-size: 10px;
    color: var(--bp-fg-3); text-transform: uppercase;
}
.tab-l1 {
    padding: 10px 18px;
    background: transparent;
    border-radius: 999px;
    font-family: var(--bp-font); font-weight: 600; font-size: 13px;
    color: var(--bp-fg-2);
    white-space: nowrap;
    transition: all .2s var(--bp-ease-out);
}
.tab-l1.active {
    background: var(--bp-espresso);
    color: var(--bp-cream);
}
.tabs-l1 {
    display: flex; gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}
.tabs-l1::-webkit-scrollbar { display: none; }
.section-head {
    padding: 24px 24px 12px;
    font-family: var(--bp-font-mono);
    font-size: 12px; font-weight: 600;
    color: var(--bp-fg-2);
    text-transform: lowercase;
    letter-spacing: 0.04em;
}
.section-head .accent { color: var(--bp-pistachio); }
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}
.card {
    background: var(--bp-paper);
    border-radius: 18px;
    overflow: hidden;
    display: flex; flex-direction: column;
    text-decoration: none;
    border: 1px solid var(--bp-border);
    transition: transform .15s var(--bp-ease-out);
}
.card:active { transform: scale(.98); }
.card-photo {
    aspect-ratio: 1 / 1.05;
    background-size: cover; background-position: center;
}
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.card-name { font-weight: 700; font-size: 15px; color: var(--bp-fg); }
.card-meta {
    font-family: var(--bp-font-mono); font-size: 11px;
    color: var(--bp-fg-3); line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.card-prices { margin-top: 4px; }
.price-cost {
    font-family: var(--bp-font); font-weight: 700; font-size: 15px;
    color: var(--bp-pistachio-d);
    font-variant-numeric: tabular-nums;
}
.stick-detail {
    position: sticky;
    bottom: 0;
    background: var(--bp-cream);
    padding: 14px 20px max(24px, env(safe-area-inset-bottom, 24px));
    border-top: 1px solid var(--bp-border);
}
.stick-detail .summary {
    display: flex; justify-content: space-between;
    font-family: var(--bp-font-mono); font-size: 11px;
    color: var(--bp-fg-2); margin-bottom: 10px;
}
.stick-cta {
    position: sticky;
    bottom: 0;
    background: var(--bp-cream);
    padding: 14px 20px max(24px, env(safe-area-inset-bottom, 24px));
    border-top: 1px solid var(--bp-border);
    z-index: 5;
}
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.cart-thumb {
    width: 62px; height: 62px;
    border-radius: 14px;
    background-size: cover; background-position: center;
    flex-shrink: 0;
}
.tracker {
    padding: 32px 24px;
    text-align: center;
}
.tracker .t-cap {
    font-family: var(--bp-font-mono); font-size: 12px;
    color: var(--bp-fg-2); letter-spacing: 0.04em;
    text-transform: uppercase;
}
.tracker .t-status {
    font-weight: 800; font-size: 28px;
    margin: 8px 0 4px; color: var(--bp-fg);
    letter-spacing: -0.02em;
}
.tracker .eta {
    font-family: var(--bp-font-mono); font-size: 13px;
    color: var(--bp-fg-2);
}
.order-items {
    list-style: none; padding: 0 24px;
    margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px;
}
.order-items li {
    display: grid; grid-template-columns: 36px 1fr auto;
    align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bp-border);
}
.order-items .n {
    font-family: var(--bp-font-mono); font-size: 11px;
    color: var(--bp-fg-3);
}
.order-items .nm { font-weight: 600; }
.order-items .pr { font-family: var(--bp-font-mono); font-weight: 600; }
.order-total {
    display: flex; justify-content: space-between;
    padding: 18px 24px 0;
    font-weight: 700; font-size: 17px;
}
.hdr-meta {
    font-family: var(--bp-font-mono); font-size: 12px;
    color: var(--bp-fg-2); text-align: right;
    line-height: 1.3;
}
.hdr-meta .accent { color: var(--bp-pistachio); font-weight: 600; }
.scr { padding-bottom: 110px; }
.ctas { padding: 24px; }

/* === v2.1 additions === */
.bnav button .badge,
[data-cart-badge] {
    position: absolute;
    top: 4px; right: 4px;
    min-width: 18px; height: 18px;
    background: var(--bp-pistachio);
    color: #fff;
    border-radius: 999px;
    font-family: var(--bp-font-mono);
    font-size: 10px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
}
.ibtn {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 999px;
    background: var(--bp-cream-2);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--bp-fg);
}
.ibtn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ibtn-glass {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
}
.cart-thumb.fallback {
    background: var(--bp-cream-2);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--bp-font); font-weight: 700; font-size: 22px;
    color: var(--bp-fg-2);
}
.card-photo.fallback {
    background: var(--bp-cream-2);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; padding: 16px;
    text-align: center;
}
.card-photo.fallback span {
    font-family: var(--bp-font); font-weight: 600; font-size: 14px;
    color: var(--bp-fg-2);
}
.card-photo.fallback small {
    display: block; margin-top: 6px;
    font-family: var(--bp-font-mono); font-size: 10px;
    color: var(--bp-fg-3); text-transform: uppercase;
}
.tab-l1 {
    padding: 10px 18px;
    background: transparent;
    border-radius: 999px;
    font-family: var(--bp-font); font-weight: 600; font-size: 13px;
    color: var(--bp-fg-2);
    white-space: nowrap;
    transition: all .2s var(--bp-ease-out);
}
.tab-l1.active {
    background: var(--bp-espresso);
    color: var(--bp-cream);
}
.tabs-l1 {
    display: flex; gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}
.tabs-l1::-webkit-scrollbar { display: none; }
.section-head {
    padding: 24px 24px 12px;
    font-family: var(--bp-font-mono);
    font-size: 12px; font-weight: 600;
    color: var(--bp-fg-2);
    text-transform: lowercase;
    letter-spacing: 0.04em;
}
.section-head .accent { color: var(--bp-pistachio); }
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}
.card {
    background: var(--bp-paper);
    border-radius: 18px;
    overflow: hidden;
    display: flex; flex-direction: column;
    text-decoration: none;
    border: 1px solid var(--bp-border);
    transition: transform .15s var(--bp-ease-out);
}
.card:active { transform: scale(.98); }
.card-photo {
    aspect-ratio: 1 / 1.05;
    background-size: cover; background-position: center;
}
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.card-name { font-weight: 700; font-size: 15px; color: var(--bp-fg); }
.card-meta {
    font-family: var(--bp-font-mono); font-size: 11px;
    color: var(--bp-fg-3); line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.card-prices { margin-top: 4px; }
.price-cost {
    font-family: var(--bp-font); font-weight: 700; font-size: 15px;
    color: var(--bp-pistachio-d);
    font-variant-numeric: tabular-nums;
}
.stick-detail {
    position: sticky;
    bottom: 0;
    background: var(--bp-cream);
    padding: 14px 20px max(24px, env(safe-area-inset-bottom, 24px));
    border-top: 1px solid var(--bp-border);
}
.stick-detail .summary {
    display: flex; justify-content: space-between;
    font-family: var(--bp-font-mono); font-size: 11px;
    color: var(--bp-fg-2); margin-bottom: 10px;
}
.stick-cta {
    position: sticky;
    bottom: 0;
    background: var(--bp-cream);
    padding: 14px 20px max(24px, env(safe-area-inset-bottom, 24px));
    border-top: 1px solid var(--bp-border);
    z-index: 5;
}
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.cart-thumb {
    width: 62px; height: 62px;
    border-radius: 14px;
    background-size: cover; background-position: center;
    flex-shrink: 0;
}
.tracker {
    padding: 32px 24px;
    text-align: center;
}
.tracker .t-cap {
    font-family: var(--bp-font-mono); font-size: 12px;
    color: var(--bp-fg-2); letter-spacing: 0.04em;
    text-transform: uppercase;
}
.tracker .t-status {
    font-weight: 800; font-size: 28px;
    margin: 8px 0 4px; color: var(--bp-fg);
    letter-spacing: -0.02em;
}
.tracker .eta {
    font-family: var(--bp-font-mono); font-size: 13px;
    color: var(--bp-fg-2);
}
.order-items {
    list-style: none; padding: 0 24px;
    margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px;
}
.order-items li {
    display: grid; grid-template-columns: 36px 1fr auto;
    align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bp-border);
}
.order-items .n {
    font-family: var(--bp-font-mono); font-size: 11px;
    color: var(--bp-fg-3);
}
.order-items .nm { font-weight: 600; }
.order-items .pr { font-family: var(--bp-font-mono); font-weight: 600; }
.order-total {
    display: flex; justify-content: space-between;
    padding: 18px 24px 0;
    font-weight: 700; font-size: 17px;
}
.hdr-meta {
    font-family: var(--bp-font-mono); font-size: 12px;
    color: var(--bp-fg-2); text-align: right;
    line-height: 1.3;
}
.hdr-meta .accent { color: var(--bp-pistachio); font-weight: 600; }
.scr { padding-bottom: 110px; }
.ctas { padding: 24px; }

/* =============================================================
   v2.1.1 — visual fixes after first telephone test
   ============================================================= */

/* (3) Bnav: raise above Yandex Browser bottom URL bar */
.bnav {
    position: fixed !important;
    left: 16px;
    right: 16px;
    bottom: 5px !important;
    max-width: 688px;
    margin: 0 auto;
    z-index: 100;
    /* Safe-area for notched devices in landscape — keep horizontal margins */
}

/* (1) Synchronize horizontal paddings: menu-header == grid == 16px */
.menu-header {
    padding: 12px 16px 12px !important;
}
.grid {
    padding: 0 16px !important;
}
.tabs-l1 {
    padding: 4px 0 !important;
}

/* (2) Sticky header — use fixed instead, sticky breaks under flex parent on Safari/Yandex */
.menu-scr {
    position: relative;
    padding-top: 110px !important;  /* room for the fixed header */
}
.menu-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    max-width: 720px;
    margin: 0 auto;
    z-index: 50;
    /* Frosted look stays from components.css base rule */
    background: rgba(242, 234, 216, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(217, 206, 186, 0.6);
}

/* Same treatment for prof-header */
.prof-scr {
    position: relative;
    padding-top: 64px !important;
}
.prof-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    max-width: 720px;
    margin: 0 auto;
    z-index: 50;
}

/* (5) Cart header — same fixed treatment so back button is reachable */

.cart-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    max-width: 720px;
    margin: 0 auto;
    z-index: 50;
    background: rgba(242, 234, 216, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(217, 206, 186, 0.6);
}

/* Bottom padding everywhere so content doesn't hide behind bnav */
.menu-scr,
.cart-scr,
.prof-scr,
.scr {
    padding-bottom: calc(env(safe-area-inset-bottom, 0) + 180px) !important;
}

/* Stick-CTA (cart checkout, customize add) should sit above bnav */
.stick-cta,
.stick-detail {
    position: fixed !important;
    bottom: 75px !important;
    left: 0;
    right: 0;
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 16px !important;
    background: var(--bp-cream);
    border-top: 1px solid var(--bp-border);
    z-index: 40;
}

/* Confirmation screen tracker — keep its layout stable */
.scr .ctas {
    padding: 24px 16px !important;
}

/* =============================================================
   v2.1.2 — kill containing-block trap for fixed children
   ============================================================= */
.menu-scr,
.cart-scr,
.prof-scr,
.scr,
.scr-welcome {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Bnav: force viewport-fixed regardless of any parent transforms */
.bnav {
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 5px !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: 100 !important;
}

/* Same for menu header — must hug top of viewport, not parent */
.menu-header,
.cart-header,
.prof-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: 50 !important;
}

/* Stick-cta and stick-detail same treatment */
.stick-cta,
.stick-detail {
    position: fixed !important;
    bottom: 75px !important;
    left: 0 !important;
    right: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

/* v2.1.3 — kill any dark backgrounds bleeding below content */
html, body { background: var(--bp-cream) !important; }

/* === v2.2 — Home screen styles (pass card, quick orders, tracker overlay) === */
.tert-row {
    display: flex; justify-content: space-between;
    padding: 12px 24px 0;
    font-family: var(--bp-font-mono); font-size: 12px;
    color: var(--bp-fg-2);
}
.tert-row a {
    color: var(--bp-fg-2);
    text-decoration: none;
}
.tert-row a u { text-decoration: underline; text-underline-offset: 3px; }

.qo {
    margin: 24px 16px 0;
    background: var(--bp-paper);
    border: 1px solid var(--bp-border);
    border-radius: 18px;
    padding: 14px 16px 8px;
}
.qo-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 8px;
    font-family: var(--bp-font-mono); font-size: 11px;
    color: var(--bp-fg-2); letter-spacing: 0.04em;
    text-transform: uppercase;
}
.qo-head .l { font-weight: 700; color: var(--bp-fg); }
.qo-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column;
}
.qo-list li {
    display: grid;
    grid-template-columns: 28px 1fr auto 36px;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bp-cream-2);
    cursor: pointer;
}
.qo-list li:last-child { border-bottom: none; }
.qo-list .n {
    font-family: var(--bp-font-mono); font-size: 11px;
    color: var(--bp-fg-3);
}
.qo-list .nm {
    font-weight: 600; font-size: 14px;
    color: var(--bp-fg);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qo-list .pr {
    font-family: var(--bp-font-mono); font-size: 13px; font-weight: 600;
    color: var(--bp-pistachio-d);
    font-variant-numeric: tabular-nums;
}
.qo-add {
    width: 30px; height: 30px;
    border-radius: 999px;
    background: var(--bp-pistachio);
    color: #fff;
    font-size: 18px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* Pass card */
.pass {
    margin: 16px 16px 0;
    background: var(--bp-espresso);
    color: var(--bp-cream);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.pass.is-active {
    background: var(--bp-pistachio-d);
    color: var(--bp-cream);
}
.pass.is-muted {
    background: var(--bp-cream-2);
    color: var(--bp-fg-2);
}
.pass-top {
    display: flex; justify-content: space-between; align-items: flex-start;
}
.pass-brand {
    font-family: var(--bp-font); font-weight: 800; font-size: 20px;
    letter-spacing: -0.02em;
}
.pass-brand .b1 { opacity: 1; }
.pass-brand .b2 { opacity: 0.7; }
.pass-cap-top {
    font-family: var(--bp-font-mono); font-size: 10px;
    margin-top: 2px;
    letter-spacing: 0.06em; text-transform: uppercase;
    opacity: 0.75;
}
.pass-status {
    font-family: var(--bp-font-mono); font-size: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    color: inherit;
    display: inline-flex; align-items: center; gap: 6px;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.pass-status.is-outline {
    background: transparent;
    border: 1px solid currentColor;
}
.pass-status .sd {
    width: 6px; height: 6px;
    border-radius: 999px;
    background: currentColor;
}
.pass-hero {
    text-align: left;
    padding: 18px 0 12px;
}
.pass-num {
    font-family: var(--bp-font); font-weight: 800;
    font-size: 64px; line-height: 0.9;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}
.pass-cap-hero {
    font-family: var(--bp-font-mono); font-size: 11px;
    margin-top: 8px;
    letter-spacing: 0.04em;
    opacity: 0.8;
}
.perf {
    border-top: 1.5px dashed currentColor;
    opacity: 0.3;
    margin: 12px -20px 12px;
}
.pass-bottom {
    display: flex; justify-content: space-between;
    gap: 16px;
}
.pass-bottom .col { flex: 1; }
.pass-bottom .lab {
    font-family: var(--bp-font-mono); font-size: 10px;
    opacity: 0.7;
    letter-spacing: 0.04em; text-transform: uppercase;
    margin-bottom: 2px;
}
.pass-bottom .val {
    font-weight: 600; font-size: 14px;
}
.pass-bottom .val.mono {
    font-family: var(--bp-font-mono);
    font-variant-numeric: tabular-nums;
}

/* Order tracker visual chain */
.ctrack { padding: 24px 16px 12px; }
.ctrack-row {
    display: flex; align-items: center;
    gap: 4px;
}
.ctrack-ill {
    width: 44px; height: 44px;
    flex-shrink: 0;
}
.ctrack-conn {
    flex: 1; height: 2px;
    background: var(--bp-cream-3);
}
.ctrack-conn.done {
    background: var(--bp-pistachio);
}
.ctrack-conn.dash-strong {
    background: repeating-linear-gradient(to right, var(--bp-fg) 0, var(--bp-fg) 4px, transparent 4px, transparent 8px);
}
.ctrack-conn.dash-weak {
    background: repeating-linear-gradient(to right, var(--bp-fg-3) 0, var(--bp-fg-3) 3px, transparent 3px, transparent 7px);
}
.ctrack-labels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 10px;
    text-align: center;
    font-family: var(--bp-font-mono); font-size: 10px;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.ctrack-labels .ok  { color: var(--bp-pistachio-d); font-weight: 600; }
.ctrack-labels .cur { color: var(--bp-fg);          font-weight: 700; }
.ctrack-labels .fut { color: var(--bp-fg-3); }

/* hdr-meta accent for Home plan name line */
.hdr-meta .accent { color: var(--bp-pistachio-d); font-weight: 700; }

/* === v2.2.2 — Home tweaks === */
:root {
    --bp-navy:   #0B1733;
    --bp-navy-2: #1B2A4E;
}
/* Active subscription pass — navy, not pistachio */
.pass.is-active {
    background: var(--bp-navy) !important;
    color: var(--bp-cream) !important;
}
.pass.is-active .pass-status.is-outline {
    border-color: var(--bp-pistachio-l);
    color: var(--bp-pistachio-l);
}
.pass.is-active .pass-status.is-outline .sd {
    background: var(--bp-pistachio-l);
}
.pass.is-active .perf {
    border-top-color: rgba(242, 234, 216, 0.25);
}

/* Tighter side margins on Home blocks — match Menu grid 16px */
.scr .pass,
.scr .qo {
    margin-left: 16px !important;
    margin-right: 16px !important;
}

/* Home: kill internal .scr horizontal padding so blocks define their own */
#home-screen .scr {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* === v2.2.3 — header + pass status tweaks === */
/* Header name + plan: keep natural case, not uppercase */
.hdr-meta {
    text-transform: none !important;
}
.hdr-meta .accent {
    text-transform: none !important;
}

/* Pass "Активен" — only dot is pistachio, text + border are cream */
.pass.is-active .pass-status.is-outline {
    border-color: var(--bp-cream) !important;
    color: var(--bp-cream) !important;
}
.pass.is-active .pass-status.is-outline .sd {
    background: var(--bp-pistachio-l) !important;
}

/* === v2.2.4 — Home padding align + customize photo === */
/* Home header: same 16px padding as menu/grid */
#home-screen .hdr {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* Customize: image fills full width of container, cover crop */
.detail-photo {
    background-size: cover !important;
    background-position: center center !important;
    width: 100% !important;
    height: 460px !important;
}

/* === v2.2.5 — customize layout fix === */
/* Customize: CTA in flow, not fixed-positioned over content */
#customize-screen .stick-detail {
    position: static !important;
    bottom: auto !important;
    margin-top: 24px;
    padding: 0 16px 24px !important;
    background: transparent !important;
    border-top: none !important;
}
/* customize body needs no padding-bottom for bnav since bnav doesn't show here */
.detail-body { padding: 20px 16px !important; }

/* === v2.3 — Customize options (sizes / milk / extras) === */
.cust-sec {
    margin: 0 0 22px;
}
.cust-sec .sec-h {
    font-family: var(--bp-font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--bp-fg-2);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 10px;
}
.cust-sec .desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--bp-fg-2);
    margin: 0;
}

/* Size pills (S/M/L) */
.size-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.opt-pill {
    background: var(--bp-cream-2);
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    transition: all .15s var(--bp-ease-out);
}
.opt-pill.is-selected {
    background: var(--bp-espresso);
    color: var(--bp-cream);
}
.opt-pill .pill-main {
    font-weight: 800;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.02em;
}
.opt-pill .pill-vol {
    font-family: var(--bp-font-mono);
    font-size: 10px;
    opacity: 0.7;
    margin: 6px 0 4px;
}
.opt-pill .pill-sub {
    font-family: var(--bp-font-mono);
    font-size: 10px;
    opacity: 0.6;
}

/* Milk chips (horizontal scroll) */
.milk-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.milk-row::-webkit-scrollbar { display: none; }
.opt-chip {
    flex-shrink: 0;
    background: var(--bp-cream-2);
    border-radius: 999px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s var(--bp-ease-out);
}
.opt-chip.is-selected {
    background: var(--bp-espresso);
    color: var(--bp-cream);
}
.opt-chip .chk {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.opt-chip .nm {
    font-weight: 600;
    font-size: 14px;
}
.opt-chip .sub {
    font-family: var(--bp-font-mono);
    font-size: 11px;
    opacity: 0.7;
}

/* Extras list */
.extras-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.opt-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: transparent;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: background .15s var(--bp-ease-out);
}
.opt-row:hover { background: var(--bp-cream-2); }
.opt-row.is-selected { background: var(--bp-cream-2); }
.opt-row .check-circle {
    width: 26px; height: 26px;
    border-radius: 999px;
    background: var(--bp-cream-2);
    color: var(--bp-fg-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600;
}
.opt-row.is-selected .check-circle {
    background: var(--bp-pistachio);
    color: #fff;
}
.opt-row .nm {
    font-weight: 600;
    font-size: 14px;
    color: var(--bp-fg);
}
.opt-row .pr {
    font-family: var(--bp-font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--bp-fg-2);
}

/* Qty stepper centered */
.qty-stepper {
    background: var(--bp-cream-2);
    border-radius: 999px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
}
.qty-stepper button {
    width: 36px; height: 36px;
    border-radius: 999px;
    background: var(--bp-cream);
    font-size: 20px; font-weight: 600;
    color: var(--bp-fg);
}
.qty-stepper span {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}

/* CTA on customize: in flow, full-width */
.cust-cta {
    margin-top: 12px;
    width: 100%;
}

/* Cart line: show options under name */
.cart-mid .opts {
    font-family: var(--bp-font-mono);
    font-size: 11px;
    color: var(--bp-fg-3);
    margin-top: 2px;
    display: block;
}

/* Override v2.2.5 detail-body padding to be slightly larger for option content */
.detail-body {
    padding: 24px 16px 32px !important;
}

/* === v2.3.1 — smaller photo, extras as chips === */
.detail-photo {
    height: 360px !important;
}
/* Make extras chip same as milk chip but compact */
.opt-chip.extra-chip {
    padding: 9px 14px;
}

/* === v2.3.2 — compact photo for mobile === */
.detail-photo {
    height: 240px !important;
}
.detail-name {
    font-size: 28px !important;
}
.detail-overlay {
    padding: 16px !important;
}

/* === v2.3.3 — kill horizontal overflow, lock to viewport === */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}
.detail-scr, .menu-scr, .cart-scr, .prof-scr, .scr, .scr-welcome {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}
.detail-body {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    overflow-x: hidden;
}
/* Inside-section horizontal-scroll containers should stay clipped within parent */
.cust-sec {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
}
.size-row, .milk-row {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.size-row {
    display: flex;
    gap: 8px;
}
.size-row .opt-pill {
    flex: 1 1 0;
    min-width: 0;
}

/* === v2.3.4 — vertical scroll + two-button CTA === */
/* Re-enable vertical scroll: only kill horizontal overflow */
html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
.detail-scr, .menu-scr, .cart-scr, .prof-scr, .scr, .scr-welcome {
    overflow-x: hidden !important;
    overflow-y: visible !important;
}
.detail-body { overflow-x: hidden; overflow-y: visible; }
.cust-sec { overflow: visible; }
.cust-sec > .size-row,
.cust-sec > .milk-row { overflow-x: auto; overflow-y: visible; }

/* Two-button CTA row at bottom of customize */
.cust-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}
.cust-cta-secondary,
.cust-cta-primary {
    width: 100%;
}
.cust-cta-secondary {
    background: transparent !important;
    color: var(--bp-fg) !important;
    border: 1.5px solid var(--bp-fg) !important;
}

/* === v2.3.5 — restore native scroll behavior === */
html, body {
    overflow-x: visible !important;
    overflow-y: visible !important;
    height: auto !important;
}
.detail-scr, .menu-scr, .cart-scr, .prof-scr, .scr, .scr-welcome {
    overflow: visible !important;
}
.detail-body { overflow: visible !important; }
.cust-sec { overflow: visible !important; }
/* Only horizontal-scroll rows clip themselves */
.size-row, .milk-row {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
}

/* === v2.4 — Pass 3: Profile + Plans modal + Orders history === */

/* Profile screen */
.prof-id {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 8px;
}
.prof-id .avatar {
    width: 56px; height: 56px;
    border-radius: 999px;
    background: var(--bp-espresso);
    color: var(--bp-cream);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 22px;
    flex-shrink: 0;
}
.prof-name { font-weight: 700; font-size: 18px; color: var(--bp-fg); }
.prof-phone {
    font-family: var(--bp-font-mono);
    font-size: 12px;
    color: var(--bp-fg-2);
    margin-top: 2px;
}

.prof-sub-card {
    margin: 0 16px;
    background: var(--bp-paper);
    border-radius: 18px;
    border: 1px solid var(--bp-border);
    padding: 16px;
}
.prof-sub-card.is-active {
    background: var(--bp-navy);
    color: var(--bp-cream);
    border: none;
}
.prof-sub-card .row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.prof-sub-card .lab {
    font-family: var(--bp-font-mono);
    font-size: 11px;
    color: var(--bp-fg-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.prof-sub-card.is-active .lab { color: rgba(242,234,216,0.6); }
.prof-sub-card .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--bp-font-mono);
    font-size: 11px;
    color: var(--bp-cream);
    border: 1px solid var(--bp-cream);
    padding: 3px 10px;
    border-radius: 999px;
}
.prof-sub-card .badge.muted {
    color: var(--bp-fg-2);
    border-color: var(--bp-cream-3);
}
.prof-sub-card .badge .dot {
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--bp-pistachio-l);
}
.prof-sub-card.is-empty .badge .dot { background: var(--bp-fg-3); }
.prof-sub-card .plan-name {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.prof-sub-card .row2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-top: 1px dashed rgba(242,234,216,0.2);
    border-bottom: 1px dashed rgba(242,234,216,0.2);
    margin-bottom: 10px;
}
.prof-sub-card.is-empty .row2 { display: none; }
.prof-sub-card .row2 .cl {
    font-family: var(--bp-font-mono);
    font-size: 10px;
    opacity: 0.6;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.prof-sub-card .row2 .cv {
    font-weight: 600;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.prof-sub-card .row3 .text-link {
    color: inherit;
    opacity: 0.85;
    font-size: 12px;
}
.prof-sub-card.is-empty .empty-msg {
    font-size: 14px;
    color: var(--bp-fg-2);
    margin: 10px 0 16px;
    line-height: 1.4;
}
.prof-sub-card.is-empty .btn {
    width: 100%;
}

.prof-actions {
    margin: 24px 16px 0;
    background: var(--bp-paper);
    border-radius: 18px;
    border: 1px solid var(--bp-border);
    overflow: hidden;
}
.prof-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border-bottom: 1px solid var(--bp-border);
    text-align: left;
}
.prof-link:last-child { border-bottom: none; }
.prof-link .i {
    width: 20px; height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}
.prof-link .lab {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: var(--bp-fg);
}
.prof-link .arr {
    color: var(--bp-fg-3);
}

/* Plans modal */
#bp-plans-modal .sheet {
    max-height: 85vh;
    overflow-y: auto;
}
.plans-list {
    padding: 0 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.plan-card {
    background: var(--bp-paper);
    border: 1px solid var(--bp-border);
    border-radius: 18px;
    padding: 16px;
}
.plan-card .plan-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}
.plan-card .plan-name {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
}
.plan-card .plan-price {
    font-family: var(--bp-font);
    font-weight: 700;
    font-size: 18px;
    color: var(--bp-pistachio-d);
    font-variant-numeric: tabular-nums;
}
.plan-card .plan-sub {
    font-family: var(--bp-font-mono);
    font-size: 11px;
    color: var(--bp-fg-2);
    margin-bottom: 6px;
}
.plan-card .plan-perdrink {
    font-family: var(--bp-font-mono);
    font-size: 11px;
    color: var(--bp-pistachio-d);
    margin-bottom: 8px;
}
.plan-card .plan-desc {
    font-size: 13px;
    color: var(--bp-fg-2);
    line-height: 1.4;
    margin: 8px 0 12px;
}
.plan-card .plan-cta {
    width: 100%;
    margin-top: 12px;
}

/* Orders history */
.orders-header {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
    background: var(--bp-cream);
    position: sticky;
    top: 0;
    z-index: 10;
}
.orders-header .title {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}
.orders-body {
    padding: 0 16px;
}
.order-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bp-cream-2);
}
.order-row:last-child { border-bottom: none; }
.order-row .or-main { flex: 1; min-width: 0; }
.order-row .or-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--bp-fg);
}
.order-row .or-meta {
    font-family: var(--bp-font-mono);
    font-size: 11px;
    color: var(--bp-fg-3);
    margin-top: 2px;
}
.order-row .or-price {
    font-family: var(--bp-font);
    font-weight: 600;
    font-size: 15px;
    color: var(--bp-pistachio-d);
    font-variant-numeric: tabular-nums;
}

/* === v2.5 — Profile rewrite to match Profile.html mockup === */
/* prof-scr container */
.prof-scr {
    display: flex; flex-direction: column;
    min-height: 100dvh;
    padding-bottom: 120px;
}

/* sticky header with logomark + edit */
.prof-header {
    position: fixed !important;
    top: 0;
    left: 0; right: 0;
    padding: 8px 24px 14px !important;
    background: rgba(242, 234, 216, 0.92) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    z-index: 50;
}
#profile-screen .prof-scr {
    padding-top: 70px;
}

/* identity */
.identity {
    display: flex; align-items: center; gap: 18px;
    padding: 18px 24px 24px;
}
.identity .avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--bp-espresso); color: var(--bp-cream);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--bp-font-mono); font-size: 32px; font-weight: 700;
    letter-spacing: -0.02em; text-transform: uppercase;
    box-shadow: 0 0 0 2px var(--bp-cream-3);
    cursor: pointer; flex-shrink: 0;
    border: none;
}
.identity .avatar:active { transform: scale(0.96); }
.ident-text {
    display: flex; flex-direction: column; gap: 6px;
    min-width: 0;
}
.ident-name {
    font-family: var(--bp-font); font-weight: 700; font-size: 24px;
    color: var(--bp-espresso); letter-spacing: -0.02em; line-height: 1;
}
.ident-phone {
    font-family: var(--bp-font-mono); font-size: 13px; font-weight: 500;
    color: var(--bp-fg-3); letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}
.ident-since {
    font-family: var(--bp-font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--bp-fg-3);
}

/* metrics strip */
.metrics {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    padding: 22px 24px;
    border-top: 1px solid rgba(61,43,26,0.12);
    border-bottom: 1px solid rgba(61,43,26,0.12);
    position: relative;
}
.metrics > div {
    padding: 0 4px; text-align: center; position: relative;
}
.metrics > div + div::before {
    content: ""; position: absolute;
    left: 0; top: 8px; bottom: 8px; width: 1px;
    background: rgba(61,43,26,0.12);
}
.metric-val {
    font-family: var(--bp-font); font-weight: 800; font-size: 26px;
    letter-spacing: -0.025em; line-height: 1;
    color: var(--bp-espresso);
    font-variant-numeric: tabular-nums;
}
.metric-val.save { color: var(--bp-pistachio-d); }
.metric-lab {
    font-family: var(--bp-font-mono); font-size: 9.5px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--bp-fg-3); margin-top: 8px;
}

/* sec base */
.prof-scr .sec { padding: 0 24px; }
.prof-scr .sec + .sec { margin-top: 28px; }
.prof-scr .sec-h {
    font-family: var(--bp-font-mono); font-size: 10.5px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--bp-fg-3); margin: 28px 0 14px;
}

/* subscription block (in-profile) */
.sub-block {
    padding: 4px 0 6px;
}
.sub-tier {
    font-family: var(--bp-font); font-weight: 700; font-size: 24px;
    color: var(--bp-espresso); letter-spacing: -0.02em; line-height: 1;
}
.sub-plan {
    font-family: var(--bp-font-mono); font-size: 12px; font-weight: 600;
    color: var(--bp-fg-2); letter-spacing: 0.02em; margin-top: 8px;
    font-variant-numeric: tabular-nums;
}
.sub-until {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 500;
    color: var(--bp-fg-3); letter-spacing: 0.02em; margin-top: 4px;
}
.sub-divider {
    height: 1px; background: rgba(61,43,26,0.12);
    margin: 16px 0 14px;
}
.sub-btns {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.btn-outline {
    background: transparent !important;
    color: var(--bp-espresso) !important;
    border: 1px solid var(--bp-espresso) !important;
}

/* minimal links */
.links { margin-top: 12px; }
.link-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0;
    border-top: 1px solid rgba(61,43,26,0.10);
    cursor: pointer;
    font-family: var(--bp-font); font-weight: 500; font-size: 15px;
    color: var(--bp-espresso); letter-spacing: -0.005em;
}
.link-row:last-child { border-bottom: 1px solid rgba(61,43,26,0.10); }
.link-row .chev { color: var(--bp-fg-3); display: inline-flex; }
.link-row .chev svg {
    width: 14px; height: 14px;
    stroke: currentColor; fill: none; stroke-width: 1.75;
    stroke-linecap: round; stroke-linejoin: round;
}

/* footer */
.prof-footer {
    margin-top: 36px;
    padding: 0 24px;
    text-align: center;
    display: flex; flex-direction: column; gap: 2px;
}
.prof-footer span {
    font-family: var(--bp-font-mono); font-size: 10px; font-weight: 500;
    letter-spacing: 0.08em; color: rgba(61,43,26,0.42);
    text-transform: lowercase;
}
.prof-footer span.upper {
    text-transform: uppercase; letter-spacing: 0.12em;
}

/* === v2.6 — Profile + Notifications/FAQ modals + sub plans auto-renew === */

/* Settings group cards with white background */
.prof-scr .sec.links {
    margin-top: 20px;
}
.prof-scr .sec.links + .sec.links {
    margin-top: 20px;
}
.prof-scr .sec.links .sec-h {
    margin: 0 0 8px;
    padding: 0;
}
.prof-scr .sec.links {
    /* outer = pad 24, inner card has bg */
}
.prof-scr .links .link-row {
    background: var(--bp-paper);
    border-radius: 0;
    border: 1px solid var(--bp-border);
    border-top: none;
    padding: 16px;
}
.prof-scr .links .link-row:first-of-type {
    border-top: 1px solid var(--bp-border);
    border-radius: 14px 14px 0 0;
}
.prof-scr .links .link-row:last-child {
    border-radius: 0 0 14px 14px;
}
.prof-scr .links .link-row:only-of-type {
    border-radius: 14px;
}
.prof-scr .links .link-row span:first-child {
    font-weight: 500;
    font-size: 15px;
    color: var(--bp-fg);
}
.prof-scr .links .link-row .chev svg {
    width: 14px; height: 14px;
}

/* Notifications modal */
.notif-list {
    padding: 0 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.notif-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--bp-cream-2);
    gap: 16px;
}
.notif-row:last-child { border-bottom: none; }
.notif-text .t { font-weight: 600; font-size: 14px; color: var(--bp-fg); }
.notif-text .d {
    font-family: var(--bp-font-mono); font-size: 11px;
    color: var(--bp-fg-3); margin-top: 4px;
}

/* iOS-style switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px; height: 26px;
    flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
    position: absolute; inset: 0;
    background: var(--bp-cream-3);
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s;
}
.switch .slider::before {
    content: "";
    position: absolute;
    width: 22px; height: 22px;
    left: 2px; top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch input:checked + .slider { background: var(--bp-pistachio); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* FAQ modal */
.faq-list {
    padding: 0 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    background: var(--bp-paper);
    border: 1px solid var(--bp-border);
    border-radius: 14px;
    overflow: hidden;
}
.faq-item .faq-q {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--bp-fg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.faq-item .faq-chev {
    font-family: var(--bp-font-mono);
    font-size: 18px;
    font-weight: 400;
    color: var(--bp-fg-3);
    flex-shrink: 0;
}
.faq-item .faq-a {
    display: none;
    padding: 0 16px 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--bp-fg-2);
}

/* Auto-renew checkbox row in plans modal */
.plans-autorenew {
    margin: 0 16px 16px;
    padding: 14px 16px;
    background: var(--bp-paper);
    border: 1px solid var(--bp-border);
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.plans-autorenew .text .t { font-weight: 600; font-size: 14px; color: var(--bp-fg); }
.plans-autorenew .text .d {
    font-family: var(--bp-font-mono); font-size: 11px;
    color: var(--bp-fg-3); margin-top: 4px;
}

/* === v2.7 — Subscription checkout sheet === */

#bp-checkout-modal .sheet {
    max-height: 90vh;
    overflow-y: auto;
}
#bp-checkout-modal .sheet-head {
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--bp-cream-2);
}
#bp-checkout-modal .sheet-head .ctx {
    font-weight: 700;
    font-size: 16px;
    color: var(--bp-fg);
    letter-spacing: -0.01em;
}
.checkout-body {
    padding: 20px 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Plan summary card */
.co-plan {
    background: var(--bp-cream-2);
    border-radius: 16px;
    padding: 20px 18px;
}
.co-plan-name {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.co-plan-desc {
    font-size: 13px;
    color: var(--bp-fg-2);
    line-height: 1.4;
    margin-bottom: 14px;
}
.co-plan-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.co-price {
    font-weight: 800;
    font-size: 32px;
    color: var(--bp-espresso);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.co-dur {
    font-family: var(--bp-font-mono);
    font-size: 12px;
    color: var(--bp-fg-3);
}

/* Info-box about auto-renewal */
.co-info {
    background: var(--bp-pistachio-xxl);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.co-info-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--bp-pistachio-xl);
    color: var(--bp-pistachio-d);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.co-info-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--bp-pistachio-d);
    font-weight: 500;
}

/* Consent checkbox row */
.co-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 0;
    cursor: pointer;
}
.co-consent input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.co-consent-box {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 1.5px solid var(--bp-fg-3);
    border-radius: 6px;
    background: var(--bp-paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s var(--bp-ease-out);
    margin-top: 1px;
}
.co-consent-box svg {
    width: 14px;
    height: 14px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s var(--bp-ease-out);
}
.co-consent input[type="checkbox"]:checked + .co-consent-box {
    background: var(--bp-espresso);
    border-color: var(--bp-espresso);
}
.co-consent input[type="checkbox"]:checked + .co-consent-box svg {
    opacity: 1;
}
.co-consent-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--bp-fg);
}

/* Pay button + safety note */
.co-pay {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.co-safe {
    text-align: center;
    font-family: var(--bp-font-mono);
    font-size: 11px;
    color: var(--bp-fg-3);
    margin-top: 4px;
}

/* === v2.7.1 — Telegram WebApp safe-area paddings === */
body.is-tma .hdr,
body.is-tma .menu-header,
body.is-tma .orders-header,
body.is-tma .prof-header {
    padding-top: 100px !important;
}
body.is-tma #home-screen .hdr { padding: 100px 16px 16px !important; }
body.is-tma .identity { padding-top: 20px !important; }

body.is-tma .detail-photo .float-top {
    top: 100px !important;
}
body.is-tma .bnav {
    bottom: 28px !important;
}
body.is-tma .stick-cta,
body.is-tma .stick-detail {
    bottom: 100px !important;
}
body.is-tma .scr,
body.is-tma .menu-scr,


/* === v2.7.3 — TMA headers: revert fixed positioning so flow content stays below === */
body.is-tma .prof-header,
body.is-tma .menu-header,
body.is-tma .orders-header {
    position: relative !important;
    top: auto !important;
    left: auto !important; right: auto !important;
}
body.is-tma #profile-screen .prof-scr,
body.is-tma .menu-scr,
body.is-tma .orders-scr {
    padding-top: 0 !important;
}

/* === v2.8 — Order tracking + active order banner + sub-history === */

/* Confirmation screen */
.conf-scr {
    padding: 0 0 100px;
}
.conf-hero {
    padding: 32px 24px 20px;
    text-align: center;
}
.conf-id {
    font-family: var(--bp-font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--bp-fg-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.conf-title {
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 6px;
    color: var(--bp-fg);
}
.conf-sub {
    font-size: 14px;
    color: var(--bp-fg-2);
    line-height: 1.4;
}

/* Progress steps */
.conf-steps {
    display: flex;
    align-items: center;
    padding: 16px 24px 24px;
    gap: 4px;
}
.conf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.conf-step .conf-dot {
    width: 32px; height: 32px;
    border-radius: 999px;
    background: var(--bp-cream-2);
    color: var(--bp-fg-3);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--bp-font-mono);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s var(--bp-ease-out);
}
.conf-step.is-done .conf-dot {
    background: var(--bp-pistachio);
    color: #fff;
}
.conf-step.is-active .conf-dot {
    background: var(--bp-espresso);
    color: #fff;
    transform: scale(1.1);
}
.conf-step .conf-lab {
    font-family: var(--bp-font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--bp-fg-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.conf-step.is-done .conf-lab,
.conf-step.is-active .conf-lab {
    color: var(--bp-fg);
}
.conf-line {
    flex: 1;
    height: 2px;
    background: var(--bp-cream-2);
    margin: -16px 2px 0;
}

/* Order items */
.conf-items {
    margin: 0 16px 20px;
    padding: 12px;
    background: var(--bp-paper);
    border-radius: 14px;
    border: 1px solid var(--bp-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.conf-item {
    padding: 10px 12px;
    background: var(--bp-cream-2);
    border-radius: 10px;
}
.conf-item-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--bp-fg);
}
.conf-item-sub {
    font-family: var(--bp-font-mono);
    font-size: 11px;
    color: var(--bp-fg-3);
    margin-top: 2px;
}
.conf-actions {
    padding: 0 16px;
}
.conf-actions .btn { width: 100%; }

/* Active-order banner on home */
.active-order-banner {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    background: var(--bp-espresso);
    color: var(--bp-cream);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    text-align: left;
}
.aob-left { flex: 1; min-width: 0; }
.aob-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--bp-font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bp-pistachio-l);
}
.aob-dot {
    width: 7px; height: 7px;
    border-radius: 999px;
    background: var(--bp-pistachio-l);
    animation: aob-pulse 1.8s ease-in-out infinite;
}
@keyframes aob-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.aob-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--bp-cream);
    margin-top: 4px;
}
.aob-arr {
    font-size: 22px;
    color: var(--bp-pistachio-l);
    flex-shrink: 0;
}

/* Subscription history rows */
.sh-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--bp-cream-2);
}
.sh-row:last-child { border-bottom: none; }
.sh-main { flex: 1; min-width: 0; }
.sh-plan {
    font-weight: 700;
    font-size: 15px;
    color: var(--bp-fg);
}
.sh-meta {
    font-family: var(--bp-font-mono);
    font-size: 11px;
    color: var(--bp-fg-3);
    margin-top: 4px;
}
.sh-price {
    font-family: var(--bp-font);
    font-weight: 700;
    font-size: 15px;
    color: var(--bp-pistachio-d);
    font-variant-numeric: tabular-nums;
}

/* === v2.8.1 — compact detail photo in TMA === */



/* === v2.8.2 — unified larger detail photo (web + TMA) === */
.detail-photo {
    height: 360px !important;
    min-height: 360px !important;
}



/* === v2.9.1 — customize: readable title (no gradient), pill size cap === */

/* Title over photo: dark text with subtle shadow, no gradient bar */
.detail-photo .detail-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 20px;
    background: transparent;
    color: var(--bp-fg);
}
.detail-photo .detail-cat {
    font-family: var(--bp-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bp-fg);
    text-shadow: 0 1px 4px rgba(242,234,216,0.9);
    margin-bottom: 4px;
}
.detail-photo .detail-name {
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.02em;
    color: var(--bp-fg);
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 1px 6px rgba(242,234,216,0.95);
}

/* Cap size pills so single-size drinks don't stretch full width */
.size-row {
    display: flex !important;
    gap: 8px;
    flex-wrap: wrap;
}
.size-row .opt-pill {
    flex: 0 0 calc(33.333% - 6px);
    min-width: 0;
    max-width: 120px;
}

/* No edge gradient — natural overflow already shows there's more */
.cust-sec .milk-row::after,
.cust-sec::after { content: none !important; }
.cust-sec > .milk-row { padding-right: 16px; }





/* === v2.9.4 — Welcome final layout === */
.scr-welcome {
    min-height: 100dvh;
    display: flex !important;
    flex-direction: column !important;
    padding: 24px !important;
    box-sizing: border-box;
}
.scr-welcome .top { flex-shrink: 0; padding: 0 0 24px; }
.scr-welcome .message {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
\.scr-welcome .message h1 {
    font-weight: 800;
    font-size: 42px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--bp-fg);
    margin: 0 0 16px;
}
.scr-welcome .message p {
    font-size: 17px;
    line-height: 1.4;
    color: var(--bp-fg-2);
    margin: 0;
}
.scr-welcome .actions {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 32px;
    flex-shrink: 0;
}
.scr-welcome .actions .btn { width: 100%; }
.scr-welcome .text-link-row { text-align: center; margin-top: 8px; }
.scr-welcome .text-link {
    font-size: 14px;
    color: var(--bp-fg-2);
    background: transparent;
}
body.is-tma .scr-welcome .actions { padding-bottom: 28px; }

/* === v2.10 — Quick favorite card + cart TMA fix + cancel button === */

/* Quick favorite card */
.qof-title {
    font-weight: 700;
    font-size: 17px;
    color: var(--bp-fg);
    letter-spacing: -0.01em;
    margin: 0 16px 12px;
}
.qof-card {
    margin: 0 16px 16px;
    background: var(--bp-paper);
    border-radius: 18px;
    border: 1px solid var(--bp-border);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.qof-photo {
    width: 64px; height: 64px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-color: var(--bp-cream-2);
    flex-shrink: 0;
}
.qof-photo-fallback {
    background-image: linear-gradient(135deg, var(--bp-cream-2), var(--bp-cream-3));
}
.qof-mid { flex: 1; min-width: 0; }
.qof-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--bp-fg);
    letter-spacing: -0.01em;
}
.qof-sub {
    font-family: var(--bp-font-mono);
    font-size: 11px;
    color: var(--bp-fg-3);
    margin-top: 4px;
}
.qof-price {
    font-weight: 700;
    font-size: 14px;
    color: var(--bp-pistachio-d);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}
.qof-arr {
    width: 44px; height: 44px;
    border-radius: 999px;
    background: var(--bp-espresso);
    color: var(--bp-cream);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

/* Cart header / Safari overlap fix */


/* Cancel subscription link inside plans modal */
.plans-cancel {
    margin: 16px 16px 24px;
    padding: 14px 16px;
    text-align: center;
    background: transparent;
    border: 1px solid var(--bp-error, #B45044);
    color: var(--bp-error, #B45044);
    border-radius: 999px;
    width: calc(100% - 32px);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

/* Orders history row: make tappable */
.order-row {
    cursor: pointer;
}
.order-row:hover { background: var(--bp-cream-2); }


/* === v2.10.1 — cart in TMA: shift whole screen down === */

/* === v2.11 — Tracker styles from Home_States_v3 === */
.conf-scr { display: flex; flex-direction: column; min-height: 100vh; padding: 24px; padding-bottom: 140px; }
.conf-scr .hdr.center { display: flex; justify-content: center; padding: 0 0 24px; }
.tracker {
    background: var(--bp-paper);
    border: 1px solid var(--bp-border);
    border-radius: 22px;
    padding: 22px 22px 24px;
    text-align: center;
}
.tracker .t-cap {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--bp-fg-3);
    margin-bottom: 8px;
}
.tracker .t-status {
    font-weight: 800; font-size: 32px; letter-spacing: -0.025em;
    color: var(--bp-fg); line-height: 1.05; margin-bottom: 24px;
}
.ctrack { margin: 4px 0 18px; }
.ctrack-row {
    display: grid;
    grid-template-columns: 56px 1fr 56px 1fr 56px 1fr 56px;
    align-items: center;
}
.ctrack-ill { width: 56px; height: 56px; color: var(--bp-espresso); display: block; }
.ctrack-ill.future { opacity: 0.35; }
.ctrack-conn { height: 2px; }
.ctrack-conn.done { background: var(--bp-pistachio); }
.ctrack-conn.dash-strong {
    background-image: linear-gradient(to right, rgba(61,43,26,0.30) 0, rgba(61,43,26,0.30) 5px, transparent 5px, transparent 10px);
    background-size: 10px 2px; background-repeat: repeat-x;
}
.ctrack-conn.dash-weak {
    background-image: linear-gradient(to right, rgba(61,43,26,0.20) 0, rgba(61,43,26,0.20) 5px, transparent 5px, transparent 10px);
    background-size: 10px 2px; background-repeat: repeat-x;
}
.ctrack-labels {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    margin-top: 14px;
}
.ctrack-labels span {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
}
.ctrack-labels .ok  { color: var(--bp-pistachio); }
.ctrack-labels .cur { color: var(--bp-espresso); font-weight: 700; }
.ctrack-labels .fut { color: rgba(61,43,26,0.35); }
@media (max-width: 380px) {
    .ctrack-row { grid-template-columns: 48px 1fr 48px 1fr 48px 1fr 48px; }
    .ctrack-ill { width: 48px; height: 48px; }
}
.tracker .eta {
    font-family: var(--bp-font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--bp-fg-3);
    padding-top: 14px; border-top: 1px solid var(--bp-border);
}
.order-items {
    margin: 18px 0 0; padding: 0; list-style: none;
}
.order-items li {
    display: grid; grid-template-columns: 32px 1fr auto;
    align-items: baseline; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bp-border);
}
.order-items .n { font-family: var(--bp-font-mono); font-size: 11px; font-weight: 500; color: var(--bp-fg-3); letter-spacing: 0.06em; }
.order-items .nm { font-size: 14px; color: var(--bp-fg); }
.order-items .pr { font-family: var(--bp-font-mono); font-size: 13px; font-weight: 600; color: var(--bp-fg); letter-spacing: 0.01em; }
.order-total {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-top: 14px;
}
.order-total .l { font-size: 14px; color: var(--bp-fg-2); font-weight: 500; }
.order-total .v { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--bp-fg); font-variant-numeric: tabular-nums; }
.conf-scr .grow { flex: 1; }
.conf-scr .ctas { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 0; }
.conf-scr .ctas .btn { width: 100%; padding: 16px; font-size: 15px; }
.tertiary.danger {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: var(--bp-error, #B45044);
    cursor: pointer;
}
.tertiary.danger u { text-decoration: underline; }

/* TMA: shift down */
body.is-tma .conf-scr { padding-top: 70px; }

/* keyframes already in mockup */
@keyframes brewLevel { 0% { transform: scaleY(0.30); } 100% { transform: scaleY(0.85); } }
.ctrack-level { transform-origin: center bottom; animation: brewLevel 2.5s ease-in-out infinite alternate; }
@keyframes steamWaft { 0% { transform: translateY(0); opacity: 0.5; } 100% { transform: translateY(-3px); opacity: 1; } }
.ctrack-steam-a, .ctrack-steam-b { transform-origin: center; animation: steamWaft 3s ease-in-out infinite alternate; }
.ctrack-steam-b { animation-delay: 0.4s; }


/* === v2.10.5 — Cart final padding rule === */
.cart-scr { position: relative; padding-top: 100px; }
body.is-tma .cart-scr { padding-top: 180px; }
body.is-tma .cart-header { top: 90px !important; }

/* === v2.10.6 — Comment block === */
.cust-comment { padding: 0 16px; }
.comment-toggle {
    display: flex; align-items: center; gap: 8px;
    background: transparent; border: none;
    color: var(--bp-fg-2);
    font-family: var(--bp-font);
    font-size: 14px; font-weight: 500;
    padding: 8px 0;
    cursor: pointer;
}
.comment-toggle .tg-sign {
    width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--bp-fg-3);
    font-size: 13px; line-height: 1;
    color: var(--bp-fg-2);
}
.comment-toggle.is-open { color: var(--bp-fg); }
.comment-toggle.is-open .tg-sign { border-color: var(--bp-espresso); color: var(--bp-espresso); }
.comment-input {
    display: none;
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--bp-border);
    border-radius: 12px;
    background: var(--bp-paper);
    font-family: var(--bp-font);
    font-size: 14px;
    color: var(--bp-fg);
    resize: none;
    outline: none;
}
.comment-input:focus { border-color: var(--bp-espresso); }
.comment-input.is-open { display: block; }

/* === v2.10.7 — PWA safe-area для iPhone с notch/Dynamic Island === */
/* Применяется только в standalone PWA режиме */
@media (display-mode: standalone) {
    .menu-header,
    .cart-header,
    .prof-header,
    .scr-welcome .top,
    .conf-scr .hdr,
    .scr > .hdr {
        padding-top: calc(env(safe-area-inset-top, 0) + 8px) !important;
    }
    .cart-scr,
    .menu-scr,
    .prof-scr {
        /* эти экраны имеют sticky/fixed заголовок (.menu-header/.cart-header) — нужен большой отступ */
        padding-top: calc(env(safe-area-inset-top, 0) + 60px) !important;
    }
    .scr {
        /* home: hdr встроен в поток, нужен только safe-area сверху */
        padding-top: max(12px, env(safe-area-inset-top, 12px)) !important;
    }
}

/* =============================================================
   v2.1.2 — PWA safe-area fixes (status bar + home indicator)
   black-translucent makes status bar transparent → content slides
   under it. Pad home .hdr and lift .bnav above home indicator.
   Only applies in PWA standalone — TMA and browser unaffected.
   ============================================================= */

/* Home screen header: pad below status bar */
.scr > .hdr:first-child {
    padding-top: max(12px, env(safe-area-inset-top, 12px));
}

/* Bottom nav: lift above home indicator */
.bnav {
    bottom: max(5px, env(safe-area-inset-bottom, 5px)) !important;
}

/* Sticky menu/profile headers: account for status bar too */
.menu-header {
    padding-top: max(12px, env(safe-area-inset-top, 12px)) !important;
}
.menu-scr {
    padding-top: max(110px, calc(110px + env(safe-area-inset-top, 0px))) !important;
}

/* =============================================================
   v2.1.3 — extra PWA safe-area: cart header + drink detail close
   ============================================================= */

/* Cart header — pad under status bar */
.cart-header {
    padding-top: max(12px, env(safe-area-inset-top, 12px)) !important;
}

/* Cart screen content — context-aware top padding.
   Header is position:fixed; we need to leave room under it.
   - Browser: ~90px to clear browser chrome + header
   - PWA standalone: safe-area + header height
   - TMA: 180px (Telegram bar 90 + header 90) — kept below */
body:not(.is-tma) .cart-scr {
    padding-top: calc(88px + env(safe-area-inset-top, 0px)) !important;
}
body.is-tma .cart-scr {
    padding-top: 220px !important;
}

/* Drink detail close button (crossed circle in top-left) */
.detail-photo .float-top {
    top: max(12px, env(safe-area-inset-top, 12px)) !important;
}

/* =============================================================
   v2.1.4 — Bottom-sheet modal close button safe-area (PWA/iOS)
   ============================================================= */
.scr-modal .sheet-head {
    padding-top: max(14px, env(safe-area-inset-top, 14px)) !important;
}

/* =============================================================
   v2.1.5 — Bottom-sheet close/back buttons: always visible
   ============================================================= */
.scr-modal .sheet-head .back {
    background: var(--bp-cream-3) !important;
    color: var(--bp-fg) !important;
    border-radius: 999px !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--bp-cream-3) !important;
    flex-shrink: 0 !important;
}
.scr-modal .sheet-head .back svg {
    width: 18px !important;
    height: 18px !important;
}

/* =============================================================
   v2.1.6 — Checkout modal: safe-area override (more specific
   than v2.1.4 generic .scr-modal rule, beats #bp-checkout-modal)
   ============================================================= */
#bp-checkout-modal .sheet-head,
#bp-plans-modal .sheet-head,
.scr-modal .sheet-head {
    padding-top: max(14px, env(safe-area-inset-top, 14px)) !important;
}

/* =============================================================
   v2.2.0 — Concept overlay & welcome chip
   ============================================================= */

/* CHIP on Welcome (under <p>) */
.concept-chip {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 18px;
    padding: 9px 14px 9px 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--bp-mono);
    font-size: 13px; font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--bp-espresso-2);
    border-radius: 999px;
    transition: background 160ms cubic-bezier(.22,1,.36,1);
    line-height: 1;
    align-self: flex-start;
}
.concept-chip .pre { color: var(--bp-espresso-3); }
.concept-chip b { color: var(--bp-espresso); font-weight: 600; }
.concept-chip .arr {
    font-family: var(--bp-font); font-weight: 500;
    color: var(--bp-espresso-3);
    transition: transform 160ms cubic-bezier(.22,1,.36,1);
}
.concept-chip:hover { background: rgba(61, 43, 26, 0.05); }
.concept-chip:hover .arr { transform: translateX(2px); color: var(--bp-espresso); }
.concept-chip:active { transform: scale(0.98); }

/* OVERLAY — slide-in from right */
.concept-modal {
    position: fixed;
    inset: 0;
    background: var(--bp-cream);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 350ms cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}
.concept-modal.is-open { transform: translateX(0); }

/* Inner scroll container — safe-area for all 3 contexts */
.concept-modal .scr-overlay {
    height: 100%;
    padding: max(16px, env(safe-area-inset-top, 16px)) 24px max(24px, env(safe-area-inset-bottom, 24px));
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 24px;
    box-sizing: border-box;
}
/* TMA — Telegram bar above content adds ~90px */
body.is-tma .concept-modal .scr-overlay {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

/* Header */
.concept-modal .ov-head {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    padding: 4px 0;
}
.concept-modal .ov-back {
    width: 40px; height: 40px;
    border-radius: 999px;
    background: rgba(61, 43, 26, 0.06);
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--bp-espresso);
    padding: 0;
}
.concept-modal .ov-back svg { width: 16px; height: 16px; }
.concept-modal .ov-dots {
    display: inline-flex; align-items: center; gap: 6px;
    justify-self: center;
}
.concept-modal .ov-dots .d {
    width: 6px; height: 6px; border-radius: 999px;
    background: var(--bp-espresso-3);
    transition: width 220ms cubic-bezier(.4,0,.2,1), background 220ms;
}
.concept-modal .ov-dots .d.active { width: 22px; background: var(--bp-espresso); border-radius: 999px; }

/* Body — scrollable area */
.concept-modal .ov-body {
    display: flex; flex-direction: column; gap: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
}
.concept-modal .ov-tag {
    font-family: var(--bp-mono); font-size: 11px;
    font-weight: 500; letter-spacing: 0.06em;
    color: var(--bp-espresso-2);
}
.concept-modal .ov-tag b { color: var(--bp-espresso); font-weight: 600; }
.concept-modal .ov-h {
    font-family: var(--bp-font);
    font-weight: 700; font-size: 28px;
    line-height: 1.08; letter-spacing: -0.025em;
    color: var(--bp-espresso);
    margin: 0;
    text-wrap: balance;
}
.concept-modal .ov-p {
    font-weight: 500; font-size: 15px; line-height: 1.5;
    color: var(--bp-espresso-2);
    margin: 0;
}
.concept-modal .ov-p b { color: var(--bp-espresso); font-weight: 700; }

/* Spec list */
.concept-modal .ov-list { display: flex; flex-direction: column; margin-top: 4px; }
.concept-modal .ov-list .row {
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: baseline;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--bp-cream-3);
}
.concept-modal .ov-list .row:last-child { border-bottom: 1px solid var(--bp-cream-3); }
.concept-modal .ov-list .n {
    font-family: var(--bp-mono); font-size: 10px;
    font-weight: 500; letter-spacing: 0.06em;
    color: var(--bp-espresso-3);
    font-variant-numeric: tabular-nums;
}
.concept-modal .ov-list .cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.concept-modal .ov-list b {
    font-weight: 700; font-size: 14px;
    color: var(--bp-espresso); letter-spacing: -0.005em;
    line-height: 1.25;
}
.concept-modal .ov-list span {
    font-weight: 500; font-size: 13px;
    color: var(--bp-espresso-2);
    line-height: 1.35;
}
.concept-modal .ov-list.dense .row { padding: 12px 0; }
.concept-modal .ov-note {
    font-family: var(--bp-mono); font-size: 11px;
    font-weight: 500; letter-spacing: 0.02em;
    color: var(--bp-espresso-3);
    margin-top: 6px;
}

/* Quote */
.concept-modal .ov-quote {
    margin-top: 4px;
    padding: 12px 0 12px 14px;
    border-left: 2px solid var(--bp-espresso);
    display: flex; flex-direction: column; gap: 8px;
}
.concept-modal .ov-quote-text {
    font-weight: 500; font-size: 14px;
    line-height: 1.5; color: var(--bp-espresso);
    font-style: italic;
    margin: 0; text-wrap: pretty;
}
.concept-modal .ov-quote-attr {
    font-family: var(--bp-mono); font-size: 11px; font-weight: 500;
    color: var(--bp-espresso-2); letter-spacing: 0.02em;
}
.concept-modal .ov-quote-attr b { color: var(--bp-espresso); font-weight: 600; }

/* Flow (slide 4) */
.concept-modal .flow {
    background: var(--bp-cream-2);
    border-radius: 16px;
    padding: 18px 14px 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 8px;
    margin: 4px 0 2px;
}
.concept-modal .flow-step {
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    gap: 4px;
    padding: 0 2px;
}
.concept-modal .flow-n {
    font-family: var(--bp-mono); font-size: 10px;
    font-weight: 600; letter-spacing: 0.12em;
    color: var(--bp-espresso-3);
    margin-bottom: 2px;
}
.concept-modal .flow-l {
    font-family: var(--bp-font); font-weight: 700;
    font-size: 17px; letter-spacing: -0.02em;
    color: var(--bp-espresso); line-height: 1;
}
.concept-modal .flow-s {
    font-family: var(--bp-mono); font-size: 10.5px;
    font-weight: 500; letter-spacing: 0.04em;
    color: var(--bp-espresso-2);
    line-height: 1.35;
    margin-top: 2px;
}
.concept-modal .flow-link {
    display: flex; align-items: center; justify-content: center;
    color: var(--bp-espresso-3);
    font-family: var(--bp-font); font-weight: 400;
    font-size: 18px;
    line-height: 1; padding-top: 14px;
}
.concept-modal .flow-link::before { content: "→"; }

/* Nav */
.concept-modal .ov-nav {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    align-items: center;
}
.concept-modal .ov-nav-back {
    width: 56px; height: 56px;
    border-radius: 999px;
    background: rgba(61, 43, 26, 0.06);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--bp-espresso);
}
.concept-modal .ov-nav-back svg { width: 18px; height: 18px; }
.concept-modal .ov-nav-back[disabled] { opacity: 0.4; cursor: not-allowed; }
.concept-modal .btn { height: 56px; }
/* Prevent iOS sticky hover on the primary CTA inside overlay
   (base .btn-primary:hover swaps to --bp-ink, looking near-black) */
.concept-modal .btn-primary:hover,
.concept-modal .btn-primary:focus,
.concept-modal .btn-primary:active {
    background: var(--bp-espresso) !important;
}

/* =============================================================
   v2.2.1 — Confirmation screen: close button + cup-fill anim
   ============================================================= */

/* Header layout: ✕ left · logo center · slot right */
.conf-hdr {
    display: grid !important;
    grid-template-columns: 36px 1fr 36px !important;
    align-items: center !important;
    margin-bottom: 24px;
    gap: 12px;
}
.conf-hdr .mark { justify-self: center; }
.conf-close {
    width: 36px; height: 36px;
    border-radius: 999px;
    background: rgba(61, 43, 26, 0.06);
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--bp-espresso);
    padding: 0;
    justify-self: start;
}
.conf-close:hover { background: rgba(61, 43, 26, 0.10); }
.conf-close:active { transform: scale(0.96); }

/* Cup-fill animation — visible only when this SVG is the current step
   (parent .ctrack-ill is NOT .future and NOT done). When .future — anim disabled. */
.ctrack-cup-fill .cup-fill {
    transform-origin: bottom center;
    transform: translateY(25px);
    animation: cup-rise 2.4s cubic-bezier(.4,0,.2,1) infinite;
}
.ctrack-cup-fill.future .cup-fill {
    animation: none;
    transform: translateY(25px); /* empty cup */
}
@keyframes cup-rise {
    0%   { transform: translateY(25px); }   /* empty */
    50%  { transform: translateY(4px); }     /* near-full */
    100% { transform: translateY(25px); }   /* drain — visual loop */
}

/* Steam wiggle stronger when active */
.ctrack-cup-fill:not(.future) .ctrack-steam-a,
.ctrack-cup-fill:not(.future) .ctrack-steam-b {
    animation: steam-wiggle 2.4s ease-in-out infinite;
    transform-origin: bottom center;
}
.ctrack-cup-fill:not(.future) .ctrack-steam-b { animation-delay: 0.6s; }
@keyframes steam-wiggle {
    0%, 100% { opacity: 0.5; transform: translateY(0) scaleY(1); }
    50%      { opacity: 1.0; transform: translateY(-3px) scaleY(1.15); }
}

/* Privacy link in login modal */
.privacy-link {
    color: var(--bp-espresso);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--bp-cream-3);
    text-decoration-thickness: 1px;
    font-weight: 500;
}
.privacy-link:hover { text-decoration-color: var(--bp-espresso-2); }

/* ============================================================
   ПРОМОКОДЫ (v2.12.0) — partner promo block в plans-modal
   ============================================================ */

/* strikethrough старой + новой цены в plan-card */
.plan-card .plan-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plan-card .price-stack { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; line-height: 1.1; }
.plan-card .plan-price.old {
    font-weight: 600; font-size: 14px;
    color: var(--bp-fg-2, #7A5C3A); opacity: 0.55;
    text-decoration: line-through; text-decoration-thickness: 1.5px;
    letter-spacing: 0;
}
.plan-card .plan-price.new {
    color: var(--bp-pistachio-d, #3D6B22);
    font-size: 22px; font-weight: 800; letter-spacing: -0.01em;
}

/* "не применим" — тихая dashed-плашка */
.plan-card .plan-na {
    margin: 4px 0 10px;
    padding: 8px 10px;
    border: 1px dashed var(--bp-cream-3, #D9CEBA);
    border-radius: 8px;
    background: transparent;
    font-family: var(--bp-font-mono, 'JetBrains Mono', monospace);
    font-size: 11px; line-height: 1.45;
    color: var(--bp-fg-3, #B89A78);
    letter-spacing: 0.01em;
}

/* partner pill */
.partner-pill {
    display: inline-flex; align-items: stretch; gap: 0;
    margin: 10px 0 0;
    border-radius: 6px;
    overflow: hidden;
    font-family: var(--bp-font-mono, 'JetBrains Mono', monospace);
    font-size: 10.5px; font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid var(--bp-espresso, #3D2B1A);
    align-self: flex-start;
    width: fit-content;
}
.partner-pill .pp-name {
    padding: 4px 9px 5px;
    background: var(--bp-paper, #FFFDF8);
    color: var(--bp-fg, #3D2B1A);
    border-right: 1px solid var(--bp-espresso, #3D2B1A);
    display: flex; align-items: center;
}
.partner-pill .pp-disc {
    padding: 4px 9px 5px;
    background: var(--bp-espresso, #3D2B1A);
    color: var(--bp-paper, #FFFDF8);
    display: flex; align-items: center;
}
.partner-pill .pp-disc .dot { opacity: 0.5; margin: 0 5px; }

/* промо-блок внизу plans-list */
.plans-promo {
    margin: 4px 16px 8px;
    border-top: 1px solid var(--bp-cream-3, #D9CEBA);
    border-bottom: 1px solid var(--bp-cream-3, #D9CEBA);
    padding: 14px 0;
}
.plans-promo-toggle {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    background: transparent; border: none; cursor: pointer;
    padding: 0; color: var(--bp-fg, #3D2B1A);
    font-family: var(--bp-font, 'Manrope', sans-serif);
    font-size: 14px; font-weight: 600;
    text-align: left;
    letter-spacing: -0.005em;
}
.plans-promo-toggle .lbl { display: flex; align-items: center; gap: 10px; }
.plans-promo-toggle .ico { width: 14px; height: 14px; color: var(--bp-fg-2, #7A5C3A); stroke: currentColor; fill: none; stroke-width: 1.6; }
.plans-promo-toggle .chev {
    font-family: var(--bp-font-mono, 'JetBrains Mono', monospace);
    font-size: 14px; color: var(--bp-fg-2, #7A5C3A);
    transition: transform 200ms cubic-bezier(.22,1,.36,1);
}
.plans-promo.is-open .plans-promo-toggle .chev { transform: rotate(90deg); }

.plans-promo-body { margin-top: 12px; }

.promo-input-wrap {
    position: relative;
    display: flex; align-items: center;
    border-bottom: 1.5px solid var(--bp-espresso, #3D2B1A);
    padding: 6px 0 8px;
}
.promo-input {
    flex: 1;
    background: transparent; border: none; outline: none;
    font-family: var(--bp-font-mono, 'JetBrains Mono', monospace);
    font-size: 15px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--bp-fg, #3D2B1A);
    padding: 0;
}
.promo-input::placeholder {
    color: var(--bp-fg-3, #B89A78);
    font-family: var(--bp-font, 'Manrope', sans-serif);
    font-weight: 500; letter-spacing: 0.01em;
    text-transform: none; font-size: 14px;
}
.promo-input-wrap.has-error { border-bottom-color: var(--bp-error, #C0392B); }
.promo-input-wrap.is-valid { border-bottom-color: var(--bp-pistachio, #5C8A3C); }
.promo-input-wrap.is-validating { border-bottom-color: var(--bp-fg-3, #B89A78); }

.promo-apply {
    background: transparent; border: none; cursor: pointer;
    font-family: var(--bp-font-mono, 'JetBrains Mono', monospace);
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--bp-fg, #3D2B1A);
    padding: 4px 0 4px 12px;
}
.promo-apply[disabled] { color: var(--bp-fg-3, #B89A78); cursor: default; }

.promo-msg {
    margin-top: 8px;
    font-family: var(--bp-font-mono, 'JetBrains Mono', monospace);
    font-size: 11.5px; font-weight: 500;
    letter-spacing: 0.01em; line-height: 1.45;
    color: var(--bp-fg-2, #7A5C3A);
    display: flex; align-items: flex-start; gap: 6px;
}
.promo-msg.is-error { color: var(--bp-error, #C0392B); }
.promo-msg.is-valid { color: var(--bp-pistachio-d, #3D6B22); }

/* applied chip */
.promo-applied {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.promo-chip {
    display: inline-flex; align-items: stretch; gap: 0;
    padding: 0;
    border: 1px solid var(--bp-espresso, #3D2B1A);
    border-radius: 999px;
    overflow: hidden;
    background: var(--bp-paper, #FFFDF8);
}
.promo-chip .code {
    font-family: var(--bp-font-mono, 'JetBrains Mono', monospace);
    font-size: 11.5px; font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--bp-fg, #3D2B1A);
    padding: 6px 10px 6px 12px;
    display: flex; align-items: center;
}
.promo-chip .x {
    width: 30px; padding: 0;
    border: none; background: transparent;
    border-left: 1px solid var(--bp-cream-3, #D9CEBA);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--bp-fg-2, #7A5C3A);
    font-family: var(--bp-font-mono, 'JetBrains Mono', monospace);
    font-size: 12px;
}
.promo-chip-meta {
    font-family: var(--bp-font-mono, 'JetBrains Mono', monospace);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.02em; color: var(--bp-fg-2, #7A5C3A);
}

/* ============================================================
   ПРОМОКОДЫ — checkout (v2.12.1)
   ============================================================ */
.co-price.has-disc {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
.co-price.has-disc .old {
    font-weight: 600; font-size: 16px;
    color: var(--bp-fg-2, #7A5C3A); opacity: 0.55;
    text-decoration: line-through; text-decoration-thickness: 1.5px;
    letter-spacing: 0;
}

.co-promo-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-top: 12px;
}

.co-breakdown {
    list-style: none; margin: 0; padding: 0;
    border: 1px solid var(--bp-cream-3, #D9CEBA);
    background: var(--bp-paper, #FFFDF8);
    border-radius: 14px;
    overflow: hidden;
}
.co-breakdown li {
    display: grid; grid-template-columns: 1fr auto;
    align-items: baseline; gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--bp-cream-2, #E8DCC8);
}
.co-breakdown li:last-child { border-bottom: none; }
.co-breakdown .l {
    font-size: 14px; line-height: 1.35;
    color: var(--bp-fg, #3D2B1A); font-weight: 600;
}
.co-breakdown .l .sub {
    display: block; margin-top: 3px;
    font-family: var(--bp-font-mono, 'JetBrains Mono', monospace);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.01em; color: var(--bp-fg-3, #B89A78);
}
.co-breakdown .v {
    font-family: var(--bp-font-mono, 'JetBrains Mono', monospace);
    font-size: 14px; font-weight: 600;
    color: var(--bp-fg, #3D2B1A); letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums; text-align: right;
}
.co-breakdown .v.disc { color: var(--bp-pistachio-d, #3D6B22); }
.co-breakdown .v.muted { color: var(--bp-fg-2, #7A5C3A); }

/* =============================================================
   v2.2.2 — Menu card price alignment (push to bottom)
   ============================================================= */
.card { display: flex; flex-direction: column; }
.card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 4px;
}
.card-name { flex: 0 0 auto; }
.card-meta { flex: 0 0 auto; }
.card-meta:empty { display: none; }
.card-prices {
    margin-top: auto !important;
    flex: 0 0 auto;
}
