/* Modern Colorful Theme - Inspired by BillBoy */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Primary Gradient Colors */
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-orange: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-green: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-violet: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);

    /* Solid Colors */
    --primary-purple: #7c3aed;
    --primary-purple-dark: #6d28d9;
    --primary-purple-light: #a78bfa;

    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;

    /* Neutral Colors */
    --bg-color: #f8fafc;
    --sidebar-bg: linear-gradient(180deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-colored: 0 10px 40px -10px rgba(124, 58, 237, 0.4);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Main Container - App Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 240px;
    background: var(--sidebar-bg);
    color: white;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    padding: 0 12px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
}

.sidebar-nav {
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

.nav-item span {
    font-size: 1.2rem;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 24px 32px;
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.header-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.header-title p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Dashboard Stats Cards */
.dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    border-radius: var(--radius-xl);
    padding: 24px;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 140px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.stat-card.purple { background: var(--gradient-purple); }
.stat-card.pink { background: var(--gradient-pink); }
.stat-card.orange { background: var(--gradient-orange); }
.stat-card.green { background: var(--gradient-green); }
.stat-card.blue { background: var(--gradient-blue); }

.stat-card .stat-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-card .stat-sub {
    font-size: 0.8rem;
    opacity: 0.8;
}

.stat-card .stat-trend {
    font-size: 0.75rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-bottom: 32px;
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 span {
    color: var(--primary-purple);
}

.card-body {
    padding: 20px 24px;
}

/* Action Bar - Search & Filters */
.action-bar {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.5;
}

.search-box input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg-color);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: white;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.filter-box {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-box select {
    padding: 14px 40px 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 16px center;
    cursor: pointer;
    appearance: none;
    min-width: 160px;
    transition: all 0.2s;
}

.filter-box select:focus {
    outline: none;
    border-color: var(--primary-purple);
    background-color: white;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary {
    background: var(--gradient-purple);
    color: white;
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    box-shadow: 0 14px 44px -12px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background: var(--gradient-pink);
    color: white;
}

.btn-success {
    background: var(--gradient-green);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-warning {
    background: var(--gradient-orange);
    color: white;
}

.btn-outline {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    background: rgba(124, 58, 237, 0.05);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.btn-small {
    padding: 10px 16px;
    font-size: 0.85rem;
}

/* Table Styles */
.table-section {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

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

thead {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
}

th {
    padding: 18px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

tbody tr {
    transition: all 0.2s;
}

tbody tr:hover {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.badge-pending {
    background: #fef3c7;
    color: #d97706;
}
.badge-pending::before { background: #f59e0b; }

.badge-confirmed {
    background: #d1fae5;
    color: #059669;
}
.badge-confirmed::before { background: #10b981; }

.badge-declined {
    background: #fee2e2;
    color: #dc2626;
}
.badge-declined::before { background: #ef4444; }

.badge-veg {
    background: #d1fae5;
    color: #059669;
}
.badge-veg::before { background: #10b981; }

.badge-nonveg {
    background: #fee2e2;
    color: #dc2626;
}
.badge-nonveg::before { background: #ef4444; }

.badge-jain {
    background: #ede9fe;
    color: #7c3aed;
}
.badge-jain::before { background: #a855f7; }

.badge-regular {
    background: #dbeafe;
    color: #2563eb;
}
.badge-regular::before { background: #3b82f6; }

.badge-swaminarayan {
    background: #fef3c7;
    color: #d97706;
}
.badge-swaminarayan::before { background: #f59e0b; }

.badge-mixed {
    background: linear-gradient(135deg, #dbeafe, #fef3c7, #ede9fe);
    color: #6d28d9;
}
.badge-mixed::before { background: linear-gradient(135deg, #3b82f6, #f59e0b, #a855f7); }

/* WhatsApp Link */
.whatsapp-link {
    color: #25d366;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.whatsapp-link:hover {
    color: #128c7e;
}

/* Action Cell */
.action-cell {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-btn.edit {
    background: #ede9fe;
    color: #7c3aed;
}

.action-btn.edit:hover {
    background: var(--gradient-purple);
    color: white;
    transform: scale(1.1);
}

.action-btn.delete {
    background: #fee2e2;
    color: #ef4444;
}

.action-btn.delete:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    transform: scale(1.1);
}

.action-btn.call {
    background: #d1fae5;
    color: #25d366;
}

.action-btn.call:hover {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    transform: scale(1.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    display: none;
}

.empty-state.show {
    display: block;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

/* Quick Actions Card */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-color);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.quick-action-item:hover {
    background: white;
    border-color: var(--primary-purple);
    box-shadow: var(--shadow);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.quick-action-icon.purple { background: var(--gradient-purple); }
.quick-action-icon.pink { background: var(--gradient-pink); }
.quick-action-icon.green { background: var(--gradient-green); }
.quick-action-icon.orange { background: var(--gradient-orange); }

.quick-action-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.quick-action-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Status Summary Card */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-color);
}

.status-item .status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
}

.status-item .status-dot.green { background: #10b981; }
.status-item .status-dot.yellow { background: #f59e0b; }
.status-item .status-dot.red { background: #ef4444; }

.status-item .status-label {
    flex: 1;
    font-weight: 500;
}

.status-item .status-count {
    font-weight: 700;
    color: var(--primary-purple);
    font-size: 1.1rem;
}

/* Food Summary */
.food-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.food-item {
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-color);
}

.food-item .food-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.food-item .food-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.food-item .food-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlide 0.3s ease;
}

.modal-content.modal-small {
    max-width: 420px;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: var(--gradient-purple);
    color: white;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* Form Styles */
form {
    padding: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: white;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.phone-input {
    display: flex;
    align-items: stretch;
}

.country-code {
    background: var(--gradient-purple);
    color: white;
    padding: 14px 16px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.phone-input input {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    border-left: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* Export Modal Styles */
.export-options {
    padding: 28px;
}

.export-options h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    background: var(--bg-color);
    font-weight: 500;
}

.checkbox-grid label:hover {
    background: #ede9fe;
}

.checkbox-grid input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-purple);
}

.export-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.export-options hr {
    border: none;
    border-top: 2px dashed var(--border-color);
    margin: 28px 0;
}

/* Backup Modal Styles */
.backup-options {
    padding: 28px;
}

.backup-section {
    margin-bottom: 24px;
}

.backup-section h3 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.backup-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.backup-section input[type="file"] {
    display: none;
}

.warning {
    color: var(--danger-color);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Delete Modal */
.delete-confirm {
    padding: 32px;
    text-align: center;
}

.delete-confirm p {
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--gradient-green);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Gift Info */
.gift-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gift-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Guest Name Cell */
.guest-name {
    font-weight: 600;
    color: var(--text-primary);
}

.guest-name small {
    display: block;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Host Select Wrapper */
.host-select-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.host-select-wrapper select {
    flex: 1;
}

.host-select-wrapper .btn {
    padding: 12px 16px;
    white-space: nowrap;
}

/* Host Management Modal */
.host-management {
    padding: 24px;
}

.add-host-section h3,
.host-list-section h3 {
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text-primary);
}

.add-host-form {
    display: flex;
    gap: 12px;
}

.add-host-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-family: inherit;
}

.add-host-form input:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.host-management hr {
    border: none;
    border-top: 2px dashed var(--border-color);
    margin: 24px 0;
}

.host-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.host-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.host-item:hover {
    background: #ede9fe;
}

.host-item-name {
    font-weight: 500;
    color: var(--text-primary);
}

.host-item-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: 8px;
}

.host-item-actions {
    display: flex;
    gap: 8px;
}

.host-edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.host-edit-form label {
    font-weight: 600;
    color: var(--text-primary);
}

.host-edit-form input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    font-family: inherit;
    font-size: 0.95rem;
}

.host-edit-form input:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}

.toggle-row .helper-text {
    margin-top: 4px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5f5;
    transition: 0.2s;
    border-radius: 999px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: var(--primary-purple);
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

.host-item-actions button {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Relative Of Badge */
.relative-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #ede9fe;
    color: var(--primary-purple);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
    }

    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .stat-card {
        padding: 14px;
        min-height: 110px;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-box {
        flex-direction: column;
    }

    .filter-box select {
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .hero-store-buttons {
        flex-direction: column;
    }

    .btn-store {
        width: 100%;
    }

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

    th, td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    .action-cell {
        flex-direction: column;
        gap: 6px;
    }

    .export-buttons {
        grid-template-columns: 1fr;
    }

    .food-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stat-card {
        min-height: 100px;
        padding: 12px;
    }

    .stat-card .stat-icon {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .action-bar,
    .action-cell,
    .modal,
    .header-actions {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
    }

    .stat-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        color: black !important;
        background: white !important;
    }

    .table-section {
        box-shadow: none !important;
    }

    thead {
        background: #f5f5f5 !important;
        color: black !important;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-purple-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple);
}


/* =========================
   AUTH + EVENTS UI
   ========================= */
.login-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}
.login-overlay.show{ display:flex; }
.login-card{
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 28px;
  text-align: center;
}
.login-logo{
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary-purple);
}
.login-card h2{ margin: 6px 0 8px; }
.login-card p{ color: var(--text-secondary); margin-bottom: 18px; }
.btn-google{ display:flex; justify-content:center; align-items:center; gap:10px; }

.event-toolbar{
  display:flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.select{
  appearance:none;
  -webkit-appearance:none;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 200px;
}

.user-pill{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 999px;
}
.user-avatar{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--gradient-purple);
  color: white;
  font-size: 0.9rem;
}
.user-name{
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width:768px){
  .select{ width: 100%; min-width: 0; }
  .event-toolbar{ width: 100%; }
  .header-actions{ width: 100%; flex-direction: column; }
  .header-actions .btn{ width: 100%; }
  .user-pill{ width: 100%; justify-content:center; }
}


/* =========================
   EVENT DASHBOARD (HOME)
   ========================= */
.event-dashboard { margin-bottom: 24px; }
.event-dashboard-header {
  display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 12px;
}
.event-cards {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.event-card {
  background: rgba(255,255,255,0.95);
  border: 2px solid rgba(124,58,237,0.12);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  cursor:pointer;
  transition: transform 120ms ease, border-color 120ms ease;
}
.event-card:hover { transform: translateY(-2px); border-color: rgba(124,58,237,0.22); }
.event-card .event-card-title { font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.event-card .event-card-sub { color: var(--text-secondary); font-size: 13px; margin-bottom: 10px; }
.event-card .event-card-stats { display:flex; gap:10px; flex-wrap:wrap; }
.event-pill {
  display:inline-flex; align-items:center; gap:6px;
  padding: 6px 10px;
  background: rgba(124,58,237,0.10);
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}
.helper-text { color: var(--text-secondary); font-size: 12px; margin-top: 6px; }

/* =========================
   GUEST STATUS TIMELINE
   ========================= */
.timeline {
  background: rgba(0,0,0,0.03);
  border: 1px dashed rgba(0,0,0,0.15);
  border-radius: 14px;
  padding: 10px;
  max-height: 140px;
  overflow:auto;
}
.timeline-item { display:flex; gap:10px; padding: 8px 6px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.timeline-item:last-child { border-bottom:none; }
.timeline-dot { width:10px; height:10px; border-radius: 999px; margin-top: 4px; background: rgba(124,58,237,0.8); flex: 0 0 auto; }
.timeline-content { font-size: 13px; color: var(--text-primary); }
.timeline-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* WhatsApp button in table */
.whatsapp-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.22);
  font-weight: 800;
  font-size: 12px;
  color: #0f5132;
  text-decoration:none;
}

#editEventBtn{padding:10px 12px;border-radius:999px}

/* =========================
   AUTH STYLES
   ========================= */
.divider-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 16px 0;
    position: relative;
}
.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--border-color);
}
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

.btn-logout {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* =========================
   IMPORT GUESTS MODAL
   ========================= */
.import-guests-options {
    padding: 24px;
}
.import-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.import-stat-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
}
.import-stat-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 4px;
}
.import-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    display: block;
}
.import-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* =========================
   WHATSAPP TEMPLATES MODAL
   ========================= */
.whatsapp-template-options {
    padding: 24px;
}
.template-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    max-height: 200px;
    overflow-y: auto;
}
.template-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: all 0.2s;
}
.template-item:hover {
    border-color: var(--primary-purple-light);
}
.template-item-content {
    flex: 1;
}
.template-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.template-item-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.template-item-actions {
    display: flex;
    gap: 8px;
}

.add-template-section,
.send-message-section {
    background: rgba(124, 58, 237, 0.05);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}
.add-template-section h4,
.send-message-section h4 {
    margin-bottom: 12px;
    color: var(--primary-purple);
    font-size: 1rem;
}

.message-preview {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-height: 80px;
    white-space: pre-wrap;
}

.send-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* =========================
   CONTACT PICKER
   ========================= */
.phone-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.phone-input-wrapper .phone-input {
    flex: 1;
}
.btn-contact-picker {
    padding: 12px 14px !important;
    font-size: 1.2rem;
}

/* =========================
   QUICK ACTION COLORS
   ========================= */
.quick-action-icon.blue { background: var(--gradient-blue); }
.quick-action-icon.violet { background: var(--gradient-violet); }

/* =========================
   RESPONSIVE UPDATES
   ========================= */
@media (max-width: 768px) {
    .import-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .template-list {
        max-height: 150px;
    }
    .send-actions {
        flex-direction: column;
    }
    .send-actions .btn {
        width: 100%;
    }
}

/* =========================
   LANDING PAGE STYLES
   ========================= */

/* Landing Page Container */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow-x: hidden;
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    transition: all 0.3s ease;
}

.landing-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-purple);
}

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

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.landing-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.landing-nav-links a:hover {
    color: var(--primary-purple);
}

.btn-nav {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-menu.show {
    display: flex;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(99, 102, 241, 0.1));
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.15), rgba(245, 87, 108, 0.1));
    bottom: 10%;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.15), rgba(56, 239, 125, 0.1));
    top: 40%;
    left: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.15), rgba(254, 225, 64, 0.1));
    bottom: 20%;
    right: 20%;
    animation-delay: -15s;
}

.shape-5 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(0, 242, 254, 0.1));
    top: 20%;
    left: 40%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 30px) rotate(3deg); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content.hero-playful {
    grid-template-columns: 1fr;
    text-align: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-content.hero-playful .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-emoji-row {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.hero-emoji {
    font-size: 2.2rem;
    background: white;
    border-radius: 18px;
    padding: 12px 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.hero-logo-text {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-content.hero-playful .hero-subtitle {
    max-width: 640px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    justify-content: center;
}

.hero-store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}

.btn-store {
    padding: 12px 20px;
    font-size: 0.95rem;
    border-radius: 999px;
}

.store-icon {
    font-size: 1.1rem;
}

.hero-install-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 620px;
    text-align: center;
    margin: 0 auto;
}

.btn-large {
    padding: 16px 32px !important;
    font-size: 1rem !important;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-purple);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 0.8s ease 0.2s both;
}

.hero-visual-playful {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.playful-card {
    background: white;
    border-radius: 24px;
    padding: 20px 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.12);
    display: flex;
    align-items: center;
    gap: 16px;
}

.playful-icon {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(124, 58, 237, 0.12);
}

.playful-title {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.playful-sub {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dashboard-preview {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.preview-header {
    background: var(--gradient-purple);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.preview-dots span:first-child { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #febc2e; }
.preview-dots span:last-child { background: #28c840; }

.preview-content {
    padding: 20px;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.preview-stat-card {
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.preview-stat-card.purple { background: var(--gradient-purple); }
.preview-stat-card.pink { background: var(--gradient-pink); }
.preview-stat-card.green { background: var(--gradient-green); }

.preview-stat-icon {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 4px;
}

.preview-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
}

.preview-stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.preview-table {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
}

.preview-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 12px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.preview-row.header {
    background: rgba(124, 58, 237, 0.05);
    font-weight: 600;
    color: var(--text-primary);
}

.preview-row:last-child {
    border-bottom: none;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.status-badge.confirmed {
    background: #d1fae5;
    color: #059669;
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: floatCard 3s ease-in-out infinite;
}

.floating-card-icon {
    font-size: 1.2rem;
}

.card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30%;
    left: -30px;
    animation-delay: -1s;
}

.card-3 {
    bottom: 10%;
    right: 10%;
    animation-delay: -2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Features Section */
.features-section {
    padding: 100px 24px;
    background: white;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(168, 85, 247, 0.1));
    color: var(--primary-purple);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 20px 40px -15px rgba(124, 58, 237, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    color: white;
}

.feature-icon.purple { background: var(--gradient-purple); }
.feature-icon.pink { background: var(--gradient-pink); }
.feature-icon.green { background: var(--gradient-green); }
.feature-icon.orange { background: var(--gradient-orange); }
.feature-icon.blue { background: var(--gradient-blue); }
.feature-icon.violet { background: var(--gradient-violet); }

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: 100px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step-card {
    background: white;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    width: 280px;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--gradient-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple-light), var(--primary-purple));
    border-radius: 3px;
}

/* CTA Section */
.cta-section {
    padding: 80px 24px;
    background: var(--gradient-purple);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-purple);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Footer */
.landing-footer {
    background: #1e293b;
    padding: 40px 24px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.landing-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Auth Modal */
.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-modal.show {
    display: flex;
}

.auth-modal-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    position: relative;
    animation: modalSlideUp 0.3s ease;
}

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

.auth-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-color);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.auth-close-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-purple);
}

.auth-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.auth-form > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-google-auth {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.btn-google-auth:hover {
    border-color: var(--primary-purple);
    background: rgba(124, 58, 237, 0.05);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 16px;
}

.auth-input-group {
    margin-bottom: 16px;
}

.auth-input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg-color);
}

.auth-input-group input:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: white;
}

.btn-auth {
    width: 100%;
    margin-top: 8px;
    padding: 16px !important;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-switch a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-forgot {
    text-align: right;
    margin: -8px 0 8px;
    font-size: 0.85rem;
}
.auth-forgot a {
    color: var(--text-secondary);
    text-decoration: none;
}
.auth-forgot a:hover {
    color: var(--primary-purple);
    text-decoration: underline;
}

/* Responsive Landing Page */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .landing-nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-emoji-row {
        gap: 12px;
    }

    .hero-logo-text {
        font-size: 2.1rem;
    }

    .hero-emoji {
        font-size: 1.7rem;
        padding: 10px 12px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-connector {
        width: 3px;
        height: 40px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .preview-stats {
        grid-template-columns: 1fr;
    }

    .preview-stat-card {
        padding: 12px;
    }

    .auth-modal-content {
        padding: 24px;
    }
}

/* =========================
   MOBILE APP-LIKE ENHANCEMENTS
   ========================= */

/* Prevent text selection on tap (app-like feel) */
.btn, .action-btn, .nav-item, .quick-action-item, .call-toggle-btn {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Touch feedback for buttons */
.btn:active, .action-btn:active, .quick-action-item:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* Call Toggle Button */
.call-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.call-toggle-btn:hover {
    border-color: var(--primary-purple);
    transform: scale(1.1);
}

.call-toggle-btn.done {
    background: var(--gradient-green);
    border-color: #10b981;
    color: white;
}

/* Host email badge */
.host-email-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.host-mobile-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.host-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.host-item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.host-item-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* =========================
   FOOD SPLIT INPUTS
   ========================= */

.food-split-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 12px;
    border: 1px solid var(--border-color);
}

.food-split-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.food-split-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 120px;
}

.food-split-input {
    width: 70px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
}

.food-split-input:focus {
    border-color: var(--primary-purple);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.food-split-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.food-split-total.match {
    color: #10b981;
}

.food-split-total.mismatch {
    color: #ef4444;
    font-weight: 600;
}

/* Template image indicator */
.template-has-image {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
    margin-left: 6px;
}

/* Add host form improvements */
.add-host-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.add-host-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-family: inherit;
}

.add-host-form .btn {
    align-self: flex-start;
}

/* =========================
   ENHANCED MOBILE RESPONSIVE
   ========================= */

@media (max-width: 768px) {
    /* Make the app feel more native */
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: none;
    }

    /* Full-width stat cards */
    .dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
        min-height: 100px;
    }

    .stat-card .stat-value {
        font-size: 1.3rem;
    }

    .stat-card .stat-label {
        font-size: 0.75rem;
    }

    .stat-card .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        top: 12px;
        right: 12px;
    }

    /* Better table for mobile */
    .table-wrapper {
        border-radius: var(--radius-lg);
        margin: 0 -8px;
    }

    table {
        font-size: 0.85rem;
    }

    th {
        padding: 12px 8px;
        font-size: 0.7rem;
    }

    td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    /* Compact badges on mobile */
    .badge {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .relative-badge {
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    /* WhatsApp button mobile */
    .whatsapp-btn {
        padding: 6px 8px;
        font-size: 0.7rem;
    }

    /* Action buttons mobile */
    .action-cell {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    /* Call toggle button mobile */
    .call-toggle-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    /* Quick actions grid mobile */
    .card-body > div[style*="grid"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .quick-action-item {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .quick-action-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .quick-action-text h4 {
        font-size: 0.8rem;
    }

    .quick-action-text p {
        font-size: 0.7rem;
        display: none;
    }

    /* Header mobile improvements */
    .header-title h1 {
        font-size: 1.3rem;
    }

    .header-title p {
        font-size: 0.8rem;
    }

    /* Event toolbar mobile */
    .event-toolbar {
        flex-direction: column;
        width: 100%;
    }

    .event-toolbar .select,
    .event-toolbar .btn {
        width: 100%;
    }

    /* Modals full screen on mobile */
    .modal-content {
        max-height: 95vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        margin-top: auto;
    }

    .modal {
        align-items: flex-end;
    }

    /* Form improvements for mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 12px;
    }

    /* Bottom safe area for iOS */
    .modal-content {
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }

    /* Card improvements */
    .card {
        border-radius: var(--radius-lg);
        margin-bottom: 12px;
    }

    .card-header {
        padding: 14px 16px;
    }

    .card-header h2 {
        font-size: 0.95rem;
    }

    .card-body {
        padding: 14px 16px;
    }

    /* Status items mobile */
    .status-item {
        padding: 10px 12px;
    }

    .status-item .status-label {
        font-size: 0.85rem;
    }

    .status-item .status-count {
        font-size: 1rem;
    }

    /* Food summary mobile */
    .food-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .food-item {
        padding: 12px;
    }

    .food-item .food-icon {
        font-size: 1.5rem;
    }

    .food-item .food-count {
        font-size: 1.2rem;
    }

    /* Search and filters mobile */
    .action-bar {
        padding: 14px;
        gap: 10px;
    }

    .search-box input {
        padding: 12px 12px 12px 40px;
        font-size: 16px;
    }

    .search-box::before {
        left: 12px;
    }

    /* Better touch targets */
    .filter-box select {
        padding: 12px 36px 12px 12px;
        font-size: 16px;
        min-width: 100%;
    }

    /* Floating action button style for Add Guest */
    #addGuestBtn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        font-size: 1.5rem;
        box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
        z-index: 99;
    }

    #addGuestBtn span {
        font-size: 1.5rem;
    }

    /* Hide text in mobile FAB, show only icon */
    .header-actions .btn-primary span:last-child {
        display: none;
    }

    /* User pill mobile */
    .user-pill {
        padding: 6px 10px;
    }

    .user-name {
        font-size: 0.8rem;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Empty state mobile */
    .empty-state {
        padding: 40px 20px;
    }

    .empty-icon {
        font-size: 3rem;
    }

    .empty-state p {
        font-size: 0.95rem;
    }

    /* Toast mobile */
    .toast {
        bottom: 80px;
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(100px);
        text-align: center;
    }

    .toast.show {
        transform: translateX(0) translateY(0);
    }
}

/* Extra small screens (small phones) */
@media (max-width: 380px) {
    .dashboard {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 10px;
        min-height: 80px;
    }

    .stat-card .stat-value {
        font-size: 1.1rem;
    }

    th, td {
        padding: 8px 6px;
        font-size: 0.75rem;
    }

    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .call-toggle-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .quick-action-item {
        padding: 10px;
    }

    .quick-action-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Landscape mode adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-content {
        max-height: 98vh;
    }

    .modal {
        align-items: center;
    }

    .hero {
        min-height: auto;
        padding: 80px 24px 40px;
    }
}

/* Safe area support for notched phones */
@supports (padding: max(0px)) {
    .main-content {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    .toast {
        bottom: max(80px, calc(env(safe-area-inset-bottom) + 60px));
    }

    #addGuestBtn {
        bottom: max(20px, calc(env(safe-area-inset-bottom) + 10px));
        right: max(20px, env(safe-area-inset-right));
    }
}

/* PWA standalone mode (when installed as app) */
@media (display-mode: standalone) {
    .landing-nav {
        padding-top: env(safe-area-inset-top, 0);
    }

    body {
        background: var(--bg-color);
    }
}

/* =========================
   BOTTOM NAVIGATION BAR
   ========================= */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:active {
    transform: scale(0.92);
}

.bottom-nav-icon {
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 2px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.bottom-nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.bottom-nav-item.active .bottom-nav-icon,
.bottom-nav-item.active .bottom-nav-label {
    color: var(--primary-purple);
}

.bottom-nav-item:hover:not(.active) .bottom-nav-icon,
.bottom-nav-item:hover:not(.active) .bottom-nav-label {
    color: var(--text-primary);
}

/* FAB-style Add button in center */
.bottom-nav-add {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--gradient-purple);
    border-radius: 50%;
    margin-top: -20px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.bottom-nav-add .bottom-nav-icon {
    color: white;
    font-size: 1.6rem;
    margin: 0;
}

.bottom-nav-add:active {
    transform: scale(0.9);
}

/* Desktop - hide bottom nav */
@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
}

/* Mobile - show bottom nav and adjust main content */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }

    .main-content {
        padding-bottom: 90px;
    }

    /* Hide sidebar on mobile */
    .sidebar {
        display: none;
    }

    /* Hide floating add button when bottom nav is present */
    #addGuestBtn {
        display: none !important;
    }

    /* Adjust toast position above bottom nav */
    .toast {
        bottom: max(100px, calc(env(safe-area-inset-bottom) + 80px));
    }
}

/* =========================
   BOTTOM SHEET MODALS
   ========================= */

.bottom-sheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
}

.bottom-sheet.show {
    display: block;
}

.bottom-sheet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bottom-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: env(safe-area-inset-bottom);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.bottom-sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 12px auto;
}

