.rank-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 200px;
}

.rank-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(19, 19, 22, 0.3), rgba(19, 19, 22, 0.95));
    z-index: 1;
}

#player-card-bg {
    background-size: cover;
    background-position: center;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rank-icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    object-fit: contain;
}

.info h2 {
    font-family: var(--font-header);
    font-size: 2rem;
    margin-bottom: 5px;
}

.rank-badge {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    text-transform: uppercase;
}

.stats-container {
    width: 100%;
}

.stats {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.icon-elo {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
}

.mmr-change {
    font-weight: bold;
}

.mmr-change.positive {
    color: var(--success);
}

.mmr-change.negative {
    color: var(--danger);
}

.rank-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.rank-progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 1s ease-out;
}

.match-card {
    position: relative;
    overflow: hidden;
    background-image: var(--match-bg, none);
    background-size: cover;
    background-position: center top;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(19, 19, 22, 0.2), #131316 90%);
    z-index: 1;
}

.match-card>* {
    position: relative;
    z-index: 2;
}

.match-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.map-name {
    border-radius: 2px;
    font-size: 0.9rem;
}

.match-date {
    font-size: 0.85rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.match-result {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.9rem;
}

.match-result.win {
    background: rgba(74, 222, 128, 0.2);
    color: var(--success);
}

.match-result.loss {
    background: rgba(255, 70, 85, 0.2);
    color: var(--danger);
}

.match-result.draw {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.match-stats-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.agent-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

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

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    margin-bottom: 4px;
}

.stat-value {
    font-family: var(--font-header);
    font-size: 1.8rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.chart-card {
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.chart-container {
    flex: 1;
    position: relative;
    width: 100%;
}

.config-toggle-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.toggle-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.command-item {
    margin-bottom: 20px;
}

.command-item label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.copy-box {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
}

.copy-box input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: monospace;
    color: var(--text-muted);
    padding: 10px;
}

.example-box {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--success);
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    align-items: center;
}

.example-label {
    font-weight: bold;
    color: var(--success);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.example-text {
    font-family: monospace;
    color: white;
    word-break: break-all;
}

.doc-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.doc-note {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 20px;
}

.doc-note code {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
}