/* =============================================== */
/* MODERN PROFILE PAGE - WOW DESIGN */
/* =============================================== */

/* Animated Background */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.5); }
    50% { box-shadow: 0 0 40px rgba(102, 126, 234, 0.8); }
}

/* Profile Page Container */
.profile-page {
    min-height: 100vh;
    padding: 40px 20px;
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1a1a2e);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

/* Animated Particles */
.profile-page::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

/* Profile Header - Ultra Modern */
.profile-header {
    position: relative;
    margin: -40px -20px 60px;
    padding: 60px 40px 80px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 30px 30px;
}

/* Animated Mesh Gradient Background */
.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(168, 85, 247, 0.3) 0%, transparent 50%);
    animation: meshRotate 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes meshRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

/* Geometric Shapes Overlay */
.profile-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(30deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05)),
        linear-gradient(150deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05)),
        linear-gradient(30deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05)),
        linear-gradient(150deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    opacity: 0.5;
    z-index: 0;
}

.profile-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Avatar with Hexagon Frame */
.profile-avatar-wrapper {
    position: relative;
    perspective: 1000px;
}

.profile-avatar-frame {
    position: relative;
    width: 160px;
    height: 160px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-avatar-wrapper:hover .profile-avatar-frame {
    transform: rotateY(10deg) rotateX(10deg) scale(1.05);
}

/* Hexagon Container */
.avatar-frame-svg {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 180px;
    height: 180px;
    animation: hexagonPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(167, 139, 250, 0.8));
}

@keyframes hexagonPulse {
    0%, 100% { 
        transform: rotate(0deg) scale(1); 
        filter: drop-shadow(0 0 30px rgba(167, 139, 250, 0.8));
    }
    50% { 
        transform: rotate(180deg) scale(1.05); 
        filter: drop-shadow(0 0 50px rgba(236, 72, 153, 0.8));
    }
}

.profile-avatar-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 6px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 0 3px rgba(167, 139, 250, 0.3),
        0 0 0 6px rgba(236, 72, 153, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.profile-avatar-img::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(167, 139, 250, 0.3) 90deg,
        transparent 180deg,
        rgba(236, 72, 153, 0.3) 270deg,
        transparent 360deg
    );
    animation: avatarShine 4s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes avatarShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-avatar-img:hover {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Динамические обводки по статусу */
.profile-avatar-img.status-bronze { 
    border-color: #cd7f32; 
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.8), 0 10px 40px rgba(0, 0, 0, 0.5);
}
.profile-avatar-img.status-silver { 
    border-color: #c0c0c0; 
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.8), 0 10px 40px rgba(0, 0, 0, 0.5);
}
.profile-avatar-img.status-gold { 
    border-color: #ffd700; 
    box-shadow: 0 0 40px rgba(255, 215, 0, 1), 0 10px 40px rgba(0, 0, 0, 0.5);
}
.profile-avatar-img.status-platinum { 
    border-color: #e5e4e2; 
    box-shadow: 0 0 40px rgba(229, 228, 226, 0.9), 0 10px 40px rgba(0, 0, 0, 0.5);
}
.profile-avatar-img.status-diamond { 
    border-color: #4dd0e1; 
    box-shadow: 0 0 50px rgba(77, 208, 225, 1), 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: diamondBorderPulse 2s ease-in-out infinite;
}
.profile-avatar-img.status-legend { 
    border-color: #ff0080; 
    box-shadow: 0 0 60px rgba(255, 0, 128, 1), 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: legendBorderPulse 1.5s ease-in-out infinite;
}

@keyframes diamondBorderPulse {
    0%, 100% { 
        border-color: #4dd0e1; 
        box-shadow: 0 0 50px rgba(77, 208, 225, 1), 0 10px 40px rgba(0, 0, 0, 0.5);
    }
    50% { 
        border-color: #b9f2ff; 
        box-shadow: 0 0 70px rgba(185, 242, 255, 1), 0 10px 40px rgba(0, 0, 0, 0.5);
    }
}

@keyframes legendBorderPulse {
    0%, 100% { 
        border-color: #ff0080; 
        box-shadow: 0 0 60px rgba(255, 0, 128, 1), 0 10px 40px rgba(0, 0, 0, 0.5);
    }
    33% { 
        border-color: #ff8c00; 
        box-shadow: 0 0 70px rgba(255, 140, 0, 1), 0 10px 40px rgba(0, 0, 0, 0.5);
    }
    66% { 
        border-color: #40e0d0; 
        box-shadow: 0 0 70px rgba(64, 224, 208, 1), 0 10px 40px rgba(0, 0, 0, 0.5);
    }
}

