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

:root {
    --safe-orange: #ff8600;
    --safe-dark: #111318;
    --safe-bg: #05060a;
    --safe-card: #181b23;
    --safe-border: rgba(255,255,255,0.08);
    --safe-text: #f7f7f7;
    --safe-muted: #9ca3af;
    --safe-accent: #00bfff;
}

body {
    font-family: 'Exo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #1f2933 0, var(--safe-bg) 45%, #020308 100%);
    color: var(--safe-text);
    min-height: 100vh;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-header {
    padding: 1.5rem 1rem 1rem;
    text-align: center;
}

.logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.logo-img {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,.6);
}

.profile-img {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    border: 3px solid var(--safe-orange);
    box-shadow: 0 10px 30px rgba(0,0,0,.6);
}

.title-block h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 18px rgba(0,0,0,.8);
}

.main-menu {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

.menu-btn {
    padding: .55rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(15,23,42,0.85);
    color: var(--safe-text);
    text-decoration: none;
    font-size: .85rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: all .2s ease;
}

.menu-btn:hover {
    background: linear-gradient(135deg,var(--safe-orange),#ffb347);
    color: #000;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0,0,0,.6);
}

/* Content */
.content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem 2rem;
}

.entretenimentos-section h2,
.quadro h2 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--safe-orange);
    margin: 1.5rem 0 .75rem;
}

.entretenimentos-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 1rem;
}

.entretenimento-card {
    background: radial-gradient(circle at top left, rgba(255,134,0,.18), rgba(15,23,42,0.96));
    border-radius: 1.25rem;
    border: 1px solid var(--safe-border);
    padding: .75rem .75rem 1rem;
    box-shadow: 0 18px 40px rgba(0,0,0,.65);
}

.ent-img-wrapper {
    width: 100%;
    border-radius: .9rem;
    overflow: hidden;
    margin-bottom: .75rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.ent-img-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

/* Accordion */
.accordion-header {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--safe-text);
    font: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    padding: .4rem .25rem;
}

.accordion-header span:first-child {
    font-weight: 600;
    font-size: .95rem;
}

.accordion-icon {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--safe-orange);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    font-size: .9rem;
    color: var(--safe-muted);
}

.accordion-body.open {
    max-height: 500px;
    margin-top: .45rem;
}

.accordion-body p {
    margin-bottom: .5rem;
}

/* Buttons */
.primary-btn,
.secondary-btn,
.whatsapp-btn,
.instagram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .55rem 1.2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
}

.primary-btn {
    background: linear-gradient(135deg,var(--safe-orange),#ffb347);
    color: #000;
    box-shadow: 0 12px 30px rgba(0,0,0,.7);
}

.primary-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.secondary-btn {
    background: transparent;
    color: var(--safe-orange);
    border: 1px solid rgba(255,134,0,0.4);
}

.secondary-btn:hover {
    background: rgba(255,134,0,0.08);
}

.quadros-section {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 1rem;
}

.quadro {
    background: radial-gradient(circle at top right, rgba(0,191,255,0.16), rgba(15,23,42,0.96));
    border-radius: 1.25rem;
    border: 1px solid var(--safe-border);
    padding: 1rem 1rem 1.1rem;
    box-shadow: 0 18px 40px rgba(0,0,0,.65);
}

.quadro-subtitle {
    font-size: .88rem;
    color: var(--safe-muted);
    margin-bottom: .75rem;
}

.qr-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
}

.qr-wrapper img {
    width: 180px;
    height: auto;
    border-radius: 1rem;
    background: #fff;
    padding: .5rem;
    box-shadow: 0 15px 30px rgba(0,0,0,.65);
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(148,163,184,.4);
    padding: 1rem .75rem 1.5rem;
    text-align: center;
    margin-top: auto;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
}

.whatsapp-btn {
    background: #25d366;
    color: #000;
    box-shadow: 0 12px 30px rgba(0,0,0,.7);
    min-width: 220px;
}

.instagram-btn {
    background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
    color: #fff;
    min-width: 220px;
}

