/* ================================
   Padel Play Duhok - Main Styles
   3D Parallax Design with Green Theme
   ================================ */

/* === CSS Variables === */
:root {
    --primary-green: #1c8e88;
    --light-green: #26bfb7;
    --dark-green: #000000;
    --accent-green: #7fb9c2;
    --black: #0a0a0a;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #888;
    --gray-dark: #333;

    --gradient-primary: linear-gradient(135deg, #1c8e88 0%, #146964 100%);
    --gradient-accent: linear-gradient(135deg, #1c8e88 0%, #146964 100%);
    --gradient-dark: linear-gradient(135deg, #146964 0%, #1c8e88 100%);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-3d: 0 15px 35px rgba(26, 74, 77, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
    --border-color: #e2e8f0;

    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* === Global Dark Mode (all pages) === */
html[data-theme="dark"] {
    --white: #1e293b;
    --gray-light: #1a1f26;
    --gray: rgba(255, 255, 255, 0.85);
    --gray-dark: #ffffff;
    --black: #ffffff;
    --dark-green: #ffffff;
    --border-color: #334155;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-3d: 0 15px 35px rgba(0, 0, 0, 0.45);
    color: #ffffff;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .navbar a,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] p,
html[data-theme="dark"] span,
html[data-theme="dark"] label,
html[data-theme="dark"] td,
html[data-theme="dark"] th,
html[data-theme="dark"] li {
    color: #ffffff;
}

/* Navbar in dark mode (slightly lighter so it's visible) */
html[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Dark mode: full-page dark background (no light edges) */
html[data-theme="dark"] body {
    background: #1a2332;
}

html[data-theme="dark"] .dashboard-container,
html[data-theme="dark"] .dashboard-content {
    background: #1a2332;
}

/* === Splash Screen (index / open) === */
.splash-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash-inner {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}
.splash-image,
.splash-lottie {
    width: 100%;
    height: 100%;
    flex: 1;
    min-width: 0;
    min-height: 0;
}
.splash-lottie {
    display: block;
}
.splash-lottie > div {
    width: 100% !important;
    height: 100% !important;
}
.splash-lottie svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
@media (min-width: 769px) {
    .splash-inner {
        max-width: 100%;
    }
}

/* Global theme toggle (sidebar + standalone) */
.theme-toggle-global {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}
.theme-toggle-global .theme-btn-global {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--white);
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.theme-toggle-global .theme-btn-global:hover,
.theme-toggle-global .theme-btn-global.active {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}
/* Sidebar: theme toggle in footer */
.dashboard-sidebar .theme-toggle-global,
.sidebar-footer-links .theme-toggle-global {
    padding: 0.5rem 0;
    justify-content: center;
    gap: 0.5rem;
}
.dashboard-sidebar .theme-toggle-global .theme-btn-global {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    border-radius: 10px;
}
.dashboard-sidebar .theme-toggle-global .theme-btn-global:hover,
.dashboard-sidebar .theme-toggle-global .theme-btn-global.active {
    background: var(--sidebar-active-bg);
    color: #fff;
    border-color: var(--sidebar-active-bg);
}

/* Light theme sidebar theme toggle */
html[data-theme="light"] .dashboard-sidebar .theme-toggle-global .theme-btn-global {
    border-color: #e5e7eb;
    background: #f3f4f6;
    color: #6b7280;
}
html[data-theme="light"] .dashboard-sidebar .theme-toggle-global .theme-btn-global:hover,
html[data-theme="light"] .dashboard-sidebar .theme-toggle-global .theme-btn-global.active {
    background: var(--sidebar-active-bg);
    color: #fff;
    border-color: var(--sidebar-active-bg);
}
/* Standalone (nav / auth): small label */
.theme-toggle-standalone {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    display: flex;
    gap: 0.35rem;
    padding: 0.4rem 0.5rem;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-md);
}
.theme-toggle-standalone .theme-btn-global {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

/* Theme toggle inside navbar (index etc.) */
.navbar .theme-toggle-global .theme-btn-global {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}
.navbar .theme-toggle-global .theme-btn-global:hover,
.navbar .theme-toggle-global .theme-btn-global.active {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background: var(--white);
    overflow-x: hidden;
}

/* === Leaf Decorations (Hero Section Only) === */
.hero .leaf-decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 Q20 40 50 90 Q80 40 50 10" fill="%234f8a5e" opacity="0.3"/></svg>') no-repeat center;
    background-size: contain;
    z-index: 1;
    pointer-events: none;
    animation: float 10s infinite ease-in-out;
}

.hero .leaf-decoration.leaf-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    transform: rotate(45deg);
}

.hero .leaf-decoration.leaf-2 {
    top: 30%;
    right: 8%;
    animation-delay: 2s;
    transform: rotate(-30deg);
}

.hero .leaf-decoration.leaf-3 {
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
    transform: rotate(60deg);
}

.hero .leaf-decoration.leaf-4 {
    bottom: 40%;
    right: 15%;
    animation-delay: 6s;
    transform: rotate(-45deg);
}

.hero .leaf-decoration.leaf-5 {
    top: 60%;
    left: 20%;
    animation-delay: 8s;
    transform: rotate(90deg);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(var(--rotation, 0deg));
    }

    50% {
        transform: translateY(-30px) rotate(calc(var(--rotation, 0deg) + 10deg));
    }
}

.leaf-float {
    position: absolute;
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 Q20 40 50 90 Q80 40 50 10" fill="%237fc299" opacity="0.4"/></svg>') no-repeat center;
    background-size: contain;
    animation: leafFloat 15s infinite ease-in-out;
}

.leaf-float-1 {
    top: 20%;
    left: 30%;
    animation-delay: 1s;
}

.leaf-float-2 {
    top: 50%;
    right: 25%;
    animation-delay: 3s;
}

@keyframes leafFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }

    25% {
        transform: translate(50px, -50px) rotate(90deg);
        opacity: 0.5;
    }

    50% {
        transform: translate(100px, 0px) rotate(180deg);
        opacity: 0.3;
    }

    75% {
        transform: translate(50px, 50px) rotate(270deg);
        opacity: 0.5;
    }
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition-normal);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
    filter: brightness(0) invert(1);
}

.logo-img-original {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
}

.logo i {
    color: var(--accent-green);
    font-size: 1.8rem;
    animation: rotate 20s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--accent-green);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--accent-green);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
}

.user-section,
.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: var(--white);
    font-weight: 500;
}

.btn-login,
.btn-register,
.btn-dashboard,
.btn-logout {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-login {
    color: var(--white);
    background: transparent;
    border: 2px solid var(--light-green);
}

.btn-login:hover {
    background: var(--light-green);
    transform: translateY(-2px);
}

.btn-register,
.btn-dashboard {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-register:hover,
.btn-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-3d);
}

.btn-logout {
    background: transparent;
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.btn-logout:hover {
    background: var(--accent-green);
    color: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition-fast);
}

/* === Back to Top Button === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 77, 46, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    overflow: hidden;
    perspective: 1000px;
}

.hero-video,
.hero-lottie {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-lottie {
    display: block;
}

.hero-lottie > div {
    width: 100% !important;
    height: 100% !important;
}

.hero-lottie svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.layer-1 {
    z-index: 1;
}

.layer-2 {
    z-index: 2;
    position: relative;
}

.layer-3 {
    z-index: 0;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    max-width: 1200px;
    padding: 2rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--light-green);
    border: 2px solid var(--light-green);
}

.btn-3d {
    transform-style: preserve-3d;
    position: relative;
}

.btn-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    transform: translateZ(-10px);
    filter: brightness(0.7);
}

.btn-primary:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: var(--shadow-3d);
}

.btn-secondary:hover {
    background: var(--light-green);
    transform: translateY(-5px) translateZ(10px);
    box-shadow: var(--shadow-3d);
    color: var(--white)
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(50px);
    padding: 2rem;
    border-radius: 15px;
    min-width: 200px;
    transition: var(--transition-normal);
}

.stat-3d {
    transform-style: preserve-3d;
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-3d);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    opacity: 0.9;
    font-size: 1rem;
}

.hero-3d-object {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 138, 94, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--accent-green);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

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

/* === Section Styles === */
section {
    position: relative;
}

.section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--accent-green);
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: clamp(2.1rem, 2.4vw, 3.8rem);
    color: var(--dark-green);
    max-width: 720px;
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-slow);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
    padding: 20px;
}

/* === Courts Section === */
.courts-section {
    background: var(--gray-light);
}

.courts-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.court-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-normal);
    transform-style: preserve-3d;
    box-shadow: var(--shadow-md);
}

.card-3d {
    transform-style: preserve-3d;
    transition: var(--transition-normal);
}

.court-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: var(--shadow-3d);
}

.court-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--gradient-dark);
}

.court-info {
    padding: 2rem;
}

.court-name {
    font-size: 1.5rem;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.court-location {
    color: var(--gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.court-description {
    color: var(--gray-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.court-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: var(--gradient-accent);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.court-price {
    font-size: 2rem;
    color: var(--primary-green);
    font-weight: bold;
    margin-bottom: 1rem;
}

.court-price span {
    font-size: 1rem;
    color: var(--gray);
    font-weight: normal;
}

.court-actions {
    display: flex;
    gap: 1rem;
}

.btn-book {
    flex: 1;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-3d);
}

.btn-details {
    background: transparent;
    border: 2px solid var(--light-green);
    color: var(--light-green);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-details:hover {
    background: var(--light-green);
    color: var(--white);
}

/* === Shop Categories Section === */
.shop-categories-section {
    background: var(--white);
    padding: 20px;
}

.shop-category-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.shop-category-card {
    position: relative;
    display: block;
    padding: 2rem;
    border-radius: 12px;
    background: var(--white);
    color: var(--dark-green);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

/* Force link states so browser defaults (blue/underline) never show */
.shop-category-card:link,
.shop-category-card:visited,
.shop-category-card:hover,
.shop-category-card:active,
.shop-category-card:focus {
    color: var(--dark-green);
    text-decoration: none;
}

.shop-category-card:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

.shop-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: var(--transition-normal);
}

.shop-category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-3d);
}

.shop-category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-md);
}

.shop-category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.shop-category-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.category-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--accent-green);
}

.shop-category-card:hover .category-cta {
    color: var(--primary-green);
}

/* === Features Section === */
.features-section {
    background: var(--white);
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: left;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: var(--shadow-3d);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* === Facilities Horizontal Scroll === */
.facilities-scroll {
    background: #053b2b;
    color: #f5f1e8;
    position: relative;
    height: calc(100vh + var(--scroll-length, 0px));
    padding: 0;
}

.facilities-scroll__sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
    gap: 2.5rem;
    align-items: center;
    padding: 6rem 4vw;
    overflow: hidden;
}

.facilities-title {
    font-size: clamp(2.6rem, 4vw, 4.6rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0.75rem 0 1rem;
}

.facilities-eyebrow {
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #f2a564;
}

.facilities-subtitle {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.7);
    max-width: 340px;
}

.facilities-scroll__track {
    overflow: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    will-change: transform;
    position: relative;
    width: 100%;
}

.facilities-scroll__track::-webkit-scrollbar {
    display: none;
}

.facilities-scroll__cards {
    display: flex;
    gap: 2.5rem;
    padding: 1rem 0.5rem 2rem;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.facility-card {
    flex: 0 0 min(420px, 78vw);
    background: #0b4a38;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    scroll-snap-align: start;
    position: relative;
    min-height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.facility-card__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(0.85) contrast(0.95);
}

.facility-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 59, 43, 0.15), rgba(5, 59, 43, 0.7));
}

.facility-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 2rem;
    color: #f5f1e8;
}

.facility-card__tag {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #f2a564;
    margin-bottom: 0.5rem;
}

.facility-card h3 {
    font-size: 2.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

/* === Loading === */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
    font-size: 1.2rem;
}

/* === Matches Section === */
.matches-section {
    background: var(--gray-light);
}

.matches-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.matches-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.match-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-3d);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.match-title-section h3 {
    font-size: 1.3rem;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.skill-badge {
    background: var(--gradient-accent);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.match-info {
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

.info-row i {
    color: var(--light-green);
}

.players-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.players-count i {
    color: var(--primary-green);
}

.btn-join-match {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-join-match:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-join-match:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === About Section === */
.about-section {
    background: var(--white);
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-intro {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-green);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-description {
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.about-text p {
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    transition: var(--transition-normal);
    flex-wrap: wrap;
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-feature i {
    color: var(--accent-green);
    font-size: 2rem;
    min-width: 40px;
}

.feature-content h4 {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.feature-content p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.about-image {
    position: relative;
}

.image-3d-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-3d);
    transition: var(--transition-normal);
}

.image-3d-container:hover {
    transform: rotateY(5deg);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-3d-layer {
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
}

/* === Contact Section === */
.contact-section {
    background: var(--gray-light);
}

.contact-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-3d);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--light-green);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--gray);
    line-height: 1.6;
}

.contact-form-container {
    display: flex;
    align-items: center;
}

.contact-form {
    width: 100%;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-green);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--light-green);
    box-shadow: 0 0 0 3px rgba(79, 138, 94, 0.1);
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

/* === Footer === */
.footer {
    background: var(--dark-green);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--accent-green);
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--accent-green);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--accent-green);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: var(--accent-green);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-normal);
}

.newsletter-form button:hover {
    background: var(--light-green);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* === Auth Pages === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

/* Lottie background (login, register, forgot-password) */
.auth-lottie-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-lottie-bg > div {
    width: 100% !important;
    height: 100% !important;
}

.auth-lottie-bg svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.auth-container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    z-index: 10;
    position: relative;
}

