/* Ported from /matches/public/css/style.css — recoloured for v3 by tools/port_css.php. Do not edit; re-run the tool. */
/* public/css/style.css - COMPLETE VERSION WITH NEW SERVER CARDS */

/* ========================================
   CRITICAL FIXES - DO NOT REMOVE
   ======================================== */

/* Force proper display */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    min-height: 100vh;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
}

/* Global typography */
h1,h2,h3,h4,h5,h6,
.map-title,.score-win,.score-loss,.team-box-name,
.hero-section-home h1,
.lb-table thead th:first-child,
.section-title,.home-section-head h2,
.rental-title,.price-amount {
    font-family: var(--font-display);
}
code, pre,
.match-id,.match-date,.meta-value,.meta-label,
.lb-rank-num,.lb-kd,.lb-k,.lb-d,
.ticker-score,.ticker-map,
.hero-stat-value,.hero-stat-label,
.stat-mono { font-family: var(--font-mono); }

/* Global scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(47, 139, 255,0.20); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(47, 139, 255,0.40); }
* { scrollbar-width: thin; scrollbar-color: rgba(47, 139, 255,0.20) transparent; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Dropdown — hidden via opacity/visibility so hover transitions work */
.user-dropdown {
    position: absolute;
    top: 100%; /* gap handled by .user-menu padding-bottom */
    right: 0;
    width: 280px;
    background: var(--bg-secondary);
    border: 1px solid rgba(90, 162, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-16px) scaleY(0.92);
    transform-origin: top center;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
    z-index: 1001;
}

/* Show when .active class is set (JS-driven hover + click) */
.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
}

/* Rotate chevron when dropdown open */
.user-menu.open .user-btn i {
    transform: rotate(180deg);
}

/* Ensure content sections are visible */
.hero-section-home,
.home-section,
.profile-container,
.matches-container,
.match-detail-container {
    position: relative;
    z-index: 1;
    display: block !important;
    width: 100%;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Steam / login button */
.nav-steam-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: #1b2838;
    border: 1px solid rgba(47, 139, 255,0.20);
    border-radius: 8px;
    color: #c7d5e0;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.18s, border-color 0.18s;
}
.nav-steam-btn:hover { background: #2a3f5f; border-color: var(--accent-primary); color: #fff; }

.steam-login-img {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
}

.user-menu {
    position: relative;
    /* Split evenly (was padding-bottom: 8px alone) — that pushed .user-btn
       flush against .user-menu's own top edge instead of centered inside
       it, since an auto-height wrapper just grows to fit content + padding
       with nothing left over to center against. All-bottom padding put the
       44px button 4px above the navbar's true center line, visibly higher
       than every sibling nav item. Same total hover-bridge height either
       way, just balanced now. */
    padding: 4px 0;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(90, 162, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.3s;
}

.user-btn:hover {
    background: rgba(90, 162, 255, 0.15);
    border-color: rgba(90, 162, 255, 0.4);
}

.user-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(66, 165, 245, 0.3);
}

.user-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.user-btn:hover i {
    transform: rotate(180deg);
}

.dropdown-header {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(90, 162, 255, 0.08);
}

.dropdown-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #42a5f5;
}

.dropdown-name {
    font-weight: 600;
    color: #fff;
}

.dropdown-id {
    font-size: 0.75rem;
    color: #8a9dbd;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #8a9dbd;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item i {
    width: 20px;
}

.dropdown-item:hover {
    background: rgba(90, 162, 255, 0.1);
    color: #fff;
}

.dropdown-item.logout {
    color: #ff9a6b;
}

.dropdown-item.logout:hover {
    background: rgba(255, 154, 107, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, #5aa2ff 0%, #4a88e6 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(90, 162, 255, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 162, 255, 0.4);
}

.login-btn img {
    width: 20px;
    height: 20px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== HERO SECTIONS ==================== */
.hero-section {
    text-align: center;
    padding: 5rem 0;
}

.hero-section h1 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: #5aa2ff;
    text-shadow: 0 0 20px rgba(90, 162, 255, 0.3);
}

.hero-section p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #b4b4b4;
    margin-bottom: 2rem;
}

.hero-section-home {
    text-align: center;
    padding: 3rem 0 2rem 0;
    background: linear-gradient(180deg, rgba(20, 25, 40, 0.4) 0%, transparent 100%);
}

.hero-section-home h1 {
    font-size: clamp(1.4rem, 5vw, 2.5rem);
    margin-bottom: 0.5rem;
    color: #5aa2ff;
    text-shadow: 0 0 20px rgba(90, 162, 255, 0.3);
}

.hero-section-home p {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    color: #b4b4b4;
    margin-bottom: 1.5rem;
}

.steam-login-btn,
.steam-login-btn-home {
    display: inline-block;
    margin: 2rem 0;
    transition: transform 0.2s;
}

.steam-login-btn:hover,
.steam-login-btn-home:hover {
    transform: scale(1.05);
}

.steam-login-btn img {
    height: 50px;
    border-radius: 3px;
}

.steam-login-btn-home img {
    height: 40px;
    border-radius: 3px;
}

.error-message {
    background: rgba(233, 69, 96, 0.2);
    border: 1px solid #e94560;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    color: #e94560;
}

/* ==================== FEATURES ==================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #5aa2ff;
}

.feature p {
    color: #b4b4b4;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #0f0f15;
    padding: 2rem 0;
    margin-top: auto;
    border-top: 2px solid rgba(90, 162, 255, 0.15);
    text-align: center;
    color: #b4b4b4;
}

/* ==================== PROFILE PAGE ==================== */
.profile-container {
    padding: 3rem 0;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    border: 3px solid #e94560;
}

.profile-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #5aa2ff;
    text-shadow: 0 2px 15px rgba(90, 162, 255, 0.3);
}

.steam-id {
    color: #b4b4b4;
    font-size: 0.9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #b4b4b4;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #5aa2ff;
    text-shadow: 0 0 10px rgba(90, 162, 255, 0.2);
}

.recent-matches-section {
    margin-top: 3rem;
}

.recent-matches-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #5aa2ff;
    text-shadow: 0 2px 10px rgba(90, 162, 255, 0.2);
}

