:root {
    --bg-dark: #0a0e14;
    --card-bg: #1e293b;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #ec4899 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    color: #3b82f6;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.location-text {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.hero-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

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

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: -1;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 16px;
}

.actions {
    text-align: center;
    margin-bottom: 50px;
}

.cta-button {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:active {
    transform: scale(0.98);
}

.stats {
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.stats span {
    color: #3b82f6;
    font-weight: 600;
}

.features {
    display: grid;
    gap: 16px;
}

.feature-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.feature-card:active {
    transform: translateY(-5px);
}

.icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
}

footer {
    margin-top: auto;
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
    color: var(--text-muted);
}

body.no-scroll {
    overflow: hidden;
}

/* Chat Overlay Styles */
#chat-overlay {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    height: 80vh;
    background: var(--bg-dark);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overscroll-behavior: contain; /* Prevents scroll chaining */
}

#chat-overlay.visible {
    bottom: 0;
}

#chat-overlay.hidden {
    display: none;
}

.chat-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#close-chat {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 32px;
    cursor: pointer;
}

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

.message-item {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    background: var(--card-bg);
    align-self: flex-start;
}

.message-item.self {
    align-self: flex-end;
    background: var(--primary-gradient);
}

.msg-content {
    font-size: 15px;
}

.msg-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
}

.chat-input-area {
    padding: 20px;
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.02);
}

#chat-input-field, #m {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-dark);
    color: white;
    font-family: inherit;
    font-size: 16px;
    resize: none; /* For textarea */
}

#send-btn {
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    background: #3b82f6;
    color: white;
    font-weight: 600;
    cursor: pointer;
}
