:root {
    --bg: #0a0908;
    --bg-soft: #12100e;
    --panel: #17130f;
    --paper: #efe3ce;
    --paper-2: #f7eedf;
    --ink: #1b1712;
    --cream: #fff6e8;
    --gold: #c99a52;
    --gold-2: #efc77e;
    --red: #8c1f1a;
    --red-2: #ad2a22;
    --green: #7fa861;
    --muted: #b9afa2;
    --line: rgba(255,255,255,.11);
    --paper-line: rgba(31,24,16,.13);
    --shadow: 0 22px 60px rgba(0,0,0,.36);
    --radius: 22px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #050504;
    color: var(--cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
body.lock { overflow: hidden; }

.app-shell {
    min-height: 100svh;
    width: min(100%, 780px);
    margin: 0 auto;
    background:
        radial-gradient(circle at 20% 4%, rgba(201,154,82,.08), transparent 26%),
        var(--bg);
    box-shadow: 0 0 80px rgba(0,0,0,.5);
    position: relative;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 74px;
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    padding: 8px 14px;
    background: rgba(10,9,8,.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.icon-button,
.cart-button,
.sheet-close {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.icon-button { font-size: 1.25rem; }
.app-brand { display: flex; justify-content: center; align-items: center; }
.app-brand img { height: 54px; width: auto; object-fit: contain; }

.cart-button {
    width: 46px;
    height: 46px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.cart-button b {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--red);
    font-size: .68rem;
}

.app-main { padding-bottom: calc(86px + var(--safe-bottom)); }
.app-view { display: none; animation: fade .22s ease; }
.app-view.active { display: block; }
@keyframes fade { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.hero-card {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.hero-media {
    position: absolute;
    inset: 0;
    background: url("../images/hero1.webp") center 35% / cover no-repeat;
    transform: scale(1.03);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7,6,5,.10) 0%, rgba(7,6,5,.42) 38%, rgba(7,6,5,.94) 100%),
        linear-gradient(90deg, rgba(7,6,5,.78), rgba(7,6,5,.16));
}
.hero-content {
    position: relative;
    z-index: 2;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 42px 22px 30px;
}
.eyebrow,
.section-kicker {
    color: var(--gold-2);
    font-weight: 800;
    letter-spacing: .16em;
    font-size: .69rem;
}
.hero-content h1,
.view-header h1,
.section-heading h2,
.loyalty-preview h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -.035em;
}
.hero-content h1 {
    margin: 8px 0 10px;
    max-width: 560px;
    font-size: clamp(3.15rem, 11vw, 5.3rem);
    line-height: .92;
}
.hero-content h1 em { color: var(--gold); font-weight: 400; }
.hero-content p { max-width: 500px; margin: 0 0 22px; color: #d9cec0; font-size: .96rem; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.primary-button,
.secondary-button,
.text-button {
    border: 0;
    cursor: pointer;
    font-weight: 800;
}
.primary-button,
.secondary-button {
    min-height: 48px;
    border-radius: 12px;
    padding: 0 18px;
}
.primary-button { background: var(--red); color: white; box-shadow: 0 10px 24px rgba(140,31,26,.22); }
.primary-button:hover { background: var(--red-2); }
.secondary-button { background: rgba(255,255,255,.04); border: 1px solid rgba(239,199,126,.34); color: var(--gold-2); }
.wide { width: 100%; }
.text-button { background: transparent; color: var(--gold-2); padding: 6px 0; }
.text-button.dark { color: #6f221f; }

.content-section { padding: 24px 18px 28px; }
.paper-section {
    padding: 28px 18px 30px;
    color: var(--ink);
    background:
        radial-gradient(circle at 80% 0, rgba(172,126,58,.10), transparent 28%),
        repeating-linear-gradient(0deg, rgba(50,35,18,.016), rgba(50,35,18,.016) 1px, transparent 1px, transparent 4px),
        var(--paper);
    border-block: 1px solid var(--paper-line);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}
.section-heading h2 { margin: 2px 0 0; font-size: 1.75rem; }
.section-heading.compact h2 { font-size: 1.55rem; }
.section-kicker.dark { color: #7d2521; }
.dark-title { color: var(--ink); }

.route-now-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.route-now-card {
    padding: 17px;
    border: 1px solid rgba(239,199,126,.18);
    background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    border-radius: 18px;
}
.route-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.route-car { color: var(--gold-2); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.route-live { color: #a8cf80; font-size: .68rem; font-weight: 800; }
.route-live::before { content: "●"; margin-right: 6px; }
.route-place { font-family: Georgia, serif; font-size: 1.55rem; margin: 0; }
.route-meta { margin-top: 8px; color: var(--muted); font-size: .82rem; }
.route-stops { display: flex; gap: 7px; overflow-x: auto; padding-top: 13px; scrollbar-width: none; }
.route-stops::-webkit-scrollbar { display: none; }
.route-chip { white-space: nowrap; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .72rem; color: #d9cfc2; }
.route-chip.current { color: white; border-color: rgba(140,31,26,.6); background: rgba(140,31,26,.28); }

.skeleton-card,
.product-skeleton { position: relative; overflow: hidden; background: rgba(255,255,255,.05); border-radius: 18px; }
.skeleton-card { height: 150px; }
.product-skeleton { min-width: 180px; height: 235px; background: rgba(34,26,18,.08); }
.skeleton-card::after,
.product-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.horizontal-products {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(178px, 46%);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.horizontal-products::-webkit-scrollbar { display: none; }

.mini-product,
.product-card {
    background: var(--paper-2);
    color: var(--ink);
    overflow: hidden;
    border: 1px solid var(--paper-line);
    box-shadow: 0 10px 25px rgba(54,37,18,.08);
}
.mini-product { border-radius: 16px; scroll-snap-align: start; }
.mini-product img { width: 100%; aspect-ratio: 1.2; object-fit: cover; }
.mini-product-body { padding: 11px; }
.mini-product h3 { font-family: Georgia, serif; margin: 0 0 5px; font-size: 1rem; line-height: 1.05; }
.mini-product p { margin: 0; color: #6d6256; font-size: .72rem; }
.mini-product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.mini-product-footer strong { font-size: .85rem; }
.mini-add { width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--red); color: white; cursor: pointer; }

.loyalty-preview {
    margin: 18px;
    padding: 22px 18px;
    border: 1px solid rgba(239,199,126,.22);
    border-radius: 20px;
    background: linear-gradient(145deg, #1b1713, #100e0c);
}
.loyalty-preview h2 { margin: 3px 0 7px; font-size: 1.75rem; }
.loyalty-preview p { color: var(--muted); font-size: .86rem; margin: 0; }
.stamps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 18px; }
.stamps span { aspect-ratio: 1; display: grid; place-items: center; border: 1px dashed rgba(239,199,126,.42); border-radius: 50%; color: #9c9184; font-family: Georgia, serif; }
.stamps span.filled { color: white; border-style: solid; border-color: #a53a32; background: #7e211d; }

.last-order-card { margin: 18px; padding: 18px; border-radius: 18px; color: var(--ink); background: var(--paper); border: 1px solid var(--paper-line); }
.last-order-card h3 { margin: 3px 0 6px; font-family: Georgia, serif; }
.order-status { display: inline-flex; padding: 6px 9px; border-radius: 999px; color: #5f2b20; background: rgba(142,86,37,.12); font-size: .72rem; font-weight: 800; }

.view-header { padding: 28px 18px 18px; }
.view-header h1 { margin: 4px 0 7px; font-size: 2.25rem; }
.view-header p { margin: 0; color: var(--muted); font-size: .88rem; }

.sticky-shop-tools { position: sticky; top: 74px; z-index: 18; padding: 8px 18px 12px; background: linear-gradient(180deg, rgba(10,9,8,.98) 76%, rgba(10,9,8,.88)); backdrop-filter: blur(12px); }
.search-box { display: flex; align-items: center; gap: 10px; padding: 0 13px; height: 48px; border-radius: 13px; color: #312820; background: var(--paper-2); border: 1px solid rgba(255,255,255,.06); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.category-scroll { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-btn { white-space: nowrap; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 12px; font-size: .76rem; cursor: pointer; }
.category-btn.active { background: var(--red); color: white; border-color: var(--red); }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 8px 12px 26px; }
.product-card { border-radius: 16px; }
.product-image-wrap { position: relative; }
.product-card img { width: 100%; aspect-ratio: 1.06; object-fit: cover; }
.product-badge { position: absolute; top: 8px; left: 8px; padding: 5px 7px; border-radius: 999px; background: rgba(15,12,9,.82); color: var(--gold-2); font-size: .58rem; font-weight: 900; letter-spacing: .08em; }
.product-card-body { padding: 11px; }
.product-category { color: #8b7660; font-size: .63rem; font-weight: 800; letter-spacing: .1em; }
.product-card h3 { margin: 3px 0 4px; min-height: 2.2em; font-family: Georgia, serif; font-size: 1.02rem; line-height: 1.05; }
.product-card p { margin: 0; min-height: 2.6em; color: #6f655b; font-size: .70rem; }
.product-price { margin-top: 9px; display: flex; align-items: baseline; gap: 4px; }
.product-price strong { font-size: .98rem; }
.product-price small { color: #756a5e; }
.product-actions { display: grid; grid-template-columns: 78px 1fr; gap: 7px; margin-top: 10px; }
.qty-control { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; border: 1px solid #d5c4ac; border-radius: 10px; overflow: hidden; }
.qty-control button { height: 35px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.qty-control span { text-align: center; font-size: .73rem; }
.add-button { border: 0; border-radius: 10px; background: var(--red); color: white; font-weight: 800; font-size: .72rem; cursor: pointer; }
.add-button:disabled { opacity: .45; cursor: not-allowed; }

.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 0 18px 14px; scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-button { white-space: nowrap; border: 1px solid var(--line); color: var(--muted); background: transparent; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.day-button.active { color: white; background: var(--red); border-color: var(--red); }
.route-list { padding: 0 18px 26px; display: grid; gap: 13px; }
.route-detail-card { border-radius: 20px; border: 1px solid rgba(239,199,126,.18); background: #11100e; overflow: hidden; }
.route-detail-header { padding: 18px; border-bottom: 1px solid var(--line); }
.route-detail-header h2 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 1.55rem; }
.route-timeline { padding: 8px 18px 18px; }
.route-stop { position: relative; display: grid; grid-template-columns: 58px 18px 1fr; gap: 9px; min-height: 54px; align-items: start; padding: 10px 0; }
.route-stop::after { content: ""; position: absolute; left: 66px; top: 28px; bottom: -11px; width: 1px; background: rgba(239,199,126,.22); }
.route-stop:last-child::after { display: none; }
.route-stop-time { color: #a89c8f; font-size: .75rem; }
.route-stop-dot { width: 12px; height: 12px; margin-top: 3px; border: 2px solid var(--gold); border-radius: 50%; background: #11100e; z-index: 2; }
.route-stop strong { font-family: Georgia, serif; font-weight: 500; }
.route-stop small { display: block; margin-top: 3px; color: var(--muted); }

.orders-empty,
.account-card,
.order-card {
    margin: 0 18px 20px;
    padding: 22px;
    border-radius: 20px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--paper-line);
}
.orders-empty h2,
.account-card h2,
.order-card h2 { font-family: Georgia, serif; margin: 5px 0 8px; }
.orders-empty p,
.account-card p,
.order-card p { color: #6c6256; }
.account-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #1b1712; color: var(--gold-2); font-family: Georgia, serif; font-size: 1.2rem; }
.order-number { color: #7e211d; font-weight: 900; }

.bottom-nav {
    position: fixed;
    z-index: 50;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 780px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 8px calc(7px + var(--safe-bottom));
    background: rgba(247,238,223,.97);
    border-top: 1px solid rgba(33,26,17,.14);
    backdrop-filter: blur(18px);
}
.bottom-nav-item { min-width: 0; border: 0; background: transparent; color: #6d6258; display: grid; place-items: center; gap: 2px; cursor: pointer; }
.bottom-nav-item span { font-size: 1.12rem; }
.bottom-nav-item b { font-size: .62rem; }
.bottom-nav-item.active { color: var(--red); }

.sheet-backdrop,
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0,0,0,.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
}
.sheet-backdrop.open,
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.bottom-sheet {
    position: fixed;
    z-index: 90;
    left: 50%;
    bottom: 0;
    width: min(100%, 780px);
    max-height: 82svh;
    transform: translate(-50%, 110%);
    transition: transform .3s cubic-bezier(.16,1,.3,1);
    background: var(--paper-2);
    color: var(--ink);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -24px 70px rgba(0,0,0,.42);
    padding-bottom: var(--safe-bottom);
    overflow: auto;
}
.bottom-sheet.open { transform: translate(-50%, 0); }
.sheet-handle { width: 46px; height: 5px; border-radius: 999px; background: #c8b89f; margin: 9px auto 3px; }
.sheet-header,
.checkout-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--paper-line); }
.sheet-header h2,
.checkout-header h2 { margin: 2px 0 0; font-family: Georgia, serif; font-size: 1.8rem; }
.sheet-close { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); border: 1px solid var(--paper-line); }
.cart-items { padding: 8px 18px; }
.cart-item { display: grid; grid-template-columns: 66px 1fr auto; gap: 11px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--paper-line); }
.cart-item img { width: 66px; height: 66px; border-radius: 12px; object-fit: cover; }
.cart-item h3 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 1rem; }
.cart-item small { color: #786c60; }
.cart-item-controls { margin-top: 7px; display: flex; gap: 7px; align-items: center; }
.cart-item-controls button { width: 27px; height: 27px; border: 1px solid #d0bea6; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.remove-item { border: 0 !important; color: #9a2c26 !important; }
.cart-empty { padding: 38px 18px; text-align: center; color: #766b5f; }
.cart-summary { padding: 16px 18px 22px; border-top: 1px solid var(--paper-line); }
.cart-summary > div { display: flex; justify-content: space-between; margin-bottom: 12px; }

.checkout-modal {
    position: fixed;
    z-index: 100;
    left: 50%;
    top: 0;
    width: min(100%, 780px);
    height: 100svh;
    transform: translate(-50%, 105%);
    transition: transform .32s cubic-bezier(.16,1,.3,1);
    background: var(--paper-2);
    color: var(--ink);
    overflow: auto;
    padding-bottom: calc(22px + var(--safe-bottom));
}
.checkout-modal.open { transform: translate(-50%, 0); }
.checkout-header { position: sticky; top: 0; z-index: 3; background: rgba(247,238,223,.96); backdrop-filter: blur(14px); }
.checkout-body { padding: 4px 18px 28px; }
.checkout-block { padding: 18px 0; border-bottom: 1px solid var(--paper-line); }
.checkout-block h3 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 1.25rem; }
.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.delivery-card { min-height: 112px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #d2c0a8; border-radius: 14px; cursor: pointer; }
.delivery-card.active { border-color: #902720; box-shadow: inset 0 0 0 1px #902720; background: #f3dfcf; }
.delivery-card input { display: none; }
.delivery-card span { font-size: 1.25rem; }
.delivery-card strong { font-family: Georgia, serif; font-size: .95rem; }
.delivery-card small { color: #786d61; }
.integration-note { margin-top: 10px; padding: 10px 11px; border-radius: 10px; background: rgba(127,95,48,.08); color: #6d5d49; font-size: .74rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid label { color: #5d5146; font-size: .72rem; font-weight: 800; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input,
.form-grid select,
.checkout-block textarea {
    width: 100%;
    margin-top: 5px;
    padding: 11px 12px;
    border: 1px solid #d3c0a8;
    border-radius: 10px;
    background: #fff9ee;
    color: var(--ink);
    outline: 0;
}
.form-grid input:focus,
.form-grid select:focus,
.checkout-block textarea:focus { border-color: #9a322a; box-shadow: 0 0 0 3px rgba(154,50,42,.08); }
.hidden { display: none !important; }
.order-final-summary { display: grid; gap: 9px; }
.order-final-summary > div { display: flex; justify-content: space-between; }
.order-final-summary .total { padding-top: 10px; border-top: 1px solid var(--paper-line); font-size: 1.15rem; }
.consent-row { display: flex; gap: 9px; align-items: flex-start; margin: 16px 0; color: #5f5448; font-size: .78rem; }
.checkout-footnote { text-align: center; color: #7f7265; font-size: .68rem; }

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(92px + var(--safe-bottom));
    z-index: 130;
    transform: translate(-50%, 18px);
    opacity: 0;
    pointer-events: none;
    max-width: calc(100% - 36px);
    padding: 11px 14px;
    border-radius: 999px;
    background: #201b16;
    color: white;
    box-shadow: var(--shadow);
    font-size: .78rem;
    transition: .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.loading-state,
.error-state { grid-column: 1 / -1; padding: 34px 18px; text-align: center; color: var(--muted); }
.error-state { color: #e1a69e; }

@media (min-width: 620px) {
    .route-now-grid { grid-template-columns: 1fr 1fr; }
    .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .horizontal-products { grid-auto-columns: minmax(200px, 31%); }
}

@media (max-width: 390px) {
    .hero-actions { grid-template-columns: 1fr; }
    .product-grid { gap: 8px; padding-inline: 9px; }
    .product-card-body { padding: 9px; }
    .product-actions { grid-template-columns: 1fr; }
    .qty-control { min-height: 36px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}


/* =========================================================
   IRGO PWA INSTALL
========================================================= */
.pwa-install-card {
    position: relative;
    margin: 14px 16px 6px;
    padding: 15px 46px 15px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(239,199,126,.28);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(201,154,82,.15), transparent 40%),
        #15120f;
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.pwa-install-card[hidden] { display: none !important; }
.pwa-install-copy { flex: 1; min-width: 0; }
.pwa-install-copy span,
.pwa-install-copy strong,
.pwa-install-copy small { display: block; }
.pwa-install-copy span {
    color: var(--gold-2);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.pwa-install-copy strong {
    margin-top: 3px;
    color: var(--cream);
    font-size: .93rem;
}
.pwa-install-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.35;
}
.pwa-install-button {
    min-height: 42px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    background: var(--gold-2);
    color: #17120c;
    font-weight: 800;
    cursor: pointer;
}
.pwa-install-close {
    position: absolute;
    top: 6px;
    right: 7px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
}
@media (max-width: 430px) {
    .pwa-install-card {
        align-items: flex-start;
        flex-direction: column;
    }
    .pwa-install-button { width: 100%; }
}


/* =========================================================
   IRGO APP - KONTO KLIENTA
========================================================= */

.auth-switch {
    margin: 0 18px 12px;
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    border: 1px solid var(--line);
}

.auth-switch-btn {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.auth-switch-btn.active {
    background: var(--gold-2);
    color: #1a140d;
}

.auth-card,
.account-edit-card,
.customer-hero-card {
    margin: 0 18px 16px;
    padding: 22px;
    border-radius: 22px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--paper-line);
}

.auth-card {
    display: none;
}

.auth-card.active {
    display: block;
}

.auth-card h2,
.account-edit-card h2,
.customer-hero-card h2 {
    margin: 5px 0 16px;
    font-family: Georgia, "Times New Roman", serif;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.auth-field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    color: #655b50;
    font-size: .76rem;
    font-weight: 800;
}

.auth-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid rgba(44,34,23,.17);
    border-radius: 13px;
    background: #fffdf8;
    color: #1c1813;
    font: inherit;
    outline: 0;
}

.auth-field input:focus {
    border-color: #9b713b;
    box-shadow: 0 0 0 3px rgba(201,154,82,.14);
}

.auth-field input[readonly] {
    opacity: .72;
}

.auth-consent {
    margin: 4px 0 16px;
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 9px;
    align-items: start;
    color: #6b6258;
    font-size: .72rem;
    line-height: 1.45;
}

.auth-help {
    margin: 12px 0 0;
    color: #766b60;
    font-size: .72rem;
    line-height: 1.5;
}

.customer-hero-card {
    display: flex;
    gap: 14px;
    align-items: center;
}

.customer-hero-card h2 {
    margin: 3px 0;
}

.customer-hero-card p {
    margin: 0;
    color: #756a5e;
    font-size: .82rem;
}

.customer-benefit-card {
    margin: 0 18px 16px;
    padding: 22px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(239,199,126,.19), transparent 40%),
        linear-gradient(145deg, #7f211c, #49130f);
    border: 1px solid rgba(239,199,126,.22);
    box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

.customer-benefit-value {
    margin-top: 7px;
    color: #fff7e9;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
}

.customer-benefit-card p {
    margin: 7px 0 0;
    color: #e1cdb6;
    font-size: .78rem;
    line-height: 1.5;
}

.account-logout {
    width: calc(100% - 36px);
    min-height: 48px;
    margin: 0 18px 24px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    background: transparent;
    color: #d5c8ba;
    font-weight: 800;
    cursor: pointer;
}

.customer-order-card {
    overflow: hidden;
}

.customer-order-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.customer-order-meta {
    margin: 12px 0;
    padding: 11px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    border-top: 1px solid rgba(41,32,23,.1);
    border-bottom: 1px solid rgba(41,32,23,.1);
    color: #6c6256;
    font-size: .75rem;
}

.customer-order-meta strong {
    margin-left: auto;
    color: #251c14;
}

.customer-order-items {
    margin: 0 0 14px;
    display: grid;
    gap: 6px;
}

.customer-order-items > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #6b6156;
    font-size: .76rem;
}

.customer-order-items b {
    color: #251c14;
}

@media (max-width: 480px) {
    .auth-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .customer-order-top {
        display: block;
    }

    .customer-order-top .order-status {
        display: inline-flex;
        margin-top: 6px;
    }
}


/* =========================================================
   IRGO AUTH - STATUS / PASSWORD RECOVERY
========================================================= */

.auth-status-banner {
    margin: 0 18px 14px;
    padding: 14px 16px;
    border: 1px solid rgba(239,199,126,.24);
    border-radius: 16px;
    background: rgba(201,154,82,.10);
    color: #ead9c1;
    font-size: .78rem;
    line-height: 1.5;
}

.auth-status-banner[data-type="error"] {
    border-color: rgba(199,68,58,.32);
    background: rgba(130,31,26,.18);
}

.auth-text-button {
    width: 100%;
    margin-top: 10px;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: #8b6437;
    font: inherit;
    font-size: .76rem;
    font-weight: 800;
    cursor: pointer;
}

.auth-text-button:hover {
    text-decoration: underline;
}

.auth-text-button:disabled {
    opacity: .55;
    cursor: wait;
}

.auth-recovery-panel[hidden] {
    display: none !important;
}


/* =========================================================
   IRGO APP - KARTA LOJALNOŚCIOWA
========================================================= */

.customer-loyalty-app-card {
    margin: 0 18px 16px;
    padding: 21px;
    border: 1px solid rgba(239,199,126,.25);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 0%, rgba(239,199,126,.17), transparent 34%),
        linear-gradient(145deg, #1a1611, #0f0d0a);
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
}

.customer-loyalty-app-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.customer-loyalty-app-head strong {
    display: block;
    margin-top: 4px;
    color: #fff4e2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.customer-loyalty-app-head > span {
    padding-top: 3px;
    color: #a99b8c;
    font-size: .66rem;
    white-space: nowrap;
}

.customer-loyalty-app-stamps {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 6px;
    margin-top: 19px;
}

.customer-loyalty-app-stamps span {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(239,199,126,.27);
    border-radius: 50%;
    background: rgba(255,255,255,.025);
    color: #7b7065;
    font-size: .64rem;
    font-weight: 900;
}

.customer-loyalty-app-stamps span.filled {
    border-style: solid;
    border-color: #efc77e;
    background:
        radial-gradient(circle at 35% 30%, #f2d291, #a66f2c 75%);
    color: #24190c;
    box-shadow: 0 7px 16px rgba(0,0,0,.25);
}

.customer-loyalty-app-stamps span.reward {
    box-shadow:
        0 0 0 3px rgba(239,199,126,.12),
        0 8px 22px rgba(239,199,126,.16);
}

.customer-loyalty-app-card p {
    margin: 13px 0 0;
    color: #b5a99d;
    font-size: .76rem;
    line-height: 1.5;
}
