:root {
    --bg: #120d0a;
    --bg-soft: #1d140f;
    --panel: #201711;
    --panel-soft: #2a2018;
    --surface: #fff9f2;
    --surface-2: #f7efe5;
    --line: rgba(255, 255, 255, 0.1);
    --line-dark: rgba(23, 17, 11, 0.12);
    --text: #fefaf6;
    --text-dark: #1e1711;
    --muted: rgba(255, 245, 234, 0.72);
    --muted-dark: #746354;
    --primary: #c8952d;
    --primary-strong: #e2b457;
    --danger: #c45454;
    --success: #2d8f60;
    --shadow: 0 24px 70px rgba(10, 6, 3, 0.3);
    --radius-lg: 32px;
    --radius-md: 22px;
    --radius-sm: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    background: var(--surface);
    color: var(--text-dark);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

textarea {
    resize: vertical;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading.center {
    text-align: center;
}

.section-heading.row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2,
.section-heading h1 {
    margin: 8px 0 0;
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.12;
}

.section-heading p {
    margin: 0;
    color: var(--muted-dark);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 16px;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff8ef;
    box-shadow: 0 16px 36px rgba(200, 149, 45, 0.28);
}

.btn-dark {
    background: #16110d;
    color: #fff8ef;
    border-color: #16110d;
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border-color: rgba(22, 17, 13, 0.2);
}

.btn-danger {
    background: rgba(196, 84, 84, 0.12);
    border-color: rgba(196, 84, 84, 0.24);
    color: #8a2020;
}

.btn-block {
    width: 100%;
}

.btn-xl {
    min-height: 58px;
    padding-inline: 28px;
}

.site-header {
    position: relative;
    z-index: 20;
}

.site-header--floating {
    position: absolute;
    inset: 0 0 auto 0;
}

.site-header--solid {
    background: var(--bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 22px 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark--logo-only {
    gap: 0;
}

.brand-mark__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--primary);
    font-family: "Poppins", sans-serif;
    font-weight: 800;
}

.brand-mark__icon--media {
    width: clamp(84px, 16vw, 240px);
    min-width: 0;
    max-width: 240px;
    height: auto;
    max-height: 68px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    flex: 0 0 auto;
}

.brand-mark__icon--media img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 68px;
    object-fit: contain;
    object-position: left center;
}

.brand-mark--logo-only .brand-mark__text {
    display: none !important;
}

.brand-mark__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-mark__text strong {
    font-family: "Poppins", sans-serif;
    font-size: 1.2rem;
    color: var(--text);
}

.brand-mark__text small {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-mark--footer .brand-mark__text strong,
.brand-mark--sidebar .brand-mark__text strong {
    color: inherit;
}

.brand-mark--sidebar .brand-mark__icon--media {
    width: clamp(72px, 14vw, 180px);
    max-width: 180px;
    max-height: 54px;
}

.brand-mark--sidebar .brand-mark__icon--media img {
    max-height: 54px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: rgba(255, 247, 238, 0.88);
    font-size: 0.95rem;
    font-weight: 600;
}

.main-nav a {
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.main-nav--compact {
    gap: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-actions .btn {
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: transparent;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #fff8ef;
}

.hero-section {
    position: relative;
    padding: 132px 0 56px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(200, 149, 45, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(17, 12, 8, 0.95), rgba(17, 12, 8, 0.82)),
        linear-gradient(90deg, #0f0a07, #1f150f 55%, #2f2118);
    color: var(--text);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 28%, rgba(255, 201, 108, 0.14), transparent 16%),
        radial-gradient(circle at 94% 40%, rgba(255, 255, 255, 0.18), transparent 10%),
        radial-gradient(circle at 84% 74%, rgba(255, 214, 140, 0.08), transparent 18%);
    opacity: 0.9;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    gap: 32px;
    align-items: center;
}

.hero-copy h1 {
    margin: 14px 0 18px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-copy p {
    width: min(560px, 100%);
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.store-badges span {
    padding: 13px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
}

.hero-showcase {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
}

.phone-mockup {
    justify-self: center;
    width: min(100%, 340px);
    padding: 18px;
    border-radius: 42px;
    background: linear-gradient(180deg, #2a2119, #090705);
    box-shadow: var(--shadow);
}

.phone-notch {
    width: 120px;
    height: 22px;
    margin: 0 auto 14px;
    border-radius: 20px;
    background: #080605;
}

.phone-screen {
    border-radius: 32px;
    padding: 20px;
    background: linear-gradient(180deg, #14100d, #1f1610 55%, #17110d);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffddae, #c8952d);
}

.phone-user span {
    display: block;
    color: rgba(255, 248, 239, 0.72);
    font-size: 0.8rem;
}

.phone-user strong {
    font-family: "Poppins", sans-serif;
}

.points-pill {
    margin-left: auto;
    padding: 10px 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, #d6a03b, #bf7b1f);
    color: #fff;
    font-weight: 800;
    text-align: center;
}

.points-pill small {
    display: block;
    font-size: 0.68rem;
    opacity: 0.8;
}

.phone-progress {
    margin: 18px 0;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.phone-progress__label {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.progress-line {
    height: 8px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress-line span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--primary-strong));
}

.phone-list {
    display: grid;
    gap: 10px;
}

.phone-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
    align-items: center;
}

.phone-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 16px;
}

.phone-item strong {
    display: block;
}

.phone-item span {
    color: rgba(255, 248, 239, 0.6);
    font-size: 0.78rem;
}

.phone-item b {
    color: var(--primary-strong);
    font-size: 0.9rem;
}

.phone-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.phone-tabs span {
    padding: 10px 6px;
    border-radius: 14px;
    text-align: center;
    font-size: 0.74rem;
    color: rgba(255, 248, 239, 0.65);
    background: rgba(255, 255, 255, 0.04);
}

.phone-tabs .is-active {
    color: #111;
    background: linear-gradient(135deg, #fbe0a5, var(--primary));
}

.qr-stand {
    width: 220px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, #261b14, #15100d);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    text-align: center;
}

.qr-stand h3 {
    margin: 10px 0 18px;
    font-family: "Poppins", sans-serif;
    font-size: 1.5rem;
}

.qr-stand img {
    width: 150px;
    margin: 0 auto 16px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
}

.qr-stand__steps {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    color: var(--muted);
    font-size: 0.72rem;
}

.hero-sidecards {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.sidecard {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidecard span {
    color: var(--primary-strong);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.sidecard strong {
    display: block;
    margin-top: 8px;
    font-family: "Poppins", sans-serif;
}

.sidecard p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.feature-strip,
.steps-section,
.dual-panels,
.brands-section,
.cta-section,
.reward-section,
.menu-content {
    padding: 72px 0;
}

.feature-strip {
    background: linear-gradient(180deg, #fffaf5, #f8eee3);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.feature-card,
.promo-card,
.step-card,
.info-panel,
.metric-card,
.panel-card,
.table-card,
.reward-card,
.menu-card,
.menu-balance-card,
.order-panel,
.install-card,
.auth-card,
.auth-preview-card {
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 18px 45px rgba(45, 27, 13, 0.08);
}

.feature-card {
    padding: 24px 22px;
    text-align: center;
    border: 1px solid var(--line-dark);
}

.feature-card h3 {
    margin: 14px 0 10px;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted-dark);
    line-height: 1.7;
}

.feature-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--primary);
    background: rgba(200, 149, 45, 0.12);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.promo-card {
    grid-column: span 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 24px;
    background: linear-gradient(135deg, #1f140f, #342116);
    color: var(--text);
}

.promo-card h3 {
    margin: 10px 0;
    font-family: "Poppins", sans-serif;
    font-size: 1.35rem;
}

.promo-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.promo-card__cupcake {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 28%, #fff7d7 0, #fff7d7 16%, transparent 17%),
        radial-gradient(circle at 52% 48%, #f0c2a4 0, #f0c2a4 30%, transparent 31%),
        linear-gradient(180deg, #7e4a2f, #46261b);
    position: relative;
}

.steps-section {
    background: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    padding: 28px 22px;
    text-align: center;
    border: 1px solid var(--line-dark);
}

.step-no {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(200, 149, 45, 0.14);
    color: #9b6d14;
    font-weight: 800;
}

.step-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(200, 149, 45, 0.3);
    font-family: "Poppins", sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
}

.step-card h3 {
    margin: 0 0 10px;
    font-family: "Poppins", sans-serif;
}

.step-card p {
    margin: 0;
    color: var(--muted-dark);
    line-height: 1.7;
}

.dual-panels {
    background: linear-gradient(180deg, #f8efe3, #fffaf5);
}

.dual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.info-panel {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 34px;
}

.info-panel.dark {
    background: linear-gradient(135deg, #17110d, #2a1b13);
    color: var(--text);
}

.info-panel.light {
    background: linear-gradient(135deg, #fffdf9, #f4ebe0);
}

.info-panel h2 {
    margin: 10px 0 12px;
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
}

.info-panel p {
    margin: 0;
    line-height: 1.75;
}

.check-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.check-list li::before {
    content: "✓";
    margin-right: 10px;
    color: var(--primary);
    font-weight: 800;
}

.panel-phone-cluster {
    position: relative;
    min-width: 230px;
    height: 250px;
}

.mini-phone {
    position: absolute;
    width: 126px;
    height: 230px;
    right: 28px;
    bottom: 0;
    border-radius: 28px;
    background: linear-gradient(180deg, #0e0906, #271912);
    box-shadow: var(--shadow);
}

.mini-phone::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(200, 149, 45, 0.18), transparent 24%),
        linear-gradient(180deg, #12100d, #241710);
}

.mini-phone--alt {
    right: 120px;
    width: 112px;
    height: 210px;
    opacity: 0.78;
}

.panel-chart {
    position: relative;
    min-width: 270px;
}

.chart-screen {
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(24, 16, 11, 0.08);
}

.chart-bars {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    align-items: end;
    height: 180px;
}

.chart-bars span {
    display: block;
    border-radius: 18px 18px 8px 8px;
    background: linear-gradient(180deg, rgba(200, 149, 45, 0.85), rgba(200, 149, 45, 0.22));
}

.chart-bars span:nth-child(1) { height: 46%; }
.chart-bars span:nth-child(2) { height: 64%; }
.chart-bars span:nth-child(3) { height: 84%; }
.chart-bars span:nth-child(4) { height: 58%; }
.chart-bars span:nth-child(5) { height: 96%; }

.chart-float {
    position: absolute;
    right: -20px;
    bottom: -18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(20, 13, 8, 0.12);
    color: var(--muted-dark);
    font-size: 0.9rem;
}

.chart-float strong {
    display: block;
    margin-top: 6px;
    color: var(--text-dark);
    font-family: "Poppins", sans-serif;
}

.brands-section {
    background: #fff;
    padding: 62px 0 72px;
}

.link-arrow {
    color: #6b5538;
    font-weight: 800;
}

.brand-slider {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffaf5, #f7efe5);
    border: 1px solid var(--line-dark);
}

.brand-slider__track {
    display: flex;
    width: max-content;
    gap: 16px;
    padding: 18px;
    animation: marquee 26s linear infinite;
}

.brand-chip {
    min-width: 220px;
    padding: 24px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line-dark);
}

.brand-chip strong {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
}

.brand-chip span {
    display: block;
    margin-top: 10px;
    color: var(--muted-dark);
    font-size: 0.88rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.stats-strip {
    padding: 28px 0;
    background: linear-gradient(180deg, #231712, #17100c);
    color: var(--text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stats-grid article {
    padding: 12px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-grid article:last-child {
    border-right: 0;
}

.stats-grid strong {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
}

.stats-grid span {
    color: var(--muted);
}

.cta-section {
    position: relative;
    background:
        linear-gradient(135deg, rgba(18, 13, 10, 0.95), rgba(18, 13, 10, 0.78)),
        radial-gradient(circle at 78% 42%, rgba(200, 149, 45, 0.18), transparent 18%),
        linear-gradient(90deg, #120d0a, #2a1a12);
    color: var(--text);
}

.cta-panel {
    min-height: 420px;
    display: flex;
    align-items: center;
}

.cta-panel h2 {
    margin: 10px 0 14px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.02;
}

.cta-panel p {
    margin: 0;
    width: min(560px, 100%);
    color: var(--muted);
    line-height: 1.8;
}

.site-footer {
    background: #130e0b;
    color: var(--text);
    padding: 42px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px;
}

.footer-grid p,
.footer-grid a {
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid h4 {
    margin: 0 0 12px;
    font-family: "Poppins", sans-serif;
}

.footer-grid a {
    display: block;
}

.reference-home {
    background: #fffdf9;
}

.brand-mark__icon--reference svg {
    width: 28px;
    height: 28px;
}

.brand-mark--reference .brand-mark__icon {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
}

.main-nav--reference {
    gap: 22px;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}

.main-nav--reference a::after {
    bottom: -12px;
}

.reference-hero {
    position: relative;
    overflow: hidden;
    padding: 128px 0 34px;
    background:
        linear-gradient(90deg, rgba(14, 10, 7, 0.96) 0%, rgba(14, 10, 7, 0.9) 38%, rgba(14, 10, 7, 0.65) 100%),
        url("../images/reference-home.jpg") center top / cover no-repeat;
    color: var(--text);
}

.reference-hero__overlay,
.reference-hero__wood {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.reference-hero__overlay {
    background:
        radial-gradient(circle at 76% 18%, rgba(255, 202, 113, 0.14), transparent 16%),
        radial-gradient(circle at 90% 34%, rgba(255, 255, 255, 0.14), transparent 9%),
        radial-gradient(circle at 82% 60%, rgba(255, 208, 134, 0.12), transparent 14%);
    opacity: 0.95;
}

.reference-hero__wood {
    top: auto;
    height: 62px;
    background: linear-gradient(180deg, rgba(36, 24, 17, 0), rgba(36, 24, 17, 0.18) 20%, rgba(78, 48, 28, 0.55));
}

.reference-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.02fr 1.08fr;
    align-items: center;
    gap: 28px;
}

.reference-hero__copy {
    padding: 32px 0 56px;
}

.reference-hero__copy h1 {
    margin: 0;
    max-width: 580px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(3.2rem, 6vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.reference-hero__copy h1 span {
    color: var(--primary-strong);
}

.reference-hero .btn-outline,
.reference-cta .btn-outline {
    color: #fff8ef;
    border-color: rgba(255, 255, 255, 0.28);
}

.reference-hero__copy p {
    max-width: 520px;
    margin: 22px 0 0;
    color: rgba(255, 246, 236, 0.86);
    font-size: 1.06rem;
    line-height: 1.8;
}

.reference-hero__actions {
    margin-top: 34px;
}

.store-badges--market {
    gap: 12px;
}

.market-badge {
    display: inline-grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 12px;
    min-width: 168px;
    padding: 10px 16px;
    border-radius: 16px;
    background: rgba(9, 8, 7, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.market-badge b {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1rem;
}

.market-badge small {
    color: rgba(255, 245, 234, 0.62);
    font-size: 0.74rem;
}

.market-badge strong {
    color: #fff8ef;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.reference-hero__stage {
    position: relative;
    min-height: 620px;
}

.stage-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.6;
}

.stage-glow--left {
    width: 220px;
    height: 220px;
    left: 58px;
    top: 42px;
    background: rgba(200, 149, 45, 0.22);
}

.stage-glow--right {
    width: 140px;
    height: 140px;
    right: 80px;
    top: 72px;
    background: rgba(255, 223, 164, 0.16);
}

.reference-phone {
    position: absolute;
    left: 78px;
    top: 0;
    width: 330px;
    padding: 14px;
    border-radius: 42px;
    background: linear-gradient(180deg, #2e221a, #0a0705);
    box-shadow: 0 28px 80px rgba(6, 4, 3, 0.45);
    transform: rotate(-1deg);
}

.reference-phone__notch {
    width: 122px;
    height: 22px;
    margin: 0 auto 12px;
    border-radius: 20px;
    background: #090705;
}

.reference-phone__screen {
    padding: 20px 18px 18px;
    border-radius: 30px;
    background: linear-gradient(180deg, #17120e, #221812 58%, #18120d);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reference-phone__top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reference-phone__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fee4bf, #c8952d);
}

.reference-phone__top span {
    display: block;
    color: rgba(255, 245, 234, 0.6);
    font-size: 0.76rem;
}

.reference-phone__top strong {
    font-family: "Poppins", sans-serif;
    font-size: 0.94rem;
}

.reference-phone__score {
    margin-left: auto;
    min-width: 72px;
    padding: 11px 10px;
    border-radius: 18px;
    background: linear-gradient(135deg, #d6a03b, #bb7c1d);
    text-align: center;
    font-weight: 800;
}

.reference-phone__score small {
    display: block;
    font-size: 0.66rem;
    color: rgba(255, 248, 239, 0.82);
}

.reference-phone__progress {
    margin: 16px 0 14px;
    padding: 14px 14px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.reference-phone__progress p {
    margin: 0;
    color: rgba(255, 245, 234, 0.7);
    font-size: 0.78rem;
    line-height: 1.55;
}

.reference-phone__bar {
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.reference-phone__bar span {
    display: block;
    width: 62%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-strong));
}

.reference-phone__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: rgba(255, 245, 234, 0.72);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
}

.reference-phone__section-head strong {
    color: #fff8ef;
}

.reference-phone__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.reference-phone__card {
    display: grid;
    gap: 8px;
}

.reference-phone__card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
}

.reference-phone__card strong {
    font-size: 0.74rem;
}

.reference-phone__card span {
    color: var(--primary-strong);
    font-size: 0.72rem;
    font-weight: 700;
}

.reference-phone__nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.reference-phone__nav span {
    padding: 10px 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 245, 234, 0.58);
    font-size: 0.68rem;
    text-align: center;
}

.reference-phone__nav .is-active {
    background: linear-gradient(135deg, #f7dfaa, #c8952d);
    color: #1c140e;
    font-weight: 800;
}

.reference-stand {
    position: absolute;
    right: 82px;
    top: 122px;
    width: 228px;
}

.reference-stand__panel {
    position: relative;
    z-index: 1;
    padding: 24px 22px;
    border-radius: 30px 30px 24px 24px;
    background: linear-gradient(180deg, #241914, #100d0b);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 70px rgba(8, 5, 4, 0.45);
    text-align: center;
}

.reference-stand__panel h3 {
    margin: 10px 0 16px;
    font-family: "Poppins", sans-serif;
    font-size: 1.6rem;
    line-height: 1.05;
}

.reference-stand__panel img {
    width: 150px;
    margin: 0 auto 16px;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
}

.reference-stand__icons {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.68rem;
    color: rgba(255, 245, 234, 0.68);
}

.reference-stand__base {
    width: 82%;
    height: 22px;
    margin: -4px auto 0;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, #8b5b2d, #5a361c);
    box-shadow: 0 22px 30px rgba(31, 19, 12, 0.35);
}

.reference-dessert {
    position: absolute;
    right: 0;
    bottom: 34px;
    width: 188px;
    height: 128px;
}

.reference-dessert__cup {
    position: absolute;
    right: 20px;
    top: 0;
    width: 112px;
    height: 78px;
    border-radius: 0 0 58px 58px;
    background:
        radial-gradient(circle at 50% 40%, #f9e8cb 0, #f9e8cb 13%, transparent 14%),
        radial-gradient(circle at 50% 56%, #d9b68f 0, #d9b68f 48%, #f6f0e9 49%, #f6f0e9 72%, transparent 73%),
        linear-gradient(180deg, #f6f0e9, #ddd0c0);
    box-shadow: 0 18px 34px rgba(15, 9, 6, 0.22);
}

.reference-dessert__cup::after {
    content: "";
    position: absolute;
    right: -14px;
    top: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 5px solid #eadbc9;
}

.reference-dessert__slice {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 98px;
    height: 72px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, #4b2b1e 0 42%, #c6a88e 42% 58%, #5f3626 58% 100%);
    box-shadow: 0 18px 28px rgba(17, 11, 8, 0.26);
}

.perks-section {
    position: relative;
    z-index: 2;
    margin-top: -6px;
    background: linear-gradient(180deg, #f7efe5, #fff9f3);
    padding: 0 0 42px;
}

.perks-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.4fr;
    gap: 0;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(45, 27, 13, 0.09);
}

.perk-item {
    padding: 30px 22px 28px;
    text-align: center;
    border-right: 1px solid rgba(23, 17, 11, 0.08);
}

.perk-item:last-of-type {
    border-right: 0;
}

.perk-item__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    color: #6f4d22;
}

.perk-item__icon svg {
    width: 34px;
    height: 34px;
}

.perk-item h3 {
    margin: 0 0 12px;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    line-height: 1.28;
}

.perk-item p {
    margin: 0;
    color: var(--muted-dark);
    line-height: 1.7;
    font-size: 0.92rem;
}

.perk-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 24px 28px;
    background: linear-gradient(135deg, #2d1c12, #160f0b 80%);
    color: var(--text);
}

.perk-promo h3 {
    margin: 12px 0 10px;
    font-family: "Poppins", sans-serif;
    font-size: 1.6rem;
    line-height: 1.04;
}

.perk-promo p {
    margin: 0 0 18px;
    color: rgba(255, 245, 234, 0.72);
    line-height: 1.7;
}

.perk-promo__cupcake {
    position: relative;
    flex: 0 0 110px;
    width: 110px;
    height: 138px;
}

.perk-promo__cupcake::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 18px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 35%, #ffeecf 0 12%, transparent 13%),
        radial-gradient(circle at 52% 50%, #f4d5b4 0 45%, transparent 46%),
        radial-gradient(circle at 48% 65%, #f7efe5 0 68%, transparent 69%);
}

.perk-promo__cupcake::after {
    content: "";
    position: absolute;
    left: 28px;
    bottom: 16px;
    width: 54px;
    height: 42px;
    border-radius: 10px 10px 18px 18px;
    background: linear-gradient(180deg, #8d5833, #5a311c);
}

.workflow-section {
    padding: 62px 0 72px;
    background: #fff;
}

.reference-heading h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    letter-spacing: -0.03em;
}

.workflow-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.workflow-step {
    text-align: center;
    padding: 14px 6px;
}

.workflow-step__no {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(200, 149, 45, 0.16);
    color: #966a16;
    font-weight: 800;
}

.workflow-step__circle {
    width: 124px;
    height: 124px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid rgba(135, 97, 36, 0.24);
    color: #5b4122;
    background: #fff;
}

.workflow-step__circle svg {
    width: 52px;
    height: 52px;
}

.workflow-step h3 {
    margin: 0 0 10px;
    font-family: "Poppins", sans-serif;
    font-size: 1.18rem;
}

.workflow-step p {
    margin: 0;
    color: var(--muted-dark);
    line-height: 1.7;
}

.workflow-arrow {
    color: #b68a36;
    font-size: 2.2rem;
    line-height: 1;
}

.workflow-cta {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.showcase-section {
    padding: 0 0 52px;
    background: linear-gradient(180deg, #fff, #fbf1e7);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.showcase-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 340px;
    padding: 34px;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(45, 27, 13, 0.09);
}

.showcase-card--dark {
    background: linear-gradient(145deg, #19120d, #2c1c14);
    color: var(--text);
}

.showcase-card--light {
    background: linear-gradient(145deg, #fffdf9, #f4ebe0);
}

.showcase-card__content {
    flex: 1;
}

.showcase-card h2 {
    margin: 0 0 14px;
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    line-height: 1.08;
}

.showcase-card p {
    margin: 0;
    line-height: 1.76;
}

.showcase-list {
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    color: rgba(255, 245, 234, 0.8);
}

.showcase-list--dark {
    color: #624f39;
}

.showcase-list li::before {
    content: "✓";
    margin-right: 10px;
    color: var(--primary);
    font-weight: 800;
}

.store-badges--compact .market-badge {
    min-width: 146px;
}

.showcase-phone-pair {
    position: relative;
    width: 240px;
    height: 252px;
}

.showcase-phone {
    position: absolute;
    bottom: 0;
    width: 128px;
    height: 238px;
    border-radius: 30px;
    background: linear-gradient(180deg, #100c09, #251912);
    box-shadow: 0 24px 50px rgba(6, 4, 3, 0.3);
}

.showcase-phone::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(200, 149, 45, 0.22), transparent 20%),
        linear-gradient(180deg, #11100d, #231710);
}

.showcase-phone--front {
    right: 26px;
}

.showcase-phone--back {
    left: 24px;
    width: 114px;
    height: 212px;
    opacity: 0.82;
}

.showcase-laptop {
    position: relative;
    width: 270px;
    flex: 0 0 270px;
}

.showcase-laptop__screen {
    padding: 16px;
    border-radius: 24px 24px 18px 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(20, 13, 8, 0.12);
}

.showcase-laptop__screen::after {
    content: "";
    display: block;
    width: 104%;
    height: 14px;
    margin: 14px auto 0;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, #c7c9d0, #9fa3ac);
}

.showcase-laptop__chart {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    align-items: end;
    height: 170px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f9fbff, #eef3ff);
}

.showcase-laptop__chart span {
    display: block;
    border-radius: 16px 16px 6px 6px;
    background: linear-gradient(180deg, rgba(79, 141, 229, 0.9), rgba(79, 141, 229, 0.2));
}

.showcase-laptop__chart span:nth-child(1) { height: 36%; }
.showcase-laptop__chart span:nth-child(2) { height: 52%; }
.showcase-laptop__chart span:nth-child(3) { height: 76%; }
.showcase-laptop__chart span:nth-child(4) { height: 60%; }
.showcase-laptop__chart span:nth-child(5) { height: 88%; }
.showcase-laptop__chart span:nth-child(6) { height: 72%; }

.showcase-laptop__float {
    position: absolute;
    right: -18px;
    bottom: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(20, 13, 8, 0.12);
    color: #657386;
    font-size: 0.88rem;
}

.showcase-laptop__float strong {
    display: block;
    margin-top: 6px;
    font-family: "Poppins", sans-serif;
    color: var(--text-dark);
}

.brandwall-section {
    padding: 8px 0 50px;
    background: #fff;
}

.brandwall-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brandwall-controls__link {
    margin-right: 8px;
    color: #6c563a;
    font-weight: 800;
    font-size: 0.92rem;
}

.brandwall-controls button {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(22, 17, 13, 0.14);
    border-radius: 50%;
    background: #fff;
    color: #6c563a;
    font-size: 1.3rem;
}

.brandwall-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.brandwall-card {
    padding: 28px 18px;
    border-radius: 18px;
    border: 1px solid rgba(23, 17, 11, 0.1);
    background: #fff;
    text-align: center;
}

.brandwall-card strong {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.06em;
}

.brandwall-card span {
    display: block;
    margin-top: 6px;
    color: var(--muted-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.brandwall-card:nth-child(2) strong,
.brandwall-card:nth-child(4) strong {
    font-size: 1.22rem;
}

.numbers-band {
    background: linear-gradient(180deg, #261915, #140d0a);
    color: var(--text);
}

.numbers-band__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.numbers-band__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 26px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.numbers-band__item:last-child {
    border-right: 0;
}

.numbers-band__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.numbers-band__icon svg {
    width: 28px;
    height: 28px;
}

.numbers-band__item strong {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
}

.numbers-band__item span {
    color: rgba(255, 245, 234, 0.72);
}

.reference-cta {
    position: relative;
    min-height: 420px;
    background:
        linear-gradient(90deg, rgba(14, 10, 7, 0.94), rgba(14, 10, 7, 0.7) 55%, rgba(14, 10, 7, 0.4) 100%),
        url("../images/reference-home.jpg") center bottom / cover no-repeat;
    color: var(--text);
}

.reference-cta__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 70%, rgba(255, 203, 111, 0.12), transparent 14%),
        linear-gradient(180deg, rgba(14, 10, 7, 0), rgba(14, 10, 7, 0.16));
}

.reference-cta__panel {
    position: relative;
    z-index: 1;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.reference-cta__copy {
    max-width: 560px;
    padding: 34px 0;
}

.reference-cta__copy h2 {
    margin: 12px 0 14px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.6rem, 4vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.reference-cta__copy p {
    margin: 0;
    color: rgba(255, 245, 234, 0.8);
    line-height: 1.8;
}

.site-footer--reference {
    background: #120d0a;
}

.auth-shell,
.page-install .install-shell {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(200, 149, 45, 0.15), transparent 24%),
        linear-gradient(135deg, #0f0a07, #25170f);
    color: var(--text);
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 25%, rgba(255, 222, 164, 0.1), transparent 20%),
        radial-gradient(circle at 14% 78%, rgba(255, 202, 107, 0.08), transparent 24%);
}

.auth-grid {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr minmax(340px, 460px);
    gap: 34px;
    align-items: center;
    padding: 42px 0;
}

.auth-promo {
    display: grid;
    gap: 24px;
    align-content: center;
}

.auth-promo .brand-mark--logo-only {
    margin-bottom: 10px;
}

.page-auth .brand-mark__icon--media {
    width: clamp(180px, 28vw, 360px);
    max-width: 360px;
    max-height: 120px;
}

.page-auth .brand-mark__icon--media img {
    max-height: 120px;
}

.auth-promo h1 {
    margin: 16px 0 16px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.04;
}

.auth-promo p {
    width: min(580px, 100%);
    color: var(--muted);
    line-height: 1.9;
}

.auth-preview-card,
.auth-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-card .section-heading h2 {
    margin-bottom: 0;
}

.auth-card form {
    margin-top: 22px;
}

.auth-account-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.auth-account-switch__item {
    display: grid;
    gap: 8px;
    padding: 18px;
    text-align: left;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff8ef;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.auth-account-switch__item strong {
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
}

.auth-account-switch__item span {
    color: rgba(255, 248, 239, 0.72);
    line-height: 1.6;
    font-size: 0.9rem;
}

.auth-account-switch__item:hover,
.auth-account-switch__item.is-active {
    transform: translateY(-1px);
    border-color: rgba(255, 211, 133, 0.4);
    background: rgba(255, 237, 205, 0.12);
}

.auth-native-select {
    display: none;
}

.auth-mode-card {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 248, 239, 0.72);
    font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #1f1a16;
    background: linear-gradient(180deg, #ffffff, #f4ede4);
    border: 1px solid rgba(117, 97, 78, 0.18);
    box-shadow: 0 18px 34px rgba(16, 11, 7, 0.12);
}

.btn-google span {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    color: #db4437;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(117, 97, 78, 0.14);
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.auth-form-span-full {
    grid-column: 1 / -1;
}

.auth-note-card {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-note-card strong {
    display: block;
    margin-bottom: 8px;
    font-family: "Poppins", sans-serif;
    color: #fff8ef;
}

.auth-note-card p {
    margin: 0;
    width: auto;
    color: rgba(255, 248, 239, 0.78);
    line-height: 1.7;
}

.form-hint {
    display: block;
    margin-top: 8px;
    color: var(--muted-dark);
    line-height: 1.5;
    font-size: 0.82rem;
}

.auth-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-trust-list span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff8ef;
    font-size: 0.84rem;
    font-weight: 700;
}

.demo-accounts {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.demo-accounts span {
    color: #fff;
    font-weight: 700;
}

.stack-form {
    display: grid;
    gap: 16px;
}

.stack-form.compact {
    gap: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-grid > .full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    appearance: auto;
    -webkit-appearance: auto;
    color-scheme: light;
}

label {
    font-size: 0.9rem;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border-radius: 14px;
    border: 1px solid rgba(117, 97, 78, 0.22);
    background: #fff;
    color: var(--text-dark);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(200, 149, 45, 0.48);
    box-shadow: 0 0 0 4px rgba(200, 149, 45, 0.12);
}

.page-auth input,
.page-auth textarea,
.page-auth select {
    background: rgba(255, 255, 255, 0.94);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted-dark);
}

.checkbox-row input {
    width: 18px;
    min-height: 18px;
}

.auth-links {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.auth-links a {
    color: var(--primary-strong);
    font-weight: 700;
}

.flash-stack {
    display: grid;
    gap: 12px;
}

.flash-stack-fixed {
    position: fixed;
    top: 18px;
    right: 18px;
    width: min(420px, calc(100% - 36px));
    z-index: 60;
}

.live-toast-stack {
    position: fixed;
    top: 88px;
    right: 18px;
    width: min(380px, calc(100% - 36px));
    display: grid;
    gap: 12px;
    z-index: 95;
    pointer-events: none;
}

.live-toast {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(21, 15, 11, 0.96);
    color: #fff8ef;
    border: 1px solid rgba(226, 180, 87, 0.28);
    box-shadow: 0 18px 36px rgba(13, 9, 6, 0.28);
    pointer-events: auto;
    transform: translateX(0);
    opacity: 1;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.live-toast.is-hiding {
    opacity: 0;
    transform: translateX(14px);
}

.live-toast strong {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
}

.live-toast p {
    margin: 8px 0 0;
    color: rgba(255, 245, 234, 0.82);
    line-height: 1.6;
    font-size: 0.9rem;
}

.flash {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(16, 11, 7, 0.14);
}

.flash-success {
    background: rgba(45, 143, 96, 0.15);
    color: #14663d;
}

.flash-danger {
    background: rgba(196, 84, 84, 0.15);
    color: #832929;
}

.flash-hiding {
    opacity: 0;
    transform: translateY(-8px);
    transition: 0.25s ease;
}

.hero-grid > *,
.reference-hero__grid > *,
.showcase-grid > *,
.menu-hero__grid > *,
.auth-grid > *,
.dashboard-shell > *,
.split-panels > *,
.business-grid > *,
.showcase-card > *,
.menu-card > *,
.menu-card__head > * {
    min-width: 0;
}

.dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: linear-gradient(180deg, #f8f1e8, #fffaf5);
    overflow-x: clip;
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px 22px;
    background: linear-gradient(180deg, #17110d, #100b08);
    color: var(--text);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-sidebar .brand-mark--logo-only {
    display: flex;
    margin-bottom: 12px;
}

.dashboard-sidebar .brand-mark__icon--media {
    width: min(100%, 220px);
    max-width: 220px;
    max-height: 72px;
}

.dashboard-sidebar .brand-mark__icon--media img {
    max-height: 72px;
}

.dashboard-nav {
    display: grid;
    gap: 8px;
    margin-top: 32px;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    min-height: 52px;
    border-radius: 16px;
    color: rgba(255, 246, 236, 0.74);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.dashboard-nav a:hover,
.dashboard-nav .is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dashboard-main {
    padding: 28px;
}

.dashboard-main > * {
    min-width: 0;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.dashboard-topbar h1 {
    margin: 8px 0 0;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
}

.topbar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.metric-card {
    padding: 24px;
    border: 1px solid var(--line-dark);
}

.metric-card span {
    display: block;
    color: var(--muted-dark);
}

.metric-card strong {
    display: block;
    margin-top: 12px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.section-heading--tight {
    margin-bottom: 18px;
}

.section-heading--tight h3 {
    margin: 8px 0 0;
    font-family: "Poppins", sans-serif;
    font-size: 1.4rem;
}

.section-heading--tight p {
    margin: 10px 0 0;
}

.dashboard-section {
    margin-top: 30px;
}

.panel-card,
.table-card {
    padding: 24px;
    border: 1px solid var(--line-dark);
}

.panel-card--embedded {
    padding: 18px;
}

.split-panels {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
}

.stack-list {
    display: grid;
    gap: 16px;
}

.inline-editor,
.danger-inline,
.inline-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inline-editor {
    justify-content: space-between;
    border: 1px solid var(--line-dark);
    border-radius: 16px;
    padding: 14px;
}

.inline-editor__form {
    display: grid;
    grid-template-columns: 1.4fr 120px auto;
    gap: 12px;
    flex: 1;
}

.table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pos-terminal,
.pos-detail-grid,
.pos-summary-grid,
.pos-action-row,
.pos-quick-actions,
.pos-meta-grid {
    display: grid;
    gap: 18px;
}

.pos-mode-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pos-terminal {
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: start;
    position: relative;
}

.pos-terminal__topbar {
    display: none;
}

.pos-terminal__topbar strong {
    display: block;
    margin-top: 8px;
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.pos-terminal__topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pos-terminal__sidebar,
.pos-terminal__detail {
    min-width: 0;
}

.pos-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.pos-summary-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line-dark);
    background: linear-gradient(180deg, #fffdf9, #f7efe3);
}

.pos-summary-card span {
    display: block;
    color: var(--muted-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pos-summary-card strong {
    display: block;
    margin-top: 12px;
    font-family: "Poppins", sans-serif;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.pos-order-list {
    display: grid;
    gap: 14px;
    max-height: min(72vh, 980px);
    overflow: auto;
    padding-right: 4px;
    align-content: start;
}

.pos-table-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    align-items: start;
}

.pos-order-card {
    width: 100%;
    padding: 18px;
    text-align: left;
    border-radius: 22px;
    border: 1px solid var(--line-dark);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pos-order-card:hover,
.pos-order-card.is-selected {
    border-color: rgba(200, 149, 45, 0.5);
    box-shadow: 0 18px 36px rgba(45, 27, 13, 0.08);
    transform: translateY(-1px);
}

.pos-table-card {
    padding: 16px 14px 18px;
    display: grid;
    justify-items: center;
    background: linear-gradient(180deg, #fffdf9, #f7efe3);
}

.pos-table-card.is-occupied {
    border-color: rgba(180, 54, 54, 0.28);
    background: linear-gradient(180deg, #fff6f4, #f7e3df);
}

.pos-table-card.is-empty {
    opacity: 0.88;
    border-style: dashed;
    border-color: rgba(42, 132, 83, 0.28);
    background: linear-gradient(180deg, #f8fff9, #ebf6ee);
}

.pos-table-card.is-passive {
    opacity: 0.9;
    border-style: dashed;
    border-color: rgba(164, 123, 48, 0.28);
    background: linear-gradient(180deg, #fffaf2, #f2e7d1);
}

.pos-table-card--external .pos-table-card__plate {
    background: linear-gradient(180deg, #fff7ec, #f5d8bf);
}

.pos-table-card--external .pos-table-card__leg {
    background: linear-gradient(180deg, #f0a552, #b76817);
}

.pos-table-card__plate {
    width: 118px;
    height: 118px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    padding: 14px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fefaf6, #eddcc5);
    border: 2px solid rgba(200, 149, 45, 0.22);
    box-shadow: inset 0 6px 16px rgba(255, 255, 255, 0.8), 0 18px 30px rgba(45, 27, 13, 0.1);
    text-align: center;
}

.pos-table-card.is-occupied .pos-table-card__plate {
    border-color: rgba(181, 62, 62, 0.5);
    box-shadow: inset 0 8px 18px rgba(255, 255, 255, 0.82), 0 0 0 6px rgba(214, 67, 67, 0.12), 0 18px 30px rgba(90, 21, 21, 0.14);
}

.pos-table-card.is-empty .pos-table-card__plate {
    border-color: rgba(50, 147, 96, 0.44);
    box-shadow: inset 0 8px 18px rgba(255, 255, 255, 0.84), 0 0 0 6px rgba(47, 164, 96, 0.12), 0 18px 30px rgba(23, 78, 47, 0.12);
}

.pos-table-card.is-passive .pos-table-card__plate {
    border-color: rgba(180, 131, 46, 0.4);
}

.pos-table-card.is-selected .pos-table-card__plate {
    border-color: rgba(200, 149, 45, 0.64);
    box-shadow: inset 0 6px 16px rgba(255, 255, 255, 0.86), 0 20px 34px rgba(200, 149, 45, 0.18);
}

.pos-table-card__plate small {
    display: block;
    color: var(--muted-dark);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pos-table-card__plate strong {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.15;
    word-break: break-word;
}

.pos-table-card--external .pos-table-card__plate strong {
    font-size: 0.86rem;
}

.pos-table-card__leg {
    width: 16px;
    height: 34px;
    margin-top: -2px;
    border-radius: 999px;
    background: linear-gradient(180deg, #cda25c, #8b6a3f);
    box-shadow: 0 8px 18px rgba(45, 27, 13, 0.16);
}

.pos-table-card__info {
    width: 100%;
    margin-top: 12px;
}

.pos-table-card__info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pos-table-card__signal,
.table-card__state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-dark);
}

.pos-table-card__info-head b {
    color: var(--text-dark);
    font-family: "Poppins", sans-serif;
    font-size: 0.96rem;
}

.table-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4);
}

.table-light--green {
    background: #2ea85f;
    box-shadow: 0 0 0 4px rgba(46, 168, 95, 0.14), 0 0 14px rgba(46, 168, 95, 0.42);
}

.table-light--red {
    background: #d44f4f;
    box-shadow: 0 0 0 4px rgba(212, 79, 79, 0.12), 0 0 14px rgba(212, 79, 79, 0.4);
}

.table-light--amber {
    background: #d19a38;
    box-shadow: 0 0 0 4px rgba(209, 154, 56, 0.12), 0 0 14px rgba(209, 154, 56, 0.38);
}

.pos-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}

.pos-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(117, 97, 78, 0.14);
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 700;
}

.pos-pill--occupied {
    background: rgba(212, 79, 79, 0.08);
    color: #973434;
}

.pos-pill--empty {
    background: rgba(46, 168, 95, 0.08);
    color: #1f7b4e;
}

.pos-order-card__head,
.pos-detail-panel__head,
.pos-order-card__foot,
.receipt-paper__meta,
.receipt-paper__totals div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pos-order-card__id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(200, 149, 45, 0.12);
    color: #9a6f18;
    font-weight: 800;
}

.pos-order-card strong,
.pos-detail-panel h3,
.receipt-paper__brand h4 {
    font-family: "Poppins", sans-serif;
}

.pos-order-card strong {
    display: block;
    margin: 14px 0 6px;
    font-size: 1.18rem;
    color: var(--text-dark);
}

.pos-order-card__customer {
    display: block;
    color: var(--muted-dark);
    font-weight: 700;
}

.pos-order-card p {
    margin: 10px 0 0;
    color: var(--muted-dark);
    line-height: 1.6;
    font-size: 0.9rem;
}

.pos-order-card__foot {
    margin-top: 14px;
}

.pos-order-card__foot b {
    font-size: 1.02rem;
}

.pos-order-card__foot span {
    color: var(--muted-dark);
    font-size: 0.84rem;
    font-weight: 700;
}

.pos-detail-panel {
    padding: 22px;
    border-radius: 28px;
    border: 1px solid var(--line-dark);
    background: linear-gradient(180deg, #fffdf9, #f7efe3);
}

.pos-detail-panel__head {
    align-items: flex-start;
    margin-bottom: 18px;
}

.pos-detail-panel__head h3 {
    margin: 8px 0 0;
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.pos-detail-panel__head p {
    margin: 8px 0 0;
    color: var(--muted-dark);
}

.pos-detail-panel__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.pos-detail-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.pos-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}

.pos-meta-grid div,
.pos-note-box,
.pos-totals div {
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(117, 97, 78, 0.12);
}

.pos-meta-grid span,
.pos-note-box span,
.pos-totals span {
    display: block;
    color: var(--muted-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pos-meta-grid strong,
.pos-totals strong {
    display: block;
    margin-top: 10px;
    font-family: "Poppins", sans-serif;
    color: var(--text-dark);
}

.pos-note-box p {
    margin: 10px 0 0;
    color: var(--text-dark);
    line-height: 1.7;
}

.pos-items-card .data-table {
    min-width: 0;
}

.pos-checkout-card {
    display: grid;
    gap: 18px;
    align-content: start;
}

.pos-checkout-card__top h3 {
    margin: 8px 0 0;
    font-family: "Poppins", sans-serif;
}

.pos-totals {
    display: grid;
    gap: 12px;
}

.pos-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pos-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.receipt-template {
    display: none;
}

.receipt-paper {
    max-width: 320px;
    margin: 0 auto;
    color: #111;
}

.receipt-paper__brand {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(17, 17, 17, 0.38);
    text-align: center;
}

.receipt-paper__brand img {
    max-height: 72px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.receipt-paper__brand h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.receipt-paper__brand p,
.receipt-paper__meta span,
.receipt-paper__note,
.receipt-paper__footer {
    font-size: 0.78rem;
    line-height: 1.65;
}

.receipt-paper__meta {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(17, 17, 17, 0.38);
}

.receipt-paper__table {
    width: 100%;
    border-collapse: collapse;
}

.receipt-paper__table th,
.receipt-paper__table td {
    padding: 6px 0;
    border-bottom: 1px dotted rgba(17, 17, 17, 0.18);
    font-size: 0.78rem;
    text-align: left;
}

.receipt-paper__table th:last-child,
.receipt-paper__table td:last-child {
    text-align: right;
}

.receipt-paper__totals {
    display: grid;
    gap: 6px;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px dashed rgba(17, 17, 17, 0.38);
}

.receipt-paper__footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed rgba(17, 17, 17, 0.38);
    text-align: center;
    font-weight: 700;
}

body.pos-focus-mode {
    overflow: hidden;
}

.pos-terminal.is-expanded {
    position: fixed;
    inset: 12px;
    z-index: 240;
    grid-template-columns: 360px minmax(0, 1fr);
    align-content: start;
    padding: 18px;
    border-radius: 28px;
    background: linear-gradient(180deg, #fdf8f1, #f4eadf);
    border: 1px solid rgba(117, 97, 78, 0.16);
    box-shadow: 0 34px 90px rgba(12, 8, 5, 0.34);
    overflow: auto;
}

.pos-terminal.is-expanded .pos-terminal__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    grid-column: 1 / -1;
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255, 253, 249, 0.96);
    border: 1px solid rgba(117, 97, 78, 0.12);
    backdrop-filter: blur(12px);
}

.pos-terminal.is-expanded .pos-order-list {
    max-height: calc(100vh - 230px);
    overflow: auto;
    padding-right: 4px;
}

.pos-terminal.is-expanded .pos-terminal__detail {
    min-height: calc(100vh - 190px);
}

.pos-terminal.is-expanded .pos-detail-panel {
    min-height: 100%;
}

.pos-terminal.is-expanded .pos-items-card {
    max-height: 420px;
    overflow: auto;
}

.report-period-grid,
.report-grid,
.report-ledger-grid {
    display: grid;
    gap: 18px;
}

.report-period-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.report-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    margin-bottom: 18px;
}

.report-ledger-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-period-card {
    background: linear-gradient(180deg, #fffdf9, #f7efe3);
}

.report-period-card h3 {
    margin: 10px 0 0;
    font-family: "Poppins", sans-serif;
    font-size: 1.6rem;
}

.report-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.report-kpis div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(117, 97, 78, 0.12);
}

.report-kpis span {
    display: block;
    color: var(--muted-dark);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.report-kpis strong {
    display: block;
    margin-top: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 1.15rem;
    color: var(--text-dark);
}

.report-status-list {
    display: grid;
    gap: 12px;
}

.report-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line-dark);
    background: #fffaf5;
}

.report-status-card strong,
.report-status-card b {
    font-family: "Poppins", sans-serif;
}

.report-status-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
}

.report-status-card b {
    color: var(--text-dark);
    font-size: 1.05rem;
    white-space: nowrap;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 18px;
}

.integration-card {
    display: grid;
    gap: 18px;
}

.integration-card__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
}

.integration-linkbox,
.integration-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.integration-card__head h3 {
    margin: 12px 0 10px;
    font-family: "Poppins", sans-serif;
    font-size: 1.35rem;
}

.integration-card__head p,
.integration-linkbox p {
    margin: 0;
    color: var(--muted-dark);
    line-height: 1.7;
}

.integration-card__status {
    display: grid;
    gap: 8px;
    justify-items: end;
    text-align: right;
    min-width: 128px;
}

.integration-card__status small {
    color: var(--muted-dark);
    font-size: 0.82rem;
}

.provider-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--provider-theme, #c8952d) 14%, white);
    color: color-mix(in srgb, var(--provider-theme, #c8952d) 82%, black);
    border: 1px solid color-mix(in srgb, var(--provider-theme, #c8952d) 28%, white);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.integration-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.integration-meta div {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdf9, #f7efe3);
    border: 1px solid rgba(117, 97, 78, 0.12);
}

.integration-meta span {
    display: block;
    color: var(--muted-dark);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.integration-meta strong {
    display: block;
    margin-top: 10px;
    font-family: "Poppins", sans-serif;
    color: var(--text-dark);
    word-break: normal;
    overflow-wrap: anywhere;
}

.integration-linkbox {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px dashed rgba(200, 149, 45, 0.34);
    background: linear-gradient(180deg, #fffaf4, #f6ecdf);
}

.integration-linkbox strong {
    display: block;
    margin-bottom: 8px;
    font-family: "Poppins", sans-serif;
    color: var(--text-dark);
}

.integration-actions {
    flex-wrap: wrap;
}

.integration-actions .btn {
    min-width: 180px;
}

.muted-copy {
    margin: 0;
    color: var(--muted-dark);
    line-height: 1.8;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.data-table th,
.data-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(117, 97, 78, 0.14);
    vertical-align: top;
    word-break: break-word;
}

.data-table th {
    color: #735e49;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.table-form {
    display: grid;
    gap: 10px;
}

.table-form--wide {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    align-items: center;
}

.tables-grid,
.reward-grid,
.menu-grid {
    display: grid;
    gap: 18px;
}

.tables-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reward-card,
.menu-card {
    overflow: hidden;
}

.reward-card.compact {
    padding: 22px;
}

.reward-card img,
.menu-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.reward-card > div,
.menu-card__body {
    padding: 20px;
}

.reward-card h3,
.menu-card h3 {
    margin: 0;
    font-family: "Poppins", sans-serif;
}

.reward-card p,
.menu-card p {
    color: var(--muted-dark);
    line-height: 1.7;
}

.reward-card strong,
.menu-card strong {
    display: block;
    margin-top: 12px;
    font-family: "Poppins", sans-serif;
}

.reward-card span {
    display: block;
    margin: 6px 0 16px;
    color: var(--muted-dark);
}

.table-card--qr {
    display: grid;
    gap: 12px;
    align-content: start;
    text-align: center;
}

.table-card--qr img {
    width: 150px;
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
}

.table-card__state {
    justify-content: center;
}

.table-card__state--occupied {
    color: #973434;
}

.table-card__state--empty {
    color: #1f7b4e;
}

.table-card__state--passive {
    color: #9b6c1d;
}

.page-menu {
    background: linear-gradient(180deg, #f7efe5, #fffaf5);
}

.menu-hero {
    padding: 56px 0 34px;
    background: linear-gradient(135deg, var(--brand-secondary), #2a1a12);
    color: #fff9f2;
}

.hero-section .btn-outline,
.cta-section .btn-outline,
.site-header--floating .btn-outline,
.menu-hero .btn-outline {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.32);
}

.menu-hero__grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 22px;
    align-items: center;
}

.menu-hero h1 {
    margin: 12px 0 12px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.05;
}

.menu-hero p {
    margin: 0;
    color: rgba(255, 248, 239, 0.78);
    line-height: 1.8;
}

.menu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    color: rgba(255, 248, 239, 0.84);
}

.menu-balance-card {
    padding: 24px;
    color: var(--text-dark);
}

.menu-balance-card strong {
    display: block;
    margin: 12px 0 10px;
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.category-pills a {
    padding: 12px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line-dark);
    font-weight: 700;
}

.menu-category + .menu-category {
    margin-top: 34px;
}

.menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    border: 1px solid var(--line-dark);
}

.menu-card__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.tag {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(200, 149, 45, 0.12);
    color: #9a6f18;
    font-size: 0.76rem;
    font-weight: 800;
}

.menu-card__foot {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.menu-card__foot span {
    color: #8b7049;
}

.qty-box {
    display: grid;
    gap: 6px;
    width: 94px;
}

.qty-box span {
    color: var(--muted-dark);
    font-size: 0.82rem;
}

.order-builder {
    display: grid;
    gap: 28px;
}

.order-notice {
    margin-bottom: 24px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(200, 149, 45, 0.22);
    background: linear-gradient(180deg, #fffdf9, #f7efe3);
    box-shadow: 0 18px 40px rgba(45, 27, 13, 0.06);
}

.order-notice h3,
.order-panel h3 {
    margin: 10px 0 10px;
    font-family: "Poppins", sans-serif;
    font-size: 1.4rem;
}

.order-notice p,
.order-panel__meta {
    margin: 0;
    color: var(--muted-dark);
    line-height: 1.8;
}

.order-panel {
    padding: 28px;
    display: grid;
    gap: 16px;
    border: 1px solid rgba(200, 149, 45, 0.18);
    background: linear-gradient(180deg, #fffdf9, #f7efe3);
}

.order-panel--locked {
    opacity: 0.96;
}

.menu-content {
    padding-top: 48px;
}

.install-shell {
    display: grid;
    place-items: center;
    padding: 36px 16px;
}

.install-card {
    width: min(880px, 100%);
    padding: 34px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.install-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.install-logo {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
}

.install-brand h1 {
    margin: 8px 0 10px;
    font-family: "Poppins", sans-serif;
    font-size: 2.1rem;
}

.install-brand p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.install-form {
    display: grid;
    gap: 22px;
}

.install-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.install-actions p,
.install-note {
    color: var(--muted);
    line-height: 1.7;
}

.install-note span {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-weight: 700;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: capitalize;
}

.status-pending { background: rgba(217, 154, 53, 0.14); color: #9b6d14; }
.status-preparing,
.status-approved,
.status-served { background: rgba(80, 126, 206, 0.14); color: #2f5ea0; }
.status-completed,
.status-delivered,
.status-active { background: rgba(45, 143, 96, 0.14); color: #1f7b4e; }
.status-passive { background: rgba(102, 105, 117, 0.14); color: #555c66; }
.status-cancelled,
.status-blocked { background: rgba(196, 84, 84, 0.14); color: #8a2d2d; }

@media (max-width: 1080px) {
    .hero-grid,
    .auth-grid,
    .menu-hero__grid,
    .dashboard-shell,
    .dual-grid,
    .split-panels,
    .integration-meta,
    .pos-terminal,
    .pos-detail-grid,
    .pos-summary-grid,
    .pos-action-row,
    .pos-quick-actions,
    .pos-meta-grid,
    .report-period-grid,
    .report-grid,
    .report-ledger-grid {
        grid-template-columns: 1fr;
    }

    .pos-mode-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .pos-terminal.is-expanded {
        inset: 8px;
        padding: 12px;
        grid-template-columns: 1fr;
    }

    .pos-terminal.is-expanded .pos-terminal__topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .pos-terminal.is-expanded .pos-order-list,
    .pos-terminal.is-expanded .pos-terminal__detail,
    .pos-terminal.is-expanded .pos-items-card {
        max-height: none;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reference-hero__grid,
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .brandwall-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .numbers-band__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reference-hero__stage {
        min-height: 560px;
    }

    .reference-phone {
        left: 20px;
    }

    .reference-stand {
        right: 16px;
    }

    .perks-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .perk-promo {
        grid-column: 1 / -1;
    }

    .workflow-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-arrow {
        display: none;
    }

    .promo-card {
        grid-column: 1 / -1;
    }

    .steps-grid,
    .dashboard-metrics,
    .stats-grid,
    .reward-grid,
    .tables-grid,
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-sidebar {
        position: relative;
        height: auto;
    }
}

@media (max-width: 820px) {
    .header-inner {
        row-gap: 12px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% - 2px);
        left: 16px;
        right: 16px;
        padding: 18px;
        border-radius: 18px;
        background: rgba(18, 13, 10, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        align-items: start;
        order: 3;
        width: calc(100% - 32px);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .header-actions .btn {
        min-height: 44px;
        padding-inline: 14px;
        font-size: 0.86rem;
    }

    .brand-mark__icon--media {
        width: clamp(72px, 34vw, 180px);
        max-width: 180px;
        max-height: 48px;
    }

    .page-auth .brand-mark__icon--media {
        width: clamp(160px, 44vw, 260px);
        max-width: 260px;
        max-height: 96px;
    }

    .page-auth .brand-mark__icon--media img {
        max-height: 96px;
    }

    .auth-account-switch {
        grid-template-columns: 1fr;
    }

    .hero-showcase,
    .feature-grid,
    .steps-grid,
    .reward-grid,
    .menu-grid,
    .tables-grid,
    .stats-grid,
    .footer-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .reference-hero {
        padding-top: 110px;
    }

    .reference-hero__stage {
        min-height: auto;
        display: grid;
        gap: 18px;
    }

    .reference-phone,
    .reference-stand,
    .reference-dessert {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .reference-stand {
        max-width: 250px;
    }

    .reference-dessert {
        display: none;
    }

    .reference-phone__cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .perks-strip {
        grid-template-columns: 1fr;
    }

    .perk-item {
        border-right: 0;
        border-bottom: 1px solid rgba(23, 17, 11, 0.08);
    }

    .perk-promo {
        flex-direction: column;
        align-items: start;
    }

    .workflow-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .showcase-card {
        flex-direction: column;
        align-items: start;
    }

    .showcase-phone-pair,
    .showcase-laptop {
        margin: 0 auto;
    }

    .brandwall-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brandwall-controls {
        flex-wrap: wrap;
    }

    .numbers-band__item {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .numbers-band__item:last-child {
        border-bottom: 0;
    }

    .phone-mockup,
    .qr-stand {
        width: 100%;
    }

    .hero-sidecards {
        grid-template-columns: 1fr;
    }

    .menu-card {
        grid-template-columns: 1fr;
    }

    .menu-meta,
    .menu-card__head,
    .menu-card__foot,
    .auth-links {
        flex-direction: column;
        align-items: stretch;
    }

    .qty-box {
        width: 100%;
    }

    .inline-editor,
    .inline-editor__form,
    .table-form--wide,
    .install-actions,
    .integration-card__head,
    .integration-linkbox,
    .integration-actions,
    .dashboard-topbar,
    .section-heading.row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-main {
        padding: 18px;
    }

    .dashboard-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .integration-card__status {
        justify-items: start;
        text-align: left;
    }

    .pos-detail-panel__head,
    .pos-detail-panel__badges,
    .pos-table-card__info-head {
        flex-direction: column;
        align-items: stretch;
    }

    .pos-terminal__topbar-actions,
    .topbar-actions {
        width: 100%;
    }

    .pos-terminal__topbar-actions .btn,
    .topbar-actions .btn,
    .pos-mode-actions .btn {
        width: 100%;
    }

    .live-toast-stack {
        top: auto;
        bottom: 18px;
    }
}

@media (max-width: 560px) {
    .hero-section {
        padding-top: 112px;
    }

    .hero-copy h1,
    .auth-promo h1,
    .menu-hero h1,
    .cta-panel h2 {
        font-size: 2.2rem;
    }

    .reference-hero__copy h1,
    .reference-cta__copy h2 {
        font-size: 2.35rem;
    }

    .reference-phone__cards {
        grid-template-columns: 1fr;
    }

    .market-badge {
        width: 100%;
        min-width: 0;
    }

    .showcase-card,
    .reference-phone {
        padding: 20px;
    }

    .reference-phone__screen {
        padding: 16px;
    }

    .brandwall-card strong {
        font-size: 1.3rem;
    }

    .brandwall-grid,
    .numbers-band__grid {
        grid-template-columns: 1fr;
    }

    .auth-card,
    .auth-preview-card,
    .install-card,
    .panel-card,
    .table-card {
        padding: 20px;
    }

    .brand-chip {
        min-width: 180px;
    }

    .brand-mark__icon--media {
        width: clamp(68px, 42vw, 150px);
        max-width: 150px;
        max-height: 42px;
    }

    .page-auth .brand-mark__icon--media {
        width: clamp(150px, 58vw, 220px);
        max-width: 220px;
        max-height: 84px;
    }

    .page-auth .brand-mark__icon--media img {
        max-height: 84px;
    }

    .dashboard-nav {
        grid-template-columns: 1fr;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .dashboard-sidebar,
    .dashboard-main {
        padding: 16px;
    }

    .dashboard-metrics,
    .pos-summary-grid,
    .pos-table-grid,
    .pos-action-row,
    .pos-quick-actions,
    .pos-meta-grid {
        grid-template-columns: 1fr;
    }

    .panel-card,
    .table-card,
    .pos-detail-panel {
        padding: 16px;
    }

    .data-table {
        min-width: 620px;
    }

    .pos-table-card__plate {
        width: 102px;
        height: 102px;
    }

    .pos-order-card {
        padding: 14px;
    }

    .section-heading h2,
    .section-heading h1 {
        font-size: 1.7rem;
    }

    .live-toast-stack {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 12px;
    }
}
