/**
 * ============================================================================
 * V2 PROFILE — Страница профиля пользователя
 * ============================================================================
 * 
 * @file        web/css/v2/profile.css
 * @description Стили страницы профиля пользователя
 * @version     1.0 (Декабрь 2025)
 * 
 * ============================================================================
 * СОДЕРЖИМОЕ:
 * ────────────────────────────────────────
 * 
 * 1. Hero секция профиля (.v2-profile-hero)
 * 2. Avatar и бейджи (.v2-profile-hero-avatar)
 * 3. Stats секция (.v2-profile-stats)
 * 4. Level Progress (.v2-level-progress)
 * 5. About / Описание (.v2-profile-about, .v2-profile-wishes)
 * 6. Achievements (.v2-achievements-grid, .v2-achievement)
 * 7. Exchange Timeline (.v2-exchange-timeline)
 * 8. Circle Progress (.v2-circle-progress)
 * 9. Karma List (.v2-karma-list)
 * 10. Contact List (.v2-contact-list)
 * 
 * ============================================================================
 * ИСПОЛЬЗОВАНИЕ:
 * 
 * <div class="v2-profile-page">
 *     <div class="v2-profile-hero">...</div>
 *     <div class="v2-profile-stats">...</div>
 *     ...
 * </div>
 * 
 * ============================================================================
 */

/* ==========================================================================
   1. HERO СЕКЦИЯ ПРОФИЛЯ
   ========================================================================== */

.v2-profile-hero {
    position: relative;
    background: var(--v2-bg-card);
    border-radius: var(--v2-radius-xl);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.v2-profile-hero-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.v2-profile-hero-pattern {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, var(--v2-gold-glow) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, var(--v2-purple-glow) 0%, transparent 40%);
    opacity: 0.5;
}

.v2-profile-hero-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--v2-gold-glow), transparent, var(--v2-green-glow), transparent);
    animation: v2-profile-glow 20s linear infinite;
    opacity: 0.3;
}

.v2-profile-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 40px;
}

.v2-profile-hero-main {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* ==========================================================================
   2. AVATAR И БЕЙДЖИ
   ========================================================================== */

.v2-profile-hero-avatar {
    position: relative;
    flex-shrink: 0;
}

.v2-profile-avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid var(--v2-gold);
    opacity: 0.5;
    animation: v2-ring-pulse 3s ease-in-out infinite;
}

.v2-profile-avatar-ring.complete {
    border-color: var(--v2-green);
    opacity: 0.8;
}

.v2-profile-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--v2-bg-elevated);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.v2-profile-avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 3px solid var(--v2-bg-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.v2-profile-avatar-badge.complete {
    background: var(--v2-green);
    color: white;
    font-weight: bold;
}

.v2-profile-avatar-badge.premium {
    background: linear-gradient(135deg, var(--v2-gold), #d97706);
}

.v2-profile-level-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--v2-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 2px solid var(--level-color, var(--v2-gold));
    box-shadow: 0 0 12px var(--level-color);
}

/* Info */
.v2-profile-hero-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v2-profile-hero .v2-profile-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--v2-text);
    margin: 0;
    background: linear-gradient(135deg, var(--v2-text) 0%, var(--v2-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v2-profile-level-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--v2-gold);
}

.v2-profile-hero .v2-profile-email {
    font-size: 14px;
    color: var(--v2-text-muted);
    margin-top: 4px;
}

.v2-profile-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.v2-profile-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--v2-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.v2-profile-social-link:hover {
    transform: translateY(-3px);
    background: var(--v2-gold);
    border-color: var(--v2-gold);
    box-shadow: 0 4px 16px var(--v2-gold-glow);
}

/* Actions */
.v2-profile-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   3. PROFILE STATS
   ========================================================================== */

.v2-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.v2-profile-stats .v2-stat-card.gifts {
    --stat-color: var(--v2-ice-blue);
    --stat-glow: var(--v2-ice-glow);
}

