/* ============================================================
   reservas-socio.css — Portal de Reservas Socio (Design System)
   Club de Golf Sport Frances
   Migrated to steelblue design system tokens
   ============================================================ */


/* ============================================================
   SECTION 1: ACCESSIBILITY & SHARED UTILITIES
   ============================================================ */

/* Screen reader only text — available throughout the module */
.sr-only,
.mr-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Global focus-visible for all rv- and mr- interactive elements */
.rv-party-pill:focus-visible,
.rv-date-chip:focus-visible,
.rv-dates-arrow:focus-visible,
.rv-slot:focus-visible,
.rv-btn-continue:focus-visible,
.rv-zone-chip:focus-visible,
.rv-auto-btn:focus-visible,
.rv-btn-back:focus-visible,
.rv-btn-next:focus-visible,
.rv-btn-confirm:focus-visible,
.rv-btn-cancel:focus-visible,
.rv-btn-qr:focus-visible,
.rv-btn-new:focus-visible,
.rv-tab:focus-visible,
.rv-occasion-chip:focus-visible,
.rv-dietary-check:focus-visible,
.rv-chip:focus-visible,
.rv-check:focus-visible,
.rv-link:focus-visible,
.rv-modal-btn:focus-visible,
.rv-modal-close:focus-visible,
.rv-plano-ctrl:focus-visible,
.rv-back-zone:focus-visible,
.rv-zone-card:focus-visible,
.rv-mesa-card:focus-visible,
.rv-mesa-item:focus-visible,
.rv-zone-tab:focus-visible,
.rv-view-btn:focus-visible,
.rv-selected-change:focus-visible,
.rv-party-btn:focus-visible,
.rv-nota-input:focus-visible,
.rv-textarea:focus-visible,
.mr-tab:focus-visible,
.mr-btn:focus-visible,
.mr-hero-cta:focus-visible,
.mr-empty-cta:focus-visible,
.mr-qr-modal-close:focus-visible,
.mr-qr-close:focus-visible,
.mr-cancel-btn:focus-visible {
    outline: 2px solid var(--steel-500);
    outline-offset: 2px;
}

/* Reduced motion: disable ALL animations in this module */
@media (prefers-reduced-motion: reduce) {
    .rv-fade-in,
    .rv-fade-in-stagger > *,
    .rv-booking--new,
    .rv-mesa-section,
    .mr-card,
    .mr-card--new,
    .mr-stagger .mr-card,
    .mr-qr-modal,
    .mr-cancel-modal,
    .mr-modal-overlay,
    .mr-qr-img-wrap img,
    .mr-tabs-indicator {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


/* ============================================================
   SECTION 2: LOADING SKELETONS & EMPTY STATES
   ============================================================ */

/* Loading skeleton — shimmer effect */
.skeleton {
    background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 50%, var(--slate-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-pulse {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card { height: 120px; }
.skeleton-row  { height: 48px; margin-bottom: 8px; }
.skeleton-kpi  { height: 80px; }
.skeleton-text { height: 16px; width: 60%; margin-bottom: 8px; }

/* Generic empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--slate-300);
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--slate-500);
    margin-bottom: 1.5rem;
    max-width: 400px;
}

@media (prefers-reduced-motion: reduce) {
    .skeleton { animation: none; background: var(--slate-200); }
}


/* ============================================================
   SECTION 3: TOAST NOTIFICATIONS
   ============================================================ */

.toast-container-reservas {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: var(--z-toast, 1090);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast-reserva {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toast-slide-in 0.3s ease;
    max-width: 400px;
    pointer-events: auto;
}

.toast-success {
    background: var(--success-50);
    border-left: 4px solid var(--success-500);
    color: #065f46;
}

.toast-error {
    background: var(--danger-50);
    border-left: 4px solid var(--danger-500);
    color: #991b1b;
}

.toast-warning {
    background: var(--warning-50);
    border-left: 4px solid var(--warning-500);
    color: #92400e;
}

.toast-info {
    background: var(--info-50);
    border-left: 4px solid var(--info-500);
    color: #1e3a8a;
}

@keyframes toast-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .toast-reserva { animation: none; }
}


/* ============================================================
   SECTION 4: ESTADO BADGES (Accessible — text + color)
   ============================================================ */

.rv-estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
}

.rv-estado-badge--disponible  { background: var(--steel-100);   color: var(--steel-700); }
.rv-estado-badge--reservada   { background: var(--info-50);     color: #1e3a8a; }
.rv-estado-badge--enmesa      { background: var(--success-50);  color: var(--success-600); }
.rv-estado-badge--postre      { background: var(--warning-50);  color: #92400e; }
.rv-estado-badge--limpieza    { background: var(--slate-100);   color: var(--slate-600); }
.rv-estado-badge--completada  { background: var(--success-50);  color: var(--success-600); }
.rv-estado-badge--cancelada   { background: var(--danger-50);   color: var(--danger-600); }
.rv-estado-badge--noshow      { background: var(--danger-50);   color: var(--danger-600); }
.rv-estado-badge--pendiente   { background: var(--warning-50);  color: #92400e; }


/* ============================================================
   SECTION 5: SHARED — Stepper
   ============================================================ */

.rv-stepper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2rem 1rem 1.5rem;
    max-width: 480px;
    margin: 0 auto;
}

.rv-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
}

.rv-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--slate-200);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--slate-400);
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

.rv-step-num--active {
    background: var(--steel-600);
    border-color: var(--steel-600);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(70, 130, 180, 0.15);
}

.rv-step-num--done {
    background: var(--success-500);
    border-color: var(--success-500);
    color: transparent;
    position: relative;
}

.rv-step-num--done::after {
    content: "\2713";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.rv-step-text {
    font-size: 0.75rem;
    color: var(--slate-400);
    font-family: var(--font-sans);
    font-weight: 400;
    white-space: nowrap;
}

.rv-step-text--active {
    color: var(--steel-600);
    font-weight: 600;
}

.rv-step-text--done {
    color: var(--success-500);
    font-weight: 500;
}

.rv-step-line {
    width: 48px;
    height: 2px;
    background: var(--slate-200);
    flex-shrink: 0;
    margin: 0 0.25rem;
    margin-bottom: 1.2rem;
    transition: background 0.3s ease;
}

.rv-step-line--done {
    background: var(--success-500);
}


/* ============================================================
   SECTION 6: SHARED — Card container
   ============================================================ */

.rv-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    max-width: 640px;
    margin: 0 auto 2rem;
    font-family: var(--font-sans);
}

.rv-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--steel-700);
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    line-height: 1.3;
}

.rv-card-title i {
    font-size: 1.2rem;
    opacity: 0.8;
}

.rv-card-subtitle {
    font-size: 0.9rem;
    color: var(--slate-500);
    margin: 0 0 1.5rem;
    font-family: var(--font-sans);
    line-height: 1.5;
}

.rv-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-500);
    font-family: var(--font-sans);
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

.rv-section-label i {
    font-size: 0.88rem;
}

.rv-section-label--back {
    gap: 0.4rem;
}

.rv-section-label--back strong {
    color: var(--slate-900);
    font-weight: 700;
}


/* ============================================================
   SECTION 7: PASO 1 — Party size
   ============================================================ */

.rv-party {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.rv-party-pills {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rv-party-pill {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--slate-200);
    background: white;
    color: var(--slate-900);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
}

.rv-party-pill:hover {
    border-color: var(--steel-500);
    background: var(--steel-50);
}

.rv-party-pill--active {
    background: var(--steel-600);
    color: #fff;
    border-color: var(--steel-600);
    box-shadow: 0 2px 8px rgba(70, 130, 180, 0.25);
}

.rv-party-pill--active:hover {
    background: var(--steel-500);
    border-color: var(--steel-500);
}

.rv-party-custom {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1.5px solid var(--slate-200);
}

.rv-party-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--slate-200);
    background: white;
    color: var(--slate-900);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
    font-family: var(--font-sans);
}

.rv-party-btn:hover {
    border-color: var(--steel-500);
    background: var(--steel-50);
    color: var(--steel-700);
}

.rv-party-btn:active {
    transform: scale(0.92);
}

.rv-party-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.rv-party-btn:disabled:hover {
    border-color: var(--slate-200);
    background: white;
    color: var(--slate-900);
}

.rv-party-count {
    display: inline-block;
    font-weight: 700;
    color: var(--steel-700);
    font-size: 1.05rem;
    min-width: 2ch;
    text-align: center;
    font-family: var(--font-sans);
}


