:root {
    --bg-color: #700000;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15);
    --accent: #ff4d4d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: radial-gradient(circle at center, #a00000 0%, #300000 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden; /* Evita rolagem desnecessária */
}

.main-wrapper {
    width: 100%;
    max-width: 450px;
    height: 90vh; /* Altura do "celular" no PC */
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 2;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.circle-btn, .upgrade-pill {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.circle-btn { width: 45px; height: 45px; border-radius: 50%; }
.upgrade-pill { padding: 8px 20px; border-radius: 30px; font-weight: 500; }

.welcome-text { text-align: center; margin-bottom: 25px; }
.welcome-text h1 { font-size: 1.6rem; opacity: 0.9; }

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 130px;
    backdrop-filter: blur(15px);
    transition: 0.3s;
}

.glass-card i { font-size: 2.2rem; margin-bottom: 10px; color: var(--accent); }

/* Barra de chat e input */
.messages-chat { flex: 1; overflow-y: auto; margin-bottom: 10px; }

.bottom-bar { margin-top: auto; z-index: 5; }
.input-container {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 40px;
    display: flex;
    align-items: center;
}

.search-box { flex: 1; display: flex; align-items: center; padding: 0 15px; }
.search-box input { background: none; border: none; color: white; width: 100%; outline: none; }

.action-btn { width: 40px; height: 40px; border-radius: 50%; border: none; color: white; cursor: pointer; }
.action-btn.plus { background: rgba(255,255,255,0.1); }
.action-btn.send { background: var(--accent); }

/* Grade Neon no Fundo */
.neon-grid {
    position: absolute;
    bottom: -100px;
    left: -50%;
    width: 200%;
    height: 400px;
    background-image: 
        linear-gradient(to right, rgba(0, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 45px 45px;
    transform: perspective(300px) rotateX(65deg);
    z-index: 1;
    mask-image: linear-gradient(to top, black, transparent);
}

/* Responsividade PC */
@media (min-width: 1024px) {
    .main-wrapper { max-width: 500px; height: 85vh; }
}