.v2-profile-stats .v2-stat-card.gifts .v2-stat-icon {
    color: var(--v2-ice-blue);
}

/* ==========================================================================
   4. LEVEL PROGRESS
   ========================================================================== */

.v2-level-progress {
    padding: 8px 0;
}

.v2-level-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.v2-level-current {
    font-size: 16px;
    font-weight: 600;
    color: var(--v2-gold);
}

.v2-level-next {
    font-size: 14px;
    color: var(--v2-text-muted);
}

.v2-level-points {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
}

/* ==========================================================================
   5. ABOUT / ОПИСАНИЕ
   ========================================================================== */

.v2-profile-about {
    font-size: 15px;
    line-height: 1.7;
    color: var(--v2-text);
    padding: 16px;
    background: var(--v2-bg-elevated);
    border-radius: var(--v2-radius-md);
    border-left: 4px solid var(--v2-gold);
}

.v2-profile-restrictions {
    margin-top: 20px;
    padding: 16px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: var(--v2-radius-md);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.v2-restrictions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--v2-red-bright);
}

.v2-profile-restrictions p {
    margin: 0;
    font-size: 14px;
    color: var(--v2-text-muted);
    line-height: 1.6;
}

/* Пожелания к подарку */
.v2-profile-wishes {
    margin-top: 20px;
    padding: 16px;
    background: rgba(245, 200, 66, 0.08);
    border-radius: var(--v2-radius-md);
    border: 1px solid rgba(245, 200, 66, 0.2);
}

.v2-wishes-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--v2-gold);
}

.v2-wishes-header strong {
    color: var(--v2-gold);
}

.v2-wishes-icon {
    font-size: 18px;
}

.v2-wishes-content {
    font-size: 14px;
    color: var(--v2-text);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* ==========================================================================
   6. ACHIEVEMENTS
   ========================================================================== */

.v2-achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v2-achievement {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--v2-bg-elevated);
    border-radius: var(--v2-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.v2-achievement.earned {
    border-color: rgba(245, 200, 66, 0.3);
    background: linear-gradient(135deg, var(--v2-bg-elevated) 0%, rgba(245, 200, 66, 0.05) 100%);
}

.v2-achievement.locked {
    opacity: 0.5;
}

.v2-achievement.earned:hover {
    transform: translateX(4px);
    border-color: var(--v2-gold);
    box-shadow: 0 4px 20px var(--v2-gold-glow);
}

.v2-achievement-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--v2-radius-md);
    background: var(--v2-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.v2-achievement.earned .v2-achievement-icon {
    background: linear-gradient(135deg, var(--v2-gold), #d97706);
    box-shadow: 0 4px 16px var(--v2-gold-glow);
}

.v2-achievement.locked .v2-achievement-icon {
    filter: grayscale(1);
}

.v2-achievement-info {
    flex: 1;
}

.v2-achievement-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--v2-text);
    margin-bottom: 4px;
}

.v2-achievement.locked .v2-achievement-title {
    color: var(--v2-text-muted);
}

.v2-achievement-desc {
    font-size: 13px;
    color: var(--v2-text-muted);
}

.v2-achievement-check,
.v2-achievement-lock {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.v2-achievement-check {
    background: var(--v2-green);
    color: white;
    font-weight: bold;
}

.v2-achievement-lock {
    background: var(--v2-bg-card);
    font-size: 16px;
}

/* ==========================================================================
   7. EXCHANGE TIMELINE
   ========================================================================== */

.v2-profile-exchanges-section {
    margin-bottom: 24px;
}

.v2-profile-exchanges-section:last-child {
    margin-bottom: 0;
}

.v2-exchange-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-timeline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--v2-bg-elevated);
    border-radius: var(--v2-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.v2-timeline-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.v2-timeline-item.active {
    border-left: 3px solid var(--v2-green);
}

.v2-timeline-item.completed {
    opacity: 0.8;
}

.v2-timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--v2-text-dim);
    flex-shrink: 0;
}