/* Glassmorphism card */
.auth-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.auth-header h2 {
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.auth-header p {
    color: var(--gray-dark);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

/* Live validation: hints and feedback */
.field-hint {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.35rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.field-feedback {
    font-size: 0.85rem;
    min-height: 1.4em;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.field-feedback:empty {
    display: none;
}

.field-feedback.valid {
    color: #0d7a40;
}

.field-feedback.valid i {
    color: #0d7a40;
}

.field-feedback.invalid {
    color: #c0392b;
}

.field-feedback.invalid i {
    color: #c0392b;
}

.field-feedback.neutral {
    color: var(--gray);
}

.form-control.valid {
    border-color: #0d7a40;
    background-color: rgba(13, 122, 64, 0.04);
}

.form-control.valid:focus {
    border-color: #0d7a40;
    box-shadow: 0 0 0 3px rgba(13, 122, 64, 0.15);
}

.form-control.invalid {
    border-color: #c0392b;
    background-color: rgba(192, 57, 43, 0.04);
}

.form-control.invalid:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--gray-dark);
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.forgot-link {
    color: var(--light-green);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
}

.form-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--gray-light);
}

.form-divider::before {
    left: 0;
}

.form-divider::after {
    right: 0;
}

.form-divider span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0 1rem;
    color: var(--gray);
}

.social-auth {
    display: flex;
    gap: 1rem;
}

.btn-social {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    background: var(--white);
    color: var(--gray-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-facebook {
    border-color: #1877f2;
    color: #1877f2;
}

.btn-facebook:hover {
    background: #1877f2;
    color: var(--white);
}

.btn-google {
    border-color: #ea4335;
    color: #ea4335;
}

.btn-google:hover {
    background: #ea4335;
    color: var(--white);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--gray);
}

.auth-footer a {
    color: var(--light-green);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* === Dashboard === */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    margin-top: 70px;
}

/* ========================================
   PROFESSIONAL SIDEBAR DESIGN
   ======================================== */

/* Sidebar Variables */
:root {
    --sidebar-bg: #1a2332;
    --sidebar-bg-light: #f8fafc;
    --sidebar-text: rgba(255, 255, 255, 0.75);
    --sidebar-text-light: #64748b;
    --sidebar-text-active: #ffffff;
    --sidebar-hover-bg: rgba(255, 255, 255, 0.06);
    --sidebar-active-bg: #1c8e88;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --sidebar-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu Toggle & Header Bar - Hidden on desktop */
.mobile-menu-toggle,
.mobile-header-bar {
    display: none;
}

/* Dashboard Sidebar Container */
.dashboard-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    transition: var(--sidebar-transition);
}

/* Hide scrollbar but keep functionality */
.dashboard-sidebar::-webkit-scrollbar {
    width: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--sidebar-border);
    min-height: 72px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #1c8e88, #157a75);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    transition: var(--sidebar-transition);
}

.sidebar-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.sidebar-brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    white-space: nowrap;
    opacity: 1;
    transition: var(--sidebar-transition);
}

.sidebar-toggle {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--sidebar-transition);
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Sidebar Menu */
.dashboard-menu {
    list-style: none;
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dashboard-menu li {
    margin: 0;
}

/* Menu Links */
.dashboard-menu > li > a,
.dashboard-menu .menu-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.925rem;
    font-weight: 500;
    transition: var(--sidebar-transition);
    position: relative;
}

.dashboard-menu > li > a i,
.dashboard-menu .menu-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: var(--sidebar-transition);
}

.dashboard-menu > li > a span,
.dashboard-menu .menu-link span {
    white-space: nowrap;
    opacity: 1;
    transition: var(--sidebar-transition);
}

/* Hover State */
.dashboard-menu > li > a:hover,
.dashboard-menu .menu-link:hover {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-text-active);
}

/* Active State */
.dashboard-menu li.active > a,
.dashboard-menu li.active > .menu-link {
    background: var(--sidebar-active-bg);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.dashboard-menu li.active > a i,
.dashboard-menu li.active > .menu-link i {
    color: #fff;
}

/* Menu Item with Submenu */
.menu-item-has-children > .menu-link {
    cursor: pointer;
}

.menu-item-has-children > .menu-link::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    margin-left: auto;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.menu-item-has-children.open > .menu-link::after {
    transform: rotate(180deg);
}

/* Submenu */
.submenu {
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.menu-item-has-children.open > .submenu {
    max-height: 300px;
    padding: 0.5rem 0 0.5rem 0;
}

.submenu li a {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem 0.65rem 3.25rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px;
    margin: 0.125rem 0;
    transition: var(--sidebar-transition);
}

.submenu li a:hover {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-text-active);
}

.submenu li.active a {
    background: rgba(59, 130, 246, 0.15);
    color: #1c8e88;
}

/* Menu Section Divider */
.menu-section-title {
    padding: 1.5rem 1rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.sidebar-footer-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--sidebar-transition);
}

.sidebar-footer-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-footer-link:hover {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-text-active);
}

/* User Profile Section */
.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    cursor: pointer;
    transition: var(--sidebar-transition);
}

.sidebar-profile:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1c8e88, #0d5c58);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
    opacity: 1;
    transition: var(--sidebar-transition);
}

.sidebar-name {
    color: #fff;
    font-size: 0.925rem;
    font-weight: 600;
    margin: 0 0 0.15rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-email {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-profile-more {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: var(--sidebar-transition);
}

.sidebar-profile:hover .sidebar-profile-more {
    color: rgba(255, 255, 255, 0.8);
}

/* Sign Out Button (Alternative Style) */
.sidebar-signout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: transparent;
    color: var(--sidebar-text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--sidebar-transition);
}

.sidebar-signout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.sidebar-signout-btn i {
    font-size: 1rem;
}

/* ========================================
   COLLAPSED SIDEBAR STATE
   ======================================== */

.dashboard-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.dashboard-sidebar.collapsed .sidebar-brand-text,
.dashboard-sidebar.collapsed .sidebar-user-info,
.dashboard-sidebar.collapsed .sidebar-profile-more,
.dashboard-sidebar.collapsed .menu-section-title,
.dashboard-sidebar.collapsed .menu-item-has-children > .menu-link::after {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.dashboard-sidebar.collapsed .dashboard-menu > li > a,
.dashboard-sidebar.collapsed .dashboard-menu .menu-link {
    justify-content: center;
    padding: 0.875rem;
}

.dashboard-sidebar.collapsed .dashboard-menu > li > a span,
.dashboard-sidebar.collapsed .dashboard-menu .menu-link span {
    display: none;
}

.dashboard-sidebar.collapsed .sidebar-footer-link {
    justify-content: center;
    padding: 0.75rem;
}

.dashboard-sidebar.collapsed .sidebar-footer-link span {
    display: none;
}

.dashboard-sidebar.collapsed .sidebar-profile {
    justify-content: center;
    padding: 0.875rem;
}

.dashboard-sidebar.collapsed .sidebar-signout-btn span {
    display: none;
}

.dashboard-sidebar.collapsed .submenu {
    display: none;
}

.dashboard-sidebar.collapsed .sidebar-toggle {
    transform: rotate(180deg);
}

/* Dashboard content adjustment for collapsed sidebar */
.dashboard-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    background: #f8fafc;
    min-height: 100vh;
    transition: var(--sidebar-transition);
}

body.sidebar-collapsed .dashboard-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* Dashboard container - remove top navbar dependency */
.dashboard-container {
    margin-top: 0;
}

/* Hide navbar on dashboard pages with sidebar */
body.has-sidebar .navbar {
    display: none;
}

/* ========================================
   SIDEBAR LIGHT THEME
   ======================================== */

html[data-theme="light"] .dashboard-sidebar,
html[data-theme="light"] .admin-sidebar {
    background: #ffffff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .sidebar-header,
html[data-theme="light"] .admin-logo {
    border-bottom-color: #e5e7eb;
}

html[data-theme="light"] .sidebar-brand-text,
html[data-theme="light"] .admin-logo .logo-text {
    color: #1f2937;
}

html[data-theme="light"] .sidebar-toggle,
html[data-theme="light"] .admin-sidebar-toggle {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
}

html[data-theme="light"] .sidebar-toggle:hover,
html[data-theme="light"] .admin-sidebar-toggle:hover {
    background: #e5e7eb;
    color: #374151;
}

html[data-theme="light"] .dashboard-menu > li > a,
html[data-theme="light"] .dashboard-menu .menu-link,
html[data-theme="light"] .admin-menu a {
    color: #6b7280;
}

html[data-theme="light"] .dashboard-menu > li > a:hover,
html[data-theme="light"] .dashboard-menu .menu-link:hover,
html[data-theme="light"] .admin-menu a:hover {
    background: #f3f4f6;
    color: #1f2937;
}

html[data-theme="light"] .dashboard-menu li.active > a,
html[data-theme="light"] .dashboard-menu li.active > .menu-link,
html[data-theme="light"] .admin-menu li.active a {
    background: var(--sidebar-active-bg);
    color: #fff;
}

html[data-theme="light"] .submenu li a {
    color: #6b7280;
}

html[data-theme="light"] .submenu li a:hover {
    background: #f3f4f6;
    color: #1f2937;
}

html[data-theme="light"] .submenu li.active a {
    background: rgba(59, 130, 246, 0.1);
    color: #1c8e88;
}

html[data-theme="light"] .menu-section-title {
    color: #9ca3af;
}

html[data-theme="light"] .sidebar-footer,
html[data-theme="light"] .admin-user {
    border-top-color: #e5e7eb;
}

html[data-theme="light"] .sidebar-footer-link {
    color: #6b7280;
}

html[data-theme="light"] .sidebar-footer-link:hover {
    background: #f3f4f6;
    color: #1f2937;
}

html[data-theme="light"] .sidebar-profile,
html[data-theme="light"] .admin-user-profile {
    background: #f3f4f6;
}

html[data-theme="light"] .sidebar-profile:hover,
html[data-theme="light"] .admin-user-profile:hover {
    background: #e5e7eb;
}

html[data-theme="light"] .sidebar-name,
html[data-theme="light"] .admin-user-info strong {
    color: #1f2937;
}

html[data-theme="light"] .sidebar-email,
html[data-theme="light"] .admin-user-info a {
    color: #9ca3af;
}

html[data-theme="light"] .sidebar-profile-more,
html[data-theme="light"] .admin-user-more {
    color: #9ca3af;
}

html[data-theme="light"] .sidebar-signout-btn {
    border-color: #e5e7eb;
    color: #6b7280;
}

html[data-theme="light"] .sidebar-signout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

html[data-theme="light"] .menu-item-has-children > .menu-link::after {
    color: #9ca3af;
}

html[data-theme="light"] .dashboard-sidebar::-webkit-scrollbar-thumb,
html[data-theme="light"] .admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .dashboard-sidebar::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.dashboard-header {
    margin-bottom: 1.5rem;
}

.dashboard-header h1 {
    color: var(--dark-green);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
}

.dashboard-header h1 .gradient-text {
    color: #1c8e88;
    background: none;
}

.dashboard-header p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-stats .stat-card {
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.2s ease;
}

.dashboard-stats .stat-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dashboard-stats .stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    /* background: linear-gradient(135deg, rgba(28, 142, 136, 0.15), rgba(28, 142, 136, 0.08)); */
    color: #1c8e88;
    font-size: 1.35rem;
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-green);
    margin: 0 0 0.2rem 0;
}

.stat-info p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    color: var(--gray-dark);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    color: inherit;
}

.action-card i {
    font-size: 2rem;
    color: #1c8e88;
    margin-bottom: 0.75rem;
    display: block;
}

.action-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-green);
    margin: 0 0 0.25rem 0;
}

.action-card p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

.dashboard-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

/* Dashboard responsive */
@media (max-width: 1100px) {
    .dashboard-stats,
    .dashboard-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dashboard-stats,
    .dashboard-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .dashboard-stats .stat-card {
        padding: 1rem 1.25rem;
    }

    .dashboard-stats .stat-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        font-size: 1.2rem;
    }

    .stat-info h3 {
        font-size: 1.35rem;
    }
}

.dashboard-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.dashboard-section .section-header h2 {
    color: var(--dark-green);
    font-size: 1.2rem;
    font-weight: 600;
}