/* ============================================================
   SECTION 8: PASO 1 — Date strip
   ============================================================ */

.rv-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.75rem;
}

.rv-dates-scroll {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0.25rem 0;
    scroll-behavior: smooth;
}

.rv-dates-scroll::-webkit-scrollbar {
    display: none;
}

.rv-date-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 0.6rem 0.5rem;
    border-radius: var(--radius-lg);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: var(--slate-900);
    transition: all 0.2s ease;
    scroll-snap-align: start;
    flex-shrink: 0;
    background: transparent;
    font-family: var(--font-sans);
}

.rv-date-chip:hover {
    border-color: var(--slate-200);
    background: var(--slate-50);
    text-decoration: none;
    color: var(--slate-900);
}

.rv-date-chip--today {
    border-style: dashed;
    border-color: var(--steel-500);
    font-weight: bold;
}

.rv-date-chip--today:hover {
    border-style: dashed;
    border-color: var(--steel-500);
    background: var(--steel-50);
}

.rv-date-chip--selected {
    background: var(--steel-600);
    color: #fff;
    border-color: var(--steel-600);
    box-shadow: 0 2px 12px rgba(70, 130, 180, 0.3);
}

.rv-date-chip--selected:hover {
    background: var(--steel-500);
    border-color: var(--steel-500);
    color: #fff;
}

.rv-date-chip--selected .rv-date-chip-dow,
.rv-date-chip--selected .rv-date-chip-month {
    color: rgba(255, 255, 255, 0.8);
}

.rv-date-chip--disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

.rv-date-chip-dow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--slate-500);
    font-weight: 500;
    line-height: 1.2;
}

.rv-date-chip-num {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.rv-date-chip-month {
    font-size: 0.65rem;
    color: var(--slate-500);
    text-transform: capitalize;
    line-height: 1.2;
    min-height: 0.85rem;
}

.rv-date-chip-today-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--steel-500);
    font-weight: 700;
    line-height: 1;
    margin-top: 0.1rem;
}

.rv-date-chip--selected .rv-date-chip-today-label {
    color: rgba(255, 255, 255, 0.9);
}

.rv-dates-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-900);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

.rv-dates-arrow:hover {
    background: var(--slate-50);
    box-shadow: var(--shadow-md);
    color: var(--steel-500);
}

@media (max-width: 768px) {
    .rv-dates-arrow {
        display: none;
    }
}


/* ============================================================
   SECTION 9: PASO 1 — Time slots
   ============================================================ */

.rv-turno {
    margin-bottom: 1.25rem;
}

.rv-turno-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.rv-turno-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--steel-700);
    font-family: var(--font-sans);
    white-space: nowrap;
}

.rv-turno-label i {
    font-size: 0.9rem;
    opacity: 0.75;
}

.rv-turno-divider {
    flex: 1;
    height: 1px;
    background: var(--slate-200);
}

.rv-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

.rv-slot {
    padding: 0.6rem 0.4rem;
    border-radius: 10px;
    border: 1.5px solid var(--slate-200);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    font-family: var(--font-sans);
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.rv-slot--available {
    border-color: var(--slate-200);
}

.rv-slot--available:hover {
    border-color: var(--steel-500);
    background: var(--steel-50);
}

.rv-slot--selected {
    background: var(--steel-600);
    color: #fff;
    border-color: var(--steel-600);
    box-shadow: 0 2px 12px rgba(70, 130, 180, 0.3);
}

.rv-slot--selected:hover {
    background: var(--steel-500);
    border-color: var(--steel-500);
}

.rv-slot--selected .rv-slot-time {
    color: #fff;
}

.rv-slot--selected .rv-slot-avail {
    color: rgba(255, 255, 255, 0.75);
}

.rv-slot--almost {
    border-color: var(--warning-500);
    background: rgba(245, 158, 11, 0.04);
}

.rv-slot--almost:hover {
    border-color: var(--accent-700);
    background: rgba(245, 158, 11, 0.08);
}

.rv-slot--full {
    border-color: transparent;
    background: var(--slate-100);
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.rv-slot--full .rv-slot-time {
    text-decoration: line-through;
    color: var(--slate-400);
}

.rv-slot-time {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--slate-900);
    line-height: 1.3;
}

.rv-slot-avail {
    font-size: 0.7rem;
    color: var(--slate-500);
    line-height: 1.2;
}

.rv-slot-avail--success { color: var(--success-600); }
.rv-slot-avail--warning { color: var(--accent-700); }
.rv-slot-avail--danger  { color: var(--danger-500); }

.rv-slot-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--warning-50);
    color: var(--accent-700);
    line-height: 1.3;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.rv-no-horarios {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--slate-500);
    font-size: 0.9rem;
    font-family: var(--font-sans);
}

.rv-no-horarios i {
    display: block;
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 0.5rem;
}


/* ============================================================
   SECTION 10: PASO 1 — Continue button
   ============================================================ */

.rv-btn-continue {
    display: block;
    width: 100%;
    background: var(--steel-600);
    color: #fff;
    font-weight: 600;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: var(--font-sans);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
    margin-top: 0.5rem;
}

.rv-btn-continue:hover {
    background: var(--steel-500);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.rv-btn-continue:active {
    transform: translateY(0);
}

.rv-btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rv-btn-continue:disabled:hover {
    background: var(--steel-600);
    transform: none;
    box-shadow: none;
}

.rv-btn-continue i {
    margin-left: 0.35rem;
    transition: transform 0.2s ease;
}

.rv-btn-continue:hover:not(:disabled) i {
    transform: translateX(3px);
}


/* ============================================================
   SECTION 11: PASO 2 — Summary bar + Zone chips
   ============================================================ */

.rv-summary-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.rv-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: var(--slate-100);
    font-size: 0.82rem;
    font-family: var(--font-sans);
    color: var(--slate-900);
    font-weight: 500;
}

.rv-summary-badge i {
    font-size: 0.9rem;
    color: var(--steel-500);
}

.rv-zone-chips {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.rv-zone-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1.5px solid var(--slate-200);
    background: white;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--slate-900);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    -webkit-appearance: none;
    appearance: none;
}

.rv-zone-chip:hover {
    border-color: var(--steel-500);
    background: var(--steel-50);
}

.rv-zone-chip--active {
    background: var(--steel-600);
    color: #fff;
    border-color: var(--steel-600);
}

.rv-zone-chip--active:hover {
    background: var(--steel-500);
    border-color: var(--steel-500);
}


/* ============================================================
   SECTION 12: PASO 2 — Auto assign button
   ============================================================ */

.rv-auto-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: var(--steel-500);
    color: #fff;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: var(--font-sans);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

.rv-auto-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.rv-auto-btn:hover i {
    animation: rv-sparkle 0.6s ease-in-out;
}

@keyframes rv-sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-10deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.15) rotate(-3deg); }
}

.rv-auto-btn:active {
    transform: translateY(0);
}


/* ============================================================
   SECTION 13: PASO 2 — Plano/SVG overrides
   ============================================================ */

.rv-plano-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-xs);
    background: white;
}

.rv-plano-legend {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    font-family: var(--font-sans);
    color: var(--slate-500);
    background: var(--slate-50);
    border-top: 1px solid var(--slate-200);
    flex-wrap: wrap;
}

.rv-plano-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.rv-plano-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}


/* ============================================================
   SECTION 14: PASO 2 — Mobile mesa list
   ============================================================ */

.rv-mesa-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rv-mesa-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem;
    border-radius: 10px;
    border: 1.5px solid var(--slate-200);
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    background: white;
    font-family: var(--font-sans);
}

.rv-mesa-item--available { cursor: pointer; }

.rv-mesa-item--available:hover {
    border-color: var(--steel-500);
    background: var(--steel-50);
}

.rv-mesa-item--occupied {
    opacity: 0.5;
    cursor: not-allowed;
}

.rv-mesa-item--selected {
    border-color: var(--steel-500);
    background: var(--steel-50);
    border-width: 2px;
}

.rv-mesa-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rv-mesa-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    margin-left: 0.75rem;
}

.rv-mesa-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--slate-900);
}

.rv-mesa-meta {
    font-size: 0.78rem;
    color: var(--slate-500);
}

.rv-mesa-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.rv-mesa-badge--disponible {
    background: var(--success-50);
    color: var(--success-600);
}