.v2-timeline-item.active .v2-timeline-dot {
    background: var(--v2-green);
    box-shadow: 0 0 8px var(--v2-green-glow);
}

.v2-timeline-content {
    flex: 1;
}

.v2-timeline-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--v2-text);
    margin-bottom: 4px;
}

.v2-timeline-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--v2-text-muted);
}

.v2-timeline-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.v2-timeline-status.registration {
    background: rgba(245, 200, 66, 0.15);
    color: var(--v2-gold);
}

.v2-timeline-status.sending {
    background: rgba(56, 189, 248, 0.15);
    color: var(--v2-ice-blue);
}

.v2-timeline-status.reviews {
    background: rgba(168, 85, 247, 0.15);
    color: var(--v2-purple);
}

/* ==========================================================================
   8. CIRCLE PROGRESS
   ========================================================================== */

.v2-profile-completeness {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.v2-circle-progress {
    position: relative;
    width: 140px;
    height: 140px;
}

.v2-circle-progress svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.v2-circle-bg {
    fill: none;
    stroke: var(--v2-bg-elevated);
    stroke-width: 8;
}

.v2-circle-fill {
    fill: none;
    stroke: var(--v2-gold);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease;
}

.v2-circle-fill.complete {
    stroke: var(--v2-green);
}

.v2-circle-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.v2-circle-percent {
    font-size: 32px;
    font-weight: 700;
    color: var(--v2-gold);
    line-height: 1;
}

.v2-circle-fill.complete + .v2-circle-value .v2-circle-percent {
    color: var(--v2-green);
}

.v2-circle-status {
    font-size: 12px;
    color: var(--v2-green);
    margin-top: 4px;
}

/* ==========================================================================
   9. KARMA LIST
   ========================================================================== */

.v2-karma-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-karma-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--v2-bg-elevated);
    border-radius: var(--v2-radius-sm);
    border-left: 3px solid var(--v2-text-dim);
}

.v2-karma-item.positive {
    border-left-color: var(--v2-green);
}

.v2-karma-item.negative {
    border-left-color: var(--v2-red);
}

.v2-karma-amount {
    font-size: 18px;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
}

.v2-karma-item.positive .v2-karma-amount {
    color: var(--v2-green);
}

.v2-karma-item.negative .v2-karma-amount {
    color: var(--v2-red);
}

.v2-karma-info {
    flex: 1;
}

.v2-karma-reason {
    font-size: 14px;
    color: var(--v2-text);
    margin-bottom: 2px;
}

.v2-karma-date {
    font-size: 12px;
    color: var(--v2-text-dim);
}

/* ==========================================================================
   10. CONTACT LIST
   ========================================================================== */

