/* Define root color variables */
:root {
    --bg-primary: #fff;
    --bg-secondary: #c0c0c0;
    --text-primary: #222;
    --text-secondary: #444;
    --accent-primary: #8A2BE2;
    --accent-secondary: #00FFCC;
    --accent-hover: #00b894;
    --border-color: #eee;
    --shadow-color: rgba(0, 0, 0, 0.06);
}

/* Color Palette:
    Deep Purple Background (Hero/Base): var(--bg-primary)
    Dark Gray (Mid Sections/About Us/Footer BG): var(--bg-secondary)
    Primary Accent (Violet/Magenta): var(--accent-primary)
    Secondary Accent (Lighter Purple for text/details): var(--text-secondary)
    Green accent for skill numbers/highlights: var(--accent-secondary)
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* --- Layout helpers: ensure consistent centered containers and section spacing --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Default vertical spacing for sections; specific sections (hero/footer) can override */
section {
    display: block;
    padding: 60px 0;
}

/* Hero should be full-height and not use the default section padding */
.hero {
    padding: 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

/* Make sure section headers align visually */
.section-header {
    margin-top: 0;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(3px);
}

.menu-overlay.show {
    display: block;
}

/* --- Navbar --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--bg-primary);
    width: 100%;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.logo {
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-right: auto;
    margin-left: 50px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 5px 0;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
}

@media (max-width: 1050px) {
    .nav-links {
        gap: 2rem;
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a:hover,
    .nav-links a.active {
        border-bottom: 1px solid var(--accent-primary);
    }
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hide desktop CTA buttons (they are now only visible in the mobile toggle menu) */
.nav-buttons .login-btn,
.nav-buttons .signup-btn {
    display: none;
    background: #8A2BE2;
    /* Primary Accent Button */
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    margin-left: 15px;
}

/* --- Hero section (Deep Purple BG) --- */
.hero {
    height: 100vh;
    /* Background is now handled by the slider */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 100px 60px;
    position: relative;
    z-index: 1;
    /* Ensure hero content is above the background slider */
    background-color: #8e7ca7;
    /* Light theme background */
}

/* New: Animated Background Slider Styles */
.hero-bg-slider,
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-overlay {
    /* Dark overlay and fade, adapted to sit over the sliding images */
    background: linear-gradient(to right, #9c89b6 25%, rgba(153, 137, 179, 0.062));
    z-index: 2;
}

.hero-bg-slider {
    z-index: 1;
}

/* Keyframes for the image fade transition */
@keyframes imageFade {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }

    8% {
        opacity: 1;
        transform: scale(1.0);
    }

    25% {
        opacity: 1;
        transform: scale(1.0);
    }

    33% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    opacity: 0;
    animation: imageFade 18s infinite ease-in;
    /* 3 slides * 6s display time = 18s cycle */
}

/* Placeholder Images - Use simple color placeholders to ensure compilation */
.slide-1 {
    /* Soccer Player Placeholder */
    background-image: url('../images/fancy-crave-qowyMze7jqg-unsplash.jpg');
}

.slide-2 {
    /* Basketball Action Placeholder */
    background-image: url('../images/Gemini_Generated_Image_gag9t6gag9t6gag9.png');
    animation-delay: 6s;
    /* Start 6 seconds after the first slide */
}

.slide-3 {
    /* Runner in Motion Placeholder */
    background-image: url('../images/jannik-mY2ZHBU6GRk-unsplash.jpg');
    animation-delay: 12s;
    /* Start 12 seconds after the first slide */
}

/* Ensure Hero Content is visible */
.hero-text,
.player-card {
    z-index: 3;
}


.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    margin-bottom: 15px;
    line-height: 1.1;
    font-weight: 500;
}

.hero-text span {
    color: var(--accent-primary);
    /* Accent color for emphasis */
}

.hero-text p {
    margin-bottom: 30px;
    font-size: clamp(0.8rem, 2.5vw, 1.2rem);
    color: #DDDDDD;
    max-width: 450px;
}

.hero-text button {
    background: #8A2BE2;
    /* Primary Accent Button */
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

/* Player Card */
.player-card {
    background: rgba(0, 0, 0, 0.5);
    /* Slightly darker for contrast */
    padding: 30px;
    border-radius: 20px;
    width: 330px;
    backdrop-filter: blur(10px);
    /* Reduced blur for performance */
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
    position: relative;
    overflow: hidden;
}

.player-card .header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.player-card h3 {
    font-size: 0.7rem;
    font-weight: 400;
    color: #C092FF;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.player-card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0;
}

.player-card .details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 10px;
}

.detail-item {
    width: 48%;
    margin-bottom: 7px;
}

.detail-label {
    font-size: 0.5rem;
    color: #C092FF;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.detail-value {
    font-size: 0.7rem;
    font-weight: 500;
}

.detail-value span {
    font-weight: 700;
    color: #8A2BE2;
    /* Accent for key values like country */
}

.detail-item.full-width {
    width: 100%;
}

/* Overall Rating Section */
.overall-rating-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.overall-rating {
    font-size: 3rem;
    font-weight: 900;
    color: #DDDDDD;
    line-height: 1;
}

