/* TOURNAMENTS PAGE STYLES */

/* Keep footer lower on short "All Tournaments" pages */
.tournaments-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tournaments-page .footer {
    margin-top: auto;
}

/* Tournaments Hero Section */
.tournaments-hero {
    background: linear-gradient(135deg, var(--hellraiser-black) 0%, #1a0a0a 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 8rem;
}

.tournaments-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(185, 28, 28, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.tournaments-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 0.9;
}

.title-main {
    display: block;
    background: linear-gradient(135deg, #dc2626, #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
}

.title-sub {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.6em;
    letter-spacing: 0.3em;
    margin-top: 0.5rem;
}

.page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Live Stats */
.live-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tournament Controls - Non-sticky Design */
.tournament-controls {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    position: relative; /* Changed from sticky */
    z-index: 10; /* Reduced z-index */
    margin-bottom: 2rem;
}

.controls-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.search-section {
    flex: 1;
    max-width: 350px;
    min-width: 250px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.search-box input {
    width: 100%;
    padding: 0.7rem 0.8rem 0.7rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* Sort Section - Compact Design */
.sort-section {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sort-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    white-space: nowrap;
}

.filter-select {
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.filter-select:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.filter-select option {
    background: #1a1a1a;
    color: white;
}

/* Sort Animation */
.tournaments-grid.sorting {
    pointer-events: none;
}

.tournament-card.sorting-out {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s ease;
}

.tournament-card.sorting-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.3s ease 0.1s;
}

.view-toggle {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.view-toggle:hover,
.view-toggle.active {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

/* Tournaments Sections */
.live-tournaments-section,
.upcoming-tournaments-section {
    padding: 4rem 0;
}

.live-tournaments-section {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(30, 15, 15, 0.95) 100%);
}

.upcoming-tournaments-section {
    background: rgba(15, 15, 15, 0.98);
}

.tournaments-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Tournament Cards - Enhanced Responsive Design */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
    justify-items: stretch;
    align-items: start;
    align-content: start;
    grid-auto-rows: min-content;
    grid-auto-flow: row;
}

.tournament-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tournament-card-media {
    position: relative;
    width: 100%;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(0,0,0,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.tournament-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.45s ease;
}

.tournament-card:hover .tournament-card-media img {
    transform: scale(1.04);
}

.tournament-card-media.is-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tournament-card-media-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.78);
    background: radial-gradient(circle at 30% 20%, rgba(220,38,38,0.35) 0%, rgba(17,17,17,0.4) 48%, rgba(12,12,12,0.85) 100%);
}

.tournament-card-media-fallback i {
    font-size: 1.35rem;
    color: #f59e0b;
}

.tournament-card-media-fallback span {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tournament-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #ff4444);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tournament-card:hover::before {
    transform: scaleX(1);
}

.tournament-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(220, 38, 38, 0.2);
}

.live-card {
    border-color: rgba(220, 38, 38, 0.5);
    background: rgba(220, 38, 38, 0.05);
}

.live-card::before {
    transform: scaleX(1);
}

/* Card Header - Perfect Alignment */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tournament-status {
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tournament-status.registration {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.tournament-status.active {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    border: 1px solid #dc2626;
}

.tournament-status.completed {
    background: rgba(120, 120, 120, 0.18);
    color: #b0b0b0;
    border: 1px solid #b0b0b0;
}

.tournament-status.upcoming {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.tournament-type {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: right;
    flex-shrink: 0;
}

/* Live Status in Cards */
.tournament-live-status {
    margin-bottom: 0;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    align-self: flex-start;
    min-width: auto;
}

/* Card Content - Enhanced Layout */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.tournament-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.3;
    text-align: center;
    min-height: 2.6rem;
    max-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tournament-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 150px;
}

.meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-item i {
    color: #dc2626;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.meta-item span {
    font-weight: 600;
    text-align: right;
}

/* Progress Section - Enhanced */
.progress-section {
    margin: 1.5rem 0;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(59,130,246,0.08));
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.progress-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.progress-bar {
    width: 100%;
    height: 16px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.progress-fill {
    height: 100%;
    width: var(--progress, 0%);
    background: #3b82f6;
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 0;
    box-shadow: 0 6px 18px rgba(34,197,94,0.35);
}

.progress-percent {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 0.85rem;
    color: #0b0f1a;
    background: rgba(255,255,255,0.88);
    padding: 2px 8px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    pointer-events: none;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.progress-count { font-weight: 700; color: #cbd5e1; }
.progress-stage { font-weight: 700; color: #93c5fd; text-transform: uppercase; letter-spacing: 0.05em; }

/* Countdown Section - Enhanced Design */
.countdown-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-align: center;
    min-height: 100px;
    max-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.countdown-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-timer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    max-width: 200px;
    margin: 0 auto;
}

.countdown-item {
    text-align: center;
    padding: 0.5rem 0.3rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.countdown-unit {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Card Actions - Enhanced Button Layout */
.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.card-actions .btn {
    padding: 1rem 1.5rem;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 50px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.card-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.card-actions .btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(220, 38, 38, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Features Banner */
.features-banner {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(15, 15, 15, 0.95) 100%);
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
}

.feature-item i {
    font-size: 2.5rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: white;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Asigură spațiu sub navbar pentru hero la detalii turneu */
.tournament-detail-hero {
    padding-top: 170px;
}

@media (max-width: 900px) {
    .tournament-detail-hero {
        padding-top: 110px;
    }
}

/* --- Homepage Style Parity Layer (Tournaments) --- */
.tournaments-hero {
    background:
        radial-gradient(circle at 16% 18%, rgba(220, 38, 38, 0.22) 0%, transparent 42%),
        radial-gradient(circle at 84% 72%, rgba(245, 158, 11, 0.18) 0%, transparent 46%),
        linear-gradient(150deg, #0b0e16 0%, #101523 56%, #150c0c 100%);
    min-height: 52vh;
}

.tournaments-hero::before {
    background:
        linear-gradient(115deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 32%),
        radial-gradient(circle at 28% 24%, rgba(220,38,38,0.2) 0%, rgba(220,38,38,0) 48%),
        radial-gradient(circle at 78% 66%, rgba(245,158,11,0.16) 0%, rgba(245,158,11,0) 52%);
}

.tournament-controls {
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.filter-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.92);
}

.filter-select:focus {
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}

.view-toggle {
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
}

.view-toggle:hover,
.view-toggle.active {
    background: linear-gradient(135deg, rgba(220,38,38,0.82), rgba(245,158,11,0.72));
    border-color: rgba(245, 158, 11, 0.55);
}

.top-highlight-chip {
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.all-tournaments-section {
    background:
        radial-gradient(circle at 20% 8%, rgba(220,38,38,0.1) 0%, transparent 36%),
        radial-gradient(circle at 82% 92%, rgba(245,158,11,0.1) 0%, transparent 40%),
        linear-gradient(165deg, rgba(9,11,18,0.95) 0%, rgba(12,14,24,0.96) 100%);
}

.tournament-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.tournament-card:hover {
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(245, 158, 11, 0.16) inset;
}

.tournament-name {
    background-image: linear-gradient(155deg, #fffdf7 0%, #e7dcc0 24%, #b8a073 46%, #fff2d0 66%, #a58d64 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 0 rgba(255,255,255,0.18), 0 6px 16px rgba(0,0,0,0.22);
}

.tournament-meta,
.progress-section,
.tournament-eligibility {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018));
    border: 1px solid rgba(255,255,255,0.1);
}

.card-actions .btn {
    border-radius: 10px;
}

.card-actions .btn-primary {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 40%, #f59e0b 100%);
}

.card-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255,255,255,0.18);
}

.features-banner {
    background:
        radial-gradient(circle at 12% 26%, rgba(220,38,38,0.12) 0%, transparent 40%),
        radial-gradient(circle at 86% 68%, rgba(245,158,11,0.12) 0%, transparent 44%),
        linear-gradient(160deg, rgba(12,14,22,0.96) 0%, rgba(10,12,18,0.98) 100%);
    border-top: 1px solid rgba(255,255,255,0.12);
}

.features-banner .feature-item {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
    box-shadow: 0 14px 26px rgba(0,0,0,0.22);
}

.features-banner .feature-item i {
    color: var(--hellraiser-gold);
}

/* --- Strict Home Page Visual Match --- */
.tournaments-hero,
.all-tournaments-section,
.features-banner {
    font-family: var(--font-primary);
}

.tournaments-hero-container,
.tournaments-container,
.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.tournaments-top-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.6rem;
}

.top-highlight-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 10, 18, 0.6);
    backdrop-filter: blur(8px);
}

.top-highlight-chip i {
    color: var(--hellraiser-gold);
}

.tournament-controls {
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.controls-container {
    max-width: none;
    padding: 0;
}

.filter-select {
    padding: 0.5rem 0.78rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.filter-select:focus {
    border-color: rgba(245, 158, 11, 0.56);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}

.view-toggle-group {
    display: inline-flex;
    gap: 0.34rem;
    padding: 0.24rem;
    border-radius: 999px;
    background: rgba(10, 13, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.view-toggle {
    border: none;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
    background: transparent;
}

.view-toggle:hover,
.view-toggle.active {
    color: #fff;
    background: linear-gradient(135deg, var(--hellraiser-red), var(--hellraiser-gold));
    border-color: transparent;
}

.tournament-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.tournament-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 18px 38px rgba(0,0,0,0.34), 0 0 0 1px rgba(245,158,11,0.22) inset;
}

.tournament-card::before {
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(245,158,11,0.66), rgba(255,255,255,0));
    transform: scaleX(1);
    opacity: 0.8;
}

.tournament-name {
    font-family: var(--font-heading);
    font-size: 1.22rem;
    font-weight: 800;
    background-image: linear-gradient(155deg, #fffdf7 0%, #e7dcc0 22%, #a99a78 37%, #fff1cb 52%, #c6b48e 67%, #fef8e8 82%, #a38f68 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.tournament-meta,
.progress-section,
.tournament-eligibility,
.mini-tab-panel {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    background: rgba(8, 10, 16, 0.55);
}

.meta-item i,
.tournament-eligibility i,
.progress-stage,
.progress-label {
    color: var(--hellraiser-gold);
}

.progress-fill {
    background: linear-gradient(135deg, var(--hellraiser-red), var(--hellraiser-gold));
}

.progress-percent {
    color: #1a1a1a;
}

.card-actions {
    gap: 0.7rem;
}

.card-actions .btn {
    border-radius: 10px;
    min-height: 44px;
    padding: 0.7rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 700;
}

.card-actions .btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-button);
}

.card-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
}

.card-actions .btn-secondary {
    background: transparent;
    color: var(--hellraiser-red-light);
    border: 2px solid var(--hellraiser-red);
}

.card-actions .btn-secondary:hover {
    background: var(--hellraiser-red);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

/* Compact card pass: use full width and tighter spacing */
.tournaments-grid {
    justify-items: stretch;
    align-items: stretch;
    gap: 1.25rem;
}

.tournaments-grid .tournament-card {
    width: 100%;
    max-width: none;
    min-height: 420px;
    padding: 1.15rem 1.1rem 1rem;
}

.tournaments-grid .tournament-name,
.tournaments-grid .card-content,
.tournaments-grid .tournament-meta,
.tournaments-grid .tournament-eligibility,
.tournaments-grid .progress-section,
.tournaments-grid .card-actions {
    width: 100%;
}

.tournaments-grid .tournament-name {
    text-align: left;
    margin-bottom: 0.65rem;
    min-height: auto;
    max-height: none;
}

.tournaments-grid .tournament-card-media {
    height: 152px;
    margin-bottom: 0.8rem;
}

.tournaments-grid .card-content {
    margin-bottom: 0.65rem;
}

.tournaments-grid .tournament-meta {
    margin: 0.8rem 0;
    padding: 0.75rem;
    min-height: 0;
    gap: 0.65rem;
}

.tournaments-grid .meta-item {
    padding: 0.35rem 0;
}

.tournaments-grid .progress-section {
    margin: 0.75rem 0;
    padding: 0.75rem 0.8rem;
}

.tournaments-grid .card-actions {
    margin-top: 0.45rem;
    padding-top: 0.65rem;
    gap: 0.65rem;
}

.tournaments-grid .card-actions .btn {
    min-height: 42px;
    padding: 0.68rem 0.85rem;
    font-size: 0.82rem;
}

.features-banner .features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.features-banner .feature-item {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.features-banner .feature-item:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 38, 38, 0.45);
}

@media (max-width: 992px) {
    .features-banner .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .tournaments-hero-container,
    .tournaments-container,
    .banner-container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .features-banner .features-grid {
        grid-template-columns: 1fr;
    }

    .card-actions {
        grid-template-columns: 1fr;
    }
}

/* Stil modern pentru titlul paginii de detalii turneu */
.tournament-detail-hero .page-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.tournament-detail-hero .page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 2.5rem;
}

/* Enhanced Responsive Design */
@media (max-width: 1400px) {
    .tournaments-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
    
    .tournament-card {
        max-width: 380px;
    }
}

@media (max-width: 1024px) {
    .tournaments-hero {
        padding-top: 2rem;
        min-height: 0;
    }
    
    .page-title {
        font-size: 3.5rem;
    }
    
    .live-stats {
        gap: 2rem;
    }
    
    .tournament-controls {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .tournaments-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.2rem;
        padding: 0;
    }
    
    .controls-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filter-section {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.6rem;
    }
    
    .sort-section {
        width: 100%;
        justify-content: center;
    }
    
    .search-section {
        min-width: auto;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .tournaments-hero {
        padding-top: 6.5rem;
        min-height: 45vh;
    }
    
    .page-title {
        font-size: 2.8rem;
    }
    
    .live-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .stat-item .stat-number {
        font-size: 2rem;
    }
    
    .tournaments-container {
        padding: 0 1rem;
    }
    
    .tournament-controls {
        padding: 0.8rem 0;
        margin-bottom: 1rem;
    }
    
    .controls-header {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .search-section {
        max-width: none;
        width: 100%;
    }
    
    .search-section input {
        padding: 0.6rem 0.8rem 0.6rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .filter-section {
        justify-content: center;
        gap: 0.4rem;
    }
    
    .filter-section .filter-button {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
        min-width: auto;
    }
    
    .sort-section select {
        font-size: 0.85rem;
        padding: 0.5rem;
        width: 100%;
        max-width: 250px;
    }
    
    .view-toggle {
        gap: 0.3rem;
    }
    
    .view-toggle button {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .tournaments-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        justify-items: center;
    }
    
    .countdown-timer {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        max-width: 180px;
    }
    
    .countdown-item {
        padding: 0.5rem 0.25rem;
    }
    
    .countdown-number {
        font-size: 1.4rem;
    }
    
    .countdown-unit {
        font-size: 0.65rem;
    }
    
    .card-actions {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .card-actions .btn {
        padding: 0.8rem 1rem;
        min-height: 45px;
        font-size: 0.85rem;
    }
    
    .filter-section {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
        min-width: auto;
    }
    .tc-chip-select {
        width: auto !important;
        min-width: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .sort-section {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .view-toggle {
        width: 50px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .tournaments-hero {
        padding: 0 !important;
        min-height: 0 !important;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .tournaments-container {
        padding: 0 0.8rem;
    }
    
    .meta-item i {
        width: 18px;
    }
    
    .progress-section,
    .countdown-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .countdown-timer {
        max-width: 160px;
        gap: 0.2rem;
    }
    
    .countdown-item {
        padding: 0.4rem 0.15rem;
    }
    
    .countdown-number {
        font-size: 1rem;
    }
    
    .countdown-unit {
        font-size: 0.55rem;
    }
    
    .card-actions .btn {
        padding: 0.7rem 0.8rem;
        min-height: 42px;
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    .tournament-status {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .tournament-type {
        font-size: 0.7rem;
    }
    
    .search-box input {
        padding: 0.7rem 0.8rem 0.7rem 2.5rem;
        font-size: 0.85rem;
    }
    
    .filter-select {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Large Desktop Optimization */
@media (min-width: 1600px) {
    .tournaments-container {
        max-width: 1400px;
    }
    
    .tournaments-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 2.5rem;
    }
    
    .tournament-card {
        max-width: 450px;
        padding: 2.5rem;
        min-height: 450px;
    }
    
    .tournament-name {
        font-size: 1.6rem;
    }
    
    .meta-item {
        padding: 0.6rem 0;
        font-size: 1rem;
    }
    
    .card-actions .btn {
        padding: 1.2rem 1.8rem;
        min-height: 55px;
        font-size: 1rem;
    }
}

/* Match history podium highlighting */
.history-results .history-result-row {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.history-results .history-result-row.placement-first {
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
    background: linear-gradient(120deg, rgba(255, 215, 0, 0.22), rgba(255, 255, 255, 0.04));
    transform: translateY(-2px) scale(1.01);
}

.history-results .history-result-row.placement-second {
    border-color: rgba(188, 198, 208, 0.45);
    box-shadow: 0 10px 30px rgba(188, 198, 208, 0.15);
    background: linear-gradient(120deg, rgba(188, 198, 208, 0.22), rgba(255, 255, 255, 0.04));
    transform: translateY(0px);
}

.history-results .history-result-row.placement-third {
    border-color: rgba(205, 127, 50, 0.45);
    box-shadow: 0 10px 30px rgba(205, 127, 50, 0.15);
    background: linear-gradient(120deg, rgba(205, 127, 50, 0.22), rgba(255, 255, 255, 0.04));
    transform: translateY(2px) scale(0.99);
}

.history-results .history-result-row .history-rank {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}

.history-results .history-result-row.placement-first .history-rank::after {
    content: '👑';
    font-size: 1rem;
    line-height: 1;
}

.history-results .history-result-row.placement-second .history-rank::after {
    content: '🥈';
    font-size: 0.95rem;
    line-height: 1;
}

.history-results .history-result-row.placement-third .history-rank::after {
    content: '🥉';
    font-size: 0.95rem;
    line-height: 1;
}

/* Tournament overview page */
.tournament-hero {
    position: relative;
    padding: 8.5rem 0 3rem;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.tournament-hero__content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tournament-hero__main {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1rem;
    align-items: center;
}

.tournament-hero__text { min-width: 0; }

.tournament-hero__thumb {
    justify-self: end;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0,0,0,0.35);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

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

.tournament-hero__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.status-pill.live { background: rgba(59, 130, 246, 0.18); border-color: rgba(59, 130, 246, 0.35); }
.status-pill.completed { background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.35); }

.tournament-hero__title {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0.2rem 0;
    letter-spacing: 0.02em;
}

.tournament-hero__subtitle {
    max-width: 760px;
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.meta-tile {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.85rem 0.95rem;
}

.meta-label {
    display: block;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    letter-spacing: 0.03em;
}

.meta-value {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}

.tournament-overview {
    max-width: 1180px;
    margin: -40px auto 2.5rem;
    padding: 0 1.25rem 2rem;
    position: relative;
    z-index: 2;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1.9fr 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}

.overview-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.overview-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 96px; align-self: flex-start; height: fit-content; max-width: 420px; width: 100%; }

.info-card {
    background: rgba(12, 15, 25, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    box-shadow: none;
}

.info-card.sticky { position: static; }

.info-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.info-card__header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.3rem;
    letter-spacing: 0.01em;
}

.info-card__text { color: #cbd5e1; line-height: 1.55; margin: 0 0 0.4rem; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    font-size: 0.75rem;
    margin: 0 0 0.1rem;
}

.badge-light,
.badge-gold {
    padding: 0.35rem 0.7rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-light {
    background: rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-gold {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 0.6rem;
}

.fact {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.fact-label { color: #9ca3af; font-size: 0.85rem; display: block; margin-bottom: 0.25rem; }
.fact-value { color: #fff; font-weight: 700; font-size: 1rem; }

.prize-list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.4rem; }

.prize-row {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0.7rem 0.8rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.prize-rank {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
    display: grid;
    place-items: center;
    font-weight: 800;
    box-shadow: none;
}

.prize-detail { flex: 1; }
.prize-label { color: #9ca3af; font-size: 0.85rem; }
.prize-value { color: #fff; font-weight: 700; font-size: 1.05rem; }

.stage-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stage-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem 1.2rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.stage-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.stage-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.4rem 0.9rem;
    color: #9ca3af;
    font-size: 0.88rem;
}

.mini-progress {
    position: relative;
    width: 160px;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.mini-progress__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 999px;
    background: #3b82f6;
}

.mini-progress__label {
    position: absolute;
    right: 0;
    top: -18px;
    color: #e5e7eb;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .stage-row {
        grid-template-columns: 1fr;
    }

    .mini-progress {
        width: 100%;
    }

    .mini-progress__label {
        position: static;
        display: inline-block;
        margin-top: 0.45rem;
        color: #e5e7eb;
    }
}

.trophy-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0 1.5rem 0;
}

.trophy-callout {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.18);
}

.trophy-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(250, 204, 21, 0.18);
    color: #facc15;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    box-shadow: none;
}

.badge-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.badge-slot {
    padding: 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #e5e7eb;
}

.badge-slot__image-frame {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1.2px solid rgba(255, 255, 255, 0.10);
    display: grid;
    place-items: center;
    box-shadow: 0 2px 16px 0 rgba(250,204,21,0.08);
}

.badge-slot__image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-slot__text { font-weight: 700; }

.slots-widget {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.2rem;
}

.slots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.slots-label { color: #9ca3af; font-size: 0.9rem; }
.slots-count { color: #fff; font-weight: 800; font-size: 1.3rem; }
.slots-remaining { color: #93c5fd; font-weight: 700; }

.progress-bar.alt {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.reg-dates {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.group-list { display: flex; flex-direction: column; gap: 0.8rem; }

.group-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.7rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.group-name { color: #fff; font-weight: 700; }
.group-meta { color: #9ca3af; font-size: 0.9rem; }
.group-slots { color: #e5e7eb; font-weight: 800; }

.team-list { display: flex; flex-direction: column; gap: 0.7rem; }

.teams-panel {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.teams-panel.is-open {
    display: block;
}

.teams-panel__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 10, 0.65);
    backdrop-filter: blur(4px);
}

.teams-panel__card {
    position: relative;
    max-width: 980px;
    width: min(92vw, 980px);
    margin: 4vh auto;
    background: #14141a;
    border-radius: 20px;
    padding: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    max-height: 90vh;
    overflow: hidden;
}

.teams-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.teams-panel__close {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
}

.teams-panel__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    max-height: calc(90vh - 160px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.teams-panel__country {
    grid-column: 1 / -1;
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: #fbbf24;
    margin-top: 0.6rem;
    padding: 0.35rem 0.2rem;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.teams-panel__card-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.teams-panel__avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.teams-panel__name {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.teams-panel__meta {
    color: #9ca3af;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.teams-panel__flag {
    width: 24px;
    height: 16px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    background-color: transparent;
    border: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

@media (max-width: 720px) {
    .teams-panel__card {
        width: 94vw;
        padding: 1.2rem;
    }

    .teams-panel__card-item {
        padding: 0.75rem;
    }

    .teams-panel__avatar {
        width: 48px;
        height: 48px;
    }

    .teams-panel__list {
        grid-template-columns: 1fr;
    }
}

.team-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.team-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.05);
}

.team-info { display: flex; flex-direction: column; }
.team-name { color: #fff; font-weight: 700; }
.team-country { color: #9ca3af; font-size: 0.9rem; }

.btn-accent {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 0.8rem 1.1rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: none;
}

.btn-muted {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.75rem 1.05rem;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn.block { width: 100%; justify-content: center; text-align: center; }
.btn.disabled, .btn-muted.disabled { opacity: 0.6; pointer-events: none; }

@media (max-width: 1024px) {
    .overview-grid { grid-template-columns: 1fr; }
    .overview-side { position: static; top: auto; }
    .tournament-overview { margin-top: -50px; }
}

@media (max-width: 720px) {
    .tournament-hero { padding: 7rem 0 3rem; }
    .tournament-hero__title { font-size: 2.2rem; }
    .hero-meta-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .meta-tile { padding: 0.9rem; }
}

.stats-panel {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
}

.stats-panel.is-open {
    display: block;
}

.stats-panel__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 10, 0.65);
    backdrop-filter: blur(4px);
}

.stats-panel__card {
    position: relative;
    max-width: 980px;
    width: min(92vw, 980px);
    margin: 4vh auto;
    background: #14141a;
    border-radius: 20px;
    padding: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    max-height: 90vh;
    overflow: hidden;
}

.stats-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stats-panel__close {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
}

.stats-panel__content {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.stats-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.2rem;
}

.stats-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
}

.stats-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.stats-card h3 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}

.stats-card__badge {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.stats-card canvas {
    flex: 1;
    max-height: 220px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .stats-panel__grid {
        grid-template-columns: 1fr;
    }
}

.stats-panel__empty {
    margin-top: 1rem;
    color: #9ca3af;
}

.chart-zoom {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
}

.chart-zoom.is-open {
    display: block;
}

.chart-zoom__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 10, 0.75);
    backdrop-filter: blur(6px);
}

.chart-zoom__card {
    position: relative;
    width: min(94vw, 1100px);
    margin: 4vh auto;
    background: #111118;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    max-height: 90vh;
    overflow: hidden;
}

.chart-zoom__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chart-zoom__close {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
}

.chart-zoom__body {
    height: calc(90vh - 140px);
}

.chart-zoom__body canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ── Premium Panels & Tabs Theme ───────────────────────── */
.mini-tab-panel {
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 12px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.12) 0%, transparent 48%),
        linear-gradient(145deg, rgba(15, 17, 28, 0.9), rgba(10, 12, 20, 0.9));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.teams-panel__backdrop,
.stats-panel__backdrop,
.chart-zoom__backdrop {
    background:
        radial-gradient(circle at 20% 0%, rgba(239, 68, 68, 0.17) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(245, 158, 11, 0.14) 0%, transparent 38%),
        rgba(5, 5, 10, 0.7);
    backdrop-filter: blur(7px);
}

.teams-panel__card,
.stats-panel__card,
.chart-zoom__card {
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 36%),
        radial-gradient(circle at 0% 100%, rgba(239, 68, 68, 0.12) 0%, transparent 30%),
        linear-gradient(145deg, rgba(16, 18, 31, 0.96), rgba(11, 13, 24, 0.98));
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.teams-panel__header,
.stats-panel__header,
.chart-zoom__header {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.teams-panel__close,
.stats-panel__close,
.chart-zoom__close {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.teams-panel__close:hover,
.stats-panel__close:hover,
.chart-zoom__close:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.12);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.teams-panel__list,
.stats-panel__content {
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.5) rgba(255, 255, 255, 0.06);
}

.teams-panel__card-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.teams-panel__card-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.16), transparent 55%);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.teams-panel__card-item:hover {
    border-color: rgba(245, 158, 11, 0.46);
    background: rgba(255, 255, 255, 0.045);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.teams-panel__card-item:hover::before {
    opacity: 1;
}

.teams-panel__card-item--link {
    text-decoration: none;
    color: inherit;
}

.teams-panel__open-link {
    margin-left: auto;
    color: rgba(245, 158, 11, 0.95);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.teams-panel__card-item--link:hover .teams-panel__open-link,
.teams-panel__card-item--link:focus-visible .teams-panel__open-link {
    opacity: 1;
    transform: translateX(0);
}

.teams-panel__card-item--link:focus-visible {
    outline: 2px solid rgba(245, 158, 11, 0.7);
    outline-offset: 2px;
}

.stats-card {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.44);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.stats-card__badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd68b;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* --- Header & Filters Blend Layer --- */
.tournaments-hero {
    background:
        radial-gradient(circle at 55% -5%, rgba(255, 255, 255, 0.08) 0%, transparent 38%),
        radial-gradient(circle at 82% 18%, rgba(148, 163, 184, 0.1) 0%, transparent 36%),
        linear-gradient(140deg, #0a0a0f 0%, #10151f 52%, #0e121a 100%);
    min-height: auto;
    padding: 7.2rem 0 1.4rem;
}

.tournaments-hero-container {
    display: grid;
    gap: 0.9rem;
}

.tournaments-hero::before {
    background:
        radial-gradient(circle at 22% 30%, rgba(148, 163, 184, 0.12) 0%, transparent 48%),
        radial-gradient(circle at 78% 66%, rgba(255, 255, 255, 0.07) 0%, transparent 44%);
}

.tournament-controls {
    margin-bottom: 0;
    padding: 1rem 0;
    background: rgba(10, 14, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.tournament-controls::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 32%, rgba(255, 255, 255, 0.03));
    pointer-events: none;
}

.controls-container {
    max-width: 1160px;
}

.controls-header {
    justify-content: center;
    gap: 1rem;
}

.filter-section {
    justify-content: center;
    flex: 1;
}

.filter-select {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

.filter-select:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.1);
}

.filter-select:focus {
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}

.view-toggle {
    border-radius: 10px;
}

.view-toggle:hover,
.view-toggle.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.26);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.tournaments-top-highlights {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.top-highlight-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.top-highlight-chip i {
    color: rgba(245, 158, 11, 0.95);
    font-size: 0.72rem;
}

@media (max-width: 768px) {
    .tournaments-hero {
        padding: 6.9rem 0 1rem;
    }

    .tournaments-top-highlights {
        gap: 0.5rem;
    }

    .top-highlight-chip {
        font-size: 0.72rem;
        padding: 0.38rem 0.68rem;
    }
}

.tournament-card {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 40%, rgba(0, 0, 0, 0.14) 100%),
        rgba(20, 20, 20, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.tournament-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.tournament-card:hover::after {
    opacity: 1;
}

.tournament-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.34),
        0 10px 24px rgba(220, 38, 38, 0.20);
}

.meta-item {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.tournament-eligibility {
    margin: 0.2rem 0 0.6rem;
    padding: 0.62rem 0.72rem;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    gap: 0.45rem;
}

.eligibility-row {
    display: grid;
    grid-template-columns: 16px auto 1fr;
    align-items: start;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    line-height: 1.35;
}

.eligibility-row i {
    color: rgba(245, 158, 11, 0.92);
    margin-top: 0.08rem;
    font-size: 0.74rem;
}

.eligibility-label {
    color: rgba(255, 255, 255, 0.68);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.eligibility-value {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.eligibility-countries-dropdown {
    border-top: 1px dashed rgba(255, 255, 255, 0.14);
    padding-top: 0.36rem;
}

.eligibility-countries-dropdown summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.74rem;
}

.eligibility-countries-dropdown summary::-webkit-details-marker {
    display: none;
}

.eligibility-summary-left {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.eligibility-summary-left i {
    color: rgba(245, 158, 11, 0.92);
    font-size: 0.74rem;
}

.eligibility-dropdown-hint {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(245, 158, 11, 0.88);
    font-weight: 700;
}

.eligibility-countries-dropdown .eligibility-country-list {
    margin-top: 0.45rem;
    padding-left: 1.3rem;
}

.eligibility-country-list {
    display: grid;
    gap: 0.28rem;
}

.country-scope {
    color: rgba(255, 255, 255, 0.88);
    word-break: break-word;
}

.country-scope strong {
    color: rgba(245, 158, 11, 0.95);
    font-weight: 700;
}

.progress-bar {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.progress-fill {
    box-shadow: 0 0 16px rgba(220, 38, 38, 0.34);
}

.feature-item {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 38, 38, 0.35);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

/* --- Card Impact Boost --- */
.tournament-card {
    isolation: isolate;
}

.tournament-card::before {
    height: 5px;
    background: linear-gradient(90deg, #dc2626 0%, #ff5a5a 45%, #f59e0b 100%);
}

.tournament-card::after {
    background: none;
}

.tournament-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
        0 24px 44px rgba(0, 0, 0, 0.38),
        0 14px 28px rgba(220, 38, 38, 0.26),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.tournament-name {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 60%, #fca5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 12px rgba(220, 38, 38, 0.22);
}

.tournament-status {
    border-radius: 999px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
}

.tournament-status.active,
.tournament-status.live {
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.45), 0 0 18px rgba(220, 38, 38, 0.35);
}

.tournament-status.registration,
.tournament-status.registration-open {
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.42), 0 0 18px rgba(34, 197, 94, 0.28);
}

.tournament-status.upcoming {
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4), 0 0 16px rgba(59, 130, 246, 0.26);
}

.card-actions .btn {
    border-radius: 12px;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.card-actions .btn-primary {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 65%, #7f1d1d 100%);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.card-actions .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.42);
}

.card-actions .btn-secondary {
    border-color: rgba(255, 255, 255, 0.28);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.card-actions .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.48);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
}

/* --- Final Premium Polish --- */
.tournament-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.tournament-card::before {
    opacity: 0.92;
}

.live-card {
    border-color: rgba(239, 68, 68, 0.52);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.34),
        0 0 22px rgba(220, 38, 38, 0.22);
}

.tournament-status {
    font-weight: 800;
    letter-spacing: 0.08em;
}

.tournament-name {
    font-size: 1.5rem;
    letter-spacing: 0.01em;
}

.tournament-meta {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.18));
    border-color: rgba(255, 255, 255, 0.14);
}

.meta-item {
    border-radius: 12px;
    padding: 0.58rem 0.7rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tournament-card:hover .meta-item {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.045);
}

.progress-section {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(34,197,94,0.1), rgba(59,130,246,0.09));
}

.progress-fill {
    background: linear-gradient(90deg, #22c55e 0%, #3b82f6 50%, #a855f7 100%);
}

.card-actions .btn {
    min-height: 52px;
    font-weight: 800;
}

.card-actions .btn-primary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.32);
}

.card-actions .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.card-actions .btn i {
    font-size: 0.95rem;
}

/* --- Compact Card Tuning --- */
.tournament-card {
    min-height: 390px;
    padding: 1.1rem;
    justify-content: flex-start;
}

.tournament-card-media {
    height: 158px;
    margin-bottom: 0.55rem;
}

.tournament-name {
    margin-bottom: 0.2rem;
    min-height: 2rem;
    max-height: 2rem;
    line-height: 1.2;
}

.card-content {
    flex: 0 0 auto;
    margin-bottom: 0.35rem;
}

.tournament-meta {
    margin: 0.55rem 0;
    padding: 0.62rem;
    min-height: 0;
    gap: 0.45rem;
}

.meta-item {
    padding: 0.4rem 0.5rem;
    gap: 0.55rem;
}

.meta-main {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    min-width: 0;
}

.meta-label {
    font-size: 0.64rem;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 700;
}

.meta-value {
    font-size: 0.98rem;
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
}

.meta-value-muted {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.meta-item-prize .meta-value {
    background: linear-gradient(120deg, #fde68a 0%, #f59e0b 60%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.meta-item-teams .meta-value {
    color: #dbeafe;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.22);
}

.meta-item-countdown .meta-label {
    color: rgba(255, 255, 255, 0.68);
}

.meta-item-countdown .compact-timer {
    border-radius: 10px;
    padding: 0.26rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(0,0,0,0.24));
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f8fafc;
}

.meta-item-countdown .compact-timer span {
    min-width: 14px;
}

/* Meta icons - premium badges */
.meta-item i {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.meta-item-prize i {
    background: linear-gradient(145deg, #f59e0b, #ef4444);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.28);
}

.meta-item-teams i {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    border-color: rgba(191, 219, 254, 0.32);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.26);
}

.meta-item-countdown i {
    background: linear-gradient(145deg, #8b5cf6, #6366f1);
    border-color: rgba(221, 214, 254, 0.3);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.28);
}

.tournament-card:hover .meta-item i {
    transform: translateY(-1px) scale(1.03);
}

/* Progress bar - premium refresh */
.progress-bar {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.28));
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.progress-fill {
    position: relative;
    border-radius: 999px;
    background: #dc2626;
    box-shadow:
        0 0 16px rgba(220, 38, 38, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.22) 0px,
        rgba(255, 255, 255, 0.22) 8px,
        rgba(255, 255, 255, 0.06) 8px,
        rgba(255, 255, 255, 0.06) 16px
    );
    pointer-events: none;
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.progress-percent {
    font-size: 0.72rem;
    font-weight: 900;
    color: #ffffff;
    background: transparent;
    padding: 1px 7px;
    border-radius: 999px;
    border: none;
}

.progress-section {
    margin: 0.45rem 0;
    padding: 0.62rem 0.7rem;
    gap: 0.35rem;
}

.progress-meta {
    font-size: 0.82rem;
}

.card-actions {
    margin-top: 0.35rem;
    padding-top: 0.45rem;
    padding-bottom: 0;
    gap: 0.55rem;
}

.card-actions .btn {
    min-height: 40px;
    padding: 0.62rem 0.68rem;
}

/* Card texts - typography refresh */
.tournament-name {
    font-family: 'Rajdhani', 'Exo 2', var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    font-size: 1.22rem;
    line-height: 1.15;
}

.meta-label {
    font-family: 'Inter', var(--font-primary);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.58);
}

.meta-value {
    font-family: 'Rajdhani', 'Exo 2', var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.progress-label {
    font-family: 'Inter', var(--font-primary);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
}

.progress-count,
.progress-stage {
    font-family: 'Rajdhani', 'Exo 2', var(--font-heading);
    font-size: 0.86rem;
    letter-spacing: 0.02em;
}

.progress-percent {
    font-family: 'Rajdhani', 'Exo 2', var(--font-heading);
    letter-spacing: 0.02em;
    font-weight: 800;
}

.card-actions .btn {
    font-family: 'Rajdhani', 'Exo 2', var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    font-weight: 800;
}

@media (max-width: 768px) {
    .tournament-card-media {
        height: 130px;
    }

    .tournament-card {
        min-height: auto;
        padding: 0.95rem;
    }

    .tournament-name {
        font-size: 1.08rem;
        margin-bottom: 0.18rem;
    }

    .card-actions .btn {
        min-height: 38px;
    }
}

/* --- Card Length Compression --- */
.tournament-card {
    min-height: 350px;
    padding: 0.9rem;
}

.tournament-card-media {
    height: 132px;
    margin-bottom: 0.35rem;
}

.tournament-name {
    margin-bottom: 0.12rem;
    min-height: 1.75rem;
    max-height: 1.75rem;
    line-height: 1.1;
}

.card-content {
    margin-bottom: 0.2rem;
}

.tournament-meta {
    margin: 0.35rem 0;
    padding: 0.5rem;
    gap: 0.32rem;
}

.meta-item {
    padding: 0.28rem 0.42rem;
}

.progress-section {
    margin: 0.32rem 0;
    padding: 0.45rem 0.55rem;
    gap: 0.24rem;
}

.progress-bar {
    height: 12px;
}

.progress-meta {
    font-size: 0.76rem;
}

.card-actions {
    margin-top: 0.2rem;
    padding-top: 0.3rem;
    gap: 0.45rem;
}

.card-actions .btn {
    min-height: 42px;
    padding: 0.62rem 0.72rem;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .tournament-card {
        padding: 0.78rem;
    }

    .tournament-card-media {
        height: 118px;
    }

    .tournament-name {
        min-height: 1.6rem;
        max-height: 1.6rem;
    }

    .card-actions .btn {
        min-height: 38px;
    }
}

/* --- Card Width Tightening --- */
.tournaments-grid {
    gap: 1rem;
    padding: 0 0.35rem;
}

.tournament-card {
    max-width: 360px;
}

@media (max-width: 1200px) {
    .tournament-card {
        max-width: 340px;
    }
}

@media (max-width: 768px) {
    .tournaments-grid {
        gap: 0.7rem;
        padding: 0;
    }

    .tournament-card {
        max-width: 100%;
    }
}

/* --- Square Media Shape --- */
.tournament-card-media {
    width: min(100%, 230px);
    aspect-ratio: 1 / 1;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .tournament-card-media {
        width: min(100%, 200px);
    }
}

/* --- Responsive Stability Layer (final) --- */
.view-toggle-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

#tournament-search {
    min-width: 210px;
}

.filter-section {
    width: 100%;
}

.tournaments-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tournament-card {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 1280px) {
    .controls-header {
        align-items: flex-start;
    }

    .filter-section {
        display: grid;
        grid-template-columns: repeat(3, minmax(160px, 1fr));
        gap: 0.6rem;
    }

    #tournament-search {
        grid-column: 1 / -1;
    }

    .filter-select {
        width: 100%;
        min-width: 0;
    }
    .tc-chip-select {
        width: auto !important;
        min-width: 0 !important;
        flex-shrink: 0 !important;
    }

    .tournaments-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .tournaments-hero {
        padding-top: 6.7rem;
    }

    .controls-container {
        padding: 0 0.85rem;
    }

    .controls-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .filter-section {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .view-toggle-group {
        align-self: center;
    }

    .tournaments-top-highlights {
        justify-content: center;
        gap: 0.45rem;
    }
}

@media (max-width: 640px) {
    .tournaments-hero {
        padding-top: 6.35rem;
        padding-bottom: 0.9rem;
    }

    .tournament-controls {
        border-radius: 12px;
        padding: 0.78rem 0;
    }

    .filter-section {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    #tournament-search {
        min-width: 0;
    }

    .filter-select {
        font-size: 0.82rem;
        padding: 0.58rem 0.72rem;
    }

    .view-toggle-group {
        width: 100%;
        justify-content: center;
    }

    .tournaments-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0;
    }

    .tournament-card {
        border-radius: 14px;
    }

    .tournament-meta {
        gap: 0.38rem;
    }

    .card-actions {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .card-actions .btn {
        width: 100%;
        min-height: 40px;
    }

    .tournament-eligibility {
        padding: 0.55rem 0.6rem;
    }

    .eligibility-row {
        font-size: 0.72rem;
    }
}

/* --- Mobile UX Fix Layer --- */
@media (max-width: 768px) {
    .tournaments-container {
        padding: 0 0.7rem;
    }

    .tournaments-top-highlights {
        display: none;
    }

    .controls-container {
        padding: 0 0.6rem;
    }

    .filter-section {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.48rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        padding-bottom: 0.25rem;
    }

    .filter-section::-webkit-scrollbar {
        height: 4px;
    }

    .filter-section::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.22);
        border-radius: 999px;
    }

    #tournament-search {
        flex: 0 0 100%;
        min-width: 100%;
        scroll-snap-align: start;
    }

    #format-filter,
    #prize-filter,
    #status-filter,
    #sort-tournaments {
        flex: 0 0 auto;
        min-width: 158px;
        scroll-snap-align: start;
    }

    .view-toggle-group {
        width: 100%;
        justify-content: flex-end;
        padding-right: 0.12rem;
    }

    .tournament-card {
        padding: 0.62rem;
        border-radius: 12px;
        min-height: 0;
        max-width: 340px;
        margin: 0 auto;
    }

    .tournament-card-media {
        width: 100%;
        max-width: none;
        aspect-ratio: 2 / 1;
        max-height: 150px;
        border-radius: 10px;
    }

    .tournament-name {
        min-height: auto;
        max-height: none;
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .tournament-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.35rem;
        margin: 0.3rem 0;
        padding: 0;
    }

    .meta-item {
        padding: 0.38rem 0.46rem;
        border-radius: 9px;
    }

    .progress-section {
        margin: 0.38rem 0;
    }

    .progress-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem 0.5rem;
    }

    .tournament-eligibility {
        margin: 0.15rem 0 0.45rem;
        padding: 0.5rem 0.55rem;
    }
}

@media (max-width: 420px) {
    .tournaments-hero {
        padding-top: 6.1rem;
    }

    .tournament-controls {
        padding: 0.68rem 0;
        border-radius: 10px;
    }

    .filter-select {
        font-size: 0.8rem;
        padding: 0.54rem 0.65rem;
    }

    .tc-chip-select {
        width: auto !important;
        min-width: 0 !important;
        flex-shrink: 0 !important;
    }
    #format-filter,
    #prize-filter,
    #status-filter,
    #sort-tournaments {
        min-width: 0 !important;
        width: auto !important;
    }

    .card-actions .btn {
        min-height: 38px;
        font-size: 0.78rem;
    }

    .tournament-card {
        max-width: 320px;
        padding: 0.56rem;
    }

    .tournament-card-media {
        max-height: 132px;
        border-radius: 9px;
    }
}

/* --- Mobile Controls Bar Tidy Fix --- */
@media (max-width: 768px) {
    .tournament-controls {
        padding: 0.64rem 0;
        border-radius: 10px;
    }

    .controls-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.58rem;
        align-items: stretch;
    }

    .filter-section {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        overflow: visible;
        padding-bottom: 0;
    }

    .filter-section::-webkit-scrollbar {
        display: none;
    }

    #tournament-search {
        grid-column: 1 / -1;
        min-width: 0;
        width: 100%;
        flex: initial;
    }

    #format-filter,
    #prize-filter,
    #status-filter,
    #sort-tournaments {
        min-width: 0;
        width: 100%;
        flex: initial;
    }

    .view-toggle-group {
        width: 100%;
        justify-content: center;
        padding-right: 0;
        gap: 0.4rem;
    }
}

@media (max-width: 420px) {
    .filter-section {
        grid-template-columns: 1fr;
    }
}

/* --- Cross-Device Balancing (Tournaments) --- */
@media (min-width: 1500px) {
    .tournaments-container,
    .controls-container,
    .tournaments-hero-container {
        max-width: 1380px;
    }

    .tournaments-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.1rem;
    }
}

@media (max-width: 1024px) {
    .tournament-card {
        max-width: 100%;
    }

    .card-content {
        margin-bottom: 0.12rem;
    }

    .progress-meta {
        flex-wrap: wrap;
        gap: 0.25rem 0.5rem;
    }
}

/* Tournament media impact: full-width and larger visual presence */
.all-tournaments-section .tournaments-grid .tournament-card {
    overflow: hidden;
}

.all-tournaments-section .tournaments-grid .tournament-card .tournament-card-media {
    width: calc(100% + 2.2rem);
    margin-left: -1.1rem;
    margin-right: -1.1rem;
    margin-top: -1.15rem;
    margin-bottom: 0;
    aspect-ratio: 4 / 5;
    max-height: 420px;
    height: auto;
    border-radius: 14px 14px 10px 10px;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}

.all-tournaments-section .tournaments-grid .card-actions {
    margin-top: 0.12rem;
    padding-top: 0.18rem;
}

.all-tournaments-section .tournaments-grid .tournament-card .tournament-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.all-tournaments-section .tournaments-grid .tournament-card:hover .tournament-card-media img {
    transform: scale(1.08);
}

@media (max-width: 1024px) {
    .all-tournaments-section .tournaments-grid .tournament-card .tournament-card-media {
        max-height: 340px;
    }
}

@media (max-width: 768px) {
    .all-tournaments-section .tournaments-grid .tournament-card .tournament-card-media {
        width: calc(100% + 1.8rem) !important;
        margin-left: -0.9rem !important;
        margin-right: -0.9rem !important;
        margin-top: -0.9rem !important;
        margin-bottom: 0 !important;
        height: 200px !important;
        max-height: none !important;
        aspect-ratio: unset !important;
        border-radius: 10px 10px 0 0 !important;
    }
    .all-tournaments-section .tournaments-grid .tournament-card {
        padding: 0.9rem !important;
        border-radius: 10px !important;
        max-width: 100% !important;
    }
    .all-tournaments-section .tournaments-grid .card-actions {
        margin-top: 0.12rem;
        padding-top: 0.18rem;
    }
}

@media (max-width: 420px) {
    .all-tournaments-section .tournaments-grid .tournament-card .tournament-card-media {
        height: 200px !important;
        max-height: none !important;
    }
    .all-tournaments-section .tournaments-grid .tournament-card {
        max-width: 100% !important;
        padding: 0.9rem !important;
    }
}

/* --- Overview Page: Visual FX Upgrade --- */
.tournament-hero {
    overflow: hidden;
    background: linear-gradient(180deg, #0a0b12 0%, #0d111c 100%);
}

.tournament-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 18%, rgba(220, 38, 38, 0.06) 0%, transparent 38%),
        radial-gradient(circle at 86% 70%, rgba(220, 38, 38, 0.04) 0%, transparent 42%);
    pointer-events: none;
}

.tournament-hero__thumb {
    border-color: rgba(245, 158, 11, 0.32);
    box-shadow: 0 16px 36px rgba(0,0,0,0.42), 0 0 0 1px rgba(245,158,11,0.15) inset;
}

.tournament-hero__thumb img {
    transition: transform 0.6s ease;
}

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

.status-pill {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25), 0 0 0 1px rgba(245,158,11,0.14) inset;
}

.meta-tile {
    border-color: rgba(255,255,255,0.12);
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.meta-value {
    text-shadow: 0 6px 14px rgba(0,0,0,0.24);
}

.info-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(255,255,255,0.1);
    background: linear-gradient(145deg, rgba(13,17,28,0.9), rgba(11,14,24,0.84));
    box-shadow: 0 14px 32px rgba(0,0,0,0.28);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(245,158,11,0.72), rgba(255,255,255,0));
    opacity: 0.7;
}

.info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.34);
    box-shadow: 0 20px 40px rgba(0,0,0,0.34), 0 0 0 1px rgba(245,158,11,0.16) inset;
}

.eyebrow {
    color: rgba(245, 158, 11, 0.9);
}

.badge-light,
.badge-gold {
    border-radius: 999px;
}

.badge-gold {
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.2);
}

.fact,
.prize-row,
.stage-row,
.group-row,
.teams-panel__card-item,
.stats-card {
    border-color: rgba(255,255,255,0.1);
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
}

.stage-row:hover,
.prize-row:hover,
.group-row:hover,
.teams-panel__card-item:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.mini-progress,
.progress-bar.alt {
    border: 1px solid rgba(255,255,255,0.1);
}

.mini-progress__fill,
.progress-fill {
    background: linear-gradient(135deg, var(--hellraiser-red), var(--hellraiser-gold));
    box-shadow: 0 6px 14px rgba(245,158,11,0.24);
}

.badge-slot {
    border-style: solid;
    border-color: rgba(245, 158, 11, 0.28);
}

.badge-slot__image-frame {
    box-shadow: 0 8px 22px rgba(0,0,0,0.26), 0 0 0 1px rgba(245,158,11,0.2) inset;
}

.badge-slot__image-frame img {
    transition: transform 0.35s ease;
}

.badge-slot:hover .badge-slot__image-frame img {
    transform: scale(1.06);
}

.btn-accent {
    background: linear-gradient(135deg, var(--hellraiser-red), var(--hellraiser-gold));
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.32), 0 0 0 1px rgba(245,158,11,0.24) inset;
}

.teams-panel__card,
.stats-panel__card,
.chart-zoom__card {
    background: linear-gradient(150deg, #131726 0%, #111421 55%, #161016 100%);
    border-color: rgba(245, 158, 11, 0.22);
    box-shadow: 0 30px 80px rgba(0,0,0,0.58), 0 0 0 1px rgba(245,158,11,0.14) inset;
}

@keyframes overviewHeroPulse {
    0%, 100% { opacity: 0.86; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
    .tournament-hero::before,
    .info-card,
    .stage-row,
    .prize-row,
    .group-row,
    .teams-panel__card-item,
    .badge-slot__image-frame img,
    .btn-accent {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* ============================================================
   TC-HQ CARD — Tournament card replicating hq-tourney-card
   Applied on BOTH desktop and mobile
   ============================================================ */

/* Override old card styles globally */
.all-tournaments-section .tournaments-grid .tournament-card {
    display: block !important;
    padding: 1rem !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    min-height: 0 !important;
    max-width: none !important;
    width: 100% !important;
    flex-direction: unset !important;
    justify-content: unset !important;
}

.all-tournaments-section .tournaments-grid .tournament-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(239,68,68,0.05) 0%, transparent 50%, rgba(245,158,11,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.all-tournaments-section .tournaments-grid .tournament-card:hover::before { opacity: 1; }
.all-tournaments-section .tournaments-grid .tournament-card:hover {
    border-color: rgba(239,68,68,0.2);
    background: rgba(255,255,255,0.03);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 1px rgba(239,68,68,0.08);
}

/* ── Header: logo + title + status ── */
.tc-hq-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.tc-hq-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.tc-hq-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s;
}
.all-tournaments-section .tournaments-grid .tournament-card:hover .tc-hq-logo {
    transform: scale(1.1) rotate(-3deg);
}

.tc-hq-logo--empty {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #ef4444;
    flex-shrink: 0;
    transition: all 0.3s;
}
.all-tournaments-section .tournaments-grid .tournament-card:hover .tc-hq-logo--empty {
    background: rgba(239,68,68,0.12);
    box-shadow: 0 0 10px rgba(239,68,68,0.15);
}

.tc-hq-titles {
    min-width: 0;
    flex: 1;
}

.tc-hq-name {
    margin: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #e5e7eb !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    /* reset any gradient text from global styles */
    -webkit-text-fill-color: #e5e7eb !important;
    background: none !important;
    text-shadow: none !important;
    padding: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
}

.tc-hq-type {
    font-size: 0.68rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: block;
    margin-top: 1px;
}

/* ── Status badge ── */
.tc-hq-status {
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.tc-hq-status--live     { background: rgba(239,68,68,0.12);  color: #ef4444; border: 1px solid rgba(239,68,68,0.18); animation: hq-pulse 1.5s ease-in-out infinite; box-shadow: 0 0 10px rgba(239,68,68,0.2); }
.tc-hq-status--reg      { background: rgba(245,158,11,0.1); color: #f59e0b; border: 1px solid rgba(245,158,11,0.15); }
.tc-hq-status--upcoming { background: rgba(59,130,246,0.1); color: #3b82f6; border: 1px solid rgba(59,130,246,0.15); }
.tc-hq-status--done     { background: rgba(34,197,94,0.1);  color: #22c55e; border: 1px solid rgba(34,197,94,0.15); }
.tc-hq-status--draft    { background: rgba(107,114,128,0.1); color: #9ca3af; border: 1px solid rgba(107,114,128,0.15); }
.tc-hq-status--cancelled{ background: rgba(107,114,128,0.12); color: #6b7280; border: 1px solid rgba(107,114,128,0.18); text-decoration: line-through; }

@keyframes hq-pulse { 0%,100%{ opacity:1; } 50%{ opacity:0.6; } }

/* ── History section ── */
.tournaments-history-link-wrap {
    display: flex;
    justify-content: flex-end;
    margin: 0 1rem 1.25rem;
}
.tournaments-history-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.tournaments-history-link:hover {
    background: rgba(245,158,11,0.1);
    border-color: rgba(245,158,11,0.35);
    color: var(--hellraiser-gold, #f59e0b);
    transform: translateY(-1px);
}
.tournaments-history-link i {
    font-size: 0.9rem;
}
.tournaments-history-link__count {
    background: rgba(245,158,11,0.2);
    color: var(--hellraiser-gold, #f59e0b);
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    min-width: 1.4rem;
    text-align: center;
}
.tournaments-history-link--back {
    background: rgba(220,38,38,0.1);
    border-color: rgba(220,38,38,0.3);
    color: #ef4444;
}
.tournaments-history-link--back:hover {
    background: rgba(220,38,38,0.2);
    border-color: rgba(220,38,38,0.5);
    color: #fff;
}

.tournaments-history-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Standalone history page: push content below the fixed navbar */
.tournaments-history-page .tournaments-history-section {
    margin-top: 0;
    padding-top: 6rem;
    border-top: 0;
}
@media (max-width: 768px) {
    .tournaments-history-page .tournaments-history-section {
        padding-top: 7.5rem;
    }
    .tournaments-history-page .tournaments-history-link-wrap {
        flex-wrap: wrap;
        gap: 0.6rem;
    }
}
@media (max-width: 480px) {
    .tournaments-history-page .tournaments-history-section {
        padding-top: 8rem;
    }
}
.tournaments-history-header {
    margin-bottom: 1.5rem;
    text-align: center;
}
.tournaments-history-header h2 {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--hellraiser-gold, #f59e0b);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.tournaments-history-header h2 i {
    margin-right: 0.5rem;
    opacity: 0.85;
}
.tournaments-history-header p {
    margin: 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
}
.tournament-card--history {
    opacity: 0.86;
    filter: saturate(0.85);
    transition: opacity 0.18s, filter 0.18s, transform 0.18s;
}
.tournament-card--history:hover {
    opacity: 1;
    filter: saturate(1);
    transform: translateY(-2px);
}
.tournament-card--history .tc-hq-logo,
.tournament-card--history .tc-hq-name {
    filter: grayscale(0.15);
}
.tournaments-history-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 12px;
    color: rgba(255,255,255,0.55);
}
.tournaments-history-empty i {
    font-size: 2rem;
    color: rgba(245,158,11,0.45);
    margin-bottom: 0.6rem;
    display: block;
}
.tournaments-history-empty p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}
.tournaments-history-empty strong {
    color: var(--hellraiser-gold, #f59e0b);
}

/* ── Meta row ── */
.tc-hq-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.6rem;
}
.tc-hq-meta span {
    font-size: 0.74rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.tc-hq-meta i {
    font-size: 0.65rem;
    color: #4b5563;
}

/* ── Progress bar ── */
.tc-hq-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.tc-hq-bar {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}
.tc-hq-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    transition: width 0.4s ease;
    position: relative;
    overflow: hidden;
}
.tc-hq-fill::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: tcBarShine 2.5s ease-in-out infinite;
}
@keyframes tcBarShine { 0%{left:-100%;} 100%{left:200%;} }
.tc-hq-pct {
    font-size: 0.65rem;
    color: #6b7280;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Action buttons ── */
.tc-hq-actions {
    display: flex;
    gap: 0.5rem;
}
.tc-hq-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
}
.tc-hq-btn--primary {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border-color: rgba(239,68,68,0.4);
}
.tc-hq-btn--primary:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}
.tc-hq-btn--ghost {
    background: rgba(255,255,255,0.04);
    color: #9ca3af;
    border-color: rgba(255,255,255,0.08);
}
.tc-hq-btn--ghost:hover {
    background: rgba(255,255,255,0.08);
    color: #e5e7eb;
    border-color: rgba(255,255,255,0.14);
    text-decoration: none;
}

/* ── Desktop grid: 2–3 columns ── */
@media (min-width: 769px) {
    .all-tournaments-section .tournaments-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 0.75rem;
    }
}

/* ── Mobile grid: single column ── */
@media (max-width: 768px) {
    .all-tournaments-section .tournaments-grid {
        grid-template-columns: 1fr !important;
        gap: 0.65rem !important;
        padding: 0 0.75rem !important;
    }
    .all-tournaments-section .tournaments-grid .tournament-card {
        transform: none !important;
    }
    .all-tournaments-section .tournaments-grid .tournament-card:hover {
        transform: none !important;
    }
}

/* ── Hide view toggle (removed from UI) ── */
.view-toggle-group { display: none !important; }

/* ============================================================
   TOURNAMENTS CONTROLS — NATIVE MOBILE REDESIGN
   Desktop: unchanged row layout
   Mobile: search full-width + chips scrollabile orizontal
   ============================================================ */

/* Search wrapper — desktop unchanged, mobile full-width */
.tc-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 180px;
}
.tc-search-icon {
    position: absolute;
    left: 0.75rem;
    color: #4b5563;
    font-size: 0.75rem;
    pointer-events: none;
}
.tc-search-input {
    padding-left: 2.1rem !important;
    width: 100%;
}

/* Chips row — desktop: flex wrap, mobile: single-line horizontal scroll */
.tc-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

/* ─── TC Custom Dropdown Buttons ───────────────────────────── */
.tc-dropdown {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}
.tc-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0 0.8rem 0 0.65rem;
    height: 34px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
    letter-spacing: 0.02em;
    user-select: none;
}
.tc-drop-btn:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.2);
    color: #e5e7eb;
}
.tc-drop-btn > i:first-child {
    font-size: 0.68rem;
    opacity: 0.5;
    flex-shrink: 0;
}
.tc-drop-arrow {
    font-size: 0.55rem;
    opacity: 0.4;
    transition: transform 0.18s, opacity 0.18s;
    margin-left: 0.05rem;
}
.tc-dropdown.tc-open .tc-drop-btn {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.22);
    color: #e5e7eb;
}
.tc-dropdown.tc-open .tc-drop-arrow {
    transform: rotate(180deg);
    opacity: 0.75;
}
.tc-dropdown.tc-active .tc-drop-btn {
    background: rgba(220,38,38,0.12);
    border-color: rgba(220,38,38,0.38);
    color: #fca5a5;
}
.tc-dropdown.tc-active .tc-drop-btn > i:first-child {
    color: #ef4444;
    opacity: 1;
}

/* ─── TC Drop Panel (appended to body, position: fixed) ───── */
.tc-drop-panel {
    position: fixed;
    z-index: 9999;
    min-width: 170px;
    background: #0d0f14;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.35),
                inset 0 1px 0 rgba(255,255,255,0.05);
    padding: 0.35rem;
    display: none;
    flex-direction: column;
    gap: 1px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: tcPanelIn 0.14s ease;
}
.tc-drop-panel.tc-panel-open {
    display: flex;
}
@keyframes tcPanelIn {
    from { opacity: 0; transform: translateY(-5px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* Separator line between groups (optional) */
.tc-drop-sep {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 0.2rem 0;
}
.tc-drop-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: #9ca3af;
    transition: background 0.1s, color 0.1s;
    white-space: nowrap;
}
.tc-drop-option:hover {
    background: rgba(255,255,255,0.06);
    color: #e5e7eb;
}
.tc-drop-option.tc-drop-selected {
    background: rgba(220,38,38,0.1);
    color: #fca5a5;
}
.tc-drop-option.tc-drop-selected .tc-opt-check {
    opacity: 1;
}
.tc-opt-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.tc-opt-icon {
    width: 14px;
    text-align: center;
    font-size: 0.7rem;
    opacity: 0.5;
    flex-shrink: 0;
}
.tc-opt-label { flex: 1; }
.tc-opt-check {
    font-size: 0.62rem;
    color: #ef4444;
    opacity: 0;
    margin-left: auto;
    flex-shrink: 0;
}

/* Navbar on mobile (769-992px): logo 64px + padding 0.75rem×2 = ~88px */
@media (min-width: 769px) and (max-width: 992px) {
    .tournaments-hero {
        padding: 95px 0 0 !important;
        min-height: 0 !important;
        background: none !important;
        overflow: visible !important;
        width: 100% !important;
    }
    .tournaments-hero::before { display: none !important; }
    .tournaments-hero-container { padding: 0 !important; max-width: 100% !important; width: 100% !important; }
}

@media (max-width: 768px) {
    /* Hero section: navbar on phone = logo 54px + padding 0.6rem×2 = ~74px */
    .tournaments-hero {
        padding: 82px 0 0 !important;
        min-height: 0 !important;
        background: none !important;
        overflow: visible !important;
        width: 100% !important;
    }
    .tournaments-hero::before {
        display: none !important;
    }
    .tournaments-hero-container {
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .tournament-controls {
        padding: 0 !important;
        margin-bottom: 0.5rem !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        display: block !important;
        overflow: visible !important;
        width: 100% !important;
    }
    .controls-container {
        padding: 0 !important;
        overflow: visible !important;
        width: 100% !important;
    }
    .controls-header {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        width: 100% !important;
    }
    .filter-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding: 0.6rem 0.75rem 0.65rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: rgba(255,255,255,0.015) !important;
        border-bottom: 1px solid rgba(255,255,255,0.06) !important;
        overflow: visible !important;
    }

    /* Search: full width with icon */
    .tc-search-wrap {
        width: 100% !important;
        flex: none !important;
    }
    .tc-search-input,
    #tournament-search {
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
        border-radius: 10px !important;
        font-size: 0.85rem !important;
        padding-left: 2.2rem !important;
        background: rgba(255,255,255,0.05) !important;
        border: 1px solid rgba(255,255,255,0.09) !important;
        color: #e5e7eb !important;
    }
    .tc-search-input::placeholder,
    #tournament-search::placeholder {
        color: #4b5563 !important;
    }
    .tc-search-icon {
        left: 0.8rem !important;
        font-size: 0.78rem !important;
        color: #4b5563 !important;
    }

    /* Chips row: single line, horizontal scroll, no wrap */
    .tc-chips-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0.35rem !important;
        padding-bottom: 2px !important;
        scrollbar-width: none !important;
    }
    .tc-chips-row::-webkit-scrollbar { display: none; }

    /* Dropdown buttons on mobile: compact */
    .tc-drop-btn {
        height: 32px !important;
        font-size: 0.72rem !important;
        padding: 0 0.75rem 0 0.6rem !important;
        gap: 0.3rem !important;
    }
    .tc-drop-btn > i:first-child {
        font-size: 0.64rem !important;
    }
    /* Hidden selects stay hidden */
    .filter-section > .filter-select {
        display: none !important;
    }
}

/* ============================================================
   TOURNAMENT DETAIL — MOBILE NATIVE APP REDESIGN
   ============================================================ */

/* ── Sticky Bottom CTA (hidden on desktop) ──────────────── */
.mobile-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 950;
        padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(to top,
            rgba(8, 10, 18, 0.99) 0%,
            rgba(8, 10, 18, 0.94) 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .mobile-sticky-cta__reg {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    /* Top info row */
    .mobile-sticky-cta__reg-top {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }

    .mobile-sticky-cta__reg-title {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .mobile-sticky-cta__label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #9ca3af;
        font-weight: 700;
    }

    .mobile-sticky-cta__status-pill {
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        padding: 0.15rem 0.5rem;
        border-radius: 50px;
        background: rgba(34,197,94,0.12);
        color: #4ade80;
        border: 1px solid rgba(34,197,94,0.25);
    }
    .mobile-sticky-cta__status-pill.closed,
    .mobile-sticky-cta__status-pill.registration-closed {
        background: rgba(107,114,128,0.12);
        color: #9ca3af;
        border-color: rgba(107,114,128,0.2);
    }
    .mobile-sticky-cta__status-pill.full,
    .mobile-sticky-cta__status-pill.slots-full {
        background: rgba(239,68,68,0.12);
        color: #f87171;
        border-color: rgba(239,68,68,0.22);
    }

    .mobile-sticky-cta__slots-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }
    .mobile-sticky-cta__slots-count {
        font-size: 0.78rem;
        font-weight: 700;
        color: #e5e7eb;
    }
    .mobile-sticky-cta__slots-left {
        font-size: 0.72rem;
        font-weight: 600;
        color: #4ade80;
    }

    /* Progress bar */
    .mobile-sticky-cta__progress {
        height: 4px;
        background: rgba(255,255,255,0.08);
        border-radius: 99px;
        overflow: hidden;
    }
    .mobile-sticky-cta__progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #ef4444, #f97316);
        border-radius: 99px;
        transition: width 0.4s ease;
    }

    .mobile-sticky-cta__deadline {
        font-size: 0.68rem;
        color: #6b7280;
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }
    .mobile-sticky-cta__deadline i {
        color: #f59e0b;
    }

    /* Action buttons row */
    .mobile-sticky-cta__reg-action {
        display: flex;
        gap: 0.5rem;
    }

    .mobile-sticky-cta__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        padding: 0.65rem 1rem;
        border-radius: 12px;
        font-size: 0.82rem;
        font-weight: 800;
        text-decoration: none;
        border: none;
        cursor: pointer;
        white-space: nowrap;
        letter-spacing: 0.03em;
        transition: opacity 0.15s, transform 0.15s;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-sticky-cta__btn:active {
        opacity: 0.82;
        transform: scale(0.97);
    }

    .mobile-sticky-cta__btn--primary {
        flex: 1;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
        color: #fff;
        box-shadow: 0 6px 18px rgba(220, 38, 38, 0.38);
    }

    .mobile-sticky-cta__btn--ghost {
        background: rgba(255, 255, 255, 0.06);
        color: #9ca3af;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.65rem 0.85rem;
        flex-shrink: 0;
    }

    .mobile-sticky-cta__btn--closed {
        flex: 1;
        background: rgba(255, 255, 255, 0.04);
        color: #6b7280;
        border: 1px solid rgba(255, 255, 255, 0.07);
        pointer-events: none;
        cursor: default;
    }

    /* Push body content above CTA */
    body.tournament-detail-page {
        padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
    }
}

/* ── Hero sponsors strip (mobile-only) ─────────────────── */
/* ── HERO SPONSORS STRIP (mobile only) ───────────────────── */
.hero-sponsors-strip {
    display: none;
}

@media (max-width: 768px) {
    .hero-sponsors-strip {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0.9rem;
        padding: 1rem 1rem 1.1rem;
        background: linear-gradient(145deg, rgba(30,25,50,0.85) 0%, rgba(12,12,22,0.9) 100%);
        border: 1px solid rgba(251,191,36,0.15);
        border-radius: 16px;
        overflow: hidden;
    }

    /* corner glow accent */
    .hero-sponsors-strip::before {
        content: '';
        position: absolute;
        top: 0; right: 0;
        width: 80px; height: 80px;
        background: radial-gradient(circle at top right, rgba(251,191,36,0.12) 0%, transparent 70%);
        pointer-events: none;
    }
    .hero-sponsors-strip::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0;
        width: 60px; height: 60px;
        background: radial-gradient(circle at bottom left, rgba(139,92,246,0.1) 0%, transparent 70%);
        pointer-events: none;
    }

    /* label row: icon + text + thin line */
    .hero-sponsors-strip__label-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }
    .hero-sponsors-strip__label {
        font-size: 0.6rem;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: #fbbf24;
        font-weight: 700;
        white-space: nowrap;
    }
    .hero-sponsors-strip__label-line {
        flex: 1;
        height: 1px;
        background: linear-gradient(to right, rgba(251,191,36,0.3), transparent);
    }

    /* centered wrapping row of sponsor cards */
    .hero-sponsors-strip__logos {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;
        width: 100%;
    }

    /* individual sponsor mini-card */
    .hero-sponsors-strip__item {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        padding: 0.55rem 0.85rem;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 10px;
        transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
        -webkit-tap-highlight-color: transparent;
        min-width: 72px;
        min-height: 52px;
    }
    .hero-sponsors-strip__item:active {
        transform: scale(0.94);
        background: rgba(251,191,36,0.07);
        border-color: rgba(251,191,36,0.35);
        box-shadow: 0 0 12px rgba(251,191,36,0.2);
    }
    a.hero-sponsors-strip__item:hover {
        background: rgba(251,191,36,0.06);
        border-color: rgba(251,191,36,0.28);
    }

    .hero-sponsors-strip__item img {
        max-height: 44px;
        max-width: 100px;
        width: auto;
        object-fit: contain;
        filter: brightness(1.1) saturate(0.9);
        display: block;
    }

    .hero-sponsors-strip__item span {
        color: #e5e7eb;
        font-weight: 700;
        font-size: 0.85rem;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }
}
@media (max-width: 768px) {
    .tournament-hero {
        padding: 6.5rem 0 1.5rem !important;
    }

    /* Hide header row (status pill + all action buttons) on mobile */
    .tournament-hero__header {
        display: none;
    }

    /* Hide subtitle on mobile — clean look */
    .tournament-hero__subtitle {
        display: none;
    }

    /* Stack: title → image → tiles */
    .tournament-hero__main {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .tournament-hero__text {
        width: 100%;
        text-align: center;
    }

    .tournament-hero__title {
        font-size: 2rem !important;
        line-height: 1.15;
        word-break: break-word;
    }

    /* Image centered, reasonable size */
    .tournament-hero__thumb {
        display: block;
        width: 80% !important;
        max-width: 280px !important;
        margin: 0 auto;
        justify-self: unset;
    }

    /* Meta tiles: 2×2 grid */
    .hero-meta-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        margin-top: 0.5rem !important;
    }

    .meta-tile {
        padding: 0.7rem 0.8rem;
        border-radius: 12px;
    }

    .meta-label {
        font-size: 0.72rem;
    }

    .meta-value {
        font-size: 0.95rem;
    }
}

/* ── Overview grid — reorder on mobile ─────────────────── */
@media (max-width: 768px) {
    /* Remove the negative margin that overlaps the hero */
    .tournament-overview {
        margin-top: 0 !important;
        padding: 0.75rem 0 1rem !important;
    }

    /* Flatten the grid: all info-cards become siblings */
    .overview-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    /* Use display:contents so info-cards participate directly in overview-grid flex order */
    .overview-main,
    .overview-side {
        display: contents !important;
        width: 100% !important;
        max-width: none !important;
    }

    /* Ensure the reordered cards use the full mobile width */
    .overview-main .info-card,
    .overview-side .info-card,
    .overview-grid > .info-card {
        width: 100% !important;
        max-width: none !important;
        align-self: stretch !important;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* ─── Explicit ordering ───────────────────────────── */
    /* catch-all mai intai (va fi suprascris de cele specifice) */
    .info-card             { order: 7 !important; }
    /* specifice: aceeasi specificitate dar apar dupa catch-all => castiga */
    .info-card--about      { order: 1 !important; }
    .info-card--prizes     { order: 2 !important; }
    .info-card--teamlist   { order: 3 !important; }
    .info-card--groups     { order: 4 !important; }
    .info-card--schedule   { order: 5 !important; }
    .info-card--reg        { order: 6 !important; }

    /* All info-cards: no hover lift on touch */
    .info-card:hover {
        transform: none !important;
    }

    /* Native-app card feel */
    .info-card {
        border-radius: 16px !important;
        padding: 1rem 1rem !important;
        border-color: rgba(255, 255, 255, 0.07) !important;
        /* Active press state instead of hover */
        -webkit-tap-highlight-color: transparent;
    }
    .info-card:active {
        background: rgba(255, 255, 255, 0.055) !important;
    }

    /* Registration card — extra emphasis */
    .info-card--reg {
        border-color: rgba(239, 68, 68, 0.22) !important;
        background: linear-gradient(145deg, rgba(220, 38, 38, 0.06), rgba(13, 17, 28, 0.9)) !important;
    }
    .info-card--reg::before {
        background: linear-gradient(90deg, rgba(255,255,255,0), rgba(239,68,68,0.6), rgba(255,255,255,0)) !important;
    }

    /* Prize card — gold accent */
    .info-card--prizes {
        border-color: rgba(245, 158, 11, 0.22) !important;
    }
    .info-card--prizes::before {
        background: linear-gradient(90deg, rgba(255,255,255,0), rgba(245,158,11,0.55), rgba(255,255,255,0)) !important;
        opacity: 0.9 !important;
    }

    /* Reg card: hide sticky position (display:contents removed the wrapper) */
    .info-card--reg.sticky {
        position: static !important;
    }

    /* Slots widget sizing for mobile */
    .slots-count {
        font-size: 1.1rem;
    }

    /* Prize rows: compact on small screen */
    .prize-row {
        padding: 0.6rem 0.7rem;
    }

    /* Register button in reg card: always visible and big */
    .info-card--reg .btn-accent.block {
        min-height: 50px;
        font-size: 0.95rem;
        border-radius: 14px;
        letter-spacing: 0.06em;
    }

    /* Fact grid: 2 column on mobile */
    .fact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem;
    }

    /* Badge placeholder grid: 1 column on small */
    .badge-placeholder-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Tournaments LIST page — native app polish ────────── */
@media (max-width: 768px) {
    /* Tighter overall padding */
    .all-tournaments-section {
        padding-top: 0.75rem;
        padding-bottom: 4rem; /* breathing room above sticky CTA on detail page */
    }

    /* Card: tap-friendly, no hover transform */
    .all-tournaments-section .tournaments-grid .tournament-card {
        -webkit-tap-highlight-color: transparent;
    }
    .all-tournaments-section .tournaments-grid .tournament-card:active {
        background: rgba(255, 255, 255, 0.045) !important;
        transform: scale(0.99) !important;
    }

    /* TC-HQ card — slightly taller touch targets */
    .tc-hq-btn {
        min-height: 40px !important;
        padding: 0.55rem 0.9rem !important;
        font-size: 0.82rem !important;
        border-radius: 10px !important;
    }

    .tc-hq-name {
        font-size: 0.95rem !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        line-clamp: unset !important;
    }

    /* HQ card: larger logo */
    .tc-hq-logo,
    .tc-hq-logo--empty {
        width: 42px !important;
        height: 42px !important;
        border-radius: 10px !important;
    }

    /* Meta spans: larger, easier to read */
    .tc-hq-meta span {
        font-size: 0.8rem !important;
    }

    /* Progress bar: slightly taller */
    .tc-hq-bar {
        height: 6px !important;
    }

    /* Grid padding matches other sections */
    .all-tournaments-section .tournaments-grid {
        padding: 0 0.75rem !important;
        gap: 0.7rem !important;
    }

    /* Tournament card container: no max-width restriction */
    .all-tournaments-section .tournaments-grid .tournament-card {
        padding: 0.9rem !important;
        border-radius: 14px !important;
    }
}

/* ── Micro utilities for native app feel ─────────────── */
@media (max-width: 768px) {
    /* Smooth scroll */
    html {
        scroll-behavior: smooth;
    }

    /* Tap target size for buttons/links across detail page */
    .btn,
    .btn-accent,
    .btn-muted {
        min-height: 44px !important;
        border-radius: 12px !important;
    }

    /* Section eyebrow: makes section breaks clearer */
    .eyebrow {
        font-size: 0.68rem !important;
        letter-spacing: 0.14em !important;
    }

    /* info-card header: slightly more breathing room */
    .info-card__header {
        margin-bottom: 0.75rem !important;
    }

    /* Prize rank icon: good size on small screen */
    .prize-rank {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.72rem !important;
    }

    /* Stage row: single column always */
    .stage-row {
        grid-template-columns: 1fr !important;
    }

    /* Groups: compact */
    .group-row {
        padding: 0.55rem 0.65rem;
    }

    /* Panels — full-height bottom sheet feel */
    .teams-panel__card,
    .stats-panel__card {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        max-height: 85vh !important;
        padding: 1.25rem !important;
    }

    .teams-panel__card::before,
    .stats-panel__card::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
        margin: 0 auto 1rem;
    }

    .teams-panel__list {
        grid-template-columns: 1fr !important;
        max-height: calc(85vh - 140px) !important;
    }

    .stats-panel__content {
        max-height: calc(85vh - 120px) !important;
    }
}

/* ================================================================
   SPONSORS SHOWCASE
   ================================================================ */

.sponsors-showcase {
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(15,16,26,0.95) 0%, rgba(10,12,22,0.98) 100%);
    border: 1px solid rgba(255,255,255,0.07);
    position: relative;
}
@media (max-width: 768px) {
    .sponsors-showcase {
        display: none;
    }
}
.sponsors-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(251,191,36,0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(139,92,246,0.05) 0%, transparent 55%);
    pointer-events: none;
}

.sponsors-showcase__header {
    padding: 1.25rem 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sponsors-showcase__label-wrap {
    flex-shrink: 0;
}

.sponsors-showcase__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fbbf24;
    margin-bottom: 0.2rem;
}
.sponsors-showcase__eyebrow i {
    font-size: 0.75rem;
}

.sponsors-showcase__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #f9fafb;
    margin: 0;
    letter-spacing: 0.01em;
}

.sponsors-showcase__divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(251,191,36,0.3), rgba(255,255,255,0.04) 70%, transparent);
}