.v2-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.v2-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.v2-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--v2-radius-sm);
    background: var(--v2-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.v2-contact-info {
    flex: 1;
}

.v2-contact-label {
    font-size: 12px;
    color: var(--v2-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.v2-contact-value {
    font-size: 15px;
    color: var(--v2-text);
    word-break: break-word;
}

.v2-contact-value a {
    color: var(--v2-gold);
    text-decoration: none;
}

.v2-contact-value a:hover {
    text-decoration: underline;
}
.v2-profile-sidebar-column {
    margin-top: 20px;
}
/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
    .v2-profile-level-title{
        justify-content: center;
    }
    .v2-profile-hero-content {
        flex-direction: column;
        text-align: center;
        padding: 32px;
    }
    
    .v2-profile-hero-main {
        flex-direction: column;
    }
    
    .v2-profile-social {
        justify-content: center;
    }
    
    .v2-profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .v2-achievement{
        gap: 5px;
        padding: 5px;
    }

    .v2-profile-stats {
        grid-template-columns: 1fr;
    }
    
    .v2-profile-avatar-img {
        width: 100px;
        height: 100px;
    }
    
    .v2-profile-hero .v2-profile-name {
        font-size: 24px;
    }
}

/* ==========================================================================
   12. LIGHT THEME
   ========================================================================== */

.v2-theme-light .v2-profile-hero {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.v2-theme-light .v2-profile-hero-pattern {
    opacity: 0.3;
}

.v2-theme-light .v2-profile-hero-glow {
    opacity: 0.15;
}

.v2-theme-light .v2-profile-about {
    background: #f8fafc;
}

.v2-theme-light .v2-profile-wishes {
    background: rgba(245, 200, 66, 0.06);
}

.v2-theme-light .v2-achievement {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.06);
}

.v2-theme-light .v2-timeline-item {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.06);
}

.v2-theme-light .v2-karma-item {
    background: #f8fafc;
}

.v2-theme-light .v2-circle-bg {
    stroke: #e2e8f0;
}

/* ==========================================================================
   11. PROFILE EDIT PAGE — Страница редактирования профиля
   ========================================================================== */

.v2-profile-edit-page {
    padding: 20px 0;
}

/* Back Link */
.v2-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--v2-text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.v2-back-link:hover {
    color: var(--v2-gold);
    text-decoration: none;
}

/* Edit Header */
.v2-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    background: var(--v2-bg-card);
    border-radius: var(--v2-radius-xl);
    padding: 32px 40px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.v2-edit-header-content {
    flex: 1;
}

.v2-edit-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--v2-text);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.v2-edit-title-icon {
    font-size: 32px;
}

.v2-edit-subtitle {
    font-size: 15px;
    color: var(--v2-text-muted);
    margin: 0;
}

.v2-edit-progress {
    text-align: center;
}

.v2-edit-progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(
        var(--v2-gold) calc(var(--percent, 0) * 1%),
        var(--v2-bg-elevated) 0
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 8px;
}

.v2-edit-progress-circle::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--v2-bg-card);
}

.v2-edit-progress-circle.complete {
    background: conic-gradient(var(--v2-green) 100%, var(--v2-bg-elevated) 0);
}

.v2-edit-progress-value {
    position: relative;
    z-index: 1;
    font-size: 20px;
    font-weight: 700;
    color: var(--v2-gold);
}

.v2-edit-progress-circle.complete .v2-edit-progress-value {
    color: var(--v2-green);
}

.v2-edit-progress-label {
    font-size: 12px;
    color: var(--v2-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Avatar Section */
.v2-form-avatar-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.v2-form-avatar {
    position: relative;
    flex-shrink: 0;
}

.v2-form-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--v2-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.v2-form-avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--v2-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid var(--v2-bg-card);
}

.v2-form-avatar-upload:hover {
    transform: scale(1.1);
    background: var(--v2-gold-light);
}

.v2-form-avatar-input {
    display: none;
}

.v2-form-avatar-hint p {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--v2-text);
}

.v2-form-avatar-hint small {
    font-size: 12px;
    color: var(--v2-text-dim);
}

/* Avatar Error State */
.v2-form-avatar-img--error {
    border-color: var(--v2-red) !important;
    box-shadow: 0 0 0 3px var(--v2-red-glow), 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: v2-avatar-error-shake 0.5s ease;
}

@keyframes v2-avatar-error-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.v2-form-avatar-field {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 280px;
    z-index: 10;
}


.v2-form-avatar-field.has-error .help-block {
    display: block;
    position: relative;
    font-size: 12px;
    color: #fff;
    background: var(--v2-red);
    padding: 8px 12px;
    border-radius: var(--v2-radius-sm);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
}

/* Стрелочка на tooltip ошибки */
.v2-form-avatar-field.has-error .help-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    border: 6px solid transparent;
    border-bottom-color: var(--v2-red);
}

/* Form Styles for Profile */
.v2-profile-form .v2-form-row {
    display: flex;
    gap: 16px;
}

.v2-profile-form .v2-form-group {
    margin-bottom: 20px;
}

