/* Bootstrap 5 + Razor Pages overrides so the live-site theme
   (desikahomestylekitchen.com) works on desktop and mobile. */

/* Base text size. The design is rem-based; 10px made labels 12px. 11px = ~10% larger text
   site-wide. Change this one value to tune it. */
html {
  font-size: 11px !important;
}

body {
  margin-bottom: 0 !important;
  overflow-x: hidden;
  min-height: 100%;
  height: auto;
}

body.loaded {
  overflow-x: hidden;
  overflow-y: auto;
}

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

/* Bootstrap 5 .navbar is a flex bar. The live site uses .navbar as a
   mobile drawer and a horizontal link row from 1200px up. */

/* --- Undo Bootstrap .btn / .btn-primary (blue) --- */
.btn,
.btn-primary,
.btn-secondary {
  --bs-btn-color: var(--gold-crayola);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--gold-crayola);
  --bs-btn-hover-color: var(--on-gold);
  --bs-btn-hover-bg: var(--gold-crayola);
  --bs-btn-hover-border-color: var(--gold-crayola);
  --bs-btn-padding-x: 45px;
  --bs-btn-padding-y: 12px;
  --bs-btn-font-size: var(--fontSize-label-2);
  --bs-btn-font-weight: var(--weight-bold);
  --bs-btn-line-height: inherit;
  --bs-btn-border-radius: 0;
  --bs-btn-box-shadow: none;
  --bs-btn-focus-box-shadow: none;
  border-radius: 0;
  text-decoration: none;
}

.btn-secondary {
  --bs-btn-color: var(--black);
  --bs-btn-bg: var(--gold-crayola);
}

.btn:focus,
.btn-primary:focus,
.form-control:focus {
  box-shadow: none;
}

/* --- Undo Bootstrap .container / .row / .display-1 --- */
.container {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  width: 100%;
  padding-inline: 16px;
}

.header .container,
.topbar .container,
.footer .container,
.hero .container,
.reservation .container {
  max-width: 100%;
}

.logo .row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  display: block;
  margin: 0;
}

.display-1 {
  font-size: var(--fontSize-display-1) !important;
  font-weight: var(--weight-regular);
  line-height: var(--lineHeight-1);
  color: var(--white);
  font-family: var(--fontFamily-forum);
}

/* --- Scoped layout CSS must not pin the footer or recolor links --- */
a {
  color: inherit;
}

.footer {
  position: relative !important;
  bottom: auto !important;
  width: 100%;
  white-space: normal !important;
  line-height: inherit !important;
}

/* Full-bleed hero/footer even when wrapped in a layout container */
body > .container {
  max-width: 100%;
  padding-inline: 0;
}

/* --- Mobile first (phones) --- */
@media (max-width: 767.98px) {
  .topbar {
    display: none;
  }

  .header {
    top: 0;
    padding-block: 16px;
  }

  .header .logo img,
  header img {
    width: 70%;
    max-width: 160px;
    height: auto;
  }

  .hero {
    min-height: 100svh;
    padding-block: 100px 60px;
  }

  .hero .slider-btn {
    display: none;
  }

  .hero-title,
  .display-1 {
    font-size: calc(2.4rem + 6vw) !important;
  }

  .service .grid-list,
  .grid-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service .grid-list li:nth-child(2n+1) {
    transform: none;
  }

  .reservation-form {
    margin-block-start: -80px;
    display: block;
  }

  .form-left,
  .form-right {
    padding: 28px 16px;
  }

  .reservation .input-wrapper {
    display: block;
  }

  .testi {
    padding-block-end: 140px;
  }

  .footer-top.grid-list {
    grid-template-columns: 1fr;
  }

  .nav-open-btn {
    min-width: 44px;
    min-height: 44px;
  }

  #myDiv {
    display: flex;
  }
}

/* Phone + tablet: slide-out drawer (same as live site) */
@media (max-width: 1199.98px) {
  .header .container {
    overflow: visible;
  }

  .nav-open-btn {
    display: block !important;
    position: relative;
    z-index: 1002;
    cursor: pointer;
    background: transparent;
    border: 0;
  }

  .header .overlay {
    z-index: 1000;
  }

  .header .overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .header .navbar,
  nav.navbar[data-navbar] {
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 0;
    display: block !important;
    flex-wrap: unset !important;
    align-items: unset !important;
    justify-content: unset !important;
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(360px, 92vw);
    max-width: 360px;
    padding: 0 30px 50px;
    background-color: var(--smoky-black-1);
    border: 0;
    border-inline-end: 1px solid var(--white-alpha-10);
    visibility: visible;
    opacity: 1;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1001;
    transform: translateX(-105%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.55);
  }

  .header .navbar.active,
  nav.navbar[data-navbar].active {
    transform: translateX(0);
  }

  .header .navbar-list,
  .header .navbar-item,
  .header .navbar-link {
    display: block !important;
    width: 100%;
    margin: 0;
  }

  .header .navbar-list {
    border-block-end: 1px solid var(--white-alpha-20);
    margin-block-end: 40px;
  }

  .has-submenu .submenu {
    display: none;
    padding-left: 12px;
    margin-top: 8px;
  }

  .has-submenu.submenu-open .submenu {
    display: grid;
  }

  .has-submenu > button.navbar-link {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
  }
}

/* --- Tablet --- */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .hero {
    min-height: 100svh;
  }

  .service .grid-list li:nth-child(2n+1) {
    transform: none;
  }

  .reservation-form {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* --- Desktop: horizontal nav like the live site --- */
@media (min-width: 1200px) {
  body > .container {
    max-width: 100%;
  }

  .container,
  :is(.service, .event) .container {
    max-width: 1200px;
  }

  .header .container,
  .topbar .container {
    max-width: unset;
  }

  #myDiv {
    display: none;
  }

  .header .navbar,
  nav.navbar[data-navbar],
  .header .navbar.active {
    all: unset;
    display: block !important;
    position: static !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent !important;
    max-width: none !important;
    width: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    margin-inline: auto 20px;
  }

  .header .navbar > *:not(.navbar-list),
  .nav-open-btn,
  .header .overlay {
    display: none !important;
  }

  .header .navbar-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 30px;
    margin: 0 !important;
    border: 0 !important;
    width: auto !important;
  }

  .header .navbar-item {
    display: block !important;
    width: auto !important;
    border: 0 !important;
  }

  .header .navbar-link {
    display: block !important;
    width: auto !important;
    font-weight: var(--weight-bold);
    letter-spacing: var(--letterSpacing-1);
  }

  .header .navbar .separator {
    display: none !important;
  }

  .header .navbar-cart .navbar-link {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
}

.nav-cta {
    padding: 10px 22px;
    letter-spacing: 0.2em;
}

.cart-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gold-crayola);
    border: 1px solid var(--gold-crayola);
    padding: 8px 14px;
    line-height: 1;
}

    .cart-chip ion-icon {
        font-size: 2rem;
        flex-shrink: 0;
    }

.cart-count {
    box-sizing: border-box;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #c0392b;
    color: #fff;
    font-size: 1.2rem;
    font-weight: var(--weight-bold);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    min-width: 200px;
    background: var(--eerie-black-4);
    border: 1px solid var(--white-alpha-10);
    padding: 12px 0;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    display: grid;
}

.submenu a,
.submenu button {
    display: block;
    width: 100%;
    text-align: left;
    color: var(--white);
    padding: 10px 18px;
    background: none;
    border: 0;
    font: inherit;
}

    .submenu a:hover,
    .submenu button:hover {
        color: var(--gold-crayola);
    }

@media (min-width: 1200px) {
    .header .navbar-list {
        gap: 22px;
    }

    .has-submenu .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 6;
    }

    .header .navbar-link .span {
        letter-spacing: 0.18em;
        text-transform: uppercase;
        font-size: 1.2rem;
    }
}

@media (max-width: 1199.98px) {
    .nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 16px;
    }
}

