/* Demo Styles for Vennu - Clean Mobile-First Design with Black & White Brand */
:root {
    --primary-bg: #000000;
    --surface-bg: #000000;
    --surface-secondary: #1a1a1a;
    --accent-color: #ffffff;
    --accent-hover: #e0e0e0;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --text-inverse: #000000;
    --border-color: #333333;
    --border-light: #2a2a2a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 64px;
    --bottom-sheet-collapsed: 280px;
    --bottom-sheet-half: 50vh;
    --bottom-sheet-expanded: 85vh;
}

/* iOS Install Banner - Center Modal Popup */
.ios-install-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface-bg);
    color: var(--text-primary);
    padding: 24px;
    z-index: 9999;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-width: 90vw;
    width: 320px;
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Modal backdrop */
.ios-install-banner::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
    animation: backdropFadeIn 0.4s ease-out;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.banner-text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.banner-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.banner-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.close-banner {
    background: var(--surface-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    flex: 1;
    font-weight: 500;
}

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

.install-btn {
    background: var(--accent-color);
    border: none;
    color: var(--text-inverse);
    font-size: 14px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    flex: 1;
    font-weight: 600;
}

.install-btn:hover {
    background: var(--accent-hover);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

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

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* Remove banner-shown adjustments since modal doesn't affect layout */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--surface-bg);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Header - Clean and minimal */
.demo-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--surface-bg);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    width: 100%;
    height: 100%;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.logo-img {
    height: 70px;
    width: auto;
}

.demo-badge {
    background: var(--accent-color);
    color: rgb(0, 0, 0);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Header Center - Beta Join Button */
.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.join-beta-btn {
    background: var(--accent-color);
    color: var(--text-inverse);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.join-beta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

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

.header-actions {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.header-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--surface-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.header-btn:hover {
    background: var(--border-color);
    transform: scale(1.02);
}

/* Demo Intro Overlay */
.demo-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlayFadeIn 0.5s ease-out;
}

.demo-intro-overlay.hidden {
    display: none;
}

.intro-content {
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.intro-header {
    margin-bottom: 24px;
}

.intro-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.intro-header h2 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.intro-header p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
}

.intro-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface-secondary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-light);
}

.feature-icon {
    font-size: 20px;
    min-width: 24px;
}

.feature-text strong {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.feature-text small {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.3;
}

.intro-disclaimer {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    margin-bottom: 24px;
}

.intro-disclaimer p {
    color: #ffc107;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.intro-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-intro-primary {
    background: var(--accent-color);
    color: var(--text-inverse);
    border: none;
    padding: 14px 24px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-intro-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-intro-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-intro-secondary:hover {
    color: var(--text-primary);
    border-color: var(--accent-color);
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive for intro overlay */
@media (max-width: 768px) {
    .intro-content {
        padding: 24px 20px;
        margin: 20px;
    }
    
    .intro-header h2 {
        font-size: 20px;
    }
    
    .intro-header p {
        font-size: 14px;
    }
    
    .intro-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
}

/* Demo Completion Celebration Overlay */
.demo-completion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlayFadeIn 0.6s ease-out;
}

.demo-completion-overlay.hidden {
    display: none;
}

.completion-content {
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.completion-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: celebrationShine 3s ease-in-out infinite;
    pointer-events: none;
}

.completion-header {
    margin-bottom: 24px;
}

.completion-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: celebrationBounce 0.8s ease-out;
}

.completion-header h2 {
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary), #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.completion-header p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
}

.completion-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--surface-secondary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.benefit-item:hover {
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.05);
}

.benefit-icon {
    font-size: 24px;
    min-width: 28px;
}

.benefit-text strong {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.benefit-text small {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.3;
}

.completion-urgency {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    margin-bottom: 28px;
    animation: urgentGlow 2s ease-in-out infinite;
}

.completion-urgency p {
    color: #ffc107;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.completion-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-completion-primary {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: var(--text-inverse);
    border: none;
    padding: 16px 28px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(74, 222, 128, 0.3);
    animation: primaryButtonPulse 2s ease-in-out infinite;
}

.btn-completion-primary:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

.btn-completion-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-completion-secondary:hover {
    color: var(--text-primary);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.02);
}

@keyframes celebrationBounce {
    0% {
        transform: scale(0.3) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes celebrationShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

@keyframes urgentGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.2);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.1);
    }
}

