/* ---------- Design tokens ---------- */
:root {
    --sage-50: #f4f6f4;
    --sage-100: #e3e8e2;
    --sage-200: #cddbc9;
    --sage-400: #a3b39d;
    --sage-600: #879883;
    --sage-700: #6c7c68;
    --sage-800: #556252;

    --champagne-100: #fdfbf7;
    --champagne-200: #f7f1e3;
    --champagne-600: #d4c39f;
    --champagne-700: #b8a378;

    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;

    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-600: #059669;
    --emerald-700: #047857;

    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;

    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 45px rgba(0,0,0,0.16);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--sage-50);
    color: var(--stone-700);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--sage-600); color: #fff; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.font-serif { font-family: 'Cormorant Garamond', serif; }

.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;
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-xl);
    padding: 1rem 2rem;
    background: var(--sage-800);
    color: var(--champagne-100);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}
.btn:hover { background: var(--sage-700); transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.btn:active { transform: scale(0.95); }

.btn-block { display: block; width: 100%; }

.btn-form {
    width: 100%;
    background: var(--sage-800);
    color: var(--champagne-100);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--radius-xl);
    padding: 0.625rem 1rem;
    transition: background 0.2s ease;
}
.btn-form:hover { background: var(--sage-700); }

.btn-form-lg { padding: 0.875rem 1rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.btn-form-lg:hover { box-shadow: var(--shadow-md); }
.btn-form-lg:active { transform: scale(0.98); }

.btn-form-sm { padding: 0.375rem 1rem; font-size: 0.75rem; border-radius: var(--radius-md); }

.btn-form--outline {
    background: transparent;
    color: var(--stone-600);
    border: 1px solid var(--stone-300);
}
.btn-form--outline:hover { background: var(--stone-100); }

.btn-icon { background: none; border: none; padding: 0.375rem; font-size: 0.75rem; transition: color 0.2s ease; }
.btn-icon--edit { color: var(--sage-600); }
.btn-icon--edit:hover { color: var(--sage-800); }
.btn-icon--delete { color: var(--rose-500); }
.btn-icon--delete:hover { color: var(--rose-700); }
.btn-icon--delete-lg { color: var(--rose-600); padding: 0 0.375rem; }
.btn-icon--delete-lg:hover { color: var(--rose-800, #9f1239); }

.btn-pill-ghost {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: background 0.2s ease;
}
.btn-pill-ghost:hover { background: rgba(255,255,255,0.2); }

.btn-pill-outline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    color: var(--sage-800);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(6px);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--sage-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}
.btn-pill-outline:hover { background: var(--sage-800); color: #fff; }

.btn-approve {
    background: var(--emerald-600);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    border: none;
    transition: background 0.2s ease;
}
.btn-approve:hover { background: var(--emerald-700); }

.btn-reject {
    background: var(--rose-600);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    border: none;
    transition: background 0.2s ease;
}
.btn-reject:hover { background: var(--rose-700); }

.icon-r { margin-right: 0.35rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 0; }
.field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--stone-600);
    margin-bottom: 0.25rem;
}
.field-label--sm { font-size: 0.625rem; color: var(--stone-500); }
.field-label-note { text-transform: none; font-weight: 400; color: var(--stone-400); }

.field-input {
    width: 100%;
    border: 1px solid var(--stone-300);
    border-radius: var(--radius-lg);
    padding: 0.625rem;
    font-size: 0.875rem;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field-input:focus { border-color: var(--sage-800); }

.field-input-lg {
    width: 100%;
    border: 1px solid var(--stone-300);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    font-size: 0.875rem;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field-input-lg:focus { border-color: var(--sage-800); box-shadow: 0 0 0 3px var(--sage-100); }

.field-input-sm {
    width: 100%;
    border: 1px solid var(--stone-300);
    border-radius: var(--radius-md);
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease;
}
.field-input-sm:focus { border-color: var(--sage-800); }

.select-inline {
    border: 1px solid var(--stone-300);
    border-radius: var(--radius-md);
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    outline: none;
    background: #fff;
    cursor: pointer;
}
.select-inline:focus { border-color: var(--sage-800); }

.select-mini {
    border: 1px solid var(--stone-300);
    border-radius: var(--radius-md);
    padding: 0.25rem 0.375rem;
    font-size: 0.625rem;
    outline: none;
    background: #fff;
    cursor: pointer;
    max-width: 110px;
}
.select-mini:focus { border-color: var(--sage-800); }

/* Status select (colored by attendance state) */
.status-select {
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.375rem 1.5rem 0.375rem 0.5rem;
    outline: none;
    cursor: pointer;
}
.status-select--confirmed { background: var(--emerald-50); color: var(--emerald-700); }
.status-select--declined { background: var(--rose-50); color: var(--rose-700); }
.status-select--pending { background: var(--amber-50); color: var(--amber-700); }

.form-row { display: grid; gap: 0.75rem; align-items: end; }
.form-row--3col { grid-template-columns: 1fr; }
.form-row--4col { grid-template-columns: 1fr; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--sage-100); }
@media (min-width: 640px) {
    .form-row--3col { grid-template-columns: repeat(3, 1fr); }
    .form-row--4col { grid-template-columns: repeat(4, 1fr); }
}
.form-col-span-2 { grid-column: span 1; }
@media (min-width: 640px) { .form-col-span-2 { grid-column: span 2; } }

.form-edit-panel {
    display: none;
    background: #fff;
    border: 1px solid var(--sage-200);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}
.form-edit-panel.is-open { display: block; }
.form-edit-panel > * + * { margin-top: 0.5rem; }

/* Linha de edição inline na tabela de convidados (mesmo padrão do .form-edit-panel, adaptado a <tr>) */
.row-edit-panel { display: none; }
.row-edit-panel.is-open { display: table-row; }
.row-edit-panel td { background: var(--sage-50); padding: 1rem; }
.row-edit-panel .form-edit-panel__actions { display: flex; gap: 0.5rem; align-items: flex-end; }

/* ---------- Alerts ---------- */
.alert {
    border-radius: var(--radius-2xl);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
}
.alert--sm { font-size: 0.75rem; text-align: center; margin-bottom: 1.5rem; }
.alert-success { background: var(--emerald-50); border-color: var(--emerald-200); color: var(--emerald-700); }
.alert-error { background: var(--rose-50); border-color: var(--rose-200); color: var(--rose-700); }

/* ===================================================================
   ADMIN PANEL
   =================================================================== */
.admin-app { min-height: 100vh; }

.admin-header {
    background: var(--sage-800);
    color: #fff;
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
}
@media (min-width: 640px) { .admin-header { padding: 1.25rem 2rem; } }

.admin-header__brand { display: flex; align-items: center; gap: 0.75rem; }
.admin-header__avatar {
    width: 2.5rem; height: 2.5rem;
    background: var(--champagne-200);
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.admin-header__avatar img { width: 100%; height: 100%; object-fit: contain; padding: 0.25rem; }
.admin-header__title { font-family: 'Cormorant Garamond', serif; font-size: 1.125rem; font-weight: 700; line-height: 1; margin: 0; }
.admin-header__greeting { font-size: 0.75rem; color: var(--sage-200, #e3e8e2); margin: 0.25rem 0 0; }

.admin-main {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}
@media (min-width: 640px) { .admin-main { padding: 2.5rem 2rem; } }
.admin-main > * + * { margin-top: 2.5rem; }

/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--sage-200);
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.stat-card--confirmed { border-color: var(--emerald-200); }
.stat-card--pending { border-color: var(--amber-200); }
.stat-card--declined { border-color: var(--rose-200); }

.stat-card__value { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.875rem; font-weight: 700; color: var(--sage-800); }
.stat-card--confirmed .stat-card__value { color: var(--emerald-700); }
.stat-card--pending .stat-card__value { color: var(--amber-600); }
.stat-card--declined .stat-card__value { color: var(--rose-700); }
.stat-card__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--stone-500); font-weight: 600; }

/* Panel cards (Add guest / Table management / Guest list) */
.panel-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--sage-200);
    box-shadow: var(--shadow-sm);
}
.panel-card--warning { border-color: var(--amber-200); }
.panel-card--flush { padding: 0; overflow: hidden; }

