/* =========================================
   PLAYGROUND SPA STYLES
   ========================================= */
.pg-view {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.pg-view.active {
    display: block;
}

/* Lobby split buttons */
.lobby-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.btn-huge {
    padding: 25px;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
}

.btn-huge i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.btn-huge:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-huge.primary {
    border-color: rgba(139, 124, 255, 0.4);
    box-shadow: 0 8px 25px rgba(139, 124, 255, 0.2);
}

.btn-huge.primary i {
    color: var(--accent-orange);
}

.btn-huge.primary:hover {
    box-shadow: 0 12px 35px rgba(139, 124, 255, 0.35);
    border-color: var(--accent-orange);
}

/* Match Details VS Layout */
.match-vs-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    padding: 30px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-head-to-head {
    text-align: center;
    flex: 1;
}

.player-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-card), #000);
    border: 3px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.player-avatar-large.ready {
    border-color: #00C851;
    box-shadow: 0 0 20px rgba(0, 200, 81, 0.4);
}

.player-avatar-large.waiting {
    border-color: rgba(255, 255, 255, 0.2);
    opacity: 0.5;
}

.player-name-large {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}

.vs-badge {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-muted);
    font-style: italic;
}

/* Duo Match VS Layout (Team A vs Team B) */
.duo-vs-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin: 25px 0;
    padding: 24px 18px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 640px) {
    .duo-vs-layout {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px 12px;
    }
}
.duo-team-panel {
    background: rgba(14, 18, 26, 0.85);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.duo-team-panel.team-a {
    border-color: rgba(0, 229, 255, 0.35);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.08) 0%, rgba(14, 18, 26, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.08);
}
.duo-team-panel.team-b {
    border-color: rgba(255, 64, 129, 0.35);
    background: linear-gradient(180deg, rgba(255, 64, 129, 0.08) 0%, rgba(14, 18, 26, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(255, 64, 129, 0.08);
}
.duo-team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}
.duo-team-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.duo-team-title.team-a { color: #00e5ff; }
.duo-team-title.team-b { color: #ff4081; }
.duo-players-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.duo-player-card {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.duo-player-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 1.4rem;
}
.duo-player-avatar.ready {
    border-color: #00C851;
    box-shadow: 0 0 12px rgba(0, 200, 81, 0.4);
}
.duo-player-avatar.waiting {
    border-color: rgba(255, 255, 255, 0.15);
    opacity: 0.6;
}
.duo-player-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}
.duo-player-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.badge-duo {
    background: rgba(0, 229, 255, 0.15);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.35);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.badge-pending {
    background: rgba(249, 109, 0, 0.2);
    color: var(--accent-orange);
    border: 1px solid rgba(249, 109, 0, 0.4);
}

.badge-accepted {
    background: rgba(0, 210, 255, 0.2);
    color: var(--accent-blue);
    border: 1px solid rgba(0, 210, 255, 0.4);
}

.badge-awaiting {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.badge-completed {
    background: rgba(0, 200, 81, 0.2);
    color: #00C851;
    border: 1px solid rgba(0, 200, 81, 0.4);
}

.badge-disputed {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.4);
}

/* Result Submission Upload Box */
.result-upload-box {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.result-upload-box:hover {
    border-color: var(--accent-orange);
    background: rgba(249, 109, 0, 0.05);
}

.upload-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
    object-fit: contain;
}

/* Details Cards */
.match-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.details-card {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.details-card h4 {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.room-details-card {
    background: rgba(249, 109, 0, 0.05);
    border: 1px solid rgba(249, 109, 0, 0.3);
}

.room-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.room-info-row strong {
    color: #fff;
    font-family: var(--font-heading);
}

/* Input Fields for Forms (SPA) */
.pg-form-group {
    margin-bottom: 20px;
}

.pg-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.pg-input,
.pg-select,
.pg-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.3s;
}

.pg-input:focus,
.pg-select:focus,
.pg-textarea:focus {
    border-color: var(--accent-orange);
    outline: none;
    box-shadow: 0 0 10px rgba(249, 109, 0, 0.2);
}

/* Match Filter Tabs */
.match-filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    overflow-x: auto;
}

.filter-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
    white-space: nowrap;
}

.filter-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.filter-tab.active {
    color: var(--accent-orange);
    background: rgba(249, 109, 0, 0.1);
}

/* Match Feed Search */
.match-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pg-search-bar {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.pg-search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.pg-search-bar input {
    padding-left: 45px;
}

@media (max-width: 768px) {
    .match-vs-layout {
        flex-direction: column;
        gap: 20px;
    }

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

    .match-details-grid {
        grid-template-columns: 1fr;
    }

    .match-feed-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .pg-search-bar {
        max-width: 100%;
    }
}

/* Ensure the main background is transparent so the image is visible */
.dashboard-main {
    background: transparent !important;
}

.dashboard-layout {
    position: relative;
    z-index: 1;
}

.dashboard-layout::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/cta-bg.png') center/cover no-repeat;
    filter: blur(10px);
    z-index: -1;
    opacity: 0.4;
}

/* =========================================
   MATCH RESULT SETTLEMENT & CHAT STYLES
   ========================================= */

/* Winner Selector Cards */
.winner-selector-group {
    margin-bottom: 20px;
}
.winner-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}
.winner-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}
.winner-card:hover {
    border-color: rgba(139, 124, 255, 0.5);
    background: rgba(139, 124, 255, 0.05);
}
.winner-card.selected {
    border-color: var(--accent-orange);
    background: rgba(139, 124, 255, 0.15);
    box-shadow: 0 0 15px rgba(139, 124, 255, 0.3);
}
.winner-card .winner-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}
.winner-card.selected .winner-avatar {
    border-color: var(--accent-orange);
}
.winner-card .winner-crown {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--accent-gold);
    font-size: 1.1rem;
    display: none;
}
.winner-card.selected .winner-crown {
    display: block;
}

