/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background: #f9fafb;
    overflow-x: clip;
    width: 100%;
    position: relative;
    /* Notched phones / home indicator */
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

/* Hide site header/footer when dashboard is active */
body:has(.dashboard-layout) .top-bar,
body:has(.dashboard-layout) .header,
body:has(.dashboard-layout) .footer {
    display: none !important;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Top Bar */
.top-bar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    position: sticky;
    top: 0;
    z-index: 1001;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.top-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.8125rem;
}

.top-bar-link:hover {
    color: #fbbf24;
}

.top-bar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: #9ca3af;
    margin-right: 0.5rem;
}

.top-bar-icon svg {
    width: 100%;
    height: 100%;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.top-bar-social-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.top-bar-social-link svg {
    width: 16px;
    height: 16px;
}

/* Header - Professional Design */
.header {
    background: rgba(45, 15, 58, 0.95);
    color: #fff;
    padding: 1.5rem 0;
    position: sticky;
    top: 36px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: top 0.3s ease, transform 0.3s ease;
    overflow: visible;
    width: 100%;
}

.header .container {
    overflow: visible;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.header .nav > * {
    flex-shrink: 0;
    min-width: 0;
}

.header .logo {
    overflow: visible;
    text-overflow: clip;
}

.header .main-nav {
    overflow: visible;
}

.header .header-auth {
    overflow: visible;
}

.header.scrolled {
    top: 0;
}

.header.glass {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(45, 15, 58, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    gap: clamp(1rem, 2vw + 0.5rem, 2rem);
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
    overflow: visible;
    position: relative;
    box-sizing: border-box;
}

/* Ensure nav children have proper flex behavior */
.nav > * {
    flex-shrink: 0;
    min-width: 0;
}

.nav .logo {
    flex: 0 0 auto;
    max-width: 22%;
}

.nav .main-nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    justify-content: center;
}

.nav .header-auth {
    flex: 0 0 auto;
    flex-shrink: 0;
}

.nav .mobile-menu-toggle {
    flex: 0 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    flex-shrink: 0;
    min-width: 0;
    max-width: 22%;
    overflow: visible;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    gap: 0.375rem;
    align-items: flex-start;
    justify-content: flex-start;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo-main {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.02em;
}

.logo-accent {
    color: #fbbf24;
    position: relative;
}

.logo-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24, transparent);
    opacity: 0.4;
}

.logo-tagline {
    display: block;
    font-size: 0.5875rem;
    opacity: 0.7;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: #d1d5db;
    line-height: 1.4;
}

.logo-image {
    max-height: 35px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 0.25rem;
    align-self: flex-start;
}

/* Responsive Header Breakpoints */
@media (max-width: 1400px) {
    .nav {
        gap: 1.5rem;
    }
    
    .main-nav {
        gap: 1.25rem;
    }
    
    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.625rem;
    }
    
    .nav-link.nav-cta {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .header-auth {
        gap: 0.625rem;
        margin-left: 0.75rem;
    }
}

@media (max-width: 1200px) {
    .nav {
        gap: 1rem;
    }
    
    .main-nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.8125rem;
        padding: 0.5rem 0.5rem;
    }
    
    .nav-link.nav-cta {
        padding: 0.5625rem 1rem;
        font-size: 0.75rem;
    }
    
    .header-auth {
        gap: 0.5rem;
        margin-left: 0.5rem;
    }
    
    .cart-button {
        width: 38px;
        height: 38px;
    }
    
    .cart-button svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 1024px) {
    .nav {
        gap: 0.75rem;
    }
    
    .logo {
        flex: 0 0 auto;
        max-width: 30%;
    }
    
    /* Use mobile menu below 1024px so desktop nav never clips; size is the determinant */
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        margin-left: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
    }
    
    .nav-link {
        font-size: 0.8125rem;
        padding: 0.4375rem 0.4375rem;
    }
    
    .nav-link.nav-cta {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        margin-left: 0.25rem;
    }
    
    .header-auth {
        gap: 0.5rem;
        margin-left: 0.5rem;
        flex-shrink: 0;
        max-width: none;
        overflow: visible;
    }
    
    .auth-links {
        gap: 0.375rem;
    }
    
    .header-auth .btn.small {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .cart-button {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 768px) {
    .logo-image {
        max-height: 28px;
    }
    
    .nav {
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    
    .main-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 0.375rem 0.375rem;
    }
    
    /* Hide more nav links on smaller tablets */
    .main-nav .nav-link:not(.nav-cta) {
        display: none;
    }
    
    .nav-link.nav-cta {
        padding: 0.4375rem 0.75rem;
        font-size: 0.6875rem;
        margin-left: 0;
    }
    
    .header-auth {
        gap: 0.375rem;
        margin-left: 0.25rem;
    }
    
    .cart-button {
        width: 36px;
        height: 36px;
    }
    
    .cart-button svg {
        width: 16px;
        height: 16px;
    }
    
    .auth-links {
        gap: 0.25rem;
    }
    
    .header-auth .btn.small {
        padding: 0.4375rem 0.75rem;
        font-size: 0.6875rem;
    }
    
    /* Hide button text, show icons only */
    .header-auth .btn.small span,
    .header-auth .btn.small:not(:has(svg)) {
        display: none;
    }
    
    .header-auth .btn.small:has(svg) {
        width: 36px;
        height: 36px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.2vw + 0.4rem, 1.5rem);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: visible;
    max-width: 100%;
}

.nav-link {
    color: #e5e7eb;
    text-decoration: none;
    font-size: clamp(0.8125rem, 0.8vw + 0.65rem, 0.9375rem);
    font-weight: 500;
    padding: clamp(0.375rem, 0.5vw + 0.35rem, 0.5rem) clamp(0.5rem, 0.6vw + 0.4rem, 0.75rem);
    position: relative;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.nav-cta {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    padding: clamp(0.5rem, 0.5vw + 0.4rem, 0.625rem) clamp(1rem, 1.5vw + 0.5rem, 1.5rem);
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    flex-shrink: 0;
    font-size: clamp(0.75rem, 0.7vw + 0.6rem, 0.875rem);
}

.nav-link.nav-cta::after {
    display: none;
}

.nav-link.nav-cta:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* Cart Dropdown Container */
.cart-dropdown-container {
    position: relative;
}

/* Cart Button */
.cart-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #e5e7eb;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.cart-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cart-button svg {
    width: 20px;
    height: 20px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: cartBadgePulse 0.3s ease;
}

@keyframes cartBadgePulse {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.mobile-menu-cart-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-cart-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    margin-left: auto;
}

/* Cart Dropdown */
.cart-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    max-height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
}

.cart-dropdown-container:hover .cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown-header {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-dropdown-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.cart-item-count {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.cart-dropdown-items {
    max-height: 400px;
    overflow-y: auto;
    padding: 1.5rem 0;
}

.cart-dropdown-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.cart-dropdown-item:last-child {
    border-bottom: none;
}

.cart-dropdown-item:hover {
    background: #f9fafb;
}

.cart-dropdown-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.cart-dropdown-item-details {
    flex: 1;
    min-width: 0;
}

.cart-dropdown-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.cart-dropdown-item-name a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.cart-dropdown-item-name a:hover {
    color: #5a3d7a;
}

.cart-dropdown-item-variant {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
}

.cart-dropdown-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.cart-dropdown-item-quantity {
    color: #6b7280;
}

.cart-dropdown-item-price {
    font-weight: 600;
    color: #111827;
}

.cart-dropdown-footer {
    padding: 1.75rem 2rem;
    border-top: 2px solid #e5e7eb;
    background: #f9fafb;
}

.cart-dropdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.cart-dropdown-total-label {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.cart-dropdown-total-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.cart-dropdown-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-dropdown-actions .btn.full-width {
    width: 100%;
    text-align: center;
}

/* Empty Cart Dropdown */
.cart-dropdown-empty {
    width: 320px;
}

.cart-dropdown-empty-content {
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cart-dropdown-empty-content svg {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.cart-dropdown-empty-content p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* Cart Dropdown Scrollbar */
.cart-dropdown-items::-webkit-scrollbar {
    width: 6px;
}

.cart-dropdown-items::-webkit-scrollbar-track {
    background: #f9fafb;
}

.cart-dropdown-items::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.cart-dropdown-items::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ================= SHOPPING CART PAGE ================= */
.cart-layout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .cart-layout-grid {
        grid-template-columns: 1fr;
    }
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f3f4f6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border-color: #e5e7eb;
}

.cart-item-image {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #f3f4f6;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cart-item-card:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.cart-item-details {
    margin-bottom: 1rem;
    padding-right: 0.5rem;
}

.cart-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #111827;
    line-height: 1.4;
}

.cart-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.cart-item-title a:hover {
    color: #5a3d7a;
}

.cart-item-variant {
    font-size: 0.8125rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.cart-item-price-unit {
    font-size: 0.9375rem;
    color: #9ca3af;
    margin: 0;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: auto;
}

.cart-quantity-selector {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 2px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #4b5563;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.qty-input {
    width: 44px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-total-price {
    font-size: 1.375rem;
    font-weight: 800;
    color: #111827;
    margin-left: auto;
    letter-spacing: -0.01em;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.cart-item-remove:hover {
    color: #ef4444;
    background: #fef2f2;
    transform: scale(1.05);
}

/* Order Summary Sticky */
.cart-summary-sticky {
    position: sticky;
    top: 120px;
    z-index: 10;
}

.cart-summary-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #111827;
    letter-spacing: -0.02em;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2rem 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    color: #4b5563;
    font-size: 0.9375rem;
}

.summary-total {
    border-top: 2px dashed #e5e7eb;
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 700;
}

.order-total-amount {
    color: #111827;
    font-size: 1.5rem;
}

.cart-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-summary-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
}

@media (max-width: 640px) {
    .cart-item-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .cart-item-image {
        width: 100%;
        height: 220px;
    }

    .cart-item-actions {
        flex-wrap: wrap;
        gap: 1.25rem;
        justify-content: space-between;
    }

    .cart-item-total-price {
        width: 100%;
        text-align: right;
        order: -1;
        margin-bottom: 0.5rem;
    }
}

/* Header Auth Section */
.header-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;
    flex-shrink: 0;
    min-width: 0;
    overflow: visible;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #e5e7eb;
    text-decoration: none;
}

/* User Menu Dropdown */
.user-menu-container {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #e5e7eb;
}

.user-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-weight: 700;
    font-size: 0.875rem;
}

.user-name-short {
    font-size: 0.9375rem;
    font-weight: 600;
    display: none;
}

.user-menu-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.user-menu-dropdown.active~.user-menu-trigger .user-menu-chevron,
.user-menu-trigger:focus+.user-menu-dropdown.active~.user-menu-trigger .user-menu-chevron {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(107, 42, 42, 0.05), rgba(74, 26, 74, 0.05));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.user-menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(107, 42, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu-info {
    flex: 1;
    min-width: 0;
}

.user-menu-name {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    display: block;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-email {
    font-size: 0.8125rem;
    color: #6b7280;
    display: block;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-role {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3125rem 0.625rem;
    border-radius: 0.375rem;
    margin-top: 0.375rem;
}

.role-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3125rem 0.625rem;
    border-radius: 0.375rem;
}

.role-admin {
    color: #991b1b;
    background: rgba(254, 226, 226, 0.8);
}

.role-athlete {
    color: #1e40af;
    background: rgba(219, 234, 254, 0.8);
}

.role-coach {
    color: #166534;
    background: rgba(220, 252, 231, 0.8);
}

.role-organizer {
    color: #7c2d12;
    background: rgba(254, 243, 199, 0.8);
}

.role-school,
.role-institution,
.role-organization {
    color: #6b21a8;
    background: rgba(243, 232, 255, 0.8);
}

.user-menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 0.5rem 0;
}

.user-menu-nav {
    padding: 0.5rem 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.user-menu-item:hover {
    background: rgba(107, 42, 42, 0.05);
    color: #6b2a2a;
    border-left-color: #6b2a2a;
    padding-left: 1.5rem;
}

.user-menu-item svg {
    flex-shrink: 0;
    color: #6b7280;
    transition: color 0.2s ease;
}

.user-menu-item:hover svg {
    color: #6b2a2a;
}

.user-menu-logout {
    color: #dc2626;
}

.user-menu-logout:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-left-color: #dc2626;
}

.user-menu-logout svg {
    color: #dc2626;
}

.user-menu-footer {
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Mobile User Menu Styles */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.mobile-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.mobile-user-email {
    display: block;
    font-size: 0.8125rem;
    color: #d1d5db;
    margin-bottom: 0.25rem;
}

.mobile-user-role {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-menu-logout {
    color: #ef4444;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.mobile-menu-logout:hover {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
}

.user-name:hover {
    color: #fbbf24;
}

.mobile-menu-auth {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-user-info {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.mobile-user-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-user-name:hover {
    color: #fbbf24;
}

.mobile-user-email {
    display: block;
    font-size: 0.875rem;
    color: #d1d5db;
}

.mobile-menu-auth-link {
    display: block;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-auth-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(251, 191, 36, 0.5);
}

.mobile-menu-auth-link.mobile-menu-auth-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    border: none;
}

.mobile-menu-auth-link.mobile-menu-auth-primary:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    position: relative;
    margin-left: 0.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    left: -100%;
    top: 0;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: linear-gradient(135deg, rgba(45, 15, 58, 0.98), rgba(74, 26, 74, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1003;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    visibility: hidden;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    left: 0;
    visibility: visible;
}

/* Hide mobile menu on desktop */
@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }

    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Mobile menu improvements for small screens */
@media (max-width: 480px) {
    .mobile-menu {
        width: 90%;
        max-width: 350px;
    }
    
    .mobile-menu-nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        min-height: 44px;
    }
    
    .mobile-menu-header {
        padding: 1.25rem 1rem;
    }
    
    .mobile-menu-content {
        padding: 1.25rem 1rem;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0.375rem;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-logo .logo-image {
    max-height: 32px;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
}

.mobile-menu-content {
    padding: 1.5rem;
}

.mobile-menu-topbar {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.mobile-menu-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.mobile-menu-link:hover {
    color: #fbbf24;
}

.mobile-menu-link svg {
    flex-shrink: 0;
    color: #9ca3af;
}

.mobile-menu-social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.mobile-menu-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-menu-social-link:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    transform: translateY(-2px);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-nav-link {
    display: block;
    padding: 1rem 1.25rem;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    min-height: 48px;
    touch-action: manipulation;
    display: flex;
    align-items: center;
}

.mobile-menu-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-left-color: #fbbf24;
    padding-left: 1.5rem;
}

.mobile-menu-nav-link:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

.mobile-menu-nav-cta {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-weight: 700;
    border-left: none;
    text-align: center;
    margin-top: 0.5rem;
}

.mobile-menu-nav-cta:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    padding-left: 1.25rem;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero */
.hero {
    background: linear-gradient(to right, #6b2a2a, #4a1a4a);
    color: white;
    position: relative;
    overflow: hidden;
    height: auto;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.75rem 0;
    width: 100%;
}

.hero .container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 39px,
            rgba(255, 255, 255, 0.06) 39px,
            rgba(255, 255, 255, 0.06) 41px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 39px,
            rgba(255, 255, 255, 0.06) 39px,
            rgba(255, 255, 255, 0.06) 41px);
    background-size: 40px 40px;
    background-position: 50% 50%;
    z-index: 0;
    pointer-events: none;
    transform-origin: center;
    transition: background-position 0.05s ease-out, filter 0.1s ease-out, transform 0.1s ease-out;
    --wave-x: 0;
    --wave-y: 0;
    --wave-intensity: 0;
    --wave-rotation: 0;
    filter:
        blur(calc(var(--wave-intensity) * 4px)) brightness(calc(1 + var(--wave-intensity) * 0.4));
    transform:
        translate(calc(var(--wave-x) * var(--wave-intensity) * 8px),
            calc(var(--wave-y) * var(--wave-intensity) * 8px)) rotate(calc(var(--wave-rotation) * var(--wave-intensity) * 0.5deg)) scale(calc(1 + var(--wave-intensity) * 0.1));
    background-position:
        calc(50% + var(--wave-x) * var(--wave-intensity) * 12px) calc(50% + var(--wave-y) * var(--wave-intensity) * 12px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 0.25rem 0;
    box-sizing: border-box;
    overflow: visible;
}

.hero-content,
.hero.enhanced .hero-copy-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    padding: 0;
}

.hero.enhanced .hero-copy-top,
.hero.enhanced .hero-copy-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 769px) {
    .hero.enhanced .hero-copy-column {
        gap: 1.125rem;
    }
}

/* Public events listing (?events) — left-aligned hero to match badge */
.hero-events-list .hero-content {
    text-align: left;
    align-items: flex-start;
}

.hero-events-list .hero-grid {
    justify-items: start;
}

.badge {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background: rgba(139, 69, 69, 0.7);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    backdrop-filter: blur(8px);
    width: auto;
    max-width: fit-content;
}

.hero-content h1,
.hero.enhanced .hero-copy-top h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.hero-content h1 span,
.hero.enhanced .hero-copy-top h1 span {
    color: #fbbf24;
}

.hero-content p,
.hero.enhanced .hero-copy-body p {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background: rgba(251, 191, 36, 0.2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fff;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
    animation: buttonGlowPulse 2s ease-in-out infinite;
}

.btn.primary:hover {
    background: rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    animation: buttonGlowPulseHover 1.5s ease-in-out infinite;
}

@keyframes buttonGlowPulse {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
        border-color: rgba(251, 191, 36, 0.3);
    }

    50% {
        box-shadow: 0 4px 24px rgba(251, 191, 36, 0.4), 0 0 20px rgba(251, 191, 36, 0.3);
        border-color: rgba(251, 191, 36, 0.5);
    }
}

@keyframes buttonGlowPulseHover {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    }

    50% {
        box-shadow: 0 6px 30px rgba(251, 191, 36, 0.6), 0 0 30px rgba(251, 191, 36, 0.4);
    }
}

.btn.outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn.outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn.ghost {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn.small {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.hero-stats>div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 1.5rem;
    font-weight: 700;
}

.hero-stats span {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Hero Stats Cards */
.hero-stats-cards {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    min-width: 100px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(251, 191, 36, 0.4),
        0 0 50px rgba(251, 191, 36, 0.2);
}

.hero-stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-stat-card .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* Hero overflow and padding handled above */

.hero-visual {
    position: relative;
    will-change: transform;
    transition: transform 0.1s ease-out;
    z-index: 1;
    margin-bottom: -6rem;
    transform: scale(1);
    transform-origin: center bottom;
    max-width: 100%;
    overflow: visible;
    width: 100%;
}

.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    position: relative;
    z-index: 1;
}

.hero-visual .glow {
    position: absolute;
    inset: -20px;
    background:
        radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.4), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(245, 158, 11, 0.3), transparent 50%),
        radial-gradient(circle at center, rgba(251, 191, 36, 0.2), transparent 70%);
    -webkit-filter: blur(30px);
    filter: blur(30px);
    z-index: -1;
    opacity: 0.8;
    animation: glowPulse 4s ease-in-out infinite;
    border-radius: 16px;
    transform-origin: center;
    width: 100%;
    max-width: 100%;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Features */
.features {
    padding: 6rem 0;
    padding-top: 5rem;
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
    position: relative;
    z-index: 2;
    overflow: hidden;
    width: 100%;
    overflow-x: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.05), transparent);
    pointer-events: none;
}

.features::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(0deg, rgba(107, 42, 42, 0.03), transparent);
    pointer-events: none;
}

/* Animated background pattern */
.features::before {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(107, 42, 42, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, rgba(251, 191, 36, 0.05), transparent);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {

    0%,
    100% {
        opacity: 1;
        transform: translateY(0);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-10px);
    }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Decorative background elements */
.feature-grid::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float 15s ease-in-out infinite;
}

.feature-grid::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 42, 42, 0.06), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.8;
    }
}

