:root {
    --ink: #1d1a16;
    --muted: #746d65;
    --line: rgba(39, 30, 22, .11);
    --panel: rgba(255, 255, 255, .74);
    --panel-strong: rgba(255, 255, 255, .9);
    --orange: #ff6a00;
    --orange-dark: #e45600;
    --amber: #ffb547;
    --green: #26ad62;
    --purple: #7938d8;
    --cyan: #3aaecf;
    --red: #f04f45;
    --shadow: 0 22px 70px rgba(50, 34, 20, .12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 151, 52, .18), transparent 28rem),
        radial-gradient(circle at 82% 18%, rgba(38, 173, 98, .13), transparent 24rem),
        linear-gradient(135deg, #fffaf4 0%, #f8fbff 44%, #fff6ee 100%);
}

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

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

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

button {
    border: 0;
    cursor: pointer;
}

.glass-panel {
    border: 1px solid rgba(255, 255, 255, .72);
    background: linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .55));
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: 0 1.15rem;
    border-radius: var(--radius);
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover,
.icon-button:hover,
.meal-card:hover {
    transform: translateY(-2px);
}

.button.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), #ff8f1f);
    box-shadow: 0 14px 32px rgba(255, 106, 0, .28);
}

.button.ghost {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .72);
}

.button.success {
    color: #fff;
    background: var(--green);
}

.button.danger {
    color: #fff;
    background: var(--red);
}

.button.small {
    min-height: 38px;
    padding-inline: .85rem;
    font-size: .84rem;
}

.icon-button {
    position: relative;
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(255, 255, 255, .72);
    transition: transform .2s ease, background .2s ease;
}

.icon-button span {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--orange);
}

.icon-button.approve {
    color: #fff;
    background: var(--green);
}

.icon-button.reject {
    color: #fff;
    background: var(--red);
}

svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.eyebrow {
    margin: 0 0 .35rem;
    color: var(--orange-dark);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.muted,
small {
    color: var(--muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 25px;
    padding: .22rem .62rem;
    border-radius: 999px;
    color: #13733e;
    background: rgba(38, 173, 98, .13);
    font-size: .74rem;
    font-weight: 850;
}

.badge.danger,
.status-rejected,
.status-cancelled {
    color: #bd2b24;
    background: rgba(240, 79, 69, .13);
}

.status-pending {
    color: #bb6200;
    background: rgba(255, 181, 71, .22);
}

.status-approved,
.status-ready,
.status-delivered {
    color: #13733e;
    background: rgba(38, 173, 98, .13);
}

.splash-screen {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    color: #fff;
}

.splash-screen > img,
.splash-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.splash-overlay {
    background: linear-gradient(120deg, rgba(24, 16, 10, .86), rgba(24, 16, 10, .46));
}

.splash-content {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
}

.splash-logo,
.brand-mark {
    display: inline-grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), #ff9d2c);
    box-shadow: 0 18px 35px rgba(255, 106, 0, .34);
}

.splash-content h1 {
    margin: 1rem 0 .15rem;
    font-size: clamp(2.2rem, 8vw, 4rem);
}

.splash-content h1 span {
    color: #ff9d2c;
}

.loader {
    width: 180px;
    height: 6px;
    margin: 2.2rem 0 1.5rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
}

.loader span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: var(--orange);
    animation: load 1.4s infinite ease-in-out;
}

@keyframes load {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

.auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: clamp(1rem, 3vw, 2rem);
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(320px, 480px) minmax(320px, 430px);
    width: min(100%, 980px);
    min-height: 680px;
    overflow: hidden;
    border-radius: 18px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: clamp(1.4rem, 4vw, 3rem);
    background: rgba(255, 255, 255, .62);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-weight: 900;
}

.brand small {
    display: block;
    margin-top: .1rem;
    font-size: .72rem;
    font-weight: 650;
}

.brand .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.auth-brand {
    align-self: center;
    flex-direction: column;
    gap: .7rem;
    text-align: center;
}

.auth-brand .brand-mark {
    width: 118px;
    height: 118px;
    padding: .55rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 20px 42px rgba(54, 34, 18, .16);
}

.auth-brand strong {
    font-size: 1.15rem;
}

.logo-mark {
    overflow: hidden;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 14px 28px rgba(54, 34, 18, .12);
}

.logo-mark img {
    width: 92%;
    height: 92%;
    object-fit: contain;
}

.logo-splash {
    width: min(78vw, 360px);
    height: auto;
    padding: .7rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
}

.logo-splash img {
    width: 100%;
    height: auto;
}

.auth-form h1 {
    margin: 0;
    font-size: 2rem;
}

.segmented,
.tabs,
.filters {
    display: inline-flex;
    gap: .35rem;
    padding: .25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .58);
}

