[x-cloak] { display: none !important; }

/* Brand logo */
.site-logo-link {
    line-height: 0;
}

.site-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 2.75rem;
    object-fit: contain;
}

.site-logo--footer {
    max-height: 1.65rem;
    margin-bottom: 0.35rem;
    opacity: 0.95;
}

/* Site footer — compact enterprise */
.site-footer {
    margin-top: 4rem;
    background: linear-gradient(180deg, #1c1917 0%, #171412 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(250, 250, 249, 0.88);
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
}

.site-footer__inner {
    padding-top: 1.5rem;
    padding-bottom: 1.25rem;
}

.site-footer__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem 2rem;
}

@media (min-width: 768px) {
    .site-footer__row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }
}

.site-footer__brand {
    flex-shrink: 0;
    min-width: 0;
}

.site-footer__tagline {
    margin: 0;
    max-width: 14rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgba(250, 250, 249, 0.42);
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.25rem;
}

@media (min-width: 768px) {
    .site-footer__nav {
        flex: 1;
        justify-content: center;
        padding: 0 1rem;
    }
}

.site-footer__link {
    color: rgba(250, 250, 249, 0.55);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.site-footer__link:hover {
    color: #fbbf24;
    opacity: 1;
}

.site-footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    text-align: left;
}

@media (min-width: 768px) {
    .site-footer__contact {
        align-items: flex-end;
        text-align: right;
        flex-shrink: 0;
    }
}

.site-footer__contact-link {
    color: rgba(250, 250, 249, 0.5);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
}

.site-footer__contact-link:hover {
    color: rgba(251, 191, 36, 0.95);
    opacity: 1;
}

.site-footer__bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
    .site-footer__bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.site-footer__copy,
.site-footer__version {
    margin: 0;
    font-size: 0.6875rem;
    color: rgba(250, 250, 249, 0.32);
    line-height: 1.4;
}

.site-footer__version {
    font-variant-numeric: tabular-nums;
}

.site-logo--auth {
    max-height: 4rem;
    margin-left: auto;
    margin-right: auto;
}

.site-logo--admin {
    max-height: 2.5rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.admin-nav-section {
    padding-top: 0.65rem;
}

.admin-nav-section:first-child {
    padding-top: 0;
}

.admin-nav-section--account {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-nav-section__title {
    margin: 0 0 0.35rem;
    padding: 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.3;
}

.admin-nav-section__items {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.admin-nav-link {
    display: block;
    padding: 0.45rem 0.75rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.88);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-nav-link--active {
    background: rgba(222, 92, 8, 0.35);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #de5c08;
}

.admin-nav-link--logout {
    color: #fca5a5;
}

.admin-nav-link--logout:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fecaca;
}

body { padding-bottom: env(safe-area-inset-bottom); }

@media (max-width: 768px) {
    body:has(.fixed.bottom-0) main { padding-bottom: 5rem; }
}

:focus-visible {
    outline: 2px solid #de5c08;
    outline-offset: 2px;
}

.prose a { color: #de5c08; }

/* Login method tabs */
.login-method-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    padding: 0.25rem;
    background: #faf8f5;
    border-radius: 9999px;
    border: 1px solid #f5f0e8;
}

.login-method-tabs__btn {
    padding: 0.55rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(41, 37, 36, 0.65);
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.login-method-tabs__btn--active {
    background: #fff;
    color: #de5c08;
    box-shadow: 0 1px 4px rgba(41, 37, 36, 0.08);
}

.login-panel.hidden {
    display: none;
}

.login-method-tabs--auth {
    margin-bottom: 0.25rem;
}

.auth-inline-message {
    font-size: 0.875rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
}

.auth-inline-message.message-box.is-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-inline-message.message-box.is-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Country phone picker (register, login) */
.country-phone-field {
    position: relative;
}

.country-picker-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #f5f0e8;
    border-radius: 0.75rem;
    background: #faf8f5;
    color: #1f1a14;
    cursor: pointer;
    min-width: 7.25rem;
    flex-shrink: 0;
}

.country-picker-flag {
    font-size: 1.35rem;
    line-height: 1;
}

.country-picker-dial {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f1a14;
    min-width: 2.25rem;
}

.country-picker-chevron {
    flex-shrink: 0;
    opacity: 0.55;
    margin-left: 0.1rem;
}

.country-picker-trigger:hover {
    border-color: #de5c08;
}

.country-picker-dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 50;
    background: #fff;
    border: 1px solid #f5f0e8;
    border-radius: 0.75rem;
    box-shadow: 0 12px 40px rgba(31, 26, 20, 0.12);
    overflow: hidden;
}

.country-picker-dropdown.is-open {
    display: block;
}

.country-picker-search {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: none;
    border-bottom: 1px solid #f5f0e8;
    font-size: 0.9rem;
    outline: none;
}

.country-picker-search:focus {
    background: #fef7ee;
}

.country-picker-list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    max-height: 14rem;
    overflow-y: auto;
}

