/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --green: #00754a;
    --green-dark: #005f3c;
    --green-soft: #dff1eb;
    --mint: #eef8f4;
    --cream: #f6f1e8;
    --paper: #ffffff;
    --ink: #1d1f21;
    --muted: #7b8187;
    --line: #edf0ef;
    --danger: #c24132;
    --shadow: 0 12px 30px rgba(21, 57, 43, .10);
}
html { min-height: 100%; background: #e9f3ef; }
body {
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(0,117,74,.16), transparent 24rem),
        linear-gradient(180deg, #edf7f3 0%, #f7f8f6 42%, #f2f4f3 100%);
    color: var(--ink);
    line-height: 1.45;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

/* ===== App Shell ===== */
.phone-shell {
    width: min(100%, 470px);
    margin: 0 auto;
    background: #f7f8f6;
    min-height: 100vh;
    box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 28px 70px rgba(0,0,0,.14);
}
.app {
    position: relative;
    min-height: 100vh;
    padding-bottom: 92px;
    overflow: hidden;
}
main { padding: 0 18px 22px; }

.site-footer {
    padding: 6px 18px 120px;
    text-align: center;
}
.site-footer a {
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
    transition: color .2s ease;
}
.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--green);
    text-decoration: underline;
}

/* ===== Header ===== */
.app-hero {
    position: relative;
    padding: 26px 18px 18px;
    background:
        linear-gradient(155deg, rgba(0,117,74,.98), rgba(15,137,91,.92) 58%, rgba(12,95,67,.98)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='220' viewBox='0 0 420 220'%3E%3Cg fill='none' stroke='%23d5eadf' stroke-width='12' opacity='.18'%3E%3Cpath d='M280 4c54 19 80 58 82 118-51-2-86-31-104-86'/%3E%3Cpath d='M344 21c34 39 43 78 27 117-42-19-60-53-54-103'/%3E%3Cpath d='M42 174c49-22 92-17 130 17-36 27-79 29-130-17Z'/%3E%3C/g%3E%3Cg fill='%23bce8d0' opacity='.38'%3E%3Cpath d='m319 49 10 19 21 4-16 15 3 21-18-10-19 10 4-21-16-15 21-4Z'/%3E%3Cpath d='m248 87 6 12 13 2-9 9 2 13-12-6-11 6 2-13-10-9 13-2Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    color: #fff;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
}
.app-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 30px;
    background: #f7f8f6;
    border-top-left-radius: 50% 100%;
    border-top-right-radius: 50% 100%;
}
.hero-top, .search-row, .member-card { position: relative; z-index: 1; }
.hero-top {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
}
.icon-button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 34px;
    line-height: 1;
}
.store-meta strong { display: block; font-size: 21px; letter-spacing: 0; }
.store-meta span { display: block; color: rgba(255,255,255,.78); font-size: 14px; margin-top: 2px; }
.reserve-chip {
    border: 0;
    border-radius: 8px;
    padding: 9px 12px;
    background: rgba(255,255,255,.92);
    color: var(--green);
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin: 24px 0 18px;
}
.search-box, .takeaway-button {
    min-height: 44px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.22);
    color: rgba(255,255,255,.92);
}
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}
.takeaway-button {
    padding: 0 18px;
    font-weight: 700;
}
.member-card {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.96);
    color: var(--ink);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow);
}
.member-card p { color: var(--green); font-size: 14px; }
.member-card strong { display: block; font-size: 17px; margin-top: 1px; }
.member-avatar {
    width: 58px;
    height: 58px;
    border: 3px solid var(--green);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--mint);
}
.member-avatar span {
    width: 30px;
    height: 38px;
    border-radius: 7px 7px 12px 12px;
    background: linear-gradient(180deg, #f9ddaf 0 32%, #ef9a43 32% 62%, #f3f7f3 62%);
    border: 2px solid #fff;
    box-shadow: 0 8px 0 -4px #372b4b;
}
.member-star { font-size: 28px; color: var(--green); font-weight: 800; white-space: nowrap; }

/* ===== Navigation ===== */
.tabs {
    position: fixed;
    z-index: 20;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 470px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 78px;
    padding: 9px 22px 10px;
    background: rgba(255,255,255,.96);
    border-top: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 -12px 28px rgba(0,0,0,.08);
}
.tab {
    border: 0;
    background: transparent;
    color: #45484a;
    display: grid;
    place-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    transition: color .24s ease;
}
.tab.active { color: var(--green); }
.tab-icon {
    width: 36px;
    height: 36px;
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: transparent;
    color: currentColor;
    transform: translateY(0) scale(1);
    transform-origin: center;
    transition:
        width .26s ease,
        height .26s ease,
        margin .26s ease,
        transform .26s cubic-bezier(.2, .8, .2, 1),
        background-color .26s ease,
        color .26s ease,
        box-shadow .26s ease;
}
.tab.active .tab-icon {
    width: 58px;
    height: 58px;
    margin-top: -28px;
    background: var(--green);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 24px rgba(0,117,74,.34);
}
.tab span:last-child {
    transition: transform .24s ease, color .24s ease;
}
.tab.active span:last-child {
    transform: translateY(-1px);
}
.cup-icon::before {
    content: "";
    position: absolute;
    inset: 8px 10px 7px;
    border: 3px solid currentColor;
    border-top-width: 4px;
    border-radius: 4px 4px 9px 9px;
    transition: inset .26s ease, border-width .26s ease;
}
.cup-icon::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 18px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    transition: left .26s ease, top .26s ease;
}
.tab.active .cup-icon::before { inset: 15px 20px 13px; }
.tab.active .cup-icon::after { left: 26px; top: 28px; }
.tab.active .cup-icon::before,
.tab.active .note-icon::before {
    border-width: 4px;
}
.note-icon::before {
    content: "";
    position: absolute;
    inset: 7px 10px;
    border: 3px solid currentColor;
    border-radius: 4px;
    transition: inset .26s ease, border-width .26s ease;
}
.note-icon::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 14px;
    width: 11px;
    height: 3px;
    background: currentColor;
    box-shadow: 0 7px 0 currentColor;
    transition: left .26s ease, top .26s ease, width .26s ease;
}
.tab.active .note-icon::before { inset: 14px 20px; }
.tab.active .note-icon::after { left: 25px; top: 24px; width: 14px; }
.grid-icon {
    width: 36px;
    height: 36px;
    margin-top: 0;
    background: transparent;
    box-shadow: none;
}
.grid-icon::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 9px;
    width: 7px;
    height: 7px;
    border: 3px solid currentColor;
    border-radius: 3px;
    box-shadow:
        12px 0 0 -3px transparent,
        12px 0 0 0 currentColor,
        0 12px 0 -3px transparent,
        0 12px 0 0 currentColor,
        12px 12px 0 -3px transparent,
        12px 12px 0 0 currentColor;
    transition: left .26s ease, top .26s ease, width .26s ease, height .26s ease, box-shadow .26s ease;
}
.tab.active .grid-icon::before {
    left: 18px;
    top: 18px;
    width: 8px;
    height: 8px;
    box-shadow:
        15px 0 0 -3px transparent,
        15px 0 0 0 currentColor,
        0 15px 0 -3px transparent,
        0 15px 0 0 currentColor,
        15px 15px 0 -3px transparent,
        15px 15px 0 0 currentColor;
}

