:root {
    --color-primary: #1a472a;
    --color-primary-light: #2d6a4f;
    --color-primary-dark: #0f2e1a;
    --color-accent: #c1121f;
    --color-gold: #c9a227;
    --color-gold-light: #e8c547;
    --color-bg: #f4f6f5;
    --color-surface: #ffffff;
    --color-text: #1a1f1c;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-error: #b91c1c;
    --color-error-bg: #fef2f2;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --header-h: 56px;
    --nav-h: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ── App Layout ── */

.app-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
    height: var(--header-h);
    box-shadow: var(--shadow);
}

.app-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.app-header__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.app-header__logo {
    border-radius: 8px;
}

.app-header__title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.app-main {
    flex: 1;
    padding: 1rem;
}

.app-container {
    max-width: 960px;
    margin: 0 auto;
}

/* ── Bottom Nav ── */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding-bottom: var(--safe-bottom);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.bottom-nav__scroll {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 960px;
    margin: 0 auto;
}

.bottom-nav__scroll::-webkit-scrollbar {
    display: none;
}

.bottom-nav__item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 0.75rem;
    min-width: 72px;
    text-decoration: none;
    color: var(--color-muted);
    font-size: 0.625rem;
    font-weight: 500;
    transition: color 0.2s;
}

.bottom-nav__item.is-active {
    color: var(--color-primary);
}

.bottom-nav__icon {
    width: 22px;
    height: 22px;
    opacity: 0.7;
}

.bottom-nav__item.is-active .bottom-nav__icon {
    opacity: 1;
}

.bottom-nav__icon--home {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") center/contain no-repeat;
}

.bottom-nav__icon--users {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center/contain no-repeat;
}

.bottom-nav__icon--menu {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M18 8h1a4 4 0 0 1 0 8h-1'/%3E%3Cpath d='M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z'/%3E%3Cline x1='6' y1='1' x2='6' y2='4'/%3E%3Cline x1='10' y1='1' x2='10' y2='4'/%3E%3Cline x1='14' y1='1' x2='14' y2='4'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M18 8h1a4 4 0 0 1 0 8h-1'/%3E%3Cpath d='M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z'/%3E%3Cline x1='6' y1='1' x2='6' y2='4'/%3E%3Cline x1='10' y1='1' x2='10' y2='4'/%3E%3Cline x1='14' y1='1' x2='14' y2='4'/%3E%3C/svg%3E") center/contain no-repeat;
}

.bottom-nav__icon--list {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
}