.v2-profile-form .v2-form-group--half {
    flex: 1;
}

.v2-profile-form .v2-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--v2-text);
    margin-bottom: 8px;
}

.v2-profile-form .v2-form-required {
    color: var(--v2-red);
}

.v2-profile-form .v2-form-hint-above {
    font-size: 13px;
    color: var(--v2-text-muted);
    margin-bottom: 8px;
}

.v2-profile-form .v2-form-input,
.v2-profile-form .v2-form-textarea,
.v2-profile-form .v2-form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--v2-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--v2-radius-md);
    color: var(--v2-text);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.v2-profile-form .v2-form-input:focus,
.v2-profile-form .v2-form-textarea:focus,
.v2-profile-form .v2-form-select:focus {
    outline: none;
    border-color: var(--v2-gold);
    box-shadow: 0 0 0 3px var(--v2-gold-glow);
}

.v2-profile-form .v2-form-input::placeholder,
.v2-profile-form .v2-form-textarea::placeholder {
    color: var(--v2-text-dim);
}

.v2-profile-form .v2-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.v2-profile-form .v2-form-textarea--warning {
    border-color: rgba(220, 38, 38, 0.3);
    background: rgba(220, 38, 38, 0.05);
}

.v2-profile-form .v2-form-textarea--warning:focus {
    border-color: var(--v2-red);
    box-shadow: 0 0 0 3px var(--v2-red-glow);
}

.v2-profile-form .v2-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.v2-profile-form .v2-form-hint {
    font-size: 12px;
    color: var(--v2-text-dim);
    margin-top: 4px;
}

.v2-profile-form .help-block {
    font-size: 12px;
    color: var(--v2-red);
    margin-top: 4px;
}

/* Form Input with Icon */
.v2-form-input-icon {
    position: relative;
}

.v2-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    z-index: 1;
}

.v2-form-input--icon {
    padding-left: 44px;
}

/* Form Section Hint */
.v2-form-section-hint {
    font-size: 14px;
    color: var(--v2-text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Santa Sees List */
.v2-santa-sees-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-santa-sees-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--v2-text);
    padding: 8px 12px;
    background: var(--v2-bg-elevated);
    border-radius: var(--v2-radius-sm);
}

.v2-santa-sees-item.muted {
    color: var(--v2-text-dim);
    background: transparent;
}

/* Form Section Grid */
.v2-form-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Section Hint Box */
.v2-section-hint {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
    background: var(--v2-bg-dark);
    border-radius: var(--v2-radius-md);
    margin-bottom: 24px;
    border-left: 4px solid var(--v2-gold);
}

.v2-section-hint-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.v2-section-hint-text {
    font-size: 14px;
    color: var(--v2-text-muted);
    line-height: 1.5;
}

.v2-section-hint-text strong {
    color: var(--v2-text);
}

/* Input Group для социальных сетей */
.v2-input-group {
    display: flex;
    align-items: stretch;
}

.v2-input-group__prepend {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    background: var(--v2-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: var(--v2-radius-md) 0 0 var(--v2-radius-md);
    flex-shrink: 0;
}

.v2-profile-social-card .v2-input-group__prepend{
    padding: 10px;
    background: var(--v2-bg-card-hover);
}

.v2-input-group__input {
    flex: 1;
    border-radius: 0 var(--v2-radius-md) var(--v2-radius-md) 0 !important;
}

.v2-input-icon-svg {
    width: 20px;
    height: 20px;
}

.v2-input-icon--vk {
    color: #0077ff;
}

.v2-input-icon--tg {
    color: #26a5e4;
}

/* City Dropdown */
.v2-city-wrapper,
.v2-city-search-wrapper {
    position: relative;
}

.v2-city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--v2-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--v2-radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-height: 280px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.v2-city-dropdown.active {
    display: block;
}

.v2-city-dropdown__item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--v2-text);
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.v2-city-dropdown__item:last-child {
    border-bottom: none;
}