.login-page {
    padding-block: 180px 80px;
    min-height: 70vh;
}

.login-page .container {
    display: flex;
    justify-content: center;
}

.login-card {
    width: min(520px, 100%);
    padding: 48px 32px;
    border: 1px solid var(--white-alpha-10);
}

.login-form .headline-1 {
    margin-block-end: 28px;
}

.login-form .btn {
    width: 100%;
    max-width: 100%;
    margin-block-start: 8px;
}

.admin-page {
    padding-block: 180px 80px;
    overflow: visible;
}

    .admin-page .container {
        max-width: 1200px;
        margin-inline: auto;
    }

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-block-end: 48px;
}

    .admin-toolbar .section-title {
        margin: 0;
        font-size: 3.2rem;
    }

.admin-empty {
    text-align: center;
    color: var(--quick-silver);
}

.admin-page .admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-start: 12px;
}

.admin-chip {
    display: inline-block;
    color: var(--gold-crayola);
    border: 1px solid var(--gold-crayola);
    padding: 6px 12px;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

    .admin-chip:hover {
        background: var(--gold-crayola);
        color: var(--on-gold);
    }

.admin-chip-danger {
    color: #e74c3c;
    border-color: #e74c3c;
}

    .admin-chip-danger:hover {
        background: #e74c3c;
        color: #fff;
    }

.admin-page .menu-card {
    align-items: center;
}

.admin-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--eerie-black-4);
}

    .admin-thumb img {
        width: 96px;
        height: 96px;
        max-width: none;
        object-fit: cover;
        object-position: center;
        display: block;
    }

/* --- Checkout --- */
.checkout-page .section-title {
    margin-block: 1.6rem 2.4rem;
}

.checkout-back {
    margin-bottom: 3rem;
}

.checkout-layout {
    display: grid;
    gap: 2.4rem;
    max-width: 110rem;
    margin-inline: auto;
}

@media (min-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr min(36rem, 38%);
        align-items: start;
    }
}

.checkout-panel {
    border: 1px solid var(--white-alpha-10);
    background: var(--eerie-black-2);
    padding: 2.4rem 2rem;
}

.checkout-panel-title {
    margin-bottom: 1.6rem;
    color: var(--gold-crayola);
    font-family: var(--fontFamily-forum);
    font-size: var(--fontSize-title-3);
}

.checkout-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checkout-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem 1.6rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--white-alpha-10);
    color: var(--quick-silver);
    font-size: var(--fontSize-body-4);
    line-height: 1.5;
}

.checkout-line:last-of-type {
    border-bottom: none;
}

.checkout-line-name {
    color: var(--white);
    font-weight: var(--weight-bold);
    font-size: var(--fontSize-body-3);
    line-height: 1.35;
    grid-column: 1 / -1;
}

.checkout-line-meta {
    font-size: var(--fontSize-body-4);
}

.checkout-line-total {
    color: var(--gold-crayola);
    font-weight: var(--weight-bold);
    font-size: var(--fontSize-body-3);
    text-align: right;
    white-space: nowrap;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 1.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--gold-crayola);
    color: var(--white);
    font-size: var(--fontSize-title-4);
    font-weight: var(--weight-bold);
}

.checkout-total-row span:last-child {
    color: var(--gold-crayola);
    font-size: var(--fontSize-title-3);
}

.checkout-details {
    display: grid;
    gap: 1.2rem;
    margin: 0;
}

.checkout-details div {
    display: grid;
    gap: 0.4rem;
}

.checkout-details dt {
    margin: 0;
    color: var(--quick-silver);
    font-size: var(--fontSize-label-2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.checkout-details dd {
    margin: 0;
    color: var(--white);
    font-size: var(--fontSize-body-4);
}

.checkout-aside {
    display: grid;
    gap: 2.4rem;
}

.checkout-payment-intro {
    margin-bottom: 1.6rem;
    color: var(--quick-silver);
    font-size: var(--fontSize-label-1);
    line-height: 1.6;
}

.checkout-payment-methods {
    display: grid;
    gap: 1.2rem;
}

#paypal-button-container {
    min-height: 4.5rem;
}

.checkout-pay-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 1.4rem 2rem;
    border: 1px solid var(--gold-crayola);
    background: transparent;
    color: var(--gold-crayola);
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.checkout-pay-option:hover {
    background: var(--gold-crayola);
    color: var(--on-gold);
}

.checkout-pay-option img {
    width: 2.8rem;
    height: 2.8rem;
    object-fit: contain;
}

/* --- Cart (shared layout with checkout) --- */
.cart-page .section-title {
    margin-block: 1.6rem 2.4rem;
}

.cart-back {
    margin-bottom: 3rem;
}

.cart-empty {
    max-width: 48rem;
    margin-inline: auto;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--white-alpha-10);
    background: var(--eerie-black-2);
}

.cart-empty p {
    color: var(--quick-silver);
    margin-bottom: 2rem;
}

.cart-qty-btn {
    display: grid;
    place-items: center;
    min-width: 3.6rem;
    height: 3.6rem;
    padding: 0;
    border: 1px solid var(--gold-crayola);
    background: transparent;
    color: var(--gold-crayola);
    font-size: 2.2rem;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.cart-qty-btn:hover {
    background: var(--gold-crayola);
    color: var(--on-gold);
}

.cart-form-panel .input-wrapper {
    display: grid;
    gap: 1.2rem;
    margin-bottom: 1.6rem;
}

.cart-form-panel .input-field {
    width: 100%;
}

.cart-form-panel label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--quick-silver);
    font-size: var(--fontSize-label-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cart-form-panel .text-danger {
    font-size: 1.2rem;
    margin-top: 0.4rem;
}

.cart-submit {
    width: 100%;
    margin-top: 0.8rem;
}

/* --- Premium polish (site-wide) --- */
body {
    background-color: var(--smoky-black-1);
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -15%, rgba(197, 157, 95, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(197, 157, 95, 0.06), transparent 45%),
        radial-gradient(ellipse 50% 35% at 0% 80%, rgba(197, 157, 95, 0.05), transparent 40%);
    background-attachment: fixed;
}

.header.active {
    backdrop-filter: blur(14px);
    background-color: rgba(18, 18, 18, 0.88) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
  background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 60%
    );
    transform: translateX(-120%);
    transition: transform 0.65s ease;
    pointer-events: none;
}

.btn:hover::after {
    transform: translateX(120%);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(197, 157, 95, 0.22);
}

.input-field,
.cart-form-panel .input-field,
.reservation-form .input-field {
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.input-field:focus {
    border-color: var(--gold-crayola) !important;
    box-shadow:
        0 0 0 1px rgba(197, 157, 95, 0.5),
        0 0 28px rgba(197, 157, 95, 0.12);
}

.checkout-panel {
    position: relative;
    border: 1px solid transparent;
    background:
        linear-gradient(var(--eerie-black-2), var(--eerie-black-2)) padding-box,
        linear-gradient(140deg, rgba(197, 157, 95, 0.55), rgba(197, 157, 95, 0.12) 45%, rgba(197, 157, 95, 0.35)) border-box;
    box-shadow:
        0 28px 56px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.checkout-panel:hover {
    transform: translateY(-3px);
    box-shadow:
        0 36px 64px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(197, 157, 95, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cart-page .section-subtitle,
.checkout-page .section-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
}

.cart-page .section-subtitle::before,
.cart-page .section-subtitle::after,
.checkout-page .section-subtitle::before,
.checkout-page .section-subtitle::after {
    content: "";
    width: 5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-crayola));
}

.cart-page .section-subtitle::after,
.checkout-page .section-subtitle::after {
    background: linear-gradient(270deg, transparent, var(--gold-crayola));
}

.cart-page .headline-1,
.checkout-page .headline-1 {
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.menuContent .menu-card {
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-24);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}

.menuContent .menu-card:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 157, 95, 0.35);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        0 0 32px rgba(197, 157, 95, 0.1);
}