/* Username with Futuristic Style */
.profile-username {
    font-size: 64px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: none !important;
    filter: none !important;
    letter-spacing: -2px;
    position: relative;
    display: inline-block;
}

.profile-username::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #a78bfa, #ec4899, #3b82f6, #a78bfa);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes textGlow {
    0%, 100% { 
        background-position: 0% 50%; 
        opacity: 0.5;
    }
    50% { 
        background-position: 100% 50%; 
        opacity: 1;
    }
}

/* Переливающиеся никнеймы по статусам */
.profile-username.status-bronze {
    background: linear-gradient(90deg, #cd7f32, #b8732e, #cd7f32);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.profile-username.status-silver {
    background: linear-gradient(90deg, #c0c0c0, #e8e8e8, #c0c0c0);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.profile-username.status-gold {
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2.5s ease-in-out infinite;
    filter: none !important;
}

.profile-username.status-platinum {
    background: linear-gradient(90deg, #e5e4e2, #ffffff, #e5e4e2);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2.5s ease-in-out infinite;
    filter: none !important;
}

.profile-username.status-diamond {
    background: linear-gradient(90deg, #b9f2ff, #4dd0e1, #00bcd4, #4dd0e1, #b9f2ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s ease-in-out infinite;
    filter: none !important;
}

.profile-username.status-legend {
    background: linear-gradient(90deg, #ff0080, #ff8c00, #ffd700, #40e0d0, #667eea, #ff0080);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: legendShimmer 3s ease-in-out infinite;
    filter: none !important;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes legendShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Status Badge - Cyberpunk Style */
.profile-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(236, 72, 153, 0.2));
    backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 2px solid;
    border-image: linear-gradient(90deg, #a78bfa, #ec4899, #3b82f6) 1;
    border-image-slice: 1;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    box-shadow: 
        0 0 20px rgba(167, 139, 250, 0.5),
        0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.profile-status-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.profile-status-badge:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 0 40px rgba(167, 139, 250, 0.8),
        0 12px 48px rgba(0, 0, 0, 0.6);
}

.status-icon {
    width: 28px;
    height: 28px;
    color: #fbbf24;
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 1));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Balance Actions in Header - Ultra Modern */
.profile-balance-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.profile-balance-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(167, 139, 250, 0.1),
        transparent
    );
    animation: balanceSweep 3s ease-in-out infinite;
}

@keyframes balanceSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Balance Display */
.balance-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border-radius: 50px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 
        0 0 20px rgba(16, 185, 129, 0.3),
        inset 0 0 20px rgba(16, 185, 129, 0.1);
    position: relative;
    z-index: 1;
}

.balance-icon {
    width: 24px;
    height: 24px;
    color: #10b981;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.8));
    animation: balanceIconSpin 10s linear infinite;
}

@keyframes balanceIconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.balance-amount {
    font-size: 24px;
    font-weight: 800;
    color: #10b981;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
    letter-spacing: 1px;
}

/* Balance Buttons - Neon Style */
.balance-buttons {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.btn-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-balance svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-balance:hover svg {
    transform: scale(1.2) rotate(90deg);
}

/* Deposit Button - Green Neon */
.btn-deposit {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 
        0 0 20px rgba(16, 185, 129, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-deposit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-deposit:hover::before {
    left: 100%;
}

.btn-deposit:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 0 40px rgba(16, 185, 129, 0.8),
        0 12px 32px rgba(0, 0, 0, 0.4);
}

.btn-deposit:active {
    transform: translateY(-2px) scale(1.02);
}

/* Withdraw Button - Purple Neon */
.btn-withdraw {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #fff;
    box-shadow: 
        0 0 20px rgba(167, 139, 250, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-withdraw::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-withdraw:hover::before {
    left: 100%;
}

.btn-withdraw:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 0 40px rgba(167, 139, 250, 0.8),
        0 12px 32px rgba(0, 0, 0, 0.4);
}

.btn-withdraw:active {
    transform: translateY(-2px) scale(1.02);
}

/* Ripple Effect on Click */
.btn-balance::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}

.btn-balance:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: 0s;
}

/* Profile Stats Row - 3D Cards */
.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    perspective: 1000px;
}

.profile-stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.profile-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.profile-stat-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

.profile-stat-card:hover::before {
    opacity: 1;
}

.stat-card-icon {
    width: 70px;
    height: 70px;
    padding: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.profile-stat-card:hover .stat-card-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
}

.stat-card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-card-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Profile Content Grid */
.profile-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 40px;
}

