:root {
    --bg: #f4f0e8;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --text: #163148;
    --muted: #607487;
    --line: rgba(22, 49, 72, 0.12);
    --brand: #123a59;
    --brand-2: #dba84a;
    --danger: #c85a5a;
    --success: #1f8d62;
    --shadow: 0 24px 60px rgba(18, 58, 89, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Cairo", system-ui, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(219, 168, 74, 0.18), transparent 28%),
        linear-gradient(180deg, #f6f2ea, #eef1f5 45%, #f7f9fb);
    color: var(--text);
}

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

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

.shell {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    align-items: start;
    min-height: 100vh;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
    border-inline-end: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.brand {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.brand-mark {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand), #245f88);
    color: white;
    font-weight: 800;
    font-size: 22px;
}

.brand p,
.sidebar-note,
.muted {
    color: var(--muted);
}

.nav {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.nav-link {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    color: var(--muted);
    transition: 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
    color: var(--brand);
    border-color: rgba(18, 58, 89, 0.08);
    background: rgba(18, 58, 89, 0.06);
}

.content {
    min-width: 0;
    padding: 34px;
}

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

.eyebrow {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(219, 168, 74, 0.15);
    color: #8b6318;
    font-size: 13px;
    font-weight: 700;
}

.page-head h1,
.hero-copy h1 {
    margin: 10px 0 6px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.02;
}

.actions,
.button-row,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 16px;
    padding: 13px 18px;
    font: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--brand), #1f5d89);
    box-shadow: 0 16px 30px rgba(18, 58, 89, 0.2);
}

.btn-secondary {
    background: rgba(18, 58, 89, 0.08);
    color: var(--brand);
}

.btn-danger {
    background: rgba(200, 90, 90, 0.12);
    color: var(--danger);
}

.panel,
.stat-card,
.form-card,
.hero-card,
.store-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.panel,
.form-card,
.hero-card,
.store-card {
    padding: 24px;
}

.stats-grid,
.cards-grid,
.feature-grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-bottom: 24px;
}

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

.stat-card strong {
    display: block;
    font-size: 34px;
    margin-top: 12px;
}

.panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

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

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

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.field,
.field-full {
    display: grid;
    gap: 8px;
}

.field-full {
    grid-column: 1 / -1;
}

label {
    font-weight: 700;
    font-size: 14px;
}

.required-mark {
    color: var(--danger);
    margin-inline-start: 4px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(18, 58, 89, 0.14);
    background: rgba(255, 255, 255, 0.92);
    padding: 13px 14px;
    font: inherit;
    color: var(--text);
}

textarea {
    min-height: 118px;
    resize: vertical;
}

.field.is-invalid label,
.field-full.is-invalid label {
    color: var(--danger);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
.field-full.is-invalid input,
.field-full.is-invalid select,
.field-full.is-invalid textarea {
    border-color: rgba(255, 122, 122, 0.75);
    box-shadow: 0 0 0 3px rgba(255, 122, 122, 0.14);
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 14px;
    background: rgba(18, 58, 89, 0.05);
    border-radius: 999px;
}

.checkbox-pill input {
    width: auto;
}

.notice {
    position: relative;
    padding: 14px 16px;
    padding-inline-end: 48px;
    border-radius: 16px;
    margin-bottom: 16px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.notice.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

.notice-success {
    background: rgba(31, 141, 98, 0.12);
    color: var(--success);
}

.notice-error {
    background: rgba(200, 90, 90, 0.12);
    color: var(--danger);
}

.notice-close {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: currentColor;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}

.notice-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.12);
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(18, 58, 89, 0.09);
    text-align: start;
}

th {
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

.badge {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-ok {
    background: rgba(31, 141, 98, 0.12);
    color: var(--success);
}

.badge-muted {
    background: rgba(18, 58, 89, 0.08);
    color: var(--muted);
}

.badge-warn {
    background: rgba(219, 168, 74, 0.16);
    color: #8b6318;
}

.preview {
    border: 1px dashed rgba(18, 58, 89, 0.18);
    border-radius: 16px;
    min-height: 160px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.54);
    color: var(--muted);
}

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

.menu-list,
.sortable-list {
    display: grid;
    gap: 12px;
}

.menu-link,
.sortable-item,
.branch-card,
.item-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(18, 58, 89, 0.08);
}

.menu-link.active {
    border-color: rgba(18, 58, 89, 0.18);
    background: rgba(18, 58, 89, 0.06);
}

.sortable-item {
    cursor: grab;
}

.drag-handle {
    color: var(--muted);
    font-weight: 800;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.auth-card,
.install-card {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.84);
    border-radius: 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px);
}

.auth-highlight {
    padding: 24px;
    border-radius: 28px;
    color: white;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 32%),
        linear-gradient(135deg, #17324d, #1d496d 52%, #1b7084);
}

.hero-store {
    position: relative;
    overflow: hidden;
    padding: 28px;
    color: white;
    background: linear-gradient(135deg, rgba(18, 58, 89, 0.92), rgba(27, 112, 132, 0.84));
}

.hero-store.has-image {
    background-size: cover;
    background-position: center;
}

.hero-store::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 32, 49, 0.84), rgba(24, 73, 104, 0.68));
}

.hero-store > * {
    position: relative;
    z-index: 1;
}

.store-wrap {
    width: min(1320px, calc(100% - 32px));
    margin: 24px auto 60px;
    display: grid;
    gap: 18px;
}

.chip-row,
.locale-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
}

.store-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.85fr;
    gap: 18px;
}

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

.food-card {
    overflow: hidden;
}

.food-body {
    padding: 18px;
    display: grid;
    gap: 10px;
}

.food-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.footer-note {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
}

details {
    border: 1px solid rgba(18, 58, 89, 0.08);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.72);
}

summary {
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 1080px) {
    .shell,
    .menu-studio,
    .store-grid,
    .auth-card,
    .install-card {
        grid-template-columns: 1fr;
    }

    .sidebar {
        height: auto;
        max-height: none;
        overflow: visible;
        position: static;
    }
}

@media (max-width: 720px) {
    .content,
    .sidebar,
    .hero-store,
    .panel,
    .form-card,
    .store-card {
        padding: 18px;
    }
}

.brand-card {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}

.locale-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.locale-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(18, 58, 89, 0.08);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.locale-pill.active {
    background: linear-gradient(135deg, var(--brand), #1f5d89);
    color: white;
}

.sidebar-note {
    display: grid;
    gap: 4px;
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(18, 58, 89, 0.06);
}

.sidebar-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 16px;
    margin-top: 18px;
    border-radius: 18px;
    background: rgba(18, 58, 89, 0.06);
}

.sidebar-summary strong {
    font-size: 20px;
}

.small-head h2 {
    margin: 10px 0 6px;
}

.auth-locales {
    justify-content: center;
    margin-bottom: 20px;
}

.two-col {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

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

.metric-row,
.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    align-items: center;
}

.metric-row {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
}

.list-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(18, 58, 89, 0.08);
}

.tiled-actions .btn {
    flex: 1 1 180px;
}

.media-lab {
    display: grid;
    gap: 18px;
}

.upload-grid,
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.mobile-preview-card {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 270px;
    padding: 10px;
    border-radius: 36px;
    background: #10283c;
    box-shadow: 0 24px 50px rgba(16, 40, 60, 0.2);
}

.phone-screen.hero {
    height: 420px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(18, 58, 89, 0.95), rgba(27, 112, 132, 0.7));
}

.phone-screen.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-overlay {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: -80px;
    position: relative;
    z-index: 1;
    color: white;
}

.mini-logo {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
}

.mini-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.schedule-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(18, 58, 89, 0.08);
    display: grid;
    gap: 10px;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.inline-form input,
.inline-form select,
.inline-form textarea {
    width: auto;
    min-width: 120px;
    flex: 1 1 120px;
}

.storefront-body {
    background:
        radial-gradient(circle at top left, rgba(219, 168, 74, 0.16), transparent 20%),
        linear-gradient(180deg, #f7f3ec, #edf1f7 50%, #f8fafb);
}

.storefront-body.medo-bot-open {
    overflow: hidden;
}

.storefront-app {
    width: min(1420px, calc(100% - 32px));
    margin: 20px auto 48px;
    display: grid;
    gap: 18px;
}

.storefront-topbar {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow);
}

.topbar-brand,
.topbar-actions,
.branch-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1 1 560px;
}

.topbar-brand {
    flex: 1 1 280px;
    min-width: 0;
}

.topbar-brand-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.topbar-brand-copy strong,
.topbar-brand-copy span {
    overflow-wrap: anywhere;
}

.topbar-locales,
.topbar-quick-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.topbar-locales-inline {
    margin-inline-start: auto;
}

.topbar-branch-link,
.topbar-quick-btn {
    min-height: 46px;
    border-radius: 18px;
}

.topbar-quick-btn {
    position: relative;
    padding-inline: 15px;
}

.topbar-action-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topbar-action-icon svg {
    width: 100%;
    height: 100%;
}

.topbar-action-badge {
    min-width: 22px;
    height: 22px;
    padding-inline: 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.topbar-cart-btn .topbar-action-badge {
    color: #ffffff;
}

.topbar-brand-hub,
.menu-topbar-stack {
    width: 100%;
}

.topbar-brand-hub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

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

.menu-topbar-actions {
    justify-content: flex-start;
}

.menu-topbar-actions .topbar-quick-btn {
    width: auto;
    min-width: 48px;
    min-height: 48px;
    padding: 0 14px;
}

.menu-topbar-actions .topbar-action-label {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
}

.locale-icon-pill {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.05em;
    font-size: 11px;
}

html[dir="rtl"] .topbar-branch-link .topbar-action-icon {
    transform: scaleX(-1);
}

.brand-logo,
.branch-logo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(18, 58, 89, 0.18);
}

