/* VibeMap - Design System */
/* Dark theme, neon gradients (pink→purple), glassmorphism */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(20, 20, 30, 0.85);
    --bg-input: rgba(255, 255, 255, 0.06);

    --text-primary: #f0f0f5;
    --text-secondary: #8a8a9a;
    --text-muted: #555566;

    --accent: #ff0040;
    --accent-light: #ff3366;
    --accent-glow: rgba(255, 0, 64, 0.3);
    --gradient-hot: linear-gradient(135deg, #ff0040, #ff6b35);
    --gradient-warm: linear-gradient(135deg, #ff6b35, #ffa726);
    --gradient-cool: linear-gradient(135deg, #4caf50, #66bb6a);
    --gradient-accent: linear-gradient(135deg, #ff0040, #9c27b0);
    --gradient-card: linear-gradient(145deg, rgba(255, 0, 64, 0.08), rgba(156, 39, 176, 0.05));

    --green: #4caf50;
    --orange: #ff9800;
    --red: #f44336;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50%;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(255, 0, 64, 0.15);

    --nav-height: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

/* ===== APP SHELL ===== */
#app {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.screen {
    display: none;
    flex: 1;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 12px);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.3);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }
}

@keyframes swipeRight {
    to {
        transform: translateX(150%) rotate(20deg);
        opacity: 0;
    }
}

@keyframes swipeLeft {
    to {
        transform: translateX(-150%) rotate(-20deg);
        opacity: 0;
    }
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--nav-height);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-bottom: var(--safe-bottom);
    z-index: 9999;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    transition: all 0.3s;
}

.nav-item.active {
    color: var(--accent);
}

.nav-item.active svg {
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-item .badge {
    position: absolute;
    top: 0;
    right: 4px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: var(--radius-full);
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===== AUTH SCREENS ===== */
.auth-screen {
    padding-bottom: 0;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: var(--bg-primary);
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-logo {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}

.venue-person-like {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.venue-person-like:active {
    transform: scale(1.2);
}

.venue-person-like svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 0, 64, 0.3));
}


.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 36px;
}

.interest-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-primary);
}

.profile-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 16px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.profile-gallery::-webkit-scrollbar {
    display: none;
}

.profile-gallery-item {
    flex: 0 0 calc(100% - 40px);
    width: calc(100% - 40px);
    height: 380px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    scroll-snap-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}



.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 40px var(--accent-glow);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.auth-switch {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.auth-switch a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

/* ===== HEADER ===== */
.screen-header {
    padding: 20px 20px 12px;
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 10;
}

.screen-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    margin: 0 20px 16px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}

.search-bar input:focus {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-card-hover);
}

.search-bar svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

/* ===== VENUE CARDS (Locais Proximos) ===== */
.venue-list {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.venue-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.venue-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.venue-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 2px solid var(--accent);
}

.venue-card-body {
    padding: 14px 16px;
}

.venue-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.venue-card-name {
    font-size: 17px;
    font-weight: 700;
}

.venue-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 0, 64, 0.15);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}

.venue-rating svg {
    width: 12px;
    height: 12px;
}

.venue-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 10px;
}

.venue-activity-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.venue-activity-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
}

.venue-activity-label {
    font-size: 11px;
    font-weight: 600;
    text-align: right;
    margin-top: 4px;
}

.activity-hot .venue-activity-fill {
    background: var(--gradient-hot);
    width: 90%;
}

.activity-hot .venue-activity-label {
    color: var(--red);
}

.activity-medium .venue-activity-fill {
    background: var(--gradient-warm);
    width: 55%;
}

.activity-medium .venue-activity-label {
    color: var(--orange);
}

.activity-low .venue-activity-fill {
    background: var(--gradient-cool);
    width: 25%;
}

.activity-low .venue-activity-label {
    color: var(--green);
}

/* ===== HOTSPOTS LIST (Pontos mais quentes agora) ===== */
.hotspot-section {
    padding: 0 20px;
    margin-top: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.hotspot-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hotspot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
}

.hotspot-item:hover {
    background: var(--bg-card-hover);
}

