* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
    color: #fff;
}

.container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

header {
    text-align: center;
    padding: 20px;
}

.logo {
    font-size: 1.2rem;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 10px;
}

h1 {
    font-size: 2rem;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #a0a0a0;
    margin-top: 5px;
}

/* ========== ANÚNCIOS ========== */
.ad-container {
    margin: 15px 0;
    text-align: center;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 10px;
    min-height: 90px;
}

.ad-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* ========== DESTAQUES ========== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 10px 0 25px;
}

.feature-card {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-title {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 5px;
}

.feature-desc {
    color: #aaa;
    font-size: 0.9rem;
}

/* ========== CHAT ========== */
#chat-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 65vh;
}

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

.message {
    display: flex;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

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

.message.user {
    flex-direction: row-reverse;
}

.avatar {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.message .text {
    padding: 14px 18px;
    border-radius: 18px;
    max-width: 75%;
    line-height: 1.5;
}

.message.bot .text {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-top-left-radius: 4px;
}

.message.user .text {
    background: linear-gradient(135deg, #ffd700, #e6b800);
    color: #000;
    border-top-right-radius: 4px;
}

.typing .text::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0% { content: ''; }
    33% { content: '.'; }
    66% { content: '..'; }
    100% { content: '...'; }
}

/* ========== FORMULÁRIO ========== */
#chat-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

#message-input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

#message-input:focus {
    border-color: #ffd700;
}

button {
    padding: 14px 28px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #ffd700, #e6b800);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: scale(1.05);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========== RODAPÉ ========== */
footer {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    padding: 10px;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 600px) {
    h1 { font-size: 1.5rem; }
    .message .text { max-width: 85%; }
    button { padding: 12px 20px; }
    .features { grid-template-columns: 1fr; }
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(255, 215, 0, 0.3);
    color: #fff;
}