.panel-card__title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 700; color: var(--sage-800); margin-bottom: 1rem; }
.panel-card__title--warning { color: var(--amber-700); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.panel-card__title--warning .count-pill { margin-left: 0.5rem; background: var(--amber-100); color: var(--amber-700); font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 999px; }
.panel-card__header { padding: 1.5rem; border-bottom: 1px solid var(--sage-100); }
.panel-card__header .panel-card__title { margin-bottom: 0; }
.panel-card__hint { font-size: 0.75rem; color: var(--stone-400); margin-top: 0.75rem; }
.panel-card__desc { font-size: 0.75rem; color: var(--stone-500); margin-bottom: 1.25rem; }
.panel-empty { font-size: 0.875rem; color: var(--stone-500); text-align: center; padding: 1rem 0; }
.panel-empty--pad { padding: 1.5rem; }

/* Table (mesa) cards grid */
.tables-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .tables-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tables-grid { grid-template-columns: repeat(3, 1fr); } }

.table-card {
    border: 1px solid var(--sage-200);
    border-radius: var(--radius-2xl);
    padding: 1rem;
    background: rgba(244,246,244,0.4);
}
.table-card--full { background: rgba(255,241,242,0.4); }

.table-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.table-card__name { font-family: 'Cormorant Garamond', serif; font-size: 1.125rem; font-weight: 700; color: var(--sage-800); }
.table-card__actions { display: flex; align-items: center; gap: 0.5rem; }

