:root {
    --bg-main: #000000;
    --bg-card: rgba(30, 30, 32, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --accent: #0a84ff; /* Apple Baby Blue */
    --accent-hover: #006ee6;
    --text-white: #ffffff;
    --text-gray: #8e8e93;
    --gold: #0a84ff; /* Kept variable name to not break old code, but value is blue */
    --gold-hover: #006ee6;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: var(--gold);
    transition: color 0.2s;
}

a:hover {
    color: var(--gold-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent);
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 14px rgba(10, 132, 255, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.3);
}

.btn-outline {
    background-color: rgba(10, 132, 255, 0.1);
    color: var(--accent);
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border: 1px solid #ff3b30;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-danger:hover {
    background-color: #ff3b30;
    color: #fff;
    transform: translateY(-1px);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-left {
    flex: 1;
}

.nav-left a {
    color: var(--text-white);
    font-weight: 500;
    margin-right: 25px;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s, color 0.2s;
}

.nav-left a:hover, .nav-left a.active {
    color: var(--accent);
    opacity: 1;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 1px;
    text-align: center;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.online-count {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 150px 20px 80px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/lobby.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(21,21,21,0.7) 0%, rgba(21,21,21,1) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 50px;
}

.hero-logo {
    max-width: 350px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px var(--accent-glow));
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Offset Cards */
.hero-cards {
    display: flex;
    gap: 20px;
    max-width: 900px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.h-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.h-card h3 {
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 10px;
}

.h-card p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.h-card a {
    font-size: 14px;
    font-weight: 600;
}

/* Features Section */
.section-features {
    padding: 80px 0;
}

.features-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.features-left {
    flex: 1;
}

.features-left h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.section-sub {
    color: var(--text-gray);
    margin-bottom: 40px;
}

.f-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.f-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    transition: border-color 0.2s;
}

.f-card:hover {
    border-color: var(--gold);
}

.f-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.f-card p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.f-card a {
    font-size: 12px;
    font-weight: 600;
}

.features-right {
    flex: 1;
}

.f-image-box img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 25px;
}

.features-right h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.features-right p {
    color: var(--text-gray);
    font-size: 15px;
    margin-bottom: 30px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    color: var(--text-gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-buttons {
    display: flex;
    gap: 15px;
}

/* Support Banner */
.support-banner {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
    text-align: center;
}

.banner-content {
    max-width: 800px;
}

.support-banner h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.support-banner p {
    color: var(--text-gray);
    font-size: 15px;
    margin-bottom: 15px;
}

.support-banner .highlight {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 30px;
}

/* Crates Section */
.section-crates {
    padding: 80px 0;
}

.crates-layout {
    display: flex;
    gap: 50px;
    align-items: center;
}

.crates-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.c-image-wrap img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    height: 200px;
}

.crates-right {
    flex: 1;
}

.crates-right h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.crates-right p {
    color: var(--text-gray);
    font-size: 15px;
    margin-bottom: 30px;
}

.c-info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.c-info-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.c-info-card p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.c-info-card a {
    font-size: 12px;
    font-weight: 600;
}

/* Leaderboard Section (Replacing Stories) */
.section-leaderboard {
    padding: 80px 0;
    background-color: #121212;
    border-top: 1px solid var(--border-color);
}

.lead-layout {
    display: flex;
    gap: 50px;
}

.lead-left {
    flex: 1;
}

.section-title {
    font-size: 42px;
    margin-bottom: 10px;
}

.section-title span {
    color: var(--gold);
}

.lead-desc {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 15px;
}

.leaderboard-box {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.leader-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.leader-item:last-child {
    border-bottom: none;
}

.leader-rank {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    width: 30px;
    color: var(--text-gray);
}

.leader-rank.gold { color: #FFD700; }
.leader-rank.silver { color: #C0C0C0; }
.leader-rank.bronze { color: #CD7F32; }

.leader-user {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.leader-user img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    image-rendering: pixelated;
}

.leader-user span {
    font-weight: 600;
    font-size: 15px;
}

.creator-tag {
    background-color: #ff00ff;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}

.owner-tag {
    background-color: #ff3333;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}

.leader-balance {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--gold);
    font-size: 16px;
}

.lead-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.community-grid-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    width: 100%;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 15px;
}

.player-avatar {
    text-align: center;
}

.player-avatar img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    border-radius: 6px;
    margin-bottom: 5px;
}

.player-avatar span {
    display: block;
    font-size: 11px;
    color: var(--text-gray);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Call to Action */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background-color: #111111;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 20px;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.main-col p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 300px;
}

.f-links-inline a {
    color: var(--text-gray);
    font-size: 12px;
    margin-right: 15px;
}

.f-col h4 {
    font-size: 12px;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.f-col ul {
    list-style: none;
}

.f-col ul li {
    margin-bottom: 10px;
}

.f-col ul li a {
    color: var(--text-gray);
    font-size: 13px;
}

.f-col ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-gray);
}

/* === SHOP & CART STYLES === */
.shop-hero {
    padding: 150px 0 50px;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-card));
    text-align: center;
}

.shop-hero h1 span {
    color: var(--accent);
}

.shop-content {
    display: flex;
    gap: 30px;
    margin-bottom: 80px;
}

.shop-sidebar {
    width: 250px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-list {
    list-style: none;
    margin-top: 15px;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: var(--text-gray);
    text-decoration: none;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: 0.3s;
}

.category-list li.active a, .category-list a:hover {
    background: rgba(0, 170, 255, 0.1);
    color: var(--accent);
}

.shop-main {
    flex: 1;
}

.empty-shop-notice {
    text-align: center;
    padding: 100px 20px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--text-gray);
}

.empty-shop-notice i {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--accent);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    margin-right: 20px;
    font-size: 20px;
    color: #fff;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 10000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cart-header h3 {
    margin: 0;
}

#close-cart {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.cart-content {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-cart {
    text-align: center;
    color: var(--text-gray);
}

.empty-cart i {
    font-size: 40px;
    margin-bottom: 15px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: var(--bg-card);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 18px;
}

/* === TEAM STYLES === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.team-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.3s;
}
.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}
.team-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.team-role {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 10px;
    text-transform: uppercase;
}

/* Responsive (Basic) */
@media (max-width: 900px) {
    .features-layout, .crates-layout, .lead-layout, .footer-grid {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .f-grid {
        grid-template-columns: 1fr;
    }
}
