/* Noto Sans Lao — local fonts (no CDN) */
@font-face {
    font-family: 'Noto Sans Lao';
    src: url('../../fonts/noto-sans-lao/NotoSansLao-Regular-static.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Sans Lao';
    src: url('../../fonts/noto-sans-lao/NotoSansLao-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Sans Lao';
    src: url('../../fonts/noto-sans-lao/NotoSansLao-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Sans Lao';
    src: url('../../fonts/noto-sans-lao/NotoSansLao-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Sans Thai';
    src: url('../../fonts/noto-sans-thai/NotoSansThai-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Sans Thai';
    src: url('../../fonts/noto-sans-thai/NotoSansThai-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand: #0f6b4c;
    --brand-dark: #0a4d37;
    --brand-soft: #e7f3ee;
    --surface: #f3f6f4;
    --sidebar-w: 260px;
    --sidebar-w-collapsed: 76px;
    --topbar-h: 58px;
    --font-sans: 'Noto Sans Lao', 'Noto Sans Thai', 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
}

*, *::before, *::after { font-family: inherit; }

html, body {
    font-family: var(--font-sans);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.bg-app {
    background: linear-gradient(160deg, #eef5f1 0%, #f7f3ea 100%);
    min-height: 100vh;
    margin: 0;
}

body.has-shell { overflow-x: hidden; }

h1, h2, h3, h4, h5, h6, .btn, .form-control, .form-select, .form-label,
.nav-link, .badge, .alert, .table, .stat-card, .card, .nav-item {
    font-family: var(--font-sans);
}

h1, h2, h3 { font-weight: 700; }
.btn, .form-label { font-weight: 500; }

/* ===== Shell / Sidebar ===== */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--brand-dark) 0%, #0c5a40 55%, #0f6b4c 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    transition: width .2s ease, transform .2s ease;
    box-shadow: 4px 0 24px rgba(10, 77, 55, .18);
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.app-sidebar::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

.sidebar-brand {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 .75rem 0 1rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    min-width: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    overflow: hidden;
}

.brand-mark.has-logo {
    background: #fff;
    padding: 2px;
}

.brand-mark.has-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-toggle {
    border: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-toggle:hover { background: rgba(255,255,255,.22); }

.sidebar-nav {
    flex: 1;
    min-height: 0; /* allow flex child to scroll without growing aside */
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .75rem .6rem 1rem;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* Legacy Edge */
}
.sidebar-nav::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar-thumb,
.sidebar-nav::-webkit-scrollbar-track {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.nav-section {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .65;
    padding: .85rem .75rem .35rem;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .75rem;
    margin-bottom: .2rem;
    border-radius: 10px;
    color: rgba(255,255,255,.92);
    text-decoration: none;
    transition: background .15s ease;
    white-space: nowrap;
    position: relative;
}
.nav-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    line-height: 1;
    border-radius: .55rem;
    flex-shrink: 0;
    color: #fff !important;
    background: rgba(255, 255, 255, .18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.nav-item i.bi-cart3 { background: #2563eb; }
.nav-item i.bi-receipt { background: #d97706; }
.nav-item i.bi-basket { background: #059669; }
.nav-item i.bi-person-badge { background: #7c3aed; }
.nav-item i.bi-cup-straw { background: #0891b2; }
.nav-item i.bi-cash-stack,
.nav-item i.bi-cash-coin { background: #e11d48; }
.nav-item i.bi-calendar-check { background: #9333ea; }
.nav-item i.bi-tags { background: #db2777; }
.nav-item i.bi-shield-lock { background: #475569; }
.nav-item i.bi-grid-3x3-gap { background: #0d9488; }
.nav-item i.bi-printer { background: #0284c7; }
.nav-item i.bi-wallet2 { background: #ca8a04; }
.nav-item i.bi-gear,
.nav-item i.bi-sliders { background: #64748b; }
.nav-item i.bi-egg-fried { background: #ea580c; }
.nav-item i.bi-bag-plus { background: #16a34a; }
.nav-item i.bi-speedometer2 { background: #2563eb; }
.nav-item i.bi-box-seam { background: #7c3aed; }
.nav-item i.bi-shop { background: #059669; }
.nav-item i.bi-person-gear { background: #6366f1; }
.nav-item i.bi-journal-richtext { background: #0d9488; }
.nav-item i.bi-lightning-charge { background: #f59e0b; }
.nav-item i.bi-bag-heart { background: #db2777; }
.nav-item i.nav-yt-icon,
.nav-item i.bi-youtube {
    background: #fff !important;
    color: #ff0000 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.nav-item i.nav-yt-icon::before,
.nav-item i.bi-youtube::before {
    color: #ff0000 !important;
}
.nav-item i.nav-yt-icon,
.nav-item i.nav-yt-icon::before,
.nav-item:hover i.nav-yt-icon,
.nav-item:hover i.nav-yt-icon::before,
.nav-item.active i.nav-yt-icon,
.nav-item.active i.nav-yt-icon::before {
    color: #ff0000 !important;
}
.nav-item.active i:not(.nav-yt-icon):not(.bi-youtube) {
    box-shadow: inset 0 0 0 1px rgba(15, 26, 36, .08);
}
.nav-item > span:not(.nav-count) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-count {
    margin-left: auto;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .4rem;
    border-radius: 999px;
    background: #f4c430;
    color: #1a2e24;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nav-count[hidden] { display: none !important; }
.nav-item.active .nav-count {
    background: var(--brand-dark, #0a4d36);
    color: #fff;
}
.nav-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-item.active { background: #fff; color: var(--brand-dark); font-weight: 600; }
.nav-item.disabled {
    opacity: .45;
    cursor: not-allowed;
}
.nav-item.disabled:hover {
    background: transparent;
    color: rgba(255,255,255,.92);
}

.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: .65rem .7rem .75rem;
}

.sidebar-package {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    padding: .45rem .5rem;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255, 215, 120, .18), rgba(255,255,255,.06));
    border: 1px solid rgba(255, 214, 120, .28);
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

a.sidebar-package:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 215, 120, .28), rgba(255,255,255,.1));
    border-color: rgba(255, 214, 120, .45);
}

.sidebar-package.is-active {
    background: linear-gradient(135deg, rgba(255, 215, 120, .32), rgba(255,255,255,.12));
    border-color: rgba(255, 214, 120, .55);
}

.sidebar-package.is-muted {
    opacity: .7;
    cursor: default;
}

.sidebar-package-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b4500;
    background: linear-gradient(145deg, #ffe9a8 0%, #f0c14b 45%, #d4a017 100%);
    box-shadow: 0 2px 8px rgba(212, 160, 23, .35), inset 0 1px 0 rgba(255,255,255,.55);
    font-size: 1.05rem;
    line-height: 1;
}

.sidebar-package-badge .bi {
    color: inherit;
    line-height: 1;
}

.sidebar-package-label {
    font-size: .86rem;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .9rem;
    opacity: .9;
}
.sidebar-user i { font-size: 1.35rem; }

.topbar-user {
    align-items: center;
    gap: .4rem;
    max-width: 11rem;
    padding: .2rem .55rem .2rem .35rem;
    border-radius: 999px;
    background: rgba(15, 107, 76, .08);
    color: var(--brand-dark);
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

.topbar-user i {
    font-size: 1.15rem;
    color: var(--brand);
    flex-shrink: 0;
}

.topbar-user span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-width: 0;
    transition: margin-left .2s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-topbar {
    --topbar-control-h: 42px;
    height: var(--topbar-h);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(15, 107, 76, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.topbar-title {
    font-weight: 700;
    color: var(--brand-dark);
    min-width: 0;
    max-width: min(42vw, 16rem);
    font-size: .95rem;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .topbar-title {
        max-width: min(36vw, 22rem);
        font-size: 1rem;
    }
}

.app-content {
    padding: 1.25rem 1.25rem 2rem;
}

/* Collapsed state (desktop) — persisted via html.sidebar-collapsed */
html.sidebar-collapsed .app-sidebar { width: var(--sidebar-w-collapsed); }
html.sidebar-collapsed .app-main { margin-left: var(--sidebar-w-collapsed); }
html.sidebar-collapsed .brand-text,
html.sidebar-collapsed .nav-section,
html.sidebar-collapsed .nav-item > span:not(.nav-count) {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}
html.sidebar-collapsed .nav-item {
    justify-content: center;
    padding-left: .5rem;
    padding-right: .5rem;
}
html.sidebar-collapsed .nav-count {
    position: absolute;
    top: .2rem;
    right: .15rem;
    margin-left: 0;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 .28rem;
    font-size: .6rem;
    opacity: 1;
    width: auto;
    pointer-events: none;
    z-index: 1;
}
html.sidebar-collapsed .sidebar-brand {
    height: auto;
    min-height: var(--topbar-h);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .35rem;
    padding: .45rem .4rem;
}
html.sidebar-collapsed .brand-link {
    justify-content: center;
    width: 100%;
    gap: 0;
}
html.sidebar-collapsed .brand-mark {
    width: 36px;
    height: 36px;
}
html.sidebar-collapsed .sidebar-toggle {
    width: 32px;
    height: 28px;
}
html.sidebar-collapsed .sidebar-package {
    justify-content: center;
    padding: .4rem;
}
html.sidebar-collapsed .sidebar-package-label {
    display: none;
}
html.sidebar-collapsed .sidebar-user { justify-content: center; }
html.sidebar-collapsed .sidebar-user .brand-text { display: none; }

/* Short screens: denser collapsed sidebar so fewer items force a scrollbar */
@media (max-height: 820px) {
    html.sidebar-collapsed .sidebar-nav {
        padding: .35rem .35rem .5rem;
    }
    html.sidebar-collapsed .nav-section {
        padding: .35rem .4rem .15rem;
        font-size: .62rem;
    }
    html.sidebar-collapsed .nav-item {
        padding-top: .42rem;
        padding-bottom: .42rem;
        margin-bottom: .12rem;
    }
    html.sidebar-collapsed .sidebar-footer {
        padding: .4rem .45rem .5rem;
    }
    html.sidebar-collapsed .sidebar-package {
        padding: .3rem;
    }
    html.sidebar-collapsed .sidebar-package-badge {
        width: 30px;
        height: 30px;
        font-size: .95rem;
    }
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1035;
}

/* Mobile */
@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-105%);
        width: var(--sidebar-w);
    }
    .app-main { margin-left: 0; }
    html.sidebar-collapsed .app-sidebar { width: var(--sidebar-w); }
    html.sidebar-collapsed .app-main { margin-left: 0; }
    html.sidebar-collapsed .brand-text,
    html.sidebar-collapsed .nav-section,
    html.sidebar-collapsed .nav-item > span:not(.nav-count) {
        opacity: 1;
        width: auto;
        overflow: visible;
        pointer-events: auto;
    }
    html.sidebar-collapsed .nav-item { justify-content: flex-start; padding: .7rem .75rem; }
    html.sidebar-collapsed .nav-count {
        position: static;
        margin-left: auto;
        min-width: 1.35rem;
        height: 1.35rem;
        padding: 0 .4rem;
        font-size: .68rem;
    }
    html.sidebar-collapsed .sidebar-brand {
        height: var(--topbar-h);
        min-height: var(--topbar-h);
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        padding: 0 .75rem 0 1rem;
    }
    html.sidebar-collapsed .brand-link {
        justify-content: flex-start;
        width: auto;
        gap: .6rem;
    }
    html.sidebar-collapsed .brand-mark {
        width: 34px;
        height: 34px;
    }
    html.sidebar-collapsed .sidebar-toggle {
        width: 34px;
        height: 34px;
    }
    html.sidebar-collapsed .sidebar-package {
        justify-content: flex-start;
        padding: .45rem .5rem;
    }
    html.sidebar-collapsed .sidebar-package-label {
        display: block;
    }

    body.sidebar-open-mobile .app-sidebar { transform: translateX(0); }
    body.sidebar-open-mobile .sidebar-backdrop { display: block; }
}

/* Cards / misc */
.card-soft {
    border: 0;
    box-shadow: 0 8px 24px rgba(15, 107, 76, 0.08);
    border-radius: 14px;
}
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
}
.stat-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand);
}
.subscription-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    height: 100%;
}

/* Public menu admin preview (compact — this page only) */
.public-menu-admin-preview {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.public-menu-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem;
    width: 100%;
}
@media (min-width: 576px) {
    .public-menu-preview-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (min-width: 768px) {
    .public-menu-preview-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
@media (min-width: 992px) {
    .public-menu-preview-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: .45rem;
    }
}
@media (min-width: 1200px) {
    .public-menu-preview-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}
.public-menu-preview-item {
    border: 1px solid rgba(15, 107, 76, .1);
    border-radius: 8px;
    padding: .35rem;
    background: #fff;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.public-menu-preview-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    background: #eef5f1;
}
.public-menu-preview-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border: 0;
}
.public-menu-preview-img.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aada3;
    font-size: 1.1rem;
}
.public-menu-preview-name {
    font-size: .72rem;
    font-weight: 600;
    margin-top: .25rem;
    line-height: 1.2;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.public-menu-preview-price {
    font-size: .68rem;
    color: #0f6b4c;
    font-weight: 700;
}
.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.btn-brand:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}
.btn-outline-brand {
    background: #fff;
    border-color: var(--brand);
    color: var(--brand);
}
.btn-outline-brand:hover {
    background: rgba(15, 107, 76, .08);
    border-color: var(--brand-dark);
    color: var(--brand-dark);
}

.nav-pills-brand .nav-link {
    color: var(--brand);
    font-weight: 600;
    border-radius: .5rem;
    padding: .4rem .85rem;
}
.nav-pills-brand .nav-link:hover {
    color: var(--brand-dark);
    background: var(--brand-soft);
}
.nav-pills-brand .nav-link.active {
    background: var(--brand);
    color: #fff;
}

.login-wrap { max-width: 420px; margin: 8vh auto; }

/* ===== Login split page (70% banner / 30% form) ===== */
.login-page-body {
    margin: 0;
    min-height: 100vh;
    background: #0a4d37;
    overflow-x: hidden;
}

.login-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.login-banner {
    position: relative;
    flex: 0 0 70%;
    width: 70%;
    min-height: 100vh;
    background: #0a4d37;
    overflow: hidden;
}

.login-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    padding: 7.5rem 3rem 6.5rem;
    box-sizing: border-box;
    transform: scale(0.96);
    transform-origin: center center;
}

.login-banner-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 55, 40, .72) 0%, rgba(8, 55, 40, .18) 28%, rgba(8, 55, 40, .08) 55%, rgba(8, 55, 40, .55) 100%),
        linear-gradient(90deg, rgba(10, 77, 55, .08) 0%, rgba(10, 77, 55, .28) 100%);
    pointer-events: none;
}

.login-banner-copy {
    position: absolute;
    left: 50%;
    top: 2.75rem;
    bottom: auto;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    max-width: min(40rem, calc(100% - 3rem));
    width: 100%;
    text-align: center;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.login-banner-headline {
    margin: 0 0 .5rem;
    font-size: clamp(1.75rem, 2.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .01em;
}

.login-banner-sub {
    margin: 0 auto;
    max-width: 32rem;
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.55;
    opacity: .88;
}

.login-banner-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: .02em;
    margin-bottom: .55rem;
}

.login-banner-logo {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: .55rem;
    object-fit: cover;
    background: #fff;
}

.login-banner-meta {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .35rem .9rem;
    font-size: .84rem;
    color: rgba(255, 255, 255, .92);
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
    max-width: calc(100% - 3rem);
    padding: .65rem 1.1rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .12);
}

.login-banner-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.login-banner-meta i {
    opacity: .9;
    font-size: .9em;
}

.login-mobile-logo {
    width: 2rem;
    height: 2rem;
    border-radius: .45rem;
    object-fit: cover;
}

.login-contact {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid #e8eee9;
    color: #5b6b64;
    font-size: .82rem;
    line-height: 1.55;
}

.login-contact-title {
    font-weight: 700;
    color: #0a4d37;
    margin-bottom: .35rem;
    font-size: .85rem;
}

.login-contact i {
    width: 1.1rem;
    display: inline-block;
    color: var(--brand);
}

.login-panel {
    flex: 0 0 30%;
    width: 30%;
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.25rem 1.75rem;
    box-shadow: -18px 0 48px rgba(8, 40, 28, .14);
    position: relative;
    z-index: 3;
}

.login-panel-inner {
    width: 100%;
    max-width: 340px;
}

.login-lang {
    display: inline-flex;
    gap: .2rem;
    flex-wrap: wrap;
    padding: .22rem;
    border-radius: .65rem;
    background: #eef4f0;
    border: 1px solid #e2ebe6;
}

.login-lang-btn {
    border: 0;
    background: transparent;
    color: #5b6b64;
    border-radius: .45rem;
    padding: .32rem .6rem;
    font-size: .74rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    transition: background .15s ease, color .15s ease;
}

.login-lang-btn:hover {
    color: var(--brand);
    background: rgba(255, 255, 255, .7);
}

.login-lang-btn.active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 107, 76, .25);
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    text-align: center;
    color: var(--brand-dark);
    margin-bottom: 1.1rem;
}

.login-brand strong {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.2;
}

.login-brand-logo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: .85rem;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 107, 76, .16);
}

.login-banner-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: .85rem;
    background: var(--brand);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
}

.login-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0a4d37;
    margin: 0 0 .3rem;
    text-align: center;
}

.login-subtitle {
    color: #6b7c74;
    font-size: .88rem;
    line-height: 1.45;
    margin-bottom: 1.35rem;
    text-align: center;
}

.login-form .form-label {
    font-size: .82rem;
    font-weight: 600;
    color: #3f534a;
    margin-bottom: .35rem;
}

.login-form .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.login-form .form-check-label {
    font-size: .86rem;
    color: #5b6b64;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap > i {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8a9a92;
    z-index: 2;
    pointer-events: none;
}

.login-input-wrap .form-control {
    padding-left: 2.45rem;
    border-color: #d7e3dd;
    border-radius: .65rem;
    background: #fff;
    min-height: 3rem;
}

.login-input-wrap.has-toggle .form-control {
    padding-right: 2.75rem;
}

.login-pass-toggle {
    position: absolute;
    right: .35rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6b7c74;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: .4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
}

.login-pass-toggle:hover {
    color: var(--brand);
    background: rgba(15, 107, 76, .08);
}

.login-input-wrap .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(15, 107, 76, .15);
}

.login-submit {
    font-weight: 700;
    border-radius: .65rem;
    padding: .78rem 1rem;
    box-shadow: 0 10px 24px rgba(15, 107, 76, .28);
}

.login-pwa-wrap {
    margin-top: .85rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .45rem;
}

.login-pwa-install {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    min-height: 2.75rem;
    border-radius: .65rem;
    border: 1px solid rgba(15, 107, 76, .35);
    background: linear-gradient(180deg, #f3faf6 0%, #e7f4ee 100%);
    color: var(--brand-dark, #0f6b4c);
    font-weight: 700;
    font-size: .95rem;
    box-shadow: 0 6px 16px rgba(15, 107, 76, .12);
}

.login-pwa-install:hover {
    background: linear-gradient(180deg, #e8f6ef 0%, #d9efe4 100%);
    border-color: var(--brand, #0f6b4c);
    color: var(--brand-dark, #0f6b4c);
}

.login-pwa-install i {
    font-size: 1.15rem;
}

.login-pwa-hint {
    margin: 0;
    text-align: center;
    font-size: .82rem;
    line-height: 1.4;
    color: #5a6d64;
}

.login-pwa-hint.is-installed {
    color: var(--brand-dark, #0f6b4c);
    font-weight: 600;
}

@media (display-mode: standalone) {
    .login-page-body {
        background: #f4f8f6;
    }

    .login-split {
        min-height: 100dvh;
    }

    .login-panel-inner {
        padding-top: calc(1.25rem + env(safe-area-inset-top, 0px));
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }
}

.login-register-wrap {
    margin-top: .85rem;
    display: flex;
    justify-content: center;
}

.login-register-btn {
    font-weight: 600;
    font-size: .82rem;
    border-radius: .5rem;
    padding: .38rem .95rem;
    border: 1px solid #c9dbd2;
    color: #3f534a;
    background: transparent;
    width: auto;
}

.login-register-btn:hover {
    background: rgba(15, 107, 76, .06);
    color: var(--brand-dark);
    border-color: var(--brand);
}

.login-lang-bottom {
    margin-top: 1.5rem;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    padding-top: 1.15rem;
    border-top: 1px solid #e6eee9;
}

.login-coming-soon {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f4faf7;
}

.login-coming-soon-card {
    text-align: center;
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 12px 36px rgba(15, 107, 76, .12);
}

.login-coming-soon-card h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0a4d37;
    margin: .5rem 0 .75rem;
}

.login-coming-soon-card p {
    color: #6b7c74;
    margin-bottom: 1.5rem;
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.login-footer a {
    color: #7a8b83;
    font-size: .8rem;
    text-decoration: none;
}

.login-footer a:hover {
    color: var(--brand);
}

@media (max-width: 991.98px) {
    .login-split {
        flex-direction: column;
    }

    .login-banner {
        flex: none;
        width: 100%;
        min-height: 38vh;
        max-height: 44vh;
    }

    .login-banner-img {
        padding: 4.5rem 1.25rem 4rem;
        transform: scale(1);
    }

    .login-banner-copy {
        left: 50%;
        top: 1rem;
        bottom: auto;
        transform: translateX(-50%);
        max-width: calc(100% - 2rem);
    }

    .login-banner-headline {
        font-size: 1.35rem;
    }

    .login-banner-sub {
        font-size: .82rem;
        line-height: 1.4;
    }

    .login-banner-meta {
        left: 50%;
        bottom: .75rem;
        transform: translateX(-50%);
        font-size: .72rem;
        max-width: calc(100% - 1.5rem);
        gap: .2rem .55rem;
        padding: .45rem .75rem;
        border-radius: .75rem;
    }

    .login-banner-meta-item {
        white-space: normal;
    }

    .login-panel {
        flex: 1 1 auto;
        width: 100%;
        min-height: 58vh;
        box-shadow: none;
        align-items: flex-start;
        padding-top: 1.5rem;
    }
}

.feature-badge { font-size: .75rem; }
.table thead th { white-space: nowrap; }
.lang-switch .btn { font-weight: 500; }

/* Shift chip in topbar */
.shift-chip {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    border-radius: 12px;
    padding: .35rem .7rem .35rem .4rem;
    border: 1px solid transparent;
    max-width: min(420px, 58vw);
    line-height: 1.15;
}
.shift-chip.is-open {
    background: #e8f7ef;
    border-color: #b7e4c7;
    color: #0a4d37;
}
.shift-chip.is-closed {
    background: #f4f4f4;
    border-color: #e0e0e0;
    color: #555;
}
.shift-chip:hover { filter: brightness(0.98); color: inherit; }
.shift-chip-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.shift-chip.is-open .shift-chip-icon { background: #0f6b4c; color: #fff; }
.shift-chip.is-closed .shift-chip-icon { background: #9aa0a6; color: #fff; }
.shift-chip-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    justify-content: center;
}
.shift-chip-label {
    font-size: .78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shift-chip-no {
    opacity: .7;
    margin-left: .25rem;
    font-weight: 500;
}
.shift-chip-money {
    font-size: .86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shift-chip-money strong { font-weight: 700; }
.text-muted-chip { opacity: .7; font-size: .78rem; }

/* Equal height: kitchen / shift chip / language / logout in topbar */
.app-topbar .shift-chip {
    height: var(--topbar-control-h);
    padding: 0 .65rem 0 .3rem;
    box-sizing: border-box;
}

.app-topbar .shift-chip-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: .95rem;
}

.app-topbar .shift-chip-label {
    font-size: .7rem;
    line-height: 1.1;
}

.app-topbar .shift-chip-money {
    font-size: .76rem;
    line-height: 1.15;
}

.app-topbar .text-muted-chip {
    font-size: .7rem;
}

.app-topbar .lang-switch .btn,
.app-topbar form .btn,
.app-topbar > .d-flex > .btn,
.app-topbar > .d-flex > a.btn {
    height: var(--topbar-control-h);
    min-height: var(--topbar-control-h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.2;
    box-sizing: border-box;
}

.kitchen-header-btn,
.low-stock-header-btn {
    position: relative;
    gap: .4rem;
}
.low-stock-header-btn {
    cursor: pointer;
    z-index: 2;
}
.low-stock-header-btn > i {
    color: #e6a700;
    font-size: 1.05em;
}
.low-stock-header-btn.is-active > i,
.low-stock-header-btn.btn-brand > i {
    color: #ffe566;
}
.kitchen-header-btn .header-count,
.low-stock-header-btn .header-count {
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: #f4c430;
    color: #1a2e24;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.kitchen-header-btn.btn-brand .header-count,
.low-stock-header-btn.btn-brand .header-count,
.low-stock-header-btn.is-active .header-count {
    background: #fff;
    color: var(--brand-dark, #0a4d36);
}
.kitchen-header-btn .header-count[hidden],
.low-stock-header-btn .header-count[hidden] {
    display: none !important;
}
.low-stock-header-btn.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.app-topbar .lang-switch .dropdown-toggle {
    gap: .35rem;
}
.app-topbar .lang-switch .lang-switch-label {
    font-weight: 600;
}
.app-topbar .lang-switch .dropdown-menu {
    min-width: 7rem;
    z-index: 1080;
}
.app-topbar .lang-switch .dropdown-item.active {
    background: var(--brand);
    color: #fff;
}

@media (max-width: 575.98px) {
    .shift-chip { max-width: 46vw; padding-right: .45rem; }
    .text-muted-chip { display: none; }
}

/* Tablet/phone topbar: one compact row (scroll sideways) — no wrap that steals content height */
@media (max-width: 991.98px) {
    :root {
        --topbar-h: 48px;
    }

    .app-topbar {
        --topbar-control-h: 34px;
        height: var(--topbar-h);
        min-height: var(--topbar-h);
        max-height: var(--topbar-h);
        padding: .28rem .55rem;
        flex-wrap: nowrap;
        align-items: center;
        gap: .35rem;
        overflow: hidden;
    }

    .app-topbar > .d-flex {
        flex-wrap: nowrap !important;
        align-items: center;
    }

    /* Keep menu button pinned — never shrink/clip under right icons */
    .app-topbar > .d-flex:first-child,
    .app-topbar .topbar-left {
        flex: 0 0 auto !important;
        min-width: auto !important;
        max-width: none;
        position: relative;
        z-index: 2;
        background: var(--app-surface, #fff);
    }

    .app-topbar #sidebarMobileOpen {
        flex: 0 0 auto !important;
        position: relative;
        z-index: 3;
    }

    .app-topbar > .d-flex:last-child {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
        gap: .3rem !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0;
    }

    .app-topbar > .d-flex:last-child::-webkit-scrollbar {
        display: none;
    }

    .app-topbar .topbar-user {
        display: none !important;
    }

    .app-topbar .topbar-title {
        font-size: .88rem;
        max-width: 9.5rem;
    }

    .app-topbar .shift-chip-money {
        display: none;
    }

    .app-topbar .shift-chip-label .shift-chip-no {
        display: none;
    }

    .app-topbar .shift-chip {
        max-width: none;
        padding-right: .45rem;
    }

    .app-topbar .support-header-btn .support-header-label,
    .app-topbar .btn .d-md-inline,
    .app-topbar .lang-switch .lang-switch-label {
        display: none !important;
    }

    .app-topbar .btn,
    .app-topbar .shift-chip {
        min-height: var(--topbar-control-h);
        font-size: .78rem;
        padding-top: .2rem;
        padding-bottom: .2rem;
        flex: 0 0 auto;
    }

    .app-topbar .lang-switch .btn {
        padding-left: .4rem;
        padding-right: .4rem;
        font-size: .75rem;
        min-width: 0;
    }

    .app-topbar form {
        flex: 0 0 auto;
    }

    .app-content {
        padding: .85rem .75rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    :root {
        --topbar-h: 44px;
    }

    .app-topbar {
        --topbar-control-h: 32px;
        padding: .22rem .45rem;
        gap: .28rem;
    }

    .app-topbar .topbar-title {
        font-size: .82rem;
        max-width: 7.5rem;
    }

    /* Narrow phones: icon-only shift chip so right cluster fits */
    .app-topbar .shift-chip-body {
        display: none;
    }

    .app-topbar .shift-chip {
        padding-right: .3rem;
        max-width: none;
    }

    .app-content {
        padding: .7rem .6rem 1.25rem;
    }
}

/* Compact list pages (tables, etc.) on tablet/phone */
@media (max-width: 991.98px) {
    .page-toolbar {
        gap: .45rem !important;
        margin-bottom: .65rem !important;
    }

    .page-toolbar .page-toolbar-hint {
        display: none;
    }

    .page-toolbar .page-toolbar-actions {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        gap: .35rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .page-toolbar .page-toolbar-actions::-webkit-scrollbar {
        display: none;
    }

    .page-toolbar .page-toolbar-actions > .btn,
    .page-toolbar .page-toolbar-actions > a.btn {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: .8rem;
        padding: .35rem .55rem;
    }

    .filter-card-compact .card-body {
        padding: .55rem .65rem !important;
    }

    .filter-card-compact .form-label {
        display: none;
    }

    .filter-card-compact .row {
        --bs-gutter-y: .4rem;
    }

    .table-actions-compact .btn {
        padding: .25rem .4rem;
        font-size: .75rem;
    }

    .table-actions-compact .btn .btn-label {
        display: none;
    }
}

/* ========== Toast notifications ========== */
.toast-host {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    width: min(380px, calc(100vw - 1.5rem));
    pointer-events: none;
}
.app-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: #fff;
    border-radius: 14px;
    padding: .9rem 1rem;
    box-shadow: 0 12px 40px rgba(15, 40, 30, .16);
    border: 1px solid rgba(15, 107, 76, .08);
    opacity: 0;
    transform: translateY(-10px) scale(.98);
    transition: opacity .25s ease, transform .25s ease;
    font-family: var(--font-sans);
}
.app-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.app-toast-icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: .1rem;
}
.app-toast-success .app-toast-icon { color: #0f6b4c; }
.app-toast-error .app-toast-icon { color: #c0392b; }
.app-toast-warning .app-toast-icon { color: #d68910; }
.app-toast-info .app-toast-icon { color: #2471a3; }
.app-toast-body {
    flex: 1;
    font-size: .95rem;
    color: #1f2a24;
    white-space: pre-line;
    line-height: 1.4;
}
.app-toast-close {
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    color: #88928c;
    padding: 0 .15rem;
    cursor: pointer;
}
.app-toast-success { border-left: 4px solid #0f6b4c; }
.app-toast-error { border-left: 4px solid #c0392b; }
.app-toast-warning { border-left: 4px solid #d68910; }
.app-toast-info { border-left: 4px solid #2471a3; }

/* ========== Confirm modal ========== */
.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 4100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.confirm-modal.open { display: flex; }
.confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 28, 22, .45);
    backdrop-filter: blur(2px);
}
.confirm-dialog {
    position: relative;
    width: min(420px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem 1.35rem 1.25rem;
    box-shadow: 0 24px 60px rgba(0,0,0,.22);
    text-align: center;
    font-family: var(--font-sans);
    animation: confirmIn .2s ease;
}
@keyframes confirmIn {
    from { opacity: 0; transform: translateY(8px) scale(.96); }
    to { opacity: 1; transform: none; }
}
.confirm-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto .85rem;
    border-radius: 50%;
    background: var(--brand-soft, #e7f3ee);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}
.confirm-icon.is-danger {
    background: #fdecea;
    color: #c0392b;
}
.confirm-icon.is-warning {
    background: #fef5e7;
    color: #d68910;
}
.confirm-icon.is-info {
    background: #eaf2f8;
    color: #2471a3;
}
.confirm-icon.is-success {
    background: var(--brand-soft, #e7f3ee);
    color: var(--brand);
}
.confirm-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brand-dark);
    margin-bottom: .4rem;
}
.confirm-message {
    color: #445049;
    font-size: .95rem;
    line-height: 1.45;
    margin-bottom: 1.2rem;
}
.confirm-actions {
    display: flex;
    gap: .6rem;
    justify-content: center;
}
.confirm-actions .btn { min-width: 110px; }
body.confirm-open { overflow: hidden; }

/* Feature matrix (shop type) */
.feature-matrix td { vertical-align: middle; }
.feature-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
}
.feature-mark.feature-yes,
.feature-mark.feature-yes::before {
    color: #0f6b4c !important;
}
.feature-mark.feature-no,
.feature-mark.feature-no::before {
    color: #e74c3c !important;
}

/* Package compare (shop subscription) */
.package-compare {
    overflow: hidden;
    width: 100%;
}
.package-compare-head {
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(15, 107, 76, 0.12);
    background: #f3faf6;
}
.package-compare-head-current {
    background:
        linear-gradient(90deg, rgba(15, 107, 76, 0.08), rgba(15, 107, 76, 0.02) 55%, transparent),
        #f3faf6;
}
.package-compare-head-current h3 {
    font-size: 1.35rem;
}
.package-compare-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.package-compare-scroll-embedded {
    border-top: 0;
}
.package-compare-table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: .86rem;
    margin: 0;
    color: #223;
}
.package-compare-table th,
.package-compare-table td {
    padding: .45rem .5rem;
    border-bottom: 1px solid rgba(15, 107, 76, 0.1);
    text-align: center;
    vertical-align: middle;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.package-compare-table th:first-child,
.package-compare-table td:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 1;
    background: #f7fbf9;
    width: 14%;
    min-width: 110px;
}
.package-compare-table thead th {
    background: #eaf5ef;
    position: sticky;
    top: 0;
    z-index: 2;
    line-height: 1.25;
}
.package-compare-table thead th:first-child {
    z-index: 3;
    background: #eaf5ef;
}
.package-compare-table th.is-current,
.package-compare-table td.is-current {
    background: rgba(15, 107, 76, 0.08);
}
.package-compare-table thead th.is-current {
    background: rgba(15, 107, 76, 0.14);
    box-shadow: inset 0 -2px 0 #0f6b4c;
}
.package-compare-price {
    font-size: .75rem;
    color: #5f7268;
    font-weight: 500;
    margin-top: .1rem;
}
.package-compare-badge {
    display: inline-block;
    margin-top: .2rem;
    font-size: .68rem;
    font-weight: 700;
    padding: .1rem .35rem;
    border-radius: .25rem;
    background: #0f6b4c;
    color: #fff;
}
.package-compare-badge.is-free {
    background: #d8f5e5;
    color: #0a4d37;
}
.package-feat-yes {
    color: #0f6b4c;
    font-size: 1.1rem;
}
.package-feat-no {
    color: #e74c3c;
    font-size: 1rem;
    font-weight: 700;
}
.package-compare-table tfoot td {
    background: #fafcfb;
    vertical-align: top;
    padding: .65rem .45rem;
    border-bottom: 0;
}
.package-compare-table tfoot td:first-child {
    background: #f0f7f4;
    font-weight: 600;
    vertical-align: middle;
}
.package-compare-table tfoot td.is-current {
    background: rgba(15, 107, 76, 0.08);
}
.package-compare-actions {
    display: grid;
    gap: .35rem;
}
.package-compare-actions .btn {
    white-space: normal;
    line-height: 1.2;
    padding: .4rem .45rem;
}
.package-compare-action-note {
    font-size: .72rem;
    line-height: 1.3;
    color: #5f7268;
}
@media (max-width: 991.98px) {
    .package-compare-table {
        table-layout: auto;
        min-width: 720px;
    }
}

/* Products */
.product-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    display: inline-block;
}
.product-thumb-empty {
    background: #eef2f0;
    color: #8a968f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.product-preview {
    max-height: 160px;
    max-width: 100%;
    border-radius: 10px;
    object-fit: cover;
}
.product-image-box {
    min-height: 120px;
    border: 1px dashed rgba(15, 107, 76, .25);
    border-radius: 12px;
    background: #f7faf8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
    overflow: hidden;
}
.product-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    color: #8a968f;
    font-size: .9rem;
}
.product-image-placeholder i { font-size: 1.75rem; }

.camera-modal {
    position: fixed;
    inset: 0;
    z-index: 4200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(12, 28, 22, .55);
}
.camera-modal.open { display: flex; }
.camera-dialog {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.camera-header,
.camera-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .75rem 1rem;
    background: #f7faf8;
}
.camera-body {
    background: #111;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .5rem;
}
.camera-body video {
    width: 100%;
    max-height: 55vh;
    object-fit: cover;
    border-radius: 8px;
    background: #000;
}

@media (max-width: 575.98px) {
    .toast-host { top: .75rem; right: .75rem; left: .75rem; width: auto; }
}

/* Kitchen station */
.kitchen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.kitchen-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem 1rem .5rem;
    border-bottom: 1px solid rgba(15, 107, 76, .08);
}
.kitchen-table-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-dark, #0a4d36);
    line-height: 1.2;
}
.kitchen-zone {
    display: inline-block;
    font-size: .78rem;
    color: #6b7c74;
    margin-top: .15rem;
}
.kitchen-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .25rem;
}
.kitchen-card-body {
    padding: .65rem .85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.kitchen-item {
    border: 1px solid rgba(15, 107, 76, .12);
    border-radius: 10px;
    padding: .65rem .75rem;
    background: #fff;
}
.kitchen-item.is-cooking {
    border-color: rgba(212, 160, 23, .45);
    background: #fffbeb;
}
.kitchen-item.is-served {
    opacity: .72;
    background: #f4faf7;
}
.kitchen-item.is-cancelled {
    opacity: .75;
    background: #fdf2f2;
    border-color: rgba(200, 60, 60, .25);
}
.kitchen-item-top {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    align-items: flex-start;
}
.kitchen-item-name {
    font-weight: 600;
    color: #1a2e24;
}
.kitchen-item-qty {
    font-weight: 700;
    color: var(--brand-dark, #0a4d36);
    white-space: nowrap;
}
.kitchen-item-extras {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .5rem;
    margin-top: .25rem;
    font-size: .8rem;
    color: #5a6b63;
}
.kitchen-item-note {
    margin-top: .25rem;
    font-size: .82rem;
    color: #8a5a00;
}
.kitchen-item-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .5rem;
}
.kitchen-item-time {
    font-size: .78rem;
    color: #7a8a82;
}
.kitchen-item-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: .35rem;
}
.kitchen-act-btn {
    min-width: 7.5rem;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}
.kitchen-queue-badge {
    display: inline-flex;
    align-items: center;
    margin-right: .4rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: var(--brand-dark, #0a4d36);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    vertical-align: middle;
}
.kitchen-bill-no {
    display: inline-flex;
    align-items: center;
    margin-left: .35rem;
    padding: .12rem .5rem;
    border-radius: .4rem;
    background: #fff3cd;
    color: #7a5b00;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .02em;
    vertical-align: middle;
}
.kitchen-card-takeaway .kitchen-table-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
}
.kitchen-item-queue {
    display: inline-block;
    margin-right: .35rem;
    color: var(--brand-dark, #0a4d36);
    font-weight: 700;
    font-size: .85rem;
}
.kitchen-item-meta {
    font-size: .82rem;
    font-weight: 600;
}
#kitchenSoundBtn.is-muted,
#kitchenPrintBtn.is-muted {
    opacity: .7;
    border-color: #adb5bd;
    color: #6c757d;
}
.kitchen-switch {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid #c9d7d0;
    background: #fff;
    color: #335248;
    border-radius: 999px;
    padding: .28rem .4rem .28rem .7rem;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
    user-select: none;
}
.kitchen-switch:hover {
    border-color: var(--brand);
}
.kitchen-switch-info {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}
.kitchen-switch-info i {
    font-size: .95rem;
}
.kitchen-switch-name {
    display: none;
}
@media (min-width: 576px) {
    .kitchen-switch-name { display: inline; }
}
.kitchen-switch-track {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 3.4rem;
    height: 1.55rem;
    border-radius: 999px;
    background: #c5cec9;
    padding: 0 .4rem;
    transition: background .18s ease;
}
.kitchen-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: left .18s ease;
}
.kitchen-switch-state {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: right;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: #fff;
    padding-right: .1rem;
}
.kitchen-switch.is-on {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.kitchen-switch.is-on .kitchen-switch-track {
    background: var(--brand);
}
.kitchen-switch.is-on .kitchen-switch-thumb {
    left: calc(100% - 1.25rem - 2px);
}
.kitchen-switch.is-on .kitchen-switch-state {
    text-align: left;
    padding-left: .15rem;
    padding-right: 0;
}
.kitchen-switch.is-off {
    color: #6c757d;
    border-color: #ced4da;
    background: #f8f9fa;
}
.kitchen-switch.is-off .kitchen-switch-state {
    color: #5a6268;
    text-align: right;
}
.kitchen-item-meta-line {
    font-size: .78rem;
    color: #6b7c74;
    margin-top: .2rem;
}
.kitchen-history-table thead th {
    white-space: nowrap;
    font-size: .82rem;
    background: #f4f8f6;
}
.kitchen-history-table td {
    vertical-align: top;
    font-size: .88rem;
}
.kitchen-hist-cancel {
    background: #fff5f5;
}
.kitchen-hist-served {
    background: #f6fbf8;
}

/* POS cart kitchen badges */
.pos-cart-kitchen-badge {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    margin-left: .35rem;
    padding: .1rem .4rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.2;
    vertical-align: middle;
    white-space: nowrap;
}
.pos-cart-kitchen-badge.is-cooking {
    background: #fff3cd;
    color: #856404;
}
.pos-cart-kitchen-badge.is-served {
    background: #d1e7dd;
    color: #0f5132;
}
.pos-cart-kitchen-badge.is-cancelled {
    background: #f8d7da;
    color: #842029;
    cursor: pointer;
}
.pos-cart-kitchen-badge.is-pending {
    display: none;
}

/* Reports */
.reports-header-btn {
    font-weight: 600;
}
.report-chart-panel {
    background:
        radial-gradient(1200px 280px at 0% 0%, rgba(15, 107, 76, 0.08), transparent 55%),
        radial-gradient(900px 240px at 100% 0%, rgba(194, 65, 12, 0.06), transparent 50%),
        #fff;
}
.report-chart-totals {
    text-align: right;
}
.report-chart-total-label {
    font-size: .75rem;
    color: #6b7c74;
    line-height: 1.2;
}
.report-chart-total-value {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}
.report-chart-canvas-wrap {
    position: relative;
    width: 100%;
    height: clamp(360px, 48vh, 560px);
}
.report-chart-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}
@media (max-width: 991.98px) {
    .report-chart-totals {
        text-align: left;
        width: 100%;
    }
}
.report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
}
.report-kpi {
    padding: 1rem 1.1rem;
}
.report-kpi-label {
    font-size: .82rem;
    color: #6b7c74;
    margin-bottom: .25rem;
}
.report-kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}
.report-kpi-sub {
    font-size: .75rem;
    margin-top: .2rem;
}
.report-stat {
    padding: .85rem 1rem;
}
.report-table td {
    padding: .45rem .75rem;
}
.report-table tr:last-child td {
    border-bottom: 0;
}


/* ===== Public landing (SEO) ===== */
.landing-page {
    margin: 0;
    min-height: 100vh;
    background: #0a4d37;
    color: #fff;
}
.landing-top {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
}
.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
.landing-brand img {
    height: 36px;
    width: auto;
    border-radius: .4rem;
    background: #fff;
}
.landing-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.18);
    font-weight: 700;
}
.landing-top-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.landing-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 5.5rem 1.25rem 2.5rem;
    padding-left: max(1.25rem, 20%);
    background-color: #0a4d37;
    background-image:
        linear-gradient(90deg, rgba(10, 77, 55, .94) 0%, rgba(10, 77, 55, .78) 38%, rgba(10, 77, 55, .35) 70%, rgba(10, 77, 55, .5) 100%),
        linear-gradient(180deg, rgba(10, 77, 55, .15) 0%, rgba(10, 77, 55, .5) 100%),
        var(--landing-hero);
    background-repeat: no-repeat;
    background-position: center, center, right center;
    background-size: auto, auto, contain;
}
.landing-hero-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 75% 50%, transparent 35%, rgba(10, 77, 55, .45) 100%),
        linear-gradient(180deg, rgba(10, 77, 55, .25) 0%, transparent 30%, rgba(10, 77, 55, .55) 100%);
}
.landing-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 40rem;
}
.landing-brand-signal {
    margin: 0 0 .55rem;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.15;
}
.landing-hero-copy h1 {
    margin: 0 0 .75rem;
    font-size: clamp(1.15rem, 2.6vw, 1.55rem);
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255,255,255,.95);
}
.landing-lead {
    margin: 0 0 1.35rem;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255,255,255,.82);
    max-width: 34rem;
}
.landing-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}
.landing-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 .35rem;
}
.landing-section {
    padding: 3.25rem 1.75rem 3.6rem;
    color: #163528;
}
.landing-section h2 {
    margin: 0 0 .4rem;
    font-size: 1.5rem;
    font-weight: 700;
}
.landing-section-sub {
    margin: 0 0 1.75rem;
    color: #5a7268;
    max-width: 36rem;
}
.landing-audience { background: #eef5f1; }
.landing-shop-types {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem 1.25rem;
}
.landing-shop-types li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: #163528;
    line-height: 1.35;
}
.landing-shop-types i {
    color: #0f6b4c;
    font-size: 1.15rem;
    margin-top: .12rem;
    flex-shrink: 0;
}
.landing-audience-grid,
.landing-feature-grid {
    display: grid;
    gap: 1.25rem;
}
.landing-audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.landing-audience-grid article {
    padding: .1rem 0;
}
.landing-audience-grid i {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    border-radius: .55rem;
    background: #0f6b4c;
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: .7rem;
}
.landing-audience-grid h3 {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
    font-weight: 700;
}
.landing-audience-grid p {
    margin: 0;
    color: #5a7268;
    font-size: .92rem;
    line-height: 1.5;
}
.landing-features { background: #f7faf8; }
.landing-feature-grid--rich {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.landing-feature-card {
    background: #fff;
    border: 1px solid rgba(15, 107, 76, .12);
    border-radius: 1rem;
    padding: 1.35rem 1.3rem 1.4rem;
    height: 100%;
    box-shadow: 0 8px 24px rgba(10, 77, 55, .05);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.landing-feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 107, 76, .28);
    box-shadow: 0 12px 28px rgba(10, 77, 55, .1);
}
.landing-feature-grid article.landing-feature-card {
    padding: 1.35rem 1.3rem 1.4rem;
}
.landing-feature-card i {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    border-radius: .55rem;
    background: #0f6b4c;
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: .85rem;
}
.landing-feature-card h3 {
    margin: 0 0 .45rem;
    font-size: 1.05rem;
    font-weight: 700;
    padding-right: .15rem;
}
.landing-feature-card p {
    margin: 0;
    color: #5a7268;
    font-size: .92rem;
    line-height: 1.55;
    padding-right: .1rem;
}
.landing-steps { background: #fff; }
.landing-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.landing-steps-list li,
.landing-step-card {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    background: #f7faf8;
    border: 1px solid rgba(15, 107, 76, .1);
    border-radius: 1rem;
    padding: 1.15rem 1.1rem;
}
.landing-step-num {
    flex-shrink: 0;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: #0f6b4c;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.landing-steps-list h3 {
    margin: .15rem 0 .3rem;
    font-size: 1.05rem;
    font-weight: 700;
}
.landing-steps-list p {
    margin: 0;
    color: #5a7268;
    font-size: .92rem;
    line-height: 1.5;
}
.landing-packages { background: #eef5f1; }
.landing-package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: stretch;
}
.landing-package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(15, 107, 76, .14);
    border-radius: 1.15rem;
    padding: 1.4rem 1.25rem 1.3rem;
    box-shadow: 0 10px 28px rgba(10, 77, 55, .06);
    transition: transform .15s ease, box-shadow .15s ease;
}
.landing-package-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(10, 77, 55, .12);
}
.landing-package-card.is-featured {
    border-color: #0f6b4c;
    background: linear-gradient(180deg, #ffffff 0%, #f0faf5 100%);
    box-shadow: 0 18px 40px rgba(10, 77, 55, .16);
    transform: scale(1.02);
    z-index: 1;
}
.landing-package-badge {
    position: absolute;
    top: -.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: #0f6b4c;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .28rem .7rem;
    border-radius: 999px;
    white-space: nowrap;
}
.landing-package-card h3 {
    margin: .35rem 0 .85rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}
.landing-package-price {
    text-align: center;
    margin-bottom: .35rem;
}
.landing-package-price strong {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    color: #0a4d37;
    line-height: 1.15;
}
.landing-package-period {
    display: block;
    margin-top: .2rem;
    font-size: .86rem;
    font-weight: 500;
    color: #5a7268;
}
.landing-package-alt {
    text-align: center;
    font-size: .8rem;
    color: #6b857a;
    margin-bottom: .85rem;
}
.landing-package-limits {
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
    color: #3d544a;
    font-size: .9rem;
    line-height: 1.55;
    flex: 1 1 auto;
}
.landing-package-limits li {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    padding: .28rem 0;
    border-bottom: 1px solid rgba(15, 107, 76, .06);
}
.landing-package-limits li:last-child { border-bottom: 0; }
.landing-package-limits i {
    color: #0f6b4c;
    margin-top: .15rem;
    flex-shrink: 0;
}
.landing-package-limits .is-more {
    color: #6b857a;
    font-weight: 600;
}
.landing-package-btn {
    margin-top: auto;
    font-weight: 600;
}
.btn-outline-success {
    color: #0f6b4c;
    border-color: rgba(15, 107, 76, .45);
}
.btn-outline-success:hover {
    background: #0f6b4c;
    border-color: #0f6b4c;
    color: #fff;
}
.landing-packages-cta {
    margin-top: 1.75rem;
    text-align: center;
}
.landing-products {
    background: #f3f6f4;
    color: #1a2e26;
}
.landing-products h2 { color: #12352a; }
.landing-products .landing-section-sub { color: #5b6b64; }
.landing-products-grid { margin-top: 1.5rem; }
.landing-products-more {
    margin-top: 1.75rem;
    text-align: center;
}
.landing-final-cta {
    background: linear-gradient(160deg, #0a4d37 0%, #0f6b4c 100%);
    color: #fff;
    text-align: center;
}
.landing-final-cta h2 { color: #fff; }
.landing-final-cta p {
    color: rgba(255,255,255,.82);
    margin: 0 auto .35rem;
    max-width: 32rem;
}
.landing-final-inner { max-width: 720px; }
.landing-contact {
    margin-top: 1.15rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem 1.25rem;
    font-size: .9rem;
    color: rgba(255,255,255,.88);
}
.landing-contact a { color: #fff; text-decoration: none; }
.landing-contact a:hover { text-decoration: underline; }
.landing-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    padding: 1.1rem 1.25rem;
    background: #083d2c;
    color: rgba(255,255,255,.85);
    font-size: .9rem;
}
.landing-foot-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.landing-foot a { color: #fff; text-decoration: none; opacity: .9; }
.landing-foot a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 991.98px) {
    .landing-feature-grid--rich { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .landing-package-grid { grid-template-columns: 1fr 1fr; }
    .landing-shop-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .landing-package-card.is-featured { transform: none; }
}
@media (max-width: 767.98px) {
    .landing-audience-grid,
    .landing-feature-grid,
    .landing-feature-grid--rich,
    .landing-steps-list,
    .landing-package-grid,
    .landing-shop-types {
        grid-template-columns: 1fr;
    }
    .landing-hero {
        min-height: 55vh;
        padding-bottom: 2rem;
        padding-left: max(1rem, 12%);
        background-position: center, center, center top;
        background-size: auto, auto, contain;
    }
}

/* ===== Public showcase catalog ===== */
.landing-top-solid {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #0a4d37 0%, #0c5a40 100%);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.showcase-page { background: #f3f6f4; color: #1a2e26; }
.showcase-main { min-height: calc(100vh - 140px); }
.showcase-hero {
    background: linear-gradient(135deg, #0a4d37 0%, #0f6b4c 55%, #12805c 100%);
    color: #fff;
    padding: 5.5rem 0 2.75rem;
}
.showcase-kicker {
    margin: 0 0 .4rem;
    font-size: .9rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
}
.showcase-hero h1 {
    margin: 0 0 .65rem;
    font-size: clamp(1.6rem, 3.5vw, 2.35rem);
    font-weight: 800;
}
.showcase-lead {
    margin: 0;
    max-width: 36rem;
    opacity: .92;
    line-height: 1.55;
}
.showcase-catalog { padding: 2.25rem 0 3.5rem; }
.showcase-embed .showcase-main { min-height: 100%; }
.showcase-catalog-embed { padding: 1rem 0 1.5rem; }
.showcase-detail-embed { padding-top: 1rem; }
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.showcase-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(10, 77, 55, .08);
    border: 1px solid rgba(15, 107, 76, .08);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(10, 77, 55, .14);
}
.showcase-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #e7f3ee;
    overflow: hidden;
}
.showcase-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.showcase-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 2.4rem;
    background: linear-gradient(145deg, #e7f3ee, #d5ebe2);
}
.showcase-card-placeholder-lg { min-height: 280px; border-radius: 1rem; }
.showcase-card-play {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(10, 77, 55, .88);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.showcase-card-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.showcase-card-title { margin: 0; font-size: 1.1rem; font-weight: 700; }
.showcase-card-title a { color: #12352a; text-decoration: none; }
.showcase-card-title a:hover { color: var(--brand); }
.showcase-card-price {
    color: var(--brand);
    font-weight: 800;
    font-size: 1.05rem;
}
.showcase-card-excerpt {
    margin: 0;
    color: #5b6b64;
    font-size: .92rem;
    line-height: 1.5;
    flex: 1;
}
.showcase-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.showcase-empty {
    background: #fff;
    border-radius: 1rem;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #6c757d;
    border: 1px dashed rgba(15, 107, 76, .25);
}
.showcase-detail { padding: 5.25rem 0 3.75rem; }
.showcase-back {
    display: inline-block;
    margin-bottom: 1.25rem;
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}
.showcase-back:hover { text-decoration: underline; }

/* CodeCanyon-style: gallery left + sticky buy card right */
.showcase-cc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}
.showcase-gallery-main {
    background: #0a4d37;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(15, 107, 76, .12);
    box-shadow: 0 14px 36px rgba(10, 77, 55, .12);
}
.showcase-gallery-main img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #0a4d37;
}
.showcase-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .85rem;
}
.showcase-thumb {
    border: 2px solid transparent;
    padding: 0;
    border-radius: .55rem;
    overflow: hidden;
    width: 72px;
    height: 54px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(10, 77, 55, .08);
}
.showcase-thumb.is-active,
.showcase-thumb:hover { border-color: var(--brand); }
.showcase-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.showcase-cc-sidebar {
    position: sticky;
    top: 5.5rem;
}
.showcase-cc-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.2rem 1.35rem;
    border: 1px solid rgba(15, 107, 76, .12);
    box-shadow: 0 16px 40px rgba(10, 77, 55, .12);
}
.showcase-cc-title {
    margin: 0 0 .55rem;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
    color: #12352a;
}
.showcase-cc-price {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 1.1rem;
    letter-spacing: .01em;
}
.showcase-cc-actions {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.showcase-cc-actions .btn {
    justify-content: center;
    font-weight: 700;
}
.showcase-cc-video-btn {
    border: 1px solid rgba(15, 107, 76, .2) !important;
    color: var(--brand-dark) !important;
}
.showcase-cc-meta {
    list-style: none;
    margin: 1.1rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(15, 107, 76, .1);
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.showcase-cc-meta li {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #3d5249;
    font-size: .92rem;
}
.showcase-cc-meta i { color: var(--brand); font-size: 1.05rem; }

.showcase-section {
    margin-top: 2rem;
    background: #fff;
    border-radius: 1rem;
    padding: 1.35rem 1.4rem 1.5rem;
    border: 1px solid rgba(15, 107, 76, .1);
    box-shadow: 0 10px 28px rgba(10, 77, 55, .06);
}
.showcase-section h2 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #12352a;
}
.showcase-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem 1.25rem;
}
.showcase-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    color: #2c3f37;
    line-height: 1.5;
    font-family: var(--font-sans);
}
.showcase-feature-list i {
    color: var(--brand);
    font-size: 1.15rem;
    margin-top: .1rem;
    flex-shrink: 0;
}
.showcase-video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: .85rem;
    overflow: hidden;
    background: #0a4d37;
    box-shadow: 0 12px 32px rgba(10, 77, 55, .14);
}
.showcase-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.showcase-video-fallback {
    text-align: center;
    padding: 1.5rem 1rem;
}
@media (max-width: 991.98px) {
    .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .showcase-cc-layout { grid-template-columns: 1fr; }
    .showcase-cc-sidebar { position: static; }
    .showcase-feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .showcase-grid { grid-template-columns: 1fr; }
    .showcase-hero { padding-top: 5rem; }
}