.view-all {
    color: var(--light-green);
    text-decoration: none;
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

.bookings-list,
.matches-list,
.tournaments-list {
    display: grid;
    gap: 1rem;
}

.booking-item,
.match-item {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 10px;
    transition: var(--transition-fast);
    border-left: 4px solid var(--primary-green);
}

.booking-item:hover,
.match-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.booking-item .booking-header,
.match-item h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.booking-item h4,
.match-item h4 {
    color: var(--dark-green);
    margin: 0;
    font-size: 1.2rem;
}

.booking-item p,
.match-item p {
    color: var(--gray-dark);
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-item i,
.match-item i {
    color: var(--primary-green);
    width: 20px;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-confirmed,
.status-badge.status-open {
    background: #dcfce7;
    color: #166534;
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-cancelled,
.status-badge.status-closed {
    background: #fee2e2;
    color: #991b1b;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* === Booking Page === */
.booking-container,
.page-container {
    max-width: 1400px;
    margin: 100px auto 50px;
    padding: 2rem;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.booking-header h1 i {
    color: var(--primary-green);
    margin-right: 0.5rem;
}

.booking-header h1 {
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

/* My Bookings page header card - clean white card with two-tone title */
.page-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header-content {
    flex: 1;
    min-width: 0;
}

.page-header-title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1.75rem;
    margin: 0 0 0.35rem 0;
    font-weight: 700;
}

.page-header-title i {
    color: var(--primary-green);
    font-size: 1.5rem;
}

.page-header-title span:first-of-type {
    color: var(--dark-green);
}

.page-header-title-accent {
    color: var(--primary-green);
}

.page-header-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
}

.btn-new-booking {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-new-booking:hover {
    background: #146964;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Legacy page-header (other pages) */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.page-header h1 i {
    color: var(--primary-green);
    margin-right: 0.5rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--gray);
    margin: 0;
}

.booking-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
    transition: var(--transition-normal);
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    right: -2rem;
    width: 2rem;
    height: 2px;
    background: var(--gray-light);
}

.step:last-child::after {
    display: none;
}

.step.active {
    opacity: 1;
}

.step.active::after {
    background: var(--primary-green);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.step.active .step-number {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transform: scale(1.1);
}

.step-label {
    font-weight: 600;
    color: var(--gray-dark);
    padding-right: 20px;
}

.booking-step-content {
    display: none;
}

.booking-step-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.courts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.date-time-selector {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.duration-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.duration-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--light-green);
    background: var(--white);
    color: var(--light-green);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
}

.duration-btn.active,
.duration-btn:hover {
    background: var(--light-green);
    color: var(--white);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.schedule-legend {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.legend-dot {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    display: inline-block;
}

.legend-dot.available {
    background: var(--light-green);
    border: 2px solid var(--primary-green);
}

.legend-dot.booked {
    background: #fee2e2;
    border: 2px solid #dc2626;
}

.legend-dot.closed {
    background: #e5e7eb;
    border: 2px solid #6b7280;
}

.time-slot {
    padding: 1rem;
    border: 2px solid var(--gray-light);
    background: var(--white);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.time-slot .time-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.time-slot .booking-info {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.25rem;
    font-weight: 400;
}

.time-slot .closed-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0.25rem;
}

.time-slot.slot-available {
    border-color: var(--light-green);
    background: rgba(79, 138, 94, 0.05);
    cursor: pointer;
}

.time-slot.slot-available:hover {
    background: var(--light-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.time-slot.slot-booked {
    background: #fee2e2;
    border-color: #dc2626;
    cursor: not-allowed;
    opacity: 0.7;
}

.time-slot.slot-booked .time-label {
    color: #991b1b;
}

.time-slot.slot-closed {
    background: #e5e7eb;
    border-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.slot-closed .time-label {
    color: #6b7280;
}

.time-slot.slot-unavailable {
    background: #fef3c7;
    border-color: #f59e0b;
    cursor: not-allowed;
    opacity: 0.7;
}

.time-slot:hover {
    border-color: var(--light-green);
}

.time-slot.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-green);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.time-slot.active .time-label {
    color: var(--white);
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.loading-text {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    padding: 2rem;
}

.no-slots-message {
    text-align: center;
    color: var(--gray);
    font-size: 1rem;
    padding: 2rem;
    background: var(--gray-light);
    border-radius: 10px;
    margin-top: 1rem;
}

.error-text {
    text-align: center;
    color: #dc2626;
    font-size: 1rem;
    padding: 2rem;
}

.booking-summary {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.summary-divider {
    height: 2px;
    background: var(--light-green);
    margin: 1rem 0;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-green);
}

.payment-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.payment-section-hint {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.payment-option {
    cursor: pointer;
}

.payment-card {
    padding: 1.5rem;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    text-align: center;
    transition: var(--transition-fast);
}

.payment-option input:checked+.payment-card {
    border-color: var(--primary-green);
    background: rgba(79, 138, 94, 0.1);
}

.payment-card i {
    font-size: 2rem;
    color: var(--light-green);
    margin-bottom: 0.5rem;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

/* === Filters and Tabs === */
.bookings-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-light);
    background: var(--white);
    color: var(--gray-dark);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn i {
    font-size: 1rem;
}

.filter-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-green);
    box-shadow: var(--shadow-md);
}

.matches-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.tab-btn {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: var(--gray-dark);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: var(--gray-light);
    color: var(--primary-green);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.matches-filters {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label i {
    color: var(--primary-green);
}

/* === Bookings Container === */
.bookings-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.booking-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border-left: 4px solid var(--primary-green);
    position: relative;
}

.booking-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.booking-card .booking-header,
.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.booking-card .booking-header h3,
.booking-card-header h3 {
    color: var(--dark-green);
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.booking-card .booking-id,
.booking-card-header .booking-id {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

.booking-card .status-badge,
.booking-card-header .status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.booking-card .status-badge.status-pending,
.status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.booking-card .status-badge.status-confirmed,
.status-badge.status-confirmed {
    background: #dcfce7;
    color: #166534;
}

.booking-card .status-badge.status-completed,
.status-badge.status-completed {
    background: #dcfce7;
    color: #166534;
}

.booking-card .status-badge.status-cancelled,
.status-badge.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.booking-card .status-badge.status-unpaid,
.status-badge.status-unpaid {
    background: #fee2e2;
    color: #991b1b;
}

.booking-card .status-badge.status-paid,
.status-badge.status-paid {
    background: #dcfce7;
    color: #166534;
}

.booking-status.upcoming {
    background: #dbeafe;
    color: #1e40af;
}

.booking-status.completed {
    background: #dcfce7;
    color: #166534;
}

.booking-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.booking-card .booking-details {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.booking-card .detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.booking-card .detail-row i {
    color: var(--primary-green);
    width: 18px;
    text-align: center;
}

.booking-card-info {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.booking-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-dark);
}

.booking-info-item i {
    color: var(--primary-green);
    width: 20px;
}

.booking-card .booking-actions,
.booking-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
    flex-wrap: wrap;
}

.booking-card .booking-actions .btn-secondary,
.booking-card-actions .btn-secondary {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    background: var(--white);
}

.booking-card .booking-actions .btn-secondary:hover,
.booking-card-actions .btn-secondary:hover {
    background: rgba(28, 142, 136, 0.08);
}

.booking-card .booking-actions .btn-primary,
.booking-card-actions .btn-primary {
    background: var(--primary-green);
    color: var(--white);
    border: none;
}

/* === Matches Grid === */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.match-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border-top: 4px solid var(--primary-green);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-3d);
}

.match-card-header {
    margin-bottom: 1rem;
}

.match-card-header h3 {
    color: var(--dark-green);
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.match-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.match-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.match-meta-item i {
    color: var(--primary-green);
}

.skill-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.skill-badge.beginner {
    background: #dbeafe;
    color: #1e40af;
}

.skill-badge.intermediate {
    background: #fef3c7;
    color: #92400e;
}

.skill-badge.advanced {
    background: #fee2e2;
    color: #991b1b;
}

.match-players {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--gray-light);
    border-radius: 10px;
}

.match-players i {
    color: var(--primary-green);
}

.match-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* === Tournaments === */
.tournaments-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.tournaments-tabs .tab-btn {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: var(--gray-dark);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tournaments-tabs .tab-btn:hover {
    background: var(--gray-light);
    color: var(--primary-green);
}

.tournaments-tabs .tab-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.tournaments-filters {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.tournament-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border-top: 5px solid var(--primary-green);
}

.tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-3d);
}

.tournament-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.1) 0%, rgba(79, 138, 94, 0.1) 100%);
}

.tournament-card-header h3 {
    color: var(--dark-green);
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tournament-card-header h3 i {
    color: var(--primary-green);
}

.tournament-prize {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tournament-prize i {
    color: #f59e0b;
}

.tournament-card-body {
    padding: 1.5rem;
}

.tournament-info {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tournament-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-dark);
}

.tournament-info-item i {
    color: var(--primary-green);
    width: 20px;
}

.tournament-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 1rem;
}

.tournament-status.registration_open {
    background: #dcfce7;
    color: #166534;
}

.tournament-status.registration_closed {
    background: #fef3c7;
    color: #92400e;
}

.tournament-status.ongoing {
    background: #dbeafe;
    color: #1e40af;
}

.tournament-status.completed {
    background: #e5e7eb;
    color: #374151;
}

.tournament-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    gap: 0.75rem;
}

.tournament-participants {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--gray-light);
    border-radius: 10px;
    margin-top: 1rem;
}

.tournament-participants i {
    color: var(--primary-green);
}

.tournament-participants strong {
    color: var(--primary-green);
}

.tournaments-list {
    display: grid;
    gap: 1rem;
}

.tournament-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
    border-left: 4px solid var(--primary-green);
}

.tournament-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.tournament-item-info h4 {
    color: var(--dark-green);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tournament-item-info h4 i {
    color: var(--primary-green);
}

.tournament-item-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.tournament-item-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    /* padding: 2rem; */
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-large {
    max-width: 800px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--dark-green);
    transform: rotate(90deg);
}

/* Tournament form modal - redesigned */
.modal-content--tournament {
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.modal-close--icon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    background: var(--gray-light);
    color: var(--gray-dark);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition-fast);
}

.modal-close--icon:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: none;
}

/* Court modal - redesigned */
.modal-content--court {
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.modal-content--court .modal-close--icon {
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

html[data-theme="dark"] .modal-content--court .modal-close--icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

html[data-theme="dark"] .modal-content--court .modal-close--icon:hover {
    background: var(--primary-green);
}

/* Create New Match modal – clean form, teal accents */
.modal-content--match {
    max-width: 560px;
    width: 100%;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.modal-content--match .modal-close--icon {
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.match-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.match-modal-header__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 10px;
    font-size: 1.1rem;
}

.match-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-dark);
}

.match-modal-form {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    max-height: 65vh;
}

.match-modal-form .form-group {
    margin-bottom: 1.25rem;
}

.match-modal-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.match-modal-form .form-group label i {
    color: var(--primary-green);
    font-size: 0.9rem;
}

.match-modal-form .form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--gray);
    padding: 0.4rem 0.6rem;
    background: var(--gray-light);
    border-radius: 8px;
}

.match-modal-form .form-group.form-group--valid .form-hint {
    display: none;
}

.match-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.btn-match-outline {
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-match-outline:hover {
    background: rgba(28, 142, 136, 0.08);
    color: var(--dark-green);
}

.btn-match-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    background: var(--dark-green);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-match-primary:hover {
    background: var(--primary-green);
    color: var(--white);
}

.court-modal-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    flex-shrink: 0;
}

.court-modal-header__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    font-size: 1.5rem;
}

.court-modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: inherit;
    letter-spacing: -0.02em;
}

.court-modal-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 400;
}

.court-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.court-form__body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.court-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.75rem;
}

.court-form__grid--2col {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
}

.court-form-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

html[data-theme="dark"] .court-form-section__title {
    color: var(--light-green);
}

.court-form-section__title i {
    opacity: 0.85;
    font-size: 0.85rem;
}

.court-form-section .form-group {
    margin-bottom: 1.25rem;
}

.court-form-section .form-group:last-child {
    margin-bottom: 0;
}

.court-form .required {
    color: var(--primary-green);
    font-weight: 600;
}

.court-form-section--integration,
.court-form-section--features {
    margin-top: 0.5rem;
}

.input-with-icon {
    position: relative;
    display: flex;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 0.95rem;
    pointer-events: none;
}

.input-with-icon .form-control {
    padding-left: 2.75rem;
}

.input-with-icon--textarea i {
    top: 1.25rem;
    transform: none;
}

.input-with-icon--textarea .form-control {
    padding-top: 1.25rem;
}

.form-text {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--gray);
}

html[data-theme="dark"] .form-text {
    color: rgba(255, 255, 255, 0.6);
}

/* Court image upload */
.court-image-upload-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.court-image-upload {
    margin-top: 0.5rem;
}

.court-image-preview-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.court-image-preview {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 16 / 10;
    background: var(--gray-light);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.court-image-preview__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.court-image-preview__img.is-visible {
    display: block;
}

.court-image-preview__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.court-image-preview__placeholder i {
    font-size: 2rem;
    opacity: 0.6;
}

.court-image-preview:has(.court-image-preview__img.is-visible) .court-image-preview__placeholder {
    display: none;
}

.court-image-upload-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.court-image-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.btn-upload {
    cursor: pointer;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-upload:hover {
    background: var(--primary-green);
    color: var(--white);
}

.btn-remove-image {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Product image upload (same layout as court) */
.product-image-upload-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-image-upload {
    margin-top: 0.5rem;
}

.product-image-preview-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-image-preview {
    position: relative;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    background: var(--gray-light);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-preview__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.product-image-preview__img.is-visible {
    display: block;
}

.product-image-preview__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.85rem;
}

.product-image-preview__placeholder i {
    font-size: 1.75rem;
    opacity: 0.6;
}

.product-image-preview:has(.product-image-preview__img.is-visible) .product-image-preview__placeholder {
    display: none;
}

.product-image-upload-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-image-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.features-checkboxes--court {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--gray-light);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-dark);
    transition: var(--transition-fast);
}

html[data-theme="dark"] .feature-chip {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.feature-chip:hover {
    border-color: var(--primary-green);
    background: rgba(28, 142, 136, 0.08);
}

.feature-chip:has(input:checked) span {
    color: var(--primary-green);
}

.feature-chip:has(input:checked) {
    border-color: var(--primary-green);
    background: rgba(28, 142, 136, 0.12);
}

.feature-chip span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.feature-chip span i {
    font-size: 0.85rem;
    opacity: 0.9;
}

.form-group--status {
    margin-top: 1rem;
}

.status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.status-toggle input {
    display: none;
}

.status-toggle__slider {
    width: 48px;
    height: 26px;
    background: var(--gray);
    border-radius: 13px;
    position: relative;
    transition: var(--transition-fast);
}

.status-toggle__slider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.status-toggle input:checked + .status-toggle__slider {
    background: var(--primary-green);
}

.status-toggle input:checked + .status-toggle__slider::after {
    left: 25px;
}

.status-toggle__label {
    font-weight: 600;
    color: var(--dark-green);
}

html[data-theme="dark"] .status-toggle__label {
    color: var(--white);
}

.court-form-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--gray-light);
    flex-shrink: 0;
}

html[data-theme="dark"] .court-form-footer {
    background: rgba(0, 0, 0, 0.2);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.court-form-footer .btn-primary,
.court-form-footer .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .court-form__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .court-form__grid--2col {
        grid-template-columns: 1fr;
    }
    .court-modal-header,
    .court-form__body {
        padding: 1.25rem 1.5rem;
    }
    .court-form-footer {
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
    }
}

.tournament-modal-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 2rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    flex-shrink: 0;
}

.tournament-modal-header__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    font-size: 1.5rem;
}

.tournament-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
    letter-spacing: -0.02em;
}

.tournament-modal-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

.tournament-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.tournament-form__body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.tournament-form-section {
    margin-bottom: 1.75rem;
}

