:root {
    --primary-color: #E63946; /* Um vermelho elegante e vibrante */
    --primary-hover: #D90429;
    --accent-color: #F4A261; /* Dourado suave/âmbar para toques premium */
    --text-main: #FFFFFF;
    --text-muted: #A8B2C1;
    --text-dark: #1D2029; /* Para textos dentro de blocos claros */
    
    --glass-bg: rgba(18, 20, 26, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    --ticket-bg: rgba(255, 255, 255, 0.05);
    --ticket-border: rgba(255, 255, 255, 0.1);
    
    --border-radius: 24px;
    --border-radius-sm: 12px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    font-family: 'Montserrat', sans-serif;
}

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

body {
    background-color: #0A0A0A;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(8px) brightness(0.8);
    transform: scale(1.05); /* hide blur edges */
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.9) 100%);
}

/* Container */
.app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Glass Panel */
.glass-panel {
    width: 100%;
    max-width: 480px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 40px 32px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-top: 4px;
}

.admin-shortcut {
    display: inline-block;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.admin-shortcut:hover {
    color: var(--accent-color);
}

.event-highlight-card {
    margin: -14px 0 22px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(244, 162, 97, 0.35);
    background: rgba(244, 162, 97, 0.12);
}

.event-highlight-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffe5cd;
}