.sponsors-showcase__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem 1.5rem;
    align-items: center;
    justify-content: center;
}

/* Individual sponsor card */
.sponsor-card {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1rem 1.4rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    min-width: 110px;
    min-height: 76px;
    overflow: hidden;
}
.sponsor-card__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(251,191,36,0.1), transparent 65%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    border-radius: inherit;
}
.sponsor-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251,191,36,0.35);
    background: rgba(251,191,36,0.05);
}
.sponsor-card:hover .sponsor-card__glow {
    opacity: 1;
}
.sponsor-card:active {
    transform: translateY(-1px);
}

.sponsor-card__logo {
    max-height: 48px;
    max-width: 130px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.05) saturate(0.9);
    transition: filter 0.22s ease;
    position: relative;
    z-index: 1;
}
.sponsor-card:hover .sponsor-card__logo {
    filter: brightness(1.2) saturate(1.1);
}

.sponsor-card__name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.04em;
    text-align: center;
    position: relative;
    z-index: 1;
}
.sponsor-card:hover .sponsor-card__name {
    color: #fbbf24;
}

.sponsor-card__link-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.55rem;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.2);
    transition: color 0.2s;
}
.sponsor-card:hover .sponsor-card__link-icon {
    color: rgba(251,191,36,0.6);
}

