/* Pickle Pro World Premium UI Styles (2025 Redesign) */

/* ── Branded Header Text ───────────────────── */
.pp-features-title span {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Verified Badge ────────────────────────── */
.verified-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
    z-index: 10;
    letter-spacing: 0.5px;
}

.verified-badge i {
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 800;
}

/* ── Court Card (Vertical) ─────────────────── */
.pp-court-card-v {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    height: 100%;
    border: 1.5px solid #e0e7ff;
    color: inherit;
}

.pp-court-card-v:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px rgba(79, 70, 229, 0.14);
    color: inherit;
    border-color: #a5b4fc;
}

.court-v-img-wrap {
    position: relative;
    width: 100%;
    height: 185px;
    background: #f5f3ff;
    overflow: hidden;
}

.court-v-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.pp-court-card-v:hover .court-v-img-wrap img {
    transform: scale(1.07);
}

.court-v-content {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.court-v-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.court-v-desc {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 1rem;
    line-height: 1.45;
}

.court-v-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.price-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #6b7280;
    font-weight: 600;
}

.price-current strong {
    font-size: 1.1rem;
    color: #1e1b4b;
    font-weight: 900;
}

/* ── Suggested Courts Carousel ─────────────── */
.pp-carousel-wrapper {
    position: relative;
    padding: 0 54px;
}

.pp-carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    align-items: stretch;
}

.pp-carousel-track::-webkit-scrollbar { display: none; }

.pp-carousel-slide {
    flex: 0 0 calc(25% - 1.125rem);
    scroll-snap-align: start;
    min-width: 260px;
    display: flex;
}

.pp-carousel-slide > a { width: 100%; }

.pp-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-80%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pp-carousel-btn:hover {
    transform: translateY(-80%) scale(1.1);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
}

.pp-carousel-btn.prev { left: 0; }
.pp-carousel-btn.next { right: 0; }

.pp-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
}

.pp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c4b5fd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pp-dot.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    width: 20px;
    height: 6px;
    border-radius: 3px;
}

@media (max-width: 991px) { .pp-carousel-slide { flex: 0 0 calc(33.333% - 1rem); } }
@media (max-width: 768px) { .pp-carousel-slide { flex: 0 0 calc(50% - 0.75rem); } }
@media (max-width: 576px) { .pp-carousel-slide { flex: 0 0 85%; } }

/* ── Logo Marquee ──────────────────────────── */
.pp-logo-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Narrower fade so the first/last logos stay readable while scrolling */
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.pp-logo-track {
    display: flex;
    width: fit-content;
    animation: scrollMarquee 50s linear infinite;
}

.pp-logo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 40px;
    flex-shrink: 0;
}

.pp-logo-item img {
    height: 38px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.pp-logo-item__placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(145deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.pp-logo-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e1b4b;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.pp-logo-marquee:hover .pp-logo-track {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(var(--marquee-width, -1000px)); }
}

/* ── Dashboard Action Grid ─────────────────── */
.pp-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)) !important;
    gap: 1rem;
    margin-bottom: 3rem;
}

.pp-quick-card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #e0e7ff;
    border-radius: 18px;
    padding: 1.35rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.05);
}

.pp-quick-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.pp-quick-card:hover {
    background: #f8f7ff;
    border-color: #a5b4fc;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.12);
}

.pp-quick-card:hover::before {
    transform: scaleX(1);
}

/* Dark Variant */
.pp-quick-card.dark {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(30, 27, 75, 0.3);
}

