/* Base */
* {
    box-sizing: border-box;
}

:root {
    --bg: #0b0c10;
    --surface: #121317;
    --surface-2: #171922;
    --text: #e6e6e6;
    --muted: #a9acb3;
    --primary: #4da3ff;
    --primary-700: #1e7bd8;
    --success: #33d17a;
    --success-700: #229c55;
    --border: #1f2230;
    --shadow: rgba(0,0,0,0.4);
}

html, body {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    padding: 88px 24px 24px; /* top padding for fixed nav */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top Nav */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 20px var(--shadow);
    z-index: 1000;
}

.top-nav .brand {
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-back {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 10px;
    display: none; /* hidden on home */
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.btn-back:hover { background: #1a1c25; }
.btn-back:active { transform: scale(0.98); }

.header {
    text-align: center;
    margin: 16px 0 8px;
    width: 100%;
}

.header h1 { font-size: 1.6rem; }

#aviso-legal {
    font-style: italic;
    font-size: 0.95rem;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 10px;
    color: var(--muted);
}

section {
    width: 100%;
    max-width: 960px;
    text-align: center;
    margin: 24px auto;
    padding: 0 10px;
}

/* Buttons */
button {
    cursor: pointer;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 12px auto;
    border-radius: 12px;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
    display: block;
    text-align: center;
    box-shadow: 0 6px 16px rgba(77,163,255,0.25);
}

button:hover { transform: translateY(-1px); background: var(--primary-700); }
button:active { transform: translateY(0); }

button img {
    width: 160px;
    height: 160px;
    vertical-align: middle;
    border-radius: 12px;
    box-shadow: 0 10px 24px var(--shadow);
}

.boton-home {
    background: transparent;
    padding: 0;
    border-radius: 16px;
}

.boton-home img {
    width: 100%;
    height: 100%;
    display: block;
    max-width: 520px;
    max-height: 520px;
}

.logo{
    width: 82%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 24px var(--shadow);
}

/* Lists */
ul, ol {
    text-align: left;
    margin: 20px auto;
    padding-left: 24px;
    max-width: 720px;
    padding: 0 10px;
}

ul li, ol li { margin-bottom: 10px; }

/* Icons & Containers */
.direcao {
    width: 50px;
    height: 50px;
    display: inline-block;
    margin: 10px;
    vertical-align: middle;
}

.social-icons {
    text-align: center;
    margin: 12px 0 24px;
}

/* Cards */
.bazar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.bazar .grupo {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 20px var(--shadow);
}

.bazar img {
    width: 100%;
    height: auto;
    margin-bottom: 12px;
    border-radius: 12px;
}

h2 { margin-top: 32px; }

p { margin-bottom: 16px; }

/* CTA Link */
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--success);
    border-radius: 12px;
    padding: 10px 14px;
    margin: 8px 0;
    color: #04120a;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(51,209,122,0.25);
}

.cta-link:hover { background: var(--success-700); color: #eafff3; }

/* Responsive */
@media (max-width: 768px) {
    body { padding: 88px 12px 12px; }

    .header, section, #aviso-legal, ul, ol { padding: 0 16px; }

    button { width: 100%; max-width: 360px; }

    .direcao { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    button img { width: 56px; height: 56px; }
    button { padding: 10px; }
    .direcao { width: 30px; height: 30px; }
}

/* Menu container styles retained */
#menu-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.menu-item {
    border: 1px solid var(--border);
    padding: 18px;
    width: 80%;
    background-color: var(--surface-2);
    border-radius: 16px;
    box-shadow: 0 8px 20px var(--shadow);
    transition: transform 0.2s ease-in-out;
}

.menu-item h3 { margin-top: 0; font-size: 1.5em; color: var(--text); }
.menu-item p { margin: 0.5em 0; font-size: 1em; line-height: 1.6; color: var(--muted); }
.menu-item:hover { transform: translateY(-2px); }

/* Hide old voltar button if present */
#voltar-ao-inicio { display: none; }