:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --primary-light: #A29BFE;
    --secondary: #00CEC9;
    --accent: #FDCB6E;
    --bg: #F0F2F8;
    --surface: #FFFFFF;
    --text: #1A1A2E;
    --muted: #6C7A89;
    --muted-light: #A0AEC0;
    --danger: #E17055;
    --success: #00B894;
    --border: #E8ECF1;
    --radius-card: 16px;
    --radius-sm: 10px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    max-width: 480px;
    margin: 0 auto;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    padding-bottom: 80px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* --- Auth Pages --- */
.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    min-height: 100dvh;
    background: linear-gradient(to bottom, var(--surface), var(--bg));
}

.auth-logo {
    width: 64px; height: 64px; border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; font-size: 30px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(108,92,231,.3);
    margin-bottom: 16px;
}

.auth-title {
    font-size: 28px; font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle { color: var(--muted); font-size: 14px; margin-top: 4px; margin-bottom: 32px; }

.auth-form { width: 100%; max-width: 400px; }
.auth-form .form-group { margin-bottom: 16px; }
.auth-form label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.auth-form input, .auth-form textarea, .auth-form select {
    width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
    border: 2px solid var(--border); font-size: 14px; outline: none;
    transition: border-color .2s;
    background: var(--surface);
}
.auth-form input:focus, .auth-form textarea:focus, .auth-form select:focus {
    border-color: var(--primary);
}

.btn-primary {
    width: 100%; padding: 12px; border: none; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; font-size: 15px; font-weight: 600; cursor: pointer;
    box-shadow: 0 4px 16px rgba(108,92,231,.25);
    transition: opacity .2s, transform .1s;
}
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .6; }

.auth-link { text-align: center; margin-top: 24px; font-size: 14px; color: var(--muted); }
.auth-link a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* --- Bottom Nav --- */
.bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px;
    display: flex; justify-content: space-around; align-items: center;
    background: var(--surface); padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    z-index: 100;
}
.bottom-nav-item {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 40px; border-radius: 12px;
    text-decoration: none; font-size: 20px;
    transition: background .2s;
}
.bottom-nav-item.active { background: rgba(108,92,231,.1); }
.bottom-nav-create {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; font-size: 28px; margin-top: -20px;
    box-shadow: 0 4px 16px rgba(108,92,231,.3);
}
.bottom-nav-create.active { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.bottom-nav-icon-create { color: white; font-weight: 300; }

/* --- Feed --- */
.page-header {
    padding: 16px 20px 8px; background: var(--surface);
}
.page-title { font-size: 24px; font-weight: 800; }

.filter-bar {
    display: flex; gap: 8px; padding: 12px 20px;
    overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-pill {
    flex-shrink: 0; padding: 8px 16px; border-radius: 20px;
    font-size: 13px; font-weight: 600;
    border: 2px solid var(--border); background: var(--surface);
    color: var(--muted); cursor: pointer; transition: all .2s;
    text-decoration: none;
}
.filter-pill.active { border-color: var(--primary); background: var(--primary); color: white; }

.events-list { padding: 0 20px 20px; }

.event-card {
    background: var(--surface); border-radius: var(--radius-card);
    padding: 16px; margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    cursor: pointer; transition: transform .15s;
    text-decoration: none; color: var(--text); display: block;
}
.event-card:active { transform: scale(.98); }

.event-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.event-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 600;
}
.event-price { font-size: 12px; font-weight: 600; color: var(--muted); }

.event-card-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }

.event-card-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.event-card-meta span { display: flex; align-items: center; gap: 4px; }

.event-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.event-spots { font-size: 12px; color: var(--muted); }

.btn-join {
    padding: 8px 16px; border-radius: 10px; border: none;
    font-size: 12px; font-weight: 600; cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; transition: opacity .2s;
}
.btn-join:disabled { opacity: .5; }
.btn-join.joined { background: var(--success); }

/* --- Event Detail --- */
.detail-header { padding: 20px; background: var(--surface); }
.detail-badge { margin-bottom: 8px; }
.detail-title { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.detail-meta { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.detail-meta span { display: flex; align-items: center; gap: 6px; }

.detail-body { padding: 20px; }
.detail-section { margin-bottom: 20px; }
.detail-section-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.detail-description { font-size: 14px; line-height: 1.6; }

.participant-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--border);
}
.participant-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px; color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    flex-shrink: 0;
}
.participant-info { flex: 1; }
.participant-name { font-size: 14px; font-weight: 600; }
.participant-role { font-size: 11px; color: var(--primary); font-weight: 600; }
.empty-slot {
    border: 2px dashed var(--border); border-radius: 12px;
    padding: 12px; text-align: center; color: var(--muted-light);
    font-size: 13px; margin-bottom: 8px;
}

