.profile-container {
    width: 100%;
    min-height: calc(100vh - 4rem);
    box-sizing: border-box;
    padding: 3rem 4rem 5rem;
    color: #fff;
    background: #181a20;
}

body {
    background: #181a20;
}

.profile-header {
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.75rem;

    background: linear-gradient(
        135deg,
        #252932 0%,
        #20232b 100%
    );

    border: 1px solid #343842;
    border-radius: 16px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Discord avatar */

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;

    border: 3px solid #007bff;

    box-shadow:
        0 0 0 5px rgba(0, 123, 255, 0.12),
        0 6px 20px rgba(0, 0, 0, 0.35);

    flex-shrink: 0;
}

.profile-header-info {
    min-width: 0;
}

.profile-username {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.profile-discord-name {
    margin-top: 0.4rem;
    color: #9ca3af;
    font-size: 0.95rem;
}

.profile-player-id {
    margin-top: 0.65rem;
    display: inline-block;

    padding: 0.3rem 0.65rem;

    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.25);
    border-radius: 6px;

    color: #60a5fa;
    font-size: 0.78rem;
    font-weight: 600;
}

.profile-content {
    max-width: 1100px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    position: relative;

    padding: 1.5rem;

    background: #20232a;
    border: 1px solid #343842;
    border-radius: 12px;

    text-align: center;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: #252932;
    border-color: #007bff;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4da3ff;
    line-height: 1.2;
}

.stat-label {
    margin-top: 0.45rem;

    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.profile-records {
    background: #20232a;
    border: 1px solid #343842;
    border-radius: 12px;

    padding: 1.75rem;

    max-height: 650px;
    overflow-y: auto;
}

.profile-records::-webkit-scrollbar {
    width: 7px;
}

.profile-records::-webkit-scrollbar-track {
    background: transparent;
}

.profile-records::-webkit-scrollbar-thumb {
    background: #3b404c;
    border-radius: 10px;
}

.profile-records::-webkit-scrollbar-thumb:hover {
    background: #007bff;
}

.records-title {
    margin: 0 0 1.25rem;

    font-size: 1.35rem;
    font-weight: 700;

    color: #fff;
}

.records-list {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(210px, 1fr)
    );

    gap: 0.8rem;
}

.record-card {
    position: relative;

    min-height: 95px;
    padding: 1.15rem;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: #272a32;
    border: 1px solid #383c47;
    border-radius: 9px;

    color: #fff;

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;

    text-decoration: none;
}

.record-card:hover {
    transform: translateY(-2px);

    background: #2d313a;
    border-color: #007bff;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.2);
}

.record-level {
    font-size: 0.95rem;
    font-weight: 600;

    text-align: center;

    color: #fff;

    word-break: break-word;
}

.record-percent {
    margin-top: 0.35rem;

    font-size: 1.25rem;
    font-weight: 700;

    color: #4da3ff;
}

.record-type {
    margin-top: 0.35rem;

    font-size: 0.68rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.6px;

    color: #ffc107;
}

/* First victor */

.record-card.is-first-victor {
    border-color: rgba(255, 193, 7, 0.45);

    background:
        linear-gradient(
            135deg,
            #2a2a2d,
            #27282e
        );
}

.record-card.is-first-victor:hover {
    border-color: #ffc107;
}

/* Co-op */

.record-card.is-coop {
    border-left: 3px solid #17a2b8;
}

.coop-indicator {
    color: #17a2b8;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 6px;
}

/* Empty records */

.no-records {
    padding: 3rem 1rem;

    margin: 0;

    text-align: center;

    color: #777d89;

    font-size: 0.9rem;
}

/* =========================
   PROFILE SETTINGS
   ========================= */

.profile-settings {
    max-width: 1100px;
    margin: 0 auto 2rem;
}

.settings-form {
    padding: 1.5rem;

    background: #20232a;
    border: 1px solid #343842;
    border-radius: 12px;
}

.settings-title {
    margin: 0 0 1rem;

    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.setting-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.setting-group label {
    width: 100%;

    margin-bottom: 0.15rem;

    color: #d1d5db;
    font-size: 0.85rem;
    font-weight: 600;
}

.setting-group input {
    flex: 1;
    min-width: 200px;

    padding: 0.7rem 0.85rem;

    box-sizing: border-box;

    background: #181a20;
    border: 1px solid #3a3f4b;
    border-radius: 7px;

    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;

    transition: border-color 0.2s ease;
}

.setting-group input:focus {
    outline: none;
    border-color: #007bff;
}

.setting-group input:disabled {
    opacity: 0.55;
}

.settings-btn {
    padding: 0.7rem 1.1rem;

    background: #007bff;
    border: none;
    border-radius: 7px;

    color: #fff;

    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}

.settings-btn:hover:not(:disabled) {
    background: #0069d9;
    transform: translateY(-1px);
}

.settings-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.settings-message {
    margin: 0.8rem 0 0;

    padding: 0.65rem 0.8rem;

    border-radius: 6px;

    font-size: 0.8rem;
}

.settings-message.success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #55d477;
}

.settings-message.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
}

.settings-info {
    margin: 0.8rem 0 0;

    color: #777d89;
    font-size: 0.78rem;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {

    .profile-container {
        padding: 2rem 1.5rem 4rem;
    }

    .profile-header {
        padding: 1.5rem;
    }

    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {

    .profile-container {
        padding: 1.5rem 1rem 3rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        width: 82px;
        height: 82px;
    }

    .profile-username {
        font-size: 1.7rem;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .records-list {
        grid-template-columns: 1fr;
    }

    .profile-records {
        padding: 1.25rem;
    }

    .setting-group {
        flex-direction: column;
        align-items: stretch;
    }

    .setting-group input {
        min-width: 0;
    }
}
.record-status {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    color: #ffc107;
}

.status-approved {
    color: #28a745;
}

.status-rejected {
    color: #dc3545;
}