.bottom-nav__icon--cart {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.bottom-nav__icon--chart {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E") center/contain no-repeat;
}

.bottom-nav__icon--activity {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.bottom-nav__icon--user {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── Page Placeholder ── */

.page-placeholder {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.page-placeholder__title {
    font-size: 1.375rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.page-placeholder__text {
    color: var(--color-muted);
    font-size: 0.875rem;
}

/* ── Login ── */

.guest-body {
    min-height: 100vh;
}

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.login-page__bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(201, 162, 39, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(193, 18, 31, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 0%, rgba(45, 106, 79, 0.3) 0%, transparent 60%),
        linear-gradient(160deg, var(--color-primary-dark) 0%, #0a1f12 40%, var(--color-primary) 100%);
    z-index: 0;
}

.login-page__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,0.25) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 50% 50%, rgba(255,255,255,0.2) 0%, transparent 100%);
    opacity: 0.6;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-card__logo {
    text-align: center;
    margin-bottom: 0.75rem;
}

.login-card__logo img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.login-card__title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.25rem;
}

.login-card__subtitle {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.login-page__credit {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.login-page__credit strong {
    color: var(--color-gold-light);
}

/* ── Forms ── */

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, opacity 0.2s;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
}

.btn--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

.btn--primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn--block {
    width: 100%;
    padding: 0.875rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn__loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn__text {
    display: none;
}

.btn.is-loading .btn__loader {
    display: inline-block !important;
}

/* ── Alert ── */

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.alert--error {
    background: var(--color-error-bg);
    color: var(--color-error);
    border: 1px solid #fecaca;
}

/* ── Toast ── */

.toast-container {
    position: fixed;
    top: calc(var(--header-h) + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: calc(100% - 2rem);
    max-width: 400px;
    pointer-events: none;
}

.toast {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toast-in 0.3s ease;
}

.toast--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.toast--error {
    background: var(--color-error-bg);
    color: var(--color-error);
    border: 1px solid #fecaca;
}

.toast--info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.toast.is-leaving {
    animation: toast-out 0.3s ease forwards;
}

/* ── Modal ── */

.modal-root {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.modal-root.is-open {
    visibility: visible;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transform: translateY(16px);
    transition: transform 0.3s;
}

.modal-root.is-open .modal {
    transform: translateY(0);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.modal__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-primary);
}

.modal__close.btn-icon {
    background: var(--color-bg);
    color: var(--color-muted);
}

.modal__body {
    padding: 1.25rem;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.modal__footer {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 0.75rem 1.25rem 1.25rem;
}

.modal__footer:empty {
    display: none;
}

/* ── Global Loader ── */

.global-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(15, 46, 26, 0.6);
    backdrop-filter: blur(4px);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.global-loader.is-visible {
    visibility: visible;
    opacity: 1;
}

.global-loader__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--color-gold-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.global-loader__text {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ── Error Page ── */

.error-page {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.error-page h2 {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.error-page p {
    color: var(--color-muted);
    margin-bottom: 1rem;
}

/* ── Animations ── */

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

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-12px); }
}

/* ── Desktop ── */

@media (min-width: 768px) {
    .app-main {
        padding: 1.5rem;
    }

    .login-card {
        padding: 2.5rem 2rem;
    }

    .bottom-nav__item {
        flex: 1;
        min-width: 0;
    }
}

/* ── Participantes ── */

.participants-page {
    margin: -1rem -1rem 0;
    min-height: calc(100vh - var(--header-h) - var(--nav-h));
    background:
        linear-gradient(180deg, rgba(15, 46, 26, 0.98) 0 142px, var(--color-bg) 142px 100%),
        radial-gradient(circle at 6% 0, rgba(232, 197, 71, 0.28), transparent 90px);
    padding-bottom: 5.5rem;
}

.participants-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 144px;
    padding: 1.5rem 1rem 2.8rem;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 2rem 1.5rem, rgba(193, 18, 31, 0.45), transparent 2.4rem),
        radial-gradient(circle at calc(100% - 1.5rem) 0.8rem, rgba(232, 197, 71, 0.22), transparent 4rem),
        linear-gradient(145deg, #06351f 0%, #072b1b 46%, #0e432b 100%);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
}

.participants-hero::before {
    content: "";
    position: absolute;
    left: -34px;
    top: -44px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 52% 48%, #9a0713 0 26px, #c1121f 27px 41px, transparent 42px),
        radial-gradient(circle at 22% 28%, rgba(232, 197, 71, 0.9) 0 3px, transparent 4px),
        radial-gradient(circle at 75% 32%, rgba(232, 197, 71, 0.75) 0 3px, transparent 4px),
        radial-gradient(circle at 18% 72%, rgba(255, 255, 255, 0.45) 0 2px, transparent 3px);
    opacity: 0.95;
}

.participants-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px),
        radial-gradient(circle at 85% 26%, rgba(255, 255, 255, 0.14) 0 1px, transparent 2px),
        radial-gradient(circle at 65% 72%, rgba(232, 197, 71, 0.16) 0 1px, transparent 2px);
    pointer-events: none;
}

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

.participants-hero__ornament {
    position: absolute;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-gold-light);
    font-size: 0.9rem;
    letter-spacing: 0.16rem;
    white-space: nowrap;
}

.participants-hero__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1;
    font-weight: 700;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.participants-hero__subtitle {
    margin-top: 0.65rem;
    color: var(--color-gold-light);
    font-size: 0.82rem;
    font-weight: 700;
}

.participants-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(104px, 1fr));
    gap: 0.55rem;
    margin: -1.9rem 1rem 1rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    position: relative;
    z-index: 2;
}

.summary-card {
    min-height: 126px;
    padding: 1rem 0.8rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 26px rgba(27, 43, 35, 0.14);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.32rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.summary-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-bottom: 0.2rem;
    display: inline-grid;
    place-items: center;
}

.summary-card__icon::before {
    font-size: 1.15rem;
}

.summary-card--confirmed .summary-card__icon {
    background: #e2f5e9;
    color: #13834e;
}

.summary-card--confirmed .summary-card__icon::before {
    content: "👥";
}

.summary-card--received .summary-card__icon {
    background: #fff1d8;
    color: #e28a00;
}

.summary-card--received .summary-card__icon::before {
    content: "$";
    font-weight: 800;
}

.summary-card--pending .summary-card__icon {
    background: #ffe7e9;
    color: #d71920;
}

.summary-card--pending .summary-card__icon::before {
    content: "!";
    font-weight: 900;
}

.summary-card__value {
    color: #10271d;
    font-size: 1.65rem;
    line-height: 1;
}

.summary-card__label {
    color: #304237;
    font-size: 0.75rem;
    font-weight: 700;
}

.participants-toolbar {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    margin: 0 1rem 0.9rem;
}

.participants-search {
    flex: 1;
    min-height: 48px;
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 1rem;
    box-shadow: 0 5px 18px rgba(27, 43, 35, 0.09);
    border: 1px solid rgba(15, 46, 26, 0.08);
}

.participants-search__icon {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    position: relative;
    opacity: 0.8;
}

.participants-search__icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    right: -6px;
    bottom: -3px;
    background: var(--color-primary);
    transform: rotate(45deg);
    border-radius: 999px;
}

.participants-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: 0.92rem;
}

.participants-search input::placeholder {
    color: #829087;
}

.participants-list,
.participants-skeleton {
    display: grid;
    gap: 0.72rem;
    margin: 0 1rem;
}

.participants-skeleton {
    display: none;
    margin-bottom: 0.72rem;
}

.participant-card {
    min-height: 82px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(27, 43, 35, 0.09);
    border: 1px solid rgba(15, 46, 26, 0.06);
    padding: 0.78rem;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.participant-card__avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
}

.participant-card__avatar::after {
    content: "✓";
    position: absolute;
    right: -2px;
    bottom: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #04784a;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 900;
    border: 2px solid #fff;
}

.participant-card__avatar span {
    width: 30px;
    height: 30px;
    color: currentColor;
    border: 3px solid currentColor;
    border-radius: 50% 50% 42% 42%;
    position: relative;
}

.participant-card__avatar span::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 4px;
    transform: translateX(-50%);
    width: 11px;
    height: 11px;
    border: 3px solid currentColor;
    border-radius: 50%;
    background: transparent;
}

.participant-card__avatar--green {
    background: #e3f5ec;
    color: #439b70;
}

.participant-card__avatar--gold {
    background: #fff0d6;
    color: #ee9d00;
}

.participant-card__avatar--blue {
    background: #e8f1fb;
    color: #3278af;
}

.participant-card__name {
    font-size: 0.96rem;
    font-weight: 800;
    color: #18241f;
    line-height: 1.25;
    margin-bottom: 0.22rem;
}

.participant-card__days,
.participant-card__category {
    color: #46594f;
    font-size: 0.75rem;
    font-weight: 600;
}

.participant-card__category {
    margin-top: 0.16rem;
}

.participant-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-badge {
    border-radius: 8px;
    padding: 0.28rem 0.48rem;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.payment-badge--paid,
.payment-badge--received {
    background: #ddf7e8;
    color: #10824b;
}

.payment-badge--pending {
    background: #ffeced;
    color: #d71920;
}

.participant-card__chevron {
    color: var(--color-primary-dark);
    font-size: 1.85rem;
    line-height: 1;
}

.participants-fab {
    position: fixed;
    right: 1rem;
    bottom: calc(var(--nav-h) + var(--safe-bottom) + 1rem);
    z-index: 120;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid rgba(232, 197, 71, 0.58);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-gold-light);
    box-shadow: 0 10px 24px rgba(15, 46, 26, 0.35);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    animation: participants-fab-in 0.38s ease both;
}