.service-card {
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 52px rgba(0, 0, 0, 0.42);
}

.cart-chip {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.cart-chip:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(197, 157, 95, 0.2);
}

.cart-count--active {
    animation: cart-pulse 2.4s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(197, 157, 95, 0.5);
}

@keyframes cart-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(197, 157, 95, 0.35);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(197, 157, 95, 0);
    }
}

.checkout-pay-option,
.cart-qty-btn {
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.checkout-pay-option:hover,
.cart-qty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(197, 157, 95, 0.18);
}

.back-top-btn.active {
    box-shadow: 0 8px 28px rgba(197, 157, 95, 0.35);
}

.desika-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.desika-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero .slider-item.active .slider-reveal {
    animation: hero-text-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero .slider-item.active .slider-reveal:nth-child(2) {
    animation-delay: 0.08s;
}

.hero .slider-item.active .slider-reveal:nth-child(3) {
    animation-delay: 0.16s;
}

.hero .slider-item.active .slider-reveal:nth-child(4) {
    animation-delay: 0.24s;
}

.hero .slider-item.active .slider-reveal:nth-child(5) {
    animation-delay: 0.32s;
}

@keyframes hero-text-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preload .circle {
    box-shadow: 0 0 48px rgba(197, 157, 95, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .desika-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn::after,
    .cart-count--active,
    .hero .slider-item.active .slider-reveal {
        animation: none;
    }

    .btn:hover,
    .checkout-panel:hover,
    .menu-card:hover,
    .service-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   NAV / TAB INTERACTIONS (colours unchanged: white text, gold accents)
   ========================================================================== */

/* "Manage" is a <button>; make it look exactly like the other nav links */
.header .has-submenu > button.navbar-link {
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    font-weight: var(--weight-bold);
    letter-spacing: var(--letterSpacing-1);
    cursor: pointer;
    padding-inline: 0;
}

/* Chevron on the Manage tab */
.header .has-submenu > .navbar-link .span::after {
    content: "";
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    margin-inline-start: 0.7em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.2em) rotate(45deg);
    transition: transform 0.25s ease;
}

.header .has-submenu:hover > .navbar-link .span::after,
.header .has-submenu:focus-within > .navbar-link .span::after,
.header .has-submenu.submenu-open > .navbar-link .span::after {
    transform: translateY(0.05em) rotate(225deg);
}

/* Keyboard focus ring */
.header .navbar-link:focus-visible,
.submenu a:focus-visible,
.submenu button:focus-visible {
    outline: 2px solid var(--gold-crayola);
    outline-offset: 4px;
}

/* Submenu links: gold bar + slide on hover */
.submenu a,
.submenu button {
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, padding-inline-start 0.2s ease;
}

.submenu a::before,
.submenu button::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--gold-crayola);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.submenu a:is(:hover, :focus-visible),
.submenu button:is(:hover, :focus-visible) {
    color: var(--gold-crayola);
    background-color: var(--white-alpha-10);
    padding-inline-start: 24px;
}

.submenu a:is(:hover, :focus-visible)::before,
.submenu button:is(:hover, :focus-visible)::before {
    transform: scaleY(1);
}

@media (min-width: 1200px) {
    /* Animated dropdown (fade + slide) instead of popping in */
    .header .has-submenu .submenu {
        display: grid;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
        border-top: 2px solid var(--gold-crayola);
    }

    .header .has-submenu:hover .submenu,
    .header .has-submenu:focus-within .submenu,
    .header .has-submenu.submenu-open .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition-delay: 0s;
    }

    /* Nav tabs lift slightly on hover */
    .header .navbar-link .span {
        display: inline-block;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .header .navbar-link:is(:hover, :focus-visible) .span {
        color: var(--gold-crayola);
        transform: translateY(-2px);
    }
}

/* Admin tabs/buttons: smooth hover, press feedback */
.admin-chip {
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.admin-chip:active {
    transform: translateY(0);
    box-shadow: none;
}

.admin-chip:focus-visible {
    outline: 2px solid var(--gold-crayola);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .header .has-submenu .submenu,
    .header .navbar-link .span,
    .header .has-submenu > .navbar-link .span::after,
    .submenu a,
    .submenu button,
    .admin-chip {
        transition: none;
    }

    .admin-chip:hover,
    .header .navbar-link:is(:hover, :focus-visible) .span {
        transform: none;
    }
}

/* ==========================================================================
   MOBILE-FRIENDLY / BOOTSTRAP 5 ADMIN FORMS
   ========================================================================== */

/* Admin forms: dark inputs matching the rest of the site (Bootstrap 5 .form-control is white) */
.content .form-control,
.content .form-select {
    background-color: var(--eerie-black-4);
    color: var(--white);
    border: 1px solid var(--white-alpha-20);
    border-radius: 0;
    padding: 12px 14px;
    color-scheme: dark;
}

.content .form-control:focus,
.content .form-select:focus {
    background-color: var(--eerie-black-4);
    color: var(--white);
    border-color: var(--gold-crayola);
}

.content .form-control::placeholder {
    color: var(--quick-silver);
}

.content .form-label {
    color: var(--quick-silver);
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.content .form-check-input {
    width: 1.3em;
    height: 1.3em;
    margin-top: 0.15em;
    background-color: var(--eerie-black-4);
    border-color: var(--white-alpha-20);
}

.content .form-check-input:checked {
    background-color: var(--gold-crayola);
    border-color: var(--gold-crayola);
}

.content .form-check-label {
    color: var(--white);
    margin-inline-start: 4px;
}

.content .btn,
.content button[type="submit"] {
    min-height: 44px;
}

.content dt {
    color: var(--quick-silver);
}

/* Order list: scroll on tablets, stack as cards on phones */
.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
    .content {
        margin-top: 150px;
    }

    /* 16px inputs stop iOS Safari zooming the page when a field is focused */
    .form-control,
    .form-select,
    .input-field {
        font-size: 16px;
    }

    .admin-table-stack thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .admin-table-stack,
    .admin-table-stack tbody,
    .admin-table-stack tr,
    .admin-table-stack td {
        display: block;
        width: 100%;
    }

    .admin-table-stack tr {
        border: 1px solid var(--white-alpha-20);
        background: var(--eerie-black-4);
        margin-bottom: 16px;
        padding: 8px 14px;
        line-height: 1.5;
    }

    .admin-table-stack td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        text-align: right;
        white-space: normal;
        padding: 8px 0;
        border: 0;
        border-bottom: 1px solid var(--white-alpha-10);
    }

    .admin-table-stack td:last-child {
        border-bottom: 0;
    }

    .admin-table-stack td[data-label]::before {
        content: attr(data-label);
        flex-shrink: 0;
        color: var(--quick-silver);
        font-size: 1.2rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        text-align: left;
    }

    .admin-table-stack td.admin-table-actions {
        display: block;
        text-align: left;
    }

    /* Larger tap targets for admin buttons */
    .admin-chip {
        padding: 12px 16px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .admin-page .admin-actions {
        gap: 10px;
    }

    .admin-toolbar {
        margin-block-end: 28px;
    }

    .admin-toolbar .admin-chip {
        width: 100%;
        justify-content: center;
    }
}

/* Never let long words / emails / table content force sideways scrolling */
.content,
.admin-page {
    overflow-wrap: anywhere;
}

/* ==========================================================================
   ADMIN TABLES (Orders etc.): dark, compact, readable
   ========================================================================== */

/* Bootstrap 5 tables default to a white background; this site is dark */
.table {
    --bs-table-color: var(--white);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--white-alpha-20);
    --bs-table-striped-bg: var(--white-alpha-5, hsla(0, 0%, 100%, 0.04));
    --bs-table-hover-bg: hsla(0, 0%, 100%, 0.06);
    color: var(--white);
}

/* Clear the fixed site header (pages without the .content offset) */
.admin-page {
    padding-top: 220px;
    padding-bottom: 80px;
}

.admin-toolbar {
    align-items: flex-end;
}

.admin-count {
    color: var(--quick-silver);
    font-size: 1.4rem;
    margin-top: 6px;
}

.admin-table {
    width: 100%;
    margin-bottom: 0;
}

.admin-table thead th {
    color: var(--gold-crayola);
    font-size: 1.2rem;
    font-weight: var(--weight-bold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gold-crayola);
    background: transparent;
}

.admin-table tbody tr {
    line-height: 1.5;
}

.admin-table tbody tr:hover > * {
    background-color: hsla(0, 0%, 100%, 0.04);
}

.admin-table td {
    white-space: normal;
    vertical-align: top;
    padding: 16px;
    border-bottom: 1px solid var(--white-alpha-10);
    background: transparent;
    color: var(--white);
}

.admin-table td strong {
    display: block;
    font-weight: var(--weight-bold);
}

.admin-sub {
    display: block;
    color: var(--quick-silver);
    font-size: 1.3rem;
    overflow-wrap: anywhere;
}

.admin-items {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 180px;
}

.admin-items li {
    padding-block: 2px;
}

.admin-qty {
    color: var(--gold-crayola);
    font-weight: var(--weight-bold);
    margin-inline-end: 4px;
}

.admin-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.admin-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: var(--weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid currentColor;
    white-space: nowrap;
}

.admin-badge-ok {
    color: #5cc98a;
}

.admin-badge-warn {
    color: #f0b24a;
}

.admin-table .admin-actions {
    flex-wrap: nowrap;
    margin: 0;
}

.admin-table .admin-chip {
    padding: 6px 12px;
}

/* Tablets: let actions wrap under each other rather than squeezing the table */
@media (max-width: 1199.98px) {
    .admin-table .admin-actions {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 767.98px) {
    .admin-page {
        padding-top: 150px;
        padding-bottom: 60px;
    }

    .admin-table tbody tr:hover > * {
        background-color: transparent;
    }

    .admin-table-stack td strong {
        display: inline;
    }

    .admin-table-stack td > .admin-sub,
    .admin-table-stack td > strong {
        text-align: right;
    }

    .admin-table-stack td {
        align-items: flex-start;
    }

    .admin-table-stack .admin-badges {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .admin-table-stack .admin-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admin-table .admin-chip {
        padding: 12px 16px;
    }
}

/* Orders refinements */
.admin-page {
    padding-top: 270px;
}

.admin-items li {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.admin-items .admin-qty {
    display: inline;
    flex-shrink: 0;
    margin: 0;
}

/* Keep the action buttons inside the table: stack them vertically */
.admin-table .admin-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    min-width: 88px;
}

.admin-table .admin-chip {
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .admin-page {
        padding-top: 150px;
    }

    .admin-table-stack .admin-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Orders: deterministic desktop layout (fits the container, long text wraps) */
@media (min-width: 1200px) {
    .admin-table {
        table-layout: fixed;
    }

    .admin-table th,
    .admin-table td {
        padding-inline: 12px;
        overflow-wrap: anywhere;
    }

    .admin-table th:nth-child(1) { width: 9%; }
    .admin-table th:nth-child(2) { width: 21%; }
    .admin-table th:nth-child(3) { width: 26%; }
    .admin-table th:nth-child(4) { width: 12%; }
    .admin-table th:nth-child(5) { width: 9%; }
    .admin-table th:nth-child(6) { width: 11%; }
    .admin-table th:nth-child(7) { width: 12%; }

    .admin-items {
        min-width: 0;
    }

    .admin-table .admin-actions {
        min-width: 0;
    }
}

/* Phones AND tablets: one card per order */
@media (max-width: 1199.98px) {
    .admin-table-stack thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .admin-table-stack,
    .admin-table-stack tbody,
    .admin-table-stack tr,
    .admin-table-stack td {
        display: block;
        width: 100%;
    }

    .admin-table-stack tr {
        border: 1px solid var(--white-alpha-20);
        background: var(--eerie-black-4);
        margin-bottom: 16px;
        padding: 8px 16px;
    }

    .admin-table-stack td {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: baseline;
        gap: 2px 16px;
        text-align: right;
        padding: 10px 0;
        border: 0;
        border-bottom: 1px solid var(--white-alpha-10);
    }

    .admin-table-stack td:last-child {
        border-bottom: 0;
    }

    .admin-table-stack td[data-label]::before {
        content: attr(data-label);
        flex: 0 0 96px;
        text-align: left;
        color: var(--quick-silver);
        font-size: 1.2rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    /* value lines sit to the right of the label and wrap under each other */
    .admin-table-stack td > strong,
    .admin-table-stack td > .admin-sub,
    .admin-table-stack td > .admin-items,
    .admin-table-stack td > .admin-badges {
        flex: 1 1 calc(100% - 112px);
        min-width: 0;
        text-align: right;
        display: block;
    }

    .admin-table-stack td > strong + .admin-sub,
    .admin-table-stack td > .admin-sub + .admin-sub {
        flex-basis: 100%;
    }

    .admin-table-stack .admin-items li {
        justify-content: flex-end;
    }

    .admin-table-stack td.admin-table-actions {
        display: block;
        text-align: left;
    }

    .admin-table-stack .admin-actions {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }

    .admin-table-stack .admin-badges {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .admin-table .admin-chip {
        padding: 12px 18px;
        min-height: 44px;
    }
}

/* ==========================================================================
   MOBILE MENU FIX
   backdrop-filter / transform on an ancestor turns it into the containing block
   for position:fixed children. The slide-out menu lives inside .header, so once
   the header got .active (after scrolling 50px) the menu was squashed into the
   header's height and could not be seen. On small screens use an opaque header
   and never transform it while the menu is open.
   ========================================================================== */
@media (max-width: 1199.98px) {
    .header.active {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background-color: rgba(18, 18, 18, 0.97) !important;
    }

    body.nav-active .header,
    body.nav-active .header.hide,
    .header:has(.navbar.active) {
        transform: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
    }

    /* "Manage"/"Account" button should look like the other menu links in the slide-out */
    .header .has-submenu > button.navbar-link {
        font-family: inherit;
        font-size: var(--fontSize-label-2);
        font-weight: inherit;
        letter-spacing: normal;
        line-height: inherit;
        text-align: left;
        padding-inline: 0;
    }

    .header .has-submenu > button.navbar-link .span {
        text-transform: none;
        letter-spacing: normal;
        font-size: inherit;
    }

    .header .submenu a,
    .header .submenu button {
        font-size: var(--fontSize-label-1);
    }
}

/* ==========================================================================
   LARGER MOBILE MENU (hamburger + slide-out panel)
   ========================================================================== */
@media (max-width: 1199.98px) {
    /* Hamburger: bigger lines and a comfortable tap area */
    .nav-open-btn {
        padding: 14px 0 14px 14px;
        min-width: 52px;
        min-height: 52px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .nav-open-btn .line {
        width: 36px;
        height: 3px;
        margin-block: 5px;
    }

    /* Panel: wider */
    .header .navbar,
    nav.navbar[data-navbar] {
        width: min(440px, 92vw);
        max-width: 440px;
        padding: 0 28px 60px;
    }

    .header .navbar .logo img {
        max-width: 160px;
    }

    /* Close button: bigger */
    .header .navbar .close-btn {
        padding: 8px;
        margin-block: 24px 12px;
    }

    .header .navbar .close-btn ion-icon {
        font-size: 2.8rem;
    }

    /* Links: larger text and tap targets */
    .header .navbar-link {
        font-size: 1.9rem;
        padding-block: 17px;
    }

    .header .has-submenu > button.navbar-link {
        font-size: 1.9rem;
    }

    .header .navbar-link .span {
        font-size: inherit;
    }

    .header .submenu a,
    .header .submenu button {
        font-size: 1.7rem;
        padding: 15px 20px;
    }

    .header .navbar-cart .navbar-link,
    .header .navbar .cart-chip {
        min-height: 48px;
    }

    .header .navbar .contact-label,
    .header .navbar .navbar-text,
    .header .navbar .body-4 {
        font-size: 1.6rem;
    }
}

/* Checkout: processing-fee notes and inline PayPal errors */
.checkout-fee-note,
.checkout-method-total {
    color: var(--quick-silver);
    font-size: 1.4rem;
    margin: 0.8rem 0;
}

.checkout-method-total strong {
    color: var(--white);
}

.checkout-error {
    color: #ff6b6b;
    font-size: 1.4rem;
    margin: 0.8rem 0;
}

/* ===== Dine-in, Catering and Gallery ===== */
.service-page .service-intro {
    max-width: 78rem;
    margin: 0 auto 2.4rem;
    color: var(--white);
}

.service-layout {
    display: grid;
    gap: 2.4rem;
    max-width: 120rem;
    margin-inline: auto;
}

@media (min-width: 992px) {
    .service-layout {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        align-items: start;
    }
}

.service-confirmation {
    max-width: 78rem;
    margin: 0 auto 2.4rem;
    padding: 1.8rem 2rem;
    border: 1px solid #5cc98a;
    background: rgba(92, 201, 138, 0.08);
    text-align: center;
}

.service-confirmation .btn {
    margin-top: 1.6rem;
}

.service-form .input-wrapper {
    margin-bottom: 1.4rem;
}

.service-form .input-wrapper label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--white);
}

.service-form textarea.input-field {
    min-height: 8rem;
    resize: vertical;
}

.service-form [hidden] {
    display: none !important;
}

.service-choice {
    margin: 0 0 1.4rem;
    padding: 0;
    border: 0;
}

.service-choice legend {
    margin-bottom: 0.8rem;
    color: var(--white);
    font-size: inherit;
}

.service-radio,
.service-check {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.4rem;
    color: var(--white);
    cursor: pointer;
}

.service-radio input,
.service-check input {
    width: 2rem;
    height: 2rem;
    accent-color: var(--gold-crayola);
}

.service-submit {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

/* Menu quantity picker */
.picker-category {
    margin: 2rem 0 0.8rem;
    color: var(--gold-crayola);
    font-family: var(--fontFamily-forum);
}

.picker-category:first-child {
    margin-top: 0;
}

.picker-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.picker-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--white-alpha-10);
}

.picker-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.picker-name {
    color: var(--white);
    font-weight: var(--weight-bold);
}

.picker-desc {
    color: var(--quick-silver, #a6a6a6);
    font-size: 1.3rem;
}

.picker-price {
    color: var(--gold-crayola);
    font-weight: var(--weight-bold);
    white-space: nowrap;
}

.picker-qty {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.picker-qty-input {
    width: 5.2rem;
    height: 3.6rem;
    padding: 0;
    border: 1px solid var(--white-alpha-20);
    background: transparent;
    color: var(--white);
    text-align: center;
    -moz-appearance: textfield;
}

.picker-qty-input::-webkit-outer-spin-button,
.picker-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.picker-total {
    margin-top: 1.6rem;
    text-align: right;
    color: var(--white);
}

@media (max-width: 575.98px) {
    .picker-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .picker-qty {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

/* Public gallery */
.gallery-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fill, minmax(min(26rem, 100%), 1fr));
}

.gallery-open {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--white-alpha-10);
    background: var(--eerie-black-2);
    cursor: zoom-in;
    overflow: hidden;
}

.gallery-open img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-open:hover img,
.gallery-open:focus-visible img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 1.2rem 1.4rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: var(--white);
    text-align: left;
}

.gallery-dialog {
    max-width: min(96vw, 110rem);
    max-height: 94vh;
    padding: 0;
    border: 1px solid var(--gold-crayola);
    background: var(--smoky-black-1);
    color: var(--white);
    overflow: auto;
}

.gallery-dialog::backdrop {
    background: rgba(0, 0, 0, 0.85);
}

.gallery-dialog img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
}

.gallery-dialog-caption {
    padding: 1rem 1.6rem;
    text-align: center;
}

.gallery-close {
    position: absolute;
    top: 0.6rem;
    right: 1rem;
    width: 4.4rem;
    height: 4.4rem;
    border: 0;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
}

/* Admin helpers for these screens */
.admin-notice {
    margin: 0 0 1.6rem;
    padding: 1.2rem 1.6rem;
    border: 1px solid var(--gold-crayola);
    color: var(--white);
}

.admin-badge-bad {
    color: #ef6b6b;
}

.admin-inline-form {
    display: inline-block;
    margin: 0;
}

.admin-quote-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.admin-miles {
    max-width: 14rem;
}

.admin-upload {
    max-width: 60rem;
    margin-bottom: 3rem;
    padding: 2rem;
    border: 1px solid var(--white-alpha-10);
}

.admin-gallery-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.picker-total strong,
.picker-total span {
    display: inline;
}

/* Honeypot: off-screen for people, still present for bots */
.hp-field {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Staff attention badges in the Manage menu */
.nav-badge {
    display: inline-block;
    min-width: 2rem;
    margin-left: 0.6rem;
    padding: 0 0.6rem;
    border-radius: 999px;
    background: #e5484d;
    color: #fff;
    font-size: 1.2rem;
    font-weight: var(--weight-bold);
    line-height: 2rem;
    text-align: center;
    letter-spacing: 0;
}

.admin-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-filter .form-control,
.admin-filter .form-select {
    width: auto;
    min-width: 16rem;
    flex: 1 1 16rem;
    max-width: 28rem;
}

/* Home page service tiles */
.home-tiles {
    list-style: none;
    margin: 3rem 0 0;
    padding: 0;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(min(28rem, 100%), 1fr));
}

.home-tile {
    display: block;
    height: 100%;
    border: 1px solid var(--white-alpha-10);
    background: var(--eerie-black-2);
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.home-tile:hover,
.home-tile:focus-visible {
    transform: translateY(-4px);
    border-color: var(--gold-crayola);
}

.home-tile img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.home-tile-body {
    display: block;
    padding: 1.8rem 2rem 2.2rem;
}

.home-tile-title {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--gold-crayola);
    font-family: var(--fontFamily-forum);
    font-size: var(--fontSize-title-2, 2.4rem);
}

.home-tile-text {
    display: block;
    color: var(--white);
}

/* Manage menu: grouped, scrolls when taller than the screen, badge sits beside the label */
.submenu { max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain; }
.submenu li { list-style: none; }
.submenu-heading { padding: 10px 18px 4px; font-size: 1.1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--quick-silver); border-top: 1px solid var(--white-alpha-10); margin-top: 6px; }
.submenu-heading:first-child { border-top: 0; margin-top: 0; }
.submenu a:has(.nav-badge) { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.submenu a .nav-badge { margin-left: 0; flex: none; }

/* Sales summary tiles and the Manage hub */
.sales-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 8px 0 12px; }
.sales-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--eerie-black-2); border: 1px solid var(--white-alpha-10); }
.sales-tile span { color: var(--quick-silver); font-size: 1.3rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sales-tile strong { font-size: 2.6rem; color: var(--white); font-weight: 700; line-height: 1.2; }
.sales-tile small { color: var(--quick-silver); font-size: 1.3rem; }
.sales-tile-main { border-color: var(--gold-crayola); }
.sales-tile-main strong { color: var(--gold-crayola); }
.manage-heading { font-family: var(--fontFamily-forum); font-size: 2.4rem; color: var(--gold-crayola); margin: 32px 0 12px; font-weight: 400; }
.manage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.manage-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--eerie-black-2); border: 1px solid var(--white-alpha-10); color: var(--white); }
.manage-card strong { font-size: 1.8rem; }
.manage-card span { color: var(--quick-silver); font-size: 1.4rem; line-height: 1.5; }
.manage-card:hover, .manage-card:focus-visible { border-color: var(--gold-crayola); }