.segmented button,
.tabs a,
.filters button {
    min-height: 34px;
    padding: 0 .9rem;
    border-radius: 6px;
    color: var(--muted);
    background: transparent;
    font-size: .84rem;
    font-weight: 800;
    white-space: nowrap;
}

.segmented .active,
.tabs .active,
.filters .active {
    color: #fff;
    background: var(--orange);
    box-shadow: 0 8px 22px rgba(255, 106, 0, .2);
}

.stack,
.booking-form,
.meal-editor,
.editor-fields {
    display: grid;
    gap: .9rem;
}

label {
    display: grid;
    gap: .45rem;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .8rem .9rem;
    color: var(--ink);
    outline: none;
    background: rgba(255, 255, 255, .78);
    transition: box-shadow .2s ease, border-color .2s ease;
}

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

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(255, 106, 0, .62);
    box-shadow: 0 0 0 4px rgba(255, 106, 0, .12);
}

.forgot {
    color: var(--orange-dark);
    font-size: .78rem;
    font-weight: 850;
    text-align: right;
}

.divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .85rem;
    color: var(--muted);
    font-size: .78rem;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    background: var(--line);
}

.google-native {
    min-height: 44px;
}

.google-fallback {
    display: none;
}

.demo-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
}

.demo-switch a {
    display: grid;
    min-height: 40px;
    place-items: center;
    border: 1px dashed rgba(255, 106, 0, .35);
    border-radius: var(--radius);
    color: var(--orange-dark);
    font-size: .8rem;
    font-weight: 850;
    background: rgba(255, 106, 0, .07);
}

.legal {
    color: var(--muted);
    font-size: .72rem;
    text-align: center;
}

.auth-visual {
    position: relative;
    min-height: 100%;
    overflow: hidden;
}

.auth-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-stack {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    display: grid;
    gap: .65rem;
    width: min(82%, 310px);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 12px;
    color: #fff;
    background: rgba(24, 16, 10, .5);
    backdrop-filter: blur(16px);
}

.feature-stack span {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 750;
}

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    padding: 1rem;
    gap: 1rem;
}

.sidebar {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 2rem);
    padding: 1rem;
    border-radius: 16px;
}

.sidebar nav {
    display: grid;
    gap: .3rem;
    margin-top: 1.4rem;
}

.sidebar-foot {
    display: grid;
    gap: .3rem;
    margin-top: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 42px;
    padding: 0 .8rem;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: .9rem;
    font-weight: 800;
}

.nav-link.active {
    color: var(--orange-dark);
    background: rgba(255, 106, 0, .1);
}

.workspace {
    display: grid;
    align-content: start;
    gap: 1rem;
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 1rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: .85rem 1rem;
    border-radius: 16px;
}

.topbar h1 {
    margin: 0;
    font-size: 1.35rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 42px;
    padding: .25rem .7rem .25rem .25rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .68);
    font-size: .84rem;
    font-weight: 850;
}

.user-chip img {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
}

.menu-toggle {
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 1rem;
}

.loyalty-hero,
.daily-choice {
    min-height: 190px;
    border-radius: 16px;
    padding: 1.25rem;
}

.loyalty-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(130deg, rgba(121, 56, 216, .92), rgba(255, 106, 0, .72)),
        rgba(255, 255, 255, .18);
}

.loyalty-hero .eyebrow,
.loyalty-card-premium .eyebrow {
    color: rgba(255, 255, 255, .86);
}

.loyalty-hero h2,
.loyalty-card-premium h2 {
    margin: .15rem 0;
    font-size: 2.6rem;
}

.hero-gift {
    position: absolute;
    top: 1.3rem;
    right: 1.3rem;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 14px 26px rgba(40, 20, 10, .22);
}

.stamps {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.5rem;
}

.stamps span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .1);
}

.stamps span.filled {
    color: var(--orange);
    background: #fff;
}

.stamps.large span {
    width: 48px;
    height: 48px;
}

.stamps .reward {
    color: #fff;
    background: var(--orange);
}

.daily-choice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 1rem;
    overflow: hidden;
}

.daily-choice.warm {
    background: linear-gradient(135deg, rgba(255, 181, 71, .34), rgba(255, 255, 255, .72));
}

.daily-choice.cool {
    background: linear-gradient(135deg, rgba(38, 173, 98, .22), rgba(255, 255, 255, .75));
}

.daily-choice h3 {
    margin: .2rem 0 1.2rem;
}

.daily-choice a,
.section-head a,
.back-link {
    color: var(--orange-dark);
    font-weight: 900;
}

.daily-choice img {
    align-self: end;
    width: 138px;
    height: 138px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 16px 35px rgba(40, 20, 10, .18);
}

.section-head,
.page-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.section-head.inline {
    align-items: center;
    margin-bottom: 1rem;
}

.section-head h2,
.page-title h2,
.glass-panel h2 {
    margin: 0;
}