.rv-mesa-badge--ocupada {
    background: var(--danger-50);
    color: var(--danger-600);
}

.rv-mesa-badge--inactiva {
    background: var(--slate-100);
    color: var(--slate-500);
}


/* ============================================================
   SECTION 15: PASO 2 — Navigation buttons
   ============================================================ */

.rv-nav-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    max-width: 640px;
    margin: 1.5rem auto 0;
}

.rv-btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--steel-600);
    background: transparent;
    color: var(--steel-600);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

.rv-btn-back:hover {
    background: var(--steel-50);
    color: var(--steel-700);
    text-decoration: none;
}

.rv-btn-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    border: none;
    background: var(--steel-600);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-grow: 1;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

.rv-btn-next:hover {
    background: var(--steel-500);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #fff;
    text-decoration: none;
}

.rv-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* ============================================================
   SECTION 16: PASO 3 — Confirmation summary
   ============================================================ */

.rv-confirm-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    max-width: 560px;
    margin: 0 auto 2rem;
    font-family: var(--font-sans);
    overflow: hidden;
}

.rv-confirm-card-body {
    padding: 2rem;
}

.rv-summary-grid {
    display: grid;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
}

.rv-summary-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--slate-200);
}

.rv-summary-row:last-child { border-bottom: none; }

.rv-summary-row--last { border-bottom: none; }

.rv-summary-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-500);
}

.rv-summary-label i { font-size: 0.9rem; opacity: 0.7; }

.rv-summary-value {
    font-weight: 600;
    color: var(--steel-700);
    font-size: 0.9rem;
    text-align: right;
}

.rv-auto-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--steel-500);
    color: #fff;
    margin-left: 0.35rem;
    vertical-align: middle;
}


/* ============================================================
   SECTION 17: PASO 3 — Occasion + Dietary
   ============================================================ */

.rv-occasion-chips {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rv-occasion-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1.5px solid var(--slate-200);
    background: white;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--slate-900);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    -webkit-appearance: none;
    appearance: none;
}

.rv-occasion-chip:hover {
    border-color: var(--steel-500);
    background: var(--steel-50);
}

.rv-occasion-chip--selected {
    background: var(--steel-600);
    color: #fff;
    border-color: var(--steel-600);
}

.rv-occasion-chip--selected:hover {
    background: var(--steel-500);
    border-color: var(--steel-500);
}

.rv-dietary-checks {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rv-dietary-check {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--slate-200);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.82rem;
    font-family: var(--font-sans);
    background: white;
}

.rv-dietary-check:hover {
    border-color: var(--steel-500);
}

.rv-dietary-check input[type="checkbox"] {
    accent-color: var(--steel-500);
    margin: 0;
    cursor: pointer;
}

.rv-dietary-check--checked {
    background: var(--steel-50);
    border-color: var(--steel-500);
}


/* ============================================================
   SECTION 18: PASO 3 — Note + Confirm button
   ============================================================ */

.rv-nota-area {
    margin-top: 1rem;
}

.rv-nota-input {
    width: 100%;
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    padding: 0.75rem;
    font-size: 0.88rem;
    font-family: var(--font-sans);
    color: var(--slate-900);
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
    outline: none;
}

.rv-nota-input::placeholder {
    color: var(--slate-400);
}

.rv-nota-input:focus {
    border-color: var(--steel-500);
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

.rv-nota-counter {
    font-size: 0.75rem;
    text-align: right;
    color: var(--slate-500);
    margin-top: 0.25rem;
    font-family: var(--font-sans);
}

.rv-btn-confirm {
    display: block;
    width: 100%;
    background: var(--steel-600);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    font-family: var(--font-sans);
    -webkit-appearance: none;
    appearance: none;
    margin-top: 1.5rem;
}

.rv-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    background: var(--steel-500);
}

.rv-btn-confirm:active {
    transform: translateY(0);
}

.rv-btn-confirm--loading {
    pointer-events: none;
    opacity: 0.7;
}

.rv-btn-confirm .rv-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rv-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 0.35rem;
}

@keyframes rv-spin {
    to { transform: rotate(360deg); }
}


/* ============================================================
   SECTION 19: MIS RESERVAS — Portal header
   ============================================================ */

.rv-portal-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.rv-portal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--steel-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    margin: 0;
}

.rv-portal-title i {
    font-size: 1.3rem;
    opacity: 0.8;
}

.rv-portal-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: var(--steel-600);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-sans);
    line-height: 1;
}

.rv-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--steel-600);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-sans);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.rv-btn-new:hover {
    background: var(--steel-500);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.rv-btn-new i { font-size: 0.9rem; }


/* ============================================================
   SECTION 20: MIS RESERVAS — Tabs
   ============================================================ */

.rv-tabs {
    display: flex;
    flex-direction: row;
    gap: 0;
    border-bottom: 2px solid var(--slate-200);
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.rv-tab {
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.rv-tab:hover {
    color: var(--steel-500);
}

.rv-tab--active {
    color: var(--steel-700);
    border-bottom-color: var(--steel-600);
    font-weight: 600;
}

.rv-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--slate-100);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    color: var(--slate-500);
}

.rv-tab--active .rv-tab-count {
    background: var(--steel-600);
    color: #fff;
}


/* ============================================================
   SECTION 21: MIS RESERVAS — Booking cards
   ============================================================ */

.rv-bookings-list {
    max-width: 700px;
    margin: 0 auto;
}

.rv-booking {
    border-radius: 14px;
    border: 1.5px solid var(--slate-200);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    position: relative;
    background: white;
    font-family: var(--font-sans);
}

.rv-booking:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--slate-200);
}

.rv-booking--new {
    border-color: var(--steel-500);
    animation: rv-pulse 2s ease-in-out 3;
}

.rv-booking--past { opacity: 0.7; }
.rv-booking--past:hover { opacity: 0.85; }

.rv-booking-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.rv-booking-date-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rv-booking-date {
    font-weight: 700;
    color: var(--steel-700);
    font-size: 1rem;
    text-transform: capitalize;
    line-height: 1.3;
}

.rv-booking-time {
    font-size: 0.88rem;
    color: var(--slate-500);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.rv-booking-time i { font-size: 0.82rem; }

.rv-booking-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.3;
}

.rv-booking-status--confirmada { background: var(--success-50); color: var(--success-600); }
.rv-booking-status--pendiente  { background: var(--warning-50); color: #92400e; }
.rv-booking-status--cancelada  { background: var(--slate-100);  color: var(--slate-500); text-decoration: line-through; }
.rv-booking-status--noshow     { background: var(--danger-50);  color: var(--danger-600); }
.rv-booking-status--completada { background: var(--steel-100);  color: var(--steel-700); }

.rv-booking-body { margin-top: 0.75rem; }

.rv-booking-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.88rem;
    color: var(--slate-600);
}

.rv-booking-detail-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.rv-booking-detail-item i { font-size: 0.88rem; opacity: 0.65; }

.rv-booking-zona {
    border-left: 3px solid currentColor;
    padding-left: 0.5rem;
    font-weight: 600;
}

.rv-booking-nota {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--slate-500);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.rv-booking-arrived {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--success-600);
    font-weight: 500;
    margin-top: 0.4rem;
}

.rv-booking-arrived i { font-size: 0.85rem; }

.rv-booking-actions {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--slate-100);
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.rv-btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--danger-500);
    background: transparent;
    color: var(--danger-500);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none;
}

.rv-btn-cancel:hover {
    background: var(--danger-50);
    color: var(--danger-600);
    text-decoration: none;
}

.rv-btn-cancel i { font-size: 0.85rem; }

/* QR button */
.rv-btn-qr {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--steel-500);
    background: transparent;
    color: var(--steel-600);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.rv-btn-qr:hover {
    background: var(--steel-50);
    color: var(--steel-700);
}

.rv-btn-qr i { font-size: 0.85rem; }


/* ============================================================
   SECTION 22: MIS RESERVAS — QR Modal
   ============================================================ */

.rv-modal--qr {
    text-align: center;
    max-width: 340px;
    position: relative;
    padding: 1.5rem;
}

.rv-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--slate-500);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.rv-modal-close:hover { color: var(--slate-900); }

.rv-qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--steel-700);
    margin-bottom: 0.5rem;
}

.rv-qr-header i { font-size: 1.3rem; }

.rv-qr-info {
    font-size: 0.85rem;
    color: var(--slate-500);
    margin-bottom: 1rem;
}