.welcome-hero {
    position: relative;
    min-height: 360px;
    border-radius: 36px;
    overflow: hidden;
    background: linear-gradient(140deg, #17324d, #1b7084 60%, #efb84c);
    display: grid;
    align-items: end;
    padding: 30px;
}

.welcome-hero.has-image {
    background-size: cover;
    background-position: center;
}

.hero-video,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background: linear-gradient(150deg, rgba(8, 24, 38, 0.76), rgba(23, 50, 77, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 760px;
}

.banner-strip {
    display: grid;
    gap: 16px;
}

.banner-card,
.banner-inline {
    display: grid;
    gap: 16px;
}

.banner-card video,
.banner-card img {
    border-radius: 18px;
    max-height: 240px;
    object-fit: cover;
    width: 100%;
}

.branch-card.active {
    border-color: rgba(18, 58, 89, 0.24);
    background: rgba(18, 58, 89, 0.08);
}

.storefront-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
    gap: 18px;
    align-items: start;
}

.storefront-shell-full {
    grid-template-columns: minmax(0, 1fr);
}

.store-main,
.store-side {
    display: grid;
    gap: 18px;
}

.category-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    cursor: grab;
}

.category-strip.dragging {
    cursor: grabbing;
}

.category-chip {
    min-width: 140px;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(18, 58, 89, 0.08);
    box-shadow: var(--shadow);
    text-align: center;
}

.category-chip img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
}

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

.price-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.price-old {
    color: var(--muted);
    text-decoration: line-through;
}

.price-new {
    font-weight: 800;
    color: var(--brand);
}

.icon-like {
    border: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(18, 58, 89, 0.08);
    color: var(--brand);
    cursor: pointer;
}

.option-stack {
    padding: 12px;
    border-radius: 18px;
    background: rgba(18, 58, 89, 0.04);
}

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

.option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
}

.option-pill input {
    width: auto;
}

.cart-lines {
    display: grid;
    gap: 10px;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(18, 58, 89, 0.06);
}

.cart-line-actions {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.cart-line-actions button {
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(200, 90, 90, 0.14);
    color: var(--danger);
    cursor: pointer;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(18, 58, 89, 0.08);
    font-weight: 800;
}

@media (max-width: 1080px) {
    .storefront-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .storefront-topbar {
        top: 0;
        border-radius: 20px;
    }

    .welcome-hero {
        min-height: 300px;
        padding: 22px;
    }

    .category-chip {
        min-width: 120px;
    }

    .inline-form input,
    .inline-form select,
    .inline-form textarea {
        width: 100%;
    }
}

.storefront-body {
    --surface: rgba(16, 20, 29, 0.88);
    --surface-strong: #111722;
    --text: #f4f6fb;
    --muted: #94a0b5;
    --line: rgba(255, 255, 255, 0.08);
    --brand: #d8b15d;
    --brand-2: #5dc0ae;
    --shadow: 0 28px 70px rgba(3, 6, 13, 0.4);
    background:
        radial-gradient(circle at top left, rgba(216, 177, 93, 0.16), transparent 22%),
        radial-gradient(circle at top right, rgba(93, 192, 174, 0.12), transparent 26%),
        linear-gradient(180deg, #0a0f16, #111723 45%, #090d13);
    color: var(--text);
}

.storefront-body .store-card,
.storefront-body .hero-card,
.storefront-body .panel,
.storefront-body .stat-card {
    border-color: rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(17, 23, 34, 0.94), rgba(13, 18, 28, 0.88));
}

.storefront-body .btn-primary,
.storefront-app .btn-primary,
.storefront-body .locale-pill.active,
.storefront-app .locale-pill.active {
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.storefront-body .btn-secondary,
.storefront-app .btn-secondary,
.storefront-body .locale-pill,
.storefront-app .locale-pill {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.storefront-page {
    gap: 22px;
}

.landing-page .storefront-topbar,
.menu-page .storefront-topbar {
    background: rgba(13, 18, 28, 0.78);
    border-color: rgba(255, 255, 255, 0.08);
}

.landing-page-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(214, 177, 100, 0.18), transparent 28%),
        linear-gradient(180deg, #0a1017, #0c131d 45%, #091018);
}

.landing-page-backdrop-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-page-backdrop-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.34), rgba(6, 10, 16, 0.86)),
        radial-gradient(circle at top left, rgba(115, 183, 255, 0.14), transparent 26%),
        radial-gradient(circle at top right, rgba(214, 177, 100, 0.18), transparent 24%);
}

.landing-page-stage {
    position: relative;
    z-index: 1;
}

.landing-page .landing-title {
    margin: 0;
    font-size: clamp(22px, 3.2vw, 34px);
}

.landing-branch-hero {
    display: grid;
    grid-template-columns: 1fr;
    align-items: end;
    gap: 12px;
    padding: 18px 22px;
    background:
        linear-gradient(180deg, rgba(9, 14, 21, 0.72), rgba(9, 14, 21, 0.54)),
        radial-gradient(circle at top right, rgba(214, 177, 100, 0.12), transparent 28%);
    backdrop-filter: blur(20px);
}

.landing-branch-hero-copy {
    min-width: 0;
}

.landing-welcome-note {
    margin: 10px 0 0;
    max-width: 560px;
    line-height: 1.75;
    color: rgba(244, 246, 251, 0.78);
}

.branch-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    gap: 16px;
    justify-content: start;
}

.branch-compact-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(10, 16, 24, 0.52), rgba(11, 16, 24, 0.28)),
        radial-gradient(circle at top right, rgba(214, 177, 100, 0.14), transparent 32%);
    backdrop-filter: blur(18px) saturate(125%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.branch-compact-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.branch-compact-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(214, 177, 100, 0.2), rgba(115, 183, 255, 0.18)),
        rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.branch-compact-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-compact-mark span {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
}

.branch-compact-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.branch-compact-copy h3 {
    margin: 0;
    font-size: 1rem;
}

.branch-compact-copy p {
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.branch-compact-title-row,
.branch-compact-meta-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.branch-compact-title-row {
    align-items: flex-start;
}

.branch-compact-title-row h3 {
    flex: 1 1 auto;
}

.branch-compact-meta {
    font-size: 0.82rem;
    color: rgba(244, 246, 251, 0.62);
}

.branch-contact-icons,
.branch-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.branch-contact-icons {
    margin-inline-start: auto;
}

.branch-icon-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.branch-icon-link svg {
    width: 18px;
    height: 18px;
}

.branch-icon-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}

.branch-compact-footer {
    display: flex;
    justify-content: flex-start;
}

.branch-enter-btn {
    width: auto;
    min-width: 148px;
    min-height: 46px;
    border-radius: 18px;
}

.welcome-hero-spacious {
    min-height: 460px;
    padding: 44px;
}

.welcome-hero-compact {
    min-height: 280px;
    padding: 28px;
}

.landing-intro-card {
    overflow: hidden;
}

.branch-only-card {
    padding: 30px;
}

.landing-title {
    margin: 8px 0 6px;
    font-size: clamp(30px, 4vw, 52px);
}

.landing-featured-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

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

.branch-showcase-grid.compact {
    margin-top: 12px;
}

.branch-showcase-card {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(216, 177, 93, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(17, 23, 34, 0.96), rgba(12, 17, 26, 0.92));
    box-shadow: var(--shadow);
}

.branch-showcase-head {
    display: flex;
    gap: 14px;
    align-items: center;
}

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

.category-rail-card {
    overflow: hidden;
}

.category-chip.rich {
    min-width: 150px;
    gap: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.category-chip.rich img {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.category-chip.ambient,
.banner-inline.ambient {
    background:
        radial-gradient(circle at top right, rgba(216, 177, 93, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(19, 26, 39, 0.94), rgba(12, 17, 26, 0.9));
}

.category-section {
    display: grid;
    gap: 24px;
}

.category-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 20px;
    align-items: center;
}

.category-section-media {
    border-radius: 26px;
    overflow: hidden;
    min-height: 180px;
    background: rgba(255, 255, 255, 0.04);
}

.category-section-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-food-grid {
    gap: 18px;
}

.deluxe-food-card {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(18, 25, 37, 0.98), rgba(12, 17, 26, 0.95));
}

.food-media {
    position: relative;
}

.food-image,
.food-image.fallback {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.food-image.fallback {
    display: grid;
    place-items: center;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #081019;
    font-weight: 700;
}

.floating-like {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    background: rgba(10, 15, 22, 0.72);
    color: white;
    backdrop-filter: blur(12px);
}

.food-copy {
    display: grid;
    gap: 8px;
}

.price-new {
    color: var(--brand);
}

.option-stack {
    background: rgba(255, 255, 255, 0.04);
}

.option-pill {
    background: rgba(255, 255, 255, 0.06);
}

.menu-link,
.branch-switch {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.branch-switch.active {
    border-color: var(--brand);
    background: rgba(255, 255, 255, 0.08);
}

.compact-branch-list {
    gap: 10px;
}

.modal-open {
    overflow: hidden;
}

.modal-shell {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    z-index: 60;
}

.modal-shell.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 12, 0.72);
    backdrop-filter: blur(10px);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    padding: 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(18, 24, 35, 0.98), rgba(11, 15, 23, 0.97));
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45);
}

.modal-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

.modal-embedded {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.cart-line {
    background: rgba(255, 255, 255, 0.05);
}

.cart-total {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--brand);
}

.category-studio-stack {
    gap: 18px;
}

.category-studio-card {
    padding: 24px;
    cursor: default;
}

.category-studio-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.category-studio-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.category-thumb {
    width: 94px;
    height: 94px;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 10px;
    background: rgba(18, 58, 89, 0.08);
    color: var(--muted);
}

.category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-preview {
    min-height: 180px;
}

.compact-preview img,
.compact-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.studio-items-grid {
    align-items: start;
}