.tournament-form-section:last-child {
    margin-bottom: 0;
}

.tournament-form-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tournament-form-section__title i {
    opacity: 0.85;
    font-size: 0.9rem;
}

.tournament-form-section .form-group {
    margin-bottom: 1.25rem;
}

.tournament-form-section .form-group:last-child {
    margin-bottom: 0;
}

.tournament-form-section .form-row {
    margin-bottom: 1.25rem;
}

.tournament-form-section .form-row:last-child {
    margin-bottom: 0;
}

.tournament-form .required {
    color: var(--primary-green);
    font-weight: 600;
}

.tournament-form-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.25rem 2rem;
    background: var(--gray-light);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.btn-primary--icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

html[data-theme="dark"] .tournament-modal-header .tournament-modal-title,
html[data-theme="dark"] .tournament-modal-header .tournament-modal-subtitle {
    color: #ffffff;
}

@media (max-width: 640px) {
    .tournament-modal-header,
    .tournament-form__body,
    .tournament-form-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .tournament-form-section .form-row {
        grid-template-columns: 1fr;
    }
}

/* Booking detail modal - clean list layout */
.modal-content.modal-booking-detail {
    max-width: 520px;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.booking-detail-view {
    padding-right: 2rem;
}

.booking-detail-view .detail-row-modal {
    display: flex;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.booking-detail-view .detail-row-modal strong {
    display: inline-block;
    min-width: 120px;
    color: var(--dark-green);
    font-weight: 600;
}

.booking-detail-view .detail-row-modal span {
    color: var(--gray-dark);
}

.booking-detail-view .detail-section-title {
    font-weight: 700;
    color: var(--dark-green);
    margin: 1.25rem 0 0.5rem 0;
    font-size: 1rem;
}

.booking-detail-view .participants-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.booking-detail-view .participants-list li {
    padding: 0.35rem 0;
    padding-left: 1rem;
    position: relative;
    color: var(--gray-dark);
}

.booking-detail-view .participants-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-green);
}

/* === Admin Pages === */
.admin-page {
    background: var(--gray-light);
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   ADMIN SIDEBAR - PROFESSIONAL DESIGN
   ======================================== */

.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    transition: var(--sidebar-transition);
    z-index: 100;
}

/* Hide scrollbar but keep functionality */
.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.admin-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--sidebar-border);
    min-height: 72px;
}

.admin-logo .logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.admin-logo .logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #1c8e88, #157a75);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.admin-logo .logo-icon img,
.admin-logo .logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.admin-logo .logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.admin-logo i {
    color: var(--accent-green);
}

.admin-sidebar-toggle {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--sidebar-transition);
}

.admin-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-menu {
    list-style: none;
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-menu li {
    margin: 0;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.925rem;
    font-weight: 500;
    transition: var(--sidebar-transition);
}

.admin-menu a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.admin-menu a span {
    white-space: nowrap;
    opacity: 1;
    transition: var(--sidebar-transition);
}

.admin-menu a:hover {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-text-active);
}

.admin-menu li.active a {
    background: var(--sidebar-active-bg);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.admin-menu li.active a i {
    color: #fff;
}

/* Admin User Profile */
.admin-user {
    padding: 0.75rem;
    border-top: 1px solid var(--sidebar-border);
    margin-top: auto;
}

.admin-user-profile {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    transition: var(--sidebar-transition);
}

.admin-user-profile:hover {
    background: rgba(255, 255, 255, 0.08);
}

.admin-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.admin-user-info {
    flex: 1;
    min-width: 0;
}

.admin-user-info strong {
    display: block;
    color: #fff;
    font-size: 0.925rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.admin-user-info a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--sidebar-transition);
}

.admin-user-info a:hover {
    color: #ef4444;
}

.admin-user i.user-icon {
    font-size: 1.25rem;
    color: #fff;
}

.admin-user-more {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--sidebar-transition);
}

.admin-user-more:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Legacy support for old admin-user structure */
.admin-user > i:first-child {
    display: none;
}

.admin-user > div {
    flex: 1;
}

.admin-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem 3rem;
    transition: var(--sidebar-transition);
}