.rv-qr-img-wrap {
    display: flex;
    justify-content: center;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.rv-qr-img-wrap img {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 8px;
    background: #fff;
}

.rv-qr-hint {
    font-size: 0.8rem;
    color: var(--slate-500);
    margin: 0;
    line-height: 1.4;
}


/* ============================================================
   SECTION 23: MIS RESERVAS — Empty state
   ============================================================ */

.rv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    color: var(--slate-500);
    text-align: center;
    font-family: var(--font-sans);
}

.rv-empty-icon {
    font-size: 3.5rem;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.rv-empty-text {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0.5rem 0;
    color: var(--slate-500);
}

.rv-empty-sub {
    font-size: 0.82rem;
    color: var(--slate-400);
}


/* ============================================================
   SECTION 24: MIS RESERVAS — Cancel modal + Modal overlay
   ============================================================ */

.rv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.rv-modal {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    max-width: min(380px, calc(100vw - 2rem));
    width: 100%;
    text-align: center;
    font-family: var(--font-sans);
    animation: rv-fade-in 0.2s ease-out;
}

.rv-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-xl);
    font-family: var(--font-sans);
    overflow: hidden;
}

.rv-modal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem;
}

.rv-modal .modal-header .modal-title {
    font-weight: 700;
    color: var(--slate-900);
    font-size: 1.1rem;
}

.rv-modal .modal-body {
    padding: 0.5rem 1.5rem 1rem;
    color: var(--slate-500);
    font-size: 0.9rem;
    line-height: 1.5;
}

.rv-modal .modal-footer {
    border-top: none;
    padding: 0 1.5rem 1.5rem;
    gap: 0.5rem;
}

.rv-modal .btn-close { opacity: 0.5; }
.rv-modal .btn-close:hover { opacity: 0.8; }

.rv-modal-icon {
    font-size: 3rem;
    color: var(--warning-500);
    margin-bottom: 0.75rem;
}

.rv-modal-text {
    font-size: 0.95rem;
    color: var(--slate-900);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.rv-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.rv-modal-btn {
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.rv-modal-btn--outline {
    background: transparent;
    border: 1.5px solid var(--slate-200);
    color: var(--slate-500);
}

.rv-modal-btn--outline:hover {
    border-color: var(--slate-500);
    background: var(--slate-50);
}

.rv-modal-btn--danger {
    background: var(--danger-500);
    color: #fff;
}

.rv-modal-btn--danger:hover {
    background: var(--danger-600);
}


/* ============================================================
   SECTION 25: SHARED — Animations
   ============================================================ */

@keyframes rv-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(70, 130, 180, 0); }
    50%      { box-shadow: 0 0 0 6px rgba(70, 130, 180, 0.1); }
}

@keyframes rv-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rv-fade-in {
    animation: rv-fade-in 0.3s ease-out;
}

/* Staggered fade-in for children */
.rv-fade-in-stagger > * {
    opacity: 0;
    transform: translateY(8px);
    animation: rv-fade-in 0.35s ease-out forwards;
}

.rv-fade-in-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.rv-fade-in-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.rv-fade-in-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.rv-fade-in-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.rv-fade-in-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.rv-fade-in-stagger > *:nth-child(6) { animation-delay: 0.3s; }


/* ============================================================
   SECTION 26: SHARED — Alerts
   ============================================================ */

.rv-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-family: var(--font-sans);
    margin-bottom: 1rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.rv-alert i { font-size: 1.1rem; flex-shrink: 0; }

.rv-alert--warning {
    background: var(--warning-50);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.rv-alert--danger {
    background: var(--danger-50);
    color: var(--danger-600);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.rv-alert--info {
    background: var(--steel-50);
    color: var(--steel-700);
    border: 1px solid rgba(70, 130, 180, 0.15);
}


/* ============================================================
   SECTION 27: SHARED — Page wrapper + Card variants
   ============================================================ */

.rv-page {
    font-family: var(--font-sans);
    padding-bottom: 2rem;
}

.rv-card--auto {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.rv-card--confirm { max-width: 560px; }

.rv-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.rv-card-header-icon {
    font-size: 2.5rem;
    color: var(--success-500);
    display: block;
    margin-bottom: 0.5rem;
}

.rv-card-header .rv-card-title { justify-content: center; }
.rv-card-header .rv-card-subtitle { text-align: center; }


/* ============================================================
   SECTION 28: SHARED — Plano controls & tooltip
   ============================================================ */

.rv-plano-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

.rv-plano-ctrl {
    width: 36px;
    height: 36px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-900);
    transition: all 0.15s ease;
}

.rv-plano-ctrl:hover {
    background: var(--slate-100);
    border-color: var(--steel-500);
    color: var(--steel-500);
}

.rv-tooltip {
    position: absolute;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
    z-index: 20;
    pointer-events: none;
    min-width: 150px;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    display: none;
}

.rv-tooltip--show { display: block; }

.rv-tooltip-name { font-weight: 700; color: var(--steel-700); margin-bottom: 0.2rem; }
.rv-tooltip-zona { color: var(--slate-500); font-size: 0.8rem; margin-bottom: 0.15rem; }
.rv-tooltip-cap  { color: var(--slate-500); font-size: 0.8rem; }


/* ============================================================
   SECTION 29: SHARED — Legend, Zones, Badges
   ============================================================ */

.rv-legend {
    display: flex;
    gap: 1.25rem;
    padding: 0.85rem 0.5rem;
    font-size: 0.82rem;
    color: var(--slate-500);
    font-family: var(--font-sans);
    flex-wrap: wrap;
    max-width: 640px;
    margin: 0 auto;
}

.rv-legend-item { display: flex; align-items: center; gap: 0.4rem; }

.rv-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.rv-legend-dot--available { background: var(--success-500); }
.rv-legend-dot--occupied  { background: var(--danger-500); }
.rv-legend-dot--inactive  { background: var(--slate-500); }

/* Zone headers */
.rv-zone-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0;
    margin-top: 0.75rem;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 0.5rem;
}

.rv-zone-header:first-child { margin-top: 0; }

.rv-zone-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

.rv-zone-name { font-weight: 600; font-size: 0.9rem; color: var(--slate-900); font-family: var(--font-sans); }

.rv-zone-desc { font-size: 0.78rem; color: var(--slate-500); margin-left: 0.25rem; }
.rv-zone-desc::before { content: "\2014 "; }

/* Badges */
.rv-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-sans);
    white-space: nowrap;
}

.rv-badge--available { background: var(--success-50); color: var(--success-600); }
.rv-badge--occupied  { background: var(--danger-50);  color: var(--danger-600); }
.rv-badge--inactive  { background: var(--slate-100);  color: var(--slate-500); }

.rv-mesa-detail { display: flex; flex-direction: column; }

.rv-mesa-item--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.rv-hint {
    text-align: center;
    font-size: 0.82rem;
    color: var(--slate-500);
    font-family: var(--font-sans);
    margin-top: 0.5rem;
}


/* ============================================================
   SECTION 30: SHARED — Form sections, Chips, Checks, Textarea
   ============================================================ */

.rv-form-section { margin-bottom: 1.25rem; }

.rv-form-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--slate-500);
    margin-bottom: 0.6rem;
    font-family: var(--font-sans);
}

.rv-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.rv-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border: 1.5px solid var(--slate-200);
    border-radius: 9999px;
    background: white;
    color: var(--slate-900);
    font-size: 0.85rem;
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rv-chip:hover {
    border-color: var(--steel-500);
    background: var(--steel-50);
}

.rv-chip--selected {
    background: var(--steel-600);
    color: #fff;
    border-color: var(--steel-600);
}

.rv-chip--selected:hover {
    background: var(--steel-700);
    border-color: var(--steel-700);
}

.rv-chip-emoji { font-size: 1rem; line-height: 1; }

.rv-checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.rv-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    user-select: none;
}

.rv-check:hover {
    border-color: var(--steel-500);
    background: var(--steel-50);
}

.rv-check:has(.rv-check-input:checked) {
    background: var(--steel-50);
    border-color: var(--steel-500);
}

.rv-check-input { width: 16px; height: 16px; accent-color: var(--steel-500); cursor: pointer; margin: 0; }
.rv-check-box { display: none; }
.rv-check-text { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 500; color: var(--slate-900); }
.rv-check-emoji { font-size: 1rem; line-height: 1; }