/* Score entry */
.score-entry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
.score-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Evidence upload */
.evidence-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.3);
}
.evidence-dropzone:hover {
    border-color: var(--accent-orange);
    background: rgba(249, 109, 0, 0.05);
}
.evidence-preview-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}
.evidence-thumb-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
}

/* Match Chat styling */
.match-chat-wrapper {
    background: rgba(14, 18, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 25px;
}
.match-chat-header {
    background: rgba(20, 25, 35, 0.9);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.match-chat-body {
    padding: 15px;
}
.match-chat-messages {
    max-height: 280px;
    min-height: 140px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 5px;
    margin-bottom: 12px;
}
.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}
.chat-msg.mine {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(249, 109, 0, 0.25), rgba(249, 109, 0, 0.15));
    border: 1px solid rgba(249, 109, 0, 0.35);
    color: #fff;
    border-bottom-right-radius: 2px;
}
.chat-msg.theirs {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-bottom-left-radius: 2px;
}
/* Duo Chat Team Distinctions: Team A (Cyan) and Team B (Pink) */
.chat-msg.team-a {
    align-self: flex-start;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-left: 3px solid #00e5ff;
    color: #e0f7fa;
    border-bottom-left-radius: 2px;
}
.chat-msg.team-a.mine {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(0, 229, 255, 0.1));
    border: 1px solid rgba(0, 229, 255, 0.5);
    border-right: 3px solid #00e5ff;
    border-left: 1px solid rgba(0, 229, 255, 0.5);
    border-bottom-right-radius: 2px;
}
.chat-msg.team-b {
    align-self: flex-start;
    background: rgba(255, 64, 129, 0.08);
    border: 1px solid rgba(255, 64, 129, 0.3);
    border-left: 3px solid #ff4081;
    color: #fce4ec;
    border-bottom-left-radius: 2px;
}
.chat-msg.team-b.mine {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(255, 64, 129, 0.22), rgba(255, 64, 129, 0.1));
    border: 1px solid rgba(255, 64, 129, 0.5);
    border-right: 3px solid #ff4081;
    border-left: 1px solid rgba(255, 64, 129, 0.5);
    border-bottom-right-radius: 2px;
}
.chat-team-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 4px;
}
.chat-team-badge.team-a {
    background: rgba(0, 229, 255, 0.15);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.4);
}
.chat-team-badge.team-b {
    background: rgba(255, 64, 129, 0.15);
    color: #ff4081;
    border: 1px solid rgba(255, 64, 129, 0.4);
}
.chat-sender-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.chat-sender-avatar.team-a {
    border-color: #00e5ff;
}
.chat-sender-avatar.team-b {
    border-color: #ff4081;
}
.chat-msg.system {
    align-self: center;
    max-width: 95%;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.25);
    color: #9fe9ff;
    font-size: 0.8rem;
    text-align: center;
    border-radius: 8px;
    padding: 6px 12px;
}
.chat-msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.chat-input-row {
    display: flex;
    gap: 10px;
}
.chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00C851;
    display: inline-block;
}
.chat-status-dot.offline {
    background: #888;
}
.chat-header-avatar-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(0, 210, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.chat-header-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-match-id-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-orange);
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.chat-settled-banner {
    background: rgba(255, 187, 51, 0.12);
    border: 1px solid rgba(255, 187, 51, 0.4);
    color: #ffbb33;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 15px;
    color: var(--text-muted);
    text-align: center;
    gap: 6px;
}
.chat-empty-state i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 4px;
}
.chat-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 14px;
    background: rgba(255, 68, 68, 0.08);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    text-align: center;
    gap: 10px;
    font-size: 0.85rem;
}