.page-title p {
    margin: .3rem 0 0;
    color: var(--muted);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .8rem;
    font-size: .84rem;
}

.meal-row,
.meal-grid {
    display: grid;
    gap: 1rem;
}

.meal-row {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
    padding-bottom: .3rem;
}

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

.meal-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 14px 40px rgba(50, 34, 20, .09);
    transition: transform .2s ease, box-shadow .2s ease;
}

.meal-card:hover {
    box-shadow: 0 22px 54px rgba(50, 34, 20, .14);
}

.meal-media {
    position: relative;
    display: block;
    height: 185px;
    overflow: hidden;
}

.meal-card.compact .meal-media {
    height: 126px;
}

.meal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.meal-card:hover .meal-media img {
    transform: scale(1.05);
}

.meal-card.sold-out {
    opacity: .66;
}

.badge.floating {
    position: absolute;
    left: .8rem;
    top: .8rem;
    background: rgba(255, 255, 255, .82);
}

.meal-body {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.meal-body h3 {
    margin: 0 0 .35rem;
    font-size: 1rem;
}

.meal-body p {
    display: -webkit-box;
    min-height: 40px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.icon-pill {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--orange);
}

.icon-pill.muted {
    background: #aaa;
}

.detail-layout,
.reserve-layout,
.loyalty-layout,
.profile-grid,
.admin-grid {
    display: grid;
    gap: 1rem;
}

.detail-layout {
    grid-template-columns: 1.1fr .9fr;
}

.detail-image,
.detail-info,
.booking-form,
.summary-card,
.status-card,
.list-panel,
.edit-panel,
.detail-reservation,
.chart-panel,
.alert-panel,
.report-chart,
.info-card,
.profile-card,
.reward-cta,
.rewards-history {
    border-radius: 16px;
    padding: 1.2rem;
}

.detail-image img {
    width: 100%;
    aspect-ratio: 1.25;
    border-radius: 14px;
    object-fit: cover;
}

.detail-info {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.detail-info strong {
    font-size: 1.35rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.chips span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 32px;
    padding: .25rem .7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .62);
    font-size: .78rem;
    font-weight: 800;
}

.info-list {
    display: grid;
    gap: .65rem;
    color: var(--muted);
    font-size: .9rem;
}

.info-list span {
    display: flex;
    gap: .55rem;
}

.reserve-layout {
    grid-template-columns: 360px minmax(0, 1fr);
}

.summary-card {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.summary-card img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    object-fit: cover;
}

.reward-switch,
.form-total,
.toggle-row,
.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.reward-switch {
    padding: 1rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(121, 56, 216, .11), rgba(255, 106, 0, .1));
}

.reward-switch span {
    display: block;
    margin-top: .25rem;
    color: var(--muted);
    font-size: .82rem;
}

.switch {
    display: inline-flex;
    width: 52px;
    height: 30px;
}

.switch input {
    display: none;
}

.switch span {
    position: relative;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: #d9d3cc;
}

.switch span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff;
    transition: transform .2s ease;
}

.switch input:checked + span {
    background: var(--green);
}

.switch input:checked + span::after {
    transform: translateX(22px);
}

.status-card {
    display: grid;
    gap: 1rem;
}

.status-head,
.reservation-meal,
.history-row,
.admin-meal-row,
.reservation-row,
.client-row,
.customer-hero {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.status-head {
    justify-content: space-between;
}

.reservation-meal,
.history-row,
.admin-meal-row,
.reservation-row,
.client-row {
    min-height: 72px;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .58);
}

.history-row img,
.reservation-meal img,
.admin-meal-row img,
.reservation-row img,
.client-row img,
.customer-hero img {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

.history-row div,
.admin-meal-row div,
.reservation-row div {
    min-width: 0;
    flex: 1;
}

.history-row span,
.history-row small,
.admin-meal-row span,
.reservation-row span,
.reservation-row small,
.client-row span {
    display: block;
    color: var(--muted);
    font-size: .8rem;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
}

.timeline span {
    display: grid;
    gap: .35rem;
    place-items: center;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}

.timeline span svg {
    width: 32px;
    height: 32px;
    padding: .45rem;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(40, 20, 10, .08);
}

.timeline span.done svg {
    color: #fff;
    background: var(--green);
}

.success-note {
    display: grid;
    gap: .25rem;
    padding: 1rem;
    border-radius: var(--radius);
    color: #13733e;
    background: rgba(38, 173, 98, .13);
}

.detail-table {
    display: grid;
    margin: 0;
    border-top: 1px solid var(--line);
}

.detail-table div,
.info-card dl div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
}

dt {
    color: var(--muted);
    font-weight: 800;
}

dd {
    margin: 0;
    font-weight: 700;
}

.loyalty-layout {
    grid-template-columns: 1.2fr .8fr;
}