.country-picker-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: #1f1a14;
}

.country-picker-option-flag {
    font-size: 1.15rem;
    width: 1.5rem;
    text-align: center;
}

.country-picker-option-name {
    flex: 1;
    text-align: left;
}

.country-picker-option-dial {
    font-weight: 600;
    color: #6b5d4f;
}

.country-picker-empty {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #6b5d4f;
}

.country-picker-option:hover,
.country-picker-option.is-selected {
    background: #fef7ee;
}

.verify-otp-btn {
    background: #1f1a14;
    color: #fff;
}

.message-box.is-success {
    color: #15803d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

/* Admin forms — labels always above fields */
.admin-form .form-field,
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0;
}

.admin-form .form-field label,
.form-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3d3428;
    line-height: 1.3;
}

/* Visible form fields — overrides Tailwind preflight (border-width: 0) */
.field-input,
.admin-input,
input.field-input,
textarea.field-input,
select.field-input,
input[type="text"]:not(.sr-only),
input[type="email"]:not(.sr-only),
input[type="password"]:not(.sr-only),
input[type="number"]:not(.sr-only),
input[type="tel"]:not(.sr-only),
input[type="url"]:not(.sr-only),
input[type="search"]:not(.sr-only),
input[type="date"]:not(.sr-only),
input[type="datetime-local"]:not(.sr-only),
textarea:not(.sr-only),
select:not(.sr-only) {
    width: 100%;
    padding: 0.625rem 0.875rem !important;
    border: 1px solid #b8a99a !important;
    border-radius: 0.5rem !important;
    font-size: 1rem !important;
    background-color: #ffffff !important;
    color: #1f1a14 !important;
    box-shadow: inset 0 1px 2px rgba(31, 26, 20, 0.04) !important;
    -webkit-appearance: none;
    appearance: none;
}

textarea.field-input,
textarea:not(.sr-only) {
    min-height: 5rem;
    resize: vertical;
}

.field-input::placeholder,
.admin-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: #8a7b6c !important;
    opacity: 1 !important;
}

.field-input:hover,
.admin-input:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="search"]:hover,
input[type="date"]:hover,
textarea:hover,
select:hover {
    border-color: #9a8b7c !important;
}

.field-input:focus,
.admin-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: #de5c08 !important;
    box-shadow: 0 0 0 3px rgba(222, 92, 8, 0.2) !important;
    background-color: #ffffff !important;
}