/* Modal overlays & dialogs */
.pg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}
.pg-modal-card {
    background: #14171f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    position: relative;
}
.pg-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.pg-modal-close:hover {
    color: #fff;
    background: rgba(255, 68, 68, 0.4);
}

/* =========================================================================
   REFINED SETTLEMENT CARD & RESULT DISPLAY (BLACK & VIOLET THEME)
   ========================================================================= */
.settlement-card {
    background: rgba(14, 15, 24, 0.96);
    border: 1px solid rgba(139, 124, 255, 0.25);
    border-radius: 18px;
    padding: 24px 20px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Outcome Banners */
.settlement-banner {
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}
.settlement-banner.is-victory {
    background: linear-gradient(135deg, rgba(139, 124, 255, 0.16) 0%, rgba(0, 200, 81, 0.12) 100%);
    border: 1px solid rgba(0, 200, 81, 0.45);
    box-shadow: 0 4px 20px rgba(0, 200, 81, 0.12);
}
.settlement-banner.is-defeat {
    background: linear-gradient(135deg, rgba(20, 21, 33, 0.95) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.settlement-banner.is-disputed {
    background: linear-gradient(135deg, rgba(20, 21, 33, 0.95) 0%, rgba(245, 158, 11, 0.12) 100%);
    border: 1px solid rgba(245, 158, 11, 0.45);
}
.settlement-banner.is-cancelled {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.settlement-banner h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.settlement-banner p {
    margin: 6px 0 0;
    font-size: 0.92rem;
    line-height: 1.4;
}

/* Head-to-Head Compact Participant Display */
.settlement-h2h-compact {
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.settlement-h2h-player {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.settlement-avatar-compact {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(139, 124, 255, 0.35);
    background: rgba(20, 21, 33, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}
.settlement-avatar-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.settlement-avatar-compact.is-winner {
    border-color: #ffd700;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
}
.settlement-avatar-compact.is-me {
    border-color: #8B7CFF;
}

.h2h-winner-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.35);
    margin-bottom: 5px;
    text-transform: uppercase;
}
.h2h-player-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
.h2h-player-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.h2h-score-display {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    margin-top: 6px;
    line-height: 1;
}

.settlement-h2h-vs {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-muted);
    padding: 0 6px;
    flex-shrink: 0;
}

/* Duo Head-to-Head Styles */
.settlement-duo-team-box {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.settlement-duo-team-box.is-winner {
    border-color: rgba(0, 200, 81, 0.35);
    background: rgba(0, 200, 81, 0.04);
}
.settlement-duo-roster {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* Match Evidence Card in Settlement */
.settlement-evidence-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 124, 255, 0.25);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.settlement-evidence-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(14, 15, 24, 0.6);
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.settlement-evidence-thumb {
    width: 65px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(139, 124, 255, 0.35);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.settlement-evidence-thumb:hover {
    transform: scale(1.05);
}

/* Financial Settlement Grid */
.settlement-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.settlement-stat-box {
    background: rgba(0, 0, 0, 0.35);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}
.settlement-stat-box.is-highlight {
    border-color: rgba(139, 124, 255, 0.4);
    background: rgba(139, 124, 255, 0.06);
}
.settlement-stat-box.is-credited {
    border-color: rgba(0, 200, 81, 0.4);
    background: rgba(0, 200, 81, 0.06);
}
.settlement-stat-box .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.settlement-stat-box .stat-val {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin: 4px 0 2px;
}
.settlement-stat-box .stat-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Transaction & Audit Info */
.settlement-tx-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.settlement-audit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.83rem;
    color: var(--text-muted);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.settlement-audit-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.settlement-audit-row strong {
    color: #fff;
    font-weight: 600;
}

/* Action Bar */
.settlement-action-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 640px) {
    .settlement-card {
        padding: 20px 14px;
        margin: 10px auto;
    }
    .settlement-banner h2 {
        font-size: 1.35rem;
    }
    .settlement-h2h-compact {
        padding: 12px 8px;
    }
    .h2h-player-name {
        max-width: 105px;
        font-size: 0.88rem;
    }
    .settlement-avatar-compact {
        width: 52px;
        height: 52px;
    }
    .h2h-score-display {
        font-size: 1.6rem;
    }
    .settlement-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .settlement-evidence-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .settlement-evidence-thumb {
        width: 100%;
        height: 120px;
    }
}

.countdown-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 109, 0, 0.12);
    border: 1px solid rgba(249, 109, 0, 0.3);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: bold;
    color: var(--accent-orange);
}
.countdown-box.expired {
    background: rgba(255, 68, 68, 0.12);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

/* =========================================
   MATCH & CHALLENGE CREATION WIZARD (SECTION 8)
   ========================================= */
.create-step-tracker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.step-track-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    user-select: none;
}
.step-track-item.active {
    color: var(--accent-orange);
    font-weight: 700;
}
.step-track-item.completed {
    color: #00C851;
}
.step-track-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.step-track-item.active .step-track-num {
    background: var(--accent-orange);
    color: #000;
    border-color: var(--accent-orange);
}
.step-track-item.completed .step-track-num {
    background: rgba(0, 200, 81, 0.2);
    color: #00C851;
    border-color: #00C851;
}
.step-track-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 10px;
    transition: background 0.3s ease;
}
.step-track-line.active {
    background: var(--accent-orange);
}
.option-grid {
    display: grid;
    gap: 10px;
}
.option-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.option-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 600px) {
    .option-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .create-step-tracker {
        padding: 10px;
    }
    .step-track-label {
        display: none;
    }
}
.option-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    user-select: none;
}
.option-card:hover:not(.disabled) {
    border-color: rgba(139, 124, 255, 0.45);
    background: rgba(139, 124, 255, 0.06);
    transform: translateY(-1px);
}
.option-card.selected {
    border-color: var(--accent-orange);
    background: rgba(139, 124, 255, 0.15);
    box-shadow: 0 0 14px rgba(139, 124, 255, 0.25);
}
.option-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-style: dashed;
    filter: grayscale(0.5);
}
.option-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.option-card.selected .option-card-title {
    color: var(--accent-orange);
}
.option-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}
.option-card .opt-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}
.option-card .opt-badge.maintenance {
    background: rgba(255, 68, 68, 0.22);
    color: #ff6b6b;
    border: 1px solid rgba(255, 68, 68, 0.45);
}
.option-card .opt-badge.unavailable {
    background: rgba(255, 170, 0, 0.22);
    color: #ffbb33;
    border: 1px solid rgba(255, 170, 0, 0.45);
}
.option-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 6px;
    right: 8px;
    color: var(--accent-orange);
    font-size: 0.8rem;
}
.stake-control-group {
    display: flex;
    gap: 8px;
    align-items: center;
}
.stake-adj-btn {
    padding: 10px 18px;
    font-weight: bold;
    font-size: 1rem;
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.stake-adj-btn:hover {
    background: rgba(249, 109, 0, 0.2);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}
.stake-amount-input {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-gold);
    letter-spacing: 1px;
}
.stake-preset-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.preset-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cfd6e6;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.preset-chip:hover {
    border-color: rgba(249, 109, 0, 0.4);
    color: #fff;
}
.preset-chip.active {
    background: rgba(249, 109, 0, 0.2);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    font-weight: 700;
}
.create-validation-banner {
    background: rgba(255, 68, 68, 0.12);
    border: 1px solid #ff4444;
    color: #ff6b6b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}
.create-review-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}
.review-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.review-row-label {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.review-row-val {
    color: #fff;
    font-weight: 600;
    text-align: right;
}

/* Duo Strategy Chat & Chat Tabs (Task 6) */
.chat-tabs-bar {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(10, 14, 22, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px 10px 0 0;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.chat-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    user-select: none;
}
.chat-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.chat-tab-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}
.chat-tab-btn.active#tab-chat-duo {
    color: #00e5ff;
    background: rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}