.hotspot-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hotspot-fire {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.hotspot-fire.hot {
    background: rgba(255, 0, 64, 0.15);
}

.hotspot-fire.warm {
    background: rgba(255, 152, 0, 0.15);
}

.hotspot-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.hotspot-change {
    font-size: 11px;
    font-weight: 500;
}

.hotspot-change.up {
    color: var(--accent);
}

.hotspot-change.down {
    color: var(--text-muted);
}

.hotspot-right {
    text-align: right;
}

.hotspot-count {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.hotspot-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ===== HEATMAP ===== */
.heatmap-container {
    margin: 0 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    background: var(--bg-card);
}

#heatmap-map {
    width: 100%;
    height: 300px;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-glass);
}

.heatmap-legend span {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.legend-bar {
    width: 100px;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #4caf50, #ffeb3b, #ff9800, #f44336);
}

/* ===== SWIPE CARDS (Parceiros) ===== */
.swipe-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    position: relative;
}

.cards-stack {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 460px;
    perspective: 1000px;
}

.swipe-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: box-shadow 0.3s;
}

.swipe-card:active {
    cursor: grabbing;
}

.swipe-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swipe-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.swipe-card-name {
    font-size: 26px;
    font-weight: 700;
}

.swipe-card-name span {
    font-weight: 400;
    color: var(--text-secondary);
}

.swipe-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
}

.swipe-card-location svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.swipe-card-distance {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 0, 64, 0.15);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 6px;
}