/* Sales: phone-first filters, tiles and cards; table only from tablet width up */

.sales-search { grid-column: 1 / -1; }

.sales-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
.sales-tile { padding: 10px 12px; min-width: 0; }
.sales-tile span { font-size: 1.1rem; }
.sales-tile strong { font-size: 2rem; overflow-wrap: anywhere; }
.sales-tile small { font-size: 1.2rem; }
.sales-tile-main { grid-column: 1 / -1; }
.sales-tile-main strong { font-size: 2.6rem; }
.sales-note { color: var(--quick-silver); font-size: 1.3rem; line-height: 1.5; margin: 4px 0 16px; }
.sale-cards { display: flex; flex-direction: column; gap: 8px; }
.sale-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--eerie-black-2); border: 1px solid var(--white-alpha-10); color: var(--white); }
.sale-card:hover, .sale-card:focus-visible { border-color: var(--gold-crayola); }
.sale-top { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; color: var(--quick-silver); }
.sale-when { flex: 1; }
.sale-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sale-who, .sale-amt { display: flex; flex-direction: column; min-width: 0; }
.sale-who strong { font-size: 1.6rem; overflow-wrap: anywhere; }
.sale-amt { text-align: right; flex: none; }
.sale-amt strong { font-size: 1.8rem; color: var(--gold-crayola); }
.sale-card small { color: var(--quick-silver); font-size: 1.2rem; line-height: 1.4; }
.sale-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 1.3rem; color: var(--quick-silver); }
.sale-card .admin-badge { margin: 0; }
.sale-table { display: none; }
@media (min-width: 768px) {
    
    
    .sales-search { grid-column: span 2; }
    
    .sales-tiles { grid-template-columns: repeat(4, 1fr); }
    .sales-tile-main { grid-column: auto; }
    .sale-cards { display: none; }
    .sale-table { display: block; }
}