.badge-seats {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}
.badge-seats--ok { background: var(--emerald-100); color: var(--emerald-700); }
.badge-seats--full { background: var(--rose-100); color: var(--rose-700); }

.table-card__empty { font-size: 0.75rem; color: var(--stone-400); font-style: italic; }

.table-guest-list { font-size: 0.875rem; color: var(--stone-600); }
.table-guest-list > li + li { margin-top: 0.5rem; }
.table-guest-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.table-guest-list__name { display: flex; align-items: center; gap: 0.375rem; min-width: 0; }
.table-guest-list__name .dot { font-size: 5px; color: var(--sage-600); flex-shrink: 0; }
.table-guest-list__name .name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-guest-list__plus { font-size: 0.625rem; color: var(--stone-400); font-style: italic; flex-shrink: 0; }
.table-guest-list form { flex-shrink: 0; }

/* Protocol requests */
.requests-list > * + * { margin-top: 1rem; }
.request-card {
    border: 1px solid var(--amber-100);
    background: rgba(255,251,235,0.4);
    border-radius: var(--radius-2xl);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 640px) { .request-card { flex-direction: row; align-items: center; } }
.request-card__info { flex: 1; }
.request-card__name { font-weight: 600; color: var(--stone-800); }
.request-card__companion { font-size: 0.75rem; color: var(--stone-500); }
.request-card__meta { font-size: 0.75rem; color: var(--stone-400); margin-top: 0.25rem; }
.request-card__actions { display: flex; flex-direction: column; gap: 0.5rem; flex-shrink: 0; }
@media (min-width: 640px) { .request-card__actions { flex-direction: row; } }
.request-card__actions form { display: flex; align-items: center; gap: 0.5rem; }
.reject-note-input { width: 8rem; }

/* Data table */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.data-table thead { background: var(--sage-50); color: var(--stone-600); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table th { text-align: left; padding: 0.75rem 1rem; }
.data-table td { padding: 0.75rem 1rem; }
.data-table tbody tr { border-top: 1px solid var(--sage-100); }
.data-table td.is-name { font-weight: 500; color: var(--stone-800); }
.data-table td.is-muted { color: var(--stone-500); }
.data-table .cell-inline { display: inline-flex; align-items: center; gap: 0.5rem; }
.data-table .cell-inline--tight { gap: 0.25rem; }

/* ===================================================================
   PUBLIC WEDDING SITE
   =================================================================== */

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    background: rgba(227,232,226,0.5);
    border-bottom: 1px solid var(--sage-200);
}
.hero__login-link { position: absolute; top: 1.5rem; right: 1.5rem; }

.hero__content { max-width: 42rem; margin: 0 auto; }
.hero__content > * + * { margin-top: 1.5rem; }

.hero__monogram {
    width: 8rem; height: 8rem;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.5s ease;
}
.hero__monogram:hover { transform: scale(1.1) rotate(2deg); }
.hero__monogram img { width: 100%; height: 100%; object-fit: contain; }

.hero__eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3em; font-weight: 600; color: var(--sage-700); }

.hero__title { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 700; color: var(--sage-800); letter-spacing: -0.01em; }
@media (min-width: 640px) { .hero__title { font-size: 4.5rem; } }

.hero__divider { width: 3.25rem; height: 1px; background: var(--champagne-700); margin: 0 auto; }

.hero__quote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.125rem; color: var(--stone-600); max-width: 32rem; margin-left: auto; margin-right: auto; line-height: 1.7; }
@media (min-width: 640px) { .hero__quote { font-size: 1.25rem; } }