/* ================================================================
   HERO ACTION BUTTONS — Custom Visual Styles
   ================================================================ */

/* --- Brackets button (cyan/electric) --- */
.btn-bracket {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.2rem;
    background: rgba(6, 182, 212, 0.07);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}
.btn-bracket::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(6,182,212,0.14) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.22s ease;
}
.btn-bracket:hover {
    background: rgba(6, 182, 212, 0.14);
    border-color: #22d3ee;
    color: #fff;
    box-shadow: 0 0 20px rgba(6,182,212,0.35), 0 4px 14px rgba(0,0,0,0.45);
    transform: translateY(-2px);
    text-decoration: none;
}
.btn-bracket:hover::before { opacity: 1; }
.btn-bracket:active { transform: translateY(0); }
.btn-bracket i {
    filter: drop-shadow(0 0 5px rgba(6,182,212,0.75));
}

/* --- Winner Card button (gold luxury + shimmer sweep) --- */
.btn-winner-card {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.2rem;
    background: linear-gradient(135deg, rgba(180,130,10,0.13) 0%, rgba(251,191,36,0.06) 100%);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,0.38);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}
.btn-winner-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -65%;
    width: 45%;
    height: 200%;
    background: linear-gradient(100deg, transparent, rgba(255,215,0,0.15), transparent);
    transform: skewX(-18deg);
    transition: left 0.52s ease;
}
.btn-winner-card:hover {
    background: linear-gradient(135deg, rgba(202,138,4,0.22) 0%, rgba(251,191,36,0.12) 100%);
    border-color: #fbbf24;
    color: #fde68a;
    box-shadow: 0 0 18px rgba(251,191,36,0.3), 0 4px 14px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}