/* ===== Shared Components ===== */
.tab-content { display: none; }
.tab-content.active { display: block; }
.promo-carousel, .quick-panel, .sheet-card {
    background: var(--paper);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.promo-carousel {
    position: relative;
    margin-top: 20px;
    overflow: hidden;
    background: transparent;
}
.promo-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.promo-track::-webkit-scrollbar { display: none; }
.promo-banner {
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-height: 168px;
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr 120px;
    align-items: center;
    overflow: hidden;
    color: #fff;
}
.promo-americano {
    background:
        linear-gradient(120deg, rgba(190,137,73,.96), rgba(211,158,82,.96)),
        radial-gradient(circle at 70% 20%, rgba(255,255,255,.3), transparent 12rem);
}
.promo-cappuccino {
    background:
        linear-gradient(120deg, rgba(132,83,48,.96), rgba(213,169,108,.96)),
        radial-gradient(circle at 78% 22%, rgba(255,255,255,.28), transparent 12rem);
}
.promo-iced-latte {
    background:
        linear-gradient(120deg, rgba(0,117,74,.96), rgba(75,173,137,.96)),
        radial-gradient(circle at 78% 22%, rgba(255,255,255,.26), transparent 12rem);
}
.promo-banner p { font-size: 26px; font-weight: 900; line-height: 1.05; }
.promo-banner strong { display: block; margin-top: 10px; font-size: 16px; }
.banner-drinks {
    position: relative;
    height: 128px;
}
.banner-drinks img {
    position: absolute;
    bottom: 0;
    width: 112px;
    height: 112px;
    object-fit: contain;
    filter: drop-shadow(0 16px 14px rgba(44, 22, 9, .28));
}
.banner-drinks img:first-child { right: 34px; transform: rotate(-5deg); }
.banner-drinks img:last-child { right: -10px; width: 96px; height: 96px; transform: rotate(6deg); }
.promo-cappuccino .banner-drinks img,
.promo-iced-latte .banner-drinks img {
    right: 4px;
    width: 128px;
    height: 128px;
    transform: none;
}
.promo-dots {
    position: absolute;
    left: 22px;
    bottom: 14px;
    display: flex;
    gap: 6px;
}
.promo-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.54);
    transition: width .2s ease, background .2s ease;
}
.promo-dots span.active {
    width: 20px;
    background: #fff;
}
.quick-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0 18px;
    padding: 16px 8px;
}
.quick-panel button {
    border: 0;
    background: transparent;
    display: grid;
    justify-items: center;
    gap: 5px;
    color: var(--ink);
}
.quick-panel strong { font-size: 18px; }
.quick-panel small { color: var(--muted); font-size: 12px; }
.quick-visual {
    width: 58px;
    height: 46px;
    position: relative;
    display: block;
}
.store-visual::before {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 3px;
    height: 29px;
    border: 3px solid var(--green);
    border-top-width: 9px;
    border-radius: 3px;
}
.store-visual::after {
    content: "";
    position: absolute;
    left: 23px;
    bottom: 3px;
    width: 12px;
    height: 17px;
    background: var(--green);
}
.clock-visual::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 5px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 4px solid var(--green);
}
.clock-visual::after {
    content: "";
    position: absolute;
    left: 29px;
    top: 14px;
    width: 4px;
    height: 16px;
    background: var(--green);
    box-shadow: 6px 12px 0 -1px var(--green);
}
.stock-visual::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 5px;
    width: 36px;
    height: 36px;
    border: 3px solid var(--green);
    border-radius: 8px;
}
.stock-visual::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 15px;
    width: 18px;
    height: 4px;
    background: var(--green);
    box-shadow: 0 8px 0 var(--green);
}
.section-heading, .orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.section-heading p, .orders-header p, .page-title p {
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}
.section-heading h2, .orders-header h2, .page-title h2 {
    font-size: 24px;
    line-height: 1.12;
}
.section-heading.compact h2, .orders-header h2 { font-size: 20px; }
.text-link {
    border: 0;
    background: transparent;
    color: var(--green);
    font-weight: 800;
    white-space: nowrap;
}
.sheet-card { padding: 18px; margin-bottom: 16px; }
.page-title { padding: 22px 2px 14px; }
.empty-state {
    color: var(--muted);
    font-size: 14px;
    padding: 16px 0;
}