@media (max-width: 968px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

}

.feature-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, .08),
        0 1px 3px rgba(0, 0, 0, .1),
        0 0 0 1px rgba(0, 0, 0, .02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .04);
    background-clip: padding-box;
    transform: translateY(0) perspective(1000px);
    transform-style: preserve-3d;
    will-change: transform;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, #6b2a2a, #4a1a4a, #6b2a2a);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: -200% 0;
    }

    50% {
        background-position: 200% 0;
    }
}

/* Subtle glow effect on cards */
.feature-card {
    position: relative;
}

.feature-card::before {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0);
    transition: box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.03) rotateX(2deg);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, .18),
        0 0 50px rgba(107, 42, 42, 0.5),
        0 0 80px rgba(74, 26, 74, 0.4),
        0 0 0 1px rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
}

.feature-card:hover::after {
    opacity: 1;
    animation: gradientShift 2s ease infinite;
}

/* Color Variants for Feature Cards */

/* Orange - Shop & Tickets */
.feature-card.color-orange {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
    background-size: 200% 200%;
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow:
        0 8px 30px rgba(251, 191, 36, 0.4),
        0 4px 15px rgba(0, 0, 0, .1),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: gradientShift 4s ease infinite;
}

.feature-card.color-orange::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.15));
    background-size: 200% 100%;
    animation: shimmer 2s ease infinite;
}

.feature-card.color-orange::after {
    opacity: 0.2;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
}

.feature-card.color-orange:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706, #f59e0b);
    background-size: 200% 200%;
    box-shadow:
        0 25px 70px rgba(251, 191, 36, 0.6),
        0 0 60px rgba(245, 158, 11, 0.5),
        0 0 90px rgba(251, 191, 36, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-12px) scale(1.05) rotateX(-2deg);
    animation: gradientShift 2s ease infinite;
}

.feature-card.color-orange:hover::after {
    opacity: 0.4;
}

.feature-card.color-orange .icon {
    color: rgba(0, 0, 0, 0.8);
}

.feature-card.color-orange:hover .icon {
    color: rgba(0, 0, 0, 1);
    transform: scale(1.15) rotate(8deg);
}

.feature-card.color-orange:hover .icon::before {
    opacity: 1;
    transform: scale(1.2);
}

.feature-card.color-orange h3 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.feature-card.color-orange:hover h3 {
    color: #000;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateX(4px);
}

.feature-card.color-orange p {
    color: rgba(0, 0, 0, 0.8);
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.feature-card.color-orange:hover p {
    color: rgba(0, 0, 0, 0.95);
    transform: translateX(2px);
}

/* Blue - Coach Matching */
.feature-card.color-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb, #1d4ed8);
    background-size: 200% 200%;
    color: #fff;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow:
        0 8px 30px rgba(59, 130, 246, 0.3),
        0 4px 15px rgba(0, 0, 0, .1),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: gradientShift 4s ease infinite;
}

.feature-card.color-blue::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    background-size: 200% 100%;
    animation: shimmer 2s ease infinite;
}

.feature-card.color-blue::after {
    opacity: 0.2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
}

.feature-card.color-blue:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af, #2563eb);
    background-size: 200% 200%;
    box-shadow:
        0 25px 70px rgba(59, 130, 246, 0.5),
        0 0 60px rgba(37, 99, 235, 0.4),
        0 0 90px rgba(59, 130, 246, 0.3),
        0 0 0 1px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-12px) scale(1.05) rotateX(-2deg);
    animation: gradientShift 2s ease infinite;
}

.feature-card.color-blue .icon {
    color: rgba(255, 255, 255, 0.9);
}

.feature-card.color-blue .icon::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
}

.feature-card.color-blue:hover .icon {
    color: #fff;
    transform: scale(1.15) rotate(8deg);
}

.feature-card.color-blue:hover .icon::before {
    opacity: 1;
    transform: scale(1.2);
}

.feature-card.color-blue h3 {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.feature-card.color-blue:hover h3 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateX(4px);
}

.feature-card.color-blue p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.feature-card.color-blue:hover p {
    color: #fff;
    transform: translateX(2px);
}

/* Red - Event Management */
.feature-card.color-red {
    background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c);
    background-size: 200% 200%;
    color: #fff;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow:
        0 8px 30px rgba(239, 68, 68, 0.3),
        0 4px 15px rgba(0, 0, 0, .1),
        0 0 0 1px rgba(239, 68, 68, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: gradientShift 4s ease infinite;
}

.feature-card.color-red::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    background-size: 200% 100%;
    animation: shimmer 2s ease infinite;
}

.feature-card.color-red::after {
    opacity: 0.2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
}

.feature-card.color-red:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c, #991b1b);
    background-size: 200% 200%;
    box-shadow:
        0 25px 70px rgba(239, 68, 68, 0.5),
        0 0 60px rgba(220, 38, 38, 0.4),
        0 0 90px rgba(239, 68, 68, 0.3),
        0 0 0 1px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-12px) scale(1.05) rotateX(-2deg);
    animation: gradientShift 2s ease infinite;
}

.feature-card.color-red .icon {
    color: rgba(255, 255, 255, 0.9);
}

.feature-card.color-red .icon::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
}

.feature-card.color-red:hover .icon {
    color: #fff;
    transform: scale(1.15) rotate(8deg);
}

.feature-card.color-red:hover .icon::before {
    opacity: 1;
    transform: scale(1.2);
}

.feature-card.color-red h3 {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.feature-card.color-red:hover h3 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateX(4px);
}

.feature-card.color-red p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.feature-card.color-red:hover p {
    color: #fff;
    transform: translateX(2px);
}

/* Teal - Merch Customization */
.feature-card.color-teal {
    background: linear-gradient(135deg, #14b8a6, #0d9488, #0f766e);
    background-size: 200% 200%;
    color: #fff;
    border: 1px solid rgba(20, 184, 166, 0.2);
    box-shadow:
        0 8px 30px rgba(20, 184, 166, 0.3),
        0 4px 15px rgba(0, 0, 0, .1),
        0 0 0 1px rgba(20, 184, 166, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: gradientShift 4s ease infinite;
}

.feature-card.color-teal::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    background-size: 200% 100%;
    animation: shimmer 2s ease infinite;
}

.feature-card.color-teal::after {
    opacity: 0.2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
}

.feature-card.color-teal:hover {
    background: linear-gradient(135deg, #0d9488, #0f766e, #115e59);
    background-size: 200% 200%;
    box-shadow:
        0 25px 70px rgba(20, 184, 166, 0.5),
        0 0 60px rgba(13, 148, 136, 0.4),
        0 0 90px rgba(20, 184, 166, 0.3),
        0 0 0 1px rgba(20, 184, 166, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-12px) scale(1.05) rotateX(-2deg);
    animation: gradientShift 2s ease infinite;
}

.feature-card.color-teal .icon {
    color: rgba(255, 255, 255, 0.9);
}

.feature-card.color-teal .icon::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
}

.feature-card.color-teal:hover .icon {
    color: #fff;
    transform: scale(1.15) rotate(8deg);
}

.feature-card.color-teal:hover .icon::before {
    opacity: 1;
    transform: scale(1.2);
}

.feature-card.color-teal h3 {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.feature-card.color-teal:hover h3 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateX(4px);
}

.feature-card.color-teal p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.feature-card.color-teal:hover p {
    color: #fff;
    transform: translateX(2px);
}

/* Indigo - Gala as a Service */
.feature-card.color-indigo {
    background: linear-gradient(135deg, #6366f1, #4f46e5, #4338ca);
    background-size: 200% 200%;
    color: #fff;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow:
        0 8px 30px rgba(99, 102, 241, 0.3),
        0 4px 15px rgba(0, 0, 0, .1),
        0 0 0 1px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: gradientShift 4s ease infinite;
}

.feature-card.color-indigo::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    background-size: 200% 100%;
    animation: shimmer 2s ease infinite;
}

.feature-card.color-indigo::after {
    opacity: 0.2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
}

.feature-card.color-indigo:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca, #3730a3);
    background-size: 200% 200%;
    box-shadow:
        0 25px 70px rgba(99, 102, 241, 0.5),
        0 0 60px rgba(79, 70, 229, 0.4),
        0 0 90px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-12px) scale(1.05) rotateX(-2deg);
    animation: gradientShift 2s ease infinite;
}

.feature-card.color-indigo .icon {
    color: rgba(255, 255, 255, 0.9);
}

.feature-card.color-indigo .icon::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
}

.feature-card.color-indigo:hover .icon {
    color: #fff;
    transform: scale(1.15) rotate(8deg);
}

.feature-card.color-indigo:hover .icon::before {
    opacity: 1;
    transform: scale(1.2);
}

.feature-card.color-indigo h3 {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.feature-card.color-indigo:hover h3 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateX(4px);
}

.feature-card.color-indigo p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.feature-card.color-indigo:hover p {
    color: #fff;
    transform: translateX(2px);
}

/* Green - Results & Rankings */
.feature-card.color-green {
    background: linear-gradient(135deg, #10b981, #059669, #047857);
    background-size: 200% 200%;
    color: #fff;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow:
        0 8px 30px rgba(16, 185, 129, 0.3),
        0 4px 15px rgba(0, 0, 0, .1),
        0 0 0 1px rgba(16, 185, 129, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: gradientShift 4s ease infinite;
}

.feature-card.color-green::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    background-size: 200% 100%;
    animation: shimmer 2s ease infinite;
}

.feature-card.color-green::after {
    opacity: 0.2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
}

.feature-card.color-green:hover {
    background: linear-gradient(135deg, #059669, #047857, #065f46);
    background-size: 200% 200%;
    box-shadow:
        0 25px 70px rgba(16, 185, 129, 0.5),
        0 0 60px rgba(5, 150, 105, 0.4),
        0 0 90px rgba(16, 185, 129, 0.3),
        0 0 0 1px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-12px) scale(1.05) rotateX(-2deg);
    animation: gradientShift 2s ease infinite;
}

.feature-card.color-green .icon {
    color: rgba(255, 255, 255, 0.9);
}

.feature-card.color-green .icon::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
}

.feature-card.color-green:hover .icon {
    color: #fff;
    transform: scale(1.15) rotate(8deg);
}

.feature-card.color-green:hover .icon::before {
    opacity: 1;
    transform: scale(1.2);
}

.feature-card.color-green h3 {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.feature-card.color-green:hover h3 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateX(4px);
}

.feature-card.color-green p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.feature-card.color-green:hover p {
    color: #fff;
    transform: translateX(2px);
}

.feature-card .icon {
    display: block;
    margin-bottom: 1.25rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #6b2a2a;
    width: 48px;
    height: 48px;
    position: relative;
}

.feature-card .icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, rgba(107, 42, 42, 0.1), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.8);
}

.feature-card .icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: filter 0.4s ease;
}

.feature-card:hover .icon {
    transform: scale(1.15) rotate(8deg);
    color: #4a1a4a;
}

.feature-card:hover .icon::before {
    opacity: 1;
    transform: scale(1.2);
}

.feature-card:hover .icon svg {
    filter: drop-shadow(0 4px 8px rgba(107, 42, 42, 0.3));
}

/* Icon styles for colored cards are defined in their respective color sections */

.feature-logo {
    max-height: 30px;
    width: auto;
    height: 50px;
    display: block;
    margin-bottom: 1.25rem;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative;
}