/* Collapsed Admin Sidebar */
.admin-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.admin-sidebar.collapsed .logo-text,
.admin-sidebar.collapsed .admin-user-info,
.admin-sidebar.collapsed .admin-user-more {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.admin-sidebar.collapsed .admin-menu a {
    justify-content: center;
    padding: 0.875rem;
}

.admin-sidebar.collapsed .admin-menu a span {
    display: none;
}

.admin-sidebar.collapsed .admin-user-profile {
    justify-content: center;
    padding: 0.875rem;
}

.admin-sidebar.collapsed .admin-sidebar-toggle {
    transform: rotate(180deg);
}

body.admin-sidebar-collapsed .admin-content {
    margin-left: var(--sidebar-collapsed-width);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.admin-header h1 {
    color: var(--dark-green);
    font-size: 2.5rem;
}

.admin-actions {
    display: flex;
    gap: 1rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.admin-stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 1.5rem;
}

.admin-stat-card .stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.bg-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-green {
    background: var(--gradient-primary);
}

.bg-yellow {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-purple {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bg-red {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.bg-teal {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.stat-details h3 {
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 0.3rem;
}

.stat-details p {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.admin-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    min-height: 400px;
    position: relative;
}

.chart-container canvas {
    max-height: 350px;
}

.chart-container h3 {
    color: var(--dark-green);
    margin-bottom: 1.5rem;
}

.admin-tables {
    display: grid;
    gap: 2rem;
}

.admin-table-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-header h3 {
    color: var(--dark-green);
    font-size: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--gray-light);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.admin-table th {
    font-weight: 600;
    color: var(--dark-green);
}

.admin-table tbody tr {
    transition: var(--transition-fast);
}

.admin-table tbody tr:hover {
    background: rgba(79, 138, 94, 0.05);
}

/* Admin: phone number links for calling users */
.user-phone-link {
    color: var(--dark-green);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}
.user-phone-link:hover {
    text-decoration: underline;
}
.user-phone-link .fa-phone {
    margin-right: 0.25rem;
    font-size: 0.85em;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-unpaid {
    background: #fee2e2;
    color: #991b1b;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.admin-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-filters .form-control {
    flex: 1;
    min-width: 200px;
}

.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stats-row .stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-normal);
}

.admin-stats-row .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.admin-stats-row .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.admin-stats-row .stat-info h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.admin-stats-row .stat-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* === Detail Modals (Payment, Match, User, Tournament, Participants) === */
.modal-content--detail {
    max-width: 560px;
    width: 100%;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content--detail.modal-large {
    max-width: 640px;
}

.modal-content--detail .modal-close--icon {
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

/* Booking detail modal – clean white box, key-value list */
.modal-content--booking-detail {
    max-width: 480px;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.modal-content--booking-detail .modal-close--icon {
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: var(--gray-light);
    color: var(--gray-dark);
}

.booking-detail-list {
    padding: 0;
    display: block;
}

/* Redesigned booking detail modal */
.booking-detail-modal {
    max-width: 100%;
}

.booking-detail-modal__header {
    padding: 1.5rem 1.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.booking-detail-modal__title {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-green, #0f766e);
    letter-spacing: -0.02em;
}

.booking-detail-modal__court {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: var(--gray, #64748b);
    font-weight: 500;
}

.booking-detail-modal__status-strip {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 1.75rem;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.booking-detail-modal__status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-detail-modal__status-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray, #64748b);
}

.booking-detail-modal__body {
    padding: 0 1.75rem 1.75rem;
}

.booking-detail-modal__section {
    padding-top: 1.25rem;
}

.booking-detail-modal__section:first-child {
    padding-top: 1.25rem;
}

.booking-detail-modal__section-title {
    margin: 0 0 0.75rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray, #64748b);
}

.booking-detail-modal .detail-row-modal {
    border-bottom: 1px solid var(--border-color);
}

.booking-detail-modal .detail-row-modal:last-child {
    border-bottom: none;
}

.booking-detail-modal .detail-row-modal--highlight .detail-value {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark-green, #0f766e);
}

html[data-theme="dark"] .booking-detail-modal__header {
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border-bottom-color: rgba(255,255,255,0.1);
}

html[data-theme="dark"] .booking-detail-modal__title {
    color: #5eead4;
}

html[data-theme="dark"] .booking-detail-modal__court,
html[data-theme="dark"] .booking-detail-modal__section-title,
html[data-theme="dark"] .booking-detail-modal__status-label {
    color: rgba(255,255,255,0.6);
}

html[data-theme="dark"] .booking-detail-modal .detail-row-modal--highlight .detail-value {
    color: #5eead4;
}

.detail-row-modal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

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

.detail-row-modal .detail-label {
    color: var(--gray);
    font-weight: 500;
}

.detail-row-modal .detail-value {
    color: var(--gray-dark);
    font-weight: 500;
    text-align: right;
}

html[data-theme="dark"] .detail-row-modal .detail-value {
    color: rgba(255, 255, 255, 0.9);
}

.status-pill {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-pill--confirmed,
.status-pill--completed,
.status-pill--paid {
    background: #dcfce7;
    color: #166534;
}

.status-pill--unpaid {
    background: #fee2e2;
    color: #991b1b;
}

.status-pill--pending {
    background: #fef3c7;
    color: #92400e;
}

.status-pill--cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-pill--refunded {
    background: #e0e7ff;
    color: #3730a3;
}

.modal-detail__header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
}

.modal-detail__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1.35rem;
}

.modal-detail__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: inherit;
}

.modal-detail__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.modal-detail__body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-content--registration {
    max-width: 480px;
    padding: 0;
    overflow: hidden;
}

.modal-content--registration .modal-detail__header {
    padding: 1.25rem 1.5rem;
}

.modal-registration-form {
    padding: 1.5rem 2rem;
}

.modal-registration-form .form-group {
    margin-bottom: 1.25rem;
}

.modal-registration-form .optional {
    font-weight: 400;
    color: var(--gray);
    font-size: 0.85em;
}

.modal-registration-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.detail-section-title {
    margin: 1.5rem 0 0.75rem;
    font-size: 0.95rem;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--gray-light);
    border-radius: 10px;
    font-size: 0.95rem;
}

.participant-item i {
    color: var(--primary-green);
    opacity: 0.8;
}

.participants-list-with-phone .participant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.participants-list-with-phone .participant-name { font-weight: 500; }
.participants-list-with-phone .participant-phone { margin-left: auto; }
.participants-list-with-phone .participant-phone .user-phone-link { white-space: nowrap; }
.participants-list-with-phone .no-phone { color: var(--gray); font-size: 0.9em; }

.match-phone-required-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}
.match-phone-required-banner i { font-size: 1.2rem; }
.match-phone-required-banner a { color: var(--dark-green); font-weight: 600; text-decoration: underline; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    padding: 1rem 1.25rem;
    background: var(--gray-light);
    border-radius: 12px;
    transition: var(--transition-fast);
}

html[data-theme="dark"] .detail-item {
    background: rgba(255, 255, 255, 0.06);
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-item strong i {
    font-size: 0.75rem;
    opacity: 0.9;
}

.detail-item span,
.detail-item p {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

html[data-theme="dark"] .detail-item span,
html[data-theme="dark"] .detail-item p {
    color: rgba(255, 255, 255, 0.9);
}

.user-phone-link {
    color: var(--primary-green);
    text-decoration: none;
}

.user-phone-link:hover {
    text-decoration: underline;
}

@media (max-width: 560px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .modal-detail__body,
    .modal-detail__header {
        padding: 1rem 1.25rem;
    }
}

/* === Tournament Card Redesign === */
.tournament-card--redesign {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tournament-card__accent {
    height: 4px;
    background: var(--gradient-primary);
}

.tournament-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1.25rem 0;
    gap: 0.75rem;
}

.tournament-card__logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-light);
}

.tournament-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tournament-card__logo-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.5rem;
}

.tournament-card__status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: rgba(28, 142, 136, 0.15);
    color: var(--primary-green);
}

.tournament-card__body {
    padding: 1.25rem;
    flex: 1;
}

.tournament-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-green);
}

html[data-theme="dark"] .tournament-card__title {
    color: var(--white);
}

.tournament-card__desc {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.4;
}

.tournament-card__meta {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.tournament-card__meta li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.tournament-card__meta li i {
    width: 1rem;
    color: var(--primary-green);
    opacity: 0.85;
}

.tournament-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* === Responsive Design === */
@media (max-width: 1200px) {

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        display: none;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: static;
        transform: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 0 0.5rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-actions {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0 1rem;
        gap: 0.75rem;
    }

    .nav-actions.active {
        display: flex;
    }

    .user-section {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .booking-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        padding: 2rem;
        background: var(--white);
        border-radius: 15px;
        box-shadow: var(--shadow-md);
        flex-direction: column;
    }

    .booking-header h1 {
        font-size: 2rem;
        color: var(--dark-green);
        margin-bottom: 0.5rem;
    }

    .page-header-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        padding: 1.5rem 2rem;
        background: var(--white);
        border-radius: 12px;
        box-shadow: var(--shadow-md);
        flex-wrap: wrap;
        gap: 1rem;
        flex-direction: column;
    }

    .page-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        padding: 1.5rem 2rem;
        background: var(--white);
        border-radius: 12px;
        box-shadow: var(--shadow-md);
        flex-wrap: wrap;
        gap: 1rem;
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 2rem;
        color: var(--dark-green);
        margin-bottom: 0.5rem;
    }

    /* .user-section.active {
        display: none;
    } */

    .facilities-scroll__sticky {
        position: sticky;
        min-height: 100vh;
        grid-template-columns: 1fr;
        padding: 4rem 6vw;
    }

    .facilities-scroll__heading p {
        max-width: none;
    }

    .section-title {
        font-size: 0.85rem;
    }

    .section-subtitle {
        font-size: 1.8rem;
    }

    .dashboard-container {
        flex-direction: column;
    }

    /* Mobile header bar - logo and menu button on same line */
    .mobile-header-bar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 75px;
        padding: 0 1rem;
        background: var(--sidebar-bg);
        z-index: 1050;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }

    .mobile-header-logo {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        text-decoration: none;
    }

    .mobile-header-logo img {
        width: 36px;
        height: 36px;
        object-fit: contain;
        border-radius: 10px;
        background: linear-gradient(135deg, #1c8e88, #157a75);
        padding: 6px;
    }

    .mobile-header-logo span {
        font-size: 1.05rem;
        font-weight: 700;
        color: #fff;
        letter-spacing: -0.02em;
    }

    /* Menu button - same line, aligned with logo */
    .mobile-menu-toggle {
        display: flex !important;
        width: 42px;
        height: 42px;
        flex-shrink: 0;
        background: linear-gradient(135deg, #1c8e88, #157a75);
        border: none;
        border-radius: 12px;
        color: #fff;
        font-size: 1.1rem;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 12px rgba(28, 142, 136, 0.4);
        transition: all 0.2s ease;
    }

    .mobile-menu-toggle:hover {
        background: linear-gradient(135deg, #157a75, #0d5c58);
        transform: scale(1.03);
    }

    .mobile-menu-toggle:active {
        transform: scale(0.98);
    }

    /* Hide menu button when sidebar is open */
    body.sidebar-open .mobile-menu-toggle {
        opacity: 0;
        pointer-events: none;
    }

    html[data-theme="light"] .mobile-header-bar {
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    html[data-theme="light"] .mobile-header-logo span {
        color: #1f2937;
    }

    /* Reduce content padding - less space below header */
    .dashboard-content {
        padding-top: 1rem !important;
        margin-top: 75px !important;
        min-height: calc(100vh - 75px);
    }

    .admin-content {
        padding-top: 1rem !important;
        margin-top: 75px !important;
        min-height: calc(100vh - 75px);
    }

    .dashboard-container {
        margin-top: 0px;
    }

    html[data-theme="light"] .mobile-menu-toggle {
        background: linear-gradient(135deg, #1c8e88, #157a75);
        color: #fff;
    }

    /* Mobile Sidebar - Slide from left */
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        will-change: transform;
        backface-visibility: hidden;
        z-index: 1200;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.25);
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .dashboard-sidebar.open {
        transform: translateX(0);
    }

    /* Remove collapsed state on mobile */
    .dashboard-sidebar.collapsed {
        width: 280px;
    }

    .dashboard-sidebar.collapsed .sidebar-brand-text,
    .dashboard-sidebar.collapsed .sidebar-user-info,
    .dashboard-sidebar.collapsed .sidebar-profile-more,
    .dashboard-sidebar.collapsed .menu-section-title,
    .dashboard-sidebar.collapsed .menu-item-has-children > .menu-link::after {
        opacity: 1;
        width: auto;
        overflow: visible;
    }

    .dashboard-sidebar.collapsed .dashboard-menu > li > a,
    .dashboard-sidebar.collapsed .dashboard-menu .menu-link {
        justify-content: flex-start;
        padding: 0.875rem 1rem;
    }

    .dashboard-sidebar.collapsed .dashboard-menu > li > a span,
    .dashboard-sidebar.collapsed .dashboard-menu .menu-link span,
    .dashboard-sidebar.collapsed .sidebar-footer-link span,
    .dashboard-sidebar.collapsed .sidebar-signout-btn span {
        display: inline;
    }

    .dashboard-sidebar.collapsed .submenu {
        display: block;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1199;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        backdrop-filter: blur(2px);
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .dashboard-content {
        margin-left: 0;
        padding: 1.5rem 1rem 3rem;
    }

    body.sidebar-collapsed .dashboard-content {
        margin-left: 0;
    }

    /* Admin Sidebar Mobile */
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        z-index: 1200;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-sidebar.collapsed {
        width: 280px;
    }

    .admin-content {
        margin-left: 0;
        padding: 1.5rem 1rem 3rem;
    }

    body.admin-sidebar-collapsed .admin-content {
        margin-left: 0;
    }

    /* Mobile menu button visibility */
    .sidebar-toggle,
    .admin-sidebar-toggle {
        display: flex !important;
    }

    .booking-steps {
        flex-direction: column;
        align-items: flex-start;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .courts-container,
    .matches-container,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* === Luxury Radius Overrides === */
.stat-card,
.court-card,
.card-3d,
.shop-category-card,
.feature-card,
.facility-card,
.match-card,
.contact-card,
.auth-card,
.action-card,
.payment-card,
.booking-card,
.tournament-card,
.admin-stat-card,
.payment-method-card,
.product-card,
.about-feature,
.contact-form,
.dashboard-stats .stat-card,
.admin-stats-row .stat-card {
    border-radius: 10px;
}

button,
.btn-login,
.btn-register,
.btn-dashboard,
.btn-logout,
.btn-primary,
.btn-secondary,
.btn-3d,
.btn-book,
.btn-details,
.btn-join-match,
.btn-large,
.btn-full,
.btn-social,
.btn-facebook,
.btn-google,
.btn-sm,
.btn-block,
.newsletter-form button,
.quantity-selector button {
    border-radius: 10px;
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.info-text {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.features-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* === Profile Page === */
.profile-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-light);
}

.profile-avatar {
    font-size: 5rem;
    color: var(--primary-green);
}

.profile-avatar i {
    display: block;
}

.profile-info h2 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-green);
}

.profile-email {
    color: var(--gray);
    margin: 0.5rem 0;
}

.role-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.role-badge.role-admin {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

.role-badge.role-user {
    background: linear-gradient(135deg, #1a4d2e 0%, #4f8a5e 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-icon-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.stat-item h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-green);
}

.stat-item p {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-item {
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 8px;
}

.info-item label {
    display: block;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-item label i {
    margin-right: 0.5rem;
}

.info-item p {
    margin: 0;
    color: var(--gray-dark);
    font-size: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.activity-list {
    margin-top: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition-fast);
}

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

.activity-item:hover {
    background: var(--gray-light);
    border-radius: 8px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    margin: 0 0 0.25rem 0;
    color: var(--dark-green);
    font-size: 1rem;
}

/* === Profile Page (redesign) === */
.dashboard-content.profile-page {
    padding: 0;
    max-width: none;
}

.profile-account-wrapper {
    min-height: 100%;
    position: relative;
    background: var(--profile-bg);
}

.profile-account-wrapper[data-theme="dark"] {
    --profile-bg: #0f1419;
    --profile-hero-bg: linear-gradient(160deg, #1a2332 0%, #0f1419 100%);
    --profile-text: #f0f0f0;
    --profile-text-muted: #94a3b8;
    --profile-card-bg: #1e293b;
    --profile-menu-bg: transparent;
    --profile-menu-hover: rgba(28, 142, 136, 0.15);
    --profile-border: #334155;
    --profile-signout-bg: #334155;
    --profile-signout-text: #f0f0f0;
}

.profile-account-wrapper[data-theme="light"] {
    --profile-bg: #f8fafc;
    --profile-hero-bg: linear-gradient(160deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
    --profile-text: #0f172a;
    --profile-text-muted: #64748b;
    --profile-card-bg: #fff;
    --profile-menu-bg: #f8fafc;
    --profile-menu-hover: rgba(28, 142, 136, 0.08);
    --profile-border: #e2e8f0;
    --profile-signout-bg: #f1f5f9;
    --profile-signout-text: #0f172a;
}

/* Hero header */
.profile-hero {
    position: relative;
    padding: 2.5rem 1.5rem 3rem;
    text-align: center;
    overflow: hidden;
}

.profile-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--profile-hero-bg);
    opacity: 1;
}

.profile-account-wrapper[data-theme="light"] .profile-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 10 Q20 40 50 90 Q80 40 50 10' fill='%23fff' fill-opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

.profile-hero-content {
    position: relative;
    z-index: 1;
}

.profile-theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.profile-theme-toggle .theme-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.profile-account-wrapper[data-theme="light"] .profile-theme-toggle .theme-btn {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.profile-theme-toggle .theme-btn:hover,
.profile-theme-toggle .theme-btn.active {
    background: rgba(255,255,255,0.3);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.profile-avatar-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: rgba(255,255,255,0.25);
    border: 4px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.profile-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-initial {
    font-size: 2.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.profile-hero-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.profile-hero-email {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.profile-account-wrapper[data-theme="dark"] .profile-hero-name,
.profile-account-wrapper[data-theme="dark"] .profile-hero-email {
    color: #f0f0f0;
}

.profile-account-wrapper[data-theme="dark"] .profile-hero-email {
    color: rgba(240,240,240,0.8);
}

/* Layout: main + side */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-main {
    min-width: 0;
}

.profile-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Account card */
.profile-account-card {
    background: var(--profile-card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--profile-border);
}

.profile-account-wrapper[data-theme="dark"] .profile-account-card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.profile-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--profile-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-card-title i {
    color: var(--primary-green);
}

.profile-account-menu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--profile-menu-bg);
    color: var(--profile-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.profile-menu-item:hover {
    background: var(--profile-menu-hover);
}

.profile-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-menu-text {
    flex: 1;
}

.profile-menu-arrow {
    font-size: 0.75rem;
    color: var(--profile-text-muted);
}

.profile-menu-item-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-menu-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.profile-account-signout {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--profile-border);
}

.btn-sign-out {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 14px;
    border: none;
    background: var(--profile-signout-bg);
    color: var(--profile-signout-text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-sign-out:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

/* Stats block */
.profile-stats-compact {
    background: var(--profile-card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--profile-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.profile-account-wrapper[data-theme="dark"] .profile-stats-compact {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.profile-stats-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--profile-text);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-stats-title i {
    color: var(--primary-green);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.profile-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: var(--profile-menu-bg);
    border: 1px solid var(--profile-border);
    transition: var(--transition-fast);
}

.profile-stat:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(28, 142, 136, 0.12);
}

.profile-stat .stat-icon-small {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}

.profile-stat .stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.profile-stat .stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.2;
}

.profile-stat .stat-label {
    font-size: 0.85rem;
    color: var(--profile-text-muted);
}

/* Activity card */
.profile-activity-card {
    background: var(--profile-card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--profile-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.profile-activity-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--profile-text);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-activity-title i {
    color: var(--primary-green);
}

/* Settings panel (slide-over) */
.profile-settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.profile-settings-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.profile-settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    height: 100dvh;
    padding-right: env(safe-area-inset-right, 0);
    background: var(--profile-card-bg);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.profile-settings-panel.is-open {
    transform: translateX(0);
}

.profile-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--profile-border);
    flex-shrink: 0;
}

.profile-settings-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--profile-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-settings-header h2 i {
    color: var(--primary-green);
}

.btn-close-settings {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: var(--profile-signout-bg);
    color: var(--profile-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close-settings:hover {
    background: var(--profile-menu-hover);
    color: var(--profile-text);
}

.profile-settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

body.profile-settings-open {
    overflow: hidden;
    touch-action: none;
}

.profile-section-inner {
    margin-bottom: 2rem;
}

.profile-section-inner:last-child {
    margin-bottom: 0;
}

.profile-section-inner h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--profile-text);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section-inner h3 i {
    color: var(--primary-green);
}

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.profile-info-grid .info-item {
    padding: 1rem;
    border-radius: 12px;
    background: var(--profile-menu-bg);
    border: 1px solid var(--profile-border);
}

.profile-info-grid .info-item label {
    color: var(--profile-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-info-grid .info-item p {
    color: var(--profile-text);
    font-size: 1rem;
    margin-top: 0.25rem;
}

.btn-edit-profile {
    margin-top: 1rem;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-edit-profile:hover {
    background: var(--primary-green);
    color: #fff;
}

.profile-edit-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--profile-border);
}

/* Activity list (profile page) */
.profile-activity-card .activity-item {
    border-radius: 12px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--profile-border);
}

.profile-activity-card .activity-item:last-child {
    margin-bottom: 0;
}

.profile-activity-card .activity-item:hover {
    border-color: var(--primary-green);
    background: var(--profile-menu-hover);
}

.profile-activity-card .no-data {
    padding: 1.5rem;
}

/* Profile responsive */
@media (max-width: 768px) {
    /* Profile page needs padding for mobile header */
    .dashboard-content.profile-page {
        padding-top: 0 !important;
        margin-top: 75px;
    }

    .profile-layout {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .profile-hero {
        padding: 2rem 1rem 2.5rem;
    }

    .profile-avatar-circle {
        width: 90px;
        height: 90px;
    }

    .profile-avatar-initial {
        font-size: 2.25rem;
    }

    .profile-hero-name {
        font-size: 1.3rem;
    }

    .profile-stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-settings-panel {
        max-width: 100%;
    }

    .tournaments-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .tournaments-tabs .tab-btn {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    .tournaments-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }

    .tournaments-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.activity-content p {
    margin: 0 0 0.25rem 0;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.activity-content small {
    color: var(--gray);
    font-size: 0.8rem;
}

.no-data {
    text-align: center;
    color: var(--gray);
    padding: 2rem;
    font-style: italic;
}

.help-text {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* === Print Styles === */
@media print {

    .navbar,
    .footer,
    .btn-primary,
    .btn-secondary,
    .hero .leaf-decoration {
        display: none;
    }
}

/* Payment Page Styles */
.payment-methods {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.payment-method-card {
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.payment-method-card input[type='radio'] {
    display: none;
}

.payment-method-card input[type='radio']:checked+label {
    color: var(--primary-green);
}

.payment-method-card label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    margin: 0;
}

.payment-method-card i {
    font-size: 2rem;
    color: var(--primary-green);
}

.payment-form {
    margin: 2rem 0;
}

.card-element {
    padding: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    background: white;
}

.card-errors {
    color: var(--error-color);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.summary-divider {
    height: 1px;
    background: var(--primary-green);
    margin: 1rem 0;
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-green);
    border-bottom: none;
}

.btn-block {
    width: 100%;
    margin-top: 2rem;
}

/* Calendar Event Styles */
.slot-calendar {
    background: linear-gradient(135deg, #9C27B0, #E1BEE7);
    color: white;
    border-color: #9C27B0;
    cursor: not-allowed;
}

.calendar-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.legend-dot.calendar {
    background: #9C27B0;
}

.time-slot {
    position: relative;
}

/* Calendar Event Styles */
.slot-calendar {
    background: linear-gradient(135deg, #9C27B0, #E1BEE7);
    color: white;
    border-color: #9C27B0;
    cursor: not-allowed;
}

.calendar-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.legend-dot.calendar {
    background: #9C27B0;
}

.time-slot {
    position: relative;
}

/* Marketplace Styles */
.cart-icon {
    position: relative;
    margin-right: 1rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shop page layout */
.shop-page .container {
    max-width: 1280px;
    margin: 0 auto;
}

.shop-hero {
    position: relative;
    margin: -1.5rem -1.5rem 2rem -1.5rem;
    padding: 2rem 1.5rem 2.5rem;
    background: var(--gradient-primary);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.shop-hero-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.shop-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.shop-hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.5rem;
}

.shop-hero-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.shop-hero-title .gradient-text {
    background: linear-gradient(135deg, #a8f0e8 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shop-hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.5;
}

.shop-filters {
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.shop-search-wrap {
    margin-bottom: 1rem;
}

.search-box {
    position: relative;
    margin-bottom: 0;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.search-box input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box input::placeholder {
    color: var(--gray);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(28, 142, 136, 0.15);
}

.search-box:focus-within i {
    color: var(--primary-green);
}

.filter-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.25rem;
    padding: 0.25rem 0;
}

.filter-scroll::-webkit-scrollbar {
    height: 4px;
}

.filter-scroll::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 4px;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    min-width: min-content;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--gray-light);
    background: var(--white);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-dark);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.filter-btn i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.filter-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: rgba(28, 142, 136, 0.06);
}

.filter-btn.active {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.filter-btn.active i {
    opacity: 1;
}

.shop-page .shop-header.booking-header {
    margin-bottom: 2rem;
}

.shop-block {
    margin-bottom: 2.5rem;
}

.shop-block-header {
    margin-bottom: 1.25rem;
}

.shop-block-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-green);
    margin: 0 0 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-block-title i {
    color: var(--primary-green);
}

.shop-block-subtitle {
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0;
}

.featured-section {
    padding: 1.5rem 0;
}

.featured-section .products-grid-featured {
    margin-top: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 0;
}

.products-grid-featured {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.product-card {
    position: relative;
    cursor: pointer;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    min-width: 0;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-3d);
}

.product-card.featured {
    border-color: rgba(28, 142, 136, 0.2);
}

.product-card .product-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: var(--gray-light);
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

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

.product-content {
    padding: 1rem 1.1rem;
    min-width: 0;
}

.product-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-green);
    margin-bottom: 0.4rem;
}

.product-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-green);
    margin: 0 0 0.35rem 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-brand {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.product-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.85rem;
}

.product-price-row .product-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.price-original {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.9rem;
}

.price-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.product-stock {
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.product-stock.in-stock {
    color: var(--primary-green);
}

.product-stock.out-of-stock {
    color: #d32f2f;
}

.product-card .btn-primary.btn-sm,
.product-card .btn-add-cart-card {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.product-card .btn-secondary.btn-sm {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.product-card .btn-secondary.btn-sm:hover,
.product-card .btn-primary.btn-sm:hover,
.product-card .btn-add-cart-card:hover {
    background: #146964;
    color: var(--white);
    border-color: var(--primary-green);
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.4);
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #1a1a1a;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.35);
}

.product-image {
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product detail modal — professional layout */
.modal-shop .modal-content {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    max-width: 920px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(28, 142, 136, 0.08);
    border: 1px solid rgba(28, 142, 136, 0.12);
    animation: modalProductIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalProductIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-product .modal-body {
    padding: 0;
}

.modal-product-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.75rem 1.25rem 0.5rem 0;
    min-height: 3rem;
    flex-shrink: 0;
}

.modal-product .modal-close-btn {
    position: static;
    top: auto;
    right: auto;
    margin: 0;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--gray-dark);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: scale(1.05);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 420px;
}

.product-detail-image-wrap {
    /* background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 2.5rem; */
}

.product-detail-image-inner {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.product-detail-image-wrap img {
    width: 100%;
    height: 100%;
    /* max-height: 380px; */
    object-fit: contain;
    /* padding: 0.5rem; */
}

.product-detail-info {
    padding: 2.25rem 2.5rem 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-detail-header {
    margin-bottom: 1.25rem;
}

.product-detail-header .product-brand {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
}

.product-detail-name {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--dark-green);
    margin: 0 0 0.75rem 0;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.product-detail-price-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.price-large {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-green);
    letter-spacing: -0.02em;
}

.modal-discount {
    position: static;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
}

.modal-discount:empty {
    display: none;
}

.product-detail-body {
    flex: 1;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.product-detail-desc {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.65;
    margin: 0 0 1rem 0;
    overflow-y: auto;
}

.product-detail-stock {
    font-size: 0.9rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.product-detail-stock.in-stock {
    color: var(--primary-green);
}

.product-detail-stock.in-stock i {
    font-size: 0.95em;
}

.product-images img {
    width: 100%;
    border-radius: 8px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-group {
    margin: 0.5rem 0;
}

.option-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.option-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.option-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-light);
    background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.option-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.option-btn.active {
    border-color: var(--primary-green);
    background: var(--primary-green);
    color: var(--white);
}

.product-actions-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-selector button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--gray-dark);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.quantity-selector button:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: rgba(28, 142, 136, 0.08);
}

.quantity-selector button:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

.quantity-selector input {
    width: 58px;
    text-align: center;
    padding: 0.65rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-green);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quantity-selector input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(28, 142, 136, 0.15);
    outline: none;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.btn-add-cart {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(28, 142, 136, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-add-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(28, 142, 136, 0.4);
}

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

.btn-add-cart i {
    font-size: 1.05em;
}

/* Shop & Cart responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.25rem;
    }
    .products-grid-featured {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .shop-page .container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .product-detail-image-wrap {
        padding: 0;
        justify-content: stretch;
    }
    .product-detail-image-inner {
        max-width: none;
        width: 100%;
        aspect-ratio: auto;
        min-height: 220px;
        border-radius: 0 20px 20px 0;
        box-shadow: none;
    }
    .product-detail-image-wrap img {
        object-fit: cover;
    }
    .product-detail-info {
        padding: 1.5rem 1.5rem 1.75rem;
    }
    .product-detail-header {
        margin-bottom: 1rem;
    }
    .product-detail-name {
        font-size: 1.3rem;
    }
    .price-large {
        font-size: 1.5rem;
    }
    .product-detail-body {
        padding-top: 1rem;
        margin-bottom: 1.25rem;
    }
    .product-actions {
        flex-direction: column;
    }
    .quantity-selector {
        width: 100%;
        justify-content: flex-start;
    }
    .modal-shop .modal-content {
        max-width: 95vw;
        max-height: 90vh;
        margin: 1rem;
        overflow-y: auto;
        border-radius: 0 20px 20px 0;
    }
    .modal-close-btn {
        top: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
    }
    .shop-page .shop-header.booking-header {
        padding: 1.5rem 1rem;
    }
    .shop-filters {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    .shop-block-title {
        font-size: 1.2rem;
    }
    .shop-block-subtitle {
        font-size: 0.9rem;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .products-grid-featured {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .product-card .product-image {
        height: 200px;
    }
    .product-content {
        padding: 0.75rem 0.9rem;
    }
    .product-name {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }
    .price-current {
        font-size: 1.05rem;
    }
    .product-card .btn-secondary.btn-sm,
    .product-card .btn-add-cart-card {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }
    .discount-badge,
    .featured-badge {
        top: 8px;
        right: 8px;
        left: 8px;
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    .featured-badge {
        right: auto;
    }
    .cart-item-row {
        grid-template-columns: 70px 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.5rem 0.75rem;
        padding: 1rem 0;
    }
    .cart-item-image-wrap {
        grid-row: 1 / -1;
        align-self: start;
        width: 70px;
        height: 70px;
        border-radius: 10px;
    }
    .cart-item-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .cart-item-details {
        grid-column: 2;
        grid-row: 1;
    }
    .cart-item-details h4 {
        font-size: 0.95rem;
    }
    .cart-item-unit-price {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.9rem;
    }
    .cart-item-quantity {
        grid-column: 3;
        grid-row: 1;
        flex-direction: column;
        gap: 0.25rem;
        align-items: center;
    }
    .cart-item-quantity input {
        width: 40px;
    }
    .cart-item-line-total {
        grid-column: 2;
        grid-row: 2;
        min-width: auto;
        text-align: left;
        font-size: 0.95rem;
    }
    .cart-item-remove {
        grid-column: 3;
        grid-row: 2;
        align-self: start;
    }
    .cart-items-section {
        padding: 1rem 1.25rem;
    }
    .cart-summary-card {
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .shop-page .shop-header.booking-header {
        padding: 1.25rem 1rem;
    }
    .shop-filters {
        padding: 0.75rem;
        margin-bottom: 1.25rem;
    }
    .search-box input {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        font-size: 0.9rem;
    }
    .filter-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
    }
    .filter-btn i {
        display: inline;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .products-grid-featured {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .product-card .product-image {
        height: 140px;
    }
    .product-content {
        padding: 0.45rem 0.5rem;
    }
    .product-category {
        font-size: 0.6rem;
        margin-bottom: 0.2rem;
    }
    .product-name {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        line-height: 1.25;
        margin-bottom: 0.2rem;
    }
    .product-brand {
        font-size: 0.65rem;
        margin-bottom: 0.35rem;
    }
    .product-price-row {
        margin-bottom: 0.4rem;
        gap: 0.25rem 0.5rem;
    }
    .price-current {
        font-size: 0.8rem;
    }
    .price-original {
        font-size: 0.7rem;
    }
    .product-stock {
        font-size: 0.65rem;
    }
    .product-card .btn-add-cart-card {
        padding: 0.4rem 0.4rem;
        font-size: 0.7rem;
        margin-top: 0.35rem;
    }
    .product-card .btn-add-cart-card i {
        font-size: 0.65rem;
    }
    .shop-block {
        margin-bottom: 1.75rem;
    }
    .shop-block-header {
        margin-bottom: 1rem;
    }
    .shop-block-title {
        font-size: 1.1rem;
    }
    .modal-shop {
        padding: 0.5rem;
        align-items: flex-start;
    }
    .modal-shop .modal-content {
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 0 20px 20px 0;
        overflow-y: auto;
    }
    .product-detail-info {
        padding: 1.25rem;
    }
    .product-detail-name {
        font-size: 1.2rem;
    }
    .price-large {
        font-size: 1.35rem;
    }
    .product-detail-image-inner {
        max-width: none;
        width: 100%;
    }
    .quantity-selector button {
        width: 40px;
        height: 40px;
    }
    .btn-add-cart {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }
    .cart-item-image-wrap {
        width: 64px;
        min-width: 64px;
        height: 64px;
        border-radius: 10px;
    }
    .cart-item-name {
        font-size: 0.9rem;
    }
    .cart-item-unit-price {
        font-size: 0.85rem;
    }
    .cart-item-quantity .cart-qty-btn {
        width: 30px;
        height: 30px;
    }
    .cart-item-quantity input {
        width: 34px;
        padding: 0.25rem;
    }
    .cart-item-top {
        flex-wrap: wrap;
    }
    .cart-item-bottom {
        padding-top: 0.5rem;
    }
    .cart-empty {
        padding: 2rem 1rem;
    }
    .cart-empty i {
        font-size: 2rem;
    }
    .cart-empty h3 {
        font-size: 1.1rem;
    }
}

/* ===== Shop Landing Page – Enhanced Design ===== */
/* Hero */
.page-shop-landing .shop-hero {
    background: linear-gradient(145deg, #0d1f1e 0%, #0a2624 35%, #0d2e2c 70%, #0a1a19 100%);
}
.shop-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(28, 142, 136, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(127, 185, 194, 0.08) 0%, transparent 50%);
    pointer-events: none;
}
.page-shop-landing .shop-hero .hero-content {
    padding: 4rem 2rem;
}
.page-shop-landing .shop-hero .hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: 0.02em;
}
.page-shop-landing .shop-hero .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.92;
    max-width: 520px;
}
.page-shop-landing .shop-hero .hero-buttons {
    margin-bottom: 0;
    gap: 1rem;
}
.page-shop-landing .shop-hero .hero-buttons .btn-primary,
.page-shop-landing .shop-hero .hero-buttons .btn-secondary {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

/* Section layout */
.shop-section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
}
.shop-section-header {
    text-align: center !important;
    margin-bottom: 2.5rem;
    width: 100%;
}
.shop-section-header .section-title,
.page-shop-landing .shop-why .shop-section-header .section-title {
    font-size: 0.9rem;
    letter-spacing: 0.35em;
    margin-bottom: 0.5rem;
    text-align: center;
}
.shop-section-header .section-subtitle,
.page-shop-landing .shop-why .shop-section-header .section-subtitle {
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    text-align: center;
}

/* Categories – link cards */
.page-shop-landing .shop-categories {
    background: linear-gradient(180deg, var(--white) 0%, #f8faf9 100%);
}
.page-shop-landing .shop-categories .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.page-shop-landing .shop-categories .feature-card {
    padding: 2rem 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(28, 142, 136, 0.12);
    position: relative;
    overflow: hidden;
}
.page-shop-landing .shop-categories .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.page-shop-landing .shop-categories .feature-card:hover {
    border-color: rgba(28, 142, 136, 0.3);
    box-shadow: 0 12px 40px rgba(28, 142, 136, 0.12);
}
.page-shop-landing .shop-categories .feature-card:hover::before {
    opacity: 1;
}
.page-shop-landing .shop-categories .feature-icon {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(28, 142, 136, 0.12) 0%, rgba(20, 105, 100, 0.08) 100%);
    color: var(--primary-green);
}
.page-shop-landing .shop-categories .feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.05);
}
.page-shop-landing .shop-categories .feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.page-shop-landing .shop-categories .feature-card p {
    font-size: 0.9rem;
    line-height: 1.65;
}
.page-shop-landing .shop-categories .feature-card::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 1.25rem;
    right: 1.5rem;
    font-size: 0.85rem;
    color: var(--primary-green);
    opacity: 0.6;
    transition: transform 0.3s ease;
}
.page-shop-landing .shop-categories .feature-card:hover::after {
    transform: translateX(4px);
    opacity: 1;
}

/* Featured products section */
.shop-landing-featured {
    background: var(--white);
}
.shop-landing-featured .shop-section-inner {
    padding: 3rem 2rem 4rem;
}
.shop-landing-featured .section-header {
    margin-bottom: 1.5rem;
}

.shop-landing-products-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.shop-landing-products-wrap .products-grid {
    margin-top: 0;
}

.shop-landing-cta {
    text-align: center;
    margin-top: 2rem;
}

.shop-landing-cta .btn-primary {
    border-radius: 12px;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
}

/* Why Shop With Us */
.page-shop-landing .shop-why {
    background: linear-gradient(135deg, rgba(28, 142, 136, 0.06) 0%, rgba(127, 185, 194, 0.04) 100%);
}
.page-shop-landing .shop-why .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.page-shop-landing .shop-why .feature-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid transparent;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.page-shop-landing .shop-why .feature-card:hover {
    box-shadow: 0 12px 35px rgba(28, 142, 136, 0.15);
    border-color: rgba(28, 142, 136, 0.2);
}
.page-shop-landing .shop-why .feature-icon {
    margin-left: auto;
    margin-right: auto;
    width: 70px;
    height: 70px;
    font-size: 1.6rem;
}

/* CTA section */
.shop-cta-section {
    background: linear-gradient(160deg, #0d2624 0%, #0a1f1e 50%, #071918 100%);
    color: var(--white);
}
.shop-cta-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}
.shop-cta-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}
.shop-cta-title .gradient-text {
    background: linear-gradient(135deg, #7fb9c2 0%, #26bfb7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.shop-cta-text {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.shop-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.shop-cta-buttons .btn-primary {
    background: var(--gradient-primary);
}
.shop-cta-buttons .btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}
.shop-cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

/* Product cards on landing */
.page-shop-landing .shop-landing-featured .product-card {
    border-radius: 14px;
    overflow: hidden;
}
.page-shop-landing .shop-landing-featured .product-card:hover .product-image img {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .page-shop-landing .shop-categories .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-shop-landing .shop-why .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-section-inner {
        padding: 2rem 1rem;
    }
    .shop-landing-products-wrap {
        padding: 0 1rem;
    }
    .shop-landing-cta {
        margin-top: 1.5rem;
    }
    .shop-landing-cta .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    .page-shop-landing .shop-categories .features-grid {
        grid-template-columns: 1fr;
    }
    .page-shop-landing .shop-why .features-grid {
        grid-template-columns: 1fr;
    }
    .shop-cta-inner {
        padding: 3rem 1.5rem;
    }
    .shop-cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .shop-section-inner {
        padding: 1.5rem 0.75rem;
    }
    .shop-landing-products-wrap {
        padding: 0 0.5rem;
    }
    .shop-landing-featured .section-title {
        font-size: 1.4rem;
    }
    .shop-landing-cta {
        margin-top: 1.25rem;
    }
}

/* Cart page – professional card layout */
.cart-page .section-padding {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.cart-page .cart-header.booking-header {
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.cart-page .cart-header.booking-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.cart-page .cart-header.booking-header p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.75rem;
    align-items: start;
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

.cart-items-section {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.cart-items-section #cartItemsContainer {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Cart item card – professional white card */
.cart-item-card {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
    padding: 1.35rem 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.cart-item-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(28, 142, 136, 0.12);
}

.cart-item-top {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.cart-item-image-wrap {
    width: 100px;
    min-width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    margin: 0 0 0.35rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-green);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.cart-item-meta {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.4rem;
}

.cart-item-unit-price {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1c8e88;
}

.cart-item-unit-price .unit-each {
    font-weight: 400;
    color: var(--gray);
    font-size: 0.85rem;
}

/* Vertical quantity controls */
.cart-item-quantity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.cart-item-quantity .cart-qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e2e8f0;
    background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-green);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.cart-item-quantity .cart-qty-btn:hover {
    border-color: #1c8e88;
    background: rgba(28, 142, 136, 0.08);
    color: #1c8e88;
}

.cart-item-quantity input {
    width: 44px;
    text-align: center;
    padding: 0.4rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-quantity input:focus {
    outline: none;
    border-color: #1c8e88;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.cart-item-line-total {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1c8e88;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}

.cart-summary-section {
    position: sticky;
    top: 1rem;
}

.cart-summary-card {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.cart-summary-card h3 {
    margin: 0 0 1.15rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.cart-summary-card h3 i {
    color: #1c8e88;
    font-size: 1.1rem;
}

.cart-summary-card .summary-item {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cart-summary-card .summary-item strong {
    color: var(--dark-green);
    font-weight: 600;
    flex-shrink: 0;
}

.cart-summary-card .summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
    margin: 0.85rem 0;
}

.cart-summary-card .summary-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1c8e88;
    padding-top: 0.5rem;
}

.cart-summary-card .summary-total strong {
    font-size: 1.25rem;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.cart-actions .btn-primary {
    padding: 0.85rem 1.35rem;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(28, 142, 136, 0.25);
}

.cart-actions .btn-primary:hover {
    box-shadow: 0 4px 16px rgba(28, 142, 136, 0.35);
}

.cart-actions .btn-secondary {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 500;
}

.cart-actions .btn-secondary {
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.cart-empty {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.cart-empty i {
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 1rem;
    display: block;
}

.cart-empty h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-green);
    letter-spacing: -0.02em;
}

.cart-empty p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.cart-empty .btn-primary {
    border-radius: 10px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 10px rgba(28, 142, 136, 0.25);
}

/* Payment page – direct barcode (no wallet / no balance) */
.payment-page .payment-header.booking-header {
    margin-bottom: 2rem;
}

.payment-methods {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.payment-methods-title {
    margin: 0 0 1.25rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-methods-title i {
    color: var(--primary-green);
}

.payment-method-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.payment-method-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border: 2px solid var(--gray-light);
    background: var(--white);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-dark);
    transition: var(--transition-fast);
}

.payment-method-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: rgba(28, 142, 136, 0.06);
}

.payment-method-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

.payment-barcode-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    text-align: center;
}

.payment-barcode-for-label {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray);
}

.payment-barcode-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-green);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.payment-barcode-header h2 i {
    color: var(--primary-green);
}

.payment-barcode-subtitle {
    color: var(--gray);
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
}

.payment-amount-display {
    background: var(--gray-light);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-amount-label {
    color: var(--gray);
    font-size: 0.95rem;
}

.payment-amount-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-green);
}

.payment-barcode-wrap {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.payment-barcode-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.payment-barcode-placeholder {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    color: var(--gray);
    padding: 2rem;
}

.payment-barcode-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.payment-barcode-placeholder-hint {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.payment-barcode-placeholder-hint code {
    background: var(--gray-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.payment-receiver {
    color: var(--gray-dark);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}

.payment-receiver strong {
    color: var(--dark-green);
}

.payment-instruction {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Checkout page */
/* ===== Checkout Page – Redesigned ===== */
.checkout-section {
    padding: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    min-height: 100%;
    position: relative;
}

.checkout-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, rgba(28, 142, 136, 0.06) 0%, rgba(20, 105, 100, 0.04) 100%);
    pointer-events: none;
}

.checkout-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Step indicator */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.75rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.checkout-step-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    margin: -0.25rem;
    border-radius: 12px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.checkout-step-link:hover {
    transform: scale(1.05);
}

.checkout-step-link:hover .checkout-step-num {
    box-shadow: 0 4px 14px rgba(28, 142, 136, 0.35);
}

.checkout-step-link:not(.done):hover .checkout-step-num {
    background: linear-gradient(135deg, rgba(28, 142, 136, 0.25), rgba(28, 142, 136, 0.15));
    color: #1c8e88;
}

.checkout-step-link:not(.done):hover .checkout-step-label {
    color: var(--dark-green);
}

.checkout-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.checkout-step.done .checkout-step-num {
    background: linear-gradient(135deg, #1c8e88, #157a75);
    color: #fff;
    font-size: 0.85rem;
}

.checkout-step.active .checkout-step-num {
    background: linear-gradient(135deg, #1c8e88, #157a75);
    color: #fff;
    box-shadow: 0 4px 14px rgba(28, 142, 136, 0.4);
}

.checkout-step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray);
}

.checkout-step.active .checkout-step-label,
.checkout-step.done .checkout-step-label {
    color: var(--dark-green);
}

.checkout-step-line {
    width: 40px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 0.5rem;
}

.checkout-step.done + .checkout-step-line {
    background: linear-gradient(90deg, #1c8e88, #e2e8f0);
}

@media (max-width: 480px) {
    .checkout-steps {
        padding: 0.75rem 1rem;
    }
    .checkout-step-num {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .checkout-step-line {
        width: 24px;
    }
}

.checkout-header {
    margin-bottom: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.checkout-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1c8e88, #157a75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(28, 142, 136, 0.35);
}

.checkout-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-green);
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.02em;
}

.checkout-header p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.45;
}

.checkout-empty {
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(28, 142, 136, 0.12);
    position: relative;
    overflow: hidden;
}

.checkout-empty::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1c8e88, #26bfb7);
}

.checkout-empty i {
    font-size: 3.5rem;
    color: #1c8e88;
    opacity: 0.5;
    margin-bottom: 1.25rem;
    display: block;
    width: 80px;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(28, 142, 136, 0.12), rgba(28, 142, 136, 0.06));
    line-height: 80px;
}

.checkout-empty h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-green);
}

.checkout-empty p {
    color: var(--gray);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
    animation: checkoutFadeIn 0.4s ease-out;
}

@keyframes checkoutFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.checkout-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #1c8e88, #26bfb7);
    border-radius: 16px 0 0 16px;
}

.checkout-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(28, 142, 136, 0.06);
}

.checkout-order-summary h2,
.checkout-form-card h2 {
    margin: 0 0 1.25rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-green);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.checkout-order-summary h2 i,
.checkout-form-card h2 i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(28, 142, 136, 0.15), rgba(28, 142, 136, 0.08));
    color: #1c8e88;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.checkout-items-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.checkout-item-row {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-light, #eee);
    transition: background 0.2s ease;
    border-radius: 10px;
    margin: 0 -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.checkout-item-row:hover {
    background: rgba(28, 142, 136, 0.04);
}

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

.checkout-item-img-wrap {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.checkout-item-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-green);
}

.checkout-item-meta {
    font-size: 0.85rem;
    color: var(--gray);
}

.checkout-item-price-qty {
    font-size: 0.9rem;
    color: #1c8e88;
    font-weight: 500;
}

.checkout-item-line-total {
    font-weight: 700;
    font-size: 1rem;
    color: #1c8e88;
    text-align: right;
}

/* Checkout form */
.checkout-form-card .form-group {
    margin-bottom: 1rem;
}

.checkout-form-card label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-green);
    margin-bottom: 0.4rem;
}

.checkout-form-card input,
.checkout-form-card textarea,
.checkout-form-card .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: #fafbfc;
}

.checkout-form-card input:focus,
.checkout-form-card textarea:focus,
.checkout-form-card .form-select:focus {
    outline: none;
    border-color: #1c8e88;
    box-shadow: 0 0 0 4px rgba(28, 142, 136, 0.15);
    background: var(--white);
}

.checkout-form-card .form-hint {
    display: block;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.checkout-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.btn-place-order {
    flex: 1;
    min-width: 140px;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1c8e88 0%, #157a75 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(28, 142, 136, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-place-order::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-place-order:hover {
    background: linear-gradient(135deg, #157a75, #0d5c58);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 142, 136, 0.4);
}

.btn-place-order:hover::after {
    left: 100%;
}

.btn-back-cart {
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid #1c8e88;
    color: #1c8e88;
    text-decoration: none;
    background: transparent;
    transition: all 0.2s ease;
}

.btn-back-cart:hover {
    background: rgba(28, 142, 136, 0.1);
    color: #1c8e88;
    transform: translateX(-2px);
    box-shadow: 0 2px 12px rgba(28, 142, 136, 0.15);
}

.checkout-sidebar {
    position: sticky;
    top: 1rem;
}

.checkout-summary-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(28, 142, 136, 0.06);
    padding: 1.5rem;
    border: 1px solid rgba(28, 142, 136, 0.12);
    position: relative;
    overflow: hidden;
}

.checkout-summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1c8e88, #26bfb7);
}

.checkout-summary-card h3 {
    margin: 0 0 1.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-green);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.checkout-summary-card h3 i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(28, 142, 136, 0.15), rgba(28, 142, 136, 0.08));
    color: #1c8e88;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.checkout-summary-card .summary-row {
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

.checkout-summary-card .summary-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1c8e88;
    padding-top: 0.5rem;
}

.checkout-summary-card .summary-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 0.75rem 0;
}

.checkout-summary-card .btn-place-order {
    width: 100%;
    margin-top: 1.25rem;
}

/* Dark mode checkout adjustments */
html[data-theme="dark"] .checkout-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

html[data-theme="dark"] .checkout-section::before {
    background: linear-gradient(135deg, rgba(28, 142, 136, 0.08) 0%, rgba(20, 105, 100, 0.05) 100%);
}

html[data-theme="dark"] .checkout-form-card input,
html[data-theme="dark"] .checkout-form-card .form-select {
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .checkout-form-card input:focus,
html[data-theme="dark"] .checkout-form-card .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
}

/* My Orders page */
.orders-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.order-card {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.order-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.order-card-header h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-green);
}

.order-date {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray);
}

.order-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.order-card-body {
    margin-bottom: 1rem;
}

.order-card-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-dark, #333);
    margin-bottom: 0.35rem;
}

.order-card-row i {
    color: #1c8e88;
    width: 1rem;
}

.order-card-actions .btn-view-order {
    width: 100%;
    justify-content: center;
}

.status-badge.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.status-shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.status-badge.status-delivered {
    background: #dcfce7;
    color: #166534;
}

.status-badge.status-paid {
    background: #dcfce7;
    color: #166534;
}

.orders-empty,
.orders-empty-msg {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

.orders-empty i {
    font-size: 3rem;
    color: #1c8e88;
    opacity: 0.5;
    display: block;
    margin-bottom: 1rem;
}

.orders-empty p {
    margin-bottom: 1rem;
}

.modal-order-detail {
    max-width: 520px;
    padding: 1.75rem 2rem 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-order-detail .order-detail {
    padding-bottom: 0.5rem;
}

.order-detail h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--dark-green);
}

.order-detail h2 i {
    margin-right: 0.5rem;
    color: #1c8e88;
}

.order-detail-date {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.order-detail-status {
    margin-bottom: 1.25rem;
}

.order-tracking-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.order-tracking-hint {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.order-detail-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.order-detail-section:last-of-type {
    border-bottom: none;
}

.order-detail-section h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: var(--dark-green);
}

.order-detail-section h3 i {
    margin-right: 0.4rem;
    color: #1c8e88;
}

.order-detail-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.order-detail-items li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.order-detail-items .item-name {
    flex: 1;
}

.order-detail-items .item-qty {
    color: var(--gray);
}

.order-detail-items .item-price {
    font-weight: 600;
    color: #1c8e88;
}

.order-detail-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

.payment-method {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.modal-order-detail .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
}

/* =========================================
   PAYMENT RECEIPT SYSTEM
   ========================================= */

/* Receipt Upload Card */
.receipt-upload-card {
    padding: 2rem;
}

.receipt-instruction {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Receipt OCR (Tesseract.js) card */
.receipt-ocr-card {
    padding: 2rem;
}

.receipt-ocr-card .file-upload-area {
    padding: 2rem;
}

.ocr-result {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.ocr-result h4 {
    margin-bottom: 0.75rem;
}

.ocr-fields {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
    margin-bottom: 1rem;
}

.ocr-fields dt {
    font-weight: 600;
    color: var(--gray);
}

.ocr-fields dd {
    margin: 0;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.file-upload-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.file-upload-area p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.file-types {
    font-size: 0.85rem;
    color: var(--gray);
}

.file-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.file-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    background: var(--bg-light);
}

.btn-remove-file {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--error-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.btn-remove-file:hover {
    transform: scale(1.1);
}

/* Receipt Notes */
.receipt-notes {
    background: rgba(var(--warning-rgb), 0.1);
    border-left: 4px solid var(--warning-color);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.receipt-notes h4 {
    color: var(--warning-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.receipt-notes ul {
    margin: 0;
    padding-left: 1.25rem;
}

.receipt-notes li {
    margin-bottom: 0.25rem;
    color: var(--dark);
    font-size: 0.9rem;
}

/* Receipt Status Display */
.receipt-status {
    text-align: center;
    padding: 2rem;
}

.receipt-status .status-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.receipt-status h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.receipt-status p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.status-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Phone Number Display */
.payment-phone-number {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.payment-phone-number strong {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Match Price Display */
.match-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--success-color);
    font-weight: 600;
}

.match-price i {
    font-size: 1.1rem;
}

/* Summary Highlight */
.summary-highlight {
    background: rgba(var(--primary-rgb), 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    margin: 0.5rem 0;
}

/* =========================================
   ADMIN RECEIPTS PAGE
   ========================================= */

/* Type Badges */
.type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.type-booking {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.type-order {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.type-match {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.type-tournament {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

/* Score Badges */
.score-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.score-high {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.score-medium {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.score-low {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* === Receipts Admin Page (redesigned) === */
.receipts-page .admin-content {
    padding-bottom: 2rem;
}

.receipts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.receipts-header__content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.receipts-header__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 16px;
    font-size: 1.5rem;
}

.receipts-header__title {
    margin: 0 0 0.25rem 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-green);
    letter-spacing: -0.02em;
}

.receipts-header__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray);
}

.btn-icon-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.receipts-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.receipts-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.receipts-stat-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.receipts-stat-card__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
}

.receipts-stat-card--pending .receipts-stat-card__icon {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.receipts-stat-card--review .receipts-stat-card__icon {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.receipts-stat-card--approved .receipts-stat-card__icon {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.receipts-stat-card--rejected .receipts-stat-card__icon {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.receipts-stat-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.receipts-stat-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-green);
    line-height: 1.2;
}

.receipts-stat-card__label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

.receipts-filters {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 14px;
}

.receipts-filters__group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.receipts-filters__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.receipts-filters__select {
    padding: 0.65rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    min-width: 160px;
    background: var(--white);
    color: var(--dark-green);
}

.receipts-filters__select:focus {
    outline: none;
    border-color: var(--light-green);
}

.receipts-table-wrapper {
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
}

.receipts-table-wrapper .admin-table th,
.receipts-table-wrapper .admin-table td {
    padding: 1rem 1.25rem;
}

.receipts-table-wrapper .btn-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-right: 0.25rem;
}

@media (max-width: 1024px) {
    .receipts-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .receipts-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .receipts-stats {
        grid-template-columns: 1fr;
    }
    .receipts-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .receipts-filters__select {
        min-width: 0;
    }
}

/* === Products Admin Page (redesigned) === */
.products-page .admin-content {
    padding-bottom: 2rem;
}

.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.products-header__content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.products-header__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 16px;
    font-size: 1.5rem;
}

.products-header__title {
    margin: 0 0 0.25rem 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-green);
    letter-spacing: -0.02em;
}

.products-header__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray);
}

.products-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.products-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.products-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.products-stat-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.products-stat-card__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
}

.products-stat-card--total .products-stat-card__icon {
    background: rgba(28, 142, 136, 0.15);
    color: var(--primary-green);
}

.products-stat-card--featured .products-stat-card__icon {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.products-stat-card--categories .products-stat-card__icon {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.products-stat-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.products-stat-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-green);
    line-height: 1.2;
}

.products-stat-card__label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

.products-filters {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 14px;
}

.products-filters__group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.products-filters__group--search {
    flex: 1;
    min-width: 200px;
}

.products-filters__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.products-filters__select {
    padding: 0.65rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    min-width: 160px;
    background: var(--white);
    color: var(--dark-green);
}

.products-filters__select:focus {
    outline: none;
    border-color: var(--light-green);
}

.products-filters__input {
    min-width: 0;
}

.products-table-wrapper {
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
}

.products-table-wrapper .admin-table th,
.products-table-wrapper .admin-table td {
    padding: 1rem 1.25rem;
}

.products-table-wrapper .btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    margin-right: 0.25rem;
}

@media (max-width: 1024px) {
    .products-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .products-header__actions {
        flex-wrap: wrap;
    }
    .products-stats {
        grid-template-columns: 1fr;
    }
    .products-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .products-filters__select {
        min-width: 0;
    }
}

/* Product Modal (redesigned) */
.modal-content--product {
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.product-modal-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 2rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    flex-shrink: 0;
}

.product-modal-header__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    font-size: 1.5rem;
}

.product-modal-header__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
    letter-spacing: -0.02em;
}

.product-modal-header__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

.product-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.product-form__body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.product-form-section {
    margin-bottom: 1.75rem;
}

.product-form-section:last-child {
    margin-bottom: 0;
}

.product-form-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-form-section__title i {
    opacity: 0.85;
    font-size: 0.9rem;
}

.product-form-section .form-group {
    margin-bottom: 1.25rem;
}

.product-form-section .form-group:last-child {
    margin-bottom: 0;
}

.product-form .required {
    color: var(--primary-green);
    font-weight: 600;
}

.product-form__featured-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark-green);
}

.product-form__featured-label span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.product-form__featured-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary-green);
}

.product-form-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.25rem 2rem;
    background: var(--gray-light);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.product-form-footer .btn-primary--icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

html[data-theme="dark"] .product-modal-header .product-modal-header__title,
html[data-theme="dark"] .product-modal-header .product-modal-header__subtitle {
    color: #ffffff;
}

@media (max-width: 640px) {
    .product-modal-header,
    .product-form__body,
    .product-form-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .product-form-section .form-row {
        grid-template-columns: 1fr;
    }
}

/* === Orders Admin Page (redesigned) === */
.orders-page .admin-content {
    padding-bottom: 2rem;
}

.orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.orders-header__content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.orders-header__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 16px;
    font-size: 1.5rem;
}

.orders-header__title {
    margin: 0 0 0.25rem 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-green);
    letter-spacing: -0.02em;
}

