body {
    background: linear-gradient(135deg, #151515 0%, #262626 100%);
    color: #e8e8e8;
    min-height: 100vh;
    padding: 18px 0;
}

body > .container {
    max-width: 100%;
    padding-inline: clamp(6px, 1.4vw, 18px);
}

body > .container .card {
    width: min(100%, 1180px);
    margin: clamp(14px, 3.6vh, 34px) auto;
    border: 1px solid #3f3f3f;
    border-radius: 16px;
    overflow: hidden;
    background-color: #242424;
    color: #e8e8e8;
}

.card-header {
    border-bottom: 1px solid #3f3f3f;
}

.register-header-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #f4f4f4;
    font-weight: 700;
}

.register-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.beta-badge {
    background-color: #ffc107;
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 4px;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 5px;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
    display: inline-block;
    line-height: 1;
}

.card-body {
    padding: clamp(1rem, 2.4vw, 1.8rem);
}

.form-label {
    color: #d4d4d4;
    font-weight: 600;
}

.form-text,
small,
.text-muted {
    color: #b4b4b4 !important;
}

.form-control,
.form-select,
textarea {
    background-color: #343434;
    border: 1px solid #4a4a4a;
    color: #f1f1f1;
}

.form-control::placeholder,
textarea::placeholder {
    color: #c9c9c9;
    opacity: 0.78;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    background-color: #3a3a3a;
    color: #f8f8f8;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.password-field-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 11px;
    transform: translateY(-50%);
    color: #bdbdbd;
    cursor: pointer;
    font-size: 0.95rem;
}

.toggle-password:hover {
    color: #ffffff;
}

.interests-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.7rem;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid #3f3f3f;
    min-height: 56px;
}

.interest-chip {
    display: inline-flex;
    margin: 0;
}

.interest-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.interest-chip span {
    border: 1px solid #4b4b4b;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    background: #2f2f2f;
    color: #dfdfdf;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    user-select: none;
}

.interest-chip span:hover {
    border-color: #0d6efd;
    color: #ffffff;
}

.interest-checkbox:checked + span {
    background: rgba(13, 110, 253, 0.22);
    border-color: #0d6efd;
    color: #e9f2ff;
}

.register-avatar-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid #3f3f3f;
    background: rgba(255, 255, 255, 0.02);
}

.register-avatar-preview {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #505050;
    background-color: #2a2a2a;
}

.register-avatar-copy {
    flex: 1;
    min-width: 0;
}

.register-avatar-status {
    margin-top: 0.2rem;
    color: #bdbdbd;
    font-size: 0.92rem;
}

.register-avatar-actions {
    margin-top: 0.65rem;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.btn-success {
    font-weight: 700;
}

#message.text-success {
    color: #51cf66 !important;
}

#message.text-danger {
    color: #ff7676 !important;
}

.avatar-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.avatar-modal.show {
    display: flex;
}

.avatar-modal-content {
    width: min(100%, 760px);
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 14px;
    padding: 1rem;
    border: 1px solid #444;
    background: #242424;
    color: #f0f0f0;
}

.avatar-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.btn-close-avatar {
    border: 0;
    background: transparent;
    color: #d6d6d6;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.btn-close-avatar:hover {
    color: #ffffff;
}

.avatar-upload-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.avatar-section-title {
    margin: 0.6rem 0 0.35rem;
    font-weight: 700;
}

.avatar-crop-hint {
    color: #c4c4c4;
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
}

.avatar-crop-wrapper {
    width: 100%;
    max-height: 420px;
    background: #1b1b1b;
    border: 1px solid #3e3e3e;
    border-radius: 10px;
    overflow: hidden;
}

.avatar-crop-wrapper img {
    display: block;
    max-width: 100%;
}

.avatar-crop-preview-wrap {
    margin-top: 0.75rem;
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
}

.avatar-crop-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #4a4a4a;
    background: #1f1f1f;
}

.avatar-crop-preview canvas {
    display: block;
}

.avatar-crop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

a {
    color: #64a4ff;
}

a:hover {
    color: #7db4ff;
}

@media (max-width: 991px) {
    body > .container .card {
        width: 100%;
    }

    .register-avatar-card {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px 0;
    }

    body > .container {
        padding-inline: 4px;
    }

    .register-header-title {
        font-size: 1.1rem;
    }

    .register-brand-logo {
        width: 38px;
        height: 38px;
    }

    .register-avatar-card {
        flex-direction: column;
        text-align: center;
    }

    .register-avatar-copy {
        width: 100%;
    }

    .register-avatar-actions {
        justify-content: center;
    }
}