.loyalty-card-premium {
    grid-row: span 2;
    min-height: 320px;
    padding: 1.5rem;
    border-radius: 18px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 106, 0, .88), rgba(121, 56, 216, .9)),
        url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1300&q=80") center/cover;
    box-shadow: 0 26px 70px rgba(89, 46, 122, .25);
}

.reward-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.reward-cta span {
    display: block;
    margin-top: .25rem;
    color: var(--muted);
}

.profile-grid {
    grid-template-columns: 330px 1fr 1fr;
}

.profile-card {
    display: grid;
    place-items: center;
    gap: .65rem;
    text-align: center;
}

.profile-card img {
    width: 132px;
    height: 132px;
    border-radius: 999px;
    object-fit: cover;
}

.profile-card h2,
.profile-card p {
    margin: 0;
}

.profile-card span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

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

.stat-card {
    position: relative;
    min-height: 124px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 34px rgba(50, 34, 20, .08);
}

.stat-card p {
    margin: .2rem 0 .6rem;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.stat-card strong {
    display: block;
    font-size: 1.5rem;
}

.stat-card small {
    color: var(--green);
    font-weight: 800;
}

.stat-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: var(--orange-dark);
    background: rgba(255, 106, 0, .1);
}

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

.alert-panel {
    grid-column: 1 / -1;
}

.alert-panel p {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: .4rem .8rem .4rem 0;
    color: var(--muted);
    font-weight: 750;
}

.donut {
    display: grid;
    width: 210px;
    height: 210px;
    place-items: center;
    margin: 1.5rem auto;
    border-radius: 999px;
    background: conic-gradient(var(--orange) 0 24%, var(--green) 24% 72%, var(--cyan) 72% 90%, #ece7e0 90% 100%);
}

.donut.green {
    background: conic-gradient(var(--green) 0 65%, var(--amber) 65% 79%, var(--cyan) 79% 96%, #ece7e0 96% 100%);
}

.donut span {
    display: grid;
    width: 118px;
    height: 118px;
    place-items: center;
    border-radius: 999px;
    text-align: center;
    background: rgba(255, 255, 255, .92);
}

.legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 750;
}

.admin-meal-row.slim {
    min-height: 64px;
}

.admin-meal-row small {
    flex: 0 0 72px;
}

.edit-panel {
    display: grid;
    gap: 1rem;
}

.meal-editor {
    grid-template-columns: 260px 1fr;
}

.upload-box {
    display: grid;
    min-height: 240px;
    place-items: center;
    align-content: center;
    border: 1px dashed rgba(255, 106, 0, .35);
    border-radius: 14px;
    background: rgba(255, 255, 255, .5);
    text-align: center;
}

.upload-box svg {
    width: 42px;
    height: 42px;
    color: var(--orange);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.reservation-row b,
.client-row b,
.client-row small {
    flex: 0 0 auto;
}

.client-row {
    color: inherit;
}

.client-row strong {
    width: 170px;
}

.client-row span {
    flex: 1;
}

.search-box {
    position: relative;
    width: min(100%, 340px);
}

.search-box svg {
    position: absolute;
    left: .8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.search-box input {
    padding-left: 2.35rem;
}

.customer-hero {
    margin-bottom: 1rem;
}

.customer-hero img {
    width: 76px;
    height: 76px;
    border-radius: 18px;
}

.mini-stamps {
    display: flex;
    gap: .25rem;
}

.mini-stamps span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ddd4cb;
}

.mini-stamps span.filled {
    background: var(--orange);
}

.report-chart,
.line-chart {
    min-height: 310px;
}

.line-chart {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background:
        linear-gradient(rgba(29, 26, 22, .06) 1px, transparent 1px) 0 0 / 100% 25%,
        linear-gradient(90deg, rgba(29, 26, 22, .05) 1px, transparent 1px) 0 0 / 16.66% 100%,
        rgba(255, 255, 255, .45);
}

.line-chart span {
    position: absolute;
    inset: 56px 28px 54px;
    border-bottom: 5px solid var(--orange);
    border-left: 5px solid transparent;
    border-radius: 50% 45% 40% 30%;
    transform: skew(-20deg) rotate(-5deg);
}

.bar-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: .8rem;
    margin: .75rem 0;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
}

.bar-row b {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--amber));
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 246, 235, .72), rgba(255, 255, 255, .55)),
        url("https://images.unsplash.com/photo-1495195134817-aeb325a55b65?auto=format&fit=crop&w=1800&q=80") right top / 58rem auto no-repeat;
    filter: saturate(1.04);
    opacity: .58;
}

.sidebar {
    border-color: rgba(255, 255, 255, .92);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 250, 244, .62));
    box-shadow: 0 28px 80px rgba(63, 42, 24, .13);
}

.nav-link {
    position: relative;
}

.nav-link.active {
    color: var(--orange-dark);
    background: linear-gradient(90deg, rgba(255, 106, 0, .16), rgba(255, 255, 255, .32));
}

.nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    width: 4px;
    height: 24px;
    border-radius: 999px;
    background: var(--orange);
}

.side-loyalty-card {
    display: grid;
    gap: .45rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 16px;
    color: var(--ink);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, .88), rgba(255, 230, 194, .48));
    box-shadow: 0 16px 44px rgba(255, 106, 0, .12);
}

.cup-illustration {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-inline: auto;
    border-radius: 18px;
    color: var(--orange-dark);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 26px rgba(70, 43, 21, .09);
}

.side-loyalty-card strong {
    font-size: .9rem;
    line-height: 1.35;
}

.side-loyalty-card b {
    color: var(--orange);
    font-size: 1.45rem;
}

.side-loyalty-card em {
    font-style: normal;
    font-weight: 900;
}

.mini-progress {
    display: block;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(74, 56, 38, .13);
}

.mini-progress i {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--orange), var(--amber));
}

.topbar {
    border-color: rgba(255, 255, 255, .86);
    background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .62));
}

.client-greeting {
    display: flex;
    align-items: end;
    justify-content: space-between;
    min-height: 44px;
}

.client-greeting h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    letter-spacing: 0;
}

.client-greeting h2 span {
    color: var(--amber);
}

.client-greeting p:last-child {
    margin: .35rem 0 0;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 650;
}

.hero-grid {
    grid-template-columns: 1.12fr .98fr .98fr;
}

.loyalty-hero,
.daily-choice,
.client-metrics,
.reservations-hero,
.client-list-panel,
.profile-info,
.premium-cta,
.premium-history {
    border: 1px solid rgba(255, 255, 255, .82);
    box-shadow: 0 26px 68px rgba(62, 40, 21, .13);
}

.loyalty-hero {
    min-height: 210px;
    background:
        linear-gradient(135deg, rgba(255, 104, 0, .9), rgba(222, 72, 88, .78), rgba(126, 64, 220, .74)),
        url("https://images.unsplash.com/photo-1543352634-a1c51d9f1fa7?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.daily-choice {
    align-items: center;
    min-height: 210px;
}

.daily-choice h3 {
    font-size: 1.15rem;
}

.daily-choice a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 14px 28px rgba(55, 38, 20, .09);
}

.daily-choice img {
    width: 154px;
    height: 154px;
    border: 8px solid rgba(255, 255, 255, .48);
}

.client-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 1rem;
    border-radius: 16px;
}

.client-metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 82px;
    padding: .7rem 1.2rem;
}

.client-metric + .client-metric {
    border-left: 1px solid var(--line);
}

.client-metric > span,
.service-chip > span {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 999px;
    color: var(--orange-dark);
    background: rgba(255, 106, 0, .1);
}

.client-metric strong {
    display: block;
    font-size: 1.25rem;
}

.client-metric p,
.client-metric small {
    margin: .12rem 0;
    color: var(--muted);
    font-weight: 750;
}

.client-metric small {
    color: var(--orange-dark);
}

.floating-tabs {
    width: max-content;
    max-width: 100%;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 32px rgba(55, 38, 20, .08);
}

.meal-row {
    grid-auto-columns: minmax(280px, 1fr);
}

.meal-card {
    border-color: rgba(255, 255, 255, .86);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .68));
    box-shadow: 0 24px 62px rgba(61, 40, 21, .12);
    backdrop-filter: blur(18px);
}

.meal-media {
    height: 210px;
}

.favorite-button {
    position: absolute;
    top: .8rem;
    right: .8rem;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(35, 24, 18, .28);
    backdrop-filter: blur(10px);
}

.meal-meta {
    display: flex;
    gap: 1rem;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 760;
}

.meal-meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.reservations-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr .9fr 1fr 260px;
    align-items: center;
    gap: 1.4rem;
    min-height: 150px;
    overflow: hidden;
    border-radius: 18px;
    padding: 1.25rem 1.4rem;
    background: linear-gradient(105deg, rgba(255, 255, 255, .88), rgba(255, 246, 235, .62));
}

.reservations-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 auto;
    width: 32%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18));
}

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

.reservations-hero > img {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
    width: 300px;
    height: 100%;
    object-fit: cover;
    opacity: .72;
    mask-image: linear-gradient(90deg, transparent, #000 38%);
}

.service-chip {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-chip strong {
    display: block;
    font-size: 1.05rem;
}

.service-chip p {
    margin: .25rem 0 .6rem;
    color: var(--orange-dark);
    font-weight: 900;
}

.service-progress {
    display: block;
    width: 180px;
    height: 7px;
    max-width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), rgba(74, 56, 38, .14));
}

.menu-title {
    margin-top: .2rem;
}

.menu-title h2 {
    font-size: 2rem;
}

.reservations-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
}

.client-list-panel {
    min-height: 390px;
    padding: 1.3rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(248, 253, 250, .54));
}