.orders-header__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray);
}

.orders-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.orders-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.orders-stat-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.orders-stat-card__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
}

.orders-stat-card--orders .orders-stat-card__icon {
    background: rgba(28, 142, 136, 0.15);
    color: var(--primary-green);
}

.orders-stat-card--revenue .orders-stat-card__icon {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.orders-stat-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.orders-stat-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-green);
    line-height: 1.2;
}

.orders-stat-card__label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

.orders-table-wrapper {
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
}

.orders-table-wrapper .admin-table th,
.orders-table-wrapper .admin-table td {
    padding: 1rem 1.25rem;
}

.orders-table-wrapper .btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
}

@media (max-width: 640px) {
    .orders-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .orders-stats {
        grid-template-columns: 1fr;
    }
}

/* Order Details Modal (redesigned) */
.modal-content--order {
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.order-modal-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 2rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    flex-shrink: 0;
}

.order-modal-header__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    font-size: 1.5rem;
}

.order-modal-header__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: inherit;
    letter-spacing: -0.02em;
}

.order-modal-header__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

.order-modal__body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.order-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1.25rem 2rem;
    background: var(--gray-light);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.order-detail-section {
    margin-bottom: 1.5rem;
}

.order-detail-section:last-child {
    margin-bottom: 0;
}

