:root {
    --brand-burgundy: #761725;
    --brand-blue: #b5cfe1;
    --brand-orange: #fa9208;
    --brand-cream: #e7d9ce;
    --brand-ink: #141414;
    --brand-surface: #f8f3ef;
}

body {
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(181, 207, 225, 0.45), transparent 35%),
        linear-gradient(135deg, #f8f3ef, #f1e6dd);
    color: var(--brand-ink);
}

.auth-shell,
.app-shell {
    position: relative;
}

.auth-shell::before,
.app-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(118, 23, 37, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(118, 23, 37, 0.035) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
}

.brand-panel,
.login-card,
.topbar,
.table-card,
.product-card,
.selection-panel,
.credential-box,
.sales-side-card,
.category-accordion,
.empty-state,
.total-box {
    border-radius: 24px;
}

.brand-panel {
    background: linear-gradient(165deg, rgba(118, 23, 37, 0.97), rgba(118, 23, 37, 0.85));
    color: #fff7ee;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 28px 60px rgba(118, 23, 37, 0.2);
}

.brand-logo {
    width: min(280px, 100%);
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.18));
}

.display-title,
.section-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.display-title {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 0.95;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.95;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 700;
}

.eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: currentColor;
}

.lead-copy {
    max-width: 32rem;
    color: rgba(255, 247, 238, 0.85);
}

.login-card,
.sales-side-card,
.selection-panel,
.category-accordion,
.topbar,
.table-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
}

.login-card {
    border: 1px solid rgba(118, 23, 37, 0.08);
}

.mode-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    background: var(--brand-burgundy);
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.mode-pill.soft {
    background: rgba(118, 23, 37, 0.08);
    color: var(--brand-burgundy);
}

.credential-box,
.empty-state,
.split-box,
.summary-stack,
.consumption-item,
.selection-panel {
    background: var(--brand-surface);
    border: 1px solid rgba(118, 23, 37, 0.08);
}

.credential-box,
.empty-state,
.split-box,
.selection-panel {
    padding: 1rem 1.1rem;
}

.split-box.form-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1.1rem;
}

.split-box.form-switch .form-check-input {
    flex: 0 0 auto;
    margin-left: 0;
}

.split-box.form-switch .form-check-label {
    margin-bottom: 0;
}

.btn-brand {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #1f1204;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.btn-brand:hover,
.btn-brand:focus {
    background: #ea8607;
    border-color: #ea8607;
    color: #1f1204;
}

.form-control,
.form-select {
    border-radius: 16px;
    border-color: rgba(118, 23, 37, 0.16);
    min-height: 52px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 0.25rem rgba(250, 146, 8, 0.2);
}

.topbar {
    padding: 1.5rem;
    border: 1px solid rgba(118, 23, 37, 0.08);
}

.category-accordion {
    overflow: hidden;
    border: 1px solid rgba(118, 23, 37, 0.08) !important;
    margin-bottom: 1rem;
}

.accordion-button {
    background: rgba(118, 23, 37, 0.04);
    color: var(--brand-burgundy);
    font-weight: 800;
    border: 0;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(181, 207, 225, 0.45);
    color: var(--brand-burgundy);
}

.product-card {
    border: 1px solid rgba(118, 23, 37, 0.08);
    background: #fff;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover,
.product-card:focus {
    transform: translateY(-3px);
    border-color: rgba(250, 146, 8, 0.55);
    box-shadow: 0 16px 28px rgba(118, 23, 37, 0.08);
}

.product-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cream));
}

.product-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.product-copy strong {
    color: var(--brand-burgundy);
}

.product-copy span {
    color: #6e625a;
    font-size: 0.92rem;
}

.price-chip {
    align-self: flex-start;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    background: rgba(250, 146, 8, 0.15);
    color: #7a4700;
    font-weight: 800;
}

.sales-side-card {
    position: sticky;
    top: 1.5rem;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.cart-item,
.payment-row,
.summary-stack > div,
.table-meta,
.consumption-item {
    border-radius: 18px;
    padding: 0.9rem 1rem;
}

.cart-item,
.payment-row {
    background: #fff;
    border: 1px solid rgba(118, 23, 37, 0.08);
}

.cart-item-header,
.payment-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: start;
}

.item-tools {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.item-tools button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(118, 23, 37, 0.08);
    color: var(--brand-burgundy);
    font-weight: 800;
}