/* Checkboxes / radios stay native */
input[type="checkbox"],
input[type="radio"] {
    width: auto !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.meal-type-locked {
    opacity: 0.85;
    cursor: not-allowed;
}

.meal-type-locked span {
    font-weight: 600;
}

.message-box.is-error {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

/* Register buttons */
.btn-register-outline {
    border: 2px solid #de5c08;
    color: #de5c08;
    background: #fff;
}

.btn-register-primary {
    background: #de5c08;
    color: #fff;
}

/* Admin delivery list — meal window picker */
.meal-window-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.meal-window-option:hover {
    border-color: #fdba74;
    background: #fffbeb;
}

.meal-window-option--selected {
    border-color: #de5c08;
    background: #fef7ee;
    color: #772e10;
    box-shadow: 0 0 0 1px #de5c08;
}

.meal-window-option--selected:hover {
    border-color: #c2410c;
    background: #ffedd5;
}

/* Subscription detail — delivery tabs */
.delivery-tab {
    color: rgba(41, 37, 36, 0.7);
    background: transparent;
}

.delivery-tab:hover {
    color: #292524;
}

.delivery-tab--active {
    background: #fff;
    color: #772e10;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Subscriptions dashboard */
.sub-dashboard__header {
    background: linear-gradient(135deg, #fff 0%, #fef7ee 55%, #fff8f0 100%);
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(222, 92, 8, 0.08);
    box-shadow: 0 4px 24px rgba(41, 37, 36, 0.04);
}

.sub-dashboard__header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.sub-dashboard__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #de5c08;
    margin-bottom: 0.25rem;
}

.sub-dashboard__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #292524;
    line-height: 1.15;
}

.sub-dashboard__subtitle {
    margin-top: 0.35rem;
    font-size: 0.9375rem;
    color: rgba(41, 37, 36, 0.65);
}

.sub-dashboard__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
}

.sub-add-sub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #de5c08;
    background: #fff;
    border: 2px solid rgba(222, 92, 8, 0.35);
    box-shadow: 0 2px 8px rgba(41, 37, 36, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.sub-add-sub-btn:hover {
    transform: translateY(-1px);
    border-color: #de5c08;
    background: #fff8f0;
}

.sub-add-sub-btn--block {
    width: 100%;
    max-width: 20rem;
}

.sub-add-sub-btn--mobile {
    position: fixed;
    bottom: 4.75rem;
    left: 1rem;
    right: 1rem;
    z-index: 40;
    max-width: 24rem;
    margin: 0 auto;
}

.sub-dashboard__bottom-cta {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 0.25rem;
}

.sub-calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #e86a10 0%, #de5c08 50%, #c2410c 100%);
    box-shadow: 0 4px 14px rgba(222, 92, 8, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sub-calendar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(222, 92, 8, 0.4);
}

.sub-calendar-btn--mobile {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 40;
    justify-content: center;
    max-width: 24rem;
    margin: 0 auto;
}

.sub-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .sub-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.sub-stat-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(41, 37, 36, 0.06);
    box-shadow: 0 2px 12px rgba(41, 37, 36, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sub-stat-card:hover {
    box-shadow: 0 8px 24px rgba(41, 37, 36, 0.07);
    transform: translateY(-2px);
}

.sub-stat-card--highlight {
    background: linear-gradient(145deg, #fff 0%, #fff5eb 100%);
    border-color: rgba(222, 92, 8, 0.15);
}

.sub-stat-card__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(41, 37, 36, 0.55);
    margin-bottom: 0.25rem;
}

.sub-stat-card__value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #292524;
    line-height: 1.2;
}

.sub-stat-card--highlight .sub-stat-card__value {
    color: #c2410c;
}

.sub-panel {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid rgba(41, 37, 36, 0.06);
    box-shadow: 0 4px 28px rgba(41, 37, 36, 0.05);
    overflow: visible;
}

.sub-tabs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.65rem;
    background: #faf8f6;
    border-bottom: 1px solid rgba(41, 37, 36, 0.06);
}

.sub-tabs__btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(41, 37, 36, 0.6);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sub-tabs__btn:hover {
    color: #292524;
}

.sub-tabs__btn--active {
    color: #772e10;
}

.sub-tabs__icon {
    font-size: 0.9rem;
    line-height: 1;
}

.sub-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    background: rgba(41, 37, 36, 0.08);
    color: inherit;
}