.feature-card:hover .feature-logo {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Logo styles for colored cards */
.feature-card[class*="color-"] .feature-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.feature-card[class*="color-"]:hover .feature-logo {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .feature-logo {
        max-height: 40px;
    }
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.875rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: -0.02em;
    line-height: 1.3;
    position: relative;
}

/* Default hover for white cards */
.feature-card:not([class*="color-"]):hover h3 {
    color: #f59e0b;
    transform: translateX(4px);
}

.feature-card p {
    color: #6b7280;
    line-height: 1.75;
    font-size: 0.9375rem;
    transition: all 0.4s ease;
    margin: 0;
}

/* Default hover for white cards */
.feature-card:not([class*="color-"]):hover p {
    color: #4b5563;
    transform: translateX(2px);
}

/* Scroll animations for all cards */
.feature-card,
.event-card,
.blog-card,
.blog-feature,
.blog-list a {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.feature-card {
    transition:
        opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border-color 0.4s ease,
        background-position 0.4s ease;
}

/* Staggered animation delays for feature cards */
.feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.4s;
}

.feature-card:nth-child(5) {
    transition-delay: 0.5s;
}

.feature-card:nth-child(6) {
    transition-delay: 0.6s;
}

.event-card,
.blog-card,
.blog-feature {
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.blog-list a {
    transition: opacity 0.6s ease, transform 0.6s ease, all 0.3s ease;
}

/* Events */
.events {
    padding: 1.5rem 0 6rem 0;
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    position: relative;
    overflow: hidden;
    width: 100%;
    overflow-x: hidden;
}

.events::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(107, 42, 42, 0.03), transparent);
    pointer-events: none;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section-head h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1f2937, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 1.125rem;
    font-weight: 400;
}

.section-head-margin-top {
    margin-top: 3rem;
}

.empty-state-full-width {
    grid-column: 1 / -1;
}

.post-excerpt {
    margin: 0.75rem 0;
    color: #6b7280;
    line-height: 1.6;
}

.post-stats {
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.pagination-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.section-head a {
    color: #6b2a2a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-head a:hover {
    color: #4a1a4a;
    transform: translateX(4px);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.event-card,
.blog-card {
    background: #fff;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    border: 1px solid transparent;
    background-clip: padding-box;
}

.event-card::after,
.blog-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(to right, #6b2a2a, #4a1a4a);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.event-card:hover,
.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15), 0 0 40px rgba(107, 42, 42, 0.3), 0 0 60px rgba(74, 26, 74, 0.2);
}

.event-card:hover::after,
.blog-card:hover::after {
    opacity: 1;
}

.event-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
    display: block;
    transition: transform 0.4s ease;
}

.event-card:hover img {
    transform: scale(1.05);
}

.event-card {
    display: flex;
    flex-direction: column;
}

.event-card .chip {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-block;
    width: fit-content;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #6b2a2a;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    transition: all 0.3s ease;
}

.event-card:hover .chip {
    background: rgba(107, 42, 42, 0.95);
    color: #fff;
    transform: scale(1.05);
}

.chip.orange {
    background: rgba(251, 191, 36, 0.95);
    color: #000;
}

.chip-error {
    background: #ef4444;
    color: white;
}

.event-card:hover .chip.orange {
    background: rgba(245, 158, 11, 0.95);
    color: #000;
}

.chip.past {
    background: rgba(107, 114, 128, 0.95);
    color: #fff;
}

.event-card:hover .chip.past {
    background: rgba(75, 85, 99, 0.95);
    color: #fff;
}

/* Past Event Styling */
.event-card.past-event {
    opacity: 0.7;
    filter: grayscale(0.4);
}

.event-card.past-event img {
    filter: grayscale(0.5);
    opacity: 0.8;
}

.event-card.past-event:hover {
    transform: translateY(-4px) scale(1.01);
    filter: grayscale(0.3);
}

.event-card.past-event .event-card-actions .btn.primary {
    background: #9ca3af;
    color: #fff;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.event-card.past-event .event-card-actions .btn.outline {
    border-color: #9ca3af;
    color: #9ca3af;
}

.event-card.past-event .event-card-actions .btn.outline:hover {
    background: #9ca3af;
    color: #fff;
}

.event-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
}

.event-card-actions .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
}

.event-card-actions .btn.outline {
    border: 1px solid #6b2a2a;
    color: #6b2a2a;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
}

.event-card-actions .btn.outline:hover {
    background: #6b2a2a;
    color: #fff;
    border-color: #6b2a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 42, 42, 0.3);
}

.event-card-actions .btn.primary {
    background: linear-gradient(135deg, #6b2a2a, #4a1a4a);
    border: 1px solid transparent;
    color: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 4px 12px rgba(107, 42, 42, 0.3);
}

.event-card-actions .btn.primary:hover {
    background: linear-gradient(135deg, #4a1a4a, #6b2a2a);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 42, 42, 0.4);
}

.event-card h4 {
    font-size: 1.375rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    color: #1f2937;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.event-card:hover h4 {
    color: #6b2a2a;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.event-meta-item svg {
    width: 16px;
    height: 16px;
    color: #6b2a2a;
    flex-shrink: 0;
}

.event-meta-item span {
    line-height: 1.5;
}

.event-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.price-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #6b2a2a;
    line-height: 1.2;
}

/* Product-specific price display */
.product-price-display {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-price-display .price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.product-price-display .price-amount {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fbbf24;
}

.product-stock-warning {
    color: #ea580c;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card .btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Blog */
.blog-preview {
    padding: 4rem 0;
    background: #fff;
    width: 100%;
    overflow-x: hidden;
}

.blog-preview h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.blog-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    background-clip: padding-box;
}

.blog-feature-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
}

.blog-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-feature:hover .blog-feature-image img {
    transform: scale(1.05);
}

.blog-feature-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.blog-feature::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(to right, #6b2a2a, #4a1a4a);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.blog-feature:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15), 0 0 40px rgba(107, 42, 42, 0.3), 0 0 60px rgba(74, 26, 74, 0.2);
}

.blog-feature:hover::after {
    opacity: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-date svg {
    width: 14px;
    height: 14px;
    color: #6b2a2a;
}

.blog-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-stat-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-stat-item svg {
    width: 14px;
    height: 14px;
    color: #6b2a2a;
}

.blog-feature h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1f2937;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-feature:hover h3 {
    color: #6b2a2a;
}

.blog-feature p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    flex: 1;
}

.blog-read-link {
    color: #6b2a2a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.0625rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.blog-read-link:hover {
    color: #4a1a4a;
    transform: translateX(4px);
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-item {
    display: flex;
    gap: 1rem;
    padding: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #6b2a2a, #4a1a4a);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.blog-item:hover {
    background: #f9fafb;
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
    border-color: rgba(107, 42, 42, 0.2);
}

.blog-item:hover::before {
    transform: scaleY(1);
}

.blog-item-image {
    width: 120px;
    min-width: 120px;
    height: 100%;
    overflow: hidden;
    border-radius: 16px 0 0 16px;
}

.blog-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-item:hover .blog-item-image img {
    transform: scale(1.1);
}

.blog-item-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.blog-item-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.blog-item-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-item-date svg {
    width: 12px;
    height: 12px;
    color: #6b2a2a;
}

.blog-item-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-item-content h4 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
}

.blog-item-content h4 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-item:hover .blog-item-content h4 a {
    color: #6b2a2a;
}

/* CTA */
.cta-banner {
    background: linear-gradient(135deg, #6b2a2a, #4a1a4a);
    color: white;
    text-align: center;
    padding: 6rem 1rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    overflow-x: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 39px,
            rgba(255, 255, 255, 0.03) 39px,
            rgba(255, 255, 255, 0.03) 41px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 39px,
            rgba(255, 255, 255, 0.03) 39px,
            rgba(255, 255, 255, 0.03) 41px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.5;
}

.cta-banner .container {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.cta-banner p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 500;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-banner .btn.primary {
    background: rgba(251, 191, 36, 0.2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fff;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
    animation: buttonGlowPulse 2s ease-in-out infinite;
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.cta-banner .btn.primary:hover {
    background: rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    animation: buttonGlowPulseHover 1.5s ease-in-out infinite;
}

.cta-banner .btn.ghost {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.cta-banner .btn.ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Footer - Elaborate Design */
.footer {
    background: #1f2937;
    color: #fff;
    padding: 0;
}

.footer.elaborate {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border-top: 2px solid rgba(251, 191, 36, 0.2);
    position: relative;
    overflow: hidden;
}

.footer.elaborate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.5), transparent);
}

.footer-main {
    padding: 4.5rem 0 calc(3rem + env(safe-area-inset-bottom, 0px));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr 1.4fr;
    gap: 3.5rem 2.5rem;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}

.footer-column.footer-brand {
    padding-right: 2rem;
    gap: 1.25rem;
    align-items: flex-start;
}

.footer-logo {
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.footer-logo h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #fff;
    line-height: 1.2;
}

.footer-logo h3 span {
    color: #fbbf24;
    display: inline-block;
    position: relative;
}

.footer-logo h3 span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, transparent);
    opacity: 0.3;
}

.footer-logo-image {
    max-height: 21px;
    width: auto;
    height: auto;
    display: block;
    margin-bottom: 0.25rem;
    margin-left: 0;
    margin-right: auto;
    object-fit: contain;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .footer-logo-image {
        max-height: 18px;
    }
}

.footer-tagline {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.footer-byline {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

.footer-description {
    color: #9ca3af;
    line-height: 1.65;
    font-size: 0.875rem;
    margin: 0;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

.social-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.social-link:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
}

.social-link:hover svg {
    transform: scale(1.08);
}

.footer-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    padding-bottom: 0.875rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: #fbbf24;
    border-radius: 1px;
}

/* Mobile: tap-to-call / email / contact (hidden on large screens) */
.footer-contact-chips {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.footer-contact-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-contact-chip:hover {
    background: rgba(251, 191, 36, 0.22);
    border-color: rgba(251, 191, 36, 0.55);
    color: #fff;
}

.footer-contact-chip svg {
    flex-shrink: 0;
    opacity: 0.95;
}

/* Mobile: high-traffic destinations in one row */
.footer-quick-strip {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.25rem;
}

.footer-quick-strip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #e5e7eb;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.footer-quick-strip a:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.35);
}

/* Collapsible link groups on small screens; always-open columns on desktop */
.footer-drawer {
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.footer-drawer-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
    padding: 0.5rem 0;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0.75rem;
}

.footer-drawer-summary::-webkit-details-marker {
    display: none;
}

.footer-drawer-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-drawer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: #fbbf24;
    border-radius: 1px;
}

.footer-drawer-summary::after {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%239ca3af' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.25s ease;
}

.footer-drawer[open] > .footer-drawer-summary::after {
    transform: rotate(180deg);
}

.footer-drawer .footer-links {
    padding: 0.5rem 0 1rem;
}

@media (min-width: 769px) {
    .footer-contact-chips {
        display: none;
    }

    .footer-quick-strip {
        display: none;
    }

    .footer-grid > .footer-brand,
    .footer-grid > .footer-quick-strip,
    .footer-grid > .footer-drawer,
    .footer-grid > .footer-column-contact {
        order: unset;
    }

    .footer-drawer-summary {
        cursor: default;
        pointer-events: none;
        border-bottom: none;
        padding: 0;
        margin: 0 0 1.25rem;
    }

    .footer-drawer-summary::after {
        display: none;
    }

    .footer-drawer .footer-links {
        padding: 0;
    }
}

.footer-heading.footer-heading-static {
    margin-bottom: 1.25rem;
}

.footer-column ul.footer-links,
.footer-drawer ul.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-column ul.footer-links li,
.footer-drawer ul.footer-links li {
    margin: 0;
}

.footer-column ul.footer-links a,
.footer-drawer ul.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.25s ease;
    display: inline-block;
    position: relative;
    padding: 0.125rem 0;
    line-height: 1.6;
}

.footer-column ul.footer-links a:hover,
.footer-drawer ul.footer-links a:hover {
    color: #fbbf24;
    transform: translateX(2px);
}