.rv-textarea {
    width: 100%;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-size: 0.88rem;
    font-family: var(--font-sans);
    color: var(--slate-900);
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
    box-sizing: border-box;
}

.rv-textarea:focus {
    outline: none;
    border-color: var(--steel-500);
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

.rv-textarea::placeholder { color: var(--slate-400); }

.rv-char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-top: 0.35rem;
    font-family: var(--font-sans);
}


/* ============================================================
   SECTION 31: SHARED — Spinner, back link, button spinner
   ============================================================ */

.rv-btn-spinner { display: inline-flex; align-items: center; gap: 0.5rem; }
.rv-btn-spinner--hidden { display: none; }

.rv-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: rv-spin 0.6s linear infinite;
}

.rv-back-link { text-align: center; margin-top: 1rem; }

.rv-link {
    color: var(--steel-600);
    text-decoration: none;
    font-size: 0.88rem;
    font-family: var(--font-sans);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s ease;
}

.rv-link:hover {
    color: var(--steel-500);
    text-decoration: underline;
}


/* ============================================================
   SECTION 32: PASO 2 REDESIGN — Zone selector cards
   ============================================================ */

.rv-zone-selector {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.rv-zone-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    background: white;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    text-align: left;
    padding: 0;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.rv-zone-card:hover {
    border-color: var(--steel-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.rv-zone-card:active { transform: translateY(0); box-shadow: var(--shadow-xs); }

.rv-zone-card--empty { opacity: 0.5; cursor: not-allowed; }
.rv-zone-card--empty:hover { border-color: var(--slate-200); box-shadow: none; transform: none; }

.rv-zone-card-accent { width: 5px; align-self: stretch; flex-shrink: 0; border-radius: 0; }
.rv-zone-card-body { flex: 1; padding: 0.85rem 1rem; min-width: 0; }
.rv-zone-card-name { font-size: 0.95rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.15rem; }
.rv-zone-card-desc { font-size: 0.78rem; color: var(--slate-500); margin-bottom: 0.35rem; line-height: 1.3; }

.rv-zone-card-avail {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success-600);
}

.rv-zone-avail-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success-500); flex-shrink: 0; }
.rv-zone-avail-dot--none { background: var(--slate-500); }
.rv-zone-card--empty .rv-zone-card-avail { color: var(--slate-500); }

.rv-zone-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    color: var(--slate-400);
    font-size: 1rem;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.rv-zone-card:hover .rv-zone-card-arrow {
    color: var(--steel-500);
    transform: translateX(2px);
}


/* ============================================================
   SECTION 33: PASO 2 REDESIGN — Back to zones, Mesa section & grid
   ============================================================ */

.rv-back-zone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--slate-200);
    background: white;
    color: var(--slate-500);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
}

.rv-back-zone:hover {
    border-color: var(--steel-500);
    color: var(--steel-500);
    background: var(--steel-50);
}

.rv-mesa-section {
    margin-bottom: 0.5rem;
    animation: rv-fadeSlideUp 0.3s ease;
}

@keyframes rv-fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rv-mesa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}


/* ============================================================
   SECTION 34: PASO 2 REDESIGN — Mesa cards
   ============================================================ */

.rv-mesa-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 2px solid var(--slate-200);
    background: white;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    text-align: center;
    min-width: 110px;
}

.rv-mesa-card:hover:not(:disabled) {
    border-color: var(--steel-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.rv-mesa-card--selected {
    border-color: var(--steel-500) !important;
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.2) !important;
    background: var(--steel-50);
}

.rv-mesa-card--selected::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--steel-600);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.rv-mesa-card--occupied { opacity: 0.5; cursor: not-allowed; }
.rv-mesa-card--inactive { opacity: 0.35; cursor: not-allowed; }

.rv-mesa-card-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 64px;
    background: var(--slate-50);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}

.rv-mesa-card-preview svg { width: 56px; height: 56px; }

.rv-mesa-card-info { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }

.rv-mesa-card-number { font-size: 1.1rem; font-weight: 700; color: var(--slate-900); }

.rv-mesa-card--occupied .rv-mesa-card-number,
.rv-mesa-card--inactive .rv-mesa-card-number { color: var(--slate-500); }

.rv-mesa-card-shape { display: flex; align-items: center; gap: 0.25rem; font-size: 0.7rem; color: var(--slate-500); font-weight: 500; }
.rv-mesa-card-shape i { font-size: 0.72rem; }

.rv-mesa-card-cap { font-size: 0.78rem; color: var(--slate-500); }
.rv-mesa-card-cap i { font-size: 0.72rem; color: var(--slate-500); }

.rv-mesa-card-status { margin-top: 0.15rem; }

/* Status pills */
.rv-status-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    line-height: 1.4;
}

.rv-status-pill--ok  { background: var(--success-50); color: var(--success-600); }
.rv-status-pill--no  { background: var(--danger-50);  color: var(--danger-600); }
.rv-status-pill--off { background: var(--slate-100);  color: var(--slate-500); }


/* ============================================================
   SECTION 35: PASO 2 REDESIGN — Selected mesa strip
   ============================================================ */

.rv-selected-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding: 0.65rem 1rem;
    background: var(--steel-50);
    border: 1.5px solid var(--steel-500);
    border-radius: var(--radius-md);
    animation: rv-fadeSlideUp 0.2s ease;
}

.rv-selected-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--steel-700);
    font-family: var(--font-sans);
    font-weight: 500;
}

.rv-selected-info i { font-size: 1.05rem; }
.rv-selected-info strong { font-weight: 700; }

.rv-selected-change {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--steel-600);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    font-family: var(--font-sans);
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

.rv-selected-change:hover { color: var(--steel-800); }


/* ============================================================
   SECTION 36: PASO 2 REDESIGN — Zone tabs, View toggle, Floor plan
   ============================================================ */

.rv-zone-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--slate-200);
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.rv-zone-tabs::-webkit-scrollbar { display: none; }

.rv-zone-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-500);
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    white-space: nowrap;
    border-radius: 6px 6px 0 0;
    min-width: 100px;
}

.rv-zone-tab:hover { color: var(--steel-500); background: var(--steel-50); }

.rv-zone-tab--active,
.rv-zone-tab.active {
    color: var(--steel-700);
    border-bottom-color: var(--steel-600);
    font-weight: 600;
}

.rv-zone-tab:disabled,
.rv-zone-tab--empty { opacity: 0.4; cursor: not-allowed; }

.rv-zone-tab-name { font-weight: inherit; }

.rv-zone-tab-count { font-size: 0.75rem; color: var(--success-500); font-weight: 600; }
.rv-zone-tab:disabled .rv-zone-tab-count { color: var(--slate-400); }

/* View toggle */
.rv-view-toggle-wrap { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }

.rv-view-toggle {
    display: inline-flex;
    background: var(--slate-100);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 2px;
    margin-bottom: 1rem;
}

.rv-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--slate-500);
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.rv-view-btn:hover { color: var(--slate-900); }

.rv-view-btn--active {
    background: #fff;
    color: var(--steel-700);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: 600;
}

