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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Top Navbar */
.top-navbar {
    background-color: #f8f9fa;
    padding: 10px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.top-navbar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo__img {
    height: 40px;
    margin-right: 10px;
}

.logo__text {
    font-weight: 700;
    font-size: 1.25rem;
    color: #2c3e50;
    text-decoration: none;
    /* Remove underline */
}

.nav__logo {
    text-decoration: none;
    /* Remove underline from the link */
    display: flex;
    align-items: center;
}

.search_bar {
    display: flex;
    align-items: center;
    width: 400px;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 50px;
    overflow: hidden;
}

.search_bar input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
}

.search_bar button {
    background: transparent;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
}

.phone {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
}

.phone .icon {
    margin-right: 8px;
    color: #3498db;
}

/* Bottom Navbar */
.bottom-navbar {
    background-color: #2c3e50;
    padding: 15px 0;
}

.bottom-navbar__content {
    display: flex;
    justify-content: center;
    /* Center the navigation */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-container {
    width: 100%;
}

.nav__menu {
    display: flex;
    justify-content: center;
    /* Center the menu */
    width: 100%;
}

.nav__list {
    display: flex;
    justify-content: center;
    /* Center the list items */
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 800px;
    /* Limit the width for better centering */
}

.nav__link {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: color 0.3s;
}

.nav__link:hover {
    color: #3498db;
}

.dropdown__arrow {
    margin-left: 5px;
}

.dropdown__item {
    position: relative;
}

.dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    list-style: none;
    z-index: 100;
    display: none;
}

.dropdown__item:hover .dropdown__menu {
    display: block;
}

.dropdown__link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #212121;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown__link:hover {
    background-color: #f1f1f1;
    color: #3498db;
}

.dropdown__subitem {
    position: relative;
}

.dropdown__submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background-color: #fbf6f6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    list-style: none;
    display: none;
}

.dropdown__subitem:hover .dropdown__submenu {
    display: block;
}

.dropdown__add {
    margin-left: auto;
}

.dropdown__sublink {
    display: block;
    padding: 10px 20px;
    color: #212121;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown__sublink:hover {
    background-color: #f1f1f1;
    color: #3498db;
}

.btn {
    background-color: #3498db !important;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #5a7c93;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 25px;
    cursor: pointer;
    position: relative;

}

/* Hamburger to X transformation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);

}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;

}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);

}

.bar {
    width: 25px;
    height: 3px;
    background-color: #201414;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Responsive */
@media (max-width: 995px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100%;
        background-color: #2c3e50;
        transition: right 0.3s;
        padding: 80px 20px 20px;
        z-index: 90;
        justify-content: flex-start;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .bottom-navbar__content {
        justify-content: space-between;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .dropdown__menu,
    .dropdown__submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding-left: 20px;
    }

    .hamburger {
        display: flex;
        z-index: 100;
    }

    .search_bar {
        width: 250px;
    }

    .phone {
        display: none;
    }

    .dropdown__link,
    .dropdown__sublink {
        color: #212121;
    }

    .dropdown__link:hover,
    .dropdown__sublink:hover {
        background-color: #f1f1f1;
        /* Light grey hover background */
        color: #3498db;
        /* Blue for hover text */
    }
}

@media (max-width: 768px) {
    .top-navbar__content {
        flex-wrap: wrap;
        position: relative;
    }

    .logo {
        order: 1;
        width: 100%;
        margin-bottom: 10px;
        justify-content: center;
        /* Center the logo */
    }

    /* phone below logo */
    .phone {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
        display: flex;

    }

    .search {
        order: 3;
        width: calc(100% - 50px);
        /* Make room for hamburger */
    }

    .search_bar {
        width: 100%;
    }

    /* hamburger next to search bar */
    .hamburger {
        position: absolute;
        bottom: 14px;
        /* Align with search bar */
        right: 15px;
        display: flex;
        z-index: 100;
    }

    /* Change hamburger color to match theme */
    .bar {
        background-color: black;
    }

    /* Hide bottom navbar hamburger */
    .bottom-navbar .hamburger {
        display: none;
    }

    /* Hide phone number completely on small screens */
    .phone {
        display: none;
    }
}