.detail-actions { padding: 20px; }
.btn-full {
    width: 100%; padding: 14px; border: none; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 600; cursor: pointer;
    margin-bottom: 8px; transition: opacity .2s;
}
.btn-full:active { opacity: .8; }
.btn-primary-full { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; }
.btn-success-full { background: var(--success); color: white; }
.btn-danger-full { background: var(--danger); color: white; }
.btn-outline-full { background: var(--surface); border: 2px solid var(--border); color: var(--text); }

/* --- Chat --- */
.chat-container { display: flex; flex-direction: column; height: 100dvh; padding-bottom: 0; }

.chat-pinned {
    padding: 12px 20px; background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-size: 12px; color: var(--muted);
}

.chat-messages {
    flex: 1; overflow-y: auto; padding: 16px 20px;
    display: flex; flex-direction: column; gap: 12px;
}

.chat-msg { display: flex; gap: 8px; max-width: 80%; }
.chat-msg.own { align-self: flex-end; flex-direction: row-reverse; }

.chat-msg-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; color: white; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.chat-msg-body { background: var(--surface); border-radius: 14px; padding: 10px 14px; }
.chat-msg.own .chat-msg-body { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; }
.chat-msg-name { font-size: 11px; font-weight: 600; margin-bottom: 2px; }
.chat-msg.own .chat-msg-name { color: rgba(255,255,255,.8); }
.chat-msg-text { font-size: 14px; line-height: 1.4; }
.chat-msg-time { font-size: 10px; color: var(--muted-light); margin-top: 4px; }
.chat-msg.own .chat-msg-time { color: rgba(255,255,255,.6); }

.chat-input-bar {
    display: flex; gap: 8px; padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--border);
}
.chat-input {
    flex: 1; padding: 10px 16px; border-radius: 20px;
    border: 2px solid var(--border); font-size: 14px; outline: none;
    background: var(--bg);
}
.chat-input:focus { border-color: var(--primary); }
.chat-send {
    width: 40px; height: 40px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; font-size: 18px; cursor: pointer; flex-shrink: 0;
}

/* --- Profile --- */
.profile-header {
    padding: 24px 20px; background: var(--surface); text-align: center;
}
.profile-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800; color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    margin-bottom: 12px;
}
.profile-name { font-size: 20px; font-weight: 700; }
.profile-age { color: var(--muted); font-size: 14px; }

.profile-section { padding: 20px; }
.profile-section-title { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }

.profile-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; border-bottom: 1px solid var(--border);
    text-decoration: none; color: var(--text);
}

.btn-logout {
    display: block; width: calc(100% - 40px); margin: 20px auto;
    padding: 14px; border: 2px solid var(--danger); border-radius: var(--radius-sm);
    background: transparent; color: var(--danger); font-size: 15px;
    font-weight: 600; cursor: pointer; text-align: center;
}

/* --- Create Event --- */
.create-form { padding: 20px; }
.create-form .form-group { margin-bottom: 20px; }
.create-form label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.create-form input, .create-form textarea, .create-form select {
    width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
    border: 2px solid var(--border); font-size: 14px; outline: none; background: var(--surface);
}
.create-form input:focus, .create-form textarea:focus, .create-form select:focus { border-color: var(--primary); }
.create-form textarea { resize: vertical; min-height: 80px; }

.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; accent-color: var(--primary); }
.range-value { font-size: 14px; font-weight: 600; min-width: 24px; text-align: center; }

.price-toggle { display: flex; gap: 8px; margin-bottom: 8px; }
.price-toggle-btn {
    flex: 1; padding: 10px; border-radius: var(--radius-sm);
    border: 2px solid var(--border); background: var(--surface);
    font-size: 13px; font-weight: 600; cursor: pointer; text-align: center;
    transition: all .2s;
}
.price-toggle-btn.active { border-color: var(--primary); background: var(--primary); color: white; }

/* --- Onboarding --- */
.onboarding-page {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 32px; min-height: 100dvh;
    background: linear-gradient(to bottom, var(--surface), var(--bg));
}
.onboarding-progress { display: flex; gap: 8px; margin-bottom: 40px; }
.onboarding-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.onboarding-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }
.onboarding-step { width: 100%; max-width: 360px; text-align: center; }
.onboarding-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.onboarding-desc { color: var(--muted); font-size: 14px; margin-bottom: 32px; }