.order-detail-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-detail-section__title i {
    opacity: 0.85;
}

.order-detail-grid {
    display: grid;
    gap: 0.35rem 1rem;
    grid-template-columns: auto 1fr;
    font-size: 0.95rem;
}

.order-detail-grid dt,
.order-detail-grid dd {
    grid-column: span 1;
}

.order-detail-grid dt {
    margin: 0;
    font-weight: 600;
    color: var(--gray);
    min-width: 90px;
}

.order-detail-grid dd {
    margin: 0;
    color: var(--dark-green);
}

.order-detail-section .admin-table {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.order-detail-section .admin-table th,
.order-detail-section .admin-table td {
    padding: 0.6rem 0.75rem;
}

.order-detail-total-row {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
}

html[data-theme="dark"] .order-modal-header .order-modal-header__title,
html[data-theme="dark"] .order-modal-header .order-modal-header__subtitle {
    color: #ffffff;
}

@media (max-width: 640px) {
    .order-modal-header,
    .order-modal__body,
    .order-modal-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* Receipt Details Modal (redesigned) */
.modal-content--receipt {
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.receipt-modal__inner {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.receipt-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    flex-shrink: 0;
}

.receipt-modal-header__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1.25rem;
}

.receipt-modal-header__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: inherit;
}

.receipt-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1.75rem;
    padding: 1.5rem 2rem;
}