.footer-contact {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact-label {
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.footer-contact-value {
    color: #fbbf24;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.25s ease;
    line-height: 1.5;
    display: inline-block;
}

.footer-contact-value:hover {
    color: #f59e0b;
    transform: translateX(2px);
}

.footer-contact-item span.footer-contact-value {
    color: #fff;
    cursor: default;
}

.footer-contact-item span.footer-contact-value:hover {
    transform: none;
}

.footer-newsletter {
    margin-top: 0;
    padding: 1.5rem;
    background: rgba(251, 191, 36, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.footer-newsletter h5 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fbbf24;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-newsletter>p {
    color: #d1d5db;
    font-size: 0.8125rem;
    margin: 0 0 1.25rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    padding: 0.875rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    width: 100%;
}

.newsletter-form input::placeholder {
    color: #6b7280;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #fbbf24;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.newsletter-form button {
    width: 100%;
}

/* Payment Methods Section */
.footer-payments {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.payment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.payment-label {
    color: #d1d5db;
    font-size: 0.875rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.payment-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
}

.payment-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.payment-text {
    color: #d1d5db;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

.copyright-content {
    display: block;
    flex: 1 1 280px;
    min-width: 0;
    max-width: 100%;
}

.copyright-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.copyright-primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.625rem;
    margin: 0;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.copyright-year {
    flex-shrink: 0;
}

.copyright-rights {
    flex: 1 1 auto;
    min-width: 0;
}

.copyright-attribution {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    margin: 0;
    color: #9ca3af;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.55;
}

.copyright-attribution-part {
    display: inline;
}

.copyright-attribution-sep {
    color: #6b7280;
    margin: 0 0.125rem;
}

.fitbridge-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fitbridge-logo-image {
    max-height: 44px;
    max-width: min(200px, 55vw);
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .fitbridge-logo-image {
        max-height: 32px;
        max-width: min(180px, 70vw);
    }
}

.fitbridge-circle {
    width: 40px;
    height: 40px;
    background: #ff6b35;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.fitbridge-text {
    background: #fff;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.75rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.copyright-block a {
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
    position: relative;
}

.copyright-block a:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.copyright-block a.external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.copyright-block .external-link-icon {
    font-size: 0.75em;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
    line-height: 1;
    margin-left: 0.125rem;
}

.copyright-block a:hover .external-link-icon {
    opacity: 1;
    transform: translate(2px, -2px);
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-left: auto;
}

.footer-legal a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding: 0.35rem 0.15rem;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .footer-legal a {
        min-height: 0;
        padding: 0.25rem 0;
    }
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.footer-legal a:hover {
    color: #fbbf24;
}

.footer-legal a:hover::after {
    width: 100%;
}

.footer-legal .separator {
    color: #4b5563;
    font-weight: 300;
}

/* Enhanced styles */
.enhanced {
    position: relative;
}

.glass {
    backdrop-filter: blur(10px);
    background: rgba(45, 15, 58, 0.9);
}

.layered {
    position: relative;
    z-index: 1;
}

.bold {
    font-weight: 700;
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Large Tablets (1200px and below) */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        padding: 0 1.5rem;
    }

    .hero-content h1,
    .hero.enhanced .hero-copy-top h1 {
        font-size: 3rem;
    }

    .section-head h2 {
        font-size: 2.25rem;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }
}

/* Tablets (1024px and below) */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 0 1.25rem;
    }

    /* Top Bar */
    .top-bar {
        padding: 0.625rem 0;
    }

    .top-bar-left {
        gap: 1rem;
    }

    .top-bar-link {
        font-size: 0.75rem;
    }

    .top-bar-link span:last-child {
        display: none;
        /* Hide text on tablet, show only icons */
    }

    /* Header */
    .header {
        top: 36px;
    }

    /* Logo left; cart + notifications + account + menu clustered on the right */
    .nav {
        justify-content: flex-start;
    }

    .header-auth {
        display: flex;
        gap: 0.5rem;
        margin-left: auto;
        min-width: 0;
    }

    .user-name-short {
        display: block;
        max-width: 10rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-menu-dropdown {
        min-width: 260px;
        max-width: min(320px, calc(100vw - 1.5rem));
    }

    .header-auth .cart-dropdown {
        width: min(380px, calc(100vw - 1.5rem));
        max-width: calc(100vw - 1.5rem);
    }

    .main-nav {
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .nav-link {
        font-size: 0.8125rem;
        padding: 0.5rem 0.5rem;
    }
    
    .nav-link.nav-cta {
        padding: 0.5625rem 1rem;
        font-size: 0.75rem;
    }
    
    .cart-button {
        width: 38px;
        height: 38px;
    }
    
    .header-auth .btn.small {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }

    /* Hero */
    .hero {
        height: 70vh;
        margin-bottom: 3rem;
    }

    .hero.enhanced:has(.hero-visual) {
        height: auto;
        min-height: 0;
        margin-bottom: 1.5rem;
    }

    .hero-content h1,
    .hero.enhanced .hero-copy-top h1 {
        font-size: 2.5rem;
    }

    .hero-content p,
    .hero.enhanced .hero-copy-body p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: row;
        gap: 1rem;
    }

    .hero-stats-cards {
        gap: 1rem;
    }

    /* Features */
    .features {
        padding: 4rem 0;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Events */
    .events {
        padding: 4rem 0;
    }

    .section-head h2 {
        font-size: 2rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Blog */
    .blog-preview {
        padding: 4rem 0;
    }

    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-feature {
        grid-template-columns: 1fr;
    }

    .blog-feature-image {
        height: 300px;
        border-radius: 20px 20px 0 0;
    }

    .blog-feature-image img {
        border-radius: 20px 20px 0 0;
    }

    /* CTA */
    .cta-banner {
        padding: 4rem 1rem;
    }

    .cta-banner h2 {
        font-size: 2.5rem;
    }

    .cta-banner p {
        font-size: 1.125rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 2.5rem 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-description {
        max-width: 100%;
    }
}

/* Mobile Landscape / Small Tablets (768px and below) */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 1rem;
    }
    
    /* Header container should use full width on mobile */
    .header .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Top Bar - Hide on mobile (moved to mobile menu) */
    .top-bar {
        display: none;
    }

    /* Header */
    .header {
        top: 0;
        padding: 0;
        padding-top: env(safe-area-inset-top, 0px);
    }

    .nav {
        flex-direction: row;
        padding: 0.65rem 0;
        gap: 0.5rem;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
    }

    .logo {
        flex: 0 1 auto;
        min-width: 0;
        max-width: min(46%, 11rem);
    }

    .logo-link {
        gap: 0.25rem;
    }

    .logo-image {
        max-height: 24px;
        margin-bottom: 0.125rem;
    }

    .logo-tagline {
        font-size: 0.5rem;
        line-height: 1.2;
        display: none;
    }

    .main-nav {
        display: none;
        /* Hide desktop nav on mobile */
    }

    /* Toolbar: cart, bell, account, menu — one visual system */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        margin-left: 0;
        padding: 0 10px;
        box-sizing: border-box;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: linear-gradient(155deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        align-items: center;
        justify-content: space-around;
    }

    .mobile-menu-toggle:hover {
        background: linear-gradient(155deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 100%);
        border-color: rgba(255, 255, 255, 0.24);
    }

    .mobile-menu-toggle:active {
        transform: scale(0.96);
    }

    .mobile-menu-toggle span {
        width: 18px;
        align-self: center;
    }

    .header-auth {
        gap: 0.5rem;
        margin-left: auto;
        flex-shrink: 0;
        display: flex;
        min-width: 0;
        align-items: center;
    }

    /* Account control: avatar only (name + chevron in drawer on tap) */
    .user-name-short {
        display: none;
    }

    .user-menu-chevron {
        display: none;
    }

    .header-auth .user-menu-trigger {
        padding: 0;
        gap: 0;
        border-radius: 10px;
        min-width: 42px;
        min-height: 42px;
        width: 42px;
        height: 42px;
        justify-content: center;
        align-items: center;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: linear-gradient(155deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .header-auth .user-menu-trigger:hover {
        background: linear-gradient(155deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 100%);
        border-color: rgba(255, 255, 255, 0.24);
        color: #fff;
    }

    .header-auth .user-menu-trigger:active {
        transform: scale(0.96);
    }

    .header-auth .user-avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
    }

    .header-auth .user-avatar-placeholder {
        font-size: 0.8125rem;
    }

    .user-menu-dropdown {
        right: 0;
        left: auto;
        max-width: min(300px, calc(100vw - 1.25rem));
    }

    .header-auth .cart-dropdown {
        width: min(380px, calc(100vw - 1.25rem));
        max-width: calc(100vw - 1.25rem);
    }

    .header-auth .cart-button {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        flex-shrink: 0;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: linear-gradient(155deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .header-auth .cart-button:hover {
        transform: none;
        background: linear-gradient(155deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 100%);
        border-color: rgba(255, 255, 255, 0.24);
    }

    .header-auth .cart-button:active {
        transform: scale(0.96);
    }

    .header-auth .cart-button svg {
        width: 18px;
        height: 18px;
    }

    .header-auth .cart-badge {
        top: -2px;
        right: -2px;
        min-width: 18px;
        height: 18px;
        font-size: 0.6875rem;
        border: 2px solid rgba(45, 15, 58, 0.95);
    }

    .header-auth .cart-button:focus-visible,
    .nav .mobile-menu-toggle:focus-visible,
    .header-auth .user-menu-trigger:focus-visible {
        outline: 2px solid rgba(251, 191, 36, 0.9);
        outline-offset: 2px;
    }

    @media (max-width: 360px) {

        .header-auth .cart-button,
        .header-auth .user-menu-trigger,
        .nav .mobile-menu-toggle {
            width: 40px;
            height: 40px;
            min-width: 40px;
            min-height: 40px;
        }

        .header-auth {
            gap: 0.4rem;
        }
    }

    .auth-links {
        gap: 0.375rem;
        flex-shrink: 0;
    }

    .header-auth .btn.small {
        padding: 0.4375rem 0.75rem;
        font-size: 0.6875rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
    }

    .nav-link {
        font-size: 0.8125rem;
        padding: 0.375rem 0.5rem;
    }

    .nav-link.nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    /* Hero */
    .hero {
        height: auto;
        padding: 0.35rem 0;
        margin-bottom: 0.5rem;
    }

    /* Home: fill the viewport below the sticky header; middle (image) flexes */
    .hero.enhanced:has(.hero-copy-column) {
        min-height: calc(100vh - 4rem);
        min-height: calc(100dvh - 4rem - env(safe-area-inset-bottom, 0px));
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding-left: clamp(1rem, 4vw, 1.5rem);
        padding-right: clamp(1rem, 4vw, 1.5rem);
        padding-top: clamp(0.65rem, 2.5vw, 1rem);
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    .hero.enhanced:has(.hero-copy-column) > .container.hero-grid {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .hero.enhanced .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        padding: 0.15rem 0;
    }

    .hero.enhanced:has(.hero-copy-column) .hero-grid {
        flex: 1 1 auto;
        min-height: 0;
        gap: clamp(0.85rem, 3vw, 1.25rem);
        padding: 0.35rem 0;
    }

    .hero.enhanced:has(.hero-copy-column) .hero-copy-top,
    .hero.enhanced:has(.hero-copy-column) .hero-copy-body {
        flex-shrink: 0;
    }

    .hero.enhanced:has(.hero-copy-column) .hero-visual {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 0;
        margin-bottom: 0;
        padding: 0 clamp(0.35rem, 2vw, 0.85rem);
    }

    .hero.enhanced:has(.hero-copy-column) .hero-visual img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 100%;
        object-fit: contain;
    }

    /* Home: badge → title → stats → image → blurb → CTAs (minimal scroll) */
    .hero.enhanced .hero-copy-column {
        display: contents;
    }

    .hero.enhanced .hero-copy-top {
        order: 1;
        text-align: center;
        gap: 0.35rem;
    }

    .hero.enhanced:has(.hero-copy-column) .hero-copy-top {
        gap: clamp(0.5rem, 2.2vw, 0.75rem);
        padding: 0 clamp(0.15rem, 1vw, 0.35rem);
    }

    .hero.enhanced .hero-visual {
        order: 2;
        margin-top: 0;
        margin-bottom: 0;
    }

    .hero.enhanced .hero-copy-body {
        order: 3;
        text-align: center;
        gap: 0.45rem;
    }

    .hero.enhanced:has(.hero-copy-column) .hero-copy-body {
        gap: clamp(0.55rem, 2.2vw, 0.9rem);
        padding: clamp(0.35rem, 1.5vw, 0.5rem) clamp(0.15rem, 1vw, 0.35rem) 0;
    }

    .hero.enhanced .hero-copy-top .badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.65rem;
    }

    .hero.enhanced:has(.hero-copy-column) .hero-copy-top .badge {
        padding: 0.4rem 1rem;
    }

    .hero.enhanced .hero-copy-top h1 br {
        display: none;
    }

    .hero-content h1,
    .hero.enhanced .hero-copy-top h1 {
        font-size: 1.65rem;
        line-height: 1.15;
    }

    .hero-content p,
    .hero.enhanced .hero-copy-body p {
        font-size: 0.8125rem;
        line-height: 1.45;
        margin-bottom: 0;
    }

    .hero.enhanced:has(.hero-copy-column) .hero-copy-body p {
        line-height: 1.55;
        padding: 0 clamp(0.2rem, 1.5vw, 0.5rem);
    }

    .hero.enhanced .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
        width: 100%;
    }

    .hero.enhanced:has(.hero-copy-column) .hero-actions {
        gap: clamp(0.55rem, 2.2vw, 0.75rem);
        padding-top: clamp(0.15rem, 1vw, 0.35rem);
    }

    .hero.enhanced .hero-actions .btn {
        width: 100%;
        padding: 0.5rem 0.65rem;
        font-size: 0.8125rem;
        text-align: center;
        box-sizing: border-box;
    }

    .hero.enhanced:has(.hero-copy-column) .hero-actions .btn {
        padding: 0.625rem 0.85rem;
    }

    .hero.enhanced .hero-actions .btn:nth-child(3) {
        grid-column: 1 / -1;
    }

    .hero-content {
        text-align: center;
        order: 1;
        gap: 0.5rem;
    }

    .hero-events-list .hero-content {
        text-align: left;
        align-items: flex-start;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats-cards {
        flex-direction: row;
        justify-content: center;
        gap: 0.4rem;
        flex-wrap: nowrap;
        margin: 0.35rem 0 0;
    }

    .hero.enhanced:has(.hero-copy-column) .hero-stats-cards {
        gap: clamp(0.45rem, 2vw, 0.65rem);
        margin: clamp(0.45rem, 2vw, 0.65rem) 0 0;
    }

    .hero-stat-card {
        padding: 0.45rem 0.35rem;
        min-width: 0;
        flex: 1 1 0;
        max-width: none;
    }

    .hero.enhanced:has(.hero-copy-column) .hero-stat-card {
        padding: clamp(0.5rem, 2vw, 0.65rem) clamp(0.35rem, 1.5vw, 0.5rem);
    }

    .hero-stat-card .stat-number {
        font-size: 1.15rem;
    }

    .hero-stat-card .stat-label {
        font-size: 0.55rem;
        letter-spacing: 0.02em;
        line-height: 1.2;
    }

    .hero-visual {
        order: 2;
        margin-top: 0;
    }

    /* Features */
    .features {
        padding: 3rem 0;
    }

    .features h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }

    /* Events */
    .events {
        padding: 3rem 0;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .section-head h2 {
        font-size: 1.75rem;
    }

    .section-head a {
        font-size: 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .event-card img {
        height: 200px;
    }

    .event-card-content {
        padding: 1.25rem;
    }

    .event-card h4 {
        font-size: 1.25rem;
    }

    .event-card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .event-card-actions .btn {
        width: 100%;
    }

    /* Blog */
    .blog-preview {
        padding: 3rem 0;
    }

    .blog-preview h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-feature {
        grid-template-columns: 1fr;
    }

    .blog-feature-image {
        height: 250px;
        border-radius: 20px 20px 0 0;
    }

    .blog-feature-content {
        padding: 1.75rem;
    }

    .blog-feature h3 {
        font-size: 1.5rem;
    }

    .blog-list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .blog-list-item img {
        width: 100%;
        height: 180px;
        margin-bottom: 0.75rem;
    }

    /* CTA */
    .cta-banner {
        padding: 3rem 1rem;
    }

    .cta-banner h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .cta-banner p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-actions .btn {
        width: 100%;
    }

    /* Footer — tablets & phones: chips, quick strip, stacked layout, touch targets */
    .footer-contact-chips {
        display: flex;
    }

    .footer-quick-strip {
        display: flex;
        grid-column: 1 / -1;
        order: 2;
    }

    .footer-brand {
        order: 1;
        grid-column: 1;
        padding-right: 0;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-drawer {
        order: 3;
    }

    .footer-column.footer-column-contact {
        order: 4;
    }

    .footer-main {
        padding: 2rem 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        align-items: stretch;
    }

    .footer-description {
        max-width: 100%;
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .footer-drawer ul.footer-links a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0.35rem 0;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-column.footer-column-contact .footer-heading-static {
        margin-top: 0.5rem;
    }

    .footer-contact {
        gap: 1rem;
    }

    .footer-contact-item {
        gap: 0.35rem;
    }

    .footer-contact-value {
        font-size: 0.9375rem;
        word-break: break-word;
    }

    .footer-bottom-grid {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 1rem;
        text-align: left;
    }

    .copyright-content {
        width: 100%;
        flex: 0 0 auto;
        max-width: none;
    }

    .copyright-primary {
        font-size: 0.8125rem;
    }

    .copyright-attribution {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .copyright-attribution-sep {
        display: none;
    }

    .footer-legal {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .footer-legal .separator {
        display: none;
    }

    .footer-legal a {
        font-size: 0.875rem;
        min-height: 48px;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-legal a:last-child {
        border-bottom: none;
    }
}

/* Mobile Portrait (640px and below) */
@media (max-width: 640px) {
    .container {
        width: 100%;
        padding: 0 1rem;
    }
    
    /* Header container should use full width on mobile */
    .header .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Top Bar */
    .top-bar-link span:last-child {
        font-size: 0.6875rem;
    }

    /* Header */
    .main-nav {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 0.25rem 0.375rem;
    }

    .nav-link.nav-cta {
        padding: 0.4375rem 0.875rem;
        font-size: 0.75rem;
    }

    /* Hero */
    .hero {
        padding: 0.35rem 0;
    }

    .hero-content h1,
    .hero.enhanced .hero-copy-top h1 {
        font-size: 1.5rem;
    }

    .hero-content p,
    .hero.enhanced .hero-copy-body p {
        font-size: 0.8125rem;
    }

    .hero-stats-cards {
        gap: 0.4rem;
    }

    .hero-stat-card {
        padding: 0.4rem 0.3rem;
        min-width: 0;
    }

    .hero-stat-card .stat-number {
        font-size: 1.05rem;
    }

    .hero-stat-card .stat-label {
        font-size: 0.5rem;
    }

    .hero.enhanced .hero-visual img {
        max-height: min(38vh, 200px);
    }

    /* Features */
    .features {
        padding: 2.5rem 0;
    }

    .features h2 {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-card h3 {
        font-size: 1.125rem;
    }

    .feature-card p {
        font-size: 0.875rem;
    }

    /* Events */
    .events {
        padding: 2.5rem 0;
    }

    .section-head h2 {
        font-size: 1.5rem;
    }

    .event-card img {
        height: 180px;
    }

    .event-card-content {
        padding: 1rem;
    }

    .event-card h4 {
        font-size: 1.125rem;
    }

    .event-meta {
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .event-meta-item {
        font-size: 0.8125rem;
    }

    .price-amount {
        font-size: 1.25rem;
    }

    /* Blog */
    .blog-preview {
        padding: 2.5rem 0;
    }

    .blog-preview h2 {
        font-size: 1.5rem;
    }

    .blog-feature-content {
        padding: 1.5rem;
    }

    .blog-feature h3 {
        font-size: 1.25rem;
    }

    .blog-feature p {
        font-size: 0.875rem;
    }

    .blog-list-item {
        padding: 0.875rem;
    }

    .blog-list-item img {
        height: 150px;
    }

    .blog-list-item h4 {
        font-size: 0.9375rem;
    }

    /* CTA */
    .cta-banner {
        padding: 2.5rem 1rem;
    }

    .cta-banner h2 {
        font-size: 1.75rem;
    }

    .cta-banner p {
        font-size: 0.9375rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.875rem;
    }

    /* Top Bar */
    .top-bar-left {
        flex-direction: column;
        gap: 0.5rem;
    }

    .top-bar-link {
        font-size: 0.6875rem;
    }

    /* Header */
    .logo-main {
        font-size: 1.25rem;
    }

    .main-nav {
        gap: 0.375rem;
    }

    .nav-link {
        font-size: 0.6875rem;
        padding: 0.25rem;
    }

    .nav-link.nav-cta {
        padding: 0.375rem 0.75rem;
        font-size: 0.6875rem;
    }

    /* Hero */
    .hero-content h1,
    .hero.enhanced .hero-copy-top h1 {
        font-size: 1.35rem;
    }

    .hero-stats-cards {
        flex-direction: column;
        align-items: stretch;
    }

    /* Home: keep stats in one compact row (must follow .hero-stats-cards) */
    .hero.enhanced .hero-stats-cards {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.3rem;
        align-items: stretch;
    }

    .hero-stat-card {
        max-width: 100%;
    }

    .hero.enhanced .hero-stat-card {
        max-width: none;
        flex: 1 1 0;
        padding: 0.35rem 0.25rem;
    }

    .hero.enhanced .hero-visual img {
        max-height: min(36vh, 180px);
    }

    /* Home: allow image to use flex area (overrides cap above) */
    .hero.enhanced:has(.hero-copy-column) .hero-visual img {
        max-height: 100%;
    }

    /* Features */
    .features h2 {
        font-size: 1.5rem;
    }

    /* Events */
    .section-head h2 {
        font-size: 1.375rem;
    }

    /* Blog */
    .blog-preview h2 {
        font-size: 1.375rem;
    }

    /* CTA */
    .cta-banner h2 {
        font-size: 1.5rem;
    }
}

/* ================= EVENTS PAGE STYLES ================= */

/* Collapsible Filters - Glassmorphism */
.events-filters-collapsible {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.events-filters-collapsible.hidden {
    display: none;
}

/* Filter Toggle Button (Mobile) */
.filter-toggle-btn {
    display: none;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.filter-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.filter-toggle-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.filter-toggle-btn.active svg {
    transform: rotate(180deg);
}

/* Mobile Filter Popup Overlay */
.filter-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-popup-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Filter Popup */
.filter-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    padding: 0;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.filter-popup.active {
    transform: translateY(0);
}

.filter-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.filter-popup-header h3 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

.filter-popup-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
}

.filter-popup-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.filter-popup-close:active {
    background: #e5e7eb;
}

.filter-popup-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.filter-popup-content {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
}

/* Remove any container constraints in popup */
.filter-popup-content > * {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Filter Popup Form Styling */
.filter-popup .filters-form,
.filter-popup .filters-section,
.filter-popup .events-filters-collapsible {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.filter-popup .filters-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-popup .filters-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: none !important;
}

.filter-popup .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.filter-popup .filter-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.4;
    text-align: left;
    width: 100%;
}

.filter-popup .filter-input,
.filter-popup .filter-select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9375rem;
    color: #111827;
    background-color: #ffffff;
    transition: all 0.2s ease;
    height: 48px;
    appearance: none;
    font-family: inherit;
    box-sizing: border-box;
    margin: 0;
}

.filter-popup .filter-input:focus,
.filter-popup .filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-popup .filter-input::placeholder {
    color: #9ca3af;
}

.filter-popup .filter-select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Checkbox Styling in Popup */
.filter-popup .filter-group-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
}

.filter-popup .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-popup .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    margin: 0;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-popup .checkbox-label input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.filter-popup .checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* Filter Actions in Popup */
.filter-popup .filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
}

.filter-popup .filter-actions .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
    margin: 0;
}

.filter-popup .filter-actions .btn.primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000000;
    border: none;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.filter-popup .filter-actions .btn.primary:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.4);
    transform: translateY(-1px);
}

.filter-popup .filter-actions .btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.filter-popup .filter-actions .btn.outline {
    background: #ffffff;
    color: #dc2626;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.filter-popup .filter-actions .btn.outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #b91c1c;
}

.filter-popup .filter-actions .btn.outline:active {
    background: #f3f4f6;
}

.section-head {
    margin-bottom: 1rem;
    margin-top: 0;
    padding-top: 0;
}

.section-head p {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 400;
}

.section-head p strong {
    color: #1f2937;
    font-weight: 700;
}

.filters-form {
    width: 100%;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}


.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
    text-transform: none;
    letter-spacing: 0;
}

.filter-input,
.filter-select {
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 999px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #1f2937;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    line-height: 1.5;
    z-index: 2;
}

.filter-input:hover,
.filter-select:hover {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.filter-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b2a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-actions .btn {
    white-space: nowrap;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    letter-spacing: 0;
    min-width: auto;
    justify-content: center;
    display: inline-flex;
    align-items: center;
}

.filter-actions .btn.primary {
    background: rgba(251, 191, 36, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #000;
    border: 1px solid rgba(251, 191, 36, 0.4);
    font-weight: 700;
}

.filter-actions .btn.primary:hover {
    background: rgba(251, 191, 36, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
}

.filter-actions .btn.outline {
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #6b2a2a;
    border: 1px solid rgba(107, 42, 42, 0.3);
    font-weight: 600;
}

.filter-actions .btn.outline:hover {
    background: rgba(107, 42, 42, 0.9);
    color: #fff;
    border-color: rgba(107, 42, 42, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 42, 42, 0.3);
}


/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: #4b5563;
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    border-radius: 24px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.empty-state svg {
    color: #d1d5db;
    margin-bottom: 2rem;
    opacity: 0.6;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.empty-state h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.empty-state p {
    margin-bottom: 3rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.0625rem;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.7;
}

.empty-state .btn {
    font-weight: 800;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.empty-state .btn.primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    border: none;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4), 0 2px 4px rgba(245, 158, 11, 0.3);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    animation: none;
}

.empty-state .btn.primary:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5), 0 4px 8px rgba(245, 158, 11, 0.4);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.875rem 1.75rem;
    border: 2px solid #6b2a2a;
    border-radius: 999px;
    background: #fff;
    color: #6b2a2a;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(107, 42, 42, 0.1);
    font-size: 0.9375rem;
}

.pagination-btn:hover {
    background: linear-gradient(135deg, #6b2a2a, #4a1a4a);
    color: #fff;
    border-color: #6b2a2a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 42, 42, 0.35);
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-number {
    min-width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    font-size: 0.9375rem;
}

.pagination-number:hover {
    background: #f9fafb;
    border-color: #6b2a2a;
    color: #6b2a2a;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(107, 42, 42, 0.25);
}

.pagination-number.active {
    background: linear-gradient(135deg, #6b2a2a, #4a1a4a);
    color: #fff;
    border-color: #6b2a2a;
    box-shadow: 0 6px 20px rgba(107, 42, 42, 0.4);
    transform: scale(1.05);
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: #9ca3af;
}

/* Additional Polish */
.events.enhanced {
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    padding-top: 1.5rem;
}

.events .container {
    position: relative;
    z-index: 1;
}

.events-container {
    position: relative;
    z-index: 1;
}

.events-container .card,
.events-container .card-grid,
.events-container .section-head {
    position: relative;
    z-index: 2;
}

/* Async Filter Loading State */
.events-container.filter-loading {
    position: relative;
}

.events-container.filter-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.events-container.filter-loading .card-grid {
    transition: opacity 0.3s ease;
}

.filter-error {
    padding: 1rem;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 3px solid #dc2626;
    display: none;
}

/* Events Page Responsive */
@media (max-width: 1200px) {
    .filters-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .events-filters-collapsible {
        padding: 0.875rem 1rem;
    }

    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    .filter-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .filter-actions .btn {
        width: 100%;
        min-width: auto;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-head #toggleFilters {
        display: inline-flex !important;
    }

    .empty-state {
        padding: 3.5rem 1.5rem;
        margin: 1.5rem 0;
    }

    .empty-state h3 {
        font-size: 1.5rem;
    }

    .empty-state p {
        font-size: 0.9375rem;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .pagination-number {
        min-width: 2.5rem;
        height: 2.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Grid System */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.event-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.event-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.event-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.event-meta-item svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.event-price {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.price-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.price-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.event-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.event-card-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Past Event Style */
.event-card.past-event {
    opacity: 0.75;
    filter: grayscale(100%);
}

.event-card.past-event:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Chips */
.chip {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #111827;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.chip.past {
    background: #ef4444;
    color: #fff;
}

/* ================= EVENT DETAILS PAGE STYLES ================= */

/* Event Details Hero */
.event-details-hero {
    min-height: 60vh;
    padding: 4rem 0;
}

.event-details-hero .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.event-details-hero .hero-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.event-details-hero .hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.event-details-hero .hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

/* Event Details Section */
.event-details-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 50%, #f9fafb 100%);
    position: relative;
}

.event-details-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%236b2a2a" fill-opacity="0.02"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.event-details-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.event-details-main h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.event-details-main p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
}

/* Event Highlights */
.event-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid rgba(107, 42, 42, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(107, 42, 42, 0.12);
    border-color: rgba(251, 191, 36, 0.3);
}

.highlight-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.highlight-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.35rem;
}

.highlight-content p {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Event Content Blocks */
.event-content-block {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(107, 42, 42, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.event-content-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706);
}

.event-content-block h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #111827;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.02em;
}

.event-content-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 2px;
}

.event-description {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #4b5563;
}

/* Expectations Grid */
.event-expectations .expectations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.expectation-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.expectation-item:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateX(4px);
}

.expectation-item svg {
    flex-shrink: 0;
    color: #f59e0b;
}

.expectation-item span {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
}

/* Enhanced Gallery */
.event-gallery .gallery-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item-enhanced {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item-enhanced img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item-enhanced:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(107, 42, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
}

.gallery-item-enhanced:hover .gallery-overlay {
    opacity: 1;
}

/* Related Events Section */
.related-events-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(107, 42, 42, 0.03) 0%, rgba(74, 26, 74, 0.03) 100%);
    position: relative;
}

.related-events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.3), transparent);
}

.event-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-info-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.2);
}

.event-info-card h3 {
    font-size: 1.625rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #111827;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

.event-info-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 4px;
    background: #fbbf24;
    border-radius: 2px;
}

.event-info-item {
    margin-bottom: 1.25rem;
}

.event-info-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
}

.event-info-value {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.event-info-value.price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #f59e0b;
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
}

.capacity-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.capacity-fill {
    height: 100%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transition: width 0.3s ease;
}

/* Event Details Responsive */
@media (max-width: 1024px) {
    .event-details-hero .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .event-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .event-details-hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .event-details-hero .hero-content h1 {
        font-size: 2rem;
    }

    .event-details-hero .hero-visual img {
        min-height: 300px;
    }

    .event-details-section {
        padding: 2rem 0;
    }

    .event-details-main h2 {
        font-size: 1.5rem;
    }

    .event-details-main p {
        font-size: 1rem;
    }

    .event-info-card {
        padding: 1.5rem;
    }

    .event-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .highlight-card {
        padding: 1.25rem;
    }

    .event-content-block {
        padding: 1.5rem;
    }

    .event-content-block h2 {
        font-size: 1.5rem;
    }

    .expectations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .related-events-section {
        padding: 2rem 0;
    }
}

/* ================= EVENT REGISTRATION ================= */

/* Registration Hero */
.registration-hero {
    min-height: auto;
    padding: 0.75rem 0;
    background: linear-gradient(135deg, rgba(107, 42, 42, 0.95), rgba(74, 26, 74, 0.95));
}

.registration-hero-content {
    max-width: 1400px;
    margin: 0 auto;
}

.registration-hero-content .btn {
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.registration-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}

.registration-hero-content p {
    font-size: 1.25rem;
    color: #e5e7eb;
    margin-bottom: 0.75rem;
}

.registration-hero-content p strong {
    color: #fff;
    font-weight: 700;
}

/* Improve button legibility on dark backgrounds */
.registration-hero .btn.outline {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.registration-hero .btn.outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Registration form buttons - improve legibility */
.registration-form .btn.primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    border: none;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35), 0 2px 4px rgba(245, 158, 11, 0.2);
    text-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.registration-form .btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.registration-form .btn.primary:hover::before {
    left: 100%;
}

.registration-form .btn.primary:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5), 0 4px 8px rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
}

.registration-form .btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.registration-form .btn.outline {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(229, 231, 235, 0.8);
    color: #1f2937;
    font-weight: 700;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.registration-form .btn.outline:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(107, 42, 42, 0.3);
    color: #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.registration-form .btn.outline:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Registration success/error states */
.registration-success .btn.primary,
.registration-already .btn.primary,
.registration-error .btn.primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    border: none;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.registration-success .btn.primary:hover,
.registration-already .btn.primary:hover,
.registration-error .btn.primary:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
}

.registration-success .btn.outline,
.registration-already .btn.outline,
.registration-error .btn.outline {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(107, 42, 42, 0.2);
    color: #1f2937;
    font-weight: 700;
}

.registration-success .btn.outline:hover,
.registration-already .btn.outline:hover,
.registration-error .btn.outline:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(107, 42, 42, 0.3);
    color: #111827;
}

/* Guest login link */
.registration-form .guest-login-link {
    text-align: center;
    color: #6b7280;
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.registration-form .guest-login-link a {
    color: #f59e0b;
    font-weight: 600;
    text-decoration: none;
}

.registration-form .guest-login-link a:hover {
    color: #d97706;
    text-decoration: underline;
}

/* Empty state in registration 404 */
.registration-404 .empty-state {
    max-width: 600px;
    margin: 4rem auto;
}

.registration-404 .empty-state h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.registration-404 .empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.registration-404 .empty-state .btn {
    margin-top: 2rem;
}

/* Registration Section */
.registration-section {
    padding: 0.75rem 0;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 50%, #f9fafb 100%);
    position: relative;
}

.registration-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: start;
}

/* Event Summary Card */
.event-summary-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    height: fit-content;
    position: sticky;
    top: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.event-summary-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid rgba(245, 158, 11, 0.15);
    position: relative;
}

.event-summary-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 2px;
}