.sales-tiles { grid-template-columns: repeat(3, 1fr); }
.sales-tile strong { font-size: 1.7rem; }
.sales-tile span { letter-spacing: 0.04em; }
@media (min-width: 768px) { .sales-tiles { grid-template-columns: repeat(4, 1fr); } .sales-tile strong { font-size: 2.6rem; } .sales-tile span { letter-spacing: 0.08em; } }

/* Keep top-menu labels on one line; give the Sales table room between columns */
@media (min-width: 1200px) { .header .navbar-link .span { white-space: nowrap; } }
.sale-table .admin-table th, .sale-table .admin-table td { padding-right: 18px; vertical-align: middle; }
.sale-table .admin-table td:first-child { white-space: nowrap; }
.sale-table .admin-table td:last-child { padding-right: 8px; }
.admin-page .sale-table .admin-table { table-layout: auto; width: 100%; }
.admin-page .sale-table .admin-table th, .admin-page .sale-table .admin-table td { padding-right: 22px !important; }
.admin-page .sale-table .admin-table td:last-child, .admin-page .sale-table .admin-table th:last-child { padding-right: 8px !important; }

/* Sales v2: one-tap period and type buttons, one compact search row, slimmer totals and rows */
.sales-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.sales-head .section-title { margin: 0; font-size: 3.2rem; }
.sales-chips { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sales-chips::-webkit-scrollbar { display: none; }
.sales-chip { flex: none; padding: 7px 16px; border: 1px solid var(--white-alpha-20); border-radius: 999px; color: var(--quick-silver); font-size: 1.35rem; line-height: 1.3; white-space: nowrap; }
.sales-chip:hover, .sales-chip:focus-visible { border-color: var(--gold-crayola); color: var(--white); }
.sales-chip.is-on { background: var(--gold-crayola); border-color: var(--gold-crayola); color: var(--on-gold); font-weight: 700; }
.sales-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 18px; }
.sales-bar .form-control, .sales-bar .form-select { width: auto; min-width: 0; height: 40px; min-height: 40px; padding-block: 0; font-size: 1.4rem; flex: 0 1 auto; }
.sales-bar .sales-search { flex: 1 1 240px; }
.sales-bar .form-select { flex: 0 1 150px; }
.sales-bar input[type=date] { flex: 0 1 150px; }
.sales-bar .admin-chip { height: 40px; padding: 0 18px; display: inline-flex; align-items: center; }
.sales-reset { color: var(--quick-silver); font-size: 1.3rem; text-decoration: underline; }
.sales-tiles { gap: 8px; }
.sales-tile { padding: 8px 14px; gap: 0; }
.sales-tile strong { font-size: 2.2rem; }
.sales-tile span, .sales-tile small { font-size: 1.15rem; }
.admin-page .sale-table .admin-table td { padding-top: 10px; padding-bottom: 10px; }
.admin-page .sale-table .admin-table th { padding-top: 10px; padding-bottom: 10px; font-size: 1.2rem; }
@media (max-width: 767px) { .sales-bar .form-select, .sales-bar input[type=date] { flex: 1 1 45%; } .sales-bar .admin-chip { flex: 1 1 auto; justify-content: center; } .sales-head .admin-chip { padding: 8px 14px; } }

