:root {
    --bg-page: #462c1d;
    --bg-card: #2f1d13;
    --color-green: #37a845;
    --color-yellow: #fed600;
    --color-white: #ffffff;
    --color-muted: #cdbaab;
    --color-header: #211309;
}

body {
    background-color: var(--bg-page);
    color: var(--color-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.main-container,
.page-container {
    width: 100%;
    margin: 0;
    background-color: var(--bg-page);
    min-height: 100vh;
}

/* Global Banner/Ad Rules */
.banner-wrapper {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.banner-wrapper img {
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

/* Header */
.main-header {
    background-color: #513626;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.header-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* optional divider */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
}

.logo img {
    height: 64px;
    display: block;
    border-radius: 8px;
    /* Based on the square icon design */
}

.desktop-nav {
    display: none;
    background-color: #442b1f;
    /* Darker bottom strip */
    justify-content: center;
    align-items: center;
}

@media (max-width: 767px) {
    .desktop-nav.active {
        display: block;
        width: 100%;
        padding: 20px 0;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
        z-index: 999;
    }

    .desktop-nav.active ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
    }

    .desktop-nav.active li {
        width: 100%;
        text-align: center;
    }

    .desktop-nav.active a {
        font-size: 16px;
        font-weight: 700;
        color: var(--color-white);
        text-transform: uppercase;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
    }
}

body.no-scroll {
    overflow: hidden;
}

.mobile-nav-strip {
    background-color: #442b1f;
    /* Darker bottom strip */
}

.mobile-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    width: 100%;
    box-sizing: border-box;
}

.menu-label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.menu-toggle {
    background-color: #5b3d2b;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    width: 34px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 5px rgba(0, 0, 0, 0.3);
}

.menu-toggle.active {
    background-color: var(--color-yellow);
}

.menu-toggle svg {
    width: 18px;
    height: 18px;
    fill: #ff9800;
}

.menu-toggle.active svg {
    fill: #111;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    background-color: var(--color-yellow);
    color: #111;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 0 16px rgba(254, 214, 0, 0.3);
}

.btn-login:hover {
    color: #000;
    opacity: 0.9;
}

.btn-register {
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 0 16px rgba(55, 168, 69, 0.3);
}

.btn-register:hover {
    background-color: #2e8b3a;
}



/* Full Footer */
.main-footer {
    background-color: var(--color-header);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 15px 20px;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
    padding: 0 15px 30px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.footer-desc {
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.footer-nav h4,
.footer-contact h4 {
    color: var(--color-yellow);
    font-size: 16px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.footer-nav ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a,
.footer-contact a {
    color: var(--color-muted);
    font-size: 14px;
    transition: 0.2s;
    display: inline-block;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--color-white);
    transform: translateX(5px);
}

.footer-bottom {
    width: 100%;
    padding: 20px 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    box-sizing: border-box;
}

.footer-copyright {
    color: var(--color-muted);
    font-size: 12px;
}

@media (min-width: 768px) {


    .mobile-nav-strip {
        display: none;
    }

    .desktop-nav {
        display: flex;
        justify-content: center;
        padding: 12px 0;
    }

    .desktop-nav ul {
        display: flex;
        justify-content: center;
        gap: 35px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .desktop-nav li {
        margin: 0;
        padding: 0;
    }

    .desktop-nav a {
        font-size: 12px;
        font-weight: 700;
        color: var(--color-white);
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 4px;
    }


    .desktop-nav a:hover {
        color: var(--color-yellow);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}