.rules-list { text-align: left; }
.rule-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.rule-checkbox {
    width: 24px; height: 24px; border-radius: 6px;
    border: 2px solid var(--border); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s; font-size: 14px; color: transparent;
}
.rule-item.checked .rule-checkbox {
    border-color: var(--primary); background: var(--primary); color: white;
}
.rule-text { font-size: 14px; line-height: 1.4; }

/* --- Admin --- */
.admin-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 24px; height: 24px; border-radius: 12px;
    background: var(--danger); color: white; font-size: 12px;
    font-weight: 600; padding: 0 8px; margin-left: 8px;
}
.admin-actions { display: flex; gap: 8px; margin-top: 12px; }
.admin-approve {
    flex: 1; padding: 10px; border: none; border-radius: var(--radius-sm);
    background: var(--success); color: white; font-weight: 600;
    font-size: 13px; cursor: pointer;
}
.admin-reject {
    flex: 1; padding: 10px; border: none; border-radius: var(--radius-sm);
    background: var(--danger); color: white; font-weight: 600;
    font-size: 13px; cursor: pointer;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.4);
    display: flex; align-items: flex-end; justify-content: center;
    z-index: 200;
    animation: fadeIn .2s ease;
}
.modal-sheet {
    width: 100%; max-width: 480px; background: var(--surface);
    border-radius: 20px 20px 0 0; padding: 24px 20px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    animation: slideUp .3s ease;
}
.modal-handle {
    width: 40px; height: 4px; border-radius: 2px;
    background: var(--border); margin: 0 auto 16px;
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

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

/* --- Loading --- */
.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, #f0f2f8 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); }

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* =====================================================
   DESKTOP LAYOUT
   ===================================================== */

/* --- Top Bar (Desktop Header) --- */
.top-bar {
    display: none;
}

/* --- Sidebar (Desktop) --- */
.sidebar {
    display: none;
}

/* --- Pricing Page --- */
.pricing-page {
    padding: 20px;
}

.pricing-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-card);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.pricing-banner a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
}

.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-card {
    background: var(--surface);
    border-radius: var(--radius-card);
    padding: 24px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    border: 2px solid var(--border);
    position: relative;
}

.pricing-card.current {
    border-color: var(--primary);
}

.pricing-card-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.pricing-card-name {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.pricing-card-price {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 16px;
}

.pricing-card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.pricing-card-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-card-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    font-size: 14px;
}