.payment-row {
    grid-template-columns: 1fr 1fr auto;
    margin-bottom: 0.75rem;
}

.payment-row .btn {
    border-radius: 14px;
}

.total-box {
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(118, 23, 37, 0.96), rgba(118, 23, 37, 0.84));
    color: #fff;
}

.table-card {
    display: block;
    padding: 1.35rem;
    min-height: 220px;
    border: 1px solid rgba(118, 23, 37, 0.08);
    box-shadow: 0 18px 35px rgba(118, 23, 37, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 45px rgba(118, 23, 37, 0.12);
}

.table-card.occupied {
    background: linear-gradient(180deg, rgba(118, 23, 37, 0.95), rgba(118, 23, 37, 0.86));
    color: #fff7ee;
}

.table-card.bill-requested {
    background: linear-gradient(180deg, rgba(250, 146, 8, 0.96), rgba(214, 112, 0, 0.9));
    color: #1f1204;
}

.table-card.free {
    background: linear-gradient(180deg, rgba(181, 207, 225, 0.55), rgba(255, 255, 255, 0.92));
    color: var(--brand-burgundy);
}

.table-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 800;
    opacity: 0.82;
    margin-bottom: 0.6rem;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.55;
}

.table-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
}

.table-card.free .table-meta {
    background: rgba(255, 255, 255, 0.65);
}

.table-card.bill-requested .table-meta {
    background: rgba(255, 255, 255, 0.32);
}

.summary-stack {
    display: grid;
    gap: 0.75rem;
}

.summary-stack > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(118, 23, 37, 0.08);
}

.consumption-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.consumption-item small {
    display: block;
    margin-top: 0.45rem;
    color: #7c6a5f;
}

.selection-price {
    border-radius: 18px;
    padding: 1rem;
    background: rgba(181, 207, 225, 0.45);
    color: var(--brand-burgundy);
    font-size: 1.3rem;
    font-weight: 800;
    text-align: center;
}

.receipt-sheet {
    width: min(100%, 720px);
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 18px 40px rgba(20, 20, 20, 0.08);
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.receipt-logo {
    width: 140px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.45rem 0;
}

.grand-total {
    font-size: 1.15rem;
    color: var(--brand-burgundy);
}

.aqua-button {
  border: 1px solid #0360df;
  border-radius: 50px;
  padding: 12px 16px;
  background-color: #0360df;
  background-image: radial-gradient(75% 50% at 50% 0%, #f4feff 12%, transparent), radial-gradient(75% 50% at 50% 85%, #8de3fc, transparent);
  box-shadow: inset 0 0 2px 1px rgba(255, 255, 255, 0.2), 0 1px 4px 1px rgba(17, 110, 231, 0.2), 0 1px 4px 1px rgba(0, 0, 0, 0.1);
  color: #fff;
  text-shadow: 0 1px 1px #116ee7;
  transition-property: border-color, transform, background-color;
  transition-duration: 0.2s;
}

.aqua-button:hover {
border: 1px solid #0360df;
  border-radius: 50px;
  padding: 12px 16px;
  background-color: #0360df;
  background-image: radial-gradient(75% 50% at 50% 0%, #f4feff 12%, transparent), radial-gradient(75% 50% at 50% 85%, #8de3fc, transparent);
  box-shadow: inset 0 0 2px 1px rgba(255, 255, 255, 0.2), 0 1px 4px 1px rgba(17, 110, 231, 0.2), 0 1px 4px 1px rgba(0, 0, 0, 0.1);
  color: #fff;
  text-shadow: 0 1px 1px #116ee7;
  transform: scale(1.04);
}

.aqua-button:active {
  border-color: #0048d5;
  transform: scale(0.96);
  background-color: #0048d5;
}

@media (max-width: 1199px) {
    .sales-side-card {
        position: static;
    }
}

@media print {
    body {
        background: #fff;
    }

    .no-print,
    .app-shell::before {
        display: none !important;
    }

    .receipt-sheet {
        box-shadow: none;
        width: 100%;
        max-width: none;
        border-radius: 0;
        padding: 0;
    }
}

@media (max-width: 767px) {
    .display-title,
    .section-title {
        line-height: 1;
    }

    .topbar {
        padding: 1.1rem;
    }

    .payment-row {
        grid-template-columns: 1fr;
    }
}