.v2-city-dropdown__item:hover {
    background: var(--v2-bg-elevated);
}

.v2-city-dropdown__item--not-found {
    background: rgba(245, 200, 66, 0.05);
    color: var(--v2-gold);
    border-top: 1px solid rgba(245, 200, 66, 0.2);
}

.v2-city-dropdown__item--not-found:hover {
    background: rgba(245, 200, 66, 0.1);
}

/* Form Actions */
.v2-form-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Security Tips */
.v2-security-tips {
    margin: 8px 0 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--v2-text-muted);
}

.v2-security-tips li {
    margin-bottom: 4px;
}

/* Info Box — используем .v2-info-box из components.css */

/* Utility class */
.v2-mb-24 {
    margin-bottom: 24px;
}

/* ==========================================================================
   12. PASSWORD PAGE — Страница смены пароля
   ========================================================================== */

.v2-password-page {
    padding: 20px 0;
}

/* ==========================================================================
   13. KARMA PAGE — Страница истории кармы
   ========================================================================== */

.v2-karma-page {
    padding: 20px 0;
}

/* Karma Header */
.v2-karma-header {
    position: relative;
    background: var(--v2-bg-card);
    border-radius: var(--v2-radius-xl);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.v2-karma-header-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 50%, var(--v2-red-glow) 0%, transparent 40%),
        radial-gradient(circle at 70% 50%, var(--v2-green-glow) 0%, transparent 40%);
    opacity: 0.4;
}

.v2-karma-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 40px;
}

.v2-karma-header-main {
    flex: 1;
}

.v2-karma-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--v2-text);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.v2-karma-title-icon {
    font-size: 36px;
}

.v2-karma-subtitle {
    font-size: 16px;
    color: var(--v2-text-muted);
    margin: 0;
}

.v2-karma-current {
    text-align: center;
    padding: 24px 32px;
    background: var(--v2-bg-elevated);
    border-radius: var(--v2-radius-lg);
    border: 2px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.1);
}

.v2-karma-current-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--v2-red-bright);
    line-height: 1;
}