.chat-tab-badge {
    background: #00e5ff;
    color: #0b0e14;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 3px;
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
}
.chat-tab-btn.disabled,
.chat-tab-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.chat-teammate-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
    background: rgba(0, 229, 255, 0.18);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.45);
}
.chat-teammate-badge.team-b {
    background: rgba(255, 64, 129, 0.18);
    color: #ff4081;
    border: 1px solid rgba(255, 64, 129, 0.45);
}

/* ========================================================================= */
/* --- PLAYGROUND ESPORTS MOBILE RESPONSIVENESS OVERRIDES ---                 */
/* ========================================================================= */
@media (max-width: 768px) {
    .match-feed-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .pg-search-bar {
        max-width: 100% !important;
        width: 100% !important;
    }

    .playground-hero-title {
        font-family: 'Black Ops One', sans-serif;
        font-size: clamp(1.75rem, 5.5vw, 3rem) !important;
        text-transform: uppercase;
        margin: 0 !important;
        line-height: 1.15;
        letter-spacing: 0.5px;
    }

    .lobby-filters {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .filter-btn,
    .filter-tab {
        flex: 1 1 auto !important;
        min-height: 38px !important;
        font-size: 0.82rem !important;
        padding: 6px 12px !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .match-vs-layout {
        flex-direction: column !important;
        padding: 16px 12px !important;
        gap: 16px !important;
    }

    .match-card {
        padding: 14px 12px !important;
    }

    .match-card-actions {
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .match-card-actions .btn {
        width: 100% !important;
    }
}


/* ==========================================================================
   ENHANCED MATCH STATUS & STAT BADGE STYLES
   ========================================================================== */
.match-player-stat-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.match-player-stat-row .player-stat-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.74rem;
    font-family: var(--font-mono, monospace);
    color: var(--text-muted);
}

.player-avatar-large {
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.player-avatar-large:hover {
    transform: scale(1.05);
}

.player-name-large a {
    color: #fff;
    transition: color 0.2s;
}

.player-name-large a:hover {
    color: var(--accent-orange);
}

.duo-player-avatar {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.duo-player-avatar:hover {
    transform: scale(1.06);
}
