:root {
    --bg-color: #FAFAF8; /* Soft Ivory */
    --card-bg: rgba(255, 255, 255, 0.65);
    --primary: #D4C3A3; /* Champagne Gold */
    --secondary: #EAE6DF; /* Soft Beige */
    
    --text-main: #2A2A2A; /* Charcoal */
    --text-muted: #8E8A85; /* Taupe */
    
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 25px 50px rgba(180, 170, 160, 0.15), inset 0 2px 0 rgba(255, 255, 255, 1);
    
    --success: #7DA687;
    --warning: #D9B37E;
    --danger: #D67A7A;
    
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* System font stacks as fallbacks if Google Fonts don't load */
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Elegant Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 195, 163, 0.5);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 195, 163, 0.8);
}



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

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #FAFAF8 0%, #F3EFE9 100%);
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 500; /* Softer, less brutalist */
}

/* Background Decorative Shapes - Ivory Glowing Orbs */
.bg-shape {
    display: block;
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.7;
}
.shape-1 {
    width: 600px; height: 600px;
    background: rgba(212, 195, 163, 0.4); /* Champagne glow */
    top: -200px; left: -100px;
}
.shape-2 {
    width: 800px; height: 800px;
    background: rgba(255, 255, 255, 0.6); /* Pearl glow */
    bottom: -300px; right: -200px;
}
.shape-3 {
    width: 500px; height: 500px;
    background: rgba(234, 230, 223, 0.5); /* Beige glow */
    top: 40%; left: 30%;
}

/* APP LAYOUT */
.app-container {
    display: flex;
    height: 100vh;
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

/* SIDEBAR - Editorial Floating Style */
.sidebar {
    width: 300px;
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    z-index: 10;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    box-shadow: var(--glass-shadow);
}



.sidebar-header {
    margin-bottom: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.logo i {
    font-size: 1.8rem;
}

.couple-names h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.couple-names p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sidebar-nav {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-bottom: 2rem;
}

.nav-section {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #A07840; /* Deeper amber gold - much more visible */
    font-weight: 900;
    margin: 20px 0 8px 10px;
    opacity: 1;
    text-shadow: 0 1px 2px rgba(160,120,64,0.15);
}

.sidebar-footer {
    padding: 12px 15px;
    border-top: 1px solid rgba(160, 120, 64, 0.2);
    margin-top: auto;
    flex-shrink: 0;
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.gap-2 { gap: 0.5rem; }
.flex-center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
    font-size: 0.95rem;
}

.nav-item i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
    color: var(--primary);
}

.nav-item.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(212, 195, 163, 0.4);
    font-weight: 600;
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--primary);
}

/* MAIN CONTENT - Editorial Styling */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
}



/* Top Bar - Invisible / Elegant */
.top-bar {
    padding: 2.5rem 3rem 1.5rem 3rem;
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar h1 {
    font-size: 2rem;
    color: var(--text-main);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #d67a7a, #d4c3a3);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(214, 122, 122, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(214, 122, 122, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #c46868, #c6b28b);
}

/* Elegant Inputs */
input, select, textarea {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(212, 195, 163, 0.5) !important;
    border-radius: 12px !important;
    color: var(--text-main) !important;
    font-family: inherit;
    transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(212, 195, 163, 0.2) !important;
    background: #ffffff !important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    display: none;
    flex-direction: column;
    min-width: 200px;
    z-index: 100;
    overflow: hidden;
}

.dropdown-menu.active {
    display: flex;
    animation: fadeIn 0.2s ease forwards;
}

.dropdown-item {
    background: none;
    border: none;
    padding: 12px 16px;
    text-align: left;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(214, 122, 122, 0.1), rgba(212, 195, 163, 0.2));
    color: #d67a7a;
    border: 1px solid rgba(214, 122, 122, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 2px 10px rgba(214, 122, 122, 0.1);
    white-space: nowrap;
}

.btn-secondary:hover { 
    background: linear-gradient(135deg, #d67a7a, #d4c3a3);
    color: white;
    border-color: transparent;
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(214, 122, 122, 0.3);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; gap: 5px;
    white-space: nowrap;
}
.btn-text:hover { color: var(--primary-hover); }

/* VIEWS */
.view-container {
    flex: 1;
    padding: 0 3rem 3rem 3rem;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
}

.view {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0.8; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CARDS - Ivory & Onyx */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}



.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 60px rgba(180, 170, 160, 0.2), inset 0 2px 0 rgba(255, 255, 255, 1);
    border-color: #ffffff;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.col-span-2 {
    grid-column: span 2;
}

.seating-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.table-drop-zone {
    min-height: 150px;
    padding: 10px;
    border: 2px dashed transparent;
    border-radius: 8px;
    transition: var(--transition);
}

.table-drop-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
}

