/* Modern UI Redesign - TournamentPro */

/* --- Navigation --- */
.navbar {
    background: var(--cric-glass) !important;
    backdrop-filter: var(--cric-blur);
    -webkit-backdrop-filter: var(--cric-blur);
    border-bottom: 1px solid var(--cric-glass-border);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--cric-shadow);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--cric-text-dark) !important;
}

.navbar-brand span {
    color: var(--cric-blue);
}

.nav-link {
    font-weight: 600;
    color: var(--cric-text-gray) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--cric-blue) !important;
}

/* --- Hero Section --- */
html,
body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.hero-modern {
    position: relative;
    padding: 100px 0 80px;
    background: var(--cric-bg-dark);
    color: var(--cric-text-white);
    overflow: hidden;
    min-width: 100vw;
    display: flex;
    align-items: center;
}

.hero-modern::before,
.hero-modern::after {
    max-width: 100vw;
    overflow: hidden;
}

/* Hero right-side preview card wrapper */
.hero-modern .col-lg-5>.position-relative {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Constrain the hero preview card so it never overflows the section */
.hero-modern .card-modern.bg-dark {
    height: auto !important;
    max-height: min(560px, 75vh);
    overflow: hidden;
    width: 100%;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-modern::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    color: var(--cric-blue);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title-modern {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: #ffffff !important;
}

.hero-title-modern span {
    background: linear-gradient(135deg, var(--cric-blue), var(--cric-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle-modern {
    font-size: 1.25rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 650px;
}

@media (max-width: 991px) {
    .hero-modern {
        text-align: center;
        padding: 60px 0 40px;
    }

    .hero-subtitle-modern {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-modern .d-flex {
        justify-content: center;
    }
}

/* Match Tabs Responsiveness */
#matchTabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    max-width: 100%;
    margin: 0 auto;
}

#matchTabs::-webkit-scrollbar {
    display: none;
}

.btn-modern {
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-modern-primary {
    background: var(--cric-blue);
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-modern-primary:hover {
    background: var(--cric-blue-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.btn-modern-secondary {
    background: rgba(15, 23, 42, 0.05);
    /* Darker alpha for visibility on light bg */
    color: var(--cric-text-dark);
    border: 1px solid rgba(15, 23, 42, 0.1);
    backdrop-filter: var(--cric-blur);
}

.btn-modern-secondary:hover {
    background: rgba(15, 23, 42, 0.1);
    color: var(--cric-text-dark);
    transform: translateY(-2px);
    border-color: rgba(15, 23, 42, 0.2);
}

/* Light background override for buttons if needed */
.bg-primary .btn-modern-primary,
.bg-dark .btn-modern-primary {
    color: white;
}

.hero-modern .btn-modern-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Sections --- */
.section-padding {
    padding: 80px 0;
}

.section-tag {
    color: var(--cric-blue);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1rem;
}

.section-title-modern {
    font-size: clamp(1.75rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--cric-text-dark);
    margin-bottom: 1rem;
    text-wrap: balance;
}

/* --- Cards --- */
.card-modern {
    background: var(--cric-surface);
    border: 1px solid var(--cric-glass-border);
    border-radius: var(--cric-radius-lg);
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    color: var(--cric-text-dark);
    /* Ensure text is visible */
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--cric-shadow-lg);
    border-color: rgba(59, 130, 246, 0.2);
}

@media (max-width: 576px) {
    .card-modern {
        padding: 20px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .hero-title-modern {
        margin-bottom: 1rem;
    }
}

.icon-box-modern {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Universal pagination style for all public pages */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1.15rem;
    margin-bottom: 1.15rem;
    padding-left: 0;
    list-style: none;
}

.page-item .page-link {
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background-color: #ffffff;
    color: #2563eb;
    min-width: 40px;
    text-align: center;
    padding: 0.44rem 0.8rem;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    transition: all 0.2s ease;
}

.page-item .page-link:hover,
.page-item .page-link:focus {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.32);
}

.page-item.disabled .page-link {
    background-color: #f8fafc;
    border-color: #dbeafe;
    color: #94a3b8;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.68;
}

@media (max-width: 768px) {
    .page-item .page-link {
        min-width: 36px;
        padding: 0.38rem 0.65rem;
        font-size: 0.82rem;
    }
}

.icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--cric-blue);
}

.icon-purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--cric-purple);
}

.icon-orange {
    background: rgba(249, 115, 22, 0.1);
    color: var(--cric-orange);
}

/* --- Footer --- */
.footer-modern {
    background: #000;
    color: #94a3b8;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 0.8rem;
}

.footer-link:hover {
    color: white;
}

/* --- Utilities & Animations --- */
.smaller {
    font-size: 0.8rem;
}

.ls-1 {
    letter-spacing: 1px;
}

.ls-2 {
    letter-spacing: 2px;
}

.fw-black {
    font-weight: 900;
}

.text-balance {
    text-wrap: balance;
}

/* Boostrap header overrides for responsiveness */
@media (max-width: 768px) {
    .fs-1 {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
    }
}

.mcp-pulse {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.partner-logo {
    max-height: 40px;
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1 !important;
}

/* --- Missing Components Restoration --- */

.section-stadium-gap {
    padding: 100px 0 !important;
}

.section-divider-center {
    width: 60px;
    height: 4px;
    background: var(--cric-blue);
    margin: 1.5rem auto 3rem;
    border-radius: 100px;
}

/* Testimonials */
.testimonial-card-premium {
    background: var(--cric-surface);
    padding: 30px;
    border-radius: var(--cric-radius-lg);
    border: 1px solid var(--cric-glass-border);
    height: 100%;
    box-shadow: var(--cric-shadow);
    color: var(--cric-text-gray);
}

.tc-quote-icon {
    font-size: 2.5rem;
    color: var(--cric-blue);
    opacity: 0.2;
    margin-bottom: 1rem;
    line-height: 1;
}

.tc-avatar-placeholder {
    width: 48px;
    height: 48px;
    background: var(--cric-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.tc-role {
    font-size: 0.75rem;
    color: var(--cric-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Newsletter atmospheric */
.newsletter-atmospheric-v2 {
    position: relative;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08), transparent 70%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--cric-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-accent-label {
    color: var(--cric-blue);
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: block;
}

.section-title-epic {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--cric-text-dark);
    text-wrap: balance;
}

.section-title-epic span {
    color: var(--cric-blue);
}

.newsletter-premium-v2 {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--cric-glass-border);
    border-radius: 100px;
    padding: 6px;
    width: 100%;
    max-width: 600px;
    transition: all 0.4s ease;
    overflow: hidden;
    /* Ensure content stays inside */
}

@media (max-width: 991px) {
    .newsletter-premium-v2 {
        flex-direction: column;
        border-radius: 24px;
        padding: 12px;
        gap: 12px;
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    .newsletter-premium-v2 i {
        display: none;
    }

    .newsletter-premium-v2 input {
        width: 100%;
        text-align: center;
        padding: 12px;
        background: rgba(255, 255, 255, 1);
        border-radius: 12px;
        color: #1e293b;
    }

    .newsletter-premium-v2 button {
        width: 100%;
        padding: 14px;
        border-radius: 12px;
        font-size: 1.2rem;
    }
}

@media (min-width: 992px) {
    .newsletter-premium-v2 input {
        min-width: 0;
    }

    .newsletter-premium-v2 button {
        width: 50px;
        height: 50px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 1.1rem;
    }
}

.newsletter-premium-v2 input {
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: var(--cric-text-dark);
    flex: 1;
    outline: none;
}

.newsletter-premium-v2 button {
    background: var(--cric-blue);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 100px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.newsletter-premium-v2 button:hover {
    background: var(--cric-blue-hover);
    transform: scale(1.05);
}

/* --- Premium Styles --- */
.card-glass-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: white !important;
}

.bg-glass-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.bento-item-large {
    grid-column: span 2;
}

@media (max-width: 991px) {
    .bento-item-large {
        grid-column: span 1;
    }

    /* Ensure no right edge gap on mobile; force full mobile alignment */
    html,
    body,
    .hero-modern,
    .section-padding,
    .section-stadium-gap,
    .pro-marketing-section,
    .newsletter-atmospheric-v2,
    .footer-modern {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container,
    .container-fluid,
    .navbar .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .hero-modern {
        min-width: auto !important;
    }

    .hero-modern::before,
    .hero-modern::after {
        right: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
    }

    .container,
    .container-fluid,
    .navbar .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .hero-modern {
        min-width: 100vw !important;
    }

    .hero-modern::before,
    .hero-modern::after {
        right: 0 !important;
        left: 0 !important;
        transform: none !important;
    }
}

.sticky-side {
    position: sticky;
    top: 100px;
}

.object-fit-cover {
    object-fit: cover !important;
    transition: all 0.3s ease;
}

.object-fit-contain {
    object-fit: contain !important;
}

/* --- Extra Utilities for Reliability --- */
.bg-white-5 {
    background: rgba(255, 255, 255, 0.05) !important;
}

.bg-white-10 {
    background: rgba(255, 255, 255, 0.1) !important;
}

.bg-white-20 {
    background: rgba(255, 255, 255, 0.2) !important;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-white-20 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-dark-muted {
    color: #475569 !important;
}

/* Darker than default muted for better readability */

/* Prevent horizontal scroll glitches on mobile */
body {
    overflow-x: hidden;
}

/* Mobile-first homepage layout refinements */
@media (max-width: 992px) {
    .hero-modern {
        padding: 60px 0 40px;
    }

    .hero-modern .hero-subtitle-modern {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .hero-modern .d-flex.flex-wrap.gap-4 {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-modern .btn-modern,
    .hero-modern .btn-modern-primary,
    .hero-modern .btn-modern-secondary {
        width: 100%;
        justify-content: center;
        padding: 10px 18px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .newsletter-premium-v2 {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        max-width: 100%;
        padding: 10px;
        border-radius: 24px;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
        overflow: hidden;
    }

    .newsletter-premium-v2 input,
    .newsletter-premium-v2 button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .newsletter-premium-v2 input {
        border-radius: 100px;
        border: 1px solid rgba(15, 23, 42, 0.12);
        padding: 12px 16px;
    }

    .newsletter-premium-v2 button {
        border-radius: 100px;
        padding: 12px 16px;
    }

    .newsletter-premium-v2 .bi {
        display: none;
    }

    .newsletter-premium-v2 input {
        padding: 12px 14px;
    }

    .newsletter-premium-v2 button {
        padding: 12px 16px;
    }

    .card-modern {
        padding: 20px;
    }

    .section-stadium-gap {
        padding: 70px 0 !important;
    }

    .section-title-epic {
        font-size: clamp(1.4rem, 7vw, 2.2rem);
    }

    .hero-modern::before,
    .hero-modern::after {
        top: -40%;
        bottom: auto;
        left: -30%;
        right: auto;
        width: 120%;
        height: 120%;
        opacity: 0.35;
    }
}



/* --- Modern Search Bar --- */
.search-container-modern {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container-modern:focus-within {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.search-field-wrapper {
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .search-container-modern {
        border-radius: 24px;
        padding: 12px;
    }

    .search-container-modern form {
        flex-direction: column;
        gap: 12px;
    }

    .search-field-wrapper {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 5px;
        width: 100%;
    }

    .search-field-wrapper:last-of-type {
        border-bottom: none;
    }
}

.search-field-wrapper i {
    color: var(--cric-blue);
    font-size: 1.1rem;
    margin-right: 12px;
    opacity: 0.8;
}

.search-field-wrapper .form-control,
.search-field-wrapper .form-select {
    background: transparent !important;
    border: none !important;
    color: white !important;
    box-shadow: none !important;
    padding: 12px 0 !important;
    font-weight: 500;
}

.search-field-wrapper .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-field-wrapper .form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px 12px !important;
    padding-right: 40px !important;
}

.search-field-wrapper .form-select option {
    background: #1e293b;
    color: white;
}

/* --- Utilities for Background Decorations --- */
.opacity-1 {
    opacity: 0.01 !important;
}

.opacity-5 {
    opacity: 0.20 !important;
}

.opacity-10 {
    opacity: 0.1 !important;
}

.opacity-15 {
    opacity: 0.15 !important;
}

.opacity-20 {
    opacity: 0.2 !important;
}

.z-index-0 {
    z-index: 0 !important;
}

.z-index-1 {
    z-index: 1 !important;
}

.z-index-2 {
    z-index: 2 !important;
}

.z-index-minus-1 {
    z-index: -1 !important;
}

@media (max-width: 768px) {
    .hero-bg-icon {
        font-size: 8rem !important;
        top: 20% !important;
        right: 10% !important;
    }
}


/* ── Dark-hero navbar override (homepage + all public pages) ── */
body:has(.hp-hero) .navbar,
body:has(.pp-hero) .navbar {
    background: rgba(6, 11, 24, 0.85) !important;
    border-bottom-color: rgba(255, 255, 255, .06) !important;
}

body:has(.hp-hero) .navbar .nav-link,
body:has(.pp-hero) .navbar .nav-link {
    color: #94a3b8 !important;
}

body:has(.hp-hero) .navbar .nav-link:hover,
body:has(.pp-hero) .navbar .nav-link:hover {
    color: #fff !important;
}

body:has(.hp-hero) .navbar .navbar-brand-text,
body:has(.pp-hero) .navbar .navbar-brand-text {
    color: #fff !important;
}

body:has(.hp-hero) .navbar .navbar-toggler .bi,
body:has(.pp-hero) .navbar .navbar-toggler .bi {
    color: #fff !important;
}

body:has(.hp-hero) .navbar .btn-modern-secondary,
body:has(.pp-hero) .navbar .btn-modern-secondary {
    background: rgba(255, 255, 255, .08);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, .15);
}

body:has(.hp-hero) .navbar .btn-modern-secondary:hover,
body:has(.pp-hero) .navbar .btn-modern-secondary:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

/* ── Dropdown stays white on dark-hero pages ─────────────── */
body:has(.hp-hero) .navbar .dropdown-menu,
body:has(.pp-hero) .navbar .dropdown-menu {
    background: #fff !important;
    border: none !important;
}

body:has(.hp-hero) .navbar .dropdown-item,
body:has(.pp-hero) .navbar .dropdown-item {
    color: #0f172a !important;
}

body:has(.hp-hero) .navbar .dropdown-item:hover,
body:has(.pp-hero) .navbar .dropdown-item:hover {
    background: #f1f5f9 !important;
    color: #2563eb !important;
}

/* ── User dropdown pill stays readable on dark pages ─────── */
body:has(.hp-hero) .navbar .dropdown>a,
body:has(.pp-hero) .navbar .dropdown>a {
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, .2) !important;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL PAGINATION — consistent across all pages
   ═══════════════════════════════════════════════════════════ */
.tp-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 0 8px;
}

.tp-pager-info {
    font-size: .85rem;
    color: #64748b;
    white-space: nowrap;
}

.tp-pager-info strong {
    color: #0f172a;
    font-weight: 700;
}

.tp-pager-list {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.tp-pl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    transition: all .2s ease;
    cursor: pointer;
    line-height: 1;
}

.tp-pl:hover {
    border-color: #3b82f6;
    color: #2563eb;
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(59, 130, 246, .15);
}

.tp-pi-active .tp-pl {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-color: transparent;
    color: #fff !important;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(59, 130, 246, .35);
    transform: none;
}

.tp-pi-disabled .tp-pl {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #cbd5e1 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tp-pl-dots {
    border: none;
    background: transparent;
    color: #94a3b8;
    min-width: 28px;
    font-size: 1rem;
    letter-spacing: .1em;
    cursor: default;
}

.tp-pl-dots:hover {
    background: transparent;
    border-color: transparent;
    transform: none;
    box-shadow: none;
    color: #94a3b8;
}

@media (max-width: 640px) {
    .tp-pager {
        justify-content: center;
    }

    .tp-pager-info {
        width: 100%;
        text-align: center;
    }

    .tp-pager-list {
        justify-content: center;
    }

    .tp-pl {
        min-width: 34px;
        height: 34px;
        font-size: .82rem;
    }
}

/* ── Logo swap: dark hero pages show dark logo, light pages show light logo ── */
/* Default (light navbar pages): show light logo, hide dark logo */
.navbar-logo-dark {
    display: none !important;
}

.navbar-logo-light {
    display: block !important;
}

/* Dark hero pages: show dark logo (white text version), hide light logo */
body:has(.hp-hero) .navbar-logo-dark,
body:has(.pp-hero) .navbar-logo-dark {
    display: block !important;
}

body:has(.hp-hero) .navbar-logo-light,
body:has(.pp-hero) .navbar-logo-light {
    display: none !important;
}

/* ── RT Logo Component ───────────────────────────────────── */
.rt-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.rt-logo-icon {
    flex-shrink: 0;
    line-height: 0;
}

.rt-logo-text {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
}

.rt-logo-run {
    color: #0f172a;
}

.rt-logo-tournaments {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dark hero pages — "Run" text turns white */
body:has(.hp-hero) .navbar .rt-logo-run,
body:has(.pp-hero) .navbar .rt-logo-run {
    color: #fff;
}

/* Footer — always white */
.footer-modern .rt-logo-run {
    color: #fff;
}