body {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

.btn-primary, .btn-primary:hover, .btn-primary:focus {
    background-color: #7b2cbf !important;
    border-color: #9d4edd !important;
    box-shadow: none !important;
}

.btn-outline-light {
    color: #e0e0e0 !important;
    border-color: #9d4edd !important;
}
.btn-outline-light:hover {
    background-color: #9d4edd !important;
    color: #121212 !important;
}

a {
    color: #c77dff;
}
a:hover {
    color: #e0aaff;
}

.navbar {
    background-color: #1e1e1e !important;
    border-bottom: 2px solid #7b2cbf !important;
}

.card {
    background-color: #1e1e1e !important;
    border: 1px solid #3c096c !important;
    border-radius: 16px !important;
    overflow: hidden;
}

.form-control, .form-select {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border: 1px solid #5a189a !important;
}

.form-control:focus, .form-select:focus {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-color: #9d4edd !important;
    box-shadow: 0 0 0 0.25rem rgba(157, 78, 221, 0.25) !important;
}

.profile-card {
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    border-radius: 20px;
    border: 1px solid #7b2cbf;
    box-shadow: 0 8px 20px rgba(123, 44, 191, 0.2);
    overflow: hidden;
    aspect-ratio: 1 / 1.5; 
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.card-photo {
    flex: 1 1 50%; 
    position: relative;
    overflow: hidden;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #1e1e1e);
    pointer-events: none;
}

.card-info {
    flex: 1 1 50%; 
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #1e1e1e;
    color: #f8f9fa;
}

.card-info h5 {
    margin-bottom: 8px;
    color: #c77dff;
    font-weight: 600;
}

.card-info p {
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.card-info .vk-button {
    margin-top: 8px;
    background-color: #7b2cbf;
    border: none;
    color: white;
    font-weight: 500;
    border-radius: 30px;
    padding: 6px 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}
.card-info .vk-button:hover {
    background-color: #9d4edd;
    color: white;
}

.password-wrapper {
    position: relative;
}
.password-wrapper .form-control {
    padding-right: 40px;
}
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #c77dff;
    user-select: none;
    font-size: 1.2rem;
}

@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .profile-card {
        max-width: 100%;
    }
}