.sub-tabs__btn--active .sub-tabs__count {
    background: rgba(222, 92, 8, 0.15);
}

.sub-tabs__indicator {
    position: absolute;
    bottom: 0.65rem;
    left: 0.65rem;
    height: calc(100% - 1.3rem);
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(41, 37, 36, 0.08);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sub-panel__body {
    min-height: 10rem;
    overflow: visible;
    border-radius: 0 0 1.25rem 1.25rem;
}

.sub-panel__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1.5rem;
    color: rgba(41, 37, 36, 0.5);
    font-size: 0.875rem;
}

.sub-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid rgba(222, 92, 8, 0.2);
    border-top-color: #de5c08;
    border-radius: 50%;
    animation: sub-spin 0.7s linear infinite;
}

@keyframes sub-spin {
    to { transform: rotate(360deg); }
}

.sub-panel__content {
    padding: 1rem;
    overflow: visible;
}

@media (min-width: 640px) {
    .sub-panel__content {
        padding: 1.25rem 1.5rem 1.5rem;
    }
}

.sub-panel__error {
    margin: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.875rem;
}

.sub-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: visible;
}

.sub-card {
    position: relative;
    z-index: 0;
    border-radius: 1.125rem;
    border: 1px solid rgba(41, 37, 36, 0.07);
    background: #fff;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 2px 16px rgba(41, 37, 36, 0.04);
    overflow: visible;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sub-card:has(.sub-menu:not([hidden])) {
    z-index: 30;
}

.sub-card:hover {
    transform: translateY(-3px);
    border-color: rgba(222, 92, 8, 0.18);
    box-shadow: 0 12px 32px rgba(222, 92, 8, 0.1), 0 4px 12px rgba(41, 37, 36, 0.06);
}

.sub-card__grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .sub-card__grid {
        grid-template-columns: 1fr minmax(10rem, 12rem) auto;
        align-items: start;
        gap: 1.5rem;
    }
}

.sub-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.sub-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #292524;
    line-height: 1.25;
}

.sub-card__meal {
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    color: rgba(41, 37, 36, 0.65);
}

.sub-badge {
    flex-shrink: 0;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sub-badge--active { background: #dcfce7; color: #166534; }
.sub-badge--paused { background: #fef3c7; color: #92400e; }
.sub-badge--pending { background: #f3f4f6; color: #4b5563; }
.sub-badge--expired { background: #fee2e2; color: #991b1b; }
.sub-badge--cancelled { background: #f5f5f4; color: #78716c; }
.sub-badge--default { background: #f5f5f4; color: #57534e; }

.sub-card__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 0.75rem;
}

.sub-metric__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #de5c08;
    line-height: 1;
}

.sub-metric__label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(41, 37, 36, 0.45);
}

.sub-metric__text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #292524;
}

.sub-card__meta {
    font-size: 0.8125rem;
    color: rgba(41, 37, 36, 0.6);
    line-height: 1.6;
}

.sub-card__meta li + li {
    margin-top: 0.15rem;
}

.sub-card__next strong {
    color: #292524;
    font-weight: 600;
}

.sub-card__urgency {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #c2410c;
}

.sub-card__savings {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #15803d;
}

.sub-card__streak {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ea580c;
}

.sub-card__today {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #166534;
}

.sub-progress__header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(41, 37, 36, 0.55);
    margin-bottom: 0.4rem;
}

.sub-progress__pct {
    color: #de5c08;
}

.sub-progress__track {
    height: 0.5rem;
    border-radius: 9999px;
    background: #f5f0eb;
    overflow: hidden;
}

.sub-progress__fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #fbbf24 0%, #de5c08 100%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-progress__detail {
    margin-top: 0.4rem;
    font-size: 0.6875rem;
    color: rgba(41, 37, 36, 0.5);
}

.sub-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 9.5rem;
}