.footer-dev {
    font-size: .8rem;
    color: var(--safe-muted);
}

.footer-dev a {
    color: var(--safe-orange);
    text-decoration: none;
}

.footer-admin {
    margin-top: .25rem;
}

.footer-admin a {
    font-size: .8rem;
    color: var(--safe-muted);
    text-decoration: none;
}

/* Helpers */
.empty-msg {
    font-size: .85rem;
    color: var(--safe-muted);
}

.icon {
    font-size: 1rem;
}

/* Admin */
.admin-body {
    background: radial-gradient(circle at top, #020617 0, #020617 45%, #000 100%);
}

.admin-wrapper {
    max-width: 1180px;
    margin: 0 auto;
}

.admin-header {
    align-items: center;
}

.admin-menu {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

.admin-menu .menu-btn {
    font-size: .78rem;
}

.admin-menu .menu-btn.active {
    background: linear-gradient(135deg,var(--safe-orange),#ffb347);
    color: #000;
}

.logout-btn {
    background: rgba(239,68,68,0.18);
    border-color: rgba(239,68,68,0.4);
}

.logout-btn:hover {
    background: rgba(239,68,68,0.3);
    color: #fff;
}

.admin-content {
    padding: 0 1rem 2rem;
}

.admin-login-section {
    max-width: 420px;
    margin: 2rem auto;
}

.form-card {
    background: rgba(15,23,42,0.98);
    border-radius: 1rem;
    border: 1px solid var(--safe-border);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    box-shadow: 0 18px 40px rgba(0,0,0,.8);
}

.form-card label {
    font-size: .82rem;
    color: var(--safe-muted);
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.form-card input[type="text"],
.form-card input[type="password"],
.form-card input[type="url"],
.form-card input[type="number"],
.form-card textarea,
.form-card input[type="file"] {
    background: #020617;
    border: 1px solid #1f2937;
    border-radius: .6rem;
    padding: .5rem .6rem;
    color: var(--safe-text);
    font: inherit;
}

.form-card textarea {
    resize: vertical;
}

.checkbox-label {
    flex-direction: row;
    align-items: center;
    gap: .45rem;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.help-text {
    font-size: .78rem;
    color: var(--safe-muted);
}

.thumb-preview {
    margin-top: .25rem;
    max-width: 160px;
    border-radius: .75rem;
    border: 1px solid rgba(148,163,184,.5);
}

.admin-columns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-col h3 {
    font-size: .95rem;
    margin-bottom: .35rem;
}

.admin-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.admin-list li {
    background: rgba(15,23,42,0.96);
    border-radius: .75rem;
    border: 1px solid var(--safe-border);
    padding: .5rem .6rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .85rem;
}

.admin-list-actions {
    display: flex;
    gap: .5rem;
    font-size: .8rem;
}

.admin-list-actions a {
    color: var(--safe-accent);
    text-decoration: none;
}

.tag {
    display: inline-block;
    padding: .05rem .45rem;
    border-radius: 999px;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    background: rgba(148,163,184,0.15);
    color: var(--safe-muted);
}

.error-msg {
    color: #fecaca;
    font-size: .85rem;
    margin-bottom: .6rem;
}

/* Responsive */
@media (min-width: 640px) {
    .title-block h1 {
        font-size: 1.6rem;
    }
    .entretenimentos-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .quadros-section {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

@media (min-width: 900px) {
    .content {
        padding-top: .75rem;
    }
    .admin-columns {
        flex-direction: row;
        align-items: flex-start;
    }
    .admin-col {
        flex: 1;
    }
}


.whatsapp-error-btn {
    background: transparent;
    color: #f97316;
    border: 1px dashed rgba(249,115,22,0.7);
    font-size: 0.78rem;
    padding: 0.4rem 1rem;
    opacity: 0.9;
}

.whatsapp-error-btn:hover {
    background: rgba(249,115,22,0.08);
}

.admin-discrete-link {
    font-size: 0.75rem;
    opacity: 0.7;
}

.admin-discrete-link:hover {
    opacity: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--safe-orange);
    text-align: center;
}