.overall-rating-label {
    font-size: 0.7rem;
    color: #C092FF;
    text-transform: uppercase;
    font-weight: 500;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 2fr);
    gap: 15px 5px;
    text-align: center;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    border-radius: 5px;
    background: var(--bg-secondary);
    /* Light background for each stat item */
    box-shadow: inset 0 0 5px var(--shadow-color);
}

.stat-value {
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--accent-secondary);
    /* Accent color for stat numbers */
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.5rem;
    color: #DDDDDD;
}

/* Next player arrow */
.arrow {
    position: absolute;
    top: 40%;
    right: -3px;
    transform: translateY(-50%);
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--accent-primary);
    transition: transform 0.3s;
    background: var(--bg-primary);
    border-radius: 50%;
    padding: 5px;
    line-height: 1;
    opacity: 0.8;
}

.arrow:hover {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

/* --- Mid Sections (Light Background) --- */
.mid-sections {
    background-color: var(--bg-primary);
    /* Light Background */
    padding: 80px 5%;
    color: black;
}

.mid-sections .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 60px;
}

/* How It Works Grid */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 0px;
}

.step-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: var(--bg-primary);
    /* Light background for steps */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.step-item i {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.step-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-secondary);
    text-transform: uppercase;
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Why Choose K2S (Two Columns) */
.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

#why-choose {
    background-color: var(--bg-secondary);
    padding-top: 0px;
}

#why-choose h2 {
    color: var(--text-primary);
    padding-top: 70px;
}

.why-category {
    padding: 30px;
    border-radius: 12px;
    background: var(--bg-primary);
    /* Light background */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.why-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.why-category ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.why-category ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.why-category ul li::before {
    content: '•';
    color: var(--accent-secondary);
    font-weight: 900;
    position: absolute;
    left: 0;
}

.join-btn {
    background: #8A2BE2;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    align-self: flex-start;
    transition: background 0.3s;
    cursor: pointer;
}

.join-btn:hover {
    background: #a951ff;
}

/* --- About Us Section (Consistent Dark Gray BG) --- */
.about-us-section {
    background-color: var(--bg-secondary);
    padding: 80px 5%;
    color: var(--text-secondary);
}

.about-us-section .container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.about-visuals {
    flex: 1;
    max-width: 450px;
}

.about-visuals h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
}

.color-boxes {
    display: flex;
    gap: 20px;
}

.box {
    width: 100px;
    height: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.box-purple {
    background-color: #8A2BE2;
}

.box-dark-gray {
    background-color: var(--bg-primary);
}

.box-teal {
    background-color: #00FFCC;
}

.about-content {
    flex: 2;
}

.about-content h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 30px;
}