.client-list-panel .history-row {
    min-height: 74px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
}

.client-list-panel .history-row:hover {
    transform: translateX(4px);
}

.loyalty-card-premium {
    min-height: 390px;
    border: 1px solid rgba(255, 255, 255, .42);
    background:
        linear-gradient(115deg, rgba(255, 106, 0, .88), rgba(215, 66, 93, .78), rgba(121, 56, 216, .84)),
        url("https://images.unsplash.com/photo-1543352634-a1c51d9f1fa7?auto=format&fit=crop&w=1300&q=85") center/cover;
}

.premium-cta,
.premium-history {
    background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(250, 255, 252, .58));
}

.premium-history .history-row {
    border-radius: 12px;
    background: rgba(255, 255, 255, .62);
}

.profile-grid {
    grid-template-columns: 300px 1.4fr 1.4fr;
}

.profile-card {
    min-height: 300px;
    background: linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(255, 250, 244, .54));
}

.profile-card img {
    width: 142px;
    height: 142px;
    box-shadow: 0 18px 42px rgba(46, 31, 21, .15);
}

.profile-info {
    min-height: 300px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(249, 253, 250, .56));
}

.profile-info h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.admin-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    min-height: 76px;
}

.admin-title h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.admin-title span {
    display: block;
    margin-top: .45rem;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 650;
}

.admin-tip-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 239, 216, .58));
}

.admin-tip-card img {
    width: 100%;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
}

.admin-tip-card em {
    color: var(--orange-dark);
    font-size: .84rem;
    font-weight: 900;
}

.admin-card {
    border-color: rgba(255, 255, 255, .88);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .62));
    box-shadow: 0 24px 70px rgba(55, 38, 20, .11);
    backdrop-filter: blur(24px) saturate(1.16);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.admin-stats-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stat-card {
    position: relative;
    min-height: 146px;
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .62));
    box-shadow: 0 22px 56px rgba(55, 38, 20, .11);
}

.admin-stat-card .stat-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-stat-card .stat-top > span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 999px;
    color: var(--orange-dark);
    background: rgba(255, 106, 0, .11);
}

.admin-stat-card.green .stat-top > span {
    color: #178c4f;
    background: rgba(38, 173, 98, .12);
}

.admin-stat-card.purple .stat-top > span {
    color: #7938d8;
    background: rgba(121, 56, 216, .12);
}

.admin-stat-card.blue .stat-top > span {
    color: #237ad8;
    background: rgba(35, 122, 216, .12);
}

.admin-stat-card.yellow .stat-top > span {
    color: #c98500;
    background: rgba(255, 181, 71, .18);
}

.admin-stat-card p {
    margin: 0 0 .45rem;
    color: var(--muted);
    font-weight: 800;
}

.admin-stat-card strong {
    display: block;
    font-size: 1.7rem;
}

.admin-stat-card small {
    color: var(--green);
    font-weight: 900;
}

.sparkline {
    position: absolute;
    right: 1rem;
    bottom: 1.1rem;
    width: 110px;
    height: 44px;
    border-bottom: 3px solid var(--orange);
    border-radius: 55% 40% 45% 25%;
    transform: skew(-25deg) rotate(-7deg);
    opacity: .8;
}

.admin-stat-card.green .sparkline {
    border-bottom-color: var(--green);
}

.admin-stat-card.purple .sparkline {
    border-bottom-color: var(--purple);
}

.admin-stat-card.blue .sparkline {
    border-bottom-color: #237ad8;
}

.admin-stat-card.yellow .sparkline {
    border-bottom-color: var(--amber);
}

.dashboard-grid {
    grid-template-columns: 1.05fr 1.2fr;
}

.admin-chart-split {
    display: grid;
    grid-template-columns: .8fr 1fr;
    align-items: center;
    gap: 1.5rem;
}

.premium-legend {
    display: grid;
    gap: 1rem;
}

.premium-legend span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--ink);
    font-weight: 800;
}

.premium-legend span::before {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--orange);
}

.premium-legend span:nth-child(2)::before,
.premium-legend span:nth-child(3)::before {
    background: var(--green);
}

.premium-legend span:nth-child(4)::before {
    background: #aaa;
}

.updated-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: .5rem 0 0 55%;
    padding: .65rem .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 800;
    background: rgba(255, 255, 255, .58);
}

.best-sellers .history-row em {
    padding: .3rem .5rem;
    border-radius: 999px;
    color: var(--green);
    background: rgba(38, 173, 98, .1);
    font-style: normal;
    font-size: .75rem;
    font-weight: 900;
}

.alert-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

.alert-panel p {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: .8rem;
    min-height: 72px;
    margin: 0;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .58);
}

.alert-panel p > svg,
.alert-panel p > i {
    color: var(--orange);
}

.alert-panel p span {
    display: block;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 650;
}