.event-summary-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
    letter-spacing: -0.02em;
}

.event-summary-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.event-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(249, 250, 251, 0.6);
    transition: all 0.3s ease;
}

.event-summary-item:hover {
    background: rgba(251, 191, 36, 0.08);
    transform: translateX(4px);
}

.event-summary-item svg {
    flex-shrink: 0;
    color: #f59e0b;
    margin-top: 0.25rem;
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.2));
}

.event-summary-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 0.375rem;
}

.event-summary-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
}

.event-summary-value.price {
    font-size: 2rem;
    font-weight: 900;
    color: #f59e0b;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Registration Form */
.registration-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.registration-form:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #dc2626;
    font-weight: 500;
}

.form-error svg {
    flex-shrink: 0;
}

.form-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    transition: all 0.3s ease;
}

.form-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section:hover {
    border-bottom-color: rgba(245, 158, 11, 0.2);
}

.form-section-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(229, 231, 235, 0.8);
    position: relative;
    letter-spacing: -0.02em;
}

.form-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.form-section:hover .form-section-title::after {
    width: 90px;
}

.form-section-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
    padding-left: 0.75rem;
    border-left: 3px solid rgba(245, 158, 11, 0.2);
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Two-column layout for name fields */
.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-group-row .form-group {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: #1f2937;
}