/* Floor plan */
.rv-floor-plan {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 16px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rv-floor-plan svg { width: 100%; max-height: 450px; }
.rv-floor-plan .mesa-group { cursor: pointer; transition: opacity 0.2s; }
.rv-floor-plan .mesa-group:hover .mesa-surface { stroke-width: 3; filter: brightness(0.95); }
.rv-floor-plan .mesa-group.mesa-selected .mesa-surface { stroke: var(--steel-500) !important; stroke-width: 3 !important; }

/* Content area */
.rv-content-area { min-height: 200px; }

.rv-zone-label-inline { font-size: 0.85rem; color: var(--slate-500); font-weight: 500; }


/* ============================================================
   SECTION 37: MODIFY RESERVATION PANEL
   ============================================================ */

.rv-modify-panel {
    background: var(--steel-50);
    border: 1px solid var(--steel-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.75rem;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to   { opacity: 1; max-height: 500px; }
}

.rv-modify-field { margin-bottom: 0.75rem; }
.rv-modify-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }


/* ============================================================
   SECTION 38: RESPONSIVE — Mobile & tablet
   ============================================================ */

@media (max-width: 768px) {
    .rv-card { margin: 1rem; padding: 1.25rem; border-radius: 14px; }
    .rv-stepper { padding: 1.25rem 0.5rem 1rem; gap: 0; }
    .rv-step-num { width: 36px; height: 36px; font-size: 0.82rem; }
    .rv-step-line { width: 36px; }
    .rv-step-text { font-size: 0.68rem; }
    .rv-card-title { font-size: 1.15rem; }
    .rv-date-chip { min-width: 56px; padding: 0.5rem 0.35rem; }
    .rv-date-chip-num { font-size: 1.1rem; }
    .rv-slots { grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); }
    .rv-dates-arrow { display: none; }
    .rv-party-custom { margin-left: 0.25rem; padding-left: 0.5rem; }
    .rv-booking-details { flex-direction: column; gap: 0.25rem; }
    .rv-portal-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .rv-confirm-card { margin: 1rem; }
    .rv-confirm-card-body { padding: 1.25rem; }
    .rv-nav-buttons { padding: 0 1rem; }
    .rv-summary-bar { justify-content: flex-start; }
    .rv-alert { margin: 0 1rem 1rem; }
    .rv-legend { padding: 0.6rem 1rem; }
    .rv-chips { gap: 0.4rem; }
    .rv-chip { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
    .rv-checks { gap: 0.4rem; }
    .rv-check { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
    .rv-modal { padding: 1.5rem; margin: 0 1rem; }
}

@media (max-width: 576px) {
    .rv-zone-tabs { gap: 2px; }
    .rv-zone-tab { padding: 8px 14px; font-size: 0.82rem; min-width: 80px; }
    .rv-mesa-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
    .rv-mesa-card { padding: 8px; min-width: 90px; }
    .rv-mesa-card-preview { height: 50px; }
    .rv-mesa-card-preview svg { width: 44px; height: 44px; }
    .rv-view-btn { padding: 5px 10px; font-size: 0.78rem; }
}

@media (max-width: 480px) {
    .rv-party-pills { flex-wrap: wrap; }
    .rv-party { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .rv-party-custom { border-left: none; margin-left: 0; padding-left: 0; }
    .rv-date-chip { min-width: 52px; padding: 0.45rem 0.3rem; }
    .rv-date-chip-num { font-size: 1rem; }
    .rv-date-chip-dow { font-size: 0.65rem; }
    .rv-slots { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 0.4rem; }
    .rv-slot { padding: 0.5rem 0.3rem; }
    .rv-slot-time { font-size: 0.88rem; }
    .rv-card { margin: 0.75rem; padding: 1rem; }
    .rv-stepper { padding: 1rem 0.25rem 0.75rem; }
    .rv-step-num { width: 32px; height: 32px; font-size: 0.78rem; }
    .rv-step-line { width: 28px; }
    .rv-step-text { font-size: 0.62rem; }
    .rv-booking { padding: 1rem; }
    .rv-tabs { gap: 0; }
    .rv-tab { padding: 0.4rem 0.65rem; font-size: 0.82rem; }
    .rv-chips { flex-direction: column; }
    .rv-chip { justify-content: center; }
    .rv-modal-actions { flex-direction: column; }
    .rv-mesa-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .rv-mesa-card { padding: 0.85rem 0.5rem 0.75rem; }
    .rv-mesa-card-number { font-size: 1.3rem; }
    .rv-zone-card-body { padding: 0.75rem 0.85rem; }
    .rv-selected-strip { flex-direction: column; gap: 0.4rem; text-align: center; }
}

@media (min-width: 768px) {
    .rv-zone-selector { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .rv-mesa-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
}

@media (min-width: 1024px) {
    .rv-zone-selector { grid-template-columns: repeat(3, 1fr); }
    .rv-mesa-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
}


/* ============================================================
   SECTION 39: PRINT STYLES
   ============================================================ */

@media print {
    .rv-stepper,
    .rv-btn-continue,
    .rv-btn-confirm,
    .rv-btn-cancel,
    .rv-btn-new,
    .rv-nav-buttons,
    .rv-booking-actions,
    .rv-modal-overlay {
        display: none !important;
    }

    .rv-card,
    .rv-confirm-card,
    .rv-booking {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}


/* ================================================================
   ================================================================
   PREMIUM REDESIGN — "Mis Reservas" (.mr- prefix)
   Uses design-system.css tokens (--steel-*, --slate-*, --font-sans)
   ================================================================
   ================================================================ */

/* Google Font for premium display headings */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');

:root {
    /* MisReservas premium tokens (supplement design system) */
    --mr-font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --mr-gold: #d4a853;
    --mr-gold-light: #e8c97a;
    --mr-gold-glow: rgba(212, 168, 83, 0.4);
    --mr-glass-white: rgba(255, 255, 255, 0.95);
    --mr-glass-blur: 16px;
    --mr-glass-border: rgba(255, 255, 255, 0.25);
    --mr-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --mr-transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --mr-shadow-card: 0 2px 12px rgba(30, 58, 95, 0.08);
    --mr-shadow-card-hover: 0 8px 32px rgba(30, 58, 95, 0.14);
    --mr-shadow-elevated: 0 12px 40px rgba(30, 58, 95, 0.18);
    --mr-radius-card: 16px;
    --mr-radius-pill: 999px;
}


/* ============================================================
   SECTION 40: MR — Hero header
   ============================================================ */

.mr-hero {
    position: relative;
    background: linear-gradient(135deg, var(--steel-600) 0%, var(--steel-700) 50%, var(--steel-900) 100%);
    padding: 2.25rem 2rem 3rem;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
}

.mr-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, transparent, transparent 20px, rgba(255, 255, 255, 0.03) 20px, rgba(255, 255, 255, 0.03) 21px);
    pointer-events: none;
    z-index: 0;
}

.mr-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.mr-hero > * { position: relative; z-index: 1; }

.mr-hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.mr-hero-content { position: relative; z-index: 1; }

.mr-hero-title {
    font-family: var(--mr-font-display);
    font-size: 2rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 0.35rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.mr-hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.25rem;
    line-height: 1.4;
}

.mr-hero-stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.mr-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--mr-radius-pill);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--mr-transition-fast);
}

.mr-hero-stat:hover { background: rgba(255, 255, 255, 0.18); }
.mr-hero-stat-count { font-weight: 700; font-size: 0.85rem; }
.mr-hero-stat-num { font-family: var(--font-sans); font-size: var(--text-2xl); font-weight: var(--font-bold); color: #ffffff; line-height: 1; }
.mr-hero-stat-label { font-family: var(--font-sans); font-size: var(--text-xs); font-weight: var(--font-medium); color: rgba(255, 255, 255, 0.6); text-transform: uppercase; letter-spacing: 0.05em; }
.mr-hero-stat i { font-size: 0.85rem; opacity: 0.85; }

.mr-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    border-radius: var(--mr-radius-pill);
    background: #ffffff;
    color: var(--steel-700);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--mr-transition-fast);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}

.mr-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    color: var(--steel-900);
    text-decoration: none;
    background: #ffffff;
}

.mr-hero-cta:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.mr-hero-cta i { font-size: 0.95rem; }


/* ============================================================
   SECTION 41: MR — Segment control tabs
   ============================================================ */

.mr-tabs-wrap,
.mr-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -24px;
    position: relative;
    z-index: 10;
    margin-bottom: 1.75rem;
    padding: 0 1rem;
}

.mr-tabs {
    display: flex;
    flex-direction: row;
    position: relative;
    background: var(--mr-glass-white);
    backdrop-filter: blur(var(--mr-glass-blur));
    -webkit-backdrop-filter: blur(var(--mr-glass-blur));
    border: 1px solid var(--mr-glass-border);
    border-radius: var(--mr-radius-pill);
    padding: 4px;
    max-width: 320px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(30, 58, 95, 0.1), 0 1px 3px rgba(30, 58, 95, 0.06);
}

.mr-tabs-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--steel-600);
    border-radius: var(--mr-radius-pill);
    transition: transform var(--mr-transition);
    z-index: 0;
    box-shadow: 0 2px 8px rgba(70, 130, 180, 0.3);
}

.mr-tabs.mr-tabs--historial .mr-tabs-indicator,
.mr-tabs-indicator--right {
    transform: translateX(100%);
}

.mr-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    border: none;
    border-radius: var(--mr-radius-pill);
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-500);
    cursor: pointer;
    transition: color var(--mr-transition-fast);
    position: relative;
    z-index: 1;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    min-width: 120px;
    text-align: center;
}

.mr-tab:hover { color: var(--steel-600); }