.v2-karma-current-label {
    font-size: 12px;
    color: var(--v2-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Karma Stats */
.v2-karma-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.v2-karma-stat-card {
    background: var(--v2-bg-card);
    border-radius: var(--v2-radius-lg);
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.v2-karma-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--v2-shadow-hover);
}

.v2-karma-stat-card.positive {
    border-color: rgba(16, 185, 129, 0.3);
}

.v2-karma-stat-card.negative {
    border-color: rgba(220, 38, 38, 0.3);
}

.v2-karma-stat-card.transactions {
    border-color: rgba(56, 189, 248, 0.3);
}

.v2-karma-stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.v2-karma-stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.v2-karma-stat-card.positive .v2-karma-stat-value {
    color: var(--v2-green);
}

.v2-karma-stat-card.negative .v2-karma-stat-value {
    color: var(--v2-red);
}

.v2-karma-stat-card.transactions .v2-karma-stat-value {
    color: var(--v2-ice-blue);
}

.v2-karma-stat-label {
    font-size: 13px;
    color: var(--v2-text-muted);
}

/* Karma Info Grid */
.v2-karma-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.v2-karma-info-item {
    padding: 20px;
    border-radius: var(--v2-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.v2-karma-info-item.positive {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.v2-karma-info-item.negative {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.2);
}

.v2-karma-info-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.v2-karma-info-content strong {
    display: block;
    font-size: 15px;
    color: var(--v2-text);
    margin-bottom: 12px;
}

.v2-karma-info-item.positive strong {
    color: var(--v2-green);
}

.v2-karma-info-item.negative strong {
    color: var(--v2-red);
}

.v2-karma-info-content ul {
    margin: 0;
    padding-left: 20px;
}

.v2-karma-info-content li {
    font-size: 14px;
    color: var(--v2-text-muted);
    margin-bottom: 6px;
    line-height: 1.4;
}

.v2-karma-info-content li:last-child {
    margin-bottom: 0;
}

/* Karma History */
.v2-karma-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-karma-history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--v2-bg-elevated);
    border-radius: var(--v2-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.v2-karma-history-item:hover {
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.v2-karma-history-indicator {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    background: var(--v2-text-dim);
    flex-shrink: 0;
}

.v2-karma-history-item.positive .v2-karma-history-indicator {
    background: var(--v2-green);
    box-shadow: 0 0 8px var(--v2-green-glow);
}

.v2-karma-history-item.negative .v2-karma-history-indicator {
    background: var(--v2-red);
    box-shadow: 0 0 8px var(--v2-red-glow);
}

.v2-karma-history-amount {
    font-size: 24px;
    font-weight: 700;
    min-width: 70px;
    text-align: center;
}

.v2-karma-history-item.positive .v2-karma-history-amount {
    color: var(--v2-green);
}

.v2-karma-history-item.negative .v2-karma-history-amount {
    color: var(--v2-red);
}

.v2-karma-history-info {
    flex: 1;
}

.v2-karma-history-reason {
    font-size: 15px;
    color: var(--v2-text);
    margin-bottom: 4px;
}

.v2-karma-history-date {
    font-size: 13px;
    color: var(--v2-text-dim);
}

/* Character message small variant */
.v2-character-message.small {
    padding: 16px;
}

.v2-character-message.small .v2-character-avatar {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

/* ==========================================================================
   KARMA PAGE — Light Theme
   ========================================================================== */

.v2-theme-light .v2-karma-header {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.v2-theme-light .v2-karma-current {
    background: rgba(0, 0, 0, 0.02);
}

.v2-theme-light .v2-karma-stat-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.v2-theme-light .v2-karma-info-item.positive {
    background: rgba(16, 185, 129, 0.06);
}

.v2-theme-light .v2-karma-info-item.negative {
    background: rgba(220, 38, 38, 0.06);
}

.v2-theme-light .v2-karma-history-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   KARMA PAGE — Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .v2-karma-header-content {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .v2-karma-title {
        flex-wrap: wrap;
        font-size: 24px;
        justify-content: center;
    }
    
    .v2-karma-stats {
        grid-template-columns: 1fr;
    }
    
    .v2-karma-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .v2-karma-current-value {
        font-size: 25px;
    }
    
    .v2-karma-history-amount {
        min-width: auto;
    }
}

/* ==========================================================================
   PROFILE EDIT — Light Theme
   ========================================================================== */

.v2-theme-light .v2-edit-header {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.v2-theme-light .v2-edit-progress-circle::before {
    background: #ffffff;
}

.v2-theme-light .v2-form-avatar-section {
    border-color: rgba(0, 0, 0, 0.08);
}

.v2-theme-light .v2-form-avatar-upload {
    border-color: #ffffff;
}

.v2-theme-light .v2-profile-form .v2-form-input,
.v2-theme-light .v2-profile-form .v2-form-textarea,
.v2-theme-light .v2-profile-form .v2-form-select {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.12);
}

.v2-theme-light .v2-santa-sees-item {
    background: #f8fafc;
}

.v2-theme-light .v2-section-hint {
    background: rgba(0, 0, 0, 0.02);
}

.v2-theme-light .v2-input-group__prepend {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

.v2-theme-light .v2-city-dropdown {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.v2-theme-light .v2-city-dropdown__item {
    border-color: rgba(0, 0, 0, 0.06);
}

.v2-theme-light .v2-city-dropdown__item:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* Light theme для .v2-info-box в components.css */

/* ==========================================================================
   PROFILE EDIT — Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .v2-form-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .v2-edit-header {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }
    
    .v2-edit-progress {
        align-self: center;
    }
    
    .v2-form-avatar-section {
        flex-direction: column;
        text-align: center;
    }
    
    .v2-profile-form .v2-form-row {
        flex-direction: column;
    }
}