.matches-table {
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
}

.matches-table table {
    width: 100%;
    border-collapse: collapse;
}

.matches-table th {
    background: rgba(90, 162, 255, 0.15);
    padding: 1rem;
    text-align: left;
    color: #5aa2ff;
    font-weight: bold;
    border-bottom: 2px solid rgba(90, 162, 255, 0.3);
}

.matches-table td {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.matches-table tr:hover {
    background: rgba(90, 162, 255, 0.08);
}

.clickable-row {
    cursor: pointer;
}

.result-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.85rem;
}

.result-badge.win {
    background: rgba(53, 196, 106, 0.2);
    color: #10b981;
    border: 1px solid rgba(53, 196, 106, 0.3);
    box-shadow: 0 2px 10px rgba(53, 196, 106, 0.2);
}

.result-badge.loss {
    background: rgba(255, 154, 107, 0.2);
    color: #ff9a6b;
    border: 1px solid rgba(255, 154, 107, 0.3);
    box-shadow: 0 2px 10px rgba(255, 154, 107, 0.2);
}

.result-badge.draw,
.user-result-badge.draw {
    background: rgba(138, 157, 189, 0.18);
    color: #8a9dbd;
    border: 1px solid rgba(138, 157, 189, 0.3);
}
.home-match-row.user-draw { opacity: 0.9; }

.no-data {
    text-align: center;
    padding: 3rem;
    color: #b4b4b4;
}

.view-all-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #5aa2ff 0%, #4a88e6 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(90, 162, 255, 0.3);
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #6ba9ff 0%, #5a98f6 100%);
    box-shadow: 0 6px 20px rgba(90, 162, 255, 0.4);
}

/* ==================== MATCHES PAGE ==================== */
.matches-container {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.matches-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #5aa2ff;
    text-shadow: 0 2px 15px rgba(90, 162, 255, 0.3);
}

.view-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.view-tabs .tab {
    padding: 1rem 2rem;
    text-decoration: none;
    color: #b4b4b4;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.view-tabs .tab:hover {
    color: #5aa2ff;
}

.view-tabs .tab.active {
    color: #5aa2ff;
    border-bottom: 3px solid #5aa2ff;
}

.matches-info {
    margin: 1.5rem 0;
    color: #b4b4b4;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.match-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(90, 162, 255, 0.15);
    border-color: rgba(90, 162, 255, 0.3);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.match-header h3 {
    color: #5aa2ff;
    font-size: 1.2rem;
}

.match-date {
    color: #b4b4b4;
    font-size: 0.85rem;
}

.match-score {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
    color: #e4e4e4;
}

.match-score .separator {
    margin: 0 1rem;
    color: #b4b4b4;
}

.match-result {
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
    font-weight: bold;
    margin: 1rem 0;
}

.match-result.win {
    background: rgba(53, 196, 106, 0.2);
    color: #10b981;
    border: 1px solid rgba(53, 196, 106, 0.3);
}

.match-result.loss {
    background: rgba(255, 154, 107, 0.2);
    color: #ff9a6b;
    border: 1px solid rgba(255, 154, 107, 0.3);
}

.match-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 1rem 0;
}

.match-stats .stat {
    text-align: center;
}

.match-stats .label {
    display: block;
    font-size: 0.8rem;
    color: #b4b4b4;
    margin-bottom: 0.3rem;
}

.match-stats .value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e4e4e4;
}

.match-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #b4b4b4;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.match-winner {
    text-align: center;
    padding: 0.8rem;
    background: rgba(66, 165, 245, 0.1);
    border-radius: 5px;
    color: #42a5f5;
    margin: 1rem 0;
}

.no-matches {
    text-align: center;
    padding: 4rem;
    color: #b4b4b4;
    background: rgba(15, 52, 96, 0.3);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #5aa2ff 0%, #4a88e6 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(90, 162, 255, 0.3);
}

.page-btn:hover {
    background: linear-gradient(135deg, #6ba9ff 0%, #5a98f6 100%);
    box-shadow: 0 6px 20px rgba(90, 162, 255, 0.4);
}

.page-info {
    color: #b4b4b4;
}

/* ==================== HOME PAGE ==================== */
.home-section {
    padding: 3rem 0;
}

.home-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #5aa2ff;
    text-shadow: 0 2px 10px rgba(90, 162, 255, 0.2);
}

.server-section-header h2 {
    margin-bottom: 0 !important;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-all-link {
    color: #5aa2ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: #6ba9ff;
}

.match-count {
    color: #b4b4b4;
    font-size: 0.9rem;
}

.home-matches-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-match-row {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.home-match-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(90, 162, 255, 0.15);
    border-color: rgba(90, 162, 255, 0.3);
}

.match-map-image {
    width: 200px;
    min-height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
}

.map-name {
    color: #5aa2ff;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 15px rgba(90, 162, 255, 0.5);
}

.match-row-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    padding: 1.5rem;
    gap: 2rem;
}

.match-row-content > .match-row-score {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.match-row-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.match-row-date {
    color: #f3f6fb;
    font-weight: bold;
}

.match-row-duration {
    color: #b4b4b4;
    font-size: 0.9rem;
}

.match-row-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
}

.match-row-teams-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.team-name {
    font-weight: bold;
    font-size: 1rem;
}

.team-name.winner-name {
    color: #10b981 !important;
    text-shadow: 0 0 10px rgba(53, 196, 106, 0.3) !important;
}

.team-name.loser-name {
    color: #ff9a6b !important;
    text-shadow: 0 0 10px rgba(255, 154, 107, 0.3) !important;
}

.team-name-sep {
    color: #b4b4b4;
}

.match-row-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.team-score-row {
    font-size: 2rem;
    font-weight: bold;
}

.team-score-row.winner {
    color: #10b981 !important;
    text-shadow: 0 0 10px rgba(53, 196, 106, 0.3) !important;
}

.team-score-row.loser {
    color: #ff9a6b !important;
    text-shadow: 0 0 10px rgba(255, 154, 107, 0.3) !important;
}

.score-sep {
    color: #b4b4b4;
    font-size: 1.5rem;
}

.match-row-id {
    color: #b4b4b4;
    font-size: 0.9rem;
}