.participants-fab:hover,
.participants-fab:focus-visible {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 30px rgba(15, 46, 26, 0.42);
    filter: brightness(1.05);
}

.participant-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: end center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.participant-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.participant-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 18, 11, 0.55);
    backdrop-filter: blur(3px);
}

.participant-modal__card {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: min(86vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: 24px 24px 18px 18px;
    box-shadow: 0 -14px 42px rgba(0, 0, 0, 0.22);
    transform: translateY(18px);
    transition: transform 0.22s ease;
}

.participant-modal.is-open .participant-modal__card {
    transform: translateY(0);
}

.participant-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem 0.8rem;
    border-bottom: 1px solid var(--color-border);
}

.participant-modal__header h2 {
    color: var(--color-primary-dark);
    font-size: 1.15rem;
}

.participant-modal__close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-primary-dark);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.participant-form {
    padding: 1rem 1.25rem 1.25rem;
}

.participant-form__field {
    display: grid;
    gap: 0.36rem;
    margin-bottom: 0.85rem;
}

.participant-form__field span,
.participant-form__checks span {
    color: #26362f;
    font-size: 0.78rem;
    font-weight: 800;
}

.participant-form input[type="text"],
.participant-form select,
.participant-form textarea {
    width: 100%;
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    color: var(--color-text);
    font: inherit;
    padding: 0.78rem 0.9rem;
    outline: 0;
}

.participant-form input[type="text"].is-invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.participant-form__error {
    min-height: 1rem;
    color: var(--color-error);
    font-size: 0.72rem;
    font-weight: 700;
}

.participant-form textarea {
    resize: vertical;
}

.participant-form__checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.participant-form__checks label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1.5px solid var(--color-border);
    background: #fbfcfb;
}

.participant-form__checks input {
    accent-color: var(--color-primary);
}

.participant-form__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-top: 1rem;
}

.participant-form__cancel,
.participant-form__save {
    border: 0;
    border-radius: 14px;
    padding: 0.85rem;
    font-weight: 800;
    cursor: pointer;
}

.participant-form__cancel {
    background: var(--color-bg);
    color: var(--color-primary-dark);
}

.participant-form__save {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
}

.participant-form__save:disabled {
    cursor: not-allowed;
    opacity: 0.78;
}

.participant-form__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.participant-form__save.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.participant-form__save.is-loading .participant-form__spinner {
    display: inline-block;
}

.participant-form__save.is-loading .participant-form__save-text {
    opacity: 0.82;
}

.participant-confirm__card {
    max-width: 360px;
}

.participant-confirm__body {
    padding: 1.25rem;
    color: var(--color-text);
    font-size: 0.95rem;
}

.participant-confirm__actions {
    padding: 0 1.25rem 1.25rem;
}

.participants-empty {
    margin: 1rem;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 2.3rem 1.2rem;
    display: grid;
    justify-items: center;
    gap: 1rem;
    color: var(--color-muted);
    font-weight: 700;
    text-align: center;
}

.participants-empty__illustration {
    width: 86px;
    height: 64px;
    position: relative;
}

.participants-empty__illustration span {
    position: absolute;
    bottom: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e3f5ec;
    border: 3px solid #74b78f;
}

.participants-empty__illustration span:nth-child(1) {
    left: 0;
    transform: scale(0.78);
    opacity: 0.65;
}

.participants-empty__illustration span:nth-child(2) {
    left: 22px;
    bottom: 8px;
}

.participants-empty__illustration span:nth-child(3) {
    right: 0;
    transform: scale(0.78);
    opacity: 0.65;
}

.participant-card--skeleton {
    grid-template-columns: 58px 1fr 60px;
}

.participant-card--skeleton span,
.participant-card--skeleton i,
.participant-card--skeleton em {
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, #edf1ee, #f8faf8, #edf1ee);
    background-size: 220% 100%;
    animation: skeleton-pulse 1.2s linear infinite;
}

.participant-card--skeleton span {
    width: 58px;
    height: 58px;
    border-radius: 50%;
}

.participant-card--skeleton i {
    height: 12px;
    margin: 0.4rem 0;
}

.participant-card--skeleton i:first-child {
    width: 80%;
}

.participant-card--skeleton i:last-child {
    width: 58%;
}

.participant-card--skeleton em {
    width: 58px;
    height: 24px;
}

@keyframes skeleton-pulse {
    to { background-position: -220% 0; }
}

@keyframes participants-fab-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (min-width: 768px) {
    .participants-page {
        margin: -1.5rem -1.5rem 0;
    }

    .participants-summary,
    .participants-toolbar,
    .participants-list,
    .participants-skeleton,
    .participants-empty {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

    .participants-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .participant-modal {
        place-items: center;
    }

    .participant-modal__card {
        border-radius: 22px;
    }
}

/* ── Ingredientes ── */

.ingredients-page {
    margin: -1rem -1rem 0;
    min-height: calc(100vh - var(--header-h) - var(--nav-h));
    background:
        linear-gradient(180deg, rgba(15, 46, 26, 0.98) 0 146px, var(--color-bg) 146px 100%),
        radial-gradient(circle at 8% 0, rgba(232, 197, 71, 0.24), transparent 92px);
    padding-bottom: 5.5rem;
}

.ingredients-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 150px;
    padding: 1.5rem 1rem 2.85rem;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 2.2rem 1.6rem, rgba(193, 18, 31, 0.48), transparent 2.55rem),
        radial-gradient(circle at calc(100% - 1.5rem) 1.2rem, rgba(232, 197, 71, 0.2), transparent 4.2rem),
        linear-gradient(145deg, #06351f 0%, #072b1b 46%, #0e432b 100%);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
}

