:root {
    --primary-blue: #1e257c;
    --primary-orange: #ff5e00;
    --logout-red: #d93025;

    --brand-gold: #ff5e00;
    --brand-gold-dark: #e65500;

    --bg-dark: #070910;
    --card-dark: #111422;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);

    --primary-gold: #ff5e00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- WHATSAPP FLOATING --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.08) rotate(6deg);
}

/* --- GRADIENT TEXT --- */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-orange), #ff9a3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- NAVBAR --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 3px solid #E65500;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-blue);
    text-decoration: none;
    text-transform: uppercase;
    min-width: 0;
}

.logo img {
    width: 172px;
    height: 32px;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

/* Buttons */
.btn-nav {
    padding: 4px 16px 8px 16px;
    border-radius: 50px;
    color: white !important;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    border: var(--primary-orange) !important;
    cursor: pointer;
}

.btn-register {
    background: #ff5e00 !important;
    box-shadow: 0 4px 10px rgba(255, 94, 0, 0.2);
    border: var(--primary-orange) !important;
}

.btn-logout {
    background: var(--logout-red);
    box-shadow: 0 4px 10px rgba(217, 48, 37, 0.2);
}

.login-btn {
    background: var(--primary-orange);
    color: #ff8000 !important;
    padding: 4px 16px 8px 16px !important;
    border: 1px solid #ff8000 !important;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 94, 0, 0.2);
}

.login-btn:hover {
    background: #e65500;
    color: #fff !important;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: var(--primary-blue);
    background: none;
    border: none;
    line-height: 1;
}

/* --- MOBILE DRAWER --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 2000;
    transition: 0.4s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.mobile-drawer.active {
    left: 0;
}

.mobile-drawer a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 15px;
}

.mobile-drawer hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1500;
}

.drawer-overlay.active {
    display: block;
}

.close-btn {
    align-self: flex-end;
    font-size: 30px;
    cursor: pointer;
    color: var(--primary-blue);
}

/* --- PLAYERS DIRECTORY --- */
.players-directory {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- SECTION HEADER FIXED --- */
.section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 14px;
    letter-spacing: -0.6px;
}

.section-header .gradient-text {
    display: inline-block;
}

.section-header p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dim);
    max-width: 680px;
    margin: 0 auto;
}

/* --- FILTER CONTAINER FIX --- */
.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto 50px;
    background: var(--card-dark);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 2;
    min-width: 280px;
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-orange);
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 14px 14px 14px 50px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.15);
}

.filter-options {
    flex: 1;
    min-width: 180px;
}

.filter-options select {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff5e00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.player-card {
    background: var(--card-dark);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.3s ease;
}

.player-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-orange);
}

.player-image {
    position: relative;
    height: 200px;
}

.player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.base-price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary-orange);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

.player-info {
    padding: 20px;
    text-align: center;
}

.player-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
    color: var(--text-main);
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 94, 0, 0.1);
    color: var(--primary-orange);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 10px 0;
    text-transform: uppercase;
}

.player-stats {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat span {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.stat strong {
    font-size: 1.1rem;
    color: var(--text-main);
}

.btn-view-profile {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-view-profile:hover {
    background: var(--primary-orange);
    color: white;
}

/* --- FOOTER --- */
.main-footer {
    background: #0a0d16;
    padding: 80px 20px 30px;
    border-top: 1px solid var(--border);
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-orange);
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-orange);
    color: #fff;
    transform: translateY(-5px);
    border-color: var(--primary-orange);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary-orange);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-orange);
    padding-left: 8px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--primary-orange);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--primary-orange);
    text-decoration: none;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-main);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .features-container {
        flex-direction: column;
        text-align: center;
    }

    .f-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .f-item i {
        margin-bottom: 10px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.88rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .logo span {
        max-width: 150px;
        font-size: 1rem;
    }

    .hero {
        padding: 80px 15px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-outline,
    .btn-primary {
        width: 100%;
        max-width: 100%;
    }

    .how-it-works,
    .pricing,
    .features-section,
    .faq-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .price-card {
        padding: 30px 20px;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
        right: 18px;
        bottom: 18px;
    }

    /* --- SECTION HEADER MOBILE FIX --- */
    .section-header {
        margin: 0 auto 30px;
        padding: 0 16px;
    }

    .section-header h2 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .section-header p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

@media (max-width: 600px) {
    .filter-container {
        flex-direction: column;
    }

    .search-box,
    .filter-options {
        width: 100%;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .addon-table th,
    .addon-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .btn-addon {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .nav-container {
        padding: 0 14px;
    }

    .logo img {
        width: 38px;
        height: 38px;
    }

    .logo span {
        max-width: 120px;
    }

    .stat-item,
    .how-item,
    .price-card {
        padding: 24px 18px;
    }

    .hero p {
        font-size: 1rem;
    }

    .players-directory {
        padding: 45px 14px;
    }

    .players-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .player-image {
        height: 220px;
    }

    .player-info {
        padding: 18px;
    }

    .player-info h3 {
        font-size: 1.05rem;
    }
}