.sales-tile strong { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 767px) { .sales-tile { padding: 8px 10px; } .sales-tile strong { font-size: 1.6rem; } .sales-tile-main strong { font-size: 2.4rem; } }

/* Notification count on the Manage tab: sits on the corner of the label instead of dropping below it */
.header .has-submenu > button.navbar-link { position: relative; }
.header .has-submenu > button.navbar-link > .nav-badge { position: absolute; top: -8px; right: -16px; margin: 0; min-width: 1.8rem; line-height: 1.8rem; font-size: 1.1rem; padding: 0 0.5rem; }
@media (max-width: 1199px) { .header .has-submenu > button.navbar-link > .nav-badge { position: static; display: inline-block; margin-left: 0.8rem; } }

/* Reservations list: one clear card per booking */
.res-list { display: flex; flex-direction: column; gap: 10px; }
.res-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px; background: var(--eerie-black-2); border: 1px solid var(--white-alpha-10); }
.res-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.res-when { display: flex; flex-direction: column; flex: 1 1 220px; }
.res-when strong { font-size: 1.8rem; }
.res-when span, .res-guest span { color: var(--quick-silver); font-size: 1.4rem; }
.res-party { font-size: 1.5rem; color: var(--white); }
.res-party strong { color: var(--gold-crayola); font-size: 2rem; }
.res-card .admin-badge { margin: 0; }
.res-guest { display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: baseline; }
.res-guest strong { font-size: 1.6rem; }
.res-note { margin: 0; color: var(--quick-silver); font-size: 1.4rem; }
.res-order { border-top: 1px solid var(--white-alpha-10); padding-top: 8px; }
.res-order > summary { cursor: pointer; color: var(--gold-crayola); font-size: 1.4rem; }
.res-order .admin-items { margin: 8px 0 0; }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--white-alpha-10); padding-top: 10px; }
.res-actions .admin-inline-form { margin: 0; }

/* Admin list screens: one consistent, compact filter row */
.admin-filter { gap: 8px; margin-bottom: 18px; }
.admin-filter .form-control, .admin-filter .form-select { height: 40px; min-height: 40px; padding-block: 0; font-size: 1.4rem; min-width: 0; }
.admin-filter input[type=text], .admin-filter input[type=search] { flex: 1 1 220px; }
.admin-filter .form-select { flex: 0 1 160px; }
.admin-filter input[type=date] { flex: 0 1 150px; }
.admin-filter .admin-chip { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; }
.res-actions .admin-quote-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.res-actions .admin-quote-form .admin-miles { width: 110px; flex: none; }

/* Home page Contact form: three even fields in a row (stacked on phones), readable hint text */
.reservation .input-wrapper.contact-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
.contact-field { min-width: 0; }
.contact-field .text-danger { display: block; margin-top: 4px; font-size: 1.3rem; }
.reservation-form .form-text { color: var(--quick-silver); }
@media (max-width: 991px) { .reservation .input-wrapper.contact-fields { grid-template-columns: 1fr; } }