.ingredients-hero::before {
    content: "";
    position: absolute;
    left: -36px;
    top: -46px;
    width: 156px;
    height: 156px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 52% 48%, #9a0713 0 27px, #c1121f 28px 43px, transparent 44px),
        radial-gradient(circle at 20% 26%, rgba(232, 197, 71, 0.92) 0 3px, transparent 4px),
        radial-gradient(circle at 78% 34%, rgba(232, 197, 71, 0.78) 0 3px, transparent 4px),
        radial-gradient(circle at 22% 75%, rgba(255, 255, 255, 0.45) 0 2px, transparent 3px);
    opacity: 0.96;
}

.ingredients-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px),
        radial-gradient(circle at 85% 26%, rgba(255, 255, 255, 0.14) 0 1px, transparent 2px),
        radial-gradient(circle at 64% 72%, rgba(232, 197, 71, 0.16) 0 1px, transparent 2px);
    pointer-events: none;
}

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

.ingredients-hero__ornament {
    position: absolute;
    top: 1.15rem;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--color-gold-light);
    font-size: 1.65rem;
}

.ingredients-hero__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1;
    font-weight: 700;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.ingredients-hero__subtitle {
    max-width: 270px;
    margin: 0.65rem auto 0;
    color: var(--color-gold-light);
    font-size: 0.82rem;
    font-weight: 700;
}

.ingredients-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(108px, 1fr));
    gap: 0.55rem;
    margin: -1.9rem 1rem 1rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    position: relative;
    z-index: 2;
}

.ingredient-summary {
    min-height: 126px;
    padding: 1rem 0.72rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 26px rgba(27, 43, 35, 0.14);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.32rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.ingredient-summary__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-bottom: 0.2rem;
    display: inline-grid;
    place-items: center;
}

.ingredient-summary__icon::before {
    font-size: 1.05rem;
}

.ingredient-summary--active .ingredient-summary__icon {
    background: #e2f5e9;
    color: #13834e;
}

.ingredient-summary--active .ingredient-summary__icon::before {
    content: "✓";
    font-weight: 900;
}

.ingredient-summary--inactive .ingredient-summary__icon {
    background: #ffe7e9;
    color: #d71920;
}

.ingredient-summary--inactive .ingredient-summary__icon::before {
    content: "!";
    font-weight: 900;
}

.ingredient-summary--categories .ingredient-summary__icon {
    background: #fff1d8;
    color: #e28a00;
}

.ingredient-summary--categories .ingredient-summary__icon::before {
    content: "☰";
    font-weight: 900;
}

.ingredient-summary__value {
    color: #10271d;
    font-size: 1.65rem;
    line-height: 1;
}

.ingredient-summary__label {
    color: #304237;
    font-size: 0.72rem;
    font-weight: 700;
}

.ingredients-toolbar {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    margin: 0 1rem 0.9rem;
}

.ingredients-search {
    flex: 1;
    min-height: 48px;
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 1rem;
    box-shadow: 0 5px 18px rgba(27, 43, 35, 0.09);
    border: 1px solid rgba(15, 46, 26, 0.08);
}

.ingredients-search__icon {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    position: relative;
    opacity: 0.8;
}

.ingredients-search__icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    right: -6px;
    bottom: -3px;
    background: var(--color-primary);
    transform: rotate(45deg);
    border-radius: 999px;
}

.ingredients-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: 0.92rem;
}

.ingredients-search input::placeholder {
    color: #829087;
}

.ingredients-list,
.ingredients-skeleton {
    display: grid;
    gap: 0.72rem;
    margin: 0 1rem;
}

.ingredients-skeleton {
    display: none;
    margin-bottom: 0.72rem;
}

.ingredient-card {
    min-height: 86px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(27, 43, 35, 0.09);
    border: 1px solid rgba(15, 46, 26, 0.06);
    padding: 0.78rem;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.ingredient-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
}

.ingredient-card__icon span {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.ingredient-card__icon span::before {
    font-size: 1.28rem;
}

.ingredient-card__icon--milk {
    background: #e8f1fb;
    color: #3278af;
}

.ingredient-card__icon--milk span::before {
    content: "🥛";
}

.ingredient-card__icon--meat {
    background: #ffe7e9;
    color: #d71920;
}

.ingredient-card__icon--meat span::before {
    content: "🥓";
}

.ingredient-card__icon--grain {
    background: #fff1d8;
    color: #e28a00;
}

.ingredient-card__icon--grain span::before {
    content: "🍚";
}

.ingredient-card__icon--vegetable {
    background: #e2f5e9;
    color: #13834e;
}

.ingredient-card__icon--vegetable span::before {
    content: "🍅";
}

.ingredient-card__name {
    font-size: 0.96rem;
    font-weight: 800;
    color: #18241f;
    line-height: 1.25;
    margin-bottom: 0.22rem;
}

.ingredient-card__category,
.ingredient-card__purchase {
    color: #46594f;
    font-size: 0.75rem;
    font-weight: 600;
}

.ingredient-card__purchase {
    margin-top: 0.16rem;
}

.ingredient-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredient-card__unit {
    border-radius: 9px;
    padding: 0.3rem 0.5rem;
    background: #edf7f1;
    color: #10824b;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.ingredient-card__chevron {
    color: var(--color-primary-dark);
    font-size: 1.85rem;
    line-height: 1;
}

.ingredients-fab {
    position: fixed;
    right: 1rem;
    bottom: calc(var(--nav-h) + var(--safe-bottom) + 1rem);
    z-index: 120;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid rgba(232, 197, 71, 0.58);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-gold-light);
    box-shadow: 0 10px 24px rgba(15, 46, 26, 0.35);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    animation: participants-fab-in 0.38s ease both;
}

.ingredients-fab:hover,
.ingredients-fab:focus-visible {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 30px rgba(15, 46, 26, 0.42);
    filter: brightness(1.05);
}

.ingredient-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: end center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.ingredient-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.ingredient-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 18, 11, 0.55);
    backdrop-filter: blur(3px);
}