.studio-item-card {
    background: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1080px) {
    .category-section-head {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .welcome-hero-spacious {
        min-height: 360px;
        padding: 24px;
    }

    .branch-showcase-card,
    .modal-card {
        padding: 18px;
    }
}

body.panel-body {
    --surface: rgba(15, 19, 28, 0.92);
    --surface-strong: #101722;
    --text: #f6f8fc;
    --muted: #8d9ab3;
    --line: rgba(255, 255, 255, 0.08);
    --brand: #d6b164;
    --brand-2: #73b7ff;
    --danger: #ff7a7a;
    --success: #4ecf94;
    --shadow: 0 30px 70px rgba(2, 6, 14, 0.42);
    background:
        radial-gradient(circle at top left, rgba(214, 177, 100, 0.12), transparent 18%),
        radial-gradient(circle at top right, rgba(115, 183, 255, 0.1), transparent 22%),
        linear-gradient(180deg, #0a0f16, #101722 55%, #0b1018);
    color: var(--text);
}

body.panel-body.super-admin-theme {
    --brand: #76d1ff;
    --brand-2: #d6b164;
}

body.panel-body .sidebar {
    background: rgba(10, 15, 22, 0.9);
    border-inline-end-color: rgba(255, 255, 255, 0.08);
}

body.panel-body .sidebar-note,
body.panel-body .sidebar-summary,
body.panel-body .menu-link,
body.panel-body .sortable-item,
body.panel-body .branch-card,
body.panel-body .item-card,
body.panel-body .metric-row,
body.panel-body .list-card,
body.panel-body details,
body.panel-body .preview,
body.panel-body .phone-frame,
body.panel-body .schedule-card,
body.panel-body .stat-card,
body.panel-body .panel,
body.panel-body .form-card,
body.panel-body .hero-card,
body.panel-body .store-card {
    background: linear-gradient(180deg, rgba(18, 24, 35, 0.96), rgba(12, 17, 26, 0.92));
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

body.panel-body .sidebar-summary,
body.panel-body .sidebar-note {
    background: rgba(255, 255, 255, 0.04);
}

body.panel-body .nav-link {
    color: var(--muted);
}

body.panel-body .nav-link.active,
body.panel-body .nav-link:hover {
    color: #081019;
    border-color: rgba(214, 177, 100, 0.18);
    background: linear-gradient(135deg, var(--brand), #f4d48f);
}

body.panel-body input,
body.panel-body select,
body.panel-body textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.09);
    color: var(--text);
}

body.storefront-body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.storefront-body select,
body.storefront-body textarea {
    background: linear-gradient(180deg, rgba(16, 23, 34, 0.94), rgba(11, 16, 24, 0.92));
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.panel-body select,
body.storefront-body select {
    color-scheme: dark;
}

body.panel-body select option,
body.panel-body select optgroup,
body.storefront-body select option,
body.storefront-body select optgroup {
    background: #101722;
    color: var(--text);
}

body.panel-body input::placeholder,
body.panel-body textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

body.storefront-body input:not([type="checkbox"]):not([type="radio"]):not([type="range"])::placeholder,
body.storefront-body textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

body.storefront-body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
body.storefront-body select:focus,
body.storefront-body textarea:focus {
    outline: none;
    border-color: rgba(214, 177, 100, 0.48);
    box-shadow: 0 0 0 4px rgba(214, 177, 100, 0.12);
}

body.storefront-body input[type="date"],
body.storefront-body input[type="time"],
body.storefront-body input[type="datetime-local"] {
    color-scheme: dark;
}

body.storefront-body input[type="date"]::-webkit-calendar-picker-indicator,
body.storefront-body input[type="time"]::-webkit-calendar-picker-indicator,
body.storefront-body input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(0.92) sepia(0.08) saturate(0.4);
    opacity: 0.9;
}

body.storefront-body input:-webkit-autofill,
body.storefront-body input:-webkit-autofill:hover,
body.storefront-body input:-webkit-autofill:focus,
body.storefront-body textarea:-webkit-autofill,
body.storefront-body select:-webkit-autofill {
    -webkit-text-fill-color: var(--text);
    box-shadow: 0 0 0 1000px #111722 inset;
    transition: background-color 9999s ease-in-out 0s;
}

body.storefront-body .modal-card .field label,
body.storefront-body .modal-card .panel-title h2,
body.storefront-body .modal-card .panel-title p {
    color: var(--text);
}

body.panel-body .btn-primary {
    color: #0c121b;
    background: linear-gradient(135deg, var(--brand), #f4d48f);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

body.panel-body .btn-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

body.panel-body .btn-danger {
    background: rgba(255, 122, 122, 0.14);
}

body.panel-body .locale-pill {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

body.panel-body .locale-pill.active {
    color: #081019;
    background: linear-gradient(135deg, var(--brand), #f4d48f);
}

body.panel-body table th,
body.panel-body table td {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.panel-body .checkbox-pill,
body.panel-body .option-pill {
    background: rgba(255, 255, 255, 0.06);
}

body.panel-body .muted,
body.panel-body .brand p,
body.panel-body .sidebar-note {
    color: var(--muted);
}

body.panel-body .modal-card {
    background: linear-gradient(180deg, rgba(18, 24, 35, 0.98), rgba(9, 14, 21, 0.96));
}

.branch-showcase-card h3,
.branch-showcase-card .menu-link,
.branch-showcase-card .chip {
    overflow-wrap: anywhere;
}

.branch-showcase-head h3 {
    margin: 0 0 6px;
}

.branch-showcase-head p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.banner-inline,
.branch-showcase-card,
.list-card,
.category-chip,
.category-section,
.panel,
.form-card {
    overflow: hidden;
}

.qr-preview-card {
    display: grid;
    place-items: center;
    min-height: 360px;
    border-radius: 28px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(20, 28, 41, 0.96), rgba(10, 14, 22, 0.92));
}

.qr-preview-card img {
    width: min(100%, 420px);
    border-radius: 20px;
    background: white;
    padding: 16px;
}

.refined-menu-studio {
    align-items: start;
}

.studio-menu-list,
.studio-item-list,
.studio-option-list {
    gap: 14px;
}

.studio-menu-entry.active {
    border-color: rgba(214, 177, 100, 0.42);
    box-shadow: 0 18px 40px rgba(214, 177, 100, 0.12);
}

.compact-meta-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.compact-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.studio-focus-card {
    gap: 18px;
}

.studio-item-card {
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-item-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    list-style: none;
}

.studio-item-card summary::-webkit-details-marker {
    display: none;
}

.studio-item-card[open] {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.item-thumb {
    width: 72px;
    height: 72px;
}

.studio-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.branch-showcase-card,
.branch-showcase-card * {
    min-width: 0;
}

.branch-showcase-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.branch-contact-list,
.branch-contact-list .menu-link,
.meta-grid span,
.list-card p,
.list-card strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 860px) {
    .studio-item-card summary,
    .studio-option-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.notice-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.store-notices {
    margin: 16px auto 0;
}

.report-card-link {
    display: grid;
    gap: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.report-card-link:hover {
    transform: translateY(-2px);
    border-color: rgba(214, 177, 100, 0.3);
}

.modal-card-wide {
    width: min(1080px, 100%);
}

.catalog-builder,
.catalog-line-card,
.option-builder-group,
.branch-action-bar {
    display: grid;
    gap: 16px;
}

.option-builder-group {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-slider-card {
    overflow: hidden;
    padding: 24px;
}

.hero-slider-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
}

.hero-slide {
    position: relative;
    min-width: 100%;
    min-height: 320px;
    scroll-snap-align: start;
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 30%),
        linear-gradient(135deg, var(--brand), var(--brand-2));
    background-size: cover;
    background-position: center;
    display: grid;
    align-items: end;
    padding: 28px;
}

.hero-slide .hero-content {
    max-width: 560px;
}

.hero-slide .hero-content h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 40px);
}

.hero-slide .hero-content p {
    margin: 0 0 18px;
}

.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.hero-slider-dot.is-active {
    background: var(--brand);
    transform: scale(1.25);
}

.branch-action-bar .actions .btn,
.branch-contact-list .btn {
    min-width: 180px;
}

.branch-contact-list .btn {
    justify-content: flex-start;
}

.auth-body {
    background:
        linear-gradient(135deg, rgba(7, 12, 20, 0.92), rgba(11, 18, 30, 0.88)),
        var(--auth-bg-image, radial-gradient(circle at top right, rgba(118, 209, 255, 0.12), transparent 28%), linear-gradient(180deg, #0a0f16, #101722 55%, #0b1018));
    background-size: cover;
    background-position: center;
    color: #f6f8fc;
}

.auth-card-refined {
    min-height: 620px;
    grid-template-columns: 1.05fr 0.95fr;
}

.auth-showcase {
    position: relative;
    overflow: hidden;
    padding: 32px;
    border-radius: 30px;
    color: white;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 30%),
        linear-gradient(145deg, var(--auth-accent), var(--auth-accent-2));
}

.auth-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(7, 12, 20, 0.28), rgba(7, 12, 20, 0.08)),
        var(--auth-bg-image, none);
    background-size: cover;
    background-position: center;
    mix-blend-mode: multiply;
}

.auth-showcase > * {
    position: relative;
    z-index: 1;
}

.auth-showcase h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1;
}

.auth-showcase p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.auth-branding {
    display: grid;
    gap: 14px;
    align-content: start;
}

.auth-brand-logo {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.auth-form-card {
    display: grid;
    align-items: center;
}

.compact-stack {
    gap: 20px;
}

@media (max-width: 1080px) {
    .auth-card-refined {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hero-slide {
        min-height: 260px;
        padding: 22px;
    }

    .branch-action-bar .actions .btn,
    .branch-contact-list .btn {
        width: 100%;
    }
}

.landing-welcome-note {
    max-width: 640px;
    margin: 14px 0 0;
    line-height: 1.8;
}

.btn-block {
    width: 100%;
}

.settings-form {
    display: block;
}

.settings-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) 380px;
    gap: 20px;
    align-items: start;
}

.settings-main,
.settings-side {
    display: grid;
    gap: 18px;
}

.settings-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.settings-tab {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(18, 24, 35, 0.95), rgba(12, 17, 26, 0.9));
    color: var(--text);
    cursor: pointer;
    text-align: start;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-tab span {
    color: var(--muted);
    font-size: 13px;
}

.settings-tab:hover,
.settings-tab.active {
    transform: translateY(-1px);
    border-color: rgba(214, 177, 100, 0.28);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.settings-panel {
    display: none;
    gap: 18px;
}

.settings-panel.is-active {
    display: grid;
}

.settings-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.settings-panel-head h2 {
    margin: 0 0 8px;
}

.settings-actions-card {
    position: sticky;
    top: 18px;
}

.settings-preview-display {
    --preview-brand: #d6b164;
    --preview-accent: #73b7ff;
    --preview-grid-columns: 2;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(10, 14, 22, 0.98), rgba(8, 11, 18, 0.97));
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

.settings-preview-topbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-preview-brandline {
    display: flex;
    gap: 12px;
    align-items: center;
}

.settings-preview-brandline span {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.settings-preview-logo-media {
    width: 100%;
    height: 100%;
}

.settings-preview-logo-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-preview-hero {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(18, 58, 89, 0.98), rgba(27, 112, 132, 0.78));
}

.settings-preview-cover-media,
.settings-preview-cover-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.settings-preview-cover-media img {
    object-fit: cover;
}

.settings-preview-hero::before,
.hero-slide::before,
.welcome-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
}

.settings-preview-hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 12, 20, 0.12), rgba(7, 12, 20, 0.82));
}