@keyframes primaryButtonPulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(74, 222, 128, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 24px rgba(74, 222, 128, 0.4);
        transform: scale(1.02);
    }
}

/* Mobile responsive for completion overlay */
@media (max-width: 768px) {
    .completion-content {
        padding: 24px 20px;
        margin: 20px;
        max-width: none;
    }
    
    .completion-header h2 {
        font-size: 22px;
    }
    
    .completion-header p {
        font-size: 15px;
    }
    
    .completion-icon {
        font-size: 48px;
        margin-bottom: 12px;
    }
    
    .benefit-item {
        padding: 12px;
    }
    
    .btn-completion-primary {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Exit Intent Overlay */
.exit-intent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: exitIntentFadeIn 0.4s ease-out;
}

.exit-intent-overlay.hidden {
    display: none;
}

.exit-intent-content {
    background: var(--surface-bg);
    border: 2px solid #ff6b6b;
    border-radius: var(--border-radius);
    padding: 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.exit-intent-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b6b, transparent);
    animation: urgentPulse 2s ease-in-out infinite;
    pointer-events: none;
}

.exit-intent-header {
    margin-bottom: 24px;
}

.exit-intent-icon {
    font-size: 52px;
    margin-bottom: 16px;
    animation: exitBounce 0.6s ease-out;
}

.exit-intent-header h2 {
    color: #ff6b6b;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

.exit-intent-header p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
}

.exit-intent-offer {
    background: rgba(255, 107, 107, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-bottom: 24px;
}

.offer-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    text-align: left;
}

.offer-icon {
    font-size: 28px;
    min-width: 32px;
}

.offer-text strong {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.offer-text small {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.3;
}

.offer-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.feature-check {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.exit-intent-urgency {
    margin-bottom: 28px;
    padding: 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--border-radius-sm);
    animation: urgentGlow 2s ease-in-out infinite;
}

.urgency-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.urgency-number {
    font-size: 32px;
    font-weight: 900;
    color: #ffc107;
    text-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    animation: numberPulse 1s ease-in-out infinite;
}

.urgency-text {
    color: #ffc107;
    font-size: 14px;
    font-weight: 600;
}

.exit-intent-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-exit-primary {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
    animation: primaryButtonPulse 2s ease-in-out infinite;
}

.btn-exit-primary:hover {
    background: linear-gradient(135deg, #ff5252, #f44336);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.btn-exit-secondary {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: underline;
}

.btn-exit-secondary:hover {
    color: var(--text-secondary);
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--surface-bg), #1a1a1a);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1500;
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-sticky-cta:not(.hidden) {
    transform: translateY(0);
}

.mobile-sticky-cta.hidden {
    transform: translateY(100%);
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.sticky-cta-text {
    flex: 1;
    min-width: 0;
}

.sticky-cta-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
}

.sticky-cta-subtitle {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.2;
}

.sticky-cta-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sticky-primary {
    background: var(--accent-color);
    color: var(--text-inverse);
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.btn-sticky-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-sticky-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sticky-close:hover {
    background: var(--surface-secondary);
    color: var(--text-primary);
}

@keyframes exitIntentFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes exitBounce {
    0% {
        transform: scale(0.3) rotate(-15deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(5deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Hide sticky CTA on desktop */
@media (min-width: 769px) {
    .mobile-sticky-cta {
        display: none;
    }
}

/* Mobile responsive for exit intent */
@media (max-width: 768px) {
    .exit-intent-content {
        padding: 24px 20px;
        margin: 20px;
        max-width: none;
    }
    
    .exit-intent-header h2 {
        font-size: 24px;
    }
    
    .exit-intent-icon {
        font-size: 44px;
        margin-bottom: 12px;
    }
    
    .urgency-number {
        font-size: 28px;
    }
    
    .btn-exit-primary {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Main Layout - Full screen map with bottom sheet */
.demo-main {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Map Container - Full screen */
.map-container {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-bg);
}

.map {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#map {
    height: 100%;
    width: 100%;
    background-color: #1a1a1a;
    border-radius: 0;
    overflow: hidden;
}

/* Leaflet map customization for dark theme */
.leaflet-container {
    background: #000000 !important;
    font-family: 'Inter', sans-serif;
    filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(1.2);
}

/* Revert the inversion for our custom markers and popups */
.custom-div-icon,
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    filter: invert(1) hue-rotate(180deg);
}

.leaflet-control-container {
    filter: invert(1) hue-rotate(180deg);
}

.leaflet-popup-content-wrapper {
    background: var(--surface-bg) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #333;
}

.leaflet-popup-tip {
    background: var(--surface-bg) !important;
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
}

/* Dark theme for all leaflet controls */
.leaflet-control-zoom {
    border: none !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px);
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    background: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    border: 1px solid #333 !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 38px !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #555 !important;
}

.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.8) !important;
    color: #888 !important;
    border-radius: 4px !important;
    backdrop-filter: blur(10px);
    font-size: 10px !important;
    padding: 2px 6px !important;
}

.leaflet-control-attribution a {
    color: #aaa !important;
}

/* Make tile loading background match */
.leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.7) contrast(1.3);
}

.dark-tiles {
    filter: invert(1) hue-rotate(180deg) brightness(0.6) contrast(1.4) !important;
}

/* Ensure our custom markers stand out on dark map */
.custom-marker {
    filter: none !important;
    z-index: 1000 !important;
}

/* Custom marker styles */
.custom-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    user-select: none;
    position: relative;
    overflow: visible;
}

.custom-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.custom-marker:hover {
    transform: scale(1.15);
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border-width: 3px;
}

.custom-marker:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
}

.custom-marker.events {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-color: #fbbf24;
}

.custom-marker.events:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: #fed7aa;
}