.draggable-guest {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: var(--text-main);
}



.draggable-guest:active { cursor: grabbing; opacity: 0.8; }

/* COUNTDOWN WIDGET */
.countdown-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    position: relative;
    overflow: hidden;
}



.countdown-content h2 {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timer {
    display: flex;
    gap: 20px;
}

.time-box {
    text-align: center;
}

.time-box span {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    display: block;
}

.time-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.countdown-decoration {
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 12rem;
    color: rgba(196, 118, 131, 0.05);
    transform: rotate(-15deg);
}

/* STAT CARDS */
.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-info h3 {
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-info .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

/* TASK LIST */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 1.3rem;
}

.link-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.task-list {
    list-style: none;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.task-item:last-child {
    border-bottom: none;
}

.checkbox-custom {
    min-width: 22px;
    width: 22px;
    height: 22px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.task-item.completed .checkbox-custom {
    background: var(--primary);
}

.task-item.completed .checkbox-custom::after {
    content: '\eb7a'; /* remix icon check */
    font-family: 'remixicon';
    color: white;
    font-size: 14px;
}

.task-item.completed span {
    text-decoration: line-through;
    color: var(--text-muted);
}

.empty-state {
    color: var(--text-muted);
    font-style: italic;
    padding: 10px 0;
}

/* TABLES (GUESTLIST) */
.table-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 8px 16px;
    flex: 1;
    max-width: 300px;
}



.search-box i {
    color: var(--text-muted);
    margin-right: 8px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: inherit;
    color: var(--text-main);
}

.filter-box select {
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.2);
    color: var(--text-main);
    font-family: inherit;
    outline: none;
}



.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    vertical-align: middle;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge.pending { background: rgba(230, 177, 92, 0.2); color: #b58d1f; }
.badge.confirmed { background: rgba(101, 163, 113, 0.2); color: #3d7a49; }
.badge.declined { background: rgba(217, 108, 108, 0.2); color: #a63f3f; }

.action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    margin-right: 8px;
    transition: color 0.2s;
}

.action-btn:hover { color: var(--primary); }
.action-btn.delete:hover { color: var(--danger); }

/* BUDGET VIEW & STATS */
.budget-overview {
    text-align: center;
}

.budget-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.b-stat {
    background: rgba(255,255,255,0.4);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.b-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; }
.b-val { font-size: 1.5rem; font-weight: 600; font-family: 'Playfair Display', serif; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.budget-total h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.budget-total h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.budget-progress-container {
    max-width: 600px;
    margin: 0 auto;
}

.budget-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.progress-bar-bg {
    height: 12px;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* FORMS & MODALS */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100000; /* Must be above sidebar (9999) */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    padding: 20px 0;
    overflow-y: auto;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.glass-modal {
    background: var(--glass-bg);
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    margin: 20px auto;
}

.glass-modal.modal-lg {
    max-width: 800px;
}

.modal-overlay.active .glass-modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-divider {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 8px;
    margin: 20px 0 15px 0;
}

input[type="text"], 
input[type="number"], 
input[type="date"], 
select, 
textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.6);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}

input[type="text"]:focus, 
input[type="number"]:focus, 
input[type="date"]:focus, 
select:focus, 
textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-light), inset 0 2px 5px rgba(0,0,0,0.01);
}







.large-textarea {
    min-height: 200px;
    resize: vertical;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.2);
    color: var(--text-main);
    font-family: inherit;
    line-height: 1.6;
}



.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
}