.mr-tab--active { color: #ffffff; }
.mr-tab--active:hover { color: #ffffff; }

.mr-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.35rem;
    border-radius: var(--mr-radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    background: var(--slate-100);
    color: var(--slate-500);
    transition: all var(--mr-transition-fast);
}

.mr-tab--active .mr-tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}


/* ============================================================
   SECTION 42: MR — Booking cards
   ============================================================ */

.mr-cards-list {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mr-cards { display: flex; flex-direction: column; gap: 0.75rem; }

.mr-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mr-card {
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: var(--mr-radius-card);
    border: 1.5px solid var(--slate-200);
    overflow: hidden;
    margin-bottom: 0.875rem;
    transition: all var(--mr-transition);
    position: relative;
    font-family: var(--font-sans);
    box-shadow: var(--mr-shadow-card);
    animation: mr-slideUp 0.4s ease-out both;
}

.mr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mr-shadow-card-hover);
    border-color: var(--slate-200);
}

/* Date accent block */
.mr-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    min-width: 72px;
    padding: 1rem 0.5rem;
    background: linear-gradient(180deg, var(--steel-600) 0%, var(--steel-700) 100%);
    color: #ffffff;
    text-align: center;
    flex-shrink: 0;
}

.mr-card-date-day,
.mr-card-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.mr-card-date-month,
.mr-card-month {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.2rem;
}

.mr-card-date-weekday,
.mr-card-dow {
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: capitalize;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.15rem;
}

/* Muted date for past */
.mr-card--past .mr-card-date { background: linear-gradient(180deg, #6b7280 0%, #4b5563 100%); }
.mr-card--past .mr-card-day { color: var(--slate-500); }
.mr-card--past .mr-card-month { color: var(--slate-400); }

/* Content block */
.mr-card-content,
.mr-card-body {
    flex: 1;
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.mr-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

/* Status badge */
.mr-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--mr-radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
    z-index: 2;
}

.mr-card-status i { font-size: 0.7rem; }

.mr-card-status--confirmada { background: var(--success-50); color: var(--success-600); }
.mr-card-status--pendiente  { background: var(--warning-50); color: var(--warning-600); }
.mr-card-status--cancelada  { background: var(--slate-100);  color: var(--slate-500); text-decoration: line-through; }
.mr-card-status--noshow     { background: var(--danger-50);  color: var(--danger-600); }
.mr-card-status--completada { background: var(--info-50);    color: var(--steel-600); }

/* Time */
.mr-card-time {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--slate-700);
}

.mr-card-time i { color: var(--slate-400); font-size: 0.875rem; }

/* Details */
.mr-card-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.mr-card-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--slate-600);
}

.mr-card-detail i { color: var(--slate-400); font-size: 0.8rem; }

.mr-card-zona {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--zona-color, var(--slate-600));
    background: color-mix(in srgb, var(--zona-color, var(--slate-400)) 10%, transparent);
    border-left: 3px solid var(--zona-color, var(--slate-400));
}

/* Note */
.mr-card-nota {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    color: var(--slate-500);
    font-style: italic;
    padding: 0.375rem 0.5rem;
    background: var(--slate-50);
    border-radius: 6px;
}

.mr-card-nota i { color: var(--slate-400); margin-top: 1px; flex-shrink: 0; }

/* Arrived */
.mr-card-arrived {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--success-600);
    background: var(--success-50);
    padding: 0.2rem 0.6rem;
    border-radius: var(--mr-radius-pill);
    margin-top: 0.5rem;
    width: fit-content;
}

.mr-card-arrived i { font-size: 0.82rem; }

/* Actions */
.mr-card-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.375rem;
    border-top: 1px solid var(--slate-100);
}

.mr-card--past .mr-card-actions { display: none; }

/* Action buttons */
.mr-btn,
.mr-btn-qr,
.mr-btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
}

.mr-btn i { font-size: 0.85rem; }

.mr-btn--qr,
.mr-btn-qr {
    color: var(--steel-600);
    border-color: var(--steel-200);
    background: var(--steel-50);
}

.mr-btn--qr:hover,
.mr-btn-qr:hover {
    background: var(--steel-100);
    border-color: var(--steel-300);
    color: var(--steel-700);
}

.mr-btn--cancel,
.mr-btn-cancel {
    color: var(--danger-500);
    border-color: var(--danger-50);
    background: transparent;
}

.mr-btn--cancel:hover,
.mr-btn-cancel:hover {
    background: var(--danger-50);
    border-color: var(--danger-500);
    color: var(--danger-600);
}


/* ============================================================
   SECTION 43: MR — Card states (new, past)
   ============================================================ */

.mr-card--new {
    border-color: var(--mr-gold);
    box-shadow: var(--mr-shadow-card), 0 0 0 0 var(--mr-gold-glow);
    animation: mr-glow 2.5s ease-in-out 3;
}

.mr-card--new:hover { border-color: var(--mr-gold-light); }

.mr-card--past {
    opacity: 0.75;
    transition: opacity var(--mr-transition-fast), transform var(--mr-transition), box-shadow var(--mr-transition);
}

.mr-card--past:hover { opacity: 0.9; }


/* ============================================================
   SECTION 44: MR — Empty state
   ============================================================ */

.mr-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 2rem;
    text-align: center;
    font-family: var(--font-sans);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.mr-empty::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(70, 130, 180, 0.04) 0%, transparent 70%);
    border-radius: var(--mr-radius-card);
    pointer-events: none;
}

.mr-empty > * { position: relative; z-index: 1; }

.mr-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-100);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--slate-400);
}

.mr-empty-title {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--slate-700);
    margin: 0 0 0.25rem;
}

.mr-empty-text {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--slate-400);
    margin: 0 0 1.25rem;
}

.mr-empty-sub {
    font-size: 0.85rem;
    color: var(--slate-500);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.mr-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--steel-500);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mr-empty-cta:hover {
    background: var(--steel-600);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(70, 130, 180, 0.25);
}

.mr-empty-cta:active { transform: translateY(0); }
.mr-empty-cta i { font-size: 0.95rem; }


/* ============================================================
   SECTION 45: MR — QR + Cancel Modals
   ============================================================ */

.mr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 58, 95, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: mr-fadeIn 0.2s ease-out;
}

.mr-qr-modal {
    background: var(--mr-glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--mr-glass-border);
    border-radius: 20px;
    max-width: 380px;
    width: 100%;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: var(--mr-shadow-elevated);
    animation: mr-slideUp 0.3s ease-out;
    font-family: var(--font-sans);
}

.mr-qr-modal-close,
.mr-qr-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background: var(--slate-100);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-500);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mr-qr-modal-close:hover,
.mr-qr-close:hover {
    background: var(--slate-200);
    color: var(--slate-700);
}

.mr-qr-modal-header,
.mr-qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--steel-700);
    margin-bottom: 0.5rem;
}

.mr-qr-modal-header i,
.mr-qr-header i { font-size: 1.25rem; color: var(--steel-500); }

.mr-qr-modal-info,
.mr-qr-info {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--slate-500);
    margin-bottom: 1.25rem;
}

.mr-qr-img-wrap,
.mr-qr-img {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    margin: 0 auto 1rem;
    max-width: 240px;
}

.mr-qr-img-wrap img,
.mr-qr-img img {
    border: 2px solid var(--steel-500);
    border-radius: var(--radius-lg);
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(70, 130, 180, 0.12);
    animation: mr-qrPulse 3s ease-in-out infinite;
    width: 200px;
    height: 200px;
}

.mr-qr-details-card {
    background: var(--slate-50);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.mr-qr-details-card-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--slate-600);
    padding: 0.2rem 0;
}

.mr-qr-details-card-row i { font-size: 0.82rem; opacity: 0.6; width: 16px; text-align: center; }
.mr-qr-details-card-row strong { color: var(--slate-900); font-weight: 600; }

.mr-qr-modal-hint,
.mr-qr-hint {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    color: var(--slate-400);
    margin: 0;
    font-style: italic;
}

/* Cancel modal */
.mr-cancel-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: mrModalIn 0.25s ease;
}

@keyframes mrModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.mr-cancel-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warning-50);
    border-radius: 50%;
}

.mr-cancel-icon i { font-size: 1.5rem; color: var(--warning-600); }