@media (max-width: 767px) {
    .sub-card__actions {
        flex-direction: row;
        min-width: 0;
    }
    .sub-card__actions .sub-btn--block {
        flex: 1;
    }
}

.sub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.sub-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #e86a10, #de5c08);
    box-shadow: 0 2px 10px rgba(222, 92, 8, 0.25);
}

.sub-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(222, 92, 8, 0.35);
}

.sub-btn--block {
    width: 100%;
}

.sub-card__menu-wrap {
    position: relative;
    overflow: visible;
}

.sub-menu-trigger {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(41, 37, 36, 0.1);
    background: #faf8f6;
    font-size: 1.25rem;
    line-height: 1;
    color: #57534e;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.sub-menu-trigger:hover {
    background: #fff;
    border-color: rgba(222, 92, 8, 0.25);
}

.sub-menu {
    position: absolute;
    bottom: calc(100% + 0.35rem);
    top: auto;
    right: 0;
    z-index: 50;
    min-width: 11.5rem;
    padding: 0.35rem;
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid rgba(41, 37, 36, 0.08);
    box-shadow: 0 12px 32px rgba(41, 37, 36, 0.15);
}

.sub-menu.sub-menu--below {
    bottom: auto;
    top: calc(100% + 0.35rem);
}

.sub-menu__item {
    display: block;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #292524;
    text-align: left;
    transition: background 0.15s ease;
}

a.sub-menu__item:hover {
    background: #fef7ee;
    color: #c2410c;
}

.sub-menu__item--disabled {
    color: rgba(41, 37, 36, 0.35);
    cursor: not-allowed;
}