.form-group .required {
    color: #dc2626;
    font-weight: 800;
    margin-left: 2px;
}

.form-input,
.form-textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b2a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
    opacity: 0.7;
}

.form-textarea {
    border-radius: 12px;
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

.form-input:hover,
.form-textarea:hover,
.form-group select:hover {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.form-input:focus,
.form-textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), 0 4px 12px rgba(245, 158, 11, 0.15);
    transform: translateY(-1px);
}

.form-input-readonly {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.9), rgba(243, 244, 246, 0.9));
    color: #6b7280;
    border: 2px solid rgba(229, 231, 235, 0.6);
    font-weight: 500;
}

/* Payment Summary */
.payment-summary {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 2px solid rgba(251, 191, 36, 0.25);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.1);
    transition: all 0.3s ease;
}

.payment-summary:hover {
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.15);
    transform: translateY(-2px);
}

.payment-summary-content {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #374151;
    padding: 0.75rem 0;
    font-weight: 500;
}

.payment-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    margin-top: 0.25rem;
    border-top: 2px solid rgba(251, 191, 36, 0.4);
    font-size: 1.125rem;
    font-weight: 800;
    color: #1f2937;
}

.payment-summary-total strong {
    color: #f59e0b;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.payment-note {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.75rem;
    font-style: italic;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border-left: 3px solid rgba(245, 158, 11, 0.4);
    padding-left: 0.875rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(229, 231, 235, 0.8);
    flex-wrap: wrap;
}

.btn.large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

/* Success/Error States */
.registration-success,
.registration-already,
.registration-error {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Payment Waiting Screen */
.payment-waiting {
    background: rgba(255, 255, 255, 0.95);
}

.payment-waiting-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

.payment-waiting-icon .spinning {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.payment-waiting-details {
    background: rgba(249, 250, 251, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.payment-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
}

.payment-detail-item:last-child {
    border-bottom: none;
}

.payment-detail-label {
    font-size: 0.9375rem;
    color: #6b7280;
    font-weight: 500;
}

.payment-detail-value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 700;
}

.payment-waiting-message {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.payment-waiting-message p {
    margin: 0;
    line-height: 1.6;
}

.payment-waiting-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
}

.success-icon,
.already-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.registration-success h2,
.registration-already h2,
.registration-error h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}

.registration-success p,
.registration-already p,
.registration-error p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.payment-notice {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 2rem 0;
    text-align: left;
}

.payment-notice p {
    margin: 0;
    color: #92400e;
    font-weight: 500;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.registration-error {
    background: rgba(254, 242, 242, 0.9);
    border-color: rgba(239, 68, 68, 0.2);
}

.registration-error h2 {
    color: #dc2626;
}

/* Responsive */
@media (max-width: 1024px) {
    .registration-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .event-summary-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .registration-hero {
        min-height: auto;
        padding: 0.5rem 0;
    }

    .registration-hero-content h1 {
        font-size: 2rem;
    }

    .registration-section {
        padding: 0.5rem 0;
    }

    .registration-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .registration-form,
    .event-summary-card {
        padding: 1.75rem;
        border-radius: 20px;
    }

    .event-summary-header h3 {
        font-size: 1.5rem;
    }

    .event-summary-item {
        padding: 0.875rem;
        gap: 1rem;
    }

    .event-summary-value.price {
        font-size: 1.75rem;
    }

    .form-section {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .form-section-title {
        font-size: 1.375rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.875rem 1.25rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .btn.large {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }

    .payment-summary {
        padding: 1.5rem;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
    }
}

/* New Premium UI Elements */
.hero-visual {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-visual:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.6);
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    pointer-events: none;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 480px;
    display: block;
}

/* FitKonnect home: avoid tall hero image on phones (overrides rule above) */
@media (max-width: 768px) {
    .hero.enhanced .hero-visual {
        margin-bottom: 0;
    }

    .hero.enhanced .hero-visual img {
        min-height: 0;
        height: auto;
        max-height: min(42vh, 220px);
        object-fit: cover;
    }
}

.event-description-block {
    font-size: 1.125rem;
    line-height: 2;
    color: #4b5563;
}

.event-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.event-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Animations */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    animation: revealUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* ================= AUTHENTICATION PAGES ================= */
.auth-hero {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.auth-container {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.auth-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 3rem 2.5rem;
    transition: all 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.auth-header p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form .form-group label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: -0.01em;
}

.auth-form .form-group .form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border: 2px solid transparent;
    background: rgba(249, 250, 251, 0.8);
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #1f2937;
    font-family: 'Inter', sans-serif;
}

.auth-form .form-group .form-input:focus {
    outline: none;
    border-color: #fbbf24;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

.auth-form .form-group .form-input::placeholder {
    color: #9ca3af;
}

.auth-form .form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-form .form-group-half {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form .form-group-inline {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.auth-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #4b5563;
    user-select: none;
}

.auth-form .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #fbbf24;
}

.auth-form .form-help {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: -0.25rem;
}

.auth-form .btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Auth Form Buttons - Improve Legibility */
.auth-form .btn.primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    border: none;
    font-weight: 800;
    font-size: 1rem;
    padding: 1rem 2rem;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35), 0 2px 4px rgba(245, 158, 11, 0.2);
    text-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.auth-form .btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.auth-form .btn.primary:hover::before {
    left: 100%;
}

.auth-form .btn.primary:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5), 0 4px 8px rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
}

.auth-form .btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.auth-form .btn.outline {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(229, 231, 235, 0.8);
    color: #1f2937;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form .btn.outline:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(251, 191, 36, 0.4);
    color: #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.auth-form .btn.outline:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Header Auth Buttons - Improve Legibility */
.header-auth .btn.small.primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    border: none;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
    text-shadow: none;
}

.header-auth .btn.small.primary:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
}

.header-auth .btn.small.outline {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-auth .btn.small.outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Auth Form Buttons - Improve Legibility */
.auth-form .btn.primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    border: none;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35), 0 2px 4px rgba(245, 158, 11, 0.2);
    text-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.auth-form .btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.auth-form .btn.primary:hover::before {
    left: 100%;
}

.auth-form .btn.primary:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5), 0 4px 8px rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
}

.auth-form .btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.auth-form .btn.outline {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(229, 231, 235, 0.8);
    color: #1f2937;
    font-weight: 700;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form .btn.outline:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(251, 191, 36, 0.4);
    color: #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.auth-form .btn.outline:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.auth-error,
.auth-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
}