.mr-cancel-text {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--slate-700);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.mr-cancel-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.mr-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mr-cancel-btn--outline { background: #ffffff; color: var(--slate-600); border-color: var(--slate-300); }
.mr-cancel-btn--outline:hover { background: var(--slate-50); border-color: var(--slate-400); }
.mr-cancel-btn--danger { background: var(--danger-500); color: #ffffff; border-color: var(--danger-500); }
.mr-cancel-btn--danger:hover { background: var(--danger-600); border-color: var(--danger-600); }


/* ============================================================
   SECTION 46: MR — Animations
   ============================================================ */

@keyframes mr-slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes mr-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes mr-glow {
    0%   { box-shadow: var(--mr-shadow-card), 0 0 0 0 var(--mr-gold-glow); }
    50%  { box-shadow: var(--mr-shadow-card), 0 0 0 6px rgba(212, 168, 83, 0.15); }
    100% { box-shadow: var(--mr-shadow-card), 0 0 0 0 var(--mr-gold-glow); }
}

@keyframes mr-qrPulse {
    0%, 100% { border-color: var(--steel-600); box-shadow: 0 4px 16px rgba(70, 130, 180, 0.12); }
    50%      { border-color: var(--steel-500); box-shadow: 0 4px 20px rgba(70, 130, 180, 0.22); }
}

/* Stagger */
.mr-stagger .mr-card { opacity: 0; transform: translateY(12px); animation: mrStaggerIn 0.4s ease forwards; }
.mr-stagger .mr-card:nth-child(1)  { animation-delay: 0.04s; }
.mr-stagger .mr-card:nth-child(2)  { animation-delay: 0.08s; }
.mr-stagger .mr-card:nth-child(3)  { animation-delay: 0.12s; }
.mr-stagger .mr-card:nth-child(4)  { animation-delay: 0.16s; }
.mr-stagger .mr-card:nth-child(5)  { animation-delay: 0.20s; }
.mr-stagger .mr-card:nth-child(6)  { animation-delay: 0.24s; }
.mr-stagger .mr-card:nth-child(7)  { animation-delay: 0.28s; }
.mr-stagger .mr-card:nth-child(8)  { animation-delay: 0.32s; }
.mr-stagger .mr-card:nth-child(9)  { animation-delay: 0.36s; }
.mr-stagger .mr-card:nth-child(10) { animation-delay: 0.40s; }

@keyframes mrStaggerIn { to { opacity: 1; transform: translateY(0); } }

.mr-stagger > *:nth-child(1) { animation-delay: 0s; }
.mr-stagger > *:nth-child(2) { animation-delay: 0.06s; }
.mr-stagger > *:nth-child(3) { animation-delay: 0.12s; }
.mr-stagger > *:nth-child(4) { animation-delay: 0.18s; }
.mr-stagger > *:nth-child(5) { animation-delay: 0.24s; }
.mr-stagger > *:nth-child(6) { animation-delay: 0.30s; }
.mr-stagger > *:nth-child(7) { animation-delay: 0.36s; }
.mr-stagger > *:nth-child(8) { animation-delay: 0.42s; }
.mr-stagger > *:nth-child(9) { animation-delay: 0.48s; }
.mr-stagger > *:nth-child(10) { animation-delay: 0.54s; }


/* ============================================================
   SECTION 47: MR — Utilities
   ============================================================ */

.mr-page {
    background: var(--slate-50);
    min-height: 100vh;
    padding-bottom: 2rem;
}

.mr-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--steel-500), transparent);
    margin: 0 auto 1.5rem;
    border: none;
    opacity: 0.4;
}

.mr-section { display: none; }
.mr-section--active { display: block; animation: mr-slideUp 0.25s ease-out; }

/* Inline date helper for very small screens */
.mr-card-time-inline-date {
    display: none;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--steel-600);
    margin-right: 0.5rem;
}


/* ============================================================
   SECTION 48: MR — Responsive
   ============================================================ */

@media (max-width: 768px) {
    .mr-hero { padding: 1.75rem 1.25rem 2.5rem; min-height: 160px; border-radius: 0 0 20px 20px; }
    .mr-hero-title { font-size: 1.6rem; }
    .mr-hero-subtitle { font-size: 0.82rem; }
    .mr-hero-stats { gap: 0.5rem; }
    .mr-hero-stat { padding: 0.35rem 0.7rem; font-size: 0.75rem; }
    .mr-hero-cta { padding: 0.5rem 1.25rem; font-size: 0.82rem; }
    .mr-tabs-wrapper, .mr-tabs-wrap { margin-top: -22px; margin-bottom: 1.25rem; padding: 0 0.75rem; }
    .mr-tabs { max-width: 100%; }
    .mr-card { flex-direction: column; }
    .mr-card-date { width: 100%; min-width: unset; flex-direction: row; gap: 0.5rem; padding: 0.65rem 1rem; }
    .mr-card-date-day { font-size: 1.35rem; }
    .mr-card-date-month { font-size: 0.7rem; margin-top: 0; }
    .mr-card-date-weekday { font-size: 0.65rem; margin-top: 0; }
    .mr-card-date-month::before { content: '\00B7'; margin-right: 0.35rem; opacity: 0.5; }
    .mr-card-content, .mr-card-body { padding: 1rem; }
    .mr-card-status { position: relative; top: unset; right: unset; margin-left: auto; }
    .mr-card-time { font-size: 0.92rem; }
    .mr-cards-list { padding: 0 0.75rem; }
    .mr-empty { padding: 2.5rem 1.5rem; }
    .mr-qr-modal { max-width: 340px; padding: 1.5rem; }
    .mr-cancel-actions { flex-direction: column; }
    .mr-cancel-btn { width: 100%; }
}

@media (max-width: 640px) {
    .mr-hero { flex-direction: column; padding: 1.75rem 1.25rem 3rem; gap: 1rem; }
    .mr-hero-title { font-size: var(--text-2xl); }
    .mr-hero-cta { align-self: flex-start; }
    .mr-card { flex-direction: column; }
    .mr-card-date { flex-direction: row; min-width: unset; border-right: none; border-bottom: 1px solid var(--slate-200); padding: 0.625rem 1rem; gap: 0.5rem; justify-content: flex-start; }
    .mr-card-day { font-size: var(--text-xl); }
    .mr-card-month { font-size: var(--text-sm); }
    .mr-card-dow { font-size: var(--text-xs); }
    .mr-tab { min-width: 100px; padding: 0.5rem 1rem; }
}

@media (max-width: 480px) {
    .mr-hero { padding: 1.5rem 1rem 2.25rem; min-height: 140px; border-radius: 0 0 16px 16px; }
    .mr-hero-title { font-size: 1.4rem; }
    .mr-hero-subtitle { font-size: 0.78rem; margin-bottom: 1rem; }
    .mr-hero-stats { flex-wrap: wrap; gap: 0.4rem; }
    .mr-hero-stat { padding: 0.3rem 0.6rem; font-size: 0.72rem; }
    .mr-hero-cta { padding: 0.45rem 1.1rem; font-size: 0.8rem; }
    .mr-tabs-wrapper, .mr-tabs-wrap { margin-top: -20px; margin-bottom: 1rem; }
    .mr-tab { font-size: 0.8rem; padding: 0.45rem 0.75rem; }
    .mr-tab-count { min-width: 18px; height: 18px; font-size: 0.68rem; }
    .mr-card-date { padding: 0; height: 8px; overflow: hidden; }
    .mr-card-date-day, .mr-card-date-month, .mr-card-date-weekday { position: absolute; clip: rect(0, 0, 0, 0); overflow: hidden; }
    .mr-card-content, .mr-card-body { padding: 0.85rem; }
    .mr-card-time-inline-date { display: inline; }
    .mr-card-details { gap: 0.5rem; font-size: 0.8rem; }
    .mr-card-actions { gap: 0.35rem; padding-top: 0.6rem; }
    .mr-btn { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
    .mr-card-status { font-size: 0.68rem; padding: 0.15rem 0.5rem; }
    .mr-cards-list { padding: 0 0.5rem; }
    .mr-empty { padding: 2rem 1rem; }
    .mr-empty-icon { font-size: 2.5rem; }
    .mr-empty-text { font-size: 0.92rem; }
    .mr-empty-cta { padding: 0.5rem 1.15rem; font-size: 0.82rem; }
    .mr-qr-modal { max-width: 300px; padding: 1.25rem; border-radius: 16px; }
    .mr-qr-img-wrap img { width: 170px; height: 170px; padding: 8px; }
}

@media (min-width: 481px) {
    .mr-card-time-inline-date { display: none; }
}