.custom-marker.popups {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border-color: #a78bfa;
}

.custom-marker.popups:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    border-color: #c4b5fd;
}

.custom-marker.offers {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #34d399;
}

.custom-marker.offers:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    border-color: #6ee7b7;
}

.custom-marker.selected {
    transform: scale(1.25);
    z-index: 1001;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4), 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: pulse-marker 2s infinite;
}

.custom-marker.selected::before {
    transform: translate(-50%, -50%) scale(2);
    animation: ripple-selected 2s infinite;
}

/* Custom Leaflet marker styling */
.custom-div-icon {
    background: transparent !important;
    border: none !important;
}

.map-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.map-markers .fake-marker {
    pointer-events: auto;
}

/* Map Controls */
.map-controls {
    position: absolute;
    right: 16px;
    bottom: calc(var(--bottom-sheet-collapsed) + 20px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
}

.map-btn {
    width: 48px;
    height: 48px;
    background: var(--surface-bg);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.map-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Fake Map Markers */
.fake-marker {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    border: 2px solid var(--surface-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: visible;
}

.fake-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.fake-marker:hover {
    transform: scale(1.15);
    z-index: 20;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border-width: 3px;
}

.fake-marker:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
}

.fake-marker:active {
    transform: scale(1.05);
    transition: transform 0.1s ease;
}

.fake-marker:active::before {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0.6;
}

.fake-marker.events {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--text-inverse);
    border-color: #fbbf24;
}

.fake-marker.events:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: #fed7aa;
}

.fake-marker.popups {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: var(--text-inverse);
    border-color: #a78bfa;
}

.fake-marker.popups:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    border-color: #c4b5fd;
}

.fake-marker.offers {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--text-inverse);
    border-color: #34d399;
}

.fake-marker.offers:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    border-color: #6ee7b7;
}

.fake-marker.selected {
    transform: scale(1.25);
    z-index: 30;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4), 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: pulse-marker 2s infinite;
}

.fake-marker.selected::before {
    transform: translate(-50%, -50%) scale(2);
    animation: ripple-selected 2s infinite;
}

@keyframes pulse-marker {
    0% {
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4), 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2), 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4), 0 4px 20px rgba(0, 0, 0, 0.5);
    }
}

@keyframes ripple-selected {
    0% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0.3;
    }
}

/* Marker Tooltip */
#markerTooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    z-index: 1000;
    max-width: 250px;
    border: 1px solid #333;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#markerTooltip.show {
    opacity: 1;
    transform: translateY(0);
}

#markerTooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.95);
}

/* Touch-friendly markers for mobile */
@media (max-width: 768px) {
    .fake-marker {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .fake-marker:hover {
        transform: scale(1.1);
    }
    
    .fake-marker.selected {
        transform: scale(1.2);
    }
    
    #markerTooltip {
        font-size: 14px;
        padding: 14px 18px;
        max-width: 280px;
    }
}