.event-highlight-meta {
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-highlight-card.error {
    border-color: rgba(230, 57, 70, 0.5);
    background: rgba(230, 57, 70, 0.12);
}

.event-highlight-card.error .event-highlight-title {
    color: #ffd3d7;
}

.event-highlight-card.success {
    border-color: rgba(32, 201, 151, 0.5);
    background: rgba(32, 201, 151, 0.12);
}

.event-highlight-card.success .event-highlight-title {
    color: #c9ffe9;
}

/* Steps */
.step-card {
    display: none;
    animation: fadeInScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.step-card.active {
    display: block;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Typography Helpers */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

.welcome-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #FFFFFF;
}

.welcome-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 8px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.progress-indicator {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 24px;
    font-weight: 600;
}

/* Action Buttons (Step 1) */
.action-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.action-btn-glass {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.action-btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.action-btn-glass.primary-glow:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.primary-bg {
    background: var(--primary-color);
    color: white;
}

.secondary-bg {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.btn-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Grids & Pills */
.grid-options {
    display: grid;
    gap: 12px;
}

#people-options,
#demo-people-options { grid-template-columns: repeat(4, 1fr); }
.grid-options.reasons { grid-template-columns: repeat(2, 1fr); }
.grid-options.times { grid-template-columns: repeat(3, 1fr); }

.option-pill {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 14px 10px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.option-pill.time { border-radius: 12px; }
.option-pill.wide { border-radius: 12px; font-size: 0.9rem; }

.option-pill:hover {
    background: rgba(255, 255, 255, 0.05);
}

.option-pill:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.section-subtitle.availability-full {
    color: #ff8a8a;
    font-weight: 600;
    background: rgba(230, 57, 70, 0.12);
    border: 1px solid rgba(230, 57, 70, 0.35);
    padding: 10px 14px;
    border-radius: 12px;
    margin-top: 14px;
    text-decoration: none;
}

.option-pill small {
    display: block;
    margin-top: 4px;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-decoration: none;
}

.option-pill.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 16px rgba(230, 57, 70, 0.3);
}

/* Inputs */
.input-wrapper-glass {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 8px 16px;
    transition: var(--transition);
}

.input-wrapper-glass:focus-within {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
}

.floating-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    display: block;
}

.glass-input {
    width: 100%;
    background: transparent !important;
    border: none;
    color: white !important;
    font-size: 1.1rem;
    padding: 8px 0;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    caret-color: white;
    appearance: none;
    -webkit-appearance: none;
}

.glass-input:focus {
    background: transparent !important;
    color: white !important;
}

.glass-input:-webkit-autofill,
.glass-input:-webkit-autofill:hover,
.glass-input:-webkit-autofill:focus,
.glass-input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    box-shadow: 0 0 0 1000px rgba(10, 10, 10, 0.72) inset !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(10, 10, 10, 0.72) inset !important;
    border-radius: 8px;
    transition: background-color 9999s ease-in-out 0s;
}

.glass-input::selection {
    background: rgba(230, 57, 70, 0.45);
    color: white;
}

.glass-input.date-input {
    color-scheme: dark; /* Faz o calendário do navegador ficar escuro */
}

select.glass-input {
    color-scheme: dark; /* Faz o popup do select usar o tema escuro */
}

select.glass-input option {
    background: #15151a;
    color: #fff;
    padding: 8px;
}

select.glass-input option:checked,
select.glass-input option:hover {
    background: rgba(230, 57, 70, 0.35);
    color: #fff;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.phone-layout {
    display: flex;
    padding: 0;
    overflow: hidden;
}

.country-prefix {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.05);
    border-right: 1px solid var(--glass-border);
    font-weight: 600;
    color: var(--text-muted);
}

.phone-input-area {
    flex: 1;
    padding: 8px 16px;
}

/* Footer Actions */
.footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back:hover {
    color: white;
}

.btn-back.btn-danger {
    border-color: rgba(230, 57, 70, 0.55);
    color: #ff8a8a;
}

.btn-back.btn-danger:hover {
    background: rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.85);
    color: #fff;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}

.btn-dark-full {
    width: 100%;
    background: #1A1A1A;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-dark-full:hover {
    background: #2A2A2A;
    border-color: rgba(255, 255, 255, 0.2);
}

.demo-home-button {
    display: block;
    text-align: center;
    text-decoration: none;
}

/* --- SUCCESS SCREEN DESIGN (Premium Ticket) --- */
.success-header {
    text-align: center;
    margin-bottom: 32px;
}

.check-circle {
    width: 64px;
    height: 64px;
    background: rgba(32, 201, 151, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px;
    color: #20c997;
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.success-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Ticket Structure */
.ticket-card {
    background: var(--ticket-bg);
    border: 1px solid var(--ticket-border);
    border-radius: var(--border-radius-sm);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

/* Ticket Notches */
.ticket-card::before, .ticket-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: rgba(18, 20, 26, 0.8); /* Matches approx background behind panel */
    border-radius: 50%;
    transform: translateY(-50%);
}
.ticket-card::before {
    left: -10px;
    box-shadow: inset -1px 0 0 var(--ticket-border);
}
.ticket-card::after {
    right: -10px;
    box-shadow: inset 1px 0 0 var(--ticket-border);
}

.ticket-section {
    padding: 8px 0;
}

.ticket-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    margin: 16px 0;
}

.ticket-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.ticket-time {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.ticket-date {
    font-size: 0.95rem;
    color: white;
}

.ticket-code {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: white;
}

/* Details List */
.details-list {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.detail-row:first-child {
    padding-top: 0;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-value {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.detail-badge {
    background: rgba(230, 57, 70, 0.15);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.timestamp {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.empty-state,
.form-message {
    grid-column: 1 / -1;
    padding: 16px;
    border: 1px dashed var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
}

.whatsapp-result {
    margin-top: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.btn-whatsapp {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 18px;
    border-radius: 24px;
    background: #20c997;
    color: #06140f;
    font-weight: 700;
    text-decoration: none;
}

.admin-panel {
    max-width: 980px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.admin-section {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 18px;
}

.admin-section.full {
    grid-column: 1 / -1;
}

.admin-form {
    display: grid;
    gap: 14px;
}

.admin-list {
    display: grid;
    gap: 12px;
    max-height: 440px;
    overflow: auto;
    padding-right: 4px;
}

.admin-card {
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.admin-card-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
    padding: 10px;
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
}

.admin-table th {
    color: var(--accent-color);
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 16px;
    background: rgba(32, 201, 151, 0.15);
    color: #20c997;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.form-row {
    display: grid;
    gap: 14px;
}

.form-row.two-cols {
    grid-template-columns: 1fr 1fr;
}

.admin-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
}

.admin-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color, #d4af37);
}

.field-group {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px dashed var(--glass-border);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

.field-group-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.field-group-title {
    font-weight: 600;
    color: var(--text-color, #fff);
    font-size: 0.92rem;
}

.field-group-help {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.time-slots {
    display: grid;
    gap: 10px;
}

.time-slot-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: end;
}

.time-slot-row .input-wrapper-glass {
    margin: 0;
}

.btn-remove-row {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255, 80, 80, 0.08);
    color: #ff8a8a;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.btn-remove-row:hover {
    background: rgba(255, 80, 80, 0.18);
    color: #ffb3b3;
}

.btn-link-add {
    align-self: start;
    background: transparent;
    border: 1px dashed var(--glass-border);
    color: var(--accent-color, #d4af37);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-link-add:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}

.party-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.party-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    min-width: 48px;
}

.party-chip:hover {
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--text-color, #fff);
}

.party-chip.active {
    background: rgba(212, 175, 55, 0.18);
    border-color: var(--accent-color, #d4af37);
    color: var(--accent-color, #d4af37);
}

.party-add-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.glass-input-inline {
    max-width: 140px;
    padding: 10px 12px;
}

.link-preview {
    margin-top: -4px;
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    word-break: break-all;
}

.link-preview.ready {
    color: var(--accent-color, #d4af37);
    border-color: rgba(212, 175, 55, 0.35);
}

.admin-card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.admin-card-meta {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-color, #fff);
}

.admin-card-key {
    display: inline-block;
    min-width: 78px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 0.7rem;
    margin-right: 4px;
}

.pill-row {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    vertical-align: middle;
}

.pill {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent-color, #d4af37);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
}

.pill-soft {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color, #fff);
}

.event-link-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: var(--border-radius-sm);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.event-link-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent-color, #d4af37);
}

.event-link-url {
    color: var(--text-color, #fff);
    font-size: 0.82rem;
    word-break: break-all;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    text-decoration: none;
}

.event-link-url:hover {
    text-decoration: underline;
}

.admin-status-off {
    background: rgba(255, 80, 80, 0.12);
    color: #ff8a8a;
}

.reservations-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

.reservations-filters .input-wrapper-glass {
    min-width: 180px;
}

.reservation-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.reservation-status-sent {
    background: rgba(32, 201, 151, 0.18);
    color: #20c997;
}

.reservation-status-pendente,
.reservation-status-pending {
    background: rgba(212, 175, 55, 0.18);
    color: var(--accent-color, #d4af37);
}

.reservation-status-failed,
.reservation-status-config_required {
    background: rgba(255, 80, 80, 0.15);
    color: #ff8a8a;
}

@media (max-width: 760px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-section.full {
        grid-column: auto;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
    }

    .form-row.two-cols {
        grid-template-columns: 1fr;
    }

    .time-slot-row {
        grid-template-columns: 1fr 1fr auto;
    }

    .reservations-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-list-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-modal-card {
        padding: 22px !important;
    }
}

.admin-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.admin-section-sub {
    margin: 0 0 14px;
    opacity: 0.7;
}

.admin-head-cta {
    width: auto;
    padding: 10px 22px;
    font-size: 0.78rem;
    letter-spacing: 1.2px;
}

.admin-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    max-height: none;
    overflow: visible;
}

.admin-card-cta {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn-pill-action {
    flex: 1;
    min-width: 110px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(82, 232, 168, 0.55);
    background: rgba(40, 200, 130, 0.12);
    color: #6ef0ad;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.btn-pill-action:hover {
    background: rgba(40, 200, 130, 0.22);
    transform: translateY(-1px);
}

.btn-pill-action:active {
    transform: translateY(0);
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal[hidden] {
    display: none;
}

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
}

.admin-modal-card {
    position: relative;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    background: rgba(20, 20, 22, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md, 18px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

.admin-modal-card-wide {
    width: min(720px, 100%);
}

.admin-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.admin-modal-close:hover {
    color: #fff;
}

body.modal-open {
    overflow: hidden;
}

.sofia-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.sofia-modal[hidden] {
    display: none;
}

.sofia-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.sofia-card {
    position: relative;
    width: min(440px, 100%);
    height: min(640px, 92vh);
    display: flex;
    flex-direction: column;
    background: rgba(15, 15, 18, 0.96);
    border: 1px solid rgba(230, 57, 70, 0.35);
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.sofia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.18), rgba(230, 57, 70, 0.06));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sofia-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sofia-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(230, 57, 70, 0.45);
}

.sofia-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #fff;
    line-height: 1;
}

.sofia-status {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.sofia-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sofia-icon-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.sofia-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sofia-icon-btn .sofia-icon-off { display: none; }
.sofia-icon-btn[aria-pressed="false"] .sofia-icon-on { display: none; }
.sofia-icon-btn[aria-pressed="false"] .sofia-icon-off { display: block; }
.sofia-icon-btn[aria-pressed="false"] { color: rgba(255, 255, 255, 0.45); }

.sofia-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.sofia-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sofia-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.sofia-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.45;
    word-wrap: break-word;
}

.sofia-bubble-user {
    align-self: flex-end;
    background: rgba(230, 57, 70, 0.85);
    color: #fff;
    border-bottom-right-radius: 6px;
}

.sofia-bubble-assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 6px;
}

.sofia-bubble-pending {
    opacity: 0.6;
    font-style: italic;
}

.sofia-input-row {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sofia-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 10px 16px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.sofia-input:focus {
    border-color: rgba(230, 57, 70, 0.6);
}

.sofia-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.sofia-mic {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.sofia-mic:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sofia-mic-active {
    background: rgba(230, 57, 70, 0.9) !important;
    color: #fff !important;
    border-color: rgba(230, 57, 70, 0.9) !important;
    animation: sofiaMicPulse 1.4s infinite ease-in-out;
}

.sofia-mic-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@keyframes sofiaMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
}

.sofia-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(230, 57, 70, 0.85);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.sofia-send:hover:not(:disabled) {
    background: rgba(230, 57, 70, 1);
    transform: translateY(-1px);
}

.sofia-send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.sofia-ticket {
    width: 100%;
    border: 1px solid rgba(82, 232, 168, 0.35);
    background: rgba(40, 200, 130, 0.08);
    border-radius: 14px;
    padding: 14px;
    margin-top: 4px;
}

.sofia-ticket-label {
    font-size: 0.72rem;
    letter-spacing: 1.4px;
    color: #6ef0ad;
    text-transform: uppercase;
}

.sofia-ticket-time {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: #fff;
    line-height: 1.05;
    margin-top: 6px;
}

.sofia-ticket-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 2px;
    text-transform: capitalize;
}

.sofia-ticket-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.sofia-ticket-grid > div {
    display: flex;
    flex-direction: column;
}

.sofia-ticket-grid span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.sofia-ticket-grid strong {
    color: #fff;
    font-size: 0.92rem;
}

.sofia-ticket-foot {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
}