.alert-panel a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    color: var(--orange-dark);
    background: rgba(255, 106, 0, .09);
}

.admin-menu-panel {
    padding: 1.2rem;
}

.admin-tabs {
    box-shadow: 0 12px 30px rgba(55, 38, 20, .07);
}

.admin-tabs a,
.admin-tabs button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.admin-tabs button span {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: rgba(29, 26, 22, .1);
}

.admin-tabs button.active span {
    color: var(--orange);
    background: #fff;
}

.admin-meal-row {
    min-height: 86px;
    border-radius: 0;
    border-width: 0 0 1px;
    background: transparent;
}

.admin-meal-row:last-child {
    border-bottom: 0;
}

.admin-meal-row img {
    width: 72px;
    height: 58px;
    border-radius: 12px;
}

.admin-notice {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-height: 56px;
    padding: .8rem 1rem;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 16px 38px rgba(55, 38, 20, .08);
}

.admin-notice p {
    flex: 1;
    margin: 0;
    font-weight: 700;
}

.admin-notice small {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 800;
}

.admin-back {
    width: max-content;
}

.edit-panel .section-head h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: .75rem;
    border-radius: 999px;
    background: var(--orange);
}

.upload-box {
    border-color: rgba(255, 106, 0, .28);
    background: linear-gradient(145deg, rgba(255, 255, 255, .58), rgba(255, 247, 238, .48));
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.admin-reservations-panel .reservation-row {
    display: grid;
    grid-template-columns: 54px 1.2fr 76px 1.1fr 1.1fr 50px 50px;
    min-height: 112px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .58);
}

.avatar-letter {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 999px;
    color: var(--orange-dark);
    background: linear-gradient(135deg, rgba(255, 106, 0, .18), rgba(255, 181, 71, .22));
    font-weight: 900;
}

.reservation-time {
    display: grid;
    gap: .4rem;
}

.reservation-time span,
.reservation-time b {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--muted);
    font-weight: 750;
}

.admin-pagination > div {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.clients-panel {
    padding: 1.4rem;
}

.clients-header,
.clients-panel .client-row {
    display: grid;
    grid-template-columns: 54px 1.25fr 1.75fr 1fr .8fr .9fr 44px;
    align-items: center;
    gap: .8rem;
}

.clients-header {
    padding: 1rem .8rem;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.clients-header span:first-child {
    grid-column: 1 / 3;
}

.clients-panel .client-row {
    min-height: 92px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: transparent;
}

.clients-panel .client-row img {
    width: 54px;
    height: 54px;
    border-radius: 999px;
}

.clients-panel .client-row strong,
.clients-panel .client-row span,
.clients-panel .client-row b,
.clients-panel .client-row small,
.clients-panel .client-row em {
    width: auto;
    font-style: normal;
}

.clients-panel .client-row em {
    width: max-content;
    padding: .32rem .62rem;
    border-radius: 8px;
    color: var(--orange-dark);
    background: rgba(255, 106, 0, .1);
    font-size: .78rem;
    font-weight: 850;
}

.loyalty-admin-grid {
    grid-template-columns: 1.4fr .8fr;
}

.loyalty-program {
    grid-column: 1;
}

.loyalty-winners {
    grid-row: span 2;
}

.points-summary,
.program-levels {
    grid-column: 1;
}

.points-bar {
    width: min(100%, 230px);
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8dfd7;
}

.points-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--orange), var(--amber));
}

.level-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.level-row span {
    display: grid;
    gap: .25rem;
    min-height: 72px;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .58);
    font-weight: 900;
}

.level-row small {
    font-weight: 650;
}

.report-filters {
    display: grid;
    grid-template-columns: auto auto auto 1fr auto auto auto;
    gap: .8rem;
    padding: .9rem 1rem;
    border-radius: 14px;
}

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

.reports-grid {
    grid-template-columns: 1.3fr .95fr .75fr;
}

.reports-grid .report-chart {
    min-height: 330px;
}

.reports-grid .recent-orders {
    grid-column: span 2;
}

.top-foods .bar-row {
    grid-template-columns: 1fr 1.1fr auto;
}

.top-foods .bar-row em {
    color: var(--orange-dark);
    font-style: normal;
    font-weight: 900;
}

.admin-profile-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1rem;
}

.admin-profile-info {
    grid-column: span 1;
}

.admin-profile-form {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 1.4rem;
    margin-top: 1.2rem;
}

.admin-avatar-card {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: .55rem;
    text-align: center;
}

.admin-avatar-card img {
    width: 126px;
    height: 126px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 18px 42px rgba(46, 31, 21, .14);
}

.admin-avatar-card h3,
.admin-avatar-card p {
    margin: 0;
}

.admin-avatar-card span,
.session-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, .58);
    color: var(--muted);
    font-size: .82rem;
    font-weight: 750;
}