/* Send test email page */
.test-result { padding: 16px 20px; margin-bottom: 24px; border: 1px solid var(--white-alpha-20); background: var(--eerie-black-2); }
.test-result h2 { font-family: var(--fontFamily-forum); font-size: 2.4rem; margin: 0 0 10px; }
.test-ok { border-color: #2e7d32; }
.test-ok h2 { color: #7bd88f; }
.test-bad { border-color: #e74c3c; }
.test-bad h2 { color: #ff8a80; }
.test-result dl, .test-config { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.test-result dt, .test-config dt { color: var(--quick-silver); font-weight: normal; }
.test-result dd, .test-config dd { margin: 0; overflow-wrap: anywhere; }
.test-result ul { margin: 0 0 12px; padding-left: 20px; }

/* Readable hint text on admin forms */
.admin-page .form-text, .admin-page .form-check-label { color: var(--quick-silver); }
.admin-page .form-check-label { color: var(--white); }

.test-sub { font-size: 1.5rem; color: var(--gold-crayola); margin: 12px 0 6px; font-weight: 700; }

/* ===== Cart: order summary ===== */
.cart-order-panel { background: linear-gradient(180deg, var(--eerie-black-2), var(--eerie-black-3)); border-color: hsla(38, 61%, 73%, 0.25); }
.oc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.oc-head .checkout-panel-title { margin: 0; }
.oc-count { padding: 4px 14px; border: 1px solid hsla(38, 61%, 73%, 0.45); border-radius: 999px; color: var(--gold-crayola); font-size: 1.3rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.oc-list { list-style: none; margin: 8px 0 0; padding: 0; }
.oc-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--white-alpha-10); }
.oc-line:last-child { border-bottom: 0; }
.oc-photo { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--eerie-black-4); border: 1px solid var(--white-alpha-10); display: grid; place-items: center; color: hsla(38, 61%, 73%, 0.55); font-size: 3rem; }
.oc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oc-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.oc-name { font-family: var(--fontFamily-forum); font-size: 2.1rem; line-height: 1.25; color: var(--white); overflow-wrap: anywhere; }
.oc-each { color: var(--quick-silver); font-size: 1.4rem; }
.oc-qty { display: inline-flex; align-items: stretch; margin-top: 8px; border: 1px solid hsla(38, 61%, 73%, 0.5); border-radius: 999px; overflow: hidden; }
.oc-qty a { display: grid; place-items: center; width: 36px; height: 34px; color: var(--gold-crayola); font-size: 1.9rem; line-height: 1; transition: background-color 0.2s ease, color 0.2s ease; }
.oc-qty a:hover, .oc-qty a:focus-visible { background: var(--gold-crayola); color: var(--on-gold); }
.oc-qty-val { display: grid; place-items: center; min-width: 34px; color: var(--white); font-weight: 700; font-size: 1.6rem; }
.oc-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; gap: 10px; }
.oc-total { font-size: 2rem; font-weight: 700; color: var(--gold-crayola); white-space: nowrap; }
.oc-remove { display: inline-flex; align-items: center; gap: 6px; color: var(--quick-silver); font-size: 1.3rem; transition: color 0.2s ease; }
.oc-remove:hover, .oc-remove:focus-visible { color: #ff8a80; }
.oc-remove ion-icon { font-size: 1.7rem; }
.oc-summary { margin-top: 8px; padding: 18px 20px; background: hsla(38, 61%, 73%, 0.06); border: 1px solid hsla(38, 61%, 73%, 0.25); border-radius: 12px; }
.oc-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 1.5rem; color: var(--white); }
.oc-muted { color: var(--quick-silver); }
.oc-grand { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; padding-top: 14px; border-top: 1px solid hsla(38, 61%, 73%, 0.35); }
.oc-grand span { font-family: var(--fontFamily-forum); font-size: 2.2rem; color: var(--white); }
.oc-grand strong { font-size: 3rem; line-height: 1; color: var(--gold-crayola); }
.oc-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; color: var(--quick-silver); font-size: 1.3rem; line-height: 1.5; }
.oc-note ion-icon { flex: none; margin-top: 2px; font-size: 1.6rem; color: var(--gold-crayola); }
@media (max-width: 575px) {
    .oc-line { grid-template-columns: 64px minmax(0, 1fr); }
    .oc-photo { width: 64px; height: 64px; }
    .oc-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-left: 80px; }
    .oc-name { font-size: 1.9rem; }
}

/* ===== Admin: Dine-in tables (compact add forms and one row per table) ===== */
.tb-add { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 8px; }
.tb-card { padding: 16px 18px 18px; background: var(--eerie-black-2); border: 1px solid var(--white-alpha-10); }
.tb-card h2 { margin: 0 0 12px; font-family: var(--fontFamily-forum); font-size: 2.2rem; font-weight: 400; color: var(--gold-crayola); }
.tb-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.tb-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tb-field > span { font-size: 1.2rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quick-silver); }
.tb-grow { flex: 1 1 200px; }
.tb-narrow { flex: 0 0 96px; }
.tb-input { width: 100%; height: 42px; padding: 0 12px; background: var(--eerie-black-3); border: 1px solid var(--white-alpha-20); color: var(--white); font-size: 1.5rem; border-radius: 0; }
.tb-input:focus { outline: none; border-color: var(--gold-crayola); box-shadow: 0 0 0 1px var(--gold-crayola); }
.tb-input::placeholder { color: var(--davys-grey); }
.tb-btn { height: 42px; padding: 0 22px; background: transparent; border: 1px solid var(--gold-crayola); color: var(--gold-crayola); font-size: 1.3rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.tb-btn:hover, .tb-btn:focus-visible { background: var(--gold-crayola); color: var(--on-gold); }
.tb-btn:disabled { opacity: 0.5; cursor: wait; }
.tb-del { border-color: transparent; color: var(--quick-silver); padding: 0 12px; }
.tb-del:hover, .tb-del:focus-visible { background: #e74c3c; border-color: #e74c3c; color: #fff; }

.tb-list { border: 1px solid var(--white-alpha-10); background: var(--eerie-black-2); }
.tb-row { display: grid; grid-template-columns: minmax(150px, 1fr) 96px 110px 130px 90px 90px; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--white-alpha-10); }
.tb-row:last-child { border-bottom: 0; }
.tb-contents { display: contents; }
.tb-header { padding-block: 12px; background: var(--eerie-black-3); font-size: 1.2rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-crayola); }
.tb-cap { display: none; }
.tb-row.is-off .tb-input { opacity: 0.55; }
.tb-row.is-off { background: hsla(0, 0%, 100%, 0.02); }

.tb-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.tb-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tb-track { position: relative; width: 42px; height: 24px; flex: none; border-radius: 999px; background: var(--eerie-black-4); border: 1px solid var(--white-alpha-20); transition: background-color 0.2s ease; }
.tb-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--quick-silver); transition: transform 0.2s ease, background-color 0.2s ease; }
.tb-switch input:checked + .tb-track { background: hsla(38, 61%, 73%, 0.25); border-color: var(--gold-crayola); }
.tb-switch input:checked + .tb-track::after { transform: translateX(18px); background: var(--gold-crayola); }
.tb-switch input:focus-visible + .tb-track { outline: 2px solid var(--gold-crayola); outline-offset: 2px; }
.tb-switch-text { font-size: 1.4rem; color: var(--white); min-width: 52px; }

@media (min-width: 992px) {
    .tb-add { grid-template-columns: 5fr 7fr; }
}

@media (max-width: 767px) {
    .tb-header { display: none; }
    .tb-row { grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px; }
    .tb-row .tb-field:first-of-type { grid-column: 1 / -1; }
    .tb-cap { display: block; font-size: 1.2rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quick-silver); }
    .tb-switch { grid-column: 1 / -1; }
    .tb-save { grid-column: 1; }
    .tb-del { grid-column: 2; }
    .tb-row .tb-btn { width: 100%; }
}