.pp-quick-card.dark:hover {
    background: linear-gradient(135deg, #312e81, #3730a3);
    box-shadow: 0 12px 36px rgba(30, 27, 75, 0.4);
}

/* Icon */
.pp-quick-icon-wrap {
    font-size: 1.6rem;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.pp-quick-card.dark .pp-quick-icon-wrap {
    color: #a5b4fc;
}

.pp-quick-card:hover .pp-quick-icon-wrap {
    transform: scale(1.15) rotate(-5deg);
}

/* Label */
.pp-quick-label {
    font-weight: 800;
    font-size: 1rem;
    color: #1e1b4b;
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.pp-quick-card.dark .pp-quick-label {
    color: #ffffff;
}

/* Badges */
.pp-quick-badge {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    font-size: 0.62rem;
    font-weight: 900;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f0f0ff;
    border: 1.5px solid #e0e7ff;
    color: #4f46e5;
}

.pp-quick-badge.ai {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #c4b5fd;
    backdrop-filter: blur(4px);
}

.pp-quick-badge.free {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
}

@media (max-width: 768px) {
    .pp-quick-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Subscribe / Pricing Modal ─────────────────────────── */
.sm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 46, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.sm-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.sm-card-wrap {
    background: #ffffff;
    border-radius: 32px;
    padding: 2.5rem 2rem 2rem;
    width: 100%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 40px 100px rgba(30, 27, 75, 0.35);
    transform: translateY(28px) scale(0.97);
    transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1), opacity 0.3s ease;
    opacity: 0;
    margin-bottom: 2rem;
    margin-top: 2rem;
    border: 1px solid #e0e7ff;
}

.sm-overlay.active .sm-card-wrap {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.sm-close {
    position: absolute;
    top: 1.35rem;
    right: 1.35rem;
    background: #f5f3ff;
    border: 1.5px solid #e0e7ff;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    color: #4f46e5;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    z-index: 10001;
}

.sm-close:hover {
    background: #ede9fe;
    border-color: #a5b4fc;
    transform: scale(1.05);
}

.sm-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.sm-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: #1e1b4b;
    margin: 0 0 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.04em;
}

.sm-sub {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

.sm-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .sm-plans { grid-template-columns: 1fr; }
}

.sm-plan {
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.sm-plan-free {
    background: #fafafa;
    border: 2px solid #e0e7ff;
}

.sm-plan-pro {
    background: linear-gradient(145deg, #1e1b4b, #312e81);
    border: 2px solid #4f46e5;
    color: #fff;
    box-shadow: 0 12px 40px rgba(30, 27, 75, 0.25);
}

.sm-plan-badge {
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    letter-spacing: 0.03em;
}

.sm-plan-label {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e1b4b;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
}

.sm-plan-pro .sm-plan-label { color: #fff; }

.sm-price { margin-bottom: 1.5rem; }

.sm-price-val {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1e1b4b;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.04em;
}

.sm-plan-pro .sm-price-val { color: #fff; }

.sm-price-period {
    font-size: 0.9rem;
    color: #6b7280;
    margin-left: 0.2rem;
}

.sm-plan-pro .sm-price-period { color: #a5b4fc; }

.sm-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
    text-align: left;
}

.sm-features li {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.sm-plan-pro .sm-features li { color: #c4b5fd; }

.sm-features li i { color: #10b981; margin-top: 2px; }
.sm-plan-pro .sm-features li i { color: #34d399; }

.sm-feat-off { opacity: 0.35; }

.sm-btn {
    width: 100%;
    padding: 0.9rem;
    border-radius: 14px;
    font-weight: 800;
    border: none;
    transition: all 0.22s ease;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.sm-btn-outline {
    background: transparent;
    border: 2px solid #e0e7ff;
    color: #4f46e5;
}

.sm-btn-outline:hover {
    background: #f5f3ff;
    border-color: #a5b4fc;
}

.sm-btn-pro {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: #fff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.sm-btn-pro:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.45);
}

/* ── Player Sidebar (Separated Cards Style) ─────────── */
.vn-sidebar-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.vn-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    gap: 0.5rem;
    background: #fff;
    border: 1.5px solid #e0e7ff;
    border-radius: 14px;
    color: #4b5563;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.vn-sidebar-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vn-sidebar-item:hover {
    border-color: #6366f1;
    color: #1e1b4b;
    transform: translateX(5px);
    background: #faf9ff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.vn-sidebar-item.active {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 20px rgba(30, 27, 75, 0.25);
}

.vn-sidebar-item .vn-sidebar-icon {
    font-size: 1.2rem;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.vn-sidebar-item.active .vn-sidebar-icon { color: #a5b4fc; }

.vn-sidebar-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.vn-btn-help,
.vn-btn-logout {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vn-btn-help {
    background: #f5f3ff;
    color: #4f46e5;
    border: 1.5px solid #e0e7ff;
}

.vn-btn-help:hover {
    background: #ede9fe;
    border-color: #a5b4fc;
}

.vn-btn-logout {
    background: #fff1f2;
    color: #dc2626;
    border: 1.5px solid #fecdd3;
}

.vn-btn-logout:hover {
    background: #ffe4e6;
    border-color: #fca5a5;
}

/* ── Tournament Hero ─────────────────────────────────── */
.th-hero {
    position: relative;
    min-height: 420px;
    border-radius: 28px;
    overflow: hidden;
    color: #fff;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    box-shadow: 0 24px 60px rgba(30, 27, 75, 0.4);
}

.th-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.th-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
}

.th-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(30, 27, 75, 0.35) 0%,
        rgba(15, 10, 46, 0.72) 42%,
        rgba(15, 10, 46, 0.97) 100%
    );
    z-index: 2;
}

.th-hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.th-hero-title {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    line-height: 1.15;
}

.th-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
    position: relative;
    z-index: 4;
}

.th-glass-chip {
    background: rgba(15, 10, 46, 0.55);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.65rem 1.25rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    max-width: 100%;
    transition: background 0.2s ease;
}

.th-glass-chip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.th-action-corner {
    position: relative;
    z-index: 5;
    margin-top: 1.25rem;
}

.th-glass-chip:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* Tournament category tabs (horizontal pills — must live in global CSS for player pages) */
.th-cat-tabs,
#tournament-cat-tabs {
    display: block;
    width: 100%;
    margin: 0 0 1.25rem;
}

.th-cat-tabs-scroll,
#tournament-cat-tabs .th-cat-tabs-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 0.2rem 0.1rem 0.45rem;
    scrollbar-width: none;
}

.th-cat-tabs-scroll::-webkit-scrollbar,
#tournament-cat-tabs .th-cat-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.th-cat-tab-btn,
#tournament-cat-tabs .th-cat-tab-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: none;
    position: static;
    float: none;
    margin: 0;
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.th-cat-tab-btn:hover,
#tournament-cat-tabs .th-cat-tab-btn:hover {
    color: #1e1b4b;
    background: #e8ecf4;
}

.th-cat-tab-btn.active,
#tournament-cat-tabs .th-cat-tab-btn.active {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #fff;
    box-shadow: 0 4px 14px rgba(30, 27, 75, 0.22);
}

/* Sticky Tabs */
.th-tabs-nav {
    position: sticky;
    top: 76px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    border: 1.5px solid #e0e7ff;
    border-radius: 18px;
    padding: 0.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 0.4rem;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.th-tabs-nav::-webkit-scrollbar {
    display: none;
}

.th-tab-btn {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #6b7280;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.th-tab-btn:hover {
    color: #1e1b4b;
    background: #f5f3ff;
}

.th-tab-btn.active {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #fff;
    box-shadow: 0 4px 14px rgba(30, 27, 75, 0.25);
}

/* Bento Cards */
.th-bento-card {
    background: #fff;
    border-radius: 22px;
    padding: 2rem;
    border: 1.5px solid #e0e7ff;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.th-bento-card:hover {
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.1);
    border-color: #a5b4fc;
}

.th-category-item {
    padding: 1.25rem;
    background: #faf9ff;
    border-radius: 16px;
    border: 1.5px solid #e0e7ff;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.22s ease;
}

.th-category-item:hover {
    border-color: #6366f1;
    transform: translateX(5px);
    background: #f5f3ff;
}

.th-team-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1.5px solid #e0e7ff;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.th-team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 36px rgba(79, 70, 229, 0.12);
    border-color: #a5b4fc;
}

.th-avatar-group {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.th-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #818cf8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 3px solid #fff;
    margin-left: -12px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.th-avatar:first-child { margin-left: 0; }

/* Podium */
.th-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.th-podium-item {
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 2rem 1rem;
    width: 150px;
    text-align: center;
    box-shadow: 0 -8px 30px rgba(79, 70, 229, 0.06);
    position: relative;
    border: 1.5px solid #e0e7ff;
    border-bottom: none;
}

.th-podium-item.first {
    height: 270px;
    background: linear-gradient(180deg, #fff 0%, #f5f3ff 100%);
    border-bottom: 5px solid #fbbf24;
}

.th-podium-item.second {
    height: 225px;
    border-bottom: 5px solid #94a3b8;
}

.th-podium-item.third {
    height: 185px;
    border-bottom: 5px solid #d97706;
}

.th-rank-badge {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border: 3px solid #fff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

/* ── Shared Modal System ─────────────────────────────── */
.vn-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 46, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999999 !important;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    pointer-events: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.vn-modal-backdrop.open {
    display: flex !important;
}

.vn-modal-card {
    background: #fff !important;
    border-radius: 32px;
    padding: 2.5rem;
    width: 100%;
    max-width: 600px;
    max-height: min(90dvh, 94vh);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(30, 27, 75, 0.55);
    position: relative;
    z-index: 1000000 !important;
    pointer-events: auto;
    animation: vnModalFadeUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #e0e7ff;
    margin: auto;
    flex-shrink: 0;
}

@keyframes vnModalFadeUp {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

body.pp-modal-open {
    overflow: hidden;
}

/* Tournament terms modal — fixed viewport center (overrides flex card sizing) */
#termsModal.vn-modal-backdrop.open {
    display: block !important;
    overflow: hidden !important;
    padding: 0 !important;
}

#termsModal .vn-modal-card.th-terms-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: calc(100dvh - 1.5rem) !important;
    width: min(540px, calc(100vw - 1.5rem)) !important;
    overflow: hidden !important;
}

.vn-modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.vn-header-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4f46e5;
    border: 1.5px solid #e0e7ff;
    flex-shrink: 0;
}

.vn-header-text h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.03em;
}

.vn-header-text p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.vn-input {
    background: #faf9ff;
    border: 1.5px solid #e0e7ff;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.925rem;
    color: #1e1b4b;
}

.vn-input:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* ── Global Profile Layout ───────────────────────────── */
.vn-page {
    padding: 2rem 0 5rem;
    background: #f5f3ff;
    min-height: calc(100vh - 80px);
}

.vn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
}

.vn-back:hover {
    color: #4f46e5;
    background: #f0eeff;
}

.vn-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.vn-main-content {
    flex: 1;
    min-width: 0;
}

.vn-title {
    font-size: 1.9rem;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .vn-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .vn-sidebar-wrap {
        width: 100% !important;
    }
}

/* ── Dashboard Alignment Utility ─────────────────────── */
.pp-dashboard-align {
    padding-left: 54px !important;
    padding-right: 54px !important;
}

@media (max-width: 768px) {
    .pp-dashboard-align {
        padding-left: var(--bs-gutter-x, 0.75rem) !important;
        padding-right: var(--bs-gutter-x, 0.75rem) !important;
    }
}

/* ══ Mobile Responsive ════════════════════════════════ */
@media (max-width: 767.98px) {
    .pp-carousel-wrapper { padding: 0 36px; }
}

@media (max-width: 575.98px) {
    .pp-carousel-wrapper { padding: 0 28px; }

    .pp-carousel-btn {
        width: 30px;
        height: 30px;
    }

    .pp-carousel-track { gap: 0.75rem; }
    .court-v-img-wrap { height: 155px; }
    .pp-logo-item { padding: 0 20px; }
}

@media (max-width: 767.98px) {
    .vn-page { padding: 1.5rem 0 3rem; }
    .vn-title { font-size: 1.5rem; margin-bottom: 1rem; }
    .vn-layout { gap: 1.5rem; }
}

@media (max-width: 575.98px) {
    .vn-page { padding: 1rem 0 2.5rem; }
    .vn-title { font-size: 1.3rem; margin-bottom: 0.85rem; }
    .vn-layout { gap: 1rem; }
    .vn-back { margin-bottom: 1.25rem; font-size: 0.85rem; }
}

@media (max-width: 991px) {
    .vn-sidebar-wrap {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.35rem;
        gap: 0.5rem;
        scrollbar-width: none;
        width: 100% !important;
    }

    .vn-sidebar-wrap::-webkit-scrollbar { display: none; }

    .vn-sidebar-item {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
        border-radius: 999px;
    }

    .vn-sidebar-footer { display: none; }
}

@media (max-width: 575.98px) {
    .pp-quick-grid { gap: 0.5rem; }

    .pp-quick-card {
        padding: 0.9rem 1rem;
        min-height: unset;
    }

    .pp-quick-label {
        font-size: 0.9rem;
        white-space: normal;
        line-height: 1.3;
    }

    .pp-quick-icon-wrap {
        font-size: 1.25rem;
        flex-shrink: 0;
    }
}

@media (max-width: 575.98px) {
    .sm-card-wrap {
        padding: 1.75rem 1.25rem 1.5rem;
        border-radius: 24px;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .sm-title { font-size: 1.4rem; }
    .sm-sub { font-size: 0.88rem; }
    .sm-plan { padding: 1.5rem 1.25rem; }
    .sm-plan-label { font-size: 1.2rem; }
    .sm-price-val { font-size: 2rem; }
}