.bottom-sheet-header {
    padding: 0 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.bottom-sheet-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.bottom-sheet-body {
    padding: 8px 0;
}

/* Settings Menu Items */
.settings-menu {
    padding: 0;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.settings-item:active {
    background: var(--bg-color);
}

.settings-icon {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: var(--radius-md);
}

.settings-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.settings-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.settings-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.settings-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.settings-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 20px;
}

.settings-item.danger .settings-label {
    color: var(--danger-color);
}

.settings-item.danger .settings-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* =========================
   COLLABORATION UI
   ========================= */

.collaborate-toggle {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-purple);
    cursor: pointer;
}

.collaborate-hint {
    display: none;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.collaborate-hint-icon {
    margin-right: 6px;
}

/* Shared Events Banner */
.shared-events-banner {
    display: none;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(236, 72, 153, 0.06));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-xl);
    padding: 16px;
    margin-bottom: 20px;
}

.shared-banner-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.shared-banner-icon {
    font-size: 1.2rem;
}

.shared-banner-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shared-event-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid var(--border-color);
}

.shared-event-item:active {
    background: var(--bg-color);
    transform: scale(0.98);
}

.shared-event-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shared-event-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.shared-event-owner {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.shared-event-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.shared-event-item.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.shared-event-item.active .shared-event-arrow {
    color: #10b981;
}

.shared-banner-count {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-color);
    padding: 2px 10px;
    border-radius: 10px;
}