.receipt-modal__screenshot {
    position: sticky;
    top: 0;
}

.receipt-modal__screenshot-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.receipt-modal__image-wrap {
    border-radius: 12px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    background: var(--gray-light);
}

.receipt-modal__image {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.receipt-modal__image:hover {
    opacity: 0.92;
}

.receipt-modal__image-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
    padding: 0.5rem 0;
}

.receipt-modal__info-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.receipt-modal__info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.25rem;
}

.receipt-modal__info-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.receipt-modal__info-item label {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.receipt-modal__info-item span,
.receipt-modal__info-item strong {
    font-size: 0.95rem;
    color: var(--dark-green);
}

.receipt-modal__user-email {
    font-size: 0.85rem !important;
    color: var(--gray) !important;
    font-weight: 400;
}

.receipt-modal__notes {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--gray-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
}

.receipt-modal__notes h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-green);
}

.receipt-modal__notes p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-dark);
    white-space: pre-wrap;
}

.receipt-modal__reviewed {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.receipt-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.25rem 2rem;
    background: var(--gray-light);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.receipt-modal-footer .btn-secondary,
.receipt-modal-footer .btn-success,
.receipt-modal-footer .btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .receipt-modal__grid {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }
    .receipt-modal-header {
        padding: 1.25rem;
    }
    .receipt-modal-footer {
        padding: 1rem 1.25rem;
        flex-wrap: wrap;
    }
}

html[data-theme="dark"] .receipt-modal-header .receipt-modal-header__title {
    color: #ffffff;
}

/* Receipt Details Grid (legacy – keep for JS-generated content if needed) */
.receipt-details-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .receipt-details-grid {
        grid-template-columns: 1fr;
    }
}

.receipt-screenshot h3,
.receipt-info h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--dark);
}

.receipt-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: opacity 0.2s;
}

.receipt-image:hover {
    opacity: 0.9;
}

.click-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.receipt-info .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.receipt-info .info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.receipt-info .info-item label {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}

.receipt-info .info-item span {
    font-size: 0.95rem;
    color: var(--dark);
}

.verification-notes {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.verification-notes h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.verification-notes p {
    font-size: 0.9rem;
    color: var(--gray);
    white-space: pre-wrap;
}

.review-info {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

/* User Cell in Table */
.user-cell {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.user-cell .user-name {
    font-weight: 500;
}

.user-cell small {
    color: var(--gray);
    font-size: 0.8rem;
}

/* Button variants */
.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    opacity: 0.9;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-icon.btn-success {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.btn-icon.btn-danger {
    color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
}

/* Modal large */
.modal-lg .modal-content {
    max-width: 900px;
}