/* carousel */

.carousel-container {
    margin: 30px auto;
    max-width: 1200px;
    position: relative;
}

.carousel-inner {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 20px;
    bottom: 40px;
}

.carousel-caption h3 {
    font-weight: 700;
    margin-bottom: 10px;
}

.carousel-play-pause {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    border: 2px solid white;
}

.carousel-play-pause:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* prev icon more visible */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 50%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* carousel indicators more visible */
.carousel-indicators {
    margin-bottom: 10px;
    z-index: 10;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.3) !important;
}

.carousel-indicators button.active {
    background-color: white;
    transform: scale(1.2);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-item img {
        height: 350px;
    }

    .carousel-caption {
        display: block !important;
        padding: 10px;
        bottom: 20px;
    }

    .carousel-caption h3 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 15px;
    }

    .carousel-play-pause {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }

    .carousel-indicators button {
        width: 8px;
        height: 8px;
    }


}

/* Banner */

.banner-section {
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 600px;
    width: 100%;
}

.banner-bg {
    background: linear-gradient(135deg, #0056b3 0%, #1a73e8 100%);
    height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-text {
    max-width: 600px;
    text-align: center;
    color: #ffffff;
    padding: 2rem;
}

.btn-shop {
    background-color: #ffffff;
    color: #0056b3;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    margin-bottom: 2.5rem;
}

.btn-shop:hover {
    background-color: #ff6b00;
    color: #ffffff;
    border-color: #ff6b00;
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: bold;
}

.whatsapp-link:hover {
    text-decoration: underline;
    color: #22c55e;
}

.banner-tagline {
    font-style: italic;
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.banner-heading {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {

    .banner-section,
    .banner-bg {
        height: 600px;
    }

    .banner-heading {
        font-size: 2.5rem;
    }

    .banner-tagline {
        font-size: 1.2rem;
    }
}


/* Feature Products Card */
.card-title a {
    color: #333;
    text-decoration: none;
}

.card-title a:hover {
    color: #ff523b;
}




.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.wishlist-btn:hover {
    opacity: 1;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.quick-view-btn {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 80%;
    transition: bottom 0.3s;
    opacity: 0.9;
}

.product-card:hover .quick-view-btn {
    bottom: 10px;
}

.product-price {
    font-weight: bold;
    font-size: 1.1rem;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
    margin-right: 5px;
}

.star-rating {
    color: #ffc107;
    font-size: 0.8rem;
    margin-right: 5px;
}

.product-category {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.filters {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.product-card .add-to-cart {
    transition: all 0.3s;
}

.color-options span {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 5px;
    cursor: pointer;
}

#loader {
    text-align: center;
    padding: 20px;
    display: none;
}


/* cart */
.cart-badge {
    font-size: 0.7em;
    padding: 0.25em 0.5em;
}



/* footer */

footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 5%;
    width: 100%;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 30px;
    min-width: 200px;
}

.footer-title {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links a,
.contact-links a,
.social-links a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-links a:hover,
.contact-links a:hover,
.social-links a:hover {
    color: #ccc;
}

.contact-links,
.social-links {
    margin-bottom: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
}

.social-links img,
.social-links svg,
.contact-links svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}



@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }

    .footer-section {
        width: 100%;
        margin-bottom: 30px;
    }
}

.fa-solid,
.fas {
    margin-right: 5px;
}



/* login.html */


body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}


/* Ensure padding and border are included in the element's total width/height */
.login-card,
.login-card *,
.login-card *::before,
.login-card *::after {
    box-sizing: border-box;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 50px;
    width: 100%;
    max-width: 440px;
    position: relative;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
    background: #f8f9fa;
}

.login-header {
    text-align: left;
    margin-bottom: 40px;
    margin-top: 20px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #333;
    background: #f1f3f4;
}

.password-requirements {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

.confirm-btn {
    width: 100%;
    padding: 16px;
    background: #2d3748;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    margin-bottom: 30px;
}

.confirm-btn:hover {
    background: #1a202c;
    transform: translateY(-1px);
}

.confirm-btn:active {
    transform: translateY(0);
}

.confirm-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.auth-switch {
    text-align: center;
    margin-bottom: 30px;
}

.auth-switch h3 {
    font-size: 18px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 12px;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 8px;
}

.back-link:hover {
    color: #374151;
}

.back-link i {
    margin-right: 8px;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

.success-message {
    color: #27ae60;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 25px;
        margin: 10px;
        border-radius: 16px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .form-control {
        padding: 14px 18px;
    }

    .confirm-btn {
        padding: 14px;
    }

    .password-toggle {
        right: 18px;
    }
}



/* WHATSAPP FLOATING ACTION BUTTON (FAB) STYLES    */

.whatsapp-fab {
    /* --- Positioning --- */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    /* Ensures it's above other content like the footer */

    /* --- Styling --- */
    width: 60px;
    height: 60px;
    background-color: #25D366;
    /* Official WhatsApp Green */
    color: #FFFFFF;
    border-radius: 50%;
    /* Makes it a circle */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    /* Removes underline from the link */

    /* --- Centering the icon --- */
    display: flex;
    justify-content: center;
    align-items: center;

    /* --- Icon Size --- */
    font-size: 32px;

    /* --- Smooth Hover Effect --- */
    transition: transform 0.2s ease-in-out;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    /* Slightly enlarges the button on hover */
}


/* Copyright Footer */
.copyright-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #4a627a;
    /* A subtle separator */
    color: #ccc;
    /* Slightly dimmer than main footer text */
    background-color: #2c3e50;
    /* Match main footer background */
    width: 100%;
    /* Ensure it spans the full width */
    margin-top: 20px;
}

.copyright-footer p {
    margin: 0;
    font-size: 0.9rem;
}

.copyright-footer a {
    color: #fff;
    /* Make the link stand out a bit */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.copyright-footer a:hover {
    text-decoration: underline;
    color: #3498db;
    /* Use the theme's accent color on hover */
}




/* Variant Selector Styles */
.variant-selector {
    font-family: Arial, sans-serif;
}

.variant-group {
    margin-bottom: 15px;
}

.variant-label {
    font-size: 1rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

.variant-selection-name {
    font-weight: normal;
    color: #555;
}

.color-swatches,
.size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    padding: 0;
    /* Remove default button padding */
}

.color-swatch.large {
    width: 36px;
    height: 36px;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.selected {
    border-color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.size-button {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.size-button:hover:not(:disabled) {
    background-color: #f0f0f0;
    border-color: #aaa;
}

.size-button.selected {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.size-button.out-of-stock {
    background-color: #f9f9f9;
    color: #ccc;
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
    border-color: #e0e0e0;
}

.size-button.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5%;
    width: 110%;
    height: 1px;
    background-color: #ccc;
    transform: rotate(-10deg);
}

/* Product Review === */
#product-reviews-container {
    margin-top: 20px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.overall-rating-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

.overall-rating-stars .fas.fa-star {
    color: #ffc107;
}

.total-reviews-count {
    font-size: 0.9rem;
    color: #6c757d;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.review-author {
    font-weight: bold;
    font-size: 0.95rem;
}

.review-rating .fas.fa-star {
    color: #ffc107;
    font-size: 0.9em;
}

.review-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.review-comment {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

.verified-purchase-badge {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #198754;
    /* Bootstrap success green */
    background-color: #d1e7dd;
    padding: 2px 6px;
    border-radius: 4px;
}


/* Testimonials Section Styles*/
.testimonials-section {
    padding: 40px 0;
    background-color: #f8f9fa;
    /* Light grey background to stand out */
    border-radius: 8px;
}

.testimonials-swiper {
    width: 100%;
    height: 320px;
    padding-bottom: 50px !important;
    /* Space for pagination */
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 40px;
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    font-size: 1rem;
    color: #000;
}

.testimonial-location {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Style the swiper pagination bullets */
.swiper-pagination-bullet {
    background-color: #007bff;
}

.swiper-pagination-bullet-active {
    background-color: #0056b3;
}


/* ============================================================
   CHERUS PULSE 
   ============================================================ */

:root {
    --pulse-nav-bg: #101b5f;
    --pulse-accent: #00ff85;
    --pulse-text-dark: #333333;
    --pulse-border: #e2e8f0;
    --pulse-white: #ffffff;
    --pulse-bg-light: #f8f9fa;
    --pulse-card-bg: #ffffff;
}




/* ============================================================
 * 1. PULSE SUB-NAVIGATION BAR
 * ============================================================ */
.pulse-sub-nav {
    background-color: var(--pulse-nav-bg);
    padding: 0;
    margin-top: -1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pulse-nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    justify-content: center;
    flex-wrap: wrap;
}

.pulse-nav-link {
    background: transparent;
    border: none;
    color: #a0a0a0;
    padding: 16px 18px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pulse-nav-link:hover {
    border-bottom: 4px solid var(--pulse-accent);
    color: var(--pulse-white);
    background-color: rgba(255, 255, 255, 0.08);
}

.pulse-nav-link.active {
    border-bottom: 4px solid var(--pulse-accent);
    color: var(--pulse-white);
    background-color: rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

@media (max-width: 768px) {
    .pulse-nav-link {
        padding: 12px 12px;
        font-size: 0.7rem;
    }
}

/* ============================================================
 * 2. PULSE MAIN CONTENT AREA BACKGROUND
 * ============================================================ */
#pulse-content-area {
    background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    min-height: 400px;
}

main.container {
    background: transparent;
}

/* ============================================================
 * 3. PULSE VIEW TITLE
 * ============================================================ */
.pulse-view-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--pulse-text-dark);
    letter-spacing: -0.5px;
    margin: 0 0 30px 0;
    text-transform: capitalize;
    border-left: 6px solid var(--pulse-accent);
    padding-left: 16px;
}

@media (max-width: 768px) {
    .pulse-view-title {
        font-size: 1.5rem;
    }
}

/* ============================================================
 * 4. DROPDOWNS & SELECTORS
 * ============================================================ */
.pulse-dropdown,
#tableSelector,
#teamSwitcher {
    appearance: auto;
    border: 2px solid #ddd;
    background-color: var(--pulse-white);
    color: var(--pulse-text-dark);
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pulse-dropdown:hover,
#tableSelector:hover,
#teamSwitcher:hover {
    border-color: var(--pulse-accent);
    box-shadow: 0 4px 12px rgba(0, 255, 133, 0.15);
    background-color: var(--pulse-white);
}

.pulse-dropdown:focus,
#tableSelector:focus,
#teamSwitcher:focus {
    outline: none;
    border-color: var(--pulse-accent);
    box-shadow: 0 0 0 3px rgba(0, 255, 133, 0.2);
}


/* ============================================================
 * PROFESSIONAL TABLE STYLING 
 * ============================================================ */

.pulse-card.table-card {
    padding: 0;
    border: 1px solid #e2e8f0;
    background: #fff;
    /* Remove overflow:hidden here so sticky works better */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.table-header-area {
    padding: 20px 25px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.table-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #2c3e50;
    border-left: 5px solid #3498db;
    padding-left: 15px;
}

.table-responsive {
    /* Defines the scrollable area */

    overflow-y: auto;
    overflow-x: auto;
    background: #fff;
    position: relative;
    /* Context for sticky */
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.custom-stats-table {
    width: 100%;
    border-collapse: separate;
    /* Crucial for sticky headers */
    border-spacing: 0;
    white-space: nowrap;
}

/* Sticky Header Logic */
.custom-stats-table thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    /* Must be solid color */
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 20px;
    /* Increased padding */
    border-bottom: 2px solid #cbd5e1;
    z-index: 100;
    /* Ensure it stays on top */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    /* Subtle shadow for depth */
}

/* Header Alignment Classes */
.custom-stats-table thead th.text-start {
    text-align: left;
}

.custom-stats-table thead th.text-center {
    text-align: center;
}

/* Row Styling */
.custom-stats-table tbody tr {
    transition: background-color 0.15s ease;
}

.custom-stats-table tbody tr:hover {
    background-color: #f1f5f9;
}

.custom-stats-table tbody td {
    padding: 16px 20px;
    /* Match header padding */
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #334155;
    vertical-align: middle;
}

/* Specific Column Styles */
.name-cell {
    text-align: left;
    font-weight: 700;
    color: #1e293b !important;
    min-width: 200px;
}

.data-cell {
    text-align: center;
}

.pos-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #64748b;
    background: #f1f5f9;
}

/* Rank Highlights */
.top-rank .pos-number {
    background-color: #dcfce7;
    color: #166534;
}

.relegation-rank .pos-number {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Points Highlight */
.pts-cell {
    font-weight: 900;
    color: #3498db !important;
    background-color: rgba(52, 152, 219, 0.05);
    text-align: center;
}

/* Form Circles */
.form-container {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.form-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: white;
}


/* ============================================================
 * 6. FORM CIRCLES (TEAM FORM)
 * ============================================================ */
.form-container {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.form-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.form-circle:hover {
    transform: scale(1.1);
}

.form-W {
    background: linear-gradient(135deg, #13cf00, #10a800);
}

.form-L {
    background: linear-gradient(135deg, #d81920, #a01218);
}

.form-D {
    background: linear-gradient(135deg, #888, #666);
}

/* ============================================================
 * 7. SPIDER CHART
 * ============================================================ */
#spiderChart {
    max-height: 400px;
    margin: 20px auto;
}

/* ============================================================
 * 8. RESPONSIVE IMPROVEMENTS
 * ============================================================ */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 1024px) {
    #pulse-content-area {
        padding: 20px;
    }

    .custom-stats-table {
        font-size: 0.85rem;
    }

    .custom-stats-table thead th {
        padding: 10px 8px;
        font-size: 0.75rem;
    }

    .custom-stats-table tbody td {
        padding: 10px 8px;
    }
}

@media (max-width: 768px) {
    #pulse-content-area {
        padding: 15px;
        border-radius: 8px;
    }

    .pulse-card {
        padding: 16px;
        margin-bottom: 20px;
    }

    .custom-stats-table thead th,
    .custom-stats-table tbody td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }

    .form-circle {
        width: 20px;
        height: 20px;
        font-size: 8px;
    }

    .pulse-dropdown,
    #tableSelector,
    #teamSwitcher {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* ============================================================
 * 9. LOADING & ERROR STATES
 * ============================================================ */
.spinner-border {
    border-color: rgba(0, 0, 0, 0.1);
    border-right-color: var(--pulse-accent);
}

.alert {
    border-radius: 8px;
    padding: 16px;
    border: none;
}

.alert-danger {
    background-color: #fee;
    color: #c00;
}

.alert-info {
    background-color: #eef;
    color: #006;
}


/* --- PL STATS CARD GRID --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stats-card {
    background-color: #1a1a1a;
    /* Charcoal */
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    min-height: 580px;
    /* Taller to fit 10 items nicely */
}

.stats-card-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.stats-card-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    text-transform: capitalize;
    /* Sentence Case */
}

.stats-card-arrow {
    color: var(--pulse-accent);
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.stats-card-arrow:hover {
    transform: translateX(3px);
}

.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;


}

.stats-list-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #222;
    transition: background 0.2s;
}

.stats-list-item:hover {
    background: #222;
}

.stats-rank {
    width: 25px;
    color: #999;
    font-size: 0.8rem;
    font-weight: 800;
}

.stats-player-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.stats-player-name {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.stats-player-team {
    color: #888;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.stats-value {
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
}

/* Pagination Info */
.stats-pagination-info {
    padding: 10px 20px;
    background: #111;
    color: #666;
    font-size: 0.7rem;
    text-align: center;
}

.stats-section-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--pulse-slate);
    text-transform: capitalize;
    /* Sentence Case */
    margin: 25px 0 10px 0;
    display: block;
    width: 100%;
}

/* Ensure names in the list don't wrap strangely */
.stats-player-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ============================================================
 * UPDATES FOR TOP 10 LISTS & TIES
 * ============================================================ */

/* Allow cards to grow for Top 10 lists */
.stats-card {
    min-height: 580px;
    /* Taller to fit 10 items nicely */
}

/* Scrollbar for list if screen is small */
.stats-list {
    overflow-y: auto;
    max-height: 600px;
}

/* Tie Ranking Styling */
.rank-tie {
    color: #3498db;
    font-weight: 800;
}

/* Hide the main header as requested */
.hidden-header {
    display: none;
}

/* ============================================================
 * MATCHES LIST STYLING 
 * ============================================================ */

.matches-list-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* Date Header */
.match-date-header {
    background-color: #f1f5f9;
    /* Light Blue-Grey */
    color: #2c3e50;
    /* Brand Dark */
    font-weight: 700;
    padding: 12px 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-date-header:first-child {
    border-top: none;
}

/* Match Row */
.match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.match-row:last-child {
    border-bottom: none;
}

.match-row:hover {
    background-color: #fafbfc;
}

/* Teams */
.match-team {
    flex: 1;
    font-weight: 700;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.match-team.home-team {
    justify-content: flex-end;
    text-align: right;
    padding-right: 20px;
}

.match-team.away-team {
    justify-content: flex-start;
    text-align: left;
    padding-left: 20px;
}

/* Center Score/Time Area */
.match-center {
    flex: 0 0 100px;
    /* Fixed width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Finished Match Scores */
.match-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #2c3e50;
}

.score-box {
    background: #2c3e50;
    /* Brand Dark */
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    min-width: 40px;
    text-align: center;
}

/* Upcoming Match Time */
.match-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3498db;
    /* Brand Blue */
    border: 2px solid #3498db;
    background: #fff;
    padding: 4px 14px;
    border-radius: 20px;
}

.match-status {
    font-size: 0.75rem;
    color: #888;
    margin-top: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Venue Tag */
.match-venue {
    flex: 0 0 120px;
    text-align: right;
    font-size: 0.75rem;
    color: #7f8c8d;
    font-weight: 600;
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .match-row {
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px 10px;
    }

    .match-team {
        flex: 0 0 40%;
        font-size: 0.9rem;
    }

    /* Stack teams differently on mobile for better flow */
    .match-team.home-team {
        text-align: center;
        justify-content: center;
        padding: 0;
        margin-bottom: 5px;
        order: 1;
    }

    .match-team.away-team {
        text-align: center;
        justify-content: center;
        padding: 0;
        margin-top: 5px;
        order: 3;
    }

    .match-center {
        flex: 0 0 100%;
        order: 2;
        margin: 5px 0;
    }

    .match-venue {
        flex: 0 0 100%;
        order: 4;
        text-align: center;
        margin: 8px 0 0 0;
        background: none;
        color: #999;
    }
}


/* ============================================================
 * MATCHES FILTER UI (Multi-Select & Side Drawer)
 * ============================================================ */

/* Filter Bar Container - for inline layout */
.matches-filter-bar {
    display: flex;
    gap: 12px;
    /* Consistent gap between buttons */
    margin-bottom: 25px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* Aligns everything to the left */
}

/* Filter Trigger Buttons */
.filter-trigger-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    /* Pill shape */
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.filter-trigger-btn:hover {
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-1px);
}

.filter-trigger-btn.active {
    background-color: #2c3e50;
    color: #00ff85;
    /* Pulse Green Accent */
    border-color: #2c3e50;
}

/* Elegant Reset Button (Pill style next to filters) */
.reset-filter-pill {
    background: #fff0f0;
    border: 1px solid #ffcdd2;
    color: #e74c3c;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.reset-filter-pill:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* BACKDROP & DRAWER  */
.filter-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.filter-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.filter-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90%;
    height: 100vh;
    background: #fff;
    z-index: 1050;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.filter-drawer.open {
    right: 0;
}

.drawer-header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
}

/* Drawer Item with Checkbox */
.drawer-item {
    padding: 16px 25px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    font-size: 0.95rem;
    color: #444;
}

.drawer-item:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

.drawer-item.selected {
    background-color: #f0f7ff;
    font-weight: 600;
    color: #3498db;
}

/* Custom Checkbox Design */
.drawer-item-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.drawer-item.selected .drawer-item-checkbox {
    background-color: #3498db;
    border-color: #3498db;
}

.drawer-item.selected .drawer-item-checkbox::after {
    content: '\f00c';
    /* FontAwesome Check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    font-size: 12px;
}

.drawer-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    background: #fff;
}

.drawer-save-btn {
    width: 100%;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
    transition: all 0.3s;
}

.drawer-save-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}





/* ============================================================
 * NEWS & MATCH REPORT CARDS
 * ============================================================ */

.article-card {
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* Image Wrapper with Zoom Effect */
.article-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.article-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-card:hover .article-img-top {
    transform: scale(1.08);
}

/* Floating Category Badge */
.article-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(44, 62, 80, 0.9);
    /* Dark Slate */
    color: #fff;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.article-badge.match-report {
    background: #3498db;
    /* Cherus Blue */
}

/* Card Content */
.article-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta i {
    color: #3498db;
}

.article-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit title to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Read More Link (Animated) */
.article-read-btn {
    margin-top: auto;
    color: #3498db;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.article-read-btn:hover {
    gap: 10px;
    color: #21618c;
}



/* ============================================================
 * TABLE UI UPDATES (Prominent Dropdown & Top-Right Nav)
 * ============================================================ */

/* 1. Prominent Dropdown Styling */
#tableSelector {
    background-color: #fff;
    border: 2px solid #2c3e50;
    /* Bold Dark Border */
    color: #2c3e50;
    font-size: 1.1rem;
    padding: 15px 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    font-weight: 800;
    /* Extra Bold */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    /* Custom Arrow Icon */
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232c3e50%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 14px;
}

#tableSelector:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

#tableSelector:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

/* 2. Table Header Layout (Flexbox for Title Left, Arrows Right) */
.table-header-area {
    padding: 15px 25px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    /* Pushes Title left, Buttons right */
    align-items: center;
    min-height: 70px;
}

.table-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #2c3e50;
    border-left: 5px solid #3498db;
    padding-left: 15px;
}

/* 3. Top Right Navigation Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-info {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    /* Perfect Circle */
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-circle-btn:hover:not(:disabled) {
    background: #3498db;
    /* Brand Blue */
    color: white;
    border-color: #3498db;
    transform: scale(1.05);
}

.nav-circle-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8f9fa;
}

/* Ensure Table Fills Space */
.pulse-card.table-card {
    padding: 0;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}




/* ============================================================
 * PLAYER STATS DASHBOARD & EXPLORER
 * ============================================================ */

/* 1. Internal Navigation Bar */
.stats-internal-nav {
    display: flex;
    background-color: #2c3e50;
    /* Match Header Theme */
    padding: 0 10px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    overflow-x: auto;
}

.stats-sub-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 18px 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 4px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.stats-sub-tab:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.stats-sub-tab.active {
    color: #fff;
    border-bottom-color: #00ff85;
    /* Pulse Accent */
    background-color: rgba(255, 255, 255, 0.1);
}

/* 2. Content Wrapper */
.stats-content-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 30px;
    min-height: 500px;
}

/* 3. Filter Bar for Explorer */
.stats-filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    align-items: center;
}