.ingredient-modal__card {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: min(86vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: 24px 24px 18px 18px;
    box-shadow: 0 -14px 42px rgba(0, 0, 0, 0.22);
    transform: translateY(18px);
    transition: transform 0.22s ease;
}

.ingredient-modal.is-open .ingredient-modal__card {
    transform: translateY(0);
}

.ingredient-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem 0.8rem;
    border-bottom: 1px solid var(--color-border);
}

.ingredient-modal__header h2 {
    color: var(--color-primary-dark);
    font-size: 1.15rem;
}

.ingredient-modal__close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-primary-dark);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.ingredient-form {
    padding: 1rem 1.25rem 1.25rem;
}

.ingredient-form__field {
    display: grid;
    gap: 0.36rem;
    margin-bottom: 0.85rem;
}

.ingredient-form__field span,
.ingredient-form__options legend,
.ingredient-form__options span,
.ingredient-form__switch span {
    color: #26362f;
    font-size: 0.78rem;
    font-weight: 800;
}

.ingredient-form input[type="text"],
.ingredient-form input[type="number"],
.ingredient-form select {
    width: 100%;
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    color: var(--color-text);
    font: inherit;
    padding: 0.78rem 0.9rem;
    outline: 0;
}

.ingredient-form input.is-invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.ingredient-form__error {
    min-height: 1rem;
    color: var(--color-error);
    font-size: 0.72rem;
    font-weight: 700;
}

.ingredient-combobox {
    position: relative;
    display: grid;
    gap: 0.36rem;
    cursor: pointer;
}

.ingredient-combobox::after {
    content: "▼";
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 0.68rem;
    pointer-events: none;
    transition: transform 0.15s ease;
}

.ingredient-combobox.is-open::after {
    transform: translateY(-50%) rotate(180deg);
}

.ingredient-combobox input {
    cursor: pointer;
    padding-right: 2.25rem !important;
}

.ingredient-combobox__list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.25rem);
    z-index: 30;
    display: grid;
    gap: 0.2rem;
    max-height: 180px;
    overflow-y: auto;
    padding: 0.35rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.ingredient-combobox__list[hidden] {
    display: none;
}

.ingredient-combobox__list.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ingredient-combobox__option {
    border: 0;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    text-align: left;
    font: inherit;
    font-weight: 700;
    color: var(--color-primary-dark);
    background: #fff;
    cursor: pointer;
}

.ingredient-combobox__option.is-active,
.ingredient-combobox__option:hover {
    color: #fff;
    background: var(--color-primary);
}

.ingredient-form__options {
    display: grid;
    gap: 0.55rem;
    border: 0;
    margin: 0 0 0.85rem;
    padding: 0;
}

.ingredient-form__options label,
.ingredient-form__switch {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1.5px solid var(--color-border);
    background: #fbfcfb;
}

.ingredient-form input[type="radio"],
.ingredient-form input[type="checkbox"] {
    accent-color: var(--color-primary);
}

.ingredient-form__grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 0.7rem;
}

.ingredient-form__switch {
    margin: 0.15rem 0 1rem;
}

.ingredient-form__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.ingredient-form__cancel,
.ingredient-form__save {
    border: 0;
    border-radius: 14px;
    padding: 0.85rem;
    font-weight: 800;
    cursor: pointer;
}

.ingredient-form__cancel {
    background: var(--color-bg);
    color: var(--color-primary-dark);
}

.ingredient-form__save {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
}

.ingredient-form__save:disabled {
    cursor: not-allowed;
    opacity: 0.78;
}

.ingredient-form__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.ingredient-form__save.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.ingredient-form__save.is-loading .ingredient-form__spinner {
    display: inline-block;
}

.ingredient-confirm__card {
    max-width: 360px;
}

.ingredient-confirm__body {
    padding: 1.25rem;
    color: var(--color-text);
    font-size: 0.95rem;
}

.ingredient-confirm__actions {
    padding: 0 1.25rem 1.25rem;
}

.ingredients-empty {
    margin: 1rem;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 2.3rem 1.2rem;
    display: grid;
    justify-items: center;
    gap: 1rem;
    color: var(--color-muted);
    font-weight: 700;
    text-align: center;
}

.ingredients-empty__illustration {
    width: 86px;
    height: 68px;
    position: relative;
}

.ingredients-empty__illustration span {
    position: absolute;
    bottom: 0;
    width: 34px;
    height: 44px;
    border-radius: 10px 10px 14px 14px;
    background: #e3f5ec;
    border: 3px solid #74b78f;
}

.ingredients-empty__illustration span:nth-child(1) {
    left: 8px;
    transform: rotate(-10deg) scale(0.82);
    opacity: 0.65;
}

.ingredients-empty__illustration span:nth-child(2) {
    left: 28px;
    bottom: 8px;
}

.ingredients-empty__illustration span:nth-child(3) {
    right: 8px;
    transform: rotate(10deg) scale(0.82);
    opacity: 0.65;
}

.ingredient-card--skeleton {
    grid-template-columns: 58px 1fr 70px;
}

.ingredient-card--skeleton span,
.ingredient-card--skeleton i,
.ingredient-card--skeleton em {
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, #edf1ee, #f8faf8, #edf1ee);
    background-size: 220% 100%;
    animation: skeleton-pulse 1.2s linear infinite;
}

.ingredient-card--skeleton span {
    width: 58px;
    height: 58px;
    border-radius: 18px;
}

.ingredient-card--skeleton i {
    height: 12px;
    margin: 0.4rem 0;
}

.ingredient-card--skeleton i:first-child {
    width: 80%;
}

.ingredient-card--skeleton i:last-child {
    width: 58%;
}

.ingredient-card--skeleton em {
    width: 68px;
    height: 24px;
}