.btn-pricing {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.btn-pricing:active { opacity: .8; }
.btn-pricing:disabled { opacity: .5; cursor: default; }

.btn-pricing-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

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

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

/* --- Plan Badge --- */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.plan-badge-free {
    background: rgba(108,122,137,.1);
    color: var(--muted);
}

.plan-badge-pro {
    background: rgba(108,92,231,.1);
    color: var(--primary);
}

.plan-badge-business {
    background: rgba(253,203,110,.15);
    color: #E17055;
}

/* --- Create Page Plan Banner --- */
.create-plan-banner {
    padding: 12px 20px;
    background: rgba(253,203,110,.15);
    border-bottom: 1px solid rgba(253,203,110,.3);
    font-size: 13px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.create-plan-banner a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* =====================================================
   DESKTOP MEDIA QUERIES
   ===================================================== */

/* Tablet: 768px - 1023px */
@media (min-width: 768px) {
    body {
        max-width: 100%;
        margin: 0;
    }

    .app-container {
        padding-bottom: 0;
        margin-left: 240px;
    }

    /* Top Bar */
    .top-bar {
        display: flex;
        position: fixed;
        top: 0;
        left: 240px;
        right: 0;
        height: 60px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        align-items: center;
        padding: 0 24px;
        z-index: 110;
        gap: 20px;
    }

    .top-bar-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        flex-shrink: 0;
    }

    .top-bar-brand {
        font-size: 18px;
        font-weight: 800;
        color: var(--text);
    }

    .top-bar-search {
        flex: 1;
        max-width: 400px;
    }

    .top-bar-search input {
        width: 100%;
        padding: 8px 16px;
        border-radius: 20px;
        border: 2px solid var(--border);
        font-size: 14px;
        outline: none;
        background: var(--bg);
        transition: border-color .2s;
    }

    .top-bar-search input:focus {
        border-color: var(--primary);
    }

    .top-bar-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .top-bar-link {
        padding: 6px 14px;
        border-radius: 8px;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        color: var(--muted);
        transition: all .2s;
    }

    .top-bar-link:hover {
        background: rgba(108,92,231,.08);
        color: var(--primary);
    }

    /* Sidebar */
    .sidebar {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 240px;
        background: var(--surface);
        border-right: 1px solid var(--border);
        z-index: 120;
        padding: 20px 12px;
    }

    .sidebar-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        padding: 8px 12px;
        margin-bottom: 24px;
    }

    .sidebar-brand {
        font-size: 20px;
        font-weight: 800;
        color: var(--text);
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .sidebar-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 10px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        color: var(--text);
        transition: all .15s;
    }

    .sidebar-item:hover {
        background: rgba(108,92,231,.06);
    }

    .sidebar-item.active {
        background: rgba(108,92,231,.1);
        color: var(--primary);
        font-weight: 600;
    }

    .sidebar-icon {
        font-size: 18px;
        width: 24px;
        text-align: center;
    }

    /* Hide bottom nav on desktop */
    .bottom-nav {
        display: none;
    }

    /* Top bar push for content */
    .app-container {
        padding-top: 60px;
        padding-left: 32px;
        padding-right: 32px;
    }

    /* Content padding adjustments */
    .page-header {
        padding: 20px 32px 12px;
    }

    .filter-bar {
        padding: 12px 32px;
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .events-list {
        padding: 0 32px 32px;
    }

    /* Events grid on tablet */
    .events-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0;
    }

    .events-grid .event-card {
        margin-bottom: 0;
    }

    /* Event detail centered */
    .detail-header,
    .detail-body,
    .detail-actions {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Chat desktop layout */
    .chat-container {
        padding-top: 60px;
    }

    .chat-pinned {
        max-width: 700px;
        margin: 0 auto;
    }

    .chat-messages {
        max-width: 700px;
        margin: 0 auto;
    }

    .chat-input-bar {
        max-width: 700px;
        margin: 0 auto;
    }

    /* Profile centered on tablet */
    .profile-header {
        padding: 32px 32px 24px;
    }

    .profile-section {
        padding: 20px 32px;
    }

    /* Create form wider on tablet */
    .create-form {
        padding: 20px 32px;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Auth pages centered card */
    .auth-page {
        padding-top: 80px;
        justify-content: flex-start;
    }

    .auth-form {
        max-width: 420px;
    }

    /* Onboarding centered */
    .onboarding-page {
        padding-top: 80px;
        justify-content: flex-start;
    }

    /* Modal centered on desktop */
    .modal-overlay {
        align-items: center;
    }

    .modal-sheet {
        border-radius: 20px;
        max-width: 420px;
    }

    /* Pricing on tablet */
    .pricing-page {
        padding: 20px 32px;
        max-width: 700px;
        margin: 0 auto;
    }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
    .app-container {
        margin-left: 240px;
    }

    /* 3-column grid */
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .events-list {
        max-width: 1200px;
        margin: 0 auto;
    }

    .filter-bar {
        max-width: 1200px;
        margin: 0 auto;
    }

    .page-header {
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Wider detail page */
    .detail-header,
    .detail-body,
    .detail-actions {
        max-width: 800px;
    }

    .chat-pinned,
    .chat-messages,
    .chat-input-bar {
        max-width: 800px;
    }

    /* Profile wider */
    .profile-header {
        max-width: 600px;
        margin: 0 auto;
        padding: 40px 32px 32px;
    }

    .profile-section {
        max-width: 600px;
        margin: 0 auto;
    }

    /* Pricing max width */
    .pricing-page {
        max-width: 960px;
    }

    .pricing-cards {
        flex-direction: row;
        gap: 20px;
    }

    .pricing-card {
        flex: 1;
    }
}

/* Ensure sidebar hidden on mobile */
@media (max-width: 767px) {
    .sidebar {
        display: none !important;
    }

    .top-bar {
        display: none !important;
    }

    .events-grid {
        display: block;
    }
}

/* --- City Selector --- */
.top-bar-city {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.top-bar-city-icon {
    font-size: 16px;
}

.top-bar-city-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.top-bar-city-select {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 200;
    padding: 8px 0;
    display: none;
}

.top-bar-city-select.open {
    display: block;
}

.top-bar-city-select option {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

/* SEO Landing Page */
.seo-hero {
    padding: 32px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    text-align: center;
}

.seo-hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.seo-hero p {
    font-size: 14px;
    opacity: .9;
    margin-bottom: 16px;
}

.seo-city-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-top: 8px;
}

.seo-city-banner span {
    white-space: nowrap;
}

.seo-city-select {
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    outline: none;
}

.seo-breadcrumbs {
    padding: 12px 20px;
    font-size: 13px;
    color: var(--muted);
}

.seo-breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.seo-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
}

.seo-category-pill {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    transition: all .2s;
}

.seo-category-pill:hover,
.seo-category-pill.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* City page mobile */
@media (max-width: 767px) {
    .top-bar-city-select {
        left: -80px;
    }
}