/* Privacy Settings занимает всю ширину */
.privacy-settings-full-width {
    grid-column: 1 / -1;
}

.profile-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.profile-section:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.2);
}

.profile-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.section-icon {
    width: 32px;
    height: 32px;
    color: #667eea;
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.6));
}

.profile-section-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Profile Form Groups */
.profile-form-group {
    margin-bottom: 24px;
}

.profile-form-group:last-child {
    margin-bottom: 0;
}

.profile-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.price-tag {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.price-tag.free {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.profile-form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.profile-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.btn-profile-action {
    width: 100%;
    margin-top: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-profile-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-profile-action:hover::before {
    left: 100%;
}

.btn-profile-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.btn-profile-action:active {
    transform: translateY(-1px);
}

/* Status Grid - 3D Cards */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    perspective: 1000px;
}

.status-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.status-card:hover::before {
    opacity: 1;
}

.status-card:hover {
    transform: translateY(-8px) rotateX(10deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Активный статус - Neon Glow */
.status-card.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6), 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: glow 2s ease-in-out infinite;
}

.status-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
}

/* Купленный статус */
.status-card.owned {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
}

.status-card.owned::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
}

.status-card.selected.owned::after {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    width: 30px;
    height: 30px;
    font-size: 16px;
    top: 12px;
    right: 12px;
}

/* Заблокированный статус - Red Glow */
.status-card.locked {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(185, 28, 28, 0.08));
    cursor: not-allowed;
    opacity: 0.5;
}

.status-card.locked::after {
    content: '🔒';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.8));
}

.status-card.locked:hover {
    transform: none;
    box-shadow: none;
}

/* Доступный для покупки - Animated */
.status-card.available {
    border-color: rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
}

.status-card.available:hover {
    border-color: #667eea;
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.5);
}

.status-card.available::after {
    content: '💎';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    z-index: 2;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.3) rotate(10deg); 
    }
}

.status-preview {
    font-size: 18px;
    font-weight: 800;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
}

.status-name {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.status-price {
    font-size: 18px;
    font-weight: 800;
    color: #10b981;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
}

/* Status Colors - Enhanced "WOW" Effects */
.status-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #b8732e 100%);
    color: #fff;
    text-shadow: 0 2px 10px rgba(205, 127, 50, 1);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.status-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
    color: #2d2d2d;
    text-shadow: 0 2px 10px rgba(192, 192, 192, 1);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.status-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 1);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
}

.status-platinum {
    background: linear-gradient(135deg, #e5e4e2 0%, #b8b6b4 100%);
    color: #1a1a1a;
    text-shadow: 0 2px 10px rgba(229, 228, 226, 1);
    box-shadow: 0 4px 20px rgba(229, 228, 226, 0.5);
}

.status-diamond {
    background: linear-gradient(135deg, #b9f2ff 0%, #4dd0e1 100%);
    color: #003d47;
    text-shadow: 0 2px 10px rgba(185, 242, 255, 1);
    box-shadow: 0 4px 25px rgba(77, 208, 225, 0.7);
    animation: diamondShine 2s ease-in-out infinite;
}

@keyframes diamondShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.status-legend {
    background: linear-gradient(135deg, #ff0080 0%, #ff8c00 50%, #40e0d0 100%);
    color: #fff;
    text-shadow: 0 2px 15px rgba(255, 0, 128, 1);
    box-shadow: 0 4px 30px rgba(255, 0, 128, 0.9);
    animation: legendPulse 1.5s ease-in-out infinite;
}

@keyframes legendPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 4px 30px rgba(255, 0, 128, 0.9);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 6px 40px rgba(255, 0, 128, 1);
    }
}

/* Balance Management */
.balance-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.balance-action-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.balance-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

/* Profile Game History Section */
.profile-game-history-section {
    margin-top: 40px;
    margin-bottom: 20px;
}

.game-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.loading-state,
.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.history-game-id {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-content-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-username {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .profile-page {
        padding: 20px 10px;
    }
    
    .profile-header {
        padding: 60px 20px 80px;
    }
    
    .profile-username {
        font-size: 36px;
    }
    
    .profile-stats-row {
        grid-template-columns: 1fr;
    }
    
    .status-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }
    
    .balance-actions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .profile-username {
        font-size: 28px;
    }
    
    .profile-stat-card {
        padding: 20px;
    }
    
    .stat-card-value {
        font-size: 24px;
    }
    
    .status-grid {
        grid-template-columns: 1fr 1fr;
    }
}