.user-result-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.user-result-badge.win {
    background: rgba(53, 196, 106, 0.2);
    color: #10b981;
    border: 1px solid rgba(53, 196, 106, 0.3);
    box-shadow: 0 2px 10px rgba(53, 196, 106, 0.2);
}

.user-result-badge.loss {
    background: rgba(255, 154, 107, 0.2);
    color: #ff9a6b;
    border: 1px solid rgba(255, 154, 107, 0.3);
    box-shadow: 0 2px 10px rgba(255, 154, 107, 0.2);
}

.match-row-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.match-row-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.match-row-stats .stat-label {
    font-size: 0.75rem;
    color: #8a9dbd;
    text-transform: uppercase;
}

.match-row-stats .stat-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e4e4e4;
}

/* ==================== NEW SERVER CARDS DESIGN ==================== */

/* Main container for servers grid */
.servers-grid-home {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
    margin: 2rem 0 !important;
}

/* Individual server card */
.server-card-grid {
    position: relative !important;
    height: 140px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: var(--bg-secondary) !important;
    cursor: pointer !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

.server-card-grid:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(90, 162, 255, 0.15) !important;
    border-color: rgba(90, 162, 255, 0.3) !important;
}

.server-card-grid.offline {
    opacity: 0.7 !important;
}

/* Map background */
.server-map-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Dark overlay on map */
.server-map-overlay-grid {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.85) 0%, rgba(20, 20, 30, 0.95) 100%) !important;
}

/* Top section with server name and lock icon */
.server-top-info {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    right: 1rem !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
}

.server-title-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.server-name-text {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9) !important;
    line-height: 1.2 !important;
}

.server-map-name-text {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 400 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9) !important;
    line-height: 1.2 !important;
}

.server-lock-icon {
    width: 18px !important;
    height: 18px !important;
    opacity: 0.6 !important;
    filter: brightness(0) invert(1) !important;
}

/* Bottom section with player count and action buttons */
.server-bottom-info {
    position: absolute !important;
    bottom: 1rem !important;
    left: 1rem !important;
    right: 1rem !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Player count badge */
.server-players-count {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 0.4rem 0.7rem !important;
    border-radius: 8px !important;
    background: rgba(100, 100, 110, 0.9) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    white-space: nowrap !important;
}

.server-players-count:not(.offline):not(.full) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 2px 10px rgba(53, 196, 106, 0.3) !important;
}

.server-players-count.full {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3) !important;
}