.stats-filter-label {
    font-weight: 700;
    color: #64748b;
    font-size: 0.9rem;
    margin-right: 5px;
}

/* 4. Explorer Table Styling */
.player-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    /* Spacing between rows */
}

.player-table thead th {
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 800;
    padding: 10px 20px;
    letter-spacing: 0.5px;
}

.player-table tbody tr {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f1f5f9;
    /* Fallback */
}

.player-table tbody tr:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 5;
}

.player-table td {
    padding: 15px 20px;
    vertical-align: middle;
    background-color: #fff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.player-table td:first-child {
    border-left: 1px solid #f1f5f9;
    border-radius: 8px 0 0 8px;
}

.player-table td:last-child {
    border-right: 1px solid #f1f5f9;
    border-radius: 0 8px 8px 0;
}

/* Rank Circle */
.rank-circle {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #64748b;
    font-size: 0.9rem;
}

.rank-1 .rank-circle {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fcd34d;
}

.rank-2 .rank-circle {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.rank-3 .rank-circle {
    background: #fff7ed;
    color: #b45309;
    border: 1px solid #fdba74;
}

/* Stat Highlight */
.stat-highlight {
    font-size: 1.2rem;
    font-weight: 900;
    color: #2c3e50;
    background: #f1f5f9;
    padding: 6px 16px;
    border-radius: 8px;
    display: inline-block;
    min-width: 50px;
    text-align: center;
}

/* Pagination Controls (Top Right) */
.explorer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.explorer-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================================
 * PLAYER DASHBOARD & FILTER UPDATES
 * ============================================================ */

/* Section Headers in Dashboard */
.dashboard-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #64748b;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-section-title:first-child {
    margin-top: 0;
}