.hero__date-row { padding-top: 0.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.05em; color: var(--sage-800); text-transform: uppercase; }
@media (min-width: 640px) { .hero__date-row { flex-direction: row; } }
.hero__date-badge {
    background: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--sage-200);
    transition: all 0.3s ease;
}
.hero__date-badge:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--champagne-700); }
.hero__date-badge i { color: var(--champagne-700); margin-right: 0.5rem; }

/* Countdown */
.countdown-wrap { padding-top: 1rem; padding-bottom: 0.5rem; }
.countdown-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sage-700); font-weight: 700; margin-bottom: 1rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; max-width: 28rem; margin: 0 auto; }
.countdown__item {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(6px);
    padding: 0.75rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--sage-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.countdown__item:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--sage-600); }
.countdown__value { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; color: var(--sage-800); display: block; }
@media (min-width: 640px) { .countdown__value { font-size: 1.875rem; } }
.countdown__unit { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--stone-500); font-weight: 500; }

.hero__cta-wrap { padding-top: 1rem; }

.scroll-indicator {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    color: var(--sage-700);
    transition: color 0.2s ease;
    animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-indicator:hover { color: #2c3729; }

/* Section headers */
.section-title { font-family: 'Cormorant Garamond', serif; font-size: 2.25rem; font-weight: 700; color: var(--sage-800); margin-bottom: 0.5rem; }
.section-subtitle { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sage-700); font-weight: 600; }
.section-divider { width: 3rem; height: 1px; background: var(--champagne-700); margin: 1rem auto 0; }
.section-divider--lg-gap { margin-bottom: 2.5rem; }

/* Timeline */
.timeline-section { padding: 3rem 1rem; max-width: 56rem; margin: 0 auto; }
.timeline-section .section-header { text-align: center; margin-bottom: 4rem; }

.timeline-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .timeline-grid { grid-template-columns: repeat(2, 1fr); } }

.timeline-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(205,219,201,0.6);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}
.timeline-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--sage-400); }
.timeline-card--wide { grid-column: 1 / -1; }
@media (min-width: 768px) { .timeline-card--wide { grid-column: span 2; } }

.timeline-card__time {
    width: 4rem; height: 4rem;
    flex-shrink: 0;
    background: var(--sage-50);
    color: var(--sage-800);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--sage-200);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif; font-weight: 700;
    transition: all 0.3s ease;
}
.timeline-card:hover .timeline-card__time { background: var(--sage-800); color: var(--champagne-100); transform: scale(1.1); }
.timeline-card__time .unit { font-size: 0.75rem; text-transform: uppercase; color: var(--sage-600); transition: color 0.2s ease; }
.timeline-card:hover .timeline-card__time .unit { color: var(--champagne-200); }
.timeline-card__time .value { font-size: 1.125rem; }

.timeline-card__title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 700; color: var(--stone-800); }
.timeline-card__desc { font-size: 0.75rem; color: var(--stone-500); margin-top: 0.25rem; }

/* Location */
.location-section { padding: 3rem 1rem; max-width: 48rem; margin: 0 auto; text-align: center; }

.location-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(205,219,201,0.6);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
@media (min-width: 640px) { .location-card { padding: 2.5rem; } }
.location-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); border-color: var(--sage-400); }

.location-card__icon {
    width: 4rem; height: 4rem;
    background: var(--sage-50);
    color: var(--sage-800);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--sage-200);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}
.location-card:hover .location-card__icon { background: var(--sage-800); color: var(--champagne-100); transform: scale(1.1); }
.location-card__icon i { font-size: 1.5rem; }

.location-card__title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; color: var(--stone-800); }
.location-card__desc { font-size: 0.875rem; color: var(--stone-500); margin: 0.5rem 0 1.5rem; }

/* RSVP */
.rsvp-section { padding: 3rem 1rem; background: rgba(227,232,226,0.6); border-top: 1px solid var(--sage-200); }

.rsvp-card {
    max-width: 28rem;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--sage-200);
    transition: box-shadow 0.3s ease;
}
@media (min-width: 640px) { .rsvp-card { padding: 2.5rem; } }
.rsvp-card:hover { box-shadow: 0 25px 55px rgba(0,0,0,0.2); }

.rsvp-card__header { text-align: center; margin-bottom: 2rem; }
.rsvp-card__title { font-family: 'Cormorant Garamond', serif; font-size: 1.875rem; font-weight: 700; color: var(--sage-800); }
.rsvp-card__subtitle { font-size: 0.75rem; color: var(--stone-500); margin-top: 0.5rem; }

