.form-container {
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border-radius: 2%;
    padding: 15px;
}
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
#offensive-warning {
    transition: opacity 0.5s ease;
}
.form-row label {
    width: 40%;
    font-weight: bold;
}
input {
    background-color: #e2e2e2;
    text-align: left;
}
select {
    background-color: #e2e2e2;
}
.form-row input,
.form-row select {
    width: 55%;
    padding: 5px;
}

.form-row span {
    width: 55%;
    padding: 5px;
    background-color: #a0a0a0e1;
    border-radius: 4px;
    cursor: not-allowed;
}

.btn-container {
    text-align: center;
    margin-top: 20px;
}

.btn {
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
}

.btn.edit {
    background-color: #3dc444;
    color: #fff;
}

.btn.edit:hover {
    background-color: #0cdf17;
}

.btn-danger {
    background-color: #fc0700;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c9302c;
}

.pp {
    border-radius: 50%;
}
.canjear-badge {
    display: inline-block;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    padding: 0.5em 0.8em;
    font-size: 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.canjear-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    background: linear-gradient(90deg, #3e43b1, #7c81eb);
}
.responsive-button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.responsive-button-group form,
.responsive-button-group button {
    margin: 2px;
}

@media (max-width: 576px) {
    .responsive-button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .responsive-button-group .btn {
        width: 100%;
        text-align: center;
    }
}

/* Modern profile edit form */
.form-container {
    width: min(940px, 100%);
    max-width: 940px;
    padding: 26px;
    border: 1px solid var(--rp-border, #dfe7ef);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--rp-shadow-soft, 0 18px 46px rgba(7, 20, 36, 0.12));
    text-align: left;
}

.form-container h3 {
    margin: 0 0 18px;
    color: var(--rp-text, #14222f);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: minmax(170px, 0.38fr) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--rp-border, #dfe7ef);
    border-radius: 16px;
    background: #f8fbfd;
}

.form-row p,
.form-row label {
    width: auto;
    margin: 0;
    color: var(--rp-muted, #6b7a89);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
    text-transform: uppercase;
}

.form-row input,
.form-row select,
.form-row span {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid var(--rp-border, #dfe7ef);
    border-radius: 14px;
    background: #ffffff;
    color: var(--rp-text, #14222f);
    font-size: 15px;
    box-shadow: none;
    box-sizing: border-box;
}

.form-row span {
    display: flex;
    align-items: center;
    background: rgba(17, 163, 156, 0.08);
    cursor: default;
}

.form-row input:focus,
.form-row select:focus {
    border-color: rgba(17, 163, 156, 0.76);
    outline: none;
    box-shadow: 0 0 0 4px rgba(17, 163, 156, 0.14);
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.btn.edit,
.btn-danger,
.btn-container .btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 850;
}

.btn.edit {
    background: linear-gradient(135deg, var(--rp-primary, #11a39c), #23c5bb);
    color: #ffffff;
}

.btn.edit:hover {
    background: linear-gradient(135deg, #0f918b, #20b7ae);
}

.btn-danger {
    background: #e0525f;
}

.btn-danger:hover {
    background: #c93f4b;
}

body.dark-mode .form-container {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(20, 27, 34, 0.94);
}

body.dark-mode .form-row {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .form-row input,
body.dark-mode .form-row select,
body.dark-mode .form-row span {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(7, 20, 36, 0.72);
    color: #eef6f7;
}

@media (max-width: 700px) {
    .form-container {
        padding: 20px;
        border-radius: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