.w-100 {
    width: 100%;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Main Layout Overrides - Full Screen on Mobile */
    .app-container {
        display: block !important; /* Override flex - sidebar is fixed/overlay */
        padding: 0 !important;
        gap: 0 !important;
        height: 100dvh !important;
        overflow: hidden;
    }
    
    .main-content {
        width: 100% !important;
        height: 100dvh !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow-y: auto;
    }

    /* 1. Sidebar Drawer - Hidden off-screen by default on mobile */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        height: 100%;
        height: 100dvh;
        width: 85%;
        max-width: 320px;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1000;
        border-radius: 0 20px 20px 0;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        padding-bottom: 2rem;
    }
    .sidebar-nav {
        overflow: visible;
        padding-bottom: 5rem;
    }
    .sidebar.open {
        left: 0;
    }
    
    /* Overlay Backdrop */
    .mobile-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .mobile-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Top Bar Sticky Glassmorphism */
    .top-bar {
        padding: 1rem 1.5rem;
        position: sticky;
        top: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 10;
        border-bottom: 1px solid var(--glass-border);
        margin-bottom: 1rem;
    }
    .top-bar h1 {
        font-size: 1.3rem;
    }
    .mobile-menu-toggle {
        display: block;
        padding: 5px;
    }

    /* Mobile fixes for text */
    .luxury-hero {
        padding: 3.5rem 1rem 1.5rem 1rem !important;
    }
    .luxury-hero-content h1 { font-size: 1.8rem !important; margin-bottom: 5px; }
    .luxury-hero-content p { font-size: 0.75rem !important; letter-spacing: 2px !important; }
    .top-bar h1 { font-size: 1.2rem; }
    
    .view-container {
        padding: 0 1rem 1.5rem 1rem;
        overflow-x: hidden;
        min-width: 0;
        width: 100%;
    }
    
    /* Prevent any element from overflowing on mobile */
    .view-container * {
        max-width: 100%;
        word-break: break-word;
    }
    
    /* Fine-tune view headings */
    .view-container h2 {
        font-size: 1.5rem !important;
        font-family: 'Playfair Display', serif;
    }
    .view-container h3 {
        font-size: 1.15rem !important;
        font-family: 'Playfair Display', serif;
    }

    /* Fine-tune input dimensions for delicate aesthetic */
    input[type="text"], 
    input[type="number"], 
    input[type="date"], 
    select, 
    textarea {
        padding: 10px 14px !important;
        font-size: 0.9rem !important;
    }

    /* 2. Dashboard Grid */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .col-span-2 {
        grid-column: span 1;
    }
    .glass-card {
        padding: 1.25rem;
    }

    /* Countdown Widget Scaling */
    .countdown-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .timer {
        width: 100%;
        justify-content: space-between;
        margin-top: 15px;
    }
    .time-box span {
        font-size: 2.2rem;
    }
    .countdown-decoration {
        font-size: 8rem;
        right: -10px;
        bottom: -20px;
    }

    /* 3. Budget Grid & Text */
    .budget-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .budget-total h2 {
        font-size: 2rem;
    }
    
    /* 4. Forms to Column */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-group {
        margin-bottom: 12px;
    }

    /* 5. Tables Horizontal Scroll */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    .data-table th, .data-table td {
        white-space: nowrap;
        padding: 12px;
    }

    /* 6. Touch Targets */
    .view-container .btn-primary,
    .modal-body .btn-primary,
    .inline-form-mobile .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    /* Avoid stretching the top-bar add action button on mobile */
    .top-bar .btn-primary {
        width: auto !important;
        padding: 8px 16px !important;
    }
    .table-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    .search-box, .filter-box select {
        max-width: 100%;
        width: 100%;
    }
    
    /* Modals scaling */
    .glass-modal {
        padding: 20px;
        width: 95%;
    }
    .calendar-grid-body, .calendar-grid-header {
        font-size: 0.8rem;
    }
    .cal-day {
        min-height: 50px;
        padding: 5px;
    }
    
    .mobile-hide {
        display: none !important;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .inline-form-mobile {
        flex-direction: column;
        gap: 10px;
    }
    .inline-form-mobile input:not([type="checkbox"]), .inline-form-mobile select, .inline-form-mobile button {
        flex: 1;
        min-width: 100px;
        width: 100% !important;
    }
    .inline-form-mobile input[type="checkbox"] {
        flex: none;
        width: 30px !important;
        height: 30px;
        align-self: flex-start;
        margin: 5px 0;
    }
    .seating-layout {
        flex-direction: column;
    }
    .seating-layout .glass-card {
        width: 100% !important;
    }
    
    .mobile-calc-group {
        width: 100%;
        flex-direction: column;
    }
    .mobile-calc-inputs {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    .mobile-badge-half {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .mobile-toolbar-actions {
        width: 100% !important;
        flex-direction: column;
        margin-left: 0 !important;
        gap: 10px;
    }
    .mobile-toolbar-actions button {
        width: 100% !important;
    }

    /* Responsive table - horizontal scroll on mobile */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        max-width: 100%;
    }
    table thead, table tbody, table tr, table th, table td {
        display: revert;
    }
    
    /* Toast sits above bottom navigation */
    .wf-toast { bottom: 20px !important; }
}

/* --- Toast above all modals --- */
.wf-toast { z-index: 200000 !important; }

/* --- CALENDAR STYLES --- */
.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(200, 150, 150, 0.1);
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.calendar-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(80px, auto);
}
.cal-day {
    padding: 10px;
    border-right: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    min-height: 80px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cal-day:hover {
    background: rgba(255,255,255,0.5);
}
.cal-day.empty {
    background: transparent;
    cursor: default;
}
.cal-day .date-num {
    font-weight: 600;
    color: var(--text-muted);
    align-self: flex-end;
}
.cal-event {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- 2D SEATING MAP STYLES --- */
.map-2d-container {
    width: 100%;
    height: 600px;
    background-color: #fcfcfc;
    background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: none; /* hidden by default */
}

.map-table {
    position: absolute;
    width: 120px;
    height: 120px;
    background: white;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: grab;
    user-select: none;
    flex-direction: column;
}
.map-table:active {
    cursor: grabbing;
}


/* --- PAYWALL STYLES --- */
.paywall-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 250, 240, 0.85); /* semi-transparent to see the app behind */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}