.security-card,
.activity-card,
.preferences-card,
.account-card {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.security-card h3 {
    margin: .4rem 0 0;
}

.session-row {
    justify-content: space-between;
    text-align: left;
}

@media (max-width: 1120px) {
    .app-shell {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .sidebar .brand span:not(.brand-mark),
    .nav-link span {
        display: none;
    }

    .sidebar {
        align-items: center;
    }

    .side-loyalty-card {
        display: none;
    }

    body.nav-open .side-loyalty-card {
        display: grid;
    }

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

    .loyalty-hero,
    .profile-card {
        grid-column: 1 / -1;
    }

    .meal-grid,
    .reservations-grid,
    .admin-stats-grid,
    .admin-stats-grid.compact,
    .report-stats,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .client-metric + .client-metric {
        border-left: 0;
    }

    .client-metric:nth-child(even) {
        border-left: 1px solid var(--line);
    }

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

    .dashboard-grid,
    .loyalty-admin-grid,
    .reports-grid,
    .admin-profile-grid {
        grid-template-columns: 1fr;
    }

    .loyalty-winners,
    .points-summary,
    .program-levels,
    .reports-grid .recent-orders {
        grid-column: auto;
        grid-row: auto;
    }

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

    .report-filters span {
        display: none;
    }

    .admin-reservations-panel .reservation-row,
    .clients-header,
    .clients-panel .client-row {
        grid-template-columns: 54px 1fr 1fr;
    }

    .clients-header span:nth-child(n+4),
    .clients-panel .client-row b,
    .clients-panel .client-row small,
    .clients-panel .client-row > i {
        display: none;
    }
}

@media (max-width: 820px) {
    body {
        background: linear-gradient(135deg, #fffaf4 0%, #f7fbff 100%);
    }

    .auth-card,
    .detail-layout,
    .reserve-layout,
    .loyalty-layout,
    .admin-grid,
    .meal-editor,
    .field-row {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .app-shell {
        display: block;
        padding: .75rem;
    }

    .sidebar {
        position: fixed;
        inset: .75rem auto .75rem .75rem;
        z-index: 30;
        width: 260px;
        transform: translateX(calc(-100% - 1rem));
        transition: transform .22s ease;
    }

    body.nav-open .sidebar {
        transform: translateX(0);
    }

    .sidebar .brand span:not(.brand-mark),
    .nav-link span {
        display: block;
    }

    .menu-toggle {
        display: inline-grid;
    }

    .workspace {
        gap: .85rem;
    }

    .topbar {
        top: .75rem;
    }

    .topbar h1,
    .topbar .eyebrow,
    .user-chip span {
        display: none;
    }

    .hero-grid,
    .meal-grid,
    .reservations-grid,
    .admin-stats-grid,
    .admin-stats-grid.compact,
    .report-stats,
    .stats-grid,
    .stats-grid.mini,
    .client-metrics,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .client-metric:nth-child(even) {
        border-left: 0;
    }

    .client-metric + .client-metric {
        border-top: 1px solid var(--line);
    }

    .reservations-hero {
        grid-template-columns: 1fr;
        padding-bottom: 7.5rem;
    }

    .reservations-hero > img {
        top: auto;
        bottom: 0;
        width: 100%;
        height: 120px;
        mask-image: linear-gradient(180deg, transparent, #000 40%);
    }

    .admin-title {
        min-height: auto;
    }

    .admin-chart-split,
    .admin-profile-form,
    .field-row,
    .level-row,
    .report-filters,
    .admin-reservations-panel .reservation-row,
    .clients-header,
    .clients-panel .client-row {
        grid-template-columns: 1fr;
    }

    .clients-header {
        display: none;
    }

    .admin-actions,
    .admin-pagination,
    .admin-notice,
    .section-head.inline {
        align-items: stretch;
        flex-direction: column;
    }

    .updated-chip {
        margin-left: 0;
    }

    .meal-row {
        grid-auto-columns: minmax(235px, 84vw);
    }

    .page-title,
    .section-head,
    .section-head.inline,
    .reward-cta,
    .status-head {
        align-items: stretch;
        flex-direction: column;
    }

    .tabs,
    .filters {
        width: 100%;
        overflow-x: auto;
    }

    .detail-table div,
    .info-card dl div {
        grid-template-columns: 1fr;
        gap: .25rem;
    }

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

    .client-row,
    .reservation-row,
    .admin-meal-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .client-row strong,
    .client-row span {
        width: auto;
        flex: 1 1 180px;
    }
}

@media (max-width: 520px) {
    .auth-page {
        padding: 0;
    }

    .auth-card,
    .topbar,
    .glass-panel,
    .meal-card,
    .loyalty-card-premium {
        border-radius: 0;
    }

    .daily-choice {
        grid-template-columns: 1fr;
    }

    .daily-choice img {
        justify-self: end;
    }

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