/* Host list collaboration badge */
.host-collab-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Edit host button */
.host-edit-btn {
    min-width: 32px;
    padding: 4px 8px;
    font-size: 1rem;
}

/* Toggle switch */
.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 500;
}
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    transition: background 0.3s;
    cursor: pointer;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background: #7c3aed;
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* Co-host activity bar */
.cohost-activity-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(16,185,129,0.08));
    border: 1px solid rgba(124,58,237,0.15);
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.cohost-activity-icon {
    font-size: 1.2rem;
}
.cohost-activity-text {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}
.cohost-activity-badge {
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-cohost {
    background: rgba(16,185,129,0.15);
    color: #10b981;
}
.badge-owner {
    background: rgba(124,58,237,0.15);
    color: #7c3aed;
}

/* =========================
   EVENT LIST IN BOTTOM SHEET
   ========================= */

.event-list {
    padding: 0;
}

.event-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-color);
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

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

.event-list-item:active {
    background: var(--bg-color);
}

.event-list-item.active {
    background: rgba(124, 58, 237, 0.08);
}

.event-list-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-purple);
}

.event-list-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-purple);
    border-radius: var(--radius-md);
    color: white;
}

.event-list-info {
    flex: 1;
    min-width: 0;
}

.event-list-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-list-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.event-list-stats {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.event-list-stat {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: var(--bg-color);
    border-radius: 10px;
    color: var(--text-secondary);
}

.event-list-check {
    color: var(--primary-purple);
    font-size: 1.2rem;
    opacity: 0;
}

.event-list-item.active .event-list-check {
    opacity: 1;
}

.event-list-empty {
    text-align: center;
    padding: 40px 20px;
}

.event-list-empty p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* =========================
   OFFLINE INDICATOR
   ========================= */

.offline-indicator {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 8px 16px;
    padding-top: max(8px, env(safe-area-inset-top));
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.offline-indicator.show {
    display: flex;
}

.offline-icon {
    font-size: 1rem;
}

body.offline .offline-indicator {
    display: flex;
}

body.offline .main-content {
    padding-top: calc(24px + env(safe-area-inset-top) + 40px);
}

/* Online sync indicator */
.sync-indicator {
    position: fixed;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 100;
    display: none;
}

.sync-indicator.syncing {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-purple);
}

.sync-indicator.synced {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* =========================
   SWIPE GESTURE STYLES
   ========================= */

.swipe-row {
    position: relative;
    overflow: hidden;
}

.swipe-actions {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.swipe-actions-left {
    left: 0;
    padding-left: 16px;
    background: linear-gradient(90deg, #10b981, transparent);
}

.swipe-actions-right {
    right: 0;
    padding-right: 16px;
    background: linear-gradient(270deg, #ef4444, transparent);
}

.swipe-action-btn {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
}

.swipe-action-btn.confirm {
    background: #10b981;
}

.swipe-action-btn.decline {
    background: #ef4444;
}

/* Guest row with swipe indicator */
.guest-row-swipeable {
    position: relative;
    background: white;
    transition: transform 0.2s ease;
}

.guest-row-swipeable.swiping {
    transition: none;
}

.swipe-hint {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.swipe-hint-left {
    left: 10px;
    background: #10b981;
    color: white;
}

.swipe-hint-right {
    right: 10px;
    background: #ef4444;
    color: white;
}

.guest-row-swipeable.swipe-left .swipe-hint-right,
.guest-row-swipeable.swipe-right .swipe-hint-left {
    opacity: 1;
}

/* =========================
   MOBILE MODAL BOTTOM SHEET
   ========================= */

@media (max-width: 768px) {
    /* Convert modals to bottom sheets on mobile */
    .modal {
        align-items: flex-end;
    }

    .modal-content {
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        margin: 0;
        max-height: 92vh;
        animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .modal-content::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: var(--border-color);
        border-radius: 2px;
        margin: 12px auto;
    }

    .modal-header {
        border-radius: 0;
    }

    /* Adjust form padding on mobile */
    form {
        padding: 20px;
    }

    .form-actions {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* =========================
   INSTALL PROMPT
   ========================= */

.install-prompt {
    display: none;
    position: fixed;
    bottom: 100px;
    left: 16px;
    right: 16px;
    background: white;
    border-radius: var(--radius-xl);
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.install-prompt.show {
    display: block;
}

.install-prompt-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.install-prompt-icon {
    font-size: 2.5rem;
}

.install-prompt-text {
    flex: 1;
}

.install-prompt-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.install-prompt-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.install-prompt-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.install-prompt-actions .btn {
    flex: 1;
    padding: 10px 16px;
}

/* Hide install prompt on desktop */
@media (min-width: 769px) {
    .install-prompt {
        display: none !important;
    }
}

/* Hide bottom nav safe area for bottom sheets */
@media (max-width: 768px) {
    .bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}