/* ===== Menu ===== */
.menu-layout {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 14px;
    align-items: start;
}
.category-rail {
    position: sticky;
    top: 12px;
    display: grid;
    gap: 2px;
    background: #f1f3f1;
    border-radius: 8px;
    overflow: hidden;
}
.category-rail button {
    min-height: 58px;
    border: 0;
    background: transparent;
    color: #6f7376;
    font-weight: 700;
    padding: 6px;
}
.category-rail button.active {
    background: #fff;
    color: var(--green);
}
.materials-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.material-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
}
.material-badge.off { background: #f8ebe8; color: var(--danger); }
.coffee-grid { display: grid; gap: 12px; }
.coffee-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 1px 0 var(--line), 0 9px 20px rgba(0,0,0,.05);
    cursor: pointer;
    position: relative;
}
.coffee-card.selected {
    box-shadow: inset 0 0 0 2px var(--green), 0 9px 20px rgba(0,117,74,.12);
    background: #f7fffb;
}
.coffee-card.disabled {
    opacity: .46;
    cursor: not-allowed;
    filter: grayscale(.5);
}
.product-visual {
    position: relative;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: var(--green-soft);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.product-visual.product-image {
    background:
        radial-gradient(circle at 45% 38%, rgba(255,255,255,.82), rgba(255,255,255,.18) 36%, transparent 64%),
        var(--green-soft);
}
.product-visual.product-image::before { display: none; }
.product-visual img {
    width: 92%;
    height: 92%;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(45, 28, 14, .18));
}
.product-visual::before {
    content: "";
    width: 40px;
    height: 56px;
    border-radius: 4px 4px 14px 14px;
    border: 3px solid rgba(255,255,255,.88);
    background:
        linear-gradient(180deg, rgba(255,255,255,.92) 0 18%, rgba(255,255,255,.38) 18% 24%, transparent 24%),
        linear-gradient(180deg, var(--cup-top, #f3d49e), var(--cup-bottom, #7b3f20));
    box-shadow: 0 10px 18px rgba(0,0,0,.12);
}
.tone-0 { --cup-top: #f2d4a5; --cup-bottom: #6f351e; }
.tone-1 { --cup-top: #e9d4b7; --cup-bottom: #b56b35; }
.tone-2 { --cup-top: #f6efe1; --cup-bottom: #8b5f38; }
.tone-3 { --cup-top: #eadfd2; --cup-bottom: #a3643a; }
.tone-4 { --cup-top: #ead8c5; --cup-bottom: #4b2c26; }
.coffee-info { min-width: 0; padding-top: 4px; }
.coffee-info .name { font-size: 18px; font-weight: 900; }
.coffee-info .recipe {
    color: var(--muted);
    font-size: 13px;
    margin: 5px 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.coffee-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.price { font-size: 20px; font-weight: 900; }
.calories {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}
.add-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 34px;
    justify-content: flex-end;
}
.quantity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 14px;
    font-weight: 900;
}
.add-pill {
    border: 0;
    background: var(--green);
    color: #fff;
    border-radius: 999px;
    min-width: 34px;
    height: 34px;
    font-size: 22px;
    line-height: 1;
}
.minus-pill {
    border: 1px solid #d6dad8;
    background: #fff;
    color: var(--green);
    border-radius: 999px;
    min-width: 34px;
    height: 34px;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

/* ===== Forms ===== */
.order-form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field span {
    color: #303336;
    font-size: 14px;
    font-weight: 900;
}
.field input, .field select, .field textarea,
.recipe-editor input, .inline-field > input {
    width: 100%;
    border: 1px solid #e5e8e7;
    border-radius: 8px;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
}
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
.recipe-editor input:focus, .inline-field > input:focus {
    outline: 2px solid rgba(0,117,74,.16);
    border-color: var(--green);
}
.customization-hint {
    border-left: 3px solid var(--green);
    padding: 10px 12px;
    background: var(--mint);
    color: #52605a;
    font-size: 13px;
    line-height: 1.6;
}
.split-fields {
    display: grid;
    grid-template-columns: minmax(88px, .55fr) 1fr;
    gap: 10px;
}
.inline-field { display: flex; gap: 8px; align-items: center; }
.inline-field select, .inline-field input { flex: 1; min-width: 0; }
.add-row { margin-top: -2px; }
.btn {
    border: 0;
    border-radius: 999px;
    min-height: 42px;
    padding: 0 16px;
    font-weight: 900;
    white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover, .btn-checkout:hover { background: var(--green-dark); }
.btn-soft { background: var(--green-soft); color: var(--green); }
.btn-ghost { background: #fff; color: var(--green); border: 1px solid #d7e9e2; }
.btn-danger { background: #fff1ee; color: var(--danger); }
.checkout-bar {
    position: fixed;
    z-index: 18;
    left: 50%;
    bottom: 86px;
    transform: translateX(-50%);
    width: min(calc(100% - 28px), 438px);
    min-height: 68px;
    display: grid;
    grid-template-columns: 72px 48px 1fr 132px;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 14px;
    background: rgba(255,255,255,.98);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.coupon-pill {
    color: var(--green);
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
}
.bag-icon {
    width: 38px;
    height: 42px;
    border-radius: 2px 2px 8px 8px;
    background: #d3b37b;
    position: relative;
}
.bag-icon::before {
    content: "";
    position: absolute;
    left: 11px;
    top: -7px;
    width: 16px;
    height: 12px;
    border: 2px solid #d3b37b;
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
}
.bag-icon::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 15px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--green);
}
.checkout-bar small { color: var(--muted); font-size: 11px; }
.checkout-bar strong { display: block; font-size: 22px; }
.btn-checkout {
    min-height: 52px;
    background: var(--green);
    color: #fff;
    font-size: 17px;
}
.bottom-spacer { height: 70px; }

/* ===== Coffee Customization ===== */
body.modal-open { overflow: hidden; }
.customization-overlay {
    position: fixed;
    z-index: 60;
    inset: 0;
    width: min(100%, 470px);
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    background: rgba(15, 24, 20, .48);
    backdrop-filter: blur(3px);
    animation: overlay-in .2s ease both;
}
.customization-sheet {
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 50px rgba(0, 0, 0, .2);
    animation: sheet-up .34s cubic-bezier(.2, .8, .2, 1) both;
}
.customization-header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.sheet-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #f0f3f1;
    color: var(--ink);
    font-size: 32px;
    line-height: 1;
}
.customization-title small {
    display: block;
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
}
.customization-title h2 {
    margin-top: 1px;
    font-size: 20px;
    line-height: 1.15;
}
.custom-calories {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.custom-product {
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background:
        linear-gradient(135deg, rgba(223, 241, 235, .92), rgba(246, 241, 232, .68));
}
.custom-product-image {
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
}
.custom-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 16px rgba(48, 31, 19, .2));
}
.custom-product strong {
    display: block;
    font-size: 22px;
}
.custom-product p {
    margin: 5px 0 10px;
    color: var(--muted);
    font-size: 13px;
}
.custom-product span {
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}
.customization-form {
    display: grid;
    gap: 18px;
    padding: 20px 18px calc(22px + env(safe-area-inset-bottom));
}
.custom-section {
    min-width: 0;
    border: 0;
}
.custom-section legend,
.custom-field > span {
    margin-bottom: 9px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
}
.temperature-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.temperature-options button {
    min-width: 0;
    min-height: 48px;
    border: 1px solid #e0e5e2;
    border-radius: 8px;
    background: #fff;
    color: #4e5551;
    font-size: 14px;
    font-weight: 800;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.temperature-options button.active {
    border-color: var(--green);
    background: var(--green-soft);
    color: var(--green);
    box-shadow: inset 0 0 0 1px var(--green);
    transform: translateY(-1px);
}
.custom-add-button {
    position: sticky;
    bottom: 0;
    min-height: 58px;
    border: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    background: var(--green);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 117, 74, .28);
    font-size: 17px;
    font-weight: 900;
}
.custom-add-button strong { font-size: 14px; }
@keyframes overlay-in {
    from { background: rgba(15, 24, 20, 0); backdrop-filter: blur(0); }
}
@keyframes sheet-up {
    from { transform: translateY(45px); opacity: .55; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== Orders ===== */
.order-list { display: grid; gap: 10px; }
.order-item {
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 14px;
}
.order-item .top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.coffee-name { font-size: 17px; font-weight: 900; }
.meta {
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}
.status-badge {
    align-self: flex-start;
    border-radius: 999px;
    background: #fff6df;
    color: #a16207;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.status-badge.done { background: var(--green-soft); color: var(--green); }
.actions { display: flex; gap: 8px; margin-top: 12px; }

/* ===== Admin ===== */
.material-list, .recipe-list { display: grid; gap: 8px; margin-bottom: 12px; }
.material-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.material-row .label { font-weight: 900; }
.toggle {
    min-width: 54px;
    min-height: 32px;
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}
.toggle.on { background: var(--green); color: #fff; }
.toggle.off { background: #e7e9e8; color: #7f8588; }
.recipe-editor {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}
.recipe-editor .split-fields { grid-template-columns: 1fr 72px; }
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip-group label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 8px 11px;
    background: #f3f5f4;
    color: #43484b;
    font-size: 13px;
    font-weight: 700;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    z-index: 40;
    left: 50%;
    bottom: 168px;
    transform: translateX(-50%);
    max-width: min(86vw, 360px);
    background: rgba(29,31,33,.94);
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

@media (max-width: 390px) {
    main { padding-left: 12px; padding-right: 12px; }
    .app-hero { padding-left: 12px; padding-right: 12px; }
    .menu-layout { grid-template-columns: 78px 1fr; gap: 10px; }
    .coffee-card { grid-template-columns: 74px 1fr; padding: 10px; }
    .product-visual { width: 72px; height: 72px; }
    .quick-panel strong { font-size: 16px; }
    .checkout-bar { grid-template-columns: 58px 38px 1fr 110px; width: calc(100% - 18px); }
    .btn-checkout { font-size: 15px; }
    .custom-product { grid-template-columns: 92px 1fr; padding: 16px; }
    .custom-product-image { width: 88px; height: 88px; }
    .temperature-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