@media (min-width: 768px) {
    .ingredients-page {
        margin: -1.5rem -1.5rem 0;
    }

    .ingredients-summary,
    .ingredients-toolbar,
    .ingredients-list,
    .ingredients-skeleton,
    .ingredients-empty {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

    .ingredients-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .ingredient-modal {
        place-items: center;
    }

    .ingredient-modal__card {
        border-radius: 22px;
    }
}

/* ── Cardápio ── */

.menu-page {
    margin: -1rem -1rem 0;
    min-height: calc(100vh - var(--header-h) - var(--nav-h));
    background:
        linear-gradient(180deg, rgba(15, 46, 26, 0.98) 0 146px, var(--color-bg) 146px 100%),
        radial-gradient(circle at 8% 0, rgba(232, 197, 71, 0.24), transparent 92px);
    padding-bottom: 5.5rem;
}

.menu-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 150px;
    padding: 1.5rem 1rem 2.85rem;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 2.2rem 1.6rem, rgba(193, 18, 31, 0.48), transparent 2.55rem),
        radial-gradient(circle at calc(100% - 1.5rem) 1.2rem, rgba(232, 197, 71, 0.2), transparent 4.2rem),
        linear-gradient(145deg, #06351f 0%, #072b1b 46%, #0e432b 100%);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
}

.menu-hero::before {
    content: "";
    position: absolute;
    left: -36px;
    top: -46px;
    width: 156px;
    height: 156px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 52% 48%, #9a0713 0 27px, #c1121f 28px 43px, transparent 44px),
        radial-gradient(circle at 20% 26%, rgba(232, 197, 71, 0.92) 0 3px, transparent 4px),
        radial-gradient(circle at 78% 34%, rgba(232, 197, 71, 0.78) 0 3px, transparent 4px),
        radial-gradient(circle at 22% 75%, rgba(255, 255, 255, 0.45) 0 2px, transparent 3px);
    opacity: 0.96;
}

.menu-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px),
        radial-gradient(circle at 85% 26%, rgba(255, 255, 255, 0.14) 0 1px, transparent 2px),
        radial-gradient(circle at 64% 72%, rgba(232, 197, 71, 0.16) 0 1px, transparent 2px);
    pointer-events: none;
}

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

.menu-hero__ornament {
    position: absolute;
    top: 1.15rem;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--color-gold-light);
    font-size: 1.65rem;
}

.menu-hero__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1;
    font-weight: 700;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.menu-hero__subtitle {
    max-width: 280px;
    margin: 0.65rem auto 0;
    color: var(--color-gold-light);
    font-size: 0.82rem;
    font-weight: 700;
}

.menu-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(108px, 1fr));
    gap: 0.55rem;
    margin: -1.9rem 1rem 1rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    position: relative;
    z-index: 2;
}

.menu-summary-card {
    min-height: 126px;
    padding: 1rem 0.72rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 26px rgba(27, 43, 35, 0.14);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.32rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.menu-summary-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-bottom: 0.2rem;
    display: inline-grid;
    place-items: center;
}

.menu-summary-card__icon::before {
    font-size: 1.05rem;
}

.menu-summary-card--recipes .menu-summary-card__icon {
    background: #e2f5e9;
    color: #13834e;
}

.menu-summary-card--recipes .menu-summary-card__icon::before {
    content: "📖";
}

.menu-summary-card--categories .menu-summary-card__icon {
    background: #fff1d8;
    color: #e28a00;
}

.menu-summary-card--categories .menu-summary-card__icon::before {
    content: "☰";
    font-weight: 900;
}

.menu-summary-card--active .menu-summary-card__icon {
    background: #e2f5e9;
    color: #13834e;
}

.menu-summary-card--active .menu-summary-card__icon::before {
    content: "✓";
    font-weight: 900;
}

.menu-summary-card__value {
    color: #10271d;
    font-size: 1.65rem;
    line-height: 1;
}

.menu-summary-card__label {
    color: #304237;
    font-size: 0.72rem;
    font-weight: 700;
}

.menu-toolbar {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    margin: 0 1rem 0.9rem;
}

.menu-search {
    flex: 1;
    min-height: 48px;
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 1rem;
    box-shadow: 0 5px 18px rgba(27, 43, 35, 0.09);
    border: 1px solid rgba(15, 46, 26, 0.08);
}

.menu-search__icon {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    position: relative;
    opacity: 0.8;
}

.menu-search__icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    right: -6px;
    bottom: -3px;
    background: var(--color-primary);
    transform: rotate(45deg);
    border-radius: 999px;
}

.menu-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: 0.92rem;
}

.menu-search input::placeholder {
    color: #829087;
}

.recipe-list,
.menu-skeleton {
    display: grid;
    gap: 0.72rem;
    margin: 0 1rem;
}

.menu-skeleton {
    display: none;
    margin-bottom: 0.72rem;
}