.server-players-count.offline {
    background: linear-gradient(135deg, #6f86ad 0%, #4b5563 100%) !important;
    box-shadow: 0 2px 10px rgba(107, 114, 128, 0.2) !important;
}

.info-icon {
    font-size: 0.7rem !important;
    opacity: 0.7 !important;
}

/* Action buttons container */
.server-actions {
    display: flex !important;
    gap: 0.5rem !important;
}

/* Individual action buttons */
.server-icon-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    background: rgba(40, 40, 50, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    padding: 0 !important;
}

.server-icon-btn:hover {
    background: rgba(90, 162, 255, 0.2) !important;
    border-color: rgba(90, 162, 255, 0.4) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 10px rgba(90, 162, 255, 0.3) !important;
}

.server-icon-btn.copied {
    background: rgba(46, 213, 115, 0.4) !important;
}

.server-icon-btn img,
.server-icon-btn svg {
    width: 16px !important;
    height: 16px !important;
    opacity: 0.8 !important;
    filter: brightness(0) invert(1) !important;
}

.server-icon-btn:hover img,
.server-icon-btn:hover svg {
    opacity: 1 !important;
}

/* Loading state */
.loading-servers {
    text-align: center !important;
    padding: 2rem !important;
    color: #8a9dbd !important;
}

/* Loading skeleton cards */
.server-card-loading {
    position: relative !important;
    height: 140px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: var(--bg-secondary) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.server-card-loading::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(90, 162, 255, 0.08) 50%,
        transparent 100%
    ) !important;
    animation: loading-shimmer 1.5s infinite !important;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.server-loading-content {
    position: relative !important;
    padding: 1rem !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.loading-title-bar {
    width: 50% !important;
    height: 20px !important;
    background: rgba(90, 162, 255, 0.15) !important;
    border-radius: 4px !important;
    animation: pulse 1.5s ease-in-out infinite !important;
}

.loading-subtitle-bar {
    width: 35% !important;
    height: 14px !important;
    background: rgba(90, 162, 255, 0.1) !important;
    border-radius: 4px !important;
    margin-top: 0.5rem !important;
    animation: pulse 1.5s ease-in-out infinite 0.2s !important;
}

.loading-bottom {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.loading-badge {
    width: 60px !important;
    height: 28px !important;
    background: rgba(100, 100, 110, 0.3) !important;
    border-radius: 8px !important;
    animation: pulse 1.5s ease-in-out infinite 0.4s !important;
}

.loading-buttons {
    display: flex !important;
    gap: 0.5rem !important;
}

.loading-btn {
    width: 36px !important;
    height: 36px !important;
    background: rgba(60, 60, 70, 0.3) !important;
    border-radius: 8px !important;
    animation: pulse 1.5s ease-in-out infinite 0.6s !important;
}

.loading-status-text {
    text-align: center !important;
    margin-top: 0.5rem !important;
    color: #8a9dbd !important;
    font-size: 0.9rem !important;
    animation: pulse 1.5s ease-in-out infinite !important;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ==================== MATCH DETAIL PAGE ==================== */
.match-detail-container {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.back-btn {
    display: inline-block;
    color: #5aa2ff;
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: bold;
    transition: transform 0.2s;
}

.back-btn:hover {
    transform: translateX(-5px);
}

.match-detail-header {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.match-map h1 {
    font-size: 2.5rem;
    color: #5aa2ff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 15px rgba(90, 162, 255, 0.3);
}

.match-teams-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.team-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #5aa2ff;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 2px solid #5aa2ff;
    min-width: 200px;
    box-shadow: 0 0 15px rgba(90, 162, 255, 0.2);
}

.vs-text {
    font-size: 1.2rem;
    color: #b4b4b4;
    font-weight: bold;
}

.match-score-large {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 2rem 0;
}

.team-score {
    text-align: center;
}

.team-score .score {
    font-size: 3rem;
    font-weight: bold;
    color: #e4e4e4;
}

.team-score.winner .score {
    color: #10b981;
    text-shadow: 0 0 15px rgba(53, 196, 106, 0.3);
}

.team-score.loser .score {
    color: #ff9a6b;
    text-shadow: 0 0 15px rgba(255, 154, 107, 0.3);
}

.score-separator {
    font-size: 2rem;
    color: #b4b4b4;
}

.match-meta {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.meta-item .label {
    color: #b4b4b4;
    font-size: 0.9rem;
}

.meta-item .value {
    color: #e4e4e4;
    font-size: 1.2rem;
    font-weight: bold;
}

.team-section {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.winner-section {
    border-left: 4px solid #10b981;
}

.loser-section {
    border-left: 4px solid #ff9a6b;
}

.spectator-section {
    border-left: 4px solid #b4b4b4;
}

.spectator-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.spectator-item {
    background: rgba(180, 180, 180, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    color: #b4b4b4;
    border: 1px solid rgba(180, 180, 180, 0.3);
}

.team-title {
    font-size: 1.8rem;
    color: #5aa2ff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(90, 162, 255, 0.2);
}

.stat-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid var(--border-color);
}

.stat-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #b4b4b4;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.stat-tab:hover {
    color: #5aa2ff;
    background: rgba(90, 162, 255, 0.1);
}

.stat-tab.active {
    color: #5aa2ff;
    border-bottom: 3px solid #5aa2ff;
    background: rgba(90, 162, 255, 0.1);
}

.players-table-container {
    overflow-x: auto;
}

.players-table {
    width: 100%;
    border-collapse: collapse;
}

.players-table th {
    background: rgba(90, 162, 255, 0.2);
    padding: 1rem;
    text-align: left;
    color: #5aa2ff;
    font-weight: bold;
    border-bottom: 2px solid rgba(90, 162, 255, 0.3);
}

.players-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e4e4e4;
}

.players-table tbody tr:hover {
    background: rgba(90, 162, 255, 0.08);
}

.player-name {
    font-weight: bold;
    color: #5aa2ff !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .servers-grid-home {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    body {
    }
    
    .mobile-toggle {
        display: flex;
    }

    /* Hide language switcher — show inside drawer instead */

    /* Compact user button on mobile: avatar only */
    .user-btn span,
    .user-btn i.fa-chevron-down { display: none; }
    .user-btn { padding: 4px; background: transparent; border-color: transparent; }
    .user-btn img { width: 30px; height: 30px; }
    
    .login-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    /* User dropdown: prevent clipping on narrow screens */
    .user-dropdown {
        right: 0;
        left: auto;
        max-width: calc(100vw - 1rem);
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .matches-grid {
        grid-template-columns: 1fr;
    }

    .view-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .view-tabs .tab {
        padding: 0.8rem 1.25rem;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .matches-container h1 {
        font-size: 1.75rem;
    }

    .match-card {
        padding: 1.25rem;
    }

    .match-score-large {
        flex-direction: column;
        gap: 1rem;
    }

    .match-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .players-table th,
    .players-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .match-teams-display {
        flex-direction: column;
        gap: 1rem;
    }

    .team-display {
        font-size: 1.2rem;
        min-width: auto;
    }

    .home-match-row {
        flex-direction: column;
    }

    .match-map-image {
        width: 100%;
        min-height: 150px;
    }

    .match-row-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .servers-grid-home {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .server-card-grid {
        height: 130px !important;
    }
    
    .server-name-text {
        font-size: 0.95rem !important;
    }
    
    .server-map-name-text {
        font-size: 0.75rem !important;
    }
    
    .server-icon-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }
    
    .server-players-count {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.5rem !important;
    }
}

@media (max-width: 480px) {
    body {
    }
    
    .container {
        padding: 0 12px;
    }

    .hero-section {
        padding: 2.5rem 0;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .hero-section-home h1 {
        font-size: 1.35rem;
    }

    .home-section h2 {
        font-size: 1.35rem;
    }

    .matches-container h1 {
        font-size: 1.5rem;
    }

    .match-card {
        padding: 1rem;
    }

    .match-score {
        font-size: 1.5rem;
    }

    .servers-grid-home {
        grid-template-columns: 1fr !important;
    }

    .view-tabs .tab {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .pagination {
        gap: 1rem;
    }

    .page-btn {
        padding: 0.65rem 1.1rem;
        font-size: 0.875rem;
    }
    
    .brand-logo {
        width: 32px;
        height: 32px;
    }
}

/* ==================== GLOBAL MOBILE IMPROVEMENTS ==================== */

/* Prevent double-tap delay on all interactive elements */
button, a, [role="button"] {
    touch-action: manipulation;
}

/* Prevent iOS from zooming into inputs (requires font-size >= 16px) */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Minimum touch target size for all buttons */
    button, [role="button"], a.btn {
        min-height: 44px;
    }

    /* Horizontal scroll tables get a visual indicator */
    .overflow-scroll-x,
    .players-table-container,
    .lb-table-wrap {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0f0f15;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #5aa2ff 0%, #4a88e6 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6ba9ff 0%, #5a98f6 100%);
}

/* ==================== MATCH DETAIL PAGE STYLES ==================== */
.match-detail-header {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.match-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.7) 0%, rgba(10, 10, 15, 0.95) 100%);
}

.match-header-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.back-link {
    color: #5aa2ff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    width: 100%;
    padding: 0 1rem;
}

.back-link:hover {
    color: #6ba9ff;
    transform: translateX(-5px);
}

.map-title {
    font-size: 2.5rem;
    color: #fff;
    margin: 0;
    text-align: center;
    text-shadow: 0 0 20px rgba(90, 162, 255, 0.5);
}

.match-date-display {
    text-align: center;
    color: #8a9dbd;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.match-score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.team-box {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 2px solid;
    min-width: 180px;
    text-align: center;
    transition: all 0.3s;
}

.team-box:hover {
    transform: scale(1.05);
}

.winner-box { 
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(53, 196, 106, 0.3);
}

.loser-box { 
    border-color: #ff9a6b;
    box-shadow: 0 0 20px rgba(255, 154, 107, 0.3);
}

.team-box-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
}

.score-vs {
    text-align: center;
}

.score-numbers {
    font-size: 2.5rem;
    font-weight: bold;
}

.score-win { 
    color: #10b981;
    text-shadow: 0 0 15px rgba(53, 196, 106, 0.4);
}

.score-loss { 
    color: #ff9a6b;
    text-shadow: 0 0 15px rgba(255, 154, 107, 0.4);
}

.score-separator {
    color: #8a9dbd;
    margin: 0 0.8rem;
}

.vs-text {
    color: #8a9dbd;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.match-tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: 2px solid rgba(90, 162, 255, 0.2);
}

.match-tabs {
    display: flex;
    gap: 0.5rem;
}

.match-meta-inline {
    display: flex;
    gap: 2rem;
    padding-bottom: 1rem;
}

.meta-item-inline {
    text-align: center;
}

.meta-label {
    display: block;
    color: #8a9dbd;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.meta-value {
    display: block;
    color: #f3f6fb;
    font-size: 1.1rem;
    font-weight: bold;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: #8a9dbd;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    font-family: inherit;
}

.tab-btn:hover {
    color: #5aa2ff;
    background: rgba(90, 162, 255, 0.05);
}

.tab-btn.active {
    color: #5aa2ff;
    border-bottom-color: #5aa2ff;
    background: rgba(90, 162, 255, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.team-section {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
}

.winner-section { }
.loser-section { }

.team-header {
    background: rgba(90, 162, 255, 0.08);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.team-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
}

.trophy-icon {
    font-size: 2rem;
}

.players-table-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.players-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.players-table thead {
    background: rgba(90, 162, 255, 0.12);
}

.players-table th {
    padding: 1rem;
    text-align: left;
    color: #5aa2ff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(90, 162, 255, 0.3);
}

.players-table td {
    padding: 1rem;
    color: #f3f6fb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.players-table tbody tr {
    transition: all 0.2s;
}

.players-table tbody tr:hover {
    background: rgba(90, 162, 255, 0.08);
}

.player-name {
    color: #5aa2ff !important;
    font-weight: 600;
}

/* Responsive match detail */
@media (max-width: 768px) {
    .match-detail-header {
        height: auto;
        min-height: 450px;
        padding-bottom: 2rem;
    }
    
    .match-header-content {
        padding: 1.5rem 0;
        justify-content: flex-start;
        gap: 2rem;
    }
    
    .back-link {
        position: static;
        margin-bottom: 1rem;
    }
    
    .map-title {
        font-size: 1.8rem;
        margin-top: 1rem;
    }
    
    .match-date-display {
        margin-bottom: 1.5rem;
    }
    
    .match-score-display {
        flex-direction: row;
        gap: 1rem;
        margin: 2rem 0;
        padding: 0 0.5rem;
    }
    
    .team-box {
        min-width: 100px;
        padding: 0.8rem 1rem;
        flex: 1;
        max-width: 140px;
    }
    
    .team-box-name {
        font-size: 1rem;
        word-break: break-word;
    }
    
    .score-vs {
        flex-shrink: 0;
    }
    
    .score-numbers {
        font-size: 1.8rem;
    }
    
    .vs-text {
        font-size: 0.8rem;
    }
    
    .match-tabs-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .match-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .match-meta-inline {
        width: 100%;
        justify-content: space-around;
        padding-top: 0.5rem;
    }
    
    .players-table {
        font-size: 0.85rem;
    }
    
    .players-table th,
    .players-table td {
        padding: 0.6rem 0.4rem;
    }
}
/* Admin Panel and Rent Server Buttons */
.admin-panel-btn {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border: 2px solid #ff6b35;
    padding: 10px 20px;
    border-radius: 8px;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-left: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.admin-panel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
}

.admin-panel-btn i {
    font-size: 16px;
}

.create-match-nav-btn {
    background: linear-gradient(135deg, #2f8bff, #0099cc);
    border: 2px solid #2f8bff;
    padding: 10px 20px;
    border-radius: 8px;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-left: 10px;
    box-shadow: 0 4px 15px rgba(47, 139, 255, 0.3);
}

.create-match-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(47, 139, 255, 0.5);
    background: linear-gradient(135deg, #0099cc, #2f8bff);
}

.create-match-nav-btn i {
    font-size: 16px;
}

/* Improved Card Design - Better Visual Hierarchy */
.rental-services-banner {
    padding: 3rem 0 2.5rem;
    margin-bottom: 2.5rem;
}

.services-banner-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Service Cards - Improved */
.service-rental-card {
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    border: 1px solid rgba(90, 162, 255, 0.2);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    position: relative;
    transition: all 0.3s ease;
}

.service-rental-card:hover {
    transform: translateY(-3px);
    border-color: rgba(90, 162, 255, 0.5);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.service-rental-card.premium {
    background: linear-gradient(145deg, rgba(25, 35, 60, 0.95), rgba(20, 30, 55, 0.95));
    border-color: rgba(66, 133, 244, 0.25);
}

.service-rental-card.premium:hover {
    border-color: rgba(66, 133, 244, 0.6);
}

.card-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(90, 162, 255, 0.15);
    color: #5aa2ff;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(90, 162, 255, 0.3);
}

.service-rental-card.premium .card-badge {
    background: rgba(66, 133, 244, 0.15);
    color: #4285f4;
    border-color: rgba(66, 133, 244, 0.4);
}

.card-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    padding-right: 5rem;
}

.card-price {
    color: #5aa2ff;
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0.75rem 0 0.5rem 0;
    line-height: 1;
}

.service-rental-card.premium .card-price {
    color: #4285f4;
}

.card-description {
    color: #a8a8b0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 1rem 0 1.5rem 0;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
}

.card-features li {
    color: #d0d0d8;
    font-size: 0.88rem;
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-features li:last-child {
    border-bottom: none;
}

.card-features li:before {
    content: "✓";
    color: #5aa2ff;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.service-rental-card.premium .card-features li:before {
    color: #4285f4;
}

.card-button {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: rgba(90, 162, 255, 0.12);
    border: 1.5px solid rgba(90, 162, 255, 0.35);
    border-radius: 8px;
    color: #5aa2ff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}

.card-button:hover {
    background: rgba(90, 162, 255, 0.2);
    border-color: #5aa2ff;
}

.service-rental-card.premium .card-button {
    background: rgba(66, 133, 244, 0.12);
    border-color: rgba(66, 133, 244, 0.35);
    color: #4285f4;
}

.service-rental-card.premium .card-button:hover {
    background: rgba(66, 133, 244, 0.2);
    border-color: #4285f4;
}

/* Footer Cards - Improved */
.footer {
    background: rgba(12, 15, 22, 0.98);
    border-top: 1px solid rgba(90, 162, 255, 0.12);
    padding: 2.5rem 20px 1.5rem;
    margin-top: 3.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 1.75rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.footer-card {
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    border: 1px solid rgba(90, 162, 255, 0.12);
    border-radius: 10px;
    padding: 1.5rem 1.35rem;
    transition: all 0.3s ease;
}

.footer-card:hover {
    border-color: rgba(90, 162, 255, 0.25);
    transform: translateY(-2px);
}

.footer-card h4 {
    color: #5aa2ff;
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.footer-card p {
    color: #a8a8b0;
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
}

.footer-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-card ul li {
    margin-bottom: 0.6rem;
}

.footer-card ul li a {
    color: #c8c8d0;
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.3s ease;
}

.footer-card ul li a:hover {
    color: #5aa2ff;
}

.footer-card a {
    color: #5aa2ff;
    text-decoration: none;
}

.footer-card a:hover {
    color: #7aadff;
}

.footer-bottom {
    border-top: 1px solid rgba(90, 162, 255, 0.1);
    padding-top: 1.25rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: #6a6a75;
    font-size: 0.8rem;
    margin: 0;
}

.footer-steam-disclaimer {
    font-size: 0.72rem !important;
    margin-top: 0.35rem !important;
    opacity: 0.75;
}

/* Match Setup Notice */
.rental-notice {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 20px;
}

.notice-content {
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    border: 1px solid rgba(90, 162, 255, 0.2);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    color: #c8c8d0;
    font-size: 0.92rem;
}

.notice-content strong {
    color: #ffffff;
}

.notice-content a {
    color: #5aa2ff;
    text-decoration: none;
    font-weight: 700;
}

.notice-content a:hover {
    color: #7aadff;
    text-decoration: underline;
}

/* Match List View - Vertical with Map Images */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-list-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(90, 162, 255, 0.2);
    border-radius: 10px;
    padding: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.match-list-item:hover {
    border-color: rgba(90, 162, 255, 0.5);
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

.match-map-image {
    position: relative;
    width: 180px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.match-map-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 0.5rem;
}

.map-name {
    color: #5aa2ff;
    font-size: 0.85rem;
    font-weight: 700;
}

.match-list-content {
    flex: 1;
    min-width: 0;
}

.match-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.match-list-header .match-id {
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
}

.match-list-header .match-date {
    color: #999;
    font-size: 0.85rem;
}

.match-list-header .match-date i {
    color: #5aa2ff;
    margin-right: 0.35rem;
}

.match-list-teams {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(30, 35, 50, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-row.winner {
    background: rgba(53, 196, 106, 0.15);
    border-color: rgba(53, 196, 106, 0.3);
}

.team-row .team-name {
    color: #ccc;
    font-size: 0.95rem;
    font-weight: 600;
}

.team-row.winner .team-name {
    color: #81c784;
}

.team-row .team-score {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    min-width: 40px;
    text-align: right;
}

.team-row.winner .team-score {
    color: #66bb6a;
}

.match-list-arrow {
    color: #5aa2ff;
    font-size: 1.25rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.match-list-item:hover .match-list-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 992px) {
    .services-banner-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .match-list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .match-map-image {
        width: 100%;
        height: 120px;
    }
    
    .match-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .match-list-arrow {
        display: none;
    }
}

@media (max-width: 576px) {
    .rental-services-banner {
        padding: 2rem 0 1.5rem;
    }
    
    .service-rental-card {
        padding: 1.75rem 1.5rem;
    }
    
    .card-title {
        font-size: 1.25rem;
        padding-right: 4rem;
    }
    
    .card-price {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Login Required Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    border: 2px solid rgba(90, 162, 255, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(90, 162, 255, 0.2), rgba(66, 133, 244, 0.2));
    border: 2px solid rgba(90, 162, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #5aa2ff;
}

.modal-content h2 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.modal-content p {
    color: #b8b8c0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-modal-primary,
.btn-modal-secondary {
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-modal-primary {
    background: linear-gradient(135deg, #5aa2ff, #4285f4);
    color: #fff;
    box-shadow: 0 4px 15px rgba(90, 162, 255, 0.4);
}

.btn-modal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 162, 255, 0.6);
}

.btn-modal-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-modal-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@media (max-width: 576px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
}

/* Server Cards Grid - Fix */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .servers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .servers-grid {
        grid-template-columns: 1fr;
    }
}

/* Horizontal Match Cards - Like Reference Image */

/* Server Card Styles - Improved */
.server-card {
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    border: 1px solid rgba(90, 162, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-3px);
    border-color: rgba(90, 162, 255, 0.5);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.server-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.server-status {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.server-status.online {
    background: rgba(53, 196, 106, 0.2);
    color: #66bb6a;
    border: 1px solid rgba(53, 196, 106, 0.4);
}

.server-status.offline {
    background: rgba(255, 154, 107, 0.2);
    color: #e57373;
    border: 1px solid rgba(255, 154, 107, 0.4);
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: #a8a8b0;
    font-size: 0.85rem;
}

.info-value {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.server-type-public {
    color: #5aa2ff !important;
}

.server-type-veto {
    color: #ffa726 !important;
}

.server-type-private {
    color: #ab47bc !important;
}

.server-actions {
    display: flex;
    justify-content: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.server-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(90, 162, 255, 0.15);
    border: 1.5px solid rgba(90, 162, 255, 0.3);
    color: #5aa2ff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.server-icon-btn:hover {
    background: rgba(90, 162, 255, 0.25);
    border-color: #5aa2ff;
    transform: scale(1.1);
}

/* Horizontal Server Cards - With Map Backgrounds */
.server-horizontal-card {
    position: relative;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.server-horizontal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(90, 162, 255, 0.3);
}

.server-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.server-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85));
}

.server-horizontal-content {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.server-horizontal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.server-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.server-map-small {
    color: #aaa;
    font-size: 0.85rem;
}

.server-horizontal-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

/* ── Live match score overlay ─────────────────────────────────────────────── */
.server-live-score {
    margin: 4px 0;
    animation: scoreFadeIn 0.4s ease;
}

@keyframes scoreFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.live-score-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 50, 50, 0.4);
    border-radius: 6px;
    padding: 5px 10px;
}

.live-badge {
    font-size: 0.62rem;
    font-weight: 800;
    color: #ff4444;
    letter-spacing: 0.08em;
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid rgba(255, 68, 68, 0.4);
    border-radius: 3px;
    padding: 1px 5px;
    flex-shrink: 0;
    animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

.live-teams {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.live-team-name {
    color: #e0e0e0;
    font-size: 0.72rem;
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-team-right {
    text-align: right;
}

.live-score-digits {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.live-score-digits span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    min-width: 16px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.live-score-sep {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
}

/* Card auto-expands when score is shown */
.server-horizontal-card:has(.server-live-score[style*="display: block"]),
.server-horizontal-card:has(.server-live-score:not([style*="display: none"])) {
    height: auto;
    min-height: 140px;
}

@media (max-width: 480px) {
    .live-score-inner { padding: 4px 8px; gap: 6px; }
    .live-team-name   { font-size: 0.65rem; }
    .live-score-digits span { font-size: 0.82rem; }
    .live-badge       { font-size: 0.56rem; }
}

.server-players-badge {
    background: rgba(90, 162, 255, 0.9);
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 800;
}

.server-horizontal-action {
    display: flex;
    justify-content: flex-end;
}

.server-copy-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.server-players-badge.players-high {
    background: rgba(255, 154, 107, 0.9);
    color: #fff;
}

/* Server Skeleton Loading */
.server-skeleton-card {
    position: relative;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(
        90deg,
        rgba(25, 30, 45, 0.95) 0%,
        rgba(35, 40, 55, 0.95) 50%,
        rgba(25, 30, 45, 0.95) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
/* Add this to the END of your existing style.css file */

/* ========================================
   RENTAL SERVER SYSTEM STYLES
   Add to existing style.css
   ======================================== */

/* ========== RENTAL SERVER CARD STYLES ========== */

/* Rental server card - special styling */
.server-horizontal-card.rental-server {
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Shine effect animation */
.server-horizontal-card.rental-server::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    animation: rental-shine 3s infinite;
    z-index: 1;
}

@keyframes rental-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Gold text for rental server name */
.server-horizontal-card.rental-server .server-name,
.server-horizontal-card.rental-server .server-title {
    color: #FFD700;
    font-weight: 700;
}

/* Crown icon pulse animation */
.server-horizontal-card.rental-server .server-name i,
.server-horizontal-card.rental-server .server-title i {
    margin-right: 0.5rem;
    animation: crown-pulse 2s infinite;
}

@keyframes crown-pulse {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
    }
    50% { 
        transform: scale(1.2); 
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    }
}

/* ========== RENTAL STATUS BADGES ========== */

.rental-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

/* Upcoming status - Blue */
.rental-status-badge.status-upcoming {
    background: rgba(90, 162, 255, 0.2);
    color: #5aa2ff;
    border: 1px solid rgba(90, 162, 255, 0.4);
}

/* Active status - Green with pulse */
.rental-status-badge.status-active {
    background: rgba(53, 196, 106, 0.2);
    color: #35c46a;
    border: 1px solid rgba(53, 196, 106, 0.4);
    animation: pulse-active 2s infinite;
}

/* Ending status - Orange */
.rental-status-badge.status-ending {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.4);
}

@keyframes pulse-active {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(53, 196, 106, 0.3); 
    }
    50% { 
        box-shadow: 0 0 15px rgba(53, 196, 106, 0.6); 
    }
}

/* ========== RENTAL COUNTDOWN ========== */

.rental-countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.rental-countdown i {
    color: #FFD700;
}

/* ========== SERVER HORIZONTAL INFO ========== */

.server-horizontal-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 0.75rem 0;
}

/* ========== SERVER DETAILS BUTTON ========== */

.server-details-btn {
    padding: 0.5rem 1rem;
    background: rgba(90, 162, 255, 0.2);
    border: 1px solid rgba(90, 162, 255, 0.4);
    border-radius: 6px;
    color: #5aa2ff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.server-details-btn:hover {
    background: rgba(90, 162, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(90, 162, 255, 0.2);
}

/* ========== IMPROVED PAGINATION BUTTONS ========== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    padding: 2rem 0;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(90, 162, 255, 0.15), rgba(90, 162, 255, 0.05));
    border: 2px solid rgba(90, 162, 255, 0.4);
    border-radius: 8px;
    color: #5aa2ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(90, 162, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pagination-btn:hover::before {
    width: 300px;
    height: 300px;
}

.pagination-btn:hover {
    background: linear-gradient(135deg, rgba(90, 162, 255, 0.3), rgba(90, 162, 255, 0.1));
    border-color: rgba(90, 162, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 162, 255, 0.3);
}

.pagination-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(90, 162, 255, 0.2);
}

.pagination-info {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #b8b8c0;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========== NO SERVERS / ERROR MESSAGES ========== */

.no-servers {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.error {
    text-align: center;
    padding: 3rem;
    color: #ff9a6b;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* ========== LOADING STATE ========== */

.server-horizontal-card.rental-server .server-skeleton-card {
    border-color: rgba(255, 215, 0, 0.3);
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 768px) {
    /* Smaller badges on mobile */
    .rental-status-badge,
    .rental-countdown {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Stack footer buttons vertically */
    .server-horizontal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .server-details-btn,
    .server-copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Adjust crown animation for mobile */
    .server-horizontal-card.rental-server .server-name i,
    .server-horizontal-card.rental-server .server-title i {
        font-size: 0.9rem;
    }
    
    /* Pagination stacks vertically */
    .pagination {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pagination-btn,
    .pagination-info {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    /* Even smaller on very small screens */
    .rental-status-badge,
    .rental-countdown {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        gap: 0.3rem;
    }
    
    .server-horizontal-info {
        gap: 0.5rem;
    }
}

/* ========== ACCESSIBILITY ========== */

.server-copy-btn:focus,
.server-details-btn:focus,
.pagination-btn:focus {
    outline: 2px solid #5aa2ff;
    outline-offset: 2px;
}

/* ========== PRINT STYLES ========== */

@media print {
    .server-horizontal-card.rental-server::before {
        display: none;
    }
    
    .rental-status-badge,
    .rental-countdown {
        border: 1px solid #000;
        background: transparent !important;
        color: #000 !important;
    }
    
    .pagination {
        display: none;
    }
}

/* ==================== GLOBAL MOBILE POLISH ==================== */

/* Remove tap highlight on all interactive elements */
a, button, [role="button"], input, select, textarea {
    -webkit-tap-highlight-color: transparent;
}

/* Minimum touch target size */
button, .filter-tab, .tab, .tab-btn {
    min-height: 44px;
}

/* Thin scrollbar on mobile */
@media (max-width: 768px) {
    ::-webkit-scrollbar { width: 4px; height: 4px; }
}

/* ==================== 375px — Small phones (iPhone SE) ==================== */
@media (max-width: 375px) {
    
    .container{ padding-left: 12px; padding-right: 12px; }
    
    .brand-logo { width: 28px; height: 28px; }

    /* Hero */
    .hero-section h1 { font-size: 1.3rem; }
    .hero-section p  { font-size: 0.88rem; }
    .hero-section-home h1 { font-size: 1.2rem; }

    /* Match cards */
    .match-card { padding: 0.85rem; border-radius: 10px; }
    .match-score { font-size: 1.3rem; }
    .match-teams-display { gap: 0.6rem; }
    .team-display { font-size: 1rem; }

    /* View tabs scroll */
    .view-tabs .tab { padding: 0.5rem 0.75rem; font-size: 0.75rem; }

    /* Server cards */
    .servers-grid-home { grid-template-columns: 1fr !important; }
    .server-card-grid  { height: 110px !important; }
    .server-name-text  { font-size: 0.85rem !important; }

    /* Admin button in nav — full width */
    .admin-panel-btn { width: 100%; justify-content: center; }

    /* Pagination */
    .page-btn { padding: 0.55rem 0.9rem; font-size: 0.8rem; }

    /* Modals full width */
    .modal { padding: 0.25rem; }
    .modal-content { border-radius: 10px; }
    .modal-header  { padding: 0.75rem; }
    .modal-content form { padding: 0.75rem; }

    /* Tables — force horizontal scroll */
    .players-table, .matches-table, .teams-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .players-table table, .matches-table table {
        min-width: 480px;
    }
    .players-table th,
    .players-table td { padding: 0.4rem 0.5rem; font-size: 0.78rem; }

    /* Inputs — touch friendly */
    input[type="text"],
    input[type="email"],
    input[type="datetime-local"],
    select,
    textarea {
        font-size: 16px !important; /* prevents iOS zoom */
        min-height: 44px;
        padding: 10px 12px;
    }

    /* Section headings */
    .home-section h2, .section-title, .home-section-head h2 { font-size: 1.1rem; }
}

/* ========================================
   END OF RENTAL SERVER STYLES
   ======================================== */

/* ========================================
   SERVER STATUS REFRESH BUTTON
   ======================================== */
.server-section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.server-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
    flex-shrink: 0;
    overflow: hidden;
}

.server-refresh-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(107, 227, 155, 0.4);
}

.server-refresh-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.server-refresh-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.server-refresh-players {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
}

.server-refresh-dot {
    display: block;
    flex-shrink: 0;
}

#serverTotalPlayers {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    min-width: 16px;
    letter-spacing: 0.3px;
}

.server-refresh-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

#serverRefreshIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
    transition: color 0.2s;
}

.server-refresh-btn:hover:not(:disabled) #serverRefreshIcon {
    color: #ffffff;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.server-skeleton-card {
    position: relative;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--bg-secondary);
}

.server-skeleton-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(47, 139, 255, 0.04) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.6s ease-in-out infinite;
}

.skeleton-inner {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    justify-content: center;
}

.skeleton-title {
    height: 14px;
    width: 55%;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
}

.skeleton-map {
    height: 11px;
    width: 38%;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
}

.skeleton-players {
    height: 24px;
    width: 70px;
    border-radius: 20px;
    background: rgba(47, 139, 255, 0.06);
    margin-top: 4px;
}

@keyframes skeleton-loading {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Logo glow ──────────────────────────────────────────────────────────── */
.brand-logo {
    filter: drop-shadow(0 0 6px rgba(47, 139, 255, 0.35));
    transition: filter 0.3s ease;
}

/* ── Global toast notifications ─────────────────────────────────────────── */
#toast-root {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    pointer-events: none;
    max-width: 360px;
}
#toast-live, #toast-alert { display: contents; }
.site-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 10px 11px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--arena-cyan);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.28s, transform 0.28s;
    pointer-events: auto;
    max-width: 340px;
    word-break: break-word;
}
.site-toast-msg { flex: 1 1 auto; }
.site-toast-close {
    flex: 0 0 auto;
    width: 24px; height: 24px;
    margin: -2px 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.site-toast-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); }
.site-toast.toast-in      { opacity: 1; transform: translateX(0); }
.site-toast.toast-success { border-left-color: var(--success); }
.site-toast.toast-error   { border-left-color: var(--danger); }
.site-toast.toast-warning { border-left-color: var(--warning); }
.site-toast.toast-info    { border-left-color: var(--info); }
@media (max-width: 480px) {
    #toast-root { bottom: 16px; right: 16px; left: 16px; max-width: none; }
    .site-toast  { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .site-toast { transition: opacity 0.2s; transform: none; }
}

/* My Matches rows are <a> links now (were onclick divs). */
a.home-match-row { color: inherit; text-decoration: none; }