.paywall-content {
    width: 90%;
    max-width: 400px;
    padding: 40px 30px;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}



.paywall-container.hidden {
    display: none !important;
}

.paywall-container.hidden .paywall-content {
    transform: translateY(-50px);
}

.icon-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}
/* LUXURY HERO */
.luxury-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Elegant sparkles (Gold Dust Confetti) */
.sparkles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    opacity: 0;
    animation: float-sparkle linear infinite;
    box-shadow: 0 0 6px rgba(212, 195, 163, 0.4);
}

@keyframes float-sparkle {
    0% {
        transform: translate(0, -20px) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    50% {
        transform: translate(15px, 60px) rotate(180deg) scale(1);
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translate(-10px, 140px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}
.luxury-hero-content h1 {
    font-size: 3.8rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 5px;
}
.luxury-hero-content p {
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}



/* --- MASTER HUB (100 IDEI) STYLES --- */
.accordion-item {
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 10px;
}
.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.accordion-header:hover {
    background: rgba(212, 195, 163, 0.05);
}
.accordion-header i:first-child {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.3rem;
}
.accordion-header .arrow {
    transition: transform 0.3s ease;
}
.accordion-header.active .arrow {
    transform: rotate(180deg);
}
.accordion-content {
    padding: 10px 20px 20px 20px;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}
.hub-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.hub-item:hover {
    background: rgba(212, 195, 163, 0.05);
    border-color: rgba(212, 195, 163, 0.3);
}
.hub-item.link-item {
    cursor: pointer;
}
.hub-item.link-item i:first-child {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1.2rem;
}
.hub-item.check-item {
    gap: 15px;
}
.hub-item.text-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.hub-item.text-item label {
    font-weight: 600;
    color: var(--primary);
}
.hub-textarea {
    width: 100%;
    min-height: 80px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-main);
    resize: vertical;
    font-family: inherit;
}
.hub-textarea:focus {
    outline: none;
    border-color: var(--primary);
}