/* Cleaner Filter Bar */
.stats-filter-bar {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-filter-label {
    font-weight: 700;
    color: #2c3e50;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Specific styling for these dropdowns to stand out */
#explorer-metric,
#explorer-team {
    min-width: 200px;
    border-color: #cbd5e1;
}


/* ============================================================
 * UPDATED DRAWER STYLES (Radio vs Checkbox)
 * ============================================================ */

/* Single Select (Radio Style) */
.drawer-item.radio-mode .drawer-item-checkbox {
    border-radius: 50%;
    /* Circle */
}

.drawer-item.radio-mode.selected .drawer-item-checkbox {
    background-color: #fff;
    border: 5px solid #3498db;
    /* Donut style */
}

.drawer-item.radio-mode.selected .drawer-item-checkbox::after {
    content: '';
    /* No checkmark for radio */
}

/* Selected Item Text */
.drawer-item.selected span {
    color: #3498db;
    font-weight: 700;
}

/* Active Filter Button State (Pulse Green) */
.filter-trigger-btn.has-filters {
    background-color: #e6fffa;
    border-color: #00ff85;
    color: #008f4c;
}

/* ===== SKELETON LOADING ===== */
.skeleton-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}
.skeleton-img {
  width: 100%;
  height: 220px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}
.skeleton-body {
  padding: 12px;
}
.skeleton-line {
  height: 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.full { width: 100%; }
.skeleton-btn {
  height: 36px;
  border-radius: 4px;
  margin-top: 8px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== CATEGORY FILTER BUTTONS ===== */
.filter-buttons .btn-outline-secondary {
    color: #1a1a1a;
    border-color: #6c757d;
    font-weight: 500;
}
.filter-buttons .btn-outline-secondary:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}
.filter-buttons .btn-outline-secondary.active {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    font-weight: 600;
}

/* ===== STICKY HEADER ===== */
header {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 1050;
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* Accessibility: Professional Touch Targets */
.nav__link, .btn, .search_bar button, .dropdown__link {
    min-height: 48px;
    display: flex;
    align-items: center;
}

/* Visually hide labels but keep them for screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Top nav utility actions */
.top-nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-action-btn {
    position: relative;
    color: #2c3e50;
    font-size: 1.15rem;
    text-decoration: none;
    transition: color 0.2s;
}

.top-action-btn:hover {
    color: #3498db;
}

.top-action-btn .cart-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    padding: 2px 4px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .top-nav-actions {
        display: none;
    }
}

/* Auth nav items in top navbar */
#auth-nav-item a.nav__link {
    color: #2c3e50;
    font-weight: 600;
}
#auth-nav-item a.nav__link:hover {
    color: #3498db;
}
#auth-nav-item #logout-btn {
    background-color: #2c3e50;
    color: #fff;
    border: none;
}
#auth-nav-item #logout-btn:hover {
    background-color: #3498db;
}


.leg-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 8px;
    padding: 0 16px;
}
.leg-divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #2c3e50, transparent);
    opacity: 0.3;
}
.leg-divider-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #2c3e50;
    background: #e8f4fd;
    border: 1px solid #bee3f8;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.leg-divider-first {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}