.tb-btn { white-space: nowrap; }
.tb-row { grid-template-columns: minmax(150px, 1fr) 96px 110px 130px 90px 104px; }
@media (max-width: 767px) { .tb-row { grid-template-columns: 1fr 1fr; } }

/* ===== Note choices and Staff accounts (same look as Tables) ===== */
select.tb-input { appearance: auto; padding-right: 8px; }
.tb-note { grid-template-columns: minmax(140px, 1fr) minmax(160px, 240px) 96px 130px 90px 104px; }
@media (max-width: 767px) { .tb-note { grid-template-columns: 1fr 1fr; } }

.sf-new { margin-bottom: 8px; display: flex; flex-direction: column; gap: 14px; }
.sf-new .tb-btn { align-self: flex-start; }
.sf-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-role { position: relative; display: block; cursor: pointer; }
.sf-role input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sf-role-box { display: flex; flex-direction: column; gap: 1px; min-width: 150px; padding: 9px 14px; background: var(--eerie-black-3); border: 1px solid var(--white-alpha-20); color: var(--white); transition: border-color 0.2s ease, background-color 0.2s ease; }
.sf-role-box strong { font-size: 1.5rem; }
.sf-role-box small { font-size: 1.2rem; color: var(--quick-silver); }
.sf-role input:checked + .sf-role-box { border-color: var(--gold-crayola); background: hsla(38, 61%, 73%, 0.14); }
.sf-role input:checked + .sf-role-box strong::before { content: "\2713\00a0"; color: var(--gold-crayola); }
.sf-role input:focus-visible + .sf-role-box { outline: 2px solid var(--gold-crayola); outline-offset: 2px; }
.sf-roles-small .sf-role-box { min-width: 0; padding: 7px 14px; }

.sf-list { display: flex; flex-direction: column; gap: 12px; }
.sf-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.sf-head strong { font-size: 1.8rem; overflow-wrap: anywhere; }
.sf-head form { margin: 0; }
.sf-forms { display: grid; grid-template-columns: 1fr; gap: 14px; }
.sf-block { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; padding: 12px 14px; background: var(--eerie-black-3); border: 1px solid var(--white-alpha-10); }
.sf-label { font-size: 1.2rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quick-silver); }
.sf-pass { flex: 1 1 200px; min-width: 0; }
.sf-block .tb-fields { width: 100%; align-items: center; }
@media (min-width: 992px) { .sf-forms { grid-template-columns: 1fr 1fr; } }

/* The site's base styles make every span fill a line; keep the item count beside the category name */
.menu-cat > summary .staff-muted { display: inline; margin-left: 6px; }

.tb-add.tb-add-one { grid-template-columns: 1fr; }
.tb-note { grid-template-columns: minmax(140px, 1fr) minmax(160px, 240px) 110px 130px 90px 104px; }
@media (max-width: 767px) { .tb-note { grid-template-columns: 1fr 1fr; } }

/* ===== Inline confirmation (replaces the browser pop-up window) ===== */
.ic-pop { position: fixed; z-index: 2000; padding: 14px 16px; background: var(--eerie-black-2, #1b1c1d); border: 1px solid #e74c3c; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6); color: var(--white, #fff); font-family: var(--fontFamily-dm_sans, sans-serif); animation: ic-in 0.12s ease-out; }
.ic-pop::before { content: ""; position: absolute; top: -7px; left: 22px; width: 12px; height: 12px; background: inherit; border-left: 1px solid #e74c3c; border-top: 1px solid #e74c3c; transform: rotate(45deg); }
.ic-text { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: var(--white, #fff); }
.ic-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ic-actions button { flex: 1 1 auto; min-height: 42px; padding: 0 16px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; border: 1px solid transparent; }
.ic-yes { background: #e74c3c; border-color: #e74c3c; color: #fff; font-weight: 700; }
.ic-yes:hover, .ic-yes:focus-visible { background: #c0392b; border-color: #c0392b; }
.ic-no { background: transparent; border-color: var(--white-alpha-20, rgba(255, 255, 255, 0.25)); color: var(--white, #fff); }
.ic-no:hover, .ic-no:focus-visible { border-color: var(--gold-crayola, #e3c08d); color: var(--gold-crayola, #e3c08d); }
.ic-actions button:focus-visible { outline: 2px solid var(--gold-crayola, #e3c08d); outline-offset: 2px; }
@keyframes ic-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ic-pop { animation: none; } }

.ic-pop.ic-above::before { top: auto; bottom: -7px; transform: rotate(225deg); }

/* Manage count: sits inline right after the word, before the arrow (replaces the floating corner badge) */
.header .has-submenu > button.navbar-link .nav-badge { position: static; display: inline-block; margin: 0 0 0 8px; vertical-align: middle; transform: translateY(-1px); min-width: 1.9rem; line-height: 1.9rem; font-size: 1.15rem; padding: 0 0.55rem; }

/* Friendly error page */
.error-page { padding-block: 200px 120px; text-align: center; }
.error-code { font-family: var(--fontFamily-forum); font-size: 9rem; line-height: 1; color: var(--gold-crayola); opacity: 0.85; margin: 0; }
.error-title { font-family: var(--fontFamily-forum); font-size: 4rem; font-weight: 400; color: var(--white); margin: 8px 0 14px; }
.error-text { max-width: 56rem; margin: 0 auto 28px; font-size: 1.7rem; line-height: 1.7; color: var(--quick-silver); }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.error-ref { margin-top: 36px; font-size: 1.3rem; color: var(--davys-grey, #888); }
.error-ref code { color: var(--quick-silver); }
@media (max-width: 575px) { .error-page { padding-block: 150px 80px; } .error-code { font-size: 7rem; } .error-title { font-size: 3rem; } }

/* ---- Site options screen --------------------------------------------------------------- */
.site-options { max-width: 720px; margin-block: 20px 30px; }
.site-option { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-block-end: 12px; background: var(--eerie-black-2); border: 1px solid var(--white-alpha-10); }
.site-option .form-check-input { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.site-option label { display: block; cursor: pointer; }
.site-option label strong { display: block; font-size: 1.7rem; color: var(--white); }
.site-option label span { display: block; margin-top: 4px; font-size: 1.4rem; color: var(--quick-silver); line-height: 1.5; }

/* ---- Pick-several bar (Orders and Sales) ------------------------------------------------ */
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-block: 0 14px; padding: 12px 14px; background: var(--eerie-black-2); border: 1px solid var(--white-alpha-10); position: sticky; top: 0; z-index: 5; }
.bulk-bar .bulk-note { color: var(--quick-silver); font-size: 1.4rem; }
.bulk-pick { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; font-size: 1.4rem; }
.bulk-check { width: 20px; height: 20px; cursor: pointer; }
.bulk-bar .btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.order-pick { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
.order-pick strong { display: inline; }
.bulk-bar { position: static; margin-block: 0 18px; }
.bulk-bar .btn, .bulk-bar .btn span { display: inline; white-space: nowrap; }
.bulk-bar .btn-primary { background-color: var(--gold-crayola); border-color: var(--gold-crayola); color: var(--on-gold); }
.bulk-bar .btn-primary:disabled { background-color: var(--gold-crayola); border-color: var(--gold-crayola); color: var(--on-gold); opacity: 0.4; }
@media (max-width: 767.98px) {
    .bulk-bar { flex-direction: column; align-items: stretch; }
    .bulk-bar .btn { display: block; text-align: center; }
    .bulk-bar .admin-chip { text-align: center; }
}
.bulk-bar .btn { min-width: 0; width: auto; margin: 0; padding: 12px 22px; }
.bulk-bar .bulk-note { flex-basis: 100%; }
@media (max-width: 767.98px) { .bulk-bar .btn { width: 100%; } }