.settings-preview-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: end;
    gap: 10px;
    min-height: 250px;
    padding: 18px;
}

.settings-preview-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.settings-preview-copy h4 {
    margin: 0;
    color: white;
    font-size: 24px;
}

.settings-preview-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.settings-preview-note,
.settings-preview-item {
    margin: 14px 16px 0;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-preview-note {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.settings-preview-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 16px 0;
}

.settings-preview-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.settings-preview-grid {
    display: grid;
    grid-template-columns: repeat(var(--preview-grid-columns, 2), minmax(0, 1fr));
    gap: 10px;
    padding: 14px 16px 0;
}

.settings-preview-item {
    margin: 0;
    min-height: 88px;
    display: grid;
    align-content: center;
    gap: 8px;
}

.settings-preview-item strong {
    color: white;
}

.settings-preview-item small {
    color: rgba(255, 255, 255, 0.66);
}

.settings-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px 0;
}

.settings-preview-toggle {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.settings-preview-toggle.is-off {
    opacity: 0.38;
}

.settings-preview-footer {
    padding: 16px;
}

.settings-preview-display .btn-primary {
    color: #081019;
    background: linear-gradient(135deg, var(--preview-brand), var(--preview-accent));
    box-shadow: none;
}

.settings-preview-button.is-off {
    opacity: 0.42;
    pointer-events: none;
}

.settings-side-actions {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

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

.storefront-app.theme-button-pill .btn,
.settings-preview-display[data-button-style="pill"] .settings-preview-button {
    border-radius: 999px;
}

.storefront-app.theme-button-sharp .btn,
.settings-preview-display[data-button-style="sharp"] .settings-preview-button {
    border-radius: 12px;
}

.storefront-app.theme-card-outline .store-card,
.storefront-app.theme-card-outline .deluxe-food-card,
.storefront-app.theme-card-outline .category-chip,
.storefront-app.theme-card-outline .branch-showcase-card {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.storefront-app.theme-card-flat .store-card,
.storefront-app.theme-card-flat .deluxe-food-card,
.storefront-app.theme-card-flat .category-chip,
.storefront-app.theme-card-flat .branch-showcase-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.settings-preview-display[data-card-style="outline"] .settings-preview-note,
.settings-preview-display[data-card-style="outline"] .settings-preview-item,
.settings-preview-display[data-card-style="outline"] .settings-preview-chip {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.settings-preview-display[data-card-style="flat"] .settings-preview-note,
.settings-preview-display[data-card-style="flat"] .settings-preview-item,
.settings-preview-display[data-card-style="flat"] .settings-preview-chip {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.storefront-app.category-style-chips .category-chip.rich {
    min-width: 124px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 14px;
    text-align: start;
}

.storefront-app.category-style-chips .category-chip.rich img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.storefront-app.category-style-compact .category-strip {
    gap: 8px;
}

.storefront-app.category-style-compact .category-chip.rich {
    min-width: auto;
    display: inline-flex;
    align-items: center;
    padding: 11px 14px;
}

.storefront-app.category-style-compact .category-chip.rich img {
    display: none;
}

.storefront-app.category-style-compact .category-chip.rich span {
    white-space: nowrap;
}

.settings-preview-display[data-category-style="compact"] .settings-preview-chip {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
}

.settings-preview-display[data-category-style="chips"] .settings-preview-chip {
    padding: 9px 14px;
}

.storefront-app.topbar-style-floating .storefront-topbar {
    background: rgba(13, 18, 28, 0.7);
    backdrop-filter: blur(20px);
}

.storefront-app.topbar-style-minimal .storefront-topbar {
    padding: 12px 16px;
    border-radius: 20px;
    box-shadow: none;
    background: rgba(11, 15, 23, 0.68);
}

.settings-preview-display[data-topbar-style="floating"] .settings-preview-topbar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
}

.settings-preview-display[data-topbar-style="minimal"] .settings-preview-topbar {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
}

.storefront-app.theme-hero-compact .hero-slide,
.storefront-app.theme-hero-compact .welcome-hero {
    min-height: 240px;
}

.storefront-app.theme-hero-cinematic .hero-slide,
.storefront-app.theme-hero-cinematic .welcome-hero {
    min-height: 420px;
}

.settings-preview-display[data-hero-style="compact"] .settings-preview-hero {
    min-height: 220px;
}

.settings-preview-display[data-hero-style="compact"] .settings-preview-copy {
    min-height: 220px;
}

.settings-preview-display[data-hero-style="cinematic"] .settings-preview-hero {
    min-height: 310px;
}

.settings-preview-display[data-hero-style="cinematic"] .settings-preview-copy {
    min-height: 310px;
}

.storefront-app.theme-mood-warm {
    --shadow: 0 28px 70px rgba(56, 28, 10, 0.42);
}

.storefront-app.theme-mood-ocean {
    --shadow: 0 28px 70px rgba(10, 41, 72, 0.4);
}

.storefront-app.theme-mood-mono {
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

.settings-preview-display[data-mood="warm"] {
    box-shadow: 0 26px 60px rgba(56, 28, 10, 0.34);
}

.settings-preview-display[data-mood="ocean"] {
    box-shadow: 0 26px 60px rgba(10, 41, 72, 0.34);
}

.settings-preview-display[data-mood="mono"] {
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
}

.storefront-app.theme-texture-mesh .hero-slide::before,
.storefront-app.theme-texture-mesh .welcome-hero::before,
.settings-preview-display[data-texture-style="mesh"] .settings-preview-hero::before {
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 18px 18px;
}

.storefront-app.theme-texture-grain .hero-slide::before,
.storefront-app.theme-texture-grain .welcome-hero::before,
.settings-preview-display[data-texture-style="grain"] .settings-preview-hero::before {
    opacity: 0.16;
    background-image: radial-gradient(rgba(255, 255, 255, 0.24) 0.7px, transparent 0.7px);
    background-size: 10px 10px;
}

.storefront-app.theme-texture-clean .hero-slide::before,
.storefront-app.theme-texture-clean .welcome-hero::before,
.settings-preview-display[data-texture-style="clean"] .settings-preview-hero::before {
    opacity: 0;
}

@media (max-width: 1080px) {
    .settings-shell {
        grid-template-columns: 1fr;
    }

    .settings-actions-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .settings-tabs {
        grid-template-columns: 1fr;
    }

    .settings-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .settings-preview-grid {
        grid-template-columns: 1fr;
    }
}

.storefront-body .btn-primary,
.storefront-app .btn-primary {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.storefront-body .price-new,
.heart-icon {
    color: var(--brand-2);
}

.food-image.fallback {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.hero-slide,
.welcome-hero,
.settings-preview-hero {
    background: rgba(17, 23, 34, 0.96);
}

.hero-slider-track {
    scroll-behavior: smooth;
}

.category-rail-card {
    position: sticky;
    top: 96px;
    z-index: 18;
}

.category-section {
    scroll-margin-top: 220px;
}

.category-chip.is-active {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-color: transparent;
    color: #081019;
    box-shadow: 0 18px 38px rgba(15, 44, 74, 0.24);
}

.category-chip.is-active span {
    color: #081019;
}

.food-media-trigger,
.food-summary-trigger {
    width: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.food-summary-trigger {
    display: grid;
    gap: 12px;
}

.item-order-bar {
    display: grid;
    gap: 10px;
}

.item-order-button,
.item-qty-stepper,
.product-modal-order-bar,
.cart-line-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-qty-stepper,
.product-modal-order-bar {
    justify-content: space-between;
}

.item-step-btn,
.item-step-count {
    min-width: 42px;
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.item-step-btn:hover,
.item-step-count:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn.is-loading {
    opacity: 0.72;
    cursor: progress;
    pointer-events: none;
}

.item-step-count {
    flex: 1;
    font-weight: 800;
    background: rgba(93, 192, 174, 0.18);
    color: var(--brand-2);
}

.icon-like {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.heart-icon {
    font-size: 16px;
    line-height: 1;
}

.product-modal-card {
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.product-modal-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 20px;
}

.product-modal-media {
    min-height: 420px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.product-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
}

.product-modal-content {
    display: grid;
    gap: 20px;
    align-content: start;
}

.product-modal-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.product-modal-price-block {
    display: grid;
    gap: 6px;
}

.product-modal-price-block strong {
    font-size: 28px;
    color: var(--brand-2);
}

.product-modal-options-wrap {
    gap: 14px;
}

.product-option-group {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.product-option-group.is-invalid {
    border-color: rgba(255, 122, 122, 0.8);
    box-shadow: 0 0 0 1px rgba(255, 122, 122, 0.2);
}

.product-option-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.product-option-head p {
    margin: 6px 0 0;
}

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

.product-option-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    touch-action: manipulation;
}

.product-option-row input {
    width: auto;
    margin: 0;
    accent-color: var(--brand);
}

.product-option-row:focus-within {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.09);
}

.product-empty-options {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.product-modal-order-bar {
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
}

.product-modal-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-modal-add {
    min-width: 220px;
}

.cart-upsell-block {
    display: grid;
    gap: 14px;
    margin-top: 16px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.upsell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.upsell-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.upsell-card-media {
    border: 0;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.upsell-card-media img,
.upsell-card-media span {
    width: 100%;
    height: 100%;
}

.upsell-card-media img {
    object-fit: cover;
}

.upsell-card-media span {
    display: grid;
    place-items: center;
    padding: 12px;
    text-align: center;
    color: var(--text);
}

.upsell-card-body {
    display: grid;
    gap: 8px;
}

.cart-line-copy {
    display: grid;
    gap: 6px;
}

.cart-line-stepper {
    justify-content: flex-end;
}

@media (max-width: 1080px) {
    .product-modal-layout {
        grid-template-columns: 1fr;
    }

    .product-modal-media {
        min-height: 300px;
    }
}

@media (max-width: 720px) {
    .modal-shell {
        align-items: flex-end;
        padding: 12px;
    }

    .modal-card {
        width: 100%;
        max-height: calc(100dvh - 24px);
        padding: 18px;
        border-radius: 24px;
    }

    .category-rail-card {
        top: 84px;
    }

    .product-modal-card {
        overflow: auto;
    }

    .product-modal-media {
        min-height: 220px;
        max-height: 38vh;
    }

    .product-modal-order-bar,
    .product-option-head,
    .product-modal-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-option-row {
        grid-template-columns: auto 1fr;
    }

    .product-option-row strong {
        grid-column: 2;
    }

    .product-modal-add {
        width: 100%;
    }
}

.panel-body .page-head {
    padding: 28px 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(214, 177, 100, 0.16), transparent 28%),
        linear-gradient(145deg, rgba(18, 24, 35, 0.98), rgba(9, 14, 21, 0.94));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.panel-body .page-head .actions {
    justify-content: flex-end;
}

.panel-body .stats-grid {
    gap: 16px;
}

.panel-body .stat-card,
.panel-body .list-card,
.panel-body .panel,
.panel-body .form-card {
    backdrop-filter: blur(18px);
}

.panel-body .stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    background:
        radial-gradient(circle at top right, rgba(214, 177, 100, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(19, 25, 37, 0.98), rgba(12, 17, 26, 0.96));
}

.panel-body .stat-card::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(214, 177, 100, 0.95), rgba(115, 183, 255, 0.72));
}

.panel-body .stat-card strong {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.panel-body .list-card:hover,
.panel-body .stat-card:hover,
.panel-body .panel:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-body .panel-title {
    margin-bottom: 16px;
}

.panel-body .metric-row,
.panel-body .list-card {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.panel-body .metric-row strong,
.panel-body .list-card strong {
    color: var(--text);
}

.panel-body .tiled-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.panel-body .tiled-actions .btn {
    min-height: 58px;
    justify-content: center;
    border-radius: 18px;
    font-weight: 700;
}

.storefront-topbar {
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

.category-rail-card {
    position: relative;
    overflow: hidden;
}

.category-rail-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(214, 177, 100, 0.08), transparent 24%);
    pointer-events: none;
}

.deluxe-food-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.deluxe-food-card:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 177, 100, 0.22);
}

.media-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
}

.media-input::file-selector-button {
    margin-inline-end: 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(214, 177, 100, 0.22), rgba(115, 183, 255, 0.2));
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.panel-body .preview-grid {
    align-items: start;
}

.panel-body .media-preview-stack {
    justify-items: start;
}

.settings-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.media-preview {
    min-height: 0;
}

.media-preview-wide,
.media-preview-standard,
.media-preview-portrait,
.media-preview-square {
    aspect-ratio: 16 / 9;
}

.media-preview-standard {
    aspect-ratio: 4 / 3;
}

.media-preview-portrait {
    aspect-ratio: 4 / 5;
}

.media-preview-square {
    aspect-ratio: 1 / 1;
}

.media-preview-stack,
.media-preview-actions {
    display: grid;
    gap: 10px;
}

.media-preview-stack .btn,
.media-preview-actions .btn {
    width: 100%;
}

.panel-body .preview-icon {
    width: min(116px, 100%);
    min-height: 116px;
    aspect-ratio: 1 / 1;
    padding: 8px;
    justify-self: start;
    border-radius: 24px;
}

.panel-body .preview-icon.preview-icon-wide {
    width: min(172px, 100%);
    min-height: 108px;
    aspect-ratio: 16 / 10;
}

.panel-body .preview-icon.preview-icon-portrait {
    width: min(116px, 100%);
    min-height: 142px;
    aspect-ratio: 4 / 5;
}

.panel-body .preview-icon img,
.panel-body .preview-icon video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.image-cropper-card {
    width: min(980px, 100%);
}

.image-cropper-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 18px;
    align-items: start;
}

.image-cropper-stage {
    min-height: 520px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.image-cropper-stage img {
    display: block;
    max-width: 100%;
}

.image-cropper-sidebar {
    display: grid;
    gap: 16px;
    align-content: start;
}

.cropper-stat {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.cropper-stat span {
    color: var(--muted);
    font-size: 12px;
}

.cropper-stat strong {
    font-size: 22px;
    color: var(--text);
}

.branch-showcase-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.branch-showcase-card > * {
    position: relative;
    z-index: 1;
}

.branch-showcase-card.has-cover {
    background:
        linear-gradient(180deg, rgba(6, 10, 16, 0.18), rgba(6, 10, 16, 0.68)),
        var(--branch-cover-image) center / cover no-repeat;
}

.branch-showcase-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
}

.branch-showcase-card.has-cover .branch-showcase-overlay {
    opacity: 1;
    background:
        linear-gradient(180deg, rgba(8, 12, 19, 0.12), rgba(8, 12, 19, 0.84)),
        radial-gradient(circle at top right, rgba(214, 177, 100, 0.18), transparent 28%);
}

.branch-showcase-card.has-cover .muted,
.branch-showcase-card.has-cover .menu-link,
.branch-showcase-card.has-cover .chip {
    color: rgba(255, 255, 255, 0.86);
}

.branch-showcase-card.has-cover .chip,
.branch-showcase-card.has-cover .btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.16);
}

.branch-showcase-card.has-cover .btn-primary {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.storefront-app .hero-slide {
    background-color: rgba(17, 23, 34, 0.96);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.storefront-app .welcome-hero.has-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(17, 23, 34, 0.96);
}

.storefront-app .category-chip.rich img,
.storefront-app .category-section-media img,
.storefront-app .food-image,
.storefront-app .product-modal-media img {
    object-fit: contain;
}

.storefront-app .category-chip.rich img,
.storefront-app .category-section-media img,
.storefront-app .food-image,
.storefront-app .product-modal-media img,
.storefront-app .food-image.fallback {
    background: rgba(255, 255, 255, 0.04);
}

.storefront-app .category-chip.rich img {
    padding: 8px;
}

.storefront-app .category-section-media,
.storefront-app .food-media,
.storefront-app .product-modal-media {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top right, rgba(214, 177, 100, 0.08), transparent 26%),
        rgba(255, 255, 255, 0.03);
}

.storefront-app .category-section-media img,
.storefront-app .food-image,
.storefront-app .product-modal-media img {
    padding: 14px;
}

.food-media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.food-image,
.food-image.fallback {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
}

.deluxe-food-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

.hero-slider-card,
.welcome-hero {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.storefront-app.menu-page .hero-slider-card,
.storefront-app.menu-page .welcome-hero {
    width: auto;
    margin-inline: 0;
    border-radius: var(--radius-xl);
}

.storefront-app.menu-page .storefront-topbar {
    position: relative;
    top: 0;
    padding: 16px 18px;
}

.storefront-app.menu-page .hero-slider-card {
    padding: 10px;
    border-inline: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    isolation: isolate;
}

.storefront-app.menu-page .hero-slider-track {
    gap: 12px;
    padding-bottom: 0;
}

.storefront-app.menu-page .hero-slide,
.storefront-app.menu-page .welcome-hero {
    min-height: clamp(180px, 24vw, 280px);
    aspect-ratio: auto;
    border-radius: calc(var(--radius-xl) - 6px);
}

.storefront-app.menu-page .hero-slide {
    padding: clamp(16px, 3vw, 28px);
}

.storefront-app.menu-page .hero-slide,
.storefront-app.menu-page .welcome-hero.has-image {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(17, 23, 34, 0.98);
}

.storefront-app.menu-page .hero-slide .hero-video,
.storefront-app.menu-page .welcome-hero .hero-video {
    object-fit: cover;
    background: rgba(17, 23, 34, 0.98);
}

.storefront-app.menu-page .hero-slide .hero-content,
.storefront-app.menu-page .welcome-hero .hero-content {
    max-width: min(100%, 580px);
}

@media (max-width: 1080px) {
    .image-cropper-layout {
        grid-template-columns: 1fr;
    }

    .image-cropper-stage {
        min-height: 360px;
    }
}

@media (max-width: 720px) {
    .panel-body .page-head {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .image-cropper-stage {
        min-height: 260px;
    }

    .branch-showcase-card {
        min-height: 280px;
    }
}

html[dir="rtl"] .panel-body {
    --sidebar-offscreen: 112%;
}

html[dir="ltr"] .panel-body {
    --sidebar-offscreen: -112%;
}

.sidebar-overlay[hidden] {
    display: none !important;
}

.sidebar-topbar,
.content-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.content-toolbar {
    margin-bottom: 18px;
}

.sidebar-close-btn,
.sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.sidebar-close-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.sidebar-toggle-btn {
    padding: 12px 16px;
}

.sidebar-toggle-icon {
    display: inline-grid;
    gap: 4px;
}

.sidebar-toggle-icon span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.panel-body .sidebar {
    transition: transform 0.24s ease, opacity 0.24s ease, box-shadow 0.24s ease;
    z-index: 34;
}

.panel-body.sidebar-collapsed .shell {
    grid-template-columns: minmax(0, 1fr);
}

.panel-body.sidebar-collapsed .sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(320px, 88vw);
    transform: translateX(var(--sidebar-offscreen));
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
}

.panel-body:not(.sidebar-collapsed) .sidebar-close-btn,
.panel-body:not(.sidebar-collapsed) .sidebar-toggle-btn {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.settings-feature-panel {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.settings-panel-head.compact-head {
    margin-bottom: 0;
}

.settings-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.feature-toggle-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    overflow: hidden;
}

.feature-toggle-card input[type="hidden"] {
    display: none;
}

.feature-toggle-card input[type="checkbox"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.feature-toggle-indicator {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-toggle-copy {
    display: grid;
    gap: 4px;
}

.feature-toggle-copy small {
    line-height: 1.4;
}

.feature-toggle-card input[type="checkbox"]:checked ~ .feature-toggle-indicator {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 0 0 6px rgba(214, 177, 100, 0.1);
}

.category-menu-head {
    margin-bottom: 0;
}

.storefront-topbar {
    transition: transform 0.28s ease, opacity 0.24s ease, box-shadow 0.24s ease;
    will-change: transform;
}

.storefront-topbar.is-hidden {
    transform: translate3d(0, calc(-100% - 18px), 0);
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
}

.storefront-app.menu-page .category-rail-card {
    position: sticky;
    top: var(--category-rail-offset, 96px);
    z-index: 18;
    padding: 12px 14px;
    backdrop-filter: blur(18px);
}

.storefront-app .category-strip {
    gap: 10px;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.storefront-app .category-strip::-webkit-scrollbar {
    display: none;
}

.storefront-app .category-chip.rich,
.storefront-app.category-style-chips .category-chip.rich {
    display: grid;
    justify-items: center;
    align-content: start;
    text-align: center;
    gap: 8px;
    min-width: 112px;
    padding: 10px 12px;
    border-radius: 20px;
    scroll-snap-align: center;
}

.storefront-app .category-chip.rich span,
.storefront-app.category-style-chips .category-chip.rich span {
    width: 100%;
    text-align: center;
    line-height: 1.3;
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.storefront-app.category-style-chips .category-chip.rich img {
    width: 54px;
    height: 54px;
}

.storefront-app.category-style-compact .category-chip.rich {
    min-width: 108px;
    display: grid;
    justify-items: center;
    padding: 10px 12px;
}

.storefront-app.category-style-compact .category-chip.rich img {
    display: block;
    width: 48px;
    height: 48px;
}

.storefront-app.category-style-compact .category-chip.rich span {
    white-space: normal;
}

.storefront-app .category-section-head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.storefront-app .category-copy {
    display: grid;
    justify-items: center;
    text-align: center;
    max-width: 640px;
}

.storefront-app .category-section-media {
    width: min(220px, 100%);
    min-height: 0;
    aspect-ratio: 1 / 1;
}

.storefront-app .category-section-media img {
    object-fit: contain;
}

.storefront-app .category-section {
    scroll-margin-top: calc(var(--category-rail-offset, 96px) + 110px);
}

.category-studio-card {
    padding: 18px 20px;
}

.category-studio-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
}

.category-studio-summary::-webkit-details-marker {
    display: none;
}

.category-studio-main,
.category-studio-summary-side {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-studio-main {
    min-width: 0;
}

.category-studio-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.category-studio-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(640px, 100%);
}

.category-studio-summary-side {
    margin-inline-start: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.category-studio-count {
    font-weight: 700;
}

.category-studio-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.category-studio-chevron {
    width: 10px;
    height: 10px;
    border-inline-end: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.category-studio-card[open] .category-studio-chevron {
    transform: rotate(225deg);
}

.category-studio-body {
    margin-top: 18px;
}

.category-studio-head {
    margin-bottom: 0;
    flex-wrap: wrap;
}

.category-studio-head .meta-grid {
    flex: 1 1 280px;
}

.table-board,
.staff-grid,
.gateway-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.table-card,
.staff-card,
.gateway-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(214, 177, 100, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.table-card.is-ready {
    border-color: rgba(31, 141, 98, 0.28);
}

.table-card.is-alert {
    border-color: rgba(179, 58, 58, 0.42);
    background: rgba(179, 58, 58, 0.08);
}

.table-card.is-muted {
    opacity: 0.78;
}

.info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.info-pill {
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 13px;
}

.table-link {
    color: var(--accent);
    font-size: 13px;
    word-break: break-all;
}

.floorplan-branches,
.floorplan-panel,
.floorplan-zone,
.floorplan-zone-head,
.table-detail-grid,
.detail-summary-card,
.pos-shell,
.pos-service-switch,
.pos-table-picks-wrap,
.pos-table-picks,
.pos-ticket-list,
.table-quick-actions {
    display: grid;
    gap: 16px;
}

.floorplan-panel {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.floorplan-zone-head {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.floorplan-surface {
    position: relative;
    min-width: 720px;
    overflow: auto;
    border-radius: 28px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    background-size: 32px 32px, 32px 32px, auto;
}

.floor-table {
    position: absolute;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    padding: 12px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    text-align: center;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

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

.floor-table.is-ready {
    border-color: rgba(78, 207, 148, 0.5);
    background: rgba(78, 207, 148, 0.12);
}

.floor-table.is-alert {
    border-color: rgba(255, 122, 122, 0.58);
    background: rgba(255, 122, 122, 0.14);
}

.floor-table.is-muted {
    opacity: 0.55;
}

.floor-table.is-selected {
    box-shadow: 0 0 0 2px rgba(214, 177, 100, 0.55), 0 18px 36px rgba(0, 0, 0, 0.16);
}

.floor-table.is-dragging {
    z-index: 3;
    cursor: grabbing;
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.22);
}

.floor-table-name,
.floor-table-number,
.floor-table-meta,
.floor-table-badge {
    overflow-wrap: anywhere;
}

.floor-table-name {
    font-weight: 800;
}

.floor-table-number,
.floor-table-meta {
    font-size: 0.82rem;
}

.floor-table-badge {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(8, 16, 28, 0.24);
    font-size: 0.74rem;
    font-weight: 700;
}

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

.detail-summary-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pos-shell {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: start;
}

.pos-composer,
.pos-ticket-list {
    min-width: 0;
}

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

.pos-service-switch .btn {
    width: 100%;
}

.pos-table-picks {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.pos-table-pick {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-align: start;
    cursor: pointer;
}

.pos-table-pick strong,
.pos-table-pick small {
    overflow-wrap: anywhere;
}

.pos-table-pick.is-ready {
    border-color: rgba(78, 207, 148, 0.44);
}

.pos-table-pick.is-alert {
    border-color: rgba(255, 122, 122, 0.52);
    background: rgba(255, 122, 122, 0.1);
}

.pos-table-pick.is-muted {
    opacity: 0.52;
}

.pos-table-pick.is-active {
    box-shadow: 0 0 0 2px rgba(214, 177, 100, 0.46);
    border-color: rgba(214, 177, 100, 0.5);
}

.pos-ticket {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.pos-terminal {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
    gap: 16px;
    align-items: start;
}

.pos-terminal-main {
    display: grid;
    grid-template-columns: minmax(360px, 1.15fr) minmax(360px, 0.95fr);
    gap: 16px;
    min-width: 0;
}

.pos-browser,
.pos-checkout,
.pos-sidebar {
    min-width: 0;
}

.pos-browser,
.pos-checkout,
.pos-service-panel,
.pos-ticket-list {
    display: grid;
    gap: 16px;
    align-self: start;
}

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

.orders-workspace,
.orders-workspace-main,
.orders-service-panel,
.orders-category-panel,
.orders-ticket-panel,
.orders-category-grid,
.orders-table-grid,
.orders-category-modal-grid,
.today-orders-list {
    display: grid;
    gap: 16px;
}

.orders-workspace {
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
    align-items: start;
}

.orders-workspace-main {
    grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1fr);
    min-width: 0;
}

.orders-service-panel,
.orders-category-panel,
.orders-ticket-panel {
    min-width: 0;
    align-self: start;
}

.orders-category-panel-embedded {
    padding: 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

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

.orders-table-grid {
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    gap: 12px;
}

.orders-table-card,
.orders-category-card,
.today-order-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.orders-table-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    text-align: start;
    cursor: pointer;
}

.orders-table-card strong,
.orders-table-card span,
.orders-category-copy strong,
.orders-category-copy span,
.orders-category-item-copy strong,
.orders-category-item-copy span,
.today-order-line strong {
    overflow-wrap: anywhere;
}

.orders-table-card.is-ready {
    border-color: rgba(78, 207, 148, 0.44);
}

.orders-table-card.is-alert {
    border-color: rgba(255, 122, 122, 0.52);
    background: rgba(255, 122, 122, 0.1);
}

.orders-table-card.is-muted {
    opacity: 0.52;
}

.orders-table-card.is-active {
    border-color: rgba(214, 177, 100, 0.56);
    box-shadow: 0 0 0 2px rgba(214, 177, 100, 0.18);
}

.orders-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.orders-category-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    text-align: start;
    cursor: pointer;
}

.orders-category-media,
.orders-category-item-media {
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.orders-category-media {
    aspect-ratio: 1.08;
}

.orders-category-media img,
.orders-category-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.orders-category-fallback,
.orders-category-item-fallback {
    display: grid;
    place-items: center;
    min-height: 100%;
    font-size: 1.7rem;
    font-weight: 800;
}

.orders-category-copy,
.orders-category-item-copy {
    display: grid;
    gap: 4px;
}

.orders-category-copy span,
.orders-category-item-copy span {
    color: var(--muted);
    font-size: 0.92rem;
}

.orders-category-modal-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.orders-category-item-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.orders-category-item-media {
    aspect-ratio: 1.24;
}

.orders-category-item-actions {
    display: flex;
    justify-content: flex-end;
}

.orders-category-item-actions .btn {
    width: 100%;
}

.orders-modal-stepper {
    width: 100%;
    justify-content: space-between;
}

.orders-modal-stepper .item-step-count {
    cursor: default;
}

.catalog-qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.catalog-qty-stepper input {
    width: 62px;
    min-width: 0;
    text-align: center;
    padding: 8px 6px;
    border-radius: 6px;
}

.today-order-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    text-align: start;
    cursor: pointer;
}

.today-order-card:hover {
    border-color: rgba(214, 177, 100, 0.28);
}

.today-order-lines {
    display: grid;
    gap: 8px;
}

.today-order-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.table-qr-card {
    display: grid;
    gap: 14px;
    justify-items: center;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.table-qr-card img {
    width: min(100%, 260px);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.pos-menu-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pos-menu-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    text-decoration: none;
}

.pos-menu-chip small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(78, 207, 148, 0.16);
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 700;
}

.pos-product-groups,
.pos-product-group,
.pos-service-feed,
.pos-sidebar {
    display: grid;
    gap: 16px;
}

.pos-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 12px;
}

.pos-product-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-align: start;
    cursor: pointer;
    transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.pos-product-card:hover {
    transform: translateY(-1px);
    border-color: rgba(78, 207, 148, 0.4);
    background: rgba(78, 207, 148, 0.08);
}

.pos-product-media {
    width: 100%;
    aspect-ratio: 1 / 0.82;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.pos-product-media img,
.pos-product-fallback {
    width: 100%;
    height: 100%;
}

.pos-product-media img {
    display: block;
    object-fit: cover;
}

.pos-product-fallback {
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    font-weight: 800;
    background: rgba(214, 177, 100, 0.12);
}

.pos-product-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.pos-product-copy strong,
.pos-product-copy span,
.pos-product-price {
    overflow-wrap: anywhere;
}

.pos-product-copy span {
    color: var(--muted);
    font-size: 0.84rem;
}

.pos-product-price {
    font-weight: 800;
    color: var(--brand);
}

.pos-checkout-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}

.pos-total-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.pos-total-output {
    min-height: 48px;
    font-size: 1rem;
    font-weight: 800;
}

.pos-submit-btn {
    min-width: 148px;
}

.pos-service-card,
.pos-ticket-compact {
    display: grid;
    gap: 12px;
}

.pos-service-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    font-size: 0.84rem;
    color: var(--muted);
}

.pos-ticket-compact {
    padding: 16px;
}

.pos-ticket-lines {
    gap: 10px;
}

.pos-ticket-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.table-quick-actions {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-top: 18px;
}

.table-quick-btn {
    width: 100%;
}

.category-studio-head .actions {
    justify-content: flex-end;
}

.studio-item-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    list-style: none;
}

.studio-item-summary::-webkit-details-marker {
    display: none;
}

.studio-item-main,
.studio-item-summary-side {
    display: flex;
    align-items: center;
    gap: 12px;
}

.studio-item-main {
    min-width: 0;
}

.studio-item-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.studio-item-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(520px, 100%);
}

.studio-item-summary-side {
    margin-inline-start: auto;
    flex-shrink: 0;
}

.studio-item-price {
    font-weight: 700;
}

.studio-item-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.studio-item-chevron {
    width: 10px;
    height: 10px;
    border-inline-end: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.studio-item-card[open] .studio-item-chevron {
    transform: rotate(225deg);
}

.bulk-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.bulk-editor-panel,
.bulk-editor-note {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.bulk-item-list {
    display: grid;
    gap: 12px;
    max-height: 360px;
    overflow: auto;
    padding-inline-end: 4px;
}

.bulk-item-group {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bulk-item-checks {
    display: grid;
    gap: 10px;
}

.bulk-item-pill {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bulk-item-pill input {
    width: auto;
    margin-top: 4px;
}

.bulk-item-pill-copy {
    display: grid;
    gap: 4px;
}

.btn-compact {
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.88rem;
}

.gallery-toolbar,
.gallery-selection-meta,
.gallery-selected-copy,
.gallery-card,
.gallery-card-body,
.gallery-card-copy,
.gallery-meta-pills,
.gallery-card-actions,
.gallery-assign-modal-form,
.gallery-assign-note {
    display: grid;
    gap: 12px;
}

.gallery-toolbar {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
}

.gallery-selection-meta {
    align-items: center;
    grid-template-columns: auto auto;
}

.gallery-select-all-pill,
.gallery-select-pill {
    width: fit-content;
}

.gallery-selected-copy strong {
    display: block;
    font-size: 1.1rem;
}

.gallery-bulk-actions {
    justify-content: flex-end;
}

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

.gallery-card {
    position: relative;
    align-content: start;
    padding: 12px;
    border-radius: 22px;
    min-width: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gallery-card.is-selected {
    border-color: rgba(18, 58, 89, 0.2);
    box-shadow: 0 22px 46px rgba(18, 58, 89, 0.16);
    transform: translateY(-2px);
}

.gallery-card.is-linked {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 245, 226, 0.9));
}

.gallery-card.is-free {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 255, 250, 0.9));
}

.gallery-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gallery-card-preview {
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.gallery-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.gallery-card-preview:hover img {
    transform: scale(1.03);
}

.gallery-card-body {
    min-width: 0;
}

.gallery-card-name {
    display: block;
    font-size: 0.95rem;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-card-copy .muted {
    font-size: 0.8rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.gallery-card-actions .btn {
    width: 100%;
}

.gallery-assign-modal-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.gallery-assign-preview-wrap {
    min-height: 280px;
}

.gallery-assign-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-assign-note {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(18, 58, 89, 0.05);
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 1680px) {
    .gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1380px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 1040px) {
    .gallery-toolbar,
    .gallery-assign-modal-layout {
        grid-template-columns: 1fr;
    }

    .gallery-bulk-actions {
        justify-content: flex-start;
    }

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

    .pos-shell,
    .table-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .gallery-selection-meta,
    .gallery-card-actions {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.floating-cart-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 26;
    min-width: 184px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(18, 58, 89, 0.96), rgba(31, 93, 137, 0.94));
    color: #ffffff;
    box-shadow: 0 20px 46px rgba(18, 58, 89, 0.28);
    cursor: pointer;
}

.floating-cart-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-cart-icon svg {
    width: 100%;
    height: 100%;
}

.floating-cart-copy {
    display: grid;
    gap: 2px;
    text-align: start;
}

.floating-cart-copy small {
    color: rgba(255, 255, 255, 0.78);
}

.floating-cart-badge {
    margin-inline-start: auto;
    min-width: 28px;
    height: 28px;
    padding-inline: 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.medo-bot-fab {
    position: fixed;
    left: 22px;
    bottom: calc(22px + env(safe-area-inset-bottom));
    z-index: 27;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 84%, #111827 16%), color-mix(in srgb, var(--brand-2) 72%, #111827 28%));
    color: #ffffff;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.medo-bot-fab:hover,
.medo-bot-fab:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.3);
}

.medo-bot-fab.with-cart {
    bottom: calc(92px + env(safe-area-inset-bottom));
}

.medo-bot-fab-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 0;
    font-size: 0.86rem;
}

.medo-bot-title-row span {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    text-transform: lowercase;
}

.medo-bot-invite {
    position: fixed;
    left: 86px;
    bottom: calc(22px + env(safe-area-inset-bottom));
    z-index: 28;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: min(315px, calc(100vw - 118px));
    padding: 10px 11px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(10, 16, 25, 0.95);
    color: #ffffff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.medo-bot-invite.with-cart {
    bottom: calc(92px + env(safe-area-inset-bottom));
}

.medo-bot-invite[hidden] {
    display: none;
}

.medo-bot-invite p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
}

.medo-bot-invite button {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    line-height: 1;
}

.medo-bot-panel {
    position: fixed;
    left: 22px;
    bottom: calc(154px + env(safe-area-inset-bottom));
    z-index: 38;
    width: min(360px, calc(100vw - 44px));
    max-height: min(620px, calc(100dvh - 190px));
    display: grid;
    grid-template-rows: auto minmax(160px, 1fr) auto auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(180deg, rgba(12, 18, 28, 0.98), rgba(8, 12, 19, 0.96));
    color: #f8fbff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(216, 177, 93, 0.08);
    overscroll-behavior: contain;
    touch-action: pan-y;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.medo-bot-panel[hidden] {
    display: none;
}

.medo-bot-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.medo-bot-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
}

.medo-bot-head p {
    margin: 6px 0 0;
    max-width: 280px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
    font-size: 0.78rem;
}

.medo-bot-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.medo-bot-messages {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 12px;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    font-size: 0.86rem;
}

.medo-bot-message {
    width: fit-content;
    max-width: 86%;
    padding: 9px 11px;
    border-radius: 8px;
    line-height: 1.55;
    color: #f8fbff;
    background: rgba(255, 255, 255, 0.09);
    overflow-wrap: anywhere;
}

.medo-bot-message-user {
    justify-self: end;
    background: color-mix(in srgb, var(--brand) 78%, #111827 22%);
}

.medo-bot-message-assistant {
    justify-self: start;
}

.medo-bot-typing {
    opacity: 0.78;
}

.medo-bot-suggestions {
    display: grid;
    gap: 8px;
    justify-self: stretch;
}

.medo-bot-suggestion {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    padding: 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.medo-bot-suggestion strong,
.medo-bot-suggestion small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.medo-bot-suggestion small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
}

.medo-bot-suggestion > .medo-bot-suggestion-price {
    display: grid;
    gap: 2px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
    white-space: nowrap;
    font-size: 0.78rem;
    text-align: end;
}

.medo-bot-suggestion-price .price-old {
    color: rgba(255, 255, 255, 0.52);
    font-weight: 700;
}

.medo-bot-suggestion-price .price-new {
    color: #ffffff;
}

.medo-bot-suggestion button,
.medo-bot-quick-actions button,
.medo-bot-followups button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
}

.medo-bot-suggestion button {
    grid-column: 1 / -1;
    padding: 7px 9px;
    font-weight: 800;
    font-size: 0.78rem;
}

.medo-bot-quick-actions,
.medo-bot-followups {
    display: flex;
    gap: 8px;
    padding: 10px 12px 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.medo-bot-followups {
    padding: 0;
    flex-wrap: wrap;
}

.medo-bot-quick-actions button,
.medo-bot-followups button {
    flex: 0 0 auto;
    max-width: 210px;
    padding: 7px 9px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.medo-bot-quick-actions button:disabled,
.medo-bot-followups button:disabled {
    cursor: wait;
    opacity: 0.58;
}

.medo-bot-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.medo-bot-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 16px;
}

.medo-bot-form button {
    font-size: 0.84rem;
}

.medo-bot-form input::placeholder {
    color: rgba(255, 255, 255, 0.56);
}

.auth-body .auth-card-refined {
    background: linear-gradient(145deg, rgba(9, 13, 20, 0.94), rgba(13, 19, 30, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.35);
}

.auth-body .auth-login-panel {
    padding: clamp(22px, 3vw, 34px);
    background: linear-gradient(180deg, rgba(10, 16, 25, 0.96), rgba(14, 20, 31, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-login-copy {
    max-width: 460px;
    line-height: 1.7;
}

.auth-login-form {
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.auth-feature-list {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.auth-feature-card {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.auth-body .field label,
.auth-body .muted {
    color: rgba(240, 244, 252, 0.78);
}

.auth-body input,
.auth-body select,
.auth-body textarea {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f6f8fc;
}

.auth-body input::placeholder,
.auth-body textarea::placeholder {
    color: rgba(246, 248, 252, 0.42);
}

.auth-body input:focus,
.auth-body select:focus,
.auth-body textarea:focus {
    outline: 0;
    border-color: rgba(214, 177, 100, 0.58);
    box-shadow: 0 0 0 4px rgba(214, 177, 100, 0.12);
}

@media (max-width: 1080px) {
    .panel-body:not(.sidebar-collapsed) {
        overflow: hidden;
    }

    .panel-body .shell {
        grid-template-columns: 1fr;
    }

    .panel-body .sidebar {
        position: fixed;
        inset-block: 0;
        inset-inline-start: 0;
        width: min(320px, 88vw);
        height: 100dvh;
        max-height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        z-index: 42;
        transform: translateX(0);
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
    }

    .panel-body.sidebar-collapsed .sidebar {
        transform: translateX(var(--sidebar-offscreen));
        opacity: 0;
        pointer-events: none;
    }

    .panel-body .sidebar-overlay:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 40;
        background: rgba(2, 6, 12, 0.58);
        backdrop-filter: blur(6px);
    }
}

@media (max-width: 720px) {
    .storefront-topbar.is-hidden {
        transform: translate3d(0, calc(-100% - 12px), 0);
    }

    .content-toolbar {
        margin-bottom: 14px;
    }

    .sidebar-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .landing-branch-hero {
        grid-template-columns: 1fr;
        padding: 22px 18px;
        gap: 18px;
    }

    .landing-branch-summary,
    .landing-summary-pill {
        width: 100%;
    }

    .landing-summary-pill {
        min-width: 0;
    }

    .branch-directory-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .branch-compact-card {
        padding: 16px;
        border-radius: 22px;
    }

    .branch-compact-head {
        gap: 12px;
    }

    .branch-compact-mark {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }

    .branch-icon-link {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .storefront-app {
        width: calc(100% - 20px);
        margin: 10px auto 36px;
        gap: 14px;
    }

    .floating-cart-fab {
        right: 12px;
        bottom: 12px;
        min-width: 0;
        width: calc(100% - 24px);
        justify-content: space-between;
        border-radius: 18px;
    }

    .medo-bot-fab {
        left: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        min-width: 0;
        width: 48px;
        height: 48px;
        border-radius: 8px;
    }

    .medo-bot-fab-mark {
        width: 34px;
        height: 34px;
    }

    .medo-bot-fab.with-cart {
        bottom: calc(84px + env(safe-area-inset-bottom));
    }

    .medo-bot-invite {
        left: 72px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        width: calc(100% - 84px);
        padding: 9px 10px;
    }

    .medo-bot-invite.with-cart {
        bottom: calc(84px + env(safe-area-inset-bottom));
    }

    .medo-bot-invite p {
        font-size: 0.74rem;
    }

    .medo-bot-panel {
        left: 12px;
        right: 12px;
        bottom: calc(148px + env(safe-area-inset-bottom));
        width: auto;
        max-height: calc(100dvh - 170px);
        border-radius: 8px;
    }

    .medo-bot-form {
        flex-direction: column;
    }

    .medo-bot-suggestion {
        grid-template-columns: minmax(0, 1fr);
    }

    .medo-bot-suggestion > .medo-bot-suggestion-price {
        white-space: normal;
        text-align: start;
    }

    .storefront-topbar {
        top: 8px;
        padding: 14px;
        border-radius: 22px;
        gap: 14px;
    }

    .topbar-brand-hub {
        gap: 10px;
        align-items: center;
    }

    .topbar-brand {
        width: auto;
        min-width: 0;
        gap: 10px;
        align-items: center;
    }

    .topbar-brand-copy strong {
        font-size: 1rem;
    }

    .topbar-brand-copy span {
        font-size: 0.8rem;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .topbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .topbar-locales {
        margin-inline-start: auto;
        justify-content: flex-end;
    }

    .topbar-locales .locale-pill {
        min-width: 0;
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 999px;
    }

    .topbar-quick-actions {
        display: flex;
        width: 100%;
        gap: 8px;
    }

    .topbar-quick-btn {
        flex: 1 1 0;
        width: 100%;
        min-height: 52px;
        padding: 0 10px;
        border-radius: 18px;
    }

    .topbar-quick-btn .topbar-action-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .topbar-action-icon {
        width: 20px;
        height: 20px;
    }

    .topbar-action-badge {
        position: absolute;
        inset-block-start: 7px;
        inset-inline-end: 7px;
        min-width: 20px;
        height: 20px;
        padding-inline: 4px;
        font-size: 0.72rem;
    }

    .topbar-branch-link {
        justify-content: center;
    }

    .menu-topbar-actions .topbar-quick-btn,
    .menu-topbar-actions .topbar-branch-link {
        flex: 0 0 auto;
        width: 44px;
        min-width: 44px;
        min-height: 44px;
        border-radius: 16px;
    }

    .storefront-app.menu-page .hero-slider-card {
        padding: 8px;
    }

    .storefront-app.menu-page .hero-slide,
    .storefront-app.menu-page .welcome-hero {
        min-height: 176px;
        border-radius: 22px;
    }

    .storefront-app.menu-page .hero-slide {
        padding: 14px;
    }

    .storefront-app.menu-page .hero-slide .hero-content h2,
    .storefront-app.menu-page .welcome-hero .hero-content h2 {
        font-size: clamp(22px, 7vw, 30px);
    }

    .storefront-app.menu-page .hero-slide .hero-content p,
    .storefront-app.menu-page .welcome-hero .hero-content p {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .storefront-app.menu-page .category-rail-card {
        top: var(--category-rail-offset, 86px);
        padding: 10px 10px 10px 12px;
    }

    .storefront-app .category-strip {
        gap: 8px;
    }

    .storefront-app .category-chip.rich,
    .storefront-app.category-style-chips .category-chip.rich,
    .storefront-app.category-style-compact .category-chip.rich {
        min-width: 94px;
        padding: 8px 10px;
        gap: 6px;
        border-radius: 18px;
    }

    .storefront-app .category-chip.rich img,
    .storefront-app.category-style-chips .category-chip.rich img,
    .storefront-app.category-style-compact .category-chip.rich img {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .storefront-app .category-chip.rich span,
    .storefront-app.category-style-chips .category-chip.rich span,
    .storefront-app.category-style-compact .category-chip.rich span {
        font-size: 0.74rem;
        line-height: 1.2;
    }

    .storefront-app .category-section {
        scroll-margin-top: calc(var(--category-rail-offset, 86px) + 92px);
    }

    .category-studio-summary,
    .category-studio-summary-side,
    .category-studio-main,
    .studio-item-summary,
    .studio-item-summary-side {
        flex-direction: column;
        align-items: flex-start;
    }

    .floorplan-surface {
        min-width: 100%;
    }

    .pos-service-switch {
        grid-template-columns: 1fr;
    }

    .category-studio-summary-side,
    .studio-item-summary-side {
        width: 100%;
    }

    .category-studio-copy small {
        white-space: normal;
    }

    .category-studio-toggle,
    .studio-item-price,
    .studio-item-toggle {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1100px) {
    .orders-workspace,
    .orders-workspace-main {
        grid-template-columns: 1fr;
    }

    .pos-terminal {
        grid-template-columns: 1fr;
    }

    .pos-terminal-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .orders-delivery-fields,
    .orders-category-grid,
    .orders-category-modal-grid,
    .orders-table-grid {
        grid-template-columns: 1fr;
    }

    .today-order-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .orders-modal-stepper {
        justify-content: flex-start;
    }

    .pos-browser-grid,
    .pos-customer-grid,
    .pos-service-row {
        grid-template-columns: 1fr;
    }

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

    .pos-checkout-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .pos-submit-btn {
        width: 100%;
    }
}