.recipe-card {
    min-height: 94px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(27, 43, 35, 0.09);
    border: 1px solid rgba(15, 46, 26, 0.06);
    padding: 0.78rem;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.recipe-card__thumb {
    width: 66px;
    height: 66px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.recipe-card__thumb span::before {
    font-size: 2rem;
}

.recipe-card__thumb--main {
    background: #ffe7e9;
}

.recipe-card__thumb--main span::before {
    content: "🥩";
}

.recipe-card__thumb--pasta {
    background: #fff1d8;
}

.recipe-card__thumb--pasta span::before {
    content: "🍝";
}

.recipe-card__thumb--side {
    background: #e2f5e9;
}

.recipe-card__thumb--side span::before {
    content: "🍚";
}

.recipe-card__thumb--dessert {
    background: #f2e8ff;
}

.recipe-card__thumb--dessert span::before {
    content: "🍫";
}

.recipe-card__name {
    font-size: 0.96rem;
    font-weight: 800;
    color: #18241f;
    line-height: 1.25;
    margin-bottom: 0.22rem;
}

.recipe-card__category {
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 700;
}

.recipe-card__ingredients {
    color: #46594f;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.16rem;
}

.recipe-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recipe-status {
    border-radius: 9px;
    padding: 0.3rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.recipe-status--active {
    background: #edf7f1;
    color: #10824b;
}

.recipe-status--inactive {
    background: #ffeced;
    color: #d71920;
}

.recipe-card__chevron {
    color: var(--color-primary-dark);
    font-size: 1.85rem;
    line-height: 1;
}

.menu-fab {
    position: fixed;
    right: 1rem;
    bottom: calc(var(--nav-h) + var(--safe-bottom) + 1rem);
    z-index: 120;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid rgba(232, 197, 71, 0.58);
    background: linear-gradient(135deg, var(--color-accent), #8e0710);
    color: #fff;
    box-shadow: 0 10px 24px rgba(142, 7, 16, 0.34);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    animation: participants-fab-in 0.38s ease both;
}

.menu-fab:hover,
.menu-fab:focus-visible {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 30px rgba(142, 7, 16, 0.42);
    filter: brightness(1.05);
}

.menu-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: end center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.menu-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.menu-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 18, 11, 0.55);
    backdrop-filter: blur(3px);
}

.menu-modal__card {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: min(86vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: 24px 24px 18px 18px;
    box-shadow: 0 -14px 42px rgba(0, 0, 0, 0.22);
    transform: translateY(18px);
    transition: transform 0.22s ease;
}

.menu-modal.is-open .menu-modal__card {
    transform: translateY(0);
}

.menu-modal__card--small {
    max-width: 390px;
}

.menu-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem 0.8rem;
    border-bottom: 1px solid var(--color-border);
}

.menu-modal__header h2 {
    color: var(--color-primary-dark);
    font-size: 1.15rem;
}

.menu-modal__close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-primary-dark);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.recipe-form {
    padding: 1rem 1.25rem 1.25rem;
}

.recipe-form__field {
    display: grid;
    gap: 0.36rem;
    margin-bottom: 0.85rem;
}

.recipe-form__field span {
    color: #26362f;
    font-size: 0.78rem;
    font-weight: 800;
}

.recipe-form input[type="text"],
.recipe-form input[type="number"] {
    width: 100%;
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    color: var(--color-text);
    font: inherit;
    padding: 0.78rem 0.9rem;
    outline: 0;
}

.recipe-form__grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 0.7rem;
}

.recipe-ingredients-box {
    display: grid;
    gap: 0.8rem;
    margin: 0.2rem 0 1rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1.5px dashed rgba(15, 46, 26, 0.18);
    background: #fbfcfb;
}

.recipe-ingredients-box strong {
    color: var(--color-primary-dark);
    font-size: 0.9rem;
}

.recipe-ingredients-box p {
    margin-top: 0.22rem;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.recipe-add-ingredient {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 0.82rem;
    background: #edf7f1;
    color: var(--color-primary);
    font-weight: 800;
    cursor: pointer;
}

.recipe-form__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-top: 1rem;
}

.recipe-form__cancel,
.recipe-form__save {
    border: 0;
    border-radius: 14px;
    padding: 0.85rem;
    font-weight: 800;
    cursor: pointer;
}

.recipe-form__cancel {
    background: var(--color-bg);
    color: var(--color-primary-dark);
}

.recipe-form__save {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
}

.menu-empty {
    margin: 1rem;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 2.3rem 1.2rem;
    display: grid;
    justify-items: center;
    gap: 1rem;
    color: var(--color-muted);
    font-weight: 700;
    text-align: center;
}

.menu-empty__illustration {
    width: 86px;
    height: 68px;
    position: relative;
}

.menu-empty__illustration span {
    position: absolute;
    bottom: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #e3f5ec;
    border: 3px solid #74b78f;
}

.menu-empty__illustration span:nth-child(1) {
    left: 4px;
    transform: rotate(-10deg) scale(0.82);
    opacity: 0.65;
}

.menu-empty__illustration span:nth-child(2) {
    left: 24px;
    bottom: 8px;
}

.menu-empty__illustration span:nth-child(3) {
    right: 4px;
    transform: rotate(10deg) scale(0.82);
    opacity: 0.65;
}

.recipe-card--skeleton {
    grid-template-columns: 66px 1fr 70px;
}

.recipe-card--skeleton span,
.recipe-card--skeleton i,
.recipe-card--skeleton em {
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, #edf1ee, #f8faf8, #edf1ee);
    background-size: 220% 100%;
    animation: skeleton-pulse 1.2s linear infinite;
}

.recipe-card--skeleton span {
    width: 66px;
    height: 66px;
    border-radius: 16px;
}

.recipe-card--skeleton i {
    height: 12px;
    margin: 0.4rem 0;
}

.recipe-card--skeleton i:first-child {
    width: 80%;
}

.recipe-card--skeleton i:last-child {
    width: 58%;
}

.recipe-card--skeleton em {
    width: 68px;
    height: 24px;
}

@media (min-width: 768px) {
    .menu-page {
        margin: -1.5rem -1.5rem 0;
    }

    .menu-summary,
    .menu-toolbar,
    .recipe-list,
    .menu-skeleton,
    .menu-empty {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

    .menu-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .menu-modal {
        place-items: center;
    }

    .menu-modal__card {
        border-radius: 22px;
    }
}

/* ── Compras ── */

.shopping-page {
    margin: -1rem -1rem 0;
    min-height: calc(100vh - var(--header-h) - var(--nav-h));
    background:
        linear-gradient(180deg, rgba(15, 46, 26, 0.98) 0 146px, var(--color-bg) 146px 100%),
        radial-gradient(circle at 8% 0, rgba(232, 197, 71, 0.24), transparent 92px);
    padding-bottom: 5.5rem;
}

.shopping-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 150px;
    padding: 1.5rem 1rem 2.85rem;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 2.2rem 1.6rem, rgba(193, 18, 31, 0.48), transparent 2.55rem),
        radial-gradient(circle at calc(100% - 1.5rem) 1.2rem, rgba(232, 197, 71, 0.2), transparent 4.2rem),
        linear-gradient(145deg, #06351f 0%, #072b1b 46%, #0e432b 100%);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
}

