:root {
    --bg-page: #3a2316;
    --bg-card: #2a160d;
    --color-green: #42d152;
    --color-yellow: #ffd700;
    --color-white: #ffffff;
    --color-muted: #d4c3b3;
    --color-header: #1a0e07;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #3a2316 0%, #462c1d 100%);
    color: var(--color-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

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;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    padding: 40px 20px 50px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,215,0,0.15) 0%, rgba(255,152,0,0.08) 30%, transparent 60%),
                linear-gradient(225deg, rgba(66,209,82,0.1) 0%, transparent 40%),
                radial-gradient(ellipse at top right, rgba(255,215,0,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(255,215,0,0.2) 0%, rgba(255,215,0,0.05) 100%);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-yellow);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-badge i {
    font-size: 14px;
}

.hero-title {
    margin: 0 0 15px;
    line-height: 1.1;
}

.hero-text-main {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--color-white);
}

.hero-text-gradient {
    display: block;
    font-size: 40px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-yellow) 0%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 16px;
    color: var(--color-muted);
    margin: 0 0 30px;
    line-height: 1.6;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 35px;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--color-yellow) 0%, #ff9800 100%);
    color: #111;
    box-shadow: 0 8px 30px rgba(255,215,0,0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255,215,0,0.4);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.2);
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-yellow);
}

.stat-label {
    font-size: 13px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-ad-card {
    position: relative;
    background: linear-gradient(145deg, rgba(42,22,13,0.95) 0%, rgba(30,30,35,0.9) 100%);
    border-radius: 24px;
    padding: 12px;
    border: 2px solid rgba(255,215,0,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(255,215,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hero-ad-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 80px rgba(0,0,0,0.6), 0 0 60px rgba(255,215,0,0.15);
    border-color: rgba(255,215,0,0.4);
}

.hero-ad-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    border-radius: 16px;
}

.hero-logo-card {
    position: relative;
    background: linear-gradient(145deg, rgba(42,22,13,0.95) 0%, rgba(30,30,35,0.9) 100%);
    border-radius: 24px;
    padding: 20px;
    border: 2px solid rgba(255,215,0,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(255,215,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hero-logo-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 80px rgba(0,0,0,0.6), 0 0 60px rgba(255,215,0,0.15);
    border-color: rgba(255,215,0,0.4);
}

.hero-logo-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    display: block;
    border-radius: 16px;
}

.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 30px;
    left: -30px;
    background: radial-gradient(circle, rgba(66,209,82,0.15) 0%, transparent 70%);
    animation-delay: 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 20%;
    background: radial-gradient(circle, rgba(255,152,0,0.15) 0%, transparent 70%);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 1;
    }
}

/* Hero Responsive Styles */
@media (min-width: 768px) {
    .hero-banner {
        padding: 60px 40px 70px;
    }

    .hero-container {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 60px;
    }

    .hero-text-main {
        font-size: 48px;
    }

    .hero-text-gradient {
        font-size: 56px;
    }

    .hero-actions {
        flex-direction: row;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        flex: 1;
        padding: 16px 32px;
    }
}

@media (min-width: 1024px) {
    .hero-banner {
        padding: 80px 50px 90px;
    }

    .hero-text-main {
        font-size: 56px;
    }

    .hero-text-gradient {
        font-size: 68px;
    }

    .hero-logo-card {
        padding: 40px;
    }

    .hero-logo-image {
        width: 240px;
        height: 240px;
    }
}

/* Header */
.main-header {
    background: linear-gradient(180deg, #5a3b29 0%, #4a2f20 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 215, 0, 0.05);
}

.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: 48px;
    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;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login, .btn-register {
    padding: 8px 12px;
    font-size: 12px;
}

@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: linear-gradient(135deg, var(--color-yellow), #e5be00);
    color: #111;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(254, 214, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-login:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 214, 0, 0.4);
}

.btn-register {
    background: linear-gradient(135deg, var(--color-green), #2eb83c);
    color: var(--color-white);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(55, 168, 69, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-register:hover {
    background: linear-gradient(135deg, #4de05d, #36c844);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 168, 69, 0.4);
}



/* Full Footer */
.main-footer {
    background: linear-gradient(180deg, var(--color-header) 0%, #150c06 100%);
    border-top: 1px solid rgba(255, 215, 0, 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) {
    .logo img {
        height: 64px;
    }

    .header-auth {
        gap: 15px;
    }

    .btn-login, .btn-register {
        padding: 10px 18px;
        font-size: 14px;
    }

    .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;
    }
}