.rsvp-form > * + * { margin-top: 1rem; }

/* Footer */
.site-footer { padding: 2rem 0; text-align: center; font-size: 0.75rem; color: var(--stone-500); background: #fff; border-top: 1px solid var(--sage-200); }

/* ===================================================================
   LOGIN PAGE
   =================================================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--sage-50);
}

.login-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    max-width: 28rem;
    width: 100%;
    text-align: center;
    border: 1px solid var(--sage-200);
}

.login-card__monogram {
    width: 7rem; height: 7rem;
    margin: 0 auto 1.25rem;
    display: flex; align-items: center; justify-content: center;
}

.login-card__title { font-family: 'Cormorant Garamond', serif; font-size: 1.875rem; font-weight: 700; color: var(--sage-800); margin-bottom: 0.25rem; }
.login-card__subtitle { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sage-700); margin-bottom: 2rem; }

.login-form { text-align: left; }
.login-form > * + * { margin-top: 1rem; }

/* ===================================================================
   PROTOCOLO PANEL (shares admin-header, stats-grid, panel-card,
   data-table, table-card, badge-seats, field-*, btn-form etc.)
   =================================================================== */

.admin-header__avatar--initials {
    color: var(--sage-800);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 0.875rem;
}

.stat-card--neutral { border-color: var(--stone-200); }
.stat-card--neutral .stat-card__value { color: var(--stone-500); }

.panel-card__title-icon { color: var(--sage-600); margin-right: 0.5rem; }

.panel-card__header--flex { display: flex; align-items: center; justify-content: space-between; }

/* Search form */
.search-form { display: flex; gap: 0.75rem; }
.search-form__input {
    flex: 1;
    border: 1px solid var(--stone-300);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease;
}
.search-form__input:focus { border-color: var(--sage-800); }

.btn-search {
    background: var(--sage-800);
    color: var(--champagne-100);
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.btn-search:hover { background: var(--sage-700); }

.btn-clear {
    background: var(--stone-200);
    color: var(--stone-700);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.btn-clear:hover { background: var(--stone-300); }

.search-result-count { font-size: 0.75rem; color: var(--stone-500); margin-top: 0.75rem; }

/* Data table row state + status badges */
.data-table tr.is-checked-in { background: rgba(236,253,245,0.4); }

.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}
.status-badge--confirmed { background: var(--emerald-50); color: var(--emerald-700); }
.status-badge--declined { background: var(--rose-50); color: var(--rose-700); }
.status-badge--pending { background: var(--amber-50); color: var(--amber-700); }
.status-badge--muted { color: var(--stone-300); }
.status-badge--warning-text { color: var(--amber-500); font-weight: 600; }

.checkin-btn {
    width: 2rem; height: 2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: none;
    transition: all 0.2s ease;
}
.checkin-btn--done { background: var(--emerald-100); color: var(--emerald-700); }
.checkin-btn--done:hover { background: var(--emerald-200); }
.checkin-btn--pending { background: var(--stone-100); color: var(--stone-400); }
.checkin-btn--pending:hover { background: var(--emerald-100); color: var(--emerald-700); }

/* Table map with occupancy bar */
.occupancy-bar {
    width: 100%;
    background: var(--stone-100);
    border-radius: 999px;
    height: 0.375rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.occupancy-bar__fill { height: 100%; border-radius: 999px; background: var(--sage-600); }
.occupancy-bar__fill--full { background: var(--rose-400); }

.table-card__meta { font-size: 0.75rem; color: var(--stone-500); margin-bottom: 0.75rem; }
.table-card__meta .accommodated { color: var(--emerald-600); font-weight: 600; }

.table-checklist { font-size: 0.75rem; color: var(--stone-600); }
.table-checklist > li + li { margin-top: 0.375rem; }
.table-checklist li { display: flex; align-items: center; gap: 0.5rem; }
.table-checklist .check-icon { font-size: 10px; color: var(--stone-300); }
.table-checklist .check-icon--done { color: var(--emerald-500); }
.table-checklist .done-text { text-decoration: line-through; color: var(--stone-400); }
.table-checklist .plus-companion { color: var(--stone-400); font-style: italic; }

/* Request form (Pedir Convidado Inesperado) */
.form-row--4col-plain { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row--4col-plain { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .form-row--4col-plain { grid-template-columns: repeat(4, 1fr); } }

.required-mark { color: var(--rose-400); }