.sub-empty-state,
.sub-empty-hero {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.sub-empty-hero {
    background: linear-gradient(180deg, #fff 0%, #fef7ee 100%);
    border-radius: 1.25rem;
    border: 1px dashed rgba(222, 92, 8, 0.2);
    padding: 3rem 1.5rem;
}

.sub-empty-hero__icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.sub-empty-state__title {
    font-weight: 600;
    color: #292524;
}

.sub-empty-state__text {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: rgba(41, 37, 36, 0.55);
}

/* Meal calendar */
.meal-calendar-grid {
    display: flex;
    flex-direction: column;
}

.meal-calendar-weekdays,
.meal-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.meal-calendar-weekday {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b5d4f;
    background: #faf8f5;
    border-bottom: 1px solid #f5f0e8;
}

.meal-calendar-day {
    min-height: 5.5rem;
    padding: 0.35rem;
    border-right: 1px solid #f5f0e8;
    border-bottom: 1px solid #f5f0e8;
    vertical-align: top;
}

.meal-calendar-day--muted {
    background: #faf8f5;
    opacity: 0.55;
}

.meal-calendar-day--today {
    background: #fef7ee;
    box-shadow: inset 0 0 0 2px #de5c08;
}

.meal-calendar-day-num {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #3d3428;
    margin-bottom: 0.25rem;
}

.meal-calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meal-cal-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.meal-cal-dot--scheduled { background: #de5c08; }
.meal-cal-dot--delivered { background: #16a34a; }
.meal-cal-dot--skipped { background: #d97706; }
.meal-cal-dot--cancelled { background: #9ca3af; }

.meal-cal-pill-sample {
    display: inline-block;
    width: 2.5rem;
    height: 1.1rem;
    border-radius: 4px;
    vertical-align: middle;
}

.meal-cal-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-size: 0.625rem;
    line-height: 1.2;
    padding: 2px 5px;
    border-radius: 4px;
    max-width: 100%;
    border: 1px solid transparent;
}

.meal-cal-pill-main {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.meal-cal-pill-sub {
    font-weight: 500;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 0.55rem;
}

.meal-cal-pill--scheduled {
    background: #fef7ee;
    color: #772e10;
    border-color: #fcd9b8;
}

.meal-cal-pill--plan {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fdba74;
}

.meal-cal-pill--paused {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.meal-cal-pill--paused .meal-cal-pill-main {
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.meal-cal-pill--delivered {
    background: #f0fdf4;
    color: #166534;
    border-color: #86efac;
}

.meal-cal-pill--cancelled {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #d1d5db;
}

.meal-cal-pill--inline {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    padding: 0.15rem 0.5rem;
}

.meal-cal-more {
    font-size: 0.6rem;
    color: #6b5d4f;
    font-weight: 600;
}

.meal-cal-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.meal-cal-status--scheduled { background: #fef7ee; color: #b84409; }
.meal-cal-status--plan { background: #fff7ed; color: #c2410c; }
.meal-cal-status--delivered { background: #f0fdf4; color: #15803d; }
.meal-cal-status--skipped { background: #fffbeb; color: #b45309; }
.meal-cal-status--cancelled { background: #f3f4f6; color: #6b7280; }

@media (max-width: 640px) {
    .meal-calendar-day { min-height: 4.5rem; }
    .meal-cal-pill-sub { display: none; }
}

/* CMS content pages (FAQ, Privacy, Terms, etc.) */
.content-page-body {
    color: rgba(45, 35, 28, 0.88);
    line-height: 1.7;
}

.content-page-body p {
    margin-bottom: 1rem;
}

.content-page-body h2,
.content-page-body h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    color: #2d231c;
    margin: 1.75rem 0 0.75rem;
}

.content-page-body ul,
.content-page-body ol {
    margin: 0 0 1rem 1.25rem;
}

.content-page-body a {
    color: #b84409;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-page-body--faq details,
.content-page-body details.content-faq-item,
.content-page-body details {
    margin-bottom: 1rem;
    border: 1px solid #e8dfd4;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fff;
}

.content-page-body--faq summary,
.content-page-body details summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.content-page-body--faq summary::-webkit-details-marker,
.content-page-body details summary::-webkit-details-marker {
    display: none;
}

.content-page-body--faq details[open] summary,
.content-page-body details[open] summary {
    margin-bottom: 0.5rem;
}

.content-page-body--faq details p,
.content-page-body details p {
    margin: 0.5rem 0 0;
    color: rgba(45, 35, 28, 0.75);
}

/* Admin: delivery locations sortable list */
.delivery-loc-drag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    color: #9ca3af;
    font-size: 1rem;
    cursor: grab;
    user-select: none;
    border-radius: 0.375rem;
}

.delivery-loc-drag:active {
    cursor: grabbing;
}

.delivery-loc-row--dragging {
    opacity: 0.55;
    background: #fff8f0;
}

.delivery-loc-row--over {
    background: #fef7ee;
}

.delivery-loc-row--inactive {
    opacity: 0.55;
    background: #f9fafb;
}

.delivery-loc-row--inactive .field-input {
    background: #f3f4f6;
}

.delivery-loc-move-btns {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.delivery-loc-move-btn {
    width: 1.75rem;
    height: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background: #fff;
    color: #4b5563;
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
}

.delivery-loc-move-btn:hover {
    border-color: #de5c08;
    color: #de5c08;
    background: #fff8f0;
}

.delivery-loc-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.delivery-loc-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.delivery-loc-toggle__track {
    width: 2.5rem;
    height: 1.35rem;
    background: #d1d5db;
    border-radius: 9999px;
    transition: background 0.2s ease;
    position: relative;
}

.delivery-loc-toggle__track::after {
    content: '';
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1.05rem;
    height: 1.05rem;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.delivery-loc-toggle input:checked + .delivery-loc-toggle__track {
    background: #16a34a;
}

.delivery-loc-toggle input:checked + .delivery-loc-toggle__track::after {
    transform: translateX(1.15rem);
}

.delivery-loc-toggle input:focus-visible + .delivery-loc-toggle__track {
    outline: 2px solid #de5c08;
    outline-offset: 2px;
}