.swipe-card-badges {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.swipe-badge {
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.swipe-stamp {
    position: absolute;
    top: 40px;
    padding: 8px 16px;
    border: 4px solid;
    border-radius: var(--radius-md);
    font-size: 32px;
    font-weight: 800;
    transform: rotate(-15deg);
    opacity: 0;
    transition: opacity 0.15s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.swipe-stamp.like {
    left: 20px;
    color: var(--green);
    border-color: var(--green);
}

.swipe-stamp.nope {
    right: 20px;
    color: var(--red);
    border-color: var(--red);
    transform: rotate(15deg);
}

.swipe-actions {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.swipe-btn {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.swipe-btn svg {
    width: 28px;
    height: 28px;
}

.swipe-btn-dislike {
    background: rgba(244, 67, 54, 0.12);
    color: var(--red);
    border: 2px solid rgba(244, 67, 54, 0.3);
}

.swipe-btn-like {
    background: rgba(76, 175, 80, 0.12);
    color: var(--green);
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.swipe-btn-super {
    background: rgba(33, 150, 243, 0.12);
    color: #2196f3;
    border: 2px solid rgba(33, 150, 243, 0.3);
    width: 48px;
    height: 48px;
}

.swipe-btn-super svg {
    width: 22px;
    height: 22px;
}

.swipe-btn:hover {
    transform: scale(1.1);
}

.swipe-btn:active {
    transform: scale(0.95);
}

.swipe-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 12px;
    padding: 40px;
    text-align: center;
}

.swipe-empty svg {
    width: 64px;
    height: 64px;
    opacity: 0.3;
}

/* ===== MATCHES LIST ===== */
.matches-list {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.match-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s;
}

.match-item:hover {
    background: var(--bg-card);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: var(--radius-md);
}

.match-avatar {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--accent);
}

.match-info {
    flex: 1;
    min-width: 0;
}

.match-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
}

.match-last-msg {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-right {
    text-align: right;
    flex-shrink: 0;
}

.match-time {
    font-size: 11px;
    color: var(--text-muted);
}

.match-unread {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-top: 4px;
}

.match-new-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== CHAT ===== */
.chat-screen {
    display: none;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    padding-bottom: 0 !important;
}

.chat-screen.active {
    display: flex;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-back {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
}

.chat-back svg {
    width: 22px;
    height: 22px;
}

.chat-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.chat-header-name {
    font-size: 15px;
    font-weight: 600;
}

.chat-header-status {
    font-size: 11px;
    color: var(--green);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.4;
    animation: slideUp 0.2s ease;
}

.chat-bubble.sent {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble.received {
    align-self: flex-start;
    background: var(--bg-card);
    border-bottom-left-radius: 4px;
}

.chat-bubble-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    text-align: right;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: calc(12px + var(--safe-bottom));
}

.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--gradient-accent);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

.chat-send-btn svg {
    width: 20px;
    height: 20px;
}

/* ===== PROFILE ===== */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 14px;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 6px;
    max-width: 280px;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-top: 18px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 20px;
    font-weight: 700;
}

.profile-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-section {
    margin: 16px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.settings-title {
    padding: 14px 16px 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.settings-item:hover {
    background: var(--bg-card-hover);
}

.settings-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.settings-item-left svg {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.settings-item svg.chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.btn-logout {
    margin: 20px;
    background: rgba(244, 67, 54, 0.1);
    color: var(--red);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

/* ===== MATCH MODAL ===== */
.match-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

.match-modal.active {
    display: flex;
}

.match-modal-title {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 24px;
    animation: pulse 1s ease infinite;
}

.match-modal-avatars {
    display: flex;
    gap: -10px;
    margin-bottom: 24px;
}

.match-modal-avatars img {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--accent);
}

.match-modal-avatars img:last-child {
    margin-left: -20px;
}

.match-modal-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ===== VENUE DETAIL MODAL ===== */
.venue-modal {
    position: fixed;
    inset: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    background: var(--bg-primary);
    z-index: 5000;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.venue-modal.active {
    display: flex;
}

.venue-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.venue-modal-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.venue-modal-body {
    padding: 20px;
    flex: 1;
}

.venue-modal-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.venue-modal-meta {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
}

.venue-people-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.venue-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

.venue-person img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

/* ===== LOADING ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--bg-card);
    border-top-color: var(--accent);
    border-radius: var(--radius-full);
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: calc(var(--nav-height) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90%;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== CHECKIN BUTTON ===== */
.checkin-banner {
    margin: 0 20px 16px;
    padding: 14px 16px;
    background: var(--gradient-card);
    border: 1px solid rgba(255, 0, 64, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
}

.checkin-banner:hover {
    border-color: var(--accent);
}

.checkin-banner-text {
    font-size: 14px;
    font-weight: 600;
}

.checkin-banner-sub {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.checkin-banner .btn {
    padding: 8px 16px;
    font-size: 12px;
}

/* ===== EDIT PROFILE MODAL ===== */
.edit-modal {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 5000;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.edit-modal.active {
    display: flex;
}

.edit-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.edit-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edit-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* ===== IMAGE GALLERY ===== */
.img-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.img-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
}

.img-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-gallery-item .img-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.img-gallery-item:hover .img-delete {
    opacity: 1;
}

.img-upload-btn {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-family: inherit;
    transition: all 0.3s;
}

.img-upload-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.img-upload-btn svg {
    width: 24px;
    height: 24px;
}

.img-count {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Swipe card image dots */
.swipe-card-dots {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 5;
}

.swipe-card-dot {
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s;
}

.swipe-card-dot.active {
    background: white;
}

/* Venue modal gallery */
.venue-gallery {
    display: flex;
    gap: 2px;
    height: 220px;
    overflow: hidden;
}

.venue-gallery img {
    flex: 1;
    min-width: 0;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: flex 0.3s;
}

.venue-gallery img:hover {
    flex: 2;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 481px) {
    #app {
        border-left: 1px solid rgba(255, 255, 255, 0.04);
        border-right: 1px solid rgba(255, 255, 255, 0.04);
    }
}

/* ===== HEATMAP FILTERS ===== */
#heatFilters {
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#heatFilters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    border: none;
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

/* ===== PROMO CARDS ===== */
#promoList .card {
    transition: background 0.3s;
}

#promoList .card:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* ===== MODALS & UI UTILS ===== */
.badge-online {
    background: rgba(76, 175, 80, 0.2);
    color: var(--green);
}

.badge-pending {
    background: rgba(255, 152, 0, 0.2);
    color: var(--orange);
}

.badge-gold {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

/* ===== REPORT SYSTEM ===== */
.swipe-card-report {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.3s;
}

.swipe-card-report:hover {
    background: rgba(255, 0, 64, 0.6);
}

.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.report-modal.active {
    display: flex;
}

.report-modal-content {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.report-modal-header {
    padding: 16px 20px;
    background: var(--bg-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.report-modal-title {
    font-size: 18px;
    font-weight: 700;
}

.report-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.report-modal-body {
    padding: 20px;
}

.report-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.report-modal-body textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    margin-top: 8px;
    outline: none;
    resize: none;
}

.btn-report:hover {
    color: var(--accent) !important;
}