/* Focus styles for accessibility */
.fake-marker:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Bottom Sheet - Uber-like behavior with 3 states */
.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface-bg);
    border-radius: 20px 20px 0 0;
    border-top: 1px solid var(--border-color);
    z-index: 500;
    max-height: var(--bottom-sheet-expanded);
    height: var(--bottom-sheet-collapsed);
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.bottom-sheet.half-expanded {
    height: var(--bottom-sheet-half);
}

.bottom-sheet.expanded {
    height: var(--bottom-sheet-expanded);
}

.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 12px auto 8px;
    cursor: grab;
    transition: background-color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.bottom-sheet-handle:hover {
    background: var(--text-secondary);
    transform: scaleY(1.2);
}

.bottom-sheet-handle:active {
    background: var(--text-primary);
    transform: scale(1.1);
    cursor: grabbing;
}
.bottom-sheet-gesture-zone {
    height: 60px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: grab;
    user-select: none;
}

.bottom-sheet-gesture-zone:active {
    cursor: grabbing;
}

/* Desktop hover effect for gesture zone */
@media (hover: hover) {
    .bottom-sheet-gesture-zone:hover .bottom-sheet-handle {
        background: var(--text-secondary);
        transform: scaleY(1.2);
    }
}


/* Content Header */
.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 20px;
}

.content-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


/* Filter Tabs - Clean pill design */
.filter-tabs {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface-secondary);
    border: none;
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-width: fit-content;
}

.filter-tab.active {
    background: var(--accent-color);
    color: var(--text-inverse);
}

.filter-tab:not(.active):hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.tab-icon {
    font-size: 16px;
}

/* Event List Container */
.event-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.event-list {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Event Card - Clean card design */
.event-card {
    background: var(--surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.event-card.active {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.event-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.event-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
    pointer-events: none;
}

.event-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    padding: 16px;
}

.event-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.event-icon.events { 
    background: var(--accent-color); 
    color: var(--text-inverse);
}
.event-icon.popups { 
    background: var(--surface-secondary); 
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.event-icon.offers { 
    background: var(--text-secondary); 
    color: var(--text-inverse);
}

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

.event-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* Event Countdown Timer */
.event-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #4ade80; /* Green color for countdown */
    margin-bottom: 8px;
    padding: 4px 8px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    transition: var(--transition);
}

.event-countdown.urgent {
    color: #ff6b6b; /* Red color for urgent countdown */
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.2);
    animation: urgentPulse 2s infinite;
}

@keyframes urgentPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.3);
    }
    50% { 
        box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
    }
}

.event-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    padding: 0 16px 16px 16px;
}

.event-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Loading Skeleton */
.loading-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-card {
    height: 80px;
    background: linear-gradient(90deg, var(--surface-secondary) 25%, var(--border-light) 50%, var(--surface-secondary) 75%);
    background-size: 200% 100%;
    border-radius: var(--border-radius);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Location Prompt */
.location-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 320px;
    z-index: 200;
    display: none;
}

.location-prompt.show {
    display: block;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.prompt-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.prompt-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.prompt-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    min-width: 80px;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--surface-secondary);
    color: var(--text-primary);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

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

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

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

.modal-content {
    background: var(--surface-bg);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

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

.modal-header {
    padding: 20px 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--surface-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

/* Modal countdown styling */
.modal-body .event-countdown {
    justify-content: center;
    font-size: 13px;
    margin: 12px 0;
    padding: 8px 12px;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transform: translateX(400px);
    transition: var(--transition);
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 20px;
}

.notification-text {
    font-size: 14px;
    color: var(--text-primary);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--surface-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select option {
    background: var(--surface-secondary);
    color: var(--text-primary);
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --bottom-sheet-collapsed: 260px;
        --bottom-sheet-half: 45vh;
        --bottom-sheet-expanded: 90vh;
    }

    .header-container {
        padding: 0 16px;
    }

    .logo-img {
        height: 50px;
    }

    .join-beta-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .join-beta-btn svg {
        width: 14px;
        height: 14px;
    }

    .header-btn {
        width: 36px;
        height: 36px;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .filter-tabs {
        padding: 0 16px 16px;
    }
    
    .content-header {
        padding: 0 16px 16px;
    }
    
    .event-list {
        padding: 0 16px;
    }
    
    .modal {
        padding: 16px;
    }
    
    .notification {
        right: 16px;
        left: 16px;
        min-width: auto;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