.auth-error {
    background: rgba(254, 202, 202, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.auth-error svg {
    flex-shrink: 0;
    color: #dc2626;
}

.auth-success {
    background: rgba(209, 250, 229, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #065f46;
}

.auth-success svg {
    flex-shrink: 0;
    color: #22c55e;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(229, 231, 235, 0.6);
}

.auth-footer p {
    font-size: 0.9375rem;
    color: #6b7280;
}

.auth-link {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #f59e0b;
    text-decoration: underline;
}

/* Responsive Auth Pages */
@media (max-width: 768px) {
    .auth-hero {
        padding: 2rem 0;
        min-height: auto;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }

    .auth-form .form-group-row {
        grid-template-columns: 1fr;
    }

    .auth-form .form-group-inline {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================= USER DASHBOARD ================= */
/* Hide site header/footer when dashboard is active */
body:has(.dashboard-layout) .top-bar,
body:has(.dashboard-layout) .header,
body:has(.dashboard-layout) .footer {
    display: none;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 50%, #f9fafb 100%);
}

/* Sidebar Navigation - always visible on desktop */
.dashboard-sidebar {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(45, 15, 58, 0.98) 0%, rgba(74, 26, 74, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 769px) {
    .dashboard-sidebar {
        transform: translateX(0);
        visibility: visible;
    }
    .dashboard-main {
        margin-left: 280px;
    }
}

.dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease;
}

.sidebar-logo:hover {
    transform: translateY(-1px);
}

.sidebar-logo-image {
    max-height: 32px;
    width: auto;
}

.sidebar-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-left-color: rgba(251, 191, 36, 0.5);
}

.sidebar-nav-item:hover svg {
    opacity: 1;
}

.sidebar-nav-item.active {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border-left-color: #fbbf24;
    font-weight: 600;
}

.sidebar-nav-item.active svg {
    opacity: 1;
    color: #fbbf24;
}

.sidebar-footer {
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logout {
    color: rgba(239, 68, 68, 0.8);
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-left-color: #ef4444;
}

/* Main Content Area */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Bar */
.dashboard-topbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.topbar-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.topbar-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.02em;
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.topbar-user-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
}

.topbar-user-email {
    font-size: 0.8125rem;
    color: #6b7280;
}

.topbar-home-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 8px;
    color: #f59e0b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.topbar-home-link:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
    border-color: rgba(251, 191, 36, 0.3);
    color: #d97706;
}

/* Dashboard Content Area */
.dashboard-content-area {
    flex: 1;
    padding: 1rem 0;
}

.dashboard-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.dashboard-welcome {
    margin-bottom: 1rem;
}

.dashboard-welcome h2 {
    font-size: 1.625rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.dashboard-welcome p {
    font-size: 0.9375rem;
    color: #4b5563;
    font-weight: 500;
    line-height: 1.5;
}

/* Old Dashboard Styles - Keep for compatibility but override */
.dashboard-hero {
    display: none;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: -0.03em;
}

.dashboard-header p {
    font-size: 1.125rem;
    color: #e5e7eb;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

.dashboard-content {
    padding: 3rem 0;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 50%, #f9fafb 100%);
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

/* Stat cards in stats-grid (for results page, etc.) */
.stats-grid .stat-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    gap: 0.5rem;
    min-width: 0;
}

.stats-grid .stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stats-grid .stat-card .stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-grid .stat-card.stat-success {
    border-left: 4px solid #10b981;
}

.stats-grid .stat-card.stat-warning {
    border-left: 4px solid #f59e0b;
}

.stats-grid .stat-card.stat-info {
    border-left: 4px solid #3b82f6;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

a.stat-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
}

.stat-icon-events {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    color: #dc2626;
}

.stat-icon-registrations {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    color: #2563eb;
}

.stat-icon-orders {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
    color: #d97706;
}

.stat-icon-coaches {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.1));
    color: #16a34a;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 0.125rem;
    letter-spacing: -0.04em;
}

.stat-label {
    font-size: 0.8125rem;
    color: #4b5563;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dashboard-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 1rem;
}

.dashboard-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.dashboard-card-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.dashboard-card-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: #f59e0b;
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.dashboard-card-link:hover {
    color: #d97706;
    text-decoration: underline;
}

.dashboard-card-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.dashboard-card-content {
    padding: 1rem;
}

.dashboard-events-list,
.dashboard-registrations-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-event-item,
.dashboard-registration-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(249, 250, 251, 0.8);
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dashboard-event-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(229, 231, 235, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dashboard-event-item:hover .dashboard-event-image img,
.dashboard-registration-item:hover .dashboard-event-image img {
    transform: scale(1.05);
}

.dashboard-event-item:hover,
.dashboard-registration-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dashboard-event-info,
.dashboard-registration-info {
    flex: 1;
    min-width: 0;
}

.dashboard-event-info h3,
.dashboard-registration-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.dashboard-event-meta,
.dashboard-registration-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.375rem;
    font-weight: 500;
}

.dashboard-event-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.status-badge.status-confirmed {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.status-badge.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.status-badge.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.registration-code {
    font-size: 0.8125rem;
    color: #374151;
    font-family: 'Courier New', monospace;
    padding: 0.25rem 0.625rem;
    background: rgba(229, 231, 235, 0.7);
    border-radius: 6px;
    font-weight: 600;
}

.dashboard-event-actions,
.dashboard-registration-actions {
    display: flex;
    gap: 0.5rem;
}

/* Dashboard Button Styles - Improve Legibility */
.dashboard-card .btn,
.dashboard-event-actions .btn,
.dashboard-registration-actions .btn {
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: none;
}

.dashboard-card .btn.small.primary,
.dashboard-event-actions .btn.small.primary,
.dashboard-registration-actions .btn.small.primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    border: none;
    font-weight: 800;
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35), 0 1px 3px rgba(245, 158, 11, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card .btn.small.primary:hover,
.dashboard-event-actions .btn.small.primary:hover,
.dashboard-registration-actions .btn.small.primary:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45), 0 2px 6px rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.dashboard-card .btn.small.primary:active,
.dashboard-event-actions .btn.small.primary:active,
.dashboard-registration-actions .btn.small.primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.dashboard-card .btn.small.outline,
.dashboard-event-actions .btn.small.outline,
.dashboard-registration-actions .btn.small.outline {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(107, 42, 42, 0.3);
    color: #1f2937;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card .btn.small.outline:hover,
.dashboard-event-actions .btn.small.outline:hover,
.dashboard-registration-actions .btn.small.outline:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(107, 42, 42, 0.5);
    color: #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.dashboard-card .btn.small.outline:active,
.dashboard-event-actions .btn.small.outline:active,
.dashboard-registration-actions .btn.small.outline:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    color: #4b5563;
}

/* Dashboard Footer */
.dashboard-footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(229, 231, 235, 0.6);
    padding: 0.75rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #f59e0b;
}

.dashboard-empty p {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Charts and Visualizations */
.chart-container {
    padding: 0.5rem 0;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 0.5rem;
    height: 150px;
    padding: 0.5rem 0;
}

.bar-chart-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.bar-chart-bar {
    width: 100%;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
    min-height: 4px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.25rem;
}

.bar-chart-bar:hover {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    transform: scaleY(1.05);
}

.bar-chart-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bar-chart-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Category Distribution */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.01em;
}

.category-count {
    font-size: 0.875rem;
    font-weight: 800;
    color: #f59e0b;
    letter-spacing: 0.01em;
}

.category-bar {
    height: 6px;
    background: rgba(229, 231, 235, 0.6);
    border-radius: 999px;
    overflow: hidden;
}

.category-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    border-radius: 999px;
    transition: width 0.5s ease;
}

/* Payment Stats */
.payment-stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(249, 250, 251, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(229, 231, 235, 0.6);
}

.payment-stat-label {
    font-size: 0.9375rem;
    color: #4b5563;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.payment-stat-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.01em;
}

/* Dashboard Sidebar Overlay for Mobile */
.dashboard-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dashboard-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Dashboard Menu Toggle Button */
.dashboard-menu-toggle {
    display: none;
    background: rgba(45, 15, 58, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.dashboard-menu-toggle:hover {
    background: rgba(45, 15, 58, 1);
    transform: scale(1.05);
}

.dashboard-menu-toggle:active {
    transform: scale(0.95);
}

.dashboard-menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* Responsive Dashboard - keep sidebar visible until 640px */
@media (max-width: 1024px) {
    .dashboard-sidebar {
        width: 240px;
        min-width: 240px;
    }

    .dashboard-main {
        margin-left: 240px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Mobile Dashboard - Sidebar slides in/out only on small screens */
@media (max-width: 640px) {
    .dashboard-sidebar {
        width: 260px;
        max-width: 90vw;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
        position: fixed;
        height: 100vh;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
    }
    
    .dashboard-sidebar.open {
        transform: translateX(0);
    }
    
    .dashboard-menu-toggle {
        display: flex;
        width: 36px;
        height: 36px;
        padding: 0.375rem;
        margin-right: 0.5rem;
    }
    
    .dashboard-menu-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    .dashboard-sidebar-overlay {
        display: block;
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    /* Improve sidebar touch interactions */
    .sidebar-nav-item {
        padding: 0.875rem 0.75rem;
        min-height: 48px;
        touch-action: manipulation;
        font-size: 0.875rem;
        white-space: normal;
        border-left: 3px solid transparent;
        border-bottom: none;
    }
    
    .sidebar-nav {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0.75rem 0;
        gap: 0.125rem;
    }
    
    .sidebar-nav-item.active {
        border-left-color: #fbbf24;
        border-bottom: none;
    }
    
    .sidebar-nav-item:hover {
        border-left-color: rgba(251, 191, 36, 0.5);
        border-bottom: none;
    }
    
    .sidebar-footer {
        display: block;
        padding: 0.75rem 0;
    }
    
    .dashboard-sidebar {
        width: 260px;
        max-width: 90vw;
    }
    
    .sidebar-header {
        padding: 0.875rem;
    }

    .topbar-content {
        padding: 0 1rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .topbar-user {
        display: none;
    }

    .dashboard-container {
        padding: 0 20px;
    }

    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .dashboard-event-item,
    .dashboard-registration-item {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .dashboard-event-image {
        width: 60px;
        height: 60px;
    }

    .dashboard-event-actions,
    .dashboard-registration-actions {
        width: 100%;
    }

    .dashboard-event-actions .btn,
    .dashboard-registration-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ================= SHOP / E-COMMERCE ================= */

/* Shop Page */
.shop-page {
    padding: 2rem 0;
    min-height: 60vh;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

/* Shop Filters */
.shop-filters {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%;
    /* 4:3 aspect ratio */
    overflow: hidden;
    background: #f9fafb;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-badge.sale {
    background: #ef4444;
    color: #fff;
}

.product-badge.out-of-stock {
    background: #6b7280;
    color: #fff;
}

.product-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
}

.product-category {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.price-original {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.price-discount {
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 600;
}

.product-stock {
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 600;
}

.product-add-to-cart {
    padding: 0 1.25rem 1.25rem;
}

/* Product Detail Page */
.product-detail-page {
    padding: 2rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #6b2a2a;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
}

.product-thumbnails .thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.product-thumbnails .thumbnail:hover,
.product-thumbnails .thumbnail.active {
    border-color: #6b2a2a;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-price-section .price-current {
    font-size: 2rem;
}

.product-stock-status {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.stock-available {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.stock-unavailable {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.product-variants {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-add-to-cart-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-input {
    width: 100px;
}

.product-meta {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280;
}

.product-description-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.product-description-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-description {
    line-height: 1.8;
    color: #374151;
}

.related-products-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.related-products-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Cart Page */
.cart-page {
    padding: 2rem 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 2fr 150px 120px auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-details h3 a {
    color: #1f2937;
    text-decoration: none;
}

.cart-item-details h3 a:hover {
    color: #6b2a2a;
}

.cart-item-variant {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.25rem 0;
}

.cart-item-customization {
    font-size: 0.8125rem;
    color: #4b5563;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.cart-custom-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.35rem;
}

.cart-custom-part {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.cart-custom-part .color-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.cart-edit-design-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
}

.cart-edit-design-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.customization-badge {
    display: inline-block;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item-price {
    font-size: 0.875rem;
    color: #6b7280;
}

.cart-item-quantity {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-total .item-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.cart-summary {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.summary-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.summary-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    border-top: 2px solid #e5e7eb;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.summary-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Checkout Page */
.checkout-page {
    padding: 2rem 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.checkout-form-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.checkout-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checkout-form .form-group {
    margin-bottom: 1.5rem;
}

.checkout-form .form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkout-summary {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.order-item-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.order-item-info p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.25rem 0;
}

.order-item-price {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

/* Responsive Shop */
@media (max-width: 1024px) {
    .filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
    }

    .cart-item-quantity,
    .cart-item-total,
    .cart-item-actions {
        grid-column: 2;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
    }

    .checkout-form .form-group-row {
        grid-template-columns: 1fr;
    }
}

/* Trainers/Coaches Directory Styles */
/* Standardized Card Styles */
.coach-card,
.event-card,
.product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.event-card-content,
.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.coach-card:hover,
.event-card:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15), 0 8px 8px -5px rgba(0, 0, 0, 0.08);
}

.coaches-grid,
.card-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}



/* Button Styles - Legibility Fix */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.25;
}

.btn.primary {
    background: #fbbf24;
    color: #1f2937;
    border-color: #fbbf24;
}

.btn.primary:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn.outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn.outline:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}


.event-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

/* Ensure actions in product card align with padded content */
.product-card .event-card-actions {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
}

.event-card-actions .btn {
    flex: 1;
}

.coach-card .event-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Clickable coach card - whole card navigates to profile */
.coach-card .coach-card-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.coach-card .coach-card-link:hover {
    color: inherit;
}

/* When coach-card-link wraps content, actions need padding */
.coach-card > .event-card-actions {
    padding: 0 1.5rem 1.5rem;
}

.coach-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.coach-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-specialization {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.coach-meta {
    margin: 1rem 0;
}

.coach-meta>div {
    margin: 0.5rem 0;
}

.coach-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coach-rating .stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.coach-rating .rating-value {
    font-weight: bold;
}

.coach-rating .review-count {
    color: #666;
    font-size: 0.9rem;
}

.coach-location {
    color: #6b7280;
    font-size: 0.9375rem;
}

.coach-price {
    color: #1f2937;
    font-weight: 600;
    font-size: 1rem;
}

.coach-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.results-header {
    margin: 2rem 0 1rem;
}

.results-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* Unified Compact Filters (Flex Bar) */
.filters-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
}

.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    /* Spacious gap between items */
    align-items: flex-end;
    /* Align inputs and buttons at the bottom */
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 150px;
    /* Minimum width before wrapping */
}

.filter-group-half {
    min-width: 120px;
    flex: 0.5;
}

.filter-group-checkbox {
    flex: 0 0 auto;
    min-width: auto;
    padding-top: 1.25rem;
}

/* Specific flex basis for search to give it more room if needed, but allow shrinking */
.filter-group:first-child {
    flex: 2;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.75rem;
    /* Smaller label */
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.25rem;
    margin-bottom: 0.1rem;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 0.95rem;
    /* Slightly larger text inside input */
    color: #1f2937;
    background-color: #fff;
    /* Clean white background */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 48px;
    /* Taller touch target */
    appearance: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Subtle depth */
}

/* Custom arrow for selects */
select.filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-position: right 1.25rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 2.75rem;
    cursor: pointer;
}

.filter-input:hover,
.filter-select:hover {
    border-color: #d1d5db;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15);
    /* Soft focus ring */
}

.filters-form .filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding-bottom: 0px;
    /* Align with inputs */
    margin-left: auto;
    /* Push buttons to the right (desktop) */
}

.filters-form .btn {
    height: 48px;
    /* Match input height */
    padding: 0 1.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Checkbox specific label styling */
.checkbox-label {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    user-select: none;
    background: #f9fafb;
    padding: 0 1.25rem;
    border-radius: 50px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Responsive */
@media (max-width: 1024px) {
    .filters-form {
        gap: 1rem;
    }

    .filter-group {
        min-width: 45%;
        /* Two columns on table */
    }
}

@media (max-width: 640px) {
    .filters-wrapper {
        padding: 1rem;
        background: transparent;
        /* Cleaner on mobile */
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .filters-form {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        width: 100%;
        min-width: 100%;
    }

    .filters-form .filter-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .filters-form .btn {
        flex: 1;
    }
}

/* ================= AUTHENTICATION ================= */
/* .auth-hero is defined at the end of the file with background image */

.auth-container {
    width: 100%;
    max-width: 480px;
    /* Compact focused card */
    margin: 0 auto;
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    /* Match .event-card */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* Standard shadow */
    padding: 2.5rem;
    border: 1px solid #f3f4f6;
}

.auth-header {
    text-align: center;
    margin-bottom: 0.75rem;
    /* Reduced from 2rem */
}

.auth-header h1 {
    font-size: 1.5rem;
    /* Reduced from 1.875rem */
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.25rem;
}

.auth-header p {
    color: #6b7280;
    font-size: 0.85rem;
    /* Reduced from 0.95rem */
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* Reduced from 1.25rem */
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 0.55rem 1rem;
    /* Reduced padding */
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}

.form-input:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
    background-color: #fff;
}

.form-group-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.form-group-inline .checkbox-label {
    height: auto;
    padding: 0;
    background: none;
    border: none;
    display: flex;
    gap: 0.5rem;
}

.form-group-inline .checkbox-label:hover {
    background: none;
}

.auth-link {
    color: #ea580c;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #c2410c;
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    color: #6b7280;
    font-size: 0.85rem;
}

.auth-error,
.auth-success {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.auth-success {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

/* Two column layout for names */
.form-group-row {
    display: flex;
    gap: 0.75rem;
}

.form-group-half {
    flex: 1;
}

/* Auth Responsive */
@media (max-width: 640px) {
    .auth-hero {
        padding: 0.5rem;
        background: #fff;
    }

    .auth-card {
        padding: 1.25rem;
        box-shadow: none;
        border: none;
    }
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    /* Compact padding */
    border: 1px solid transparent;
    position: relative;
    /* Glow effect similar to homepage cards */
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25),
        0 0 40px rgba(107, 42, 42, 0.5),
        0 0 60px rgba(74, 26, 74, 0.4);
}

/* Optional: Gradient border effect using pseudo-element */
.auth-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(to right, #6b2a2a, #4a1a4a);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

/* Internal Auth Styling */
.auth-logo-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.auth-logo-center img {
    height: 40px;
    margin-bottom: 1.5rem;
}

.auth-register-link {
    margin-top: 1rem;
}

.auth-copyright {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Blog Pages Styles */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.blog-filters {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.blog-filters-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.blog-filters-form .filter-group {
    flex: 1;
    min-width: 200px;
}

.blog-filters-form .filter-input,
.blog-filters-form .filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
}

.blog-filters-form .filter-actions {
    display: flex;
    gap: 0.5rem;
}

.blog-featured {
    padding: 3rem 0;
    background: #f9fafb;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.result-count {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.featured-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.featured-post-image {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-post-card:hover .featured-post-image img {
    transform: scale(1.05);
}

.featured-post-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.featured-post-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.featured-post-content h3 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.featured-post-content h3 a:hover {
    color: #5a3d7a;
}

.post-excerpt {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
    flex-wrap: wrap;
}

.post-author {
    font-weight: 500;
    color: #374151;
}

.blog-posts {
    padding: 3rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.post-image {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.post-content h3 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.post-content h3 a:hover {
    color: #5a3d7a;
}

.post-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-link {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-link:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pagination-link.active {
    background: #5a3d7a;
    color: white;
    border-color: #5a3d7a;
}

/* Blog Post Detail */
.blog-post-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
}

.blog-post-header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-category-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: background 0.2s;
}

.post-category-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.blog-post-header h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.post-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
}

.post-date {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
}

.post-stats-header {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.blog-post-image {
    padding: 2rem 0;
}

.featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.blog-post-content {
    padding: 3rem 0;
}

.blog-post-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-post-article {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.post-content-body h2,
.post-content-body h3,
.post-content-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}

.post-content-body p {
    margin-bottom: 1.5rem;
}

.post-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.post-tags strong {
    margin-right: 0.5rem;
    color: #374151;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #374151;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.blog-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.blog-sidebar h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #111827;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.related-post-card {
    display: flex;
    gap: 1rem;
}

.related-post-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content h4 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.related-post-content h4 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.related-post-content h4 a:hover {
    color: #5a3d7a;
}

.related-post-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Blog Responsive */
@media (max-width: 1024px) {
    .blog-post-wrapper {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-post-header h1 {
        font-size: 2rem;
    }

    .featured-posts-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-filters-form {
        flex-direction: column;
    }

    .post-meta-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Updated Auth Hero with Background Pattern */
.auth-hero {
    min-height: 100vh;
    /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;

    /* Pattern: Dark Gradient + Grid */
    background-color: #3f1212;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(135deg, #581c1c 0%, #2a0a12 100%);
    background-size: 50px 50px, 50px 50px, 100% 100%;
}

/* ================= PRODUCT CUSTOMIZATION ================= */
.product-customize-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.product-customize-notice p {
    margin-bottom: 1rem;
    color: #0369a1;
}

.divider-text {
    display: inline-block;
    margin: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.customization-designer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.customization-preview-section,
.customization-options-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.customization-preview-canvas {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.preview-base-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.preview-overlay-canvas {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: calc(100% - 4rem);
    height: calc(100% - 4rem);
    pointer-events: none;
}

.preview-actions {
    margin-top: 1rem;
    text-align: center;
}

.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload-label:hover {
    border-color: #5a3d7a;
    background: #f9fafb;
}

.file-upload-text {
    color: #6b7280;
    font-size: 0.875rem;
}

.file-preview {
    margin-top: 1rem;
    position: relative;
    display: inline-block;
}

.file-preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.hidden {
    display: none !important;
}

.file-remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.file-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.color-picker {
    width: 100%;
    height: 50px;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
}

.customization-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.customization-actions .btn {
    width: 100%;
}

.required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Customization Responsive */
@media (max-width: 1024px) {
    .customization-designer-grid {
        grid-template-columns: 1fr;
    }

    .customization-preview-canvas {
        max-width: 100%;
    }
}

/* ================= CART PAGE STYLES ================= */
.cart-layout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-top: 2rem;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-items-list .event-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    background: white;
}

.cart-items-list .event-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.cart-items-list .cart-item-card {
    padding: 2rem;
}

.cart-item-image-wrapper {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    border-radius: 0;
    overflow: hidden;
    border: none;
    background: #f9fafb;
}

.cart-item-image-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.cart-item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-details-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    min-width: 0;
}

.cart-item-meta-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.cart-item-price-meta {
    font-weight: 400;
    color: #9ca3af;
}

.cart-item-meta-separator {
    color: #d1d5db;
    font-size: 0.625rem;
}

.cart-item-quantity-meta {
    color: #9ca3af;
}

.cart-item-title {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
    color: #111827;
}

.cart-item-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.cart-item-title a:hover {
    color: #2563eb;
}

.cart-item-variant-text {
    margin: 0 0 0.5rem 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.3;
}

.cart-item-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}

.cart-item-quantity-group {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.cart-item-quantity-group label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

.cart-item-quantity-input {
    width: 60px;
    padding: 0.25rem 0.375rem;
    text-align: center;
    font-size: 0.8125rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.cart-item-actions-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
}

.cart-item-total-price {
    font-size: 0.9375rem;
    color: #111827;
    font-weight: 700;
    white-space: nowrap;
}

.cart-item-remove-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.cart-actions-bottom {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.cart-summary-sticky {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.cart-summary-title {
    margin-bottom: 1.5rem;
}

.cart-summary-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-summary-actions .btn {
    width: 100%;
    text-align: center;
}

/* Checkout Page Styles */
.checkout-layout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-top: 2rem;
}

.checkout-form-section {
    background: white;
}

.checkout-shipping-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}

.checkout-shipping-form .filter-group {
    width: 100%;
}

.checkout-shipping-form textarea.filter-input {
    min-height: 80px;
    resize: vertical;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

.checkout-form-section-title {
    margin-bottom: 1.5rem;
}

.checkout-summary-sticky {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.checkout-summary-title {
    margin-bottom: 1.5rem;
}

.checkout-order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.checkout-order-item-details {
    flex: 1;
}

.checkout-order-item-name {
    font-size: 0.9375rem;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.checkout-order-item-meta {
    margin: 0.25rem 0;
}

.checkout-order-item-price {
    text-align: right;
    margin-left: 1rem;
}

.filter-group-half-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkout-form-submit {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    width: 100%;
}

.checkout-form-submit .btn.full-width {
    width: 100%;
}

.inline-form {
    display: inline;
}

.checkout-error-alert {
    background: #fee2e2;
    border-color: #fecaca;
    margin-bottom: 2rem;
}

.checkout-error-text {
    color: #dc2626;
    margin: 0;
}

/* Shop Index Styles */
.shop-filter-toggle {
    display: none;
}

.shop-add-to-cart-form {
    flex: 1;
    display: flex;
}

.shop-add-to-cart-btn {
    width: 100%;
}

.shop-out-of-stock-btn {
    flex: 1;
}

/* My Orders Styles */
.orders-filter-group-full {
    grid-column: span 7;
}

/* Notification Styles */
.notification-dropdown {
    min-width: 320px;
    max-width: 400px;
}

.notification-item.unread {
    background: #f0f9ff;
    border-left: 3px solid #3b82f6;
}

.notification-item.unread .cart-dropdown-item-name {
    font-weight: 600;
}

.notification-unread {
    border-left: 3px solid #3b82f6;
    background: #f0f9ff;
}

.orders-filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.orders-filter-button {
    flex: 0 0 auto;
}

.orders-empty-state-full {
    grid-column: 1 / -1;
}

.order-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.order-card-meta-text {
    margin: 0.5rem 0 0 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.order-card-price-right {
    text-align: right;
}

.order-card-meta-bottom {
    margin-bottom: 1rem;
}

.order-card-total-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.order-card-meta-spacing {
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {

    .cart-layout-grid,
    .checkout-layout-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary-sticky,
    .checkout-summary-sticky {
        position: static;
    }
}

/* ============================================
   RESPONSIVE UTILITIES & TABLE-TO-CARD STYLES
   ============================================ */

/* Utility classes to hide non-important information on small screens */
.hide-mobile {
    display: block;
}

.hide-desktop {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .hide-desktop {
        display: block !important;
    }
    
    .hide-mobile-inline {
        display: none !important;
    }
    
    .hide-desktop-inline {
        display: inline !important;
    }
}

@media (min-width: 769px) {
    .hide-mobile-inline {
        display: inline !important;
    }
    
    .hide-desktop-inline {
        display: none !important;
    }
}

/* Responsive Table-to-Card Conversion */
@media (max-width: 768px) {
    /* Make table container scrollable on mobile */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Convert tables to card layout on small screens */
    .data-table,
    table.data-table,
    .table-responsive {
        display: block;
        width: 100%;
    }
    
    .data-table thead,
    table.data-table thead {
        display: none;
    }
    
    .data-table tbody,
    table.data-table tbody {
        display: block;
        width: 100%;
    }
    
    .data-table tr,
    table.data-table tr {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 1rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .data-table td,
    table.data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
        text-align: left !important;
    }
    
    .data-table td:last-child,
    table.data-table td:last-child {
        border-bottom: none;
    }
    
    .data-table td::before,
    table.data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #374151;
        margin-right: 1rem;
        flex-shrink: 0;
        min-width: 100px;
    }
    
    /* For tables without data-label attributes, use column index */
    .data-table td:first-child::before {
        content: attr(data-label);
    }
    
    /* Action buttons in cards */
    .data-table .action-buttons,
    table.data-table .action-buttons {
        justify-content: flex-end;
        margin-top: 0.5rem;
    }
    
    /* Results table specific */
    .results-table-container .data-table tr {
        background: #f9fafb;
    }
    
    /* Order/Registration tables */
    .order-table tr,
    .registration-table tr {
        background: #ffffff;
    }
}

/* Additional responsive improvements for small screens */
@media (max-width: 640px) {
    /* Reduce padding on containers */
    .container {
        padding: 0 0.75rem;
    }
    
    /* Stack form elements */
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    /* Make buttons full width on mobile */
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Stack page headers */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    /* Reduce font sizes */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hide less important metadata */
    .meta-secondary,
    .text-muted-small.hide-mobile {
        display: none;
    }
    
    /* Mobile Filter Popup */
    .filter-toggle-btn {
        display: flex;
    }
    
    .events-filters-collapsible,
    .filters-section {
        display: none;
    }
    
    .events-filters-collapsible.mobile-popup-active,
    .filters-section.mobile-popup-active {
        display: block;
    }
    
    /* Show filter popup on mobile */
    .filter-popup .events-filters-collapsible,
    .filter-popup .filters-section {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .filter-popup .filters-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: none !important;
    }
    
    .filter-popup .filter-group {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure inputs in popup are styled correctly */
    .filter-popup .filter-input,
    .filter-popup .filter-select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
}

/* Payment waiting message styles (moved from inline) */
.payment-waiting-message p {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: #6b7280;
}

.payment-waiting-message p:last-of-type {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.payment-waiting-actions {
    display: none;
}

.payment-waiting-actions.show {
    display: block;
}

.payment-waiting-actions p {
    color: #dc2626;
    margin-bottom: 1rem;
}

.registration-success {
    display: none;
}

.registration-success.show {
    display: block;
}

.payment-notice {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #065f46;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid;
}

.payment-notice p {
    margin-top: 0.5rem;
}

.form-error {
    white-space: pre-line;
    line-height: 1.6;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.form-error-content {
    flex: 1;
}

.form-error-content strong {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group-spacing {
    margin-top: 1rem;
}

.form-help-text {
    display: block;
    margin-top: 0.375rem;
    color: #6b7280;
    font-size: 0.8125rem;
}

/* License management page styles (moved from inline) */
.license-manage-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
}

.license-manage-form-group {
    margin-bottom: 20px;
}

.license-manage-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.license-manage-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: monospace;
}

.license-manage-submit {
    width: 100%;
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.license-manage-submit:hover {
    background: #5568d3;
}

.license-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.license-details-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}

.license-details-card h3 {
    margin-top: 0;
}

.license-status-active {
    color: green;
}

.license-status-inactive {
    color: red;
}

.license-progress-bar {
    background: #e9ecef;
    height: 20px;
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.license-progress-fill {
    background: #667eea;
    height: 100%;
    transition: width 0.3s ease;
}

.license-projects-table {
    width: 100%;
    border-collapse: collapse;
}

.license-projects-table thead tr {
    border-bottom: 2px solid #dee2e6;
}

.license-projects-table th {
    text-align: left;
    padding: 10px;
}

.license-projects-table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.license-projects-table td {
    padding: 10px;
}

@media (max-width: 768px) {
    .license-details-grid {
        grid-template-columns: 1fr;
    }
    
    .license-manage-container {
        padding: 15px;
        margin: 20px auto;
    }
    
    /* Convert license projects table to cards */
    .license-projects-table {
        display: block;
    }
    
    .license-projects-table thead {
        display: none;
    }
    
    .license-projects-table tbody {
        display: block;
    }
    
    .license-projects-table tr {
        display: block;
        margin-bottom: 1rem;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 1rem;
    }
    
    .license-projects-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .license-projects-table td:last-child {
        border-bottom: none;
    }
    
    .license-projects-table td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 1rem;
    }
}

.license-key-code {
    font-size: 14px;
    letter-spacing: 1px;
}

.license-purchase-info {
    margin-top: 15px;
}

.license-actions {
    margin-top: 30px;
    text-align: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .license-actions {
        flex-direction: column;
    }
    
    .license-actions .btn {
        width: 100%;
    }
}

/* Rank badge styles (moved from rankings.php) */
.rank-badge {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    font-weight: bold;
}

.rank-1 {
    background: #FFD700;
    color: #000;
}

.rank-2 {
    background: #C0C0C0;
    color: #000;
}

.rank-3 {
    background: #CD7F32;
    color: #fff;
}

.results-table-spacing {
    margin-top: 1rem;
}

.official-time-note {
    color: #6b7280;
}

/* Contact page cards - make visible immediately */
.contact-cards .event-card {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.contact-cards .event-card-content {
    color: #1f2937;
}

.contact-cards .event-card-content h2 {
    color: #111827;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-cards .event-card-content h3 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-cards .event-card-content h4 {
    color: #1f2937;
}

.contact-cards .event-card-content p {
    color: #4b5563;
}

.contact-cards .event-card-content a {
    color: #f59e0b;
    text-decoration: none;
}

.contact-cards .event-card-content a:hover {
    color: #d97706;
    text-decoration: underline;
}

.contact-cards .event-card-content label {
    color: #374151;
}

.contact-cards .event-card-content .event-description {
    color: #4b5563;
}

/* ================= COACH PROFILE & TRAINERS ================= */
.coach-hero {
    min-height: auto;
    padding: 2rem 0 2.5rem;
}

.coach-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.coach-hero-back {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.coach-hero-grid {
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.coach-hero-avatar-wrap {
    flex-shrink: 0;
}

.coach-hero-avatar,
.coach-hero-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.coach-hero-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6b2a2a, #4a1a4a);
}

.coach-hero-avatar-placeholder.hidden {
    display: none !important;
}

.coach-hero-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.coach-hero-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.coach-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    letter-spacing: -0.02em;
}

.coach-hero-badge {
    background: rgba(251, 191, 36, 0.9);
    color: #1f2937;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
}

.coach-hero-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(34, 197, 94, 0.25);
    border-radius: 999px;
    color: #86efac;
    font-size: 0.75rem;
    font-weight: 600;
}

.coach-hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 1.25rem;
    color: #e5e7eb;
    font-size: 0.9rem;
    row-gap: 0.25rem;
}

.coach-hero-stats .rating {
    color: #fbbf24;
    font-weight: 700;
}

.coach-hero-stats .muted {
    opacity: 0.85;
}

.coach-hero-stats .location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.coach-hero-stats .price {
    color: #fbbf24;
}

.coach-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.coach-hero-actions .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.btn-static {
    cursor: default;
}

.coach-details-section {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.coach-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.coach-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.coach-detail-value {
    font-weight: 500;
}

.coach-detail-value.price {
    color: #ea580c;
}

.coach-cert-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.coach-cert-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.coach-cert-list svg {
    flex-shrink: 0;
    stroke: #ea580c;
}

.coach-availability-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.coach-availability-row {
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

.coach-availability-row strong {
    min-width: 100px;
    text-transform: capitalize;
}

.coach-reviews-empty {
    color: #6b7280;
    padding: 2rem 0;
}

.coach-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.coach-review-item {
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.coach-review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.coach-review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.coach-review-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b2a2a, #4a1a4a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.coach-review-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.coach-review-meta .stars {
    color: #fbbf24;
}

.coach-review-meta .star-empty {
    opacity: 0.3;
}

.coach-review-comment {
    margin: 0;
    line-height: 1.6;
    color: #374151;
}

.coach-sidebar-sticky {
    position: sticky;
    top: 2rem;
}

.coach-sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.coach-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.coach-sidebar-rate {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ea580c;
}

.coach-sidebar-rate-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.coach-sidebar .btn.full-width {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Request page */
.request-form-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.request-form-grid.spaced {
    margin: 2rem auto 0;
}

.coach-card-request .coach-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.coach-card-request .coach-image img,
.coach-card-request .coach-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-card-request .coach-image-placeholder {
    background: linear-gradient(135deg, #6b2a2a, #4a1a4a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 800;
}

.coach-card-specialization {
    color: #ea580c;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coach-card-price {
    margin-top: 0.5rem;
}

.coach-card-price .amount {
    font-size: 1.1rem;
    font-weight: 700;
}

.coach-card-price .unit {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: normal;
}

.request-status-block {
    margin-top: 1rem;
}

.request-status-text {
    margin-top: 1rem;
    color: #6b7280;
}

.request-status-text.success {
    color: #10b981;
}

.request-status-text.error {
    color: #ef4444;
}

.request-status-actions {
    margin-top: 1rem;
}

.request-form-block {
    margin-top: 1.5rem;
}

.request-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f2937;
}

.request-form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
}

.request-alert {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.request-alert.error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.request-alert.success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #059669;
}

/* My coaches - card link */
.coach-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.coach-card-link:hover {
    color: inherit;
}

.empty-state-grid {
    grid-column: 1 / -1;
}

/* Trainers index - coach listing cards */
.trainers-section-head p {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 400;
}

#toggleFilters {
    display: none;
}

.filter-group-narrow {
    flex: 0.7;
}

.card-grid .coach-card .coach-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.card-grid .coach-card .coach-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.chip-rating {
    background: #fbbf24;
    color: #000;
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.card-grid .coach-card .coach-specialization {
    color: #ea580c;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-grid .coach-card .event-meta {
    margin-top: auto;
    margin-bottom: 1rem;
}

.card-grid .coach-card .event-price {
    margin-top: 0.5rem;
}

.card-grid .coach-card .event-price .price-amount {
    font-size: 1.1rem;
}

.card-grid .coach-card .event-price .price-unit {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: normal;
}

.card-grid .empty-state {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    #toggleFilters {
        display: inline-flex !important;
    }
}

/* My Athletes */
.alert-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    margin-bottom: 1rem;
}

.my-athletes .coach-image-pending {
    height: 160px;
    overflow: hidden;
}

.my-athletes .coach-image-pending img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6b2a2a, #4a1a4a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
}

.card-grid .coach-card .coach-image .coach-image-placeholder {
    font-size: 3rem;
}

.athlete-sport { color: #6b7280; font-size: 0.9rem; }
.athlete-notes { font-size: 0.9rem; margin: 0.5rem 0; }
.athlete-date { font-size: 0.85rem; color: #9ca3af; }

.request-form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Become Coach form */
.status-verified { color: #10b981; }
.status-pending { color: #f59e0b; }

.card-grid-form {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.alert-error {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
}

.become-coach .alert-success {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #059669;
}

.form-fields { display: grid; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #1f2937; }
.required-mark { color: #dc2626; }

.form-input-inline {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.form-textarea-inline {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
}

.become-coach .event-card-actions {
    margin-top: 2rem;
}

/* Request/Book page */
.success-state {
    max-width: 560px;
    margin: 4rem auto;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-title { font-size: 1.75rem; margin-bottom: 0.5rem; }
.success-desc { color: #6b7280; margin-bottom: 1.5rem; }
.success-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.request-hero {
    min-height: 40vh;
    padding: 3rem 0;
}

.request-form-wrap { max-width: 640px; margin: 0 auto; }
.btn-back { margin-bottom: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; }

.coach-preview-card {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.coach-preview-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.coach-preview-header img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.coach-preview-header h2 {
    font-size: 1.5rem;
    margin: 0 0 0.25rem 0;
    color: #fff;
}

.coach-preview-header .coach-spec { margin: 0; color: #fbbf24; font-weight: 600; }
.coach-preview-card > p { color: #d1d5db; margin: 0; font-size: 0.95rem; }

.alert-error-request {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    margin-bottom: 1.5rem;
}

.request-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.request-form-card .form-group { margin-bottom: 1.5rem; }
.request-form-card .form-label { margin-bottom: 0.5rem; color: #374151; }
.request-form-card .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
}

.request-form-actions-inline { display: flex; gap: 1rem; }

@media (max-width: 768px) {
    .coach-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .coach-hero-avatar-wrap {
        margin: 0 auto;
    }
}