.mission-statement {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.intro-text {
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.key-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.point-title {
    font-weight: 700;
    font-size: 18px;
    color: #00FFCC;
    display: block;
    margin-bottom: 5px;
}

.point p {
    color: var(--text-primary);
}

/* --- CTA Section: Ready to take the next step? (mid-sections already applies Dark Gray) --- */
.cta-section {
    text-align: center;
    padding: 80px 5%;
    background-color: #21252d;
    /* Consistent Dark Gray */
}

.cta-section .section-header {
    color: #fff;
    margin-bottom: 40px;
}

.color-boxes-cta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.box-cta {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

/* CTA Colors */
.box-yellow {
    background-color: #FFC72C;
}

.box-orange {
    background-color: #FF7F00;
}

.box-teal-dark {
    background-color: #008080;
}

.box-green-dark {
    background-color: #00A98E;
}

.box-red {
    background-color: #E34234;
}

.cta-options {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.1rem;
    color: #DDDDDD;
}

.cta-options span strong {
    color: #00FFCC;
}

.join-now-lg {
    background: #8A2BE2;
    color: #fff;
    padding: 15px 60px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
}

.join-now-lg:hover {
    background: #a951ff;
    transform: translateY(-2px);
}

/* --- Testimonials Section (Consistent Dark Gray BG) --- */
.testimonial-section {
    background-color: var(--bg-primary);
    /* Light Background */
    padding: 80px 5%;
    text-align: center;
}

.testimonial-section .section-header {
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.testimonial-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 20px;
}

.nav-arrows {
    font-size: 2rem;
    color: var(--accent-primary);
    cursor: pointer;
    transition: color 0.2s;
    padding: 10px;
    flex-shrink: 0;

}

.nav-arrows:hover {
    color: #8A2BE2;
}

.testimonial-card {
    background: var(--accent-primary);
    border-radius: 12px;
    border: 2px solid var(--accent-primary);
    padding: 40px;
    text-align: left;
    box-shadow: 0 4px 20px var(--accent-primary);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 250px;
    justify-content: space-between;
}

.quote-box p {
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.2rem);
    /* Responsive font size */
    line-height: 1.5;
    color: white;
    margin-bottom: 25px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    /* Dark purple/gray avatar placeholder */
    border: 3px solid #00FFCC;
    flex-shrink: 0;
}

.user-info h4 {
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 2px;
}

.user-info p {
    font-size: 0.9rem;
    color: white;
}

/* --- FOOTER STYLES (Consistent Dark Gray BG) --- */
.k2s-footer {
    background-color: var(--bg-secondary);
    /* Light theme footer */
    padding: 60px 5% 0;
    /* Padding at the top, none at the bottom */
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
}

/* Left Section: Logo and Newsletter */
.footer-left {
    max-width: 400px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 900;
    color: #00FFCC;
    margin-bottom: 20px;
}

.footer-left h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.footer-left p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.subscribe-form {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    /* Light background */
}

.subscribe-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.subscribe-form input[type="email"]::placeholder {
    color: #8A2BE2;
}

.subscribe-btn {
    background: #8A2BE2;
    /* Primary Accent Button */
    color: #fff;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    text-transform: uppercase;
    flex-shrink: 0;
}

.subscribe-btn:hover {
    background: #C092FF;
}

/* Center Section: Graphic */
.footer-center-graphic {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    /* Space for the graphic */
}

.purple-circle {
    width: 150px;
    height: 150px;
    background-color: #8A2BE2;
    /* Primary Accent Color */
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.6);
}

/* Right Section: Contact Info */
.footer-right {
    min-width: 200px;
    text-align: right;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    font-size: 0.95rem;
}

.contact-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.contact-item a,
.contact-item p {
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #00FFCC;
}

/* Bottom Bar */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
    border-top: 1px solid #3a3f45;
    /* Subtle separator line */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.admin-link {
    color: #C092FF;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-link:hover {
    color: #00FFCC;
}

/* New: Mobile CTA Buttons */
.mobile-cta-buttons {
    display: none;
    /* Hidden on large screens */
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links.show .mobile-cta-buttons {
    display: flex;
    /* Show when the menu is toggled */
}

/* Ensure mobile buttons look good */
.mobile-cta-buttons .login-btn,
.mobile-cta-buttons .signup-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 20px;
    background: #8A2BE2;
    /* Primary Accent Button */
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

/* --- DASHBOARD STYLES --- */

/* ------------------------------- */
/* Dashboard (moved from templates/dashboard.html) */
/* ------------------------------- */

:root {
    --sidebar-dark: #191630;
    --accent-blue: #5B42F2;
    --accent-purple: #3e025a;
    --content-bg: #F4F7FB;
    --card-bg: #FFFFFF;
    --text-secondary: #A0AEC0;
    --text-dark: #1F2937;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--content-bg);
    margin: 0;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.nav {
    display: block;
}

.sidebar {
    width: 256px;
    background-color: var(--sidebar-dark);
    padding: 24px;
    display: flex;
	overflow:scroll;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transition: transform 0.3s ease-in-out;
    position: relative;
    z-index: 30;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
}

.logo-text {
    font-size: 36px;
    font-weight: 800;
    margin-left: 8px;
    color: white;
}

.logo-text-p {
    color: var(--accent-purple);
}

.logo-text-b {
    color: var(--accent-blue);
}

.nav-db {
    display: block;
    flex-direction: column;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 150ms, opacity 150ms;
    margin-bottom: 8px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.active-link {
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white !important;
    opacity: 1;
}

.nav-link i {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.nav-link-logout {
    color: #F87171;
    font-weight: 500;
}

/* Dashboard: present nav items vertically (icon above label) */
.db-nav,
.db-nav .nav-link {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 12px;
    background-color: #191630;
}

.db-nav .nav-link i,
.db-nav .nav-link [data-lucide] {
    margin-right: 0;
    margin-bottom: 6px;
}

.sidebar-bottom {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile-card {
    display: flex;
    align-items: center;
    padding: 12px;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 150ms;
}

.user-profile-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #3B82F6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-right: 12px;
}

.user-info {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.main-content {
    flex-grow: 1;
    padding: 16px;
    max-width: 100%;
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 24px;
}

.breadcrumb span {
    margin: 0 4px;
}

.breadcrumb .current-page {
    font-weight: 600;
    color: var(--text-dark);
}

.breadcrumb .badge {
    font-weight: 600;
    padding: 2px 8px;
    background-color: rgba(91, 66, 242, 0.1);
    color: var(--accent-blue);
    border-radius: 9999px;
    font-size: 12px;
}

.welcome-banner {
    background-color: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-content img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.welcome-subtitle {
    font-size: 14px;
    color: #6B7280;
}

.edit-profile-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 150ms;
    box-shadow: 0 4px 10px rgba(91, 66, 242, 0.3);
    border: none;
    cursor: pointer;
}

.edit-profile-btn:hover {
    background-color: var(--accent-purple);
}

.card {
    background-color: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.info-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #F3F4F6;
}

.info-list dl {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.info-item {
    display: flex;
    justify-content: space-between;
}

.info-label {
    color: #6B7280;
}

.info-value {
    font-weight: 500;
    color: var(--text-dark);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}


.live-stream-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    max-height: 30rem;
}

.live-stream-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
}

.play-button {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 150ms;
}

.play-button i {
    width: 32px;
    height: 32px;
    color: white;
    fill: white;
    margin-left: 4px;
}

.timestamp {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.calendar-header div {
    display: flex;
    gap: 8px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 4px;
    font-size: 12px;
}

.weekday-header {
    color: #6B7280;
    font-weight: 500;
    padding: 8px 0;
}

.day-cell {
    padding: 8px;
    color: var(--text-dark);
}

.day-cell-disabled {
    color: #9CA3AF;
}

.day-cell-active {
    font-weight: 700;
    color: white;
    background-color: var(--accent-blue);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    padding: 0;
}

.day-cell-event {
    color: white;
    background-color: var(--accent-purple);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    padding: 0;
}

.event-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #F3F4F6;
    border-radius: 8px;
}

.event-details p {
    margin: 0;
}

.event-title {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.event-matchup {
    font-size: 12px;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-blue);
    margin-top: 4px;
}

.view-event-btn {
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background-color 150ms;
    flex-shrink: 0;
}

.view-event-btn:hover {
    background-color: var(--accent-purple);
}

/* Responsive / Mobile rules for dashboard sidebar */
.menu-button {
    position: fixed;
    top: 16px;
    left: 16px;
    padding: 8px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    ;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 60;
    display: none;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: black;
    opacity: 0.5;
    z-index: 40;
    display: none;
}

@media (min-width: 640px) {
    .main-content {
        padding: 32px;
    }

    .welcome-title {
        font-size: 30px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0) !important;
        position: relative;
    }

    .menu-button,
    .sidebar-overlay {
        display: none;
    }

    .dashboard-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 24px;
        align-items: stretch;
        /* allow columns to match heights */
    }

    /* Ensure column containers expand so their inner cards can stretch to equal height */
    .left-column,
    .right-column {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* Make main cards inside columns flexible so they can grow/shrink equally */
    .left-column .card:last-child,
    .right-column .card:first-child {
        flex: 1 1 auto;
        min-height: 0;
        /* allow internal scrolling if content overflows */
        display: flex;
        flex-direction: column;
    }

    .left-column .card:last-child .live-stream-container,
    .right-column .card:first-child .calendar-container {
        flex: 1 1 auto;
        min-height: 0;
    }

    .left-column {
        grid-column: span 2 / span 2;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .right-column {
        grid-column: span 1 / span 1;
        /* switch to an internal grid so the two right-column cards sit side-by-side */
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: stretch;
    }

    /* Ensure cards inside the right-column are flex columns so content stacks nicely */
    .right-column .card {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
}

@media (max-width: 1023px) {
    .sidebar {
        position: fixed;
        height: 100%;
        top: 0;
        left: 0;
        transform: translateX(-100%);
    }

    .sidebar-open {
        transform: translateX(0) !important;
    }

    .menu-button {
        display: block;
    }

    .sidebar-overlay[aria-hidden="false"] {
        display: block;
    }
}

/* Close button inside sidebar */
.close-sidebar {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 35;
}

/* small adjustments to ensure sidebar content isn't covered by close button */
.sidebar>div {
    padding-top: 36px;
}




/* --- MARKETPLACE STYLES --- */
.marketplace-hero {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    padding: 4rem 5% 6rem;
    color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.marketplace-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/fancy-crave-qowyMze7jqg-unsplash.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.marketplace-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.marketplace-hero-content {
    flex: 1;
    max-width: 600px;
}

.marketplace-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.marketplace-hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.marketplace-search {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    ;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.marketplace-search input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    font-size: 1rem;
    color: var(--text-primary);
}

.marketplace-search button {
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.marketplace-search button:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

/* --- Marketplace search (moved from inline to stylesheet) --- */
.marketplace-search-container {
    margin: 16px 0;
}

.marketplace-search-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.marketplace-search-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: box-shadow 150ms, border-color 150ms;
}

.marketplace-search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.12);
}

.marketplace-search-btn {
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);

    color: var(--bg-primary);
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(91, 66, 242, 0.18);
    transition: transform 120ms ease, opacity 120ms ease;
}

.marketplace-search-btn:hover {
    transform: translateY(-2px);
    opacity: 0.98;
}

.marketplace-clear-btn {
    padding: 10px 12px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
}

/* Mobile: stack search controls vertically for narrow widths */
@media (max-width: 640px) {
    .marketplace-search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .marketplace-search-btn,
    .marketplace-clear-btn {
        width: 100%;
    }
}

/* Optional helper when no results are found */
.marketplace-no-results {
    text-align: center;
    color: var(--text-secondary);
    padding: 24px;
}

.marketplace-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bg-primary);
    margin-bottom: 0.5rem;
}

.stat-item .label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.marketplace-hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.floating-cards {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 0;
    right: 20%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 40%;
    right: 0;
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    bottom: 10%;
    left: 10%;
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.marketplace-section {
    background-color: var(--bg-primary);
    padding: 5rem 5%;
    color: var(--text-primary);
}

.marketplace-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.marketplace-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.2);
    border-color: var(--accent-primary);
}

.product-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info .name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.product-info .price {
    font-size: 1.4rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin: 0.5rem 0 1rem;
}

.add-to-cart {
    width: 100%;
    background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    color: var(--bg-primary);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.add-to-cart i {
    font-size: 1.1rem;
}

.add-to-cart:hover {
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.cart-modal-content {
    background: var(--bg-primary);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-modal-header h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-cart {
    color: #DDDDDD;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-cart:hover {
    color: #8A2BE2;
}

.cart-items {
    padding: 20px 30px;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-info h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 3px;
}

.cart-item-info p {
    color: #DDDDDD;
    font-size: 0.9rem;
}

.remove-item {
    background: #ff6b6b;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s;
}

.remove-item:hover {
    background: #ff5252;
}

.cart-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.proceed-to-payment {
    background: var(--accent-secondary);
    color: var(--text-primary);
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.proceed-to-payment:hover {
    background: #00e6b8;
    transform: translateY(-2px);
}

/* --- FIX CATEGORIES SECTION IN HOME.HTML --- */
#categories {
    background: var(--bg-primary) !important;
    /* Override any conflicting background */
}

/* Scouting Hero Section */
.scouting-hero {
    background: #210D3F;
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

.scouting-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.scouting-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

.scouting-hero-content button {
    background: #8A2BE2;
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

/* --- LOGIN AND SIGNUP PAGE STYLES --- */
.login-section,
.signup-section {
    display: flex;
    min-height: calc(100vh - 80px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.login-section::before,
.signup-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/fancy-crave-qowyMze7jqg-unsplash.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.login-section .container,
.signup-section .container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    z-index: 2;
    position: relative;
}

.image-side {
    flex: 1;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.9) 0%, rgba(0, 255, 204, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: white;
    text-align: center;
}

.welcome-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.welcome-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.login-form-container,
.signup-form-container {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.login-form-container h2,
.signup-form-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.login-submit-btn,
.signup-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-submit-btn:hover,
.signup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

.signup-link,
.login-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.signup-link a,
.login-link a {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.signup-link a:hover,
.login-link a:hover {
    color: var(--accent-secondary);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (min-width: 1051px) {

    /* Re-show the original buttons on desktop */
    .nav-buttons .login-btn,
    .nav-buttons .signup-btn {
        display: block;
    }

    /* Hide the mobile CTA group on desktop */
    .nav-links .mobile-cta-buttons {
        display: none !important;
    }
}

/* Cart Modal Styles */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.cart-modal-content {
    background: #21252d;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #3a3f45;
}

.cart-modal-header h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    color: #C092FF;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-cart:hover {
    color: #00FFCC;
}

.cart-items {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #3a3f45;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    color: #fff;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #00FFCC;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: #8A2BE2;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: #C092FF;
}

.cart-item-quantity span {
    color: #fff;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.remove-item:hover {
    color: #ff4757;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #3a3f45;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.cart-total span {
    color: #00FFCC;
}

.proceed-to-payment {
    background: #8A2BE2;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
}

.proceed-to-payment:hover {
    background: #C092FF;
}

/* Cart Button Styles */
.cart-btn {
    background: #8A2BE2;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-btn:hover {
    background: #C092FF;
}

.cart-btn i {
    font-size: 1.1rem;
}

/* Marketplace Hero Responsive */
@media (max-width: 1024px) {
    .marketplace-hero .container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .marketplace-hero-content {
        max-width: 100%;
    }

    .marketplace-stats {
        justify-content: center;
    }

    .marketplace-hero-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .marketplace-hero {
        padding: 3rem 5% 4rem;
    }

    .marketplace-search {
        flex-direction: column;
        border-radius: 12px;
        padding: 1rem;
    }

    .marketplace-search input {
        width: 100%;
        text-align: center;
    }

    .marketplace-search button {
        width: 100%;
    }

    .marketplace-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .marketplace-hero-image {
        max-width: 300px;
    }

    .floating-cards {
        height: 300px;
    }
}

/* Responsive for Cart Modal */
@media (max-width: 600px) {
    .cart-modal-content {
        width: 95%;
        margin: 20px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cart-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- ADMIN DASHBOARD STYLES --- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    background: rgba(138, 43, 226, 0.1);
    color: #C092FF;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.admin-table td {
    color: var(--text-primary);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-btn {
    background: #8A2BE2;
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.admin-btn:hover {
    background: #a951ff;
    transform: translateY(-1px);
}

.admin-btn.view-btn {
    background: var(--accent-secondary);
    color: var(--text-primary);
}

.admin-btn.view-btn:hover {
    background: #00e6b8;
}

.admin-btn.delete-btn {
    background: #ff6b6b;
}

.admin-btn.delete-btn:hover {
    background: #ff5252;
}

.admin-btn.fulfill-btn {
    background: var(--accent-secondary);
    color: var(--text-primary);
}

.admin-btn.fulfill-btn:hover {
    background: #00e6b8;
}

.admin-btn.edit-btn {
    background: #C092FF;
    color: #210D3F;
}

.admin-btn.edit-btn:hover {
    background: #b085e8;
}

.admin-btn.approve-btn {
    background: var(--accent-secondary);
    color: var(--text-primary);
}

.admin-btn.approve-btn:hover {
    background: #00e6b8;
}

.admin-btn.reject-btn {
    background: #ff6b6b;
}

.admin-btn.reject-btn:hover {
    background: #ff5252;
}

.admin-btn.manage-btn {
    background: #8A2BE2;
}

.admin-btn.manage-btn:hover {
    background: #a951ff;
}

.status-active {
    color: #00FFCC;
    font-weight: 600;
}

.status-inactive {
    color: #ff6b6b;
    font-weight: 600;
}

.status-pending {
    color: #FFC72C;
    font-weight: 600;
}

.status-fulfilled {
    color: #00FFCC;
    font-weight: 600;
}

.announcement-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.announcement-form .form-group {
    display: flex;
    flex-direction: column;
}

.announcement-form label {
    font-weight: 600;
    color: #C092FF;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.announcement-form input,
.announcement-form select,
.announcement-form textarea {
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.announcement-form input:focus,
.announcement-form select:focus,
.announcement-form textarea:focus {
    outline: none;
    border-color: #8A2BE2;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.announcement-form textarea {
    resize: vertical;
    min-height: 80px;
}

.app-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (min-width: 1051px) {

    .nav-buttons .login-btn,
    .nav-buttons .signup-btn {
        display: inline-block;
        background: var(--accent-primary);
        color: var(--bg-primary);
        padding: 12px 25px;
        border-radius: 8px;
        font-weight: 600;
        text-decoration: none;
    }

    /* Hide the mobile CTA group on desktop */
    .nav-links .mobile-cta-buttons {
        display: none !important;
    }

    /* Hide menu toggle on desktop */
    .menu-toggle {
        display: none;
    }
}

@media (max-width: 1200px) {
    .nav-links {
        gap: 20px;
        margin-left: 30px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 25px;
    }

    .welcome-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1050px) {
    nav {
        padding: 15px 25px;
        position: relative;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        padding: 80px 20px;
        flex-direction: column;
        align-items: flex-start;
        background: var(--bg-primary);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.show {
        display: flex;
        right: 0;
    }

    .menu-toggle {
        display: block;
        font-size: 24px;
        background: transparent;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
    }

    /* Hide desktop CTA buttons on mobile */
    .nav-buttons .login-btn-desktop-hidden,
    .nav-buttons .signup-btn {
        display: none;
    }

    /* Hero Section Responsiveness */
    .hero {
        flex-direction: column;
        padding: 120px 20px;
        height: auto;
        /* Adjust background positioning for smaller screen view */
        margin-top: 100px;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .player-card {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
    }

    .arrow {
        top: initial;
        bottom: -30px;
        right: 50%;
        transform: translateX(50%);
    }

    /* Mid Sections */
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    /* About Us */
    .about-us-section .container {
        flex-direction: column;
        gap: 20px;
    }

    .about-visuals {
        max-width: 100%;
        text-align: center;
    }

    .color-boxes {
        justify-content: center;
        margin-bottom: 40px;
    }

    .about-content {
        text-align: center;
    }

    .about-content h3,
    .mission-statement,
    .intro-text {
        text-align: center;
    }

    .key-points {
        text-align: left;
        /* Keep points readable */
    }

    /* Footer Responsiveness (Medium Screens) */
    .footer-content {
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 30px;
        text-align: center;
    }

    .footer-left {
        max-width: 90%;
        text-align: center;
        order: 1;
        /* Place left content first */
    }

    .subscribe-form {
        max-width: 450px;
        margin: 0 auto;
    }

    .footer-center-graphic {
        order: 2;
        width: 100%;
        height: auto;
        padding-bottom: 20px;
    }

    .footer-right {
        order: 3;
        /* Place contact info last */
        text-align: center;
        min-width: auto;
    }

    .contact-info {
        gap: 10px;
    }

    .contact-label {
        margin-bottom: 0;
        /* Less space needed when centered */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

    /* Testimonials */
    .testimonial-content {
        flex-direction: column;
        gap: 10px;
    }

    .nav-arrows {
        /* Move arrows to be discreetly placed above/below the card on mobile */
        width: auto;
        font-size: 1.5rem;
    }

    .testimonial-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .welcome-card {
        padding: 30px;
        gap: 20px;
    }

    .welcome-header {
        flex-direction: column;
        gap: 20px;
    }

    .quick-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-item {
        padding: 15px;
    }

    .dashboard-card {
        padding: 20px;
    }

    .team-overview {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .team-stats {
        justify-content: center;
    }

    .performance-stats {
        flex-direction: column;
        gap: 10px;
    }

    .analytics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .roi-metrics {
        flex-direction: column;
        gap: 15px;
    }

    .notification-item,
    .message-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .wallet-balance {
        text-align: center;
    }

    .payment-methods {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 600px) {

    /* Hero */
    .hero-text h1 {
        font-size: 2.2rem;
    }

    /* How It Works */
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-options {
        flex-direction: column;
        gap: 10px;
    }

    .join-now-lg {
        padding: 15px 40px;
        font-size: 1rem;
    }

    /* Footer Responsiveness (Small Screens) */
    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-form input[type="email"],
    .subscribe-btn {
        width: 100%;
        text-align: center;
        border-radius: 0;
    }

    .subscribe-btn {
        padding: 15px;
    }

    .footer-left,
    .footer-right {
        max-width: 100%;
    }

    .footer-center-graphic {
        /* Hide the large graphic on very small screens to save space */
        display: none;
    }
}

@media (max-width: 480px) {
    .dashboard-welcome .container {
        padding: 40px 10px;
    }

    .welcome-card {
        padding: 20px;
    }

    .user-info h1 {
        font-size: 0.8rem;
    }

    .user-avatar img {
        width: 100px;
        height: 100px;
    }

    .mid-sections {
        padding: 60px 10px;
    }

    .section-header {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .dashboard-card h3 {
        font-size: 1.1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .perf-value {
        font-size: 1.5rem;
    }

    .analytics-value {
        font-size: 1.5rem;
    }

    .balance-amount {
        font-size: 2rem;
    }
}

.categories {
    background-color: var(--bg-primary);
}

#categories {
    background: var(--bg-primary);
    position: relative;
    padding: 56px 0 64px 0;
    animation: fadeIn 2.5s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.categories-row {
    position: relative;
    z-index: 1;
}

#categories h2 {
    text-align: center;
    color: var(--text-primary);
    font-size: clamp(1.8rem, 5vw, 2.3rem);
    font-weight: 900;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    text-shadow: 0 2px 8px #fff6, 0 1px 0 #481875aa;
    margin-left: auto;
    margin-right: auto;
}

#categories h2::after {
    content: '';
    display: block;
    margin: 12px auto 0 auto;
    width: 60px;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, #c2a1ec 60%, #9900ff 100%);
    opacity: 0.7;
}

.top-categories h2 {
    margin-bottom: 30px;
}

.top-categories .product {
    background: var(--bg-primary);
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--shadow-color);
    padding: 18px 20px 24px 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeIn 2.5s;
}

.top-categories .product:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.top-categories {
    background: var(--bg-primary);
    padding: 56px 0 64px 0;
    animation: fadeIn 2.5s;
    overflow: hidden;
}

/* Removed redundant .add-to-cart for categories, using marketplace version */

.categories-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    align-items: center;
}

.more-categories-container {
    text-align: center;
    margin-top: 40px;
}

.more-categories-btn {
    background: linear-gradient(90deg, #8A2BE2 60%, #C092FF 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: clamp(12px, 2vw, 15px) clamp(30px, 5vw, 40px);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.2);
    transition: background 0.3s, color 0.2s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

.more-categories-btn:hover,
.more-categories-btn:focus {
    background: linear-gradient(90deg, #C092FF 60%, #8A2BE2 100%);
    color: #fff;
    transform: scale(1.04);
}

.categories .product-card {
    background-color: var(--bg-primary);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(138, 43, 226, 0.6);
    padding: clamp(12px, 3vw, 18px) clamp(12px, 3vw, 18px) clamp(18px, 4vw, 24px) clamp(12px, 3vw, 18px);
    min-width: 210px;
    max-width: 220px;
    flex: 1 1 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
    border: 2px solid rgba(138, 43, 226, 0.7);
    position: relative;
    will-change: transform;
}

.categories .product-card:hover,
.categories .product-card:focus {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 1);
    border-color: #8A2BE2;
    z-index: 2;
}

.categories .product-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 14px;
}

/*dashbord*/
/*
 * style.css
 * A custom-written stylesheet for the Keez Dashboard.
 * This file follows a component-based structure.
 */

/* ---------------------------------
 * 1. Root Variables
 * --------------------------------- */
:root {
    /* Colors */
    --color-sidebar-bg: #1e2030;
    --color-main-bg: #f3f4f6;
    --color-card-bg: #ffffff;
    --color-border: #e5e7eb;
    --color-shadow: rgba(0, 0, 0, 0.05);

    /* Text */
    --color-text-primary: #1f2937;
    --color-text-secondary: #6b7280;
    --color-text-faded: #9ca3af;
    --color-text-light: #e5e7eb;
    --color-text-logout: #f87171;

    /* Accents & Gradients */
    --color-accent-start: #4f46e5;
    --color-accent-end: #6366f1;
    --color-purple-start: #8b5cf6;
    --color-purple-end: #7c3aed;
    --color-tag-bg: #eef2ff;
    --color-tag-text: #4f46e5;

    /* Gradients */
    --gradient-primary: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
    --gradient-secondary: linear-gradient(90deg, var(--color-purple-start), var(--color-purple-end));

    /* Sizing */
    --width-sidebar: 256px;
    --border-radius: 0.75rem;
    /* 12px */
    --border-radius-lg: 1rem;
    /* 16px */
    --card-padding: 1.5rem;
    /* 24px */

    /* Font */
    --font-family-default: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------
 * 2. Base & Layout Styles
 * --------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-family-default);
    background-color: var(--color-main-bg);
    color: var(--color-text-primary);
    overflow: hidden;
    /* Prevents double scrollbars */
}

ul {
    list-style: none;
}

a,
button {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

i[data-lucide] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Main Layout Wrapper */
.dashboard-layout {
    display: flex;
    height: 100vh;
}

/* ---------------------------------
 * 3. Sidebar Styles
 * --------------------------------- */
.sidebar {
    width: var(--width-sidebar);
    background-color: var(--color-sidebar-bg);
    color: var(--color-text-light);
    display: flex;
	overflow:scroll;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid #374151;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #374151;
}

.logo {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--color-accent-start);
}

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.nav-list+.nav-list {
    margin-top: 1.5rem;
}

.nav-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-faded);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover {
    background-color: #374151;
    color: #ffffff;
}

/* Active sidebar link with gradient */
.nav-link.active {
    background: var(--gradient-primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.nav-link.has-arrow {
    justify-content: space-between;
}

.nav-link .arrow-icon {
    width: 16px;
    height: 16px;
    color: var(--color-text-faded);
}

.nav-link.logout {
    color: var(--color-text-logout);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #374151;
}

.user-profile-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: background-color 0.2s;
}

.user-profile-card:hover {
    background-color: #374151;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-accent-start);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.user-info {
    flex-grow: 1;
    line-height: 1.4;
}

.user-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: #ffffff;
}

.user-email {
    font-size: 0.75rem;
    color: var(--color-text-faded);
}

.user-profile-card .arrow-icon {
    width: 16px;
    height: 16px;
    color: var(--color-text-faded);
}

/* ---------------------------------
 * 4. Main Content Styles
 * --------------------------------- */
.main-content-wrapper {
    flex-grow: 1;
    height: 100vh;
    overflow: hidden;
    /* This element controls scroll */
    position: relative;
}

.main-content {
    height: 100%;
    overflow-y: auto;
    padding: 2rem 3rem;
}

/* Mobile Toggle Button */
.sidebar-toggle {
    display: none;
    /* Hidden on desktop */
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1050;
    padding: 0.5rem;
    background-color: var(--color-accent-start);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Header / Breadcrumbs */
.main-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.breadcrumb-link {
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: var(--color-text-primary);
}

.breadcrumb-separator {
    width: 16px;
    height: 16px;
    color: var(--color-text-faded);
}

.breadcrumb-current {
    background-color: var(--color-tag-bg);
    color: var(--color-tag-text);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
}

/* Welcome Banner */
.welcome-banner {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 6px var(--color-shadow);
    padding: var(--card-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 4px solid var(--color-accent-start);
}

.welcome-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid var(--color-card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.welcome-text p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* ---------------------------------
 * 5. Button Styles (Gradient)
 * --------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    /* 10px 16px */
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: var(--border-radius);
    transition: all 0.2s ease-in-out;
}

.btn i[data-lucide] {
    width: 16px;
    height: 16px;
}

/* Gradient Button 1: "Edit Profile" */
.btn-gradient {
    background: var(--gradient-secondary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 92, 246, 0.4);
}

/* Gradient Button 2: "View Event" */
.btn-secondary-gradient {
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    /* 6px 12px */
    font-size: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}

.btn-secondary-gradient:hover {
    opacity: 0.9;
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}


/* ---------------------------------
 * 6. Content Grid & Card Styles
 * --------------------------------- */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Desktop layout */
@media (min-width: 1024px) {
    .content-grid {
        /* 2/3 and 1/3 split */
        grid-template-columns: 2fr 1fr;
    }
}

.grid-column-main,
.grid-column-aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Base Card Style */
.card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 6px var(--color-shadow);
    padding: var(--card-padding);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title .title-icon {
    color: var(--color-accent-start);
}

/* Info Cards (Personal, Physical) */
.info-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Tablet+ layout for info cards */
@media (min-width: 768px) {
    .info-card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.data-card .card-title {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-main-bg);
}

.data-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.data-label {
    color: var(--color-text-secondary);
}

.data-value {
    color: var(--color-text-primary);
    font-weight: 500;
}

/* Live Stream Card */
.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.video-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.video-overlay i[data-lucide] {
    width: 20px;
}

/* Calendar Card */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-nav-selects {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav-selects select {
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-weight: 500;
    font-family: var(--font-family-default);
    background-color: var(--color-main-bg);
    cursor: pointer;
}

.calendar-nav-arrows button {
    padding: 0.25rem;
    border: none;
    background: transparent;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.calendar-nav-arrows button:hover {
    background-color: var(--color-main-bg);
}

.calendar-nav-arrows i[data-lucide] {
    width: 18px;
    color: var(--color-text-secondary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 0.25rem;
}

.calendar-day-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    padding-bottom: 0.5rem;
}

.calendar-day {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

.calendar-day:hover {
    background-color: var(--color-main-bg);
}

.calendar-day.faded {
    color: var(--color-text-faded);
    cursor: default;
}

.calendar-day.faded:hover {
    background-color: transparent;
}

.calendar-day.event {
    color: var(--color-accent-start);
    font-weight: 600;
}

.calendar-day.selected {
    background-color: var(--color-accent-start);
    color: #ffffff;
    font-weight: 700;
}

.calendar-day.selected:hover {
    background-color: var(--color-accent-start);
}

/* Events Card */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-main-bg);
}

.event-item:last-child {
    border-bottom: none;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.event-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.event-name {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ---------------------------------
 * 7. Responsive Styles (Mobile-first-ish)
 * --------------------------------- */

/* Tablet & Mobile */
@media (max-width: 1023px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 1000;
    }

    .sidebar.is-open {
        transform: translateX(0);
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    }

    .sidebar-toggle {
        display: block;
    }

    /* This overlay darkens the main content when sidebar is open */
    .main-content-wrapper::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 999;
    }

    .main-content-wrapper.is-sidebar-open::before {
        opacity: 1;
        visibility: visible;
    }

    .main-content {
        /* Add padding for the fixed toggle button */
        padding: 5rem 1.5rem 2rem 1.5rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .main-content {
        padding: 5rem 1rem 1.5rem 1rem;
    }

    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .btn-gradient {
        width: 100%;
        justify-content: center;
    }

    /* Stack info cards on mobile */
    .info-card-grid {
        grid-template-columns: 1fr;
    }
}