.shopping-hero::before {
    content: "";
    position: absolute;
    left: -36px;
    top: -46px;
    width: 156px;
    height: 156px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 52% 48%, #9a0713 0 27px, #c1121f 28px 43px, transparent 44px),
        radial-gradient(circle at 20% 26%, rgba(232, 197, 71, 0.92) 0 3px, transparent 4px),
        radial-gradient(circle at 78% 34%, rgba(232, 197, 71, 0.78) 0 3px, transparent 4px),
        radial-gradient(circle at 22% 75%, rgba(255, 255, 255, 0.45) 0 2px, transparent 3px);
    opacity: 0.96;
}

.shopping-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px),
        radial-gradient(circle at 85% 26%, rgba(255, 255, 255, 0.14) 0 1px, transparent 2px),
        radial-gradient(circle at 64% 72%, rgba(232, 197, 71, 0.16) 0 1px, transparent 2px);
    pointer-events: none;
}

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

.shopping-hero__ornament {
    position: absolute;
    top: 1.15rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-gold-light);
    font-size: 1.65rem;
}

.shopping-hero__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1;
    font-weight: 700;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.shopping-hero__subtitle {
    max-width: 300px;
    margin: 0.65rem auto 0;
    color: var(--color-gold-light);
    font-size: 0.82rem;
    font-weight: 700;
}

.shopping-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(108px, 1fr));
    gap: 0.55rem;
    margin: -1.9rem 1rem 1rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    position: relative;
    z-index: 2;
}

.shopping-summary-card {
    min-height: 126px;
    padding: 1rem 0.72rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 26px rgba(27, 43, 35, 0.14);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.32rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.shopping-summary-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-bottom: 0.2rem;
    display: inline-grid;
    place-items: center;
}

.shopping-summary-card--total .shopping-summary-card__icon,
.shopping-summary-card--bought .shopping-summary-card__icon {
    background: #e2f5e9;
    color: #13834e;
}

.shopping-summary-card--pending .shopping-summary-card__icon {
    background: #fff1d8;
    color: #e28a00;
}

.shopping-summary-card--total .shopping-summary-card__icon::before {
    content: "🧾";
}

.shopping-summary-card--bought .shopping-summary-card__icon::before {
    content: "✓";
    font-weight: 900;
}

.shopping-summary-card--pending .shopping-summary-card__icon::before {
    content: "!";
    font-weight: 900;
}

.shopping-summary-card__value {
    color: #10271d;
    font-size: 1.65rem;
    line-height: 1;
}

.shopping-summary-card__label {
    color: #304237;
    font-size: 0.72rem;
    font-weight: 700;
}

.shopping-toolbar {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    margin: 0 1rem 0.9rem;
}

.shopping-search {
    flex: 1;
    min-height: 48px;
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 1rem;
    box-shadow: 0 5px 18px rgba(27, 43, 35, 0.09);
    border: 1px solid rgba(15, 46, 26, 0.08);
}

.shopping-search__icon {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    position: relative;
    opacity: 0.8;
}

.shopping-search__icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    right: -6px;
    bottom: -3px;
    background: var(--color-primary);
    transform: rotate(45deg);
    border-radius: 999px;
}

.shopping-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: 0.92rem;
}

.shopping-table-wrap {
    margin: 0 1rem;
    overflow-x: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(27, 43, 35, 0.09);
}

.shopping-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
    font-size: 0.82rem;
}

.shopping-table th,
.shopping-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: middle;
}

.shopping-table th {
    color: var(--color-primary-dark);
    font-size: 0.72rem;
    font-weight: 900;
    background: #fbfcfb;
}

.shopping-table td strong {
    display: block;
    color: #18241f;
    font-size: 0.88rem;
}

.shopping-table td span {
    display: block;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 0.18rem;
}

.shopping-input {
    width: 92px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    font: inherit;
    color: var(--color-text);
    outline: 0;
}

.shopping-input:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.shopping-bottom-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 46, 26, 0.24);
}

.shopping-bottom-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.shopping-bottom-summary span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 700;
}

.shopping-bottom-summary strong {
    color: var(--color-gold-light);
    font-size: 1rem;
}

.shopping-empty {
    margin: 1rem;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 2.3rem 1.2rem;
    display: grid;
    justify-items: center;
    gap: 1rem;
    color: var(--color-muted);
    font-weight: 700;
    text-align: center;
}

.shopping-empty__illustration {
    width: 86px;
    height: 68px;
    position: relative;
}

.shopping-empty__illustration span {
    position: absolute;
    bottom: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #e3f5ec;
    border: 3px solid #74b78f;
}

.shopping-empty__illustration span:nth-child(1) {
    left: 4px;
    transform: rotate(-10deg) scale(0.82);
    opacity: 0.65;
}

.shopping-empty__illustration span:nth-child(2) {
    left: 24px;
    bottom: 8px;
}

.shopping-empty__illustration span:nth-child(3) {
    right: 4px;
    transform: rotate(10deg) scale(0.82);
    opacity: 0.65;
}

@media (max-width: 767px) {
    .shopping-table-wrap {
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .shopping-table {
        display: block;
        min-width: 0;
    }

    .shopping-table thead {
        display: none;
    }

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

    .shopping-table tr {
        margin-bottom: 0.75rem;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 5px 22px rgba(27, 43, 35, 0.09);
        padding: 0.5rem 0;
    }

    .shopping-table td {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 0.75rem;
        border-bottom: 0;
        padding: 0.5rem 0.85rem;
    }

    .shopping-table td::before {
        content: attr(data-label);
        color: var(--color-muted);
        font-size: 0.72rem;
        font-weight: 800;
    }

    .shopping-input {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .shopping-page {
        margin: -1.5rem -1.5rem 0;
    }

    .shopping-summary,
    .shopping-toolbar,
    .shopping-table-wrap,
    .shopping-bottom-summary,
    .shopping-empty {
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
    }

    .shopping-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .shopping-bottom-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .shopping-bottom-summary div {
        display: grid;
        justify-items: center;
        text-align: center;
    }
}