.btn-winner-card:hover::after { left: 125%; }
.btn-winner-card:active { transform: translateY(0); }
.btn-winner-card i {
    filter: drop-shadow(0 0 6px rgba(251,191,36,0.7));
}
.btn-winner-card.btn-loading {
    opacity: 0.6;
    pointer-events: none;
}
.btn-winner-card.btn-loading::before {
    content: '';
    width: 13px; height: 13px;
    border: 2px solid transparent;
    border-top-color: #fbbf24;
    border-radius: 50%;
    animation: spin-card-btn 0.6s linear infinite;
    margin-left: 0.3rem;
}

/* --- Standings Card button (purple/violet) --- */
.btn-standings-card {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.2rem;
    background: rgba(139, 92, 246, 0.07);
    color: #a78bfa;
    border: 1px solid rgba(139,92,246,0.35);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}
.btn-standings-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(139,92,246,0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.22s ease;
}
.btn-standings-card:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: #a78bfa;
    color: #c4b5fd;
    box-shadow: 0 0 18px rgba(139,92,246,0.32), 0 4px 14px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}
.btn-standings-card:hover::before { opacity: 1; }
.btn-standings-card:active { transform: translateY(0); }
.btn-standings-card i {
    filter: drop-shadow(0 0 5px rgba(139,92,246,0.7));
}
.btn-standings-card.btn-loading {
    opacity: 0.6;
    pointer-events: none;
}
.btn-standings-card.btn-loading::after {
    content: '';
    width: 13px; height: 13px;
    border: 2px solid transparent;
    border-top-color: #a78bfa;
    border-radius: 50%;
    animation: spin-card-btn 0.6s linear infinite;
    margin-left: 0.3rem;
}
