/* My Profile Page Styles - CS2/CSGO Gaming Theme */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Bebas+Neue&family=Teko:wght@300;400;500;600;700&display=swap');

        .profile-nav {
            background: linear-gradient(135deg, #161c2e 0%, #0a0e1a 100%);
            border-radius: 0;
            padding: 15px;
            margin-bottom: 25px;
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            border: 2px solid #ff6b1a;
            clip-path: polygon(
                0 10px, 10px 0,
                calc(100% - 10px) 0, 100% 10px,
                100% calc(100% - 10px), calc(100% - 10px) 100%,
                10px 100%, 0 calc(100% - 10px)
            );
            box-shadow: 0 0 30px rgba(255, 107, 26, 0.2);
        }
        
        .profile-nav a {
            padding: 12px 25px;
            background: linear-gradient(135deg, #0a0e1a 0%, #161c2e 100%);
            color: #fff;
            text-decoration: none;
            border-radius: 0;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            border: 2px solid rgba(255, 107, 26, 0.3);
            font-family: 'Rajdhani', sans-serif;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
            position: relative;
            overflow: hidden;
        }

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

        .profile-nav a:hover::before {
            left: 100%;
        }
        
        .profile-nav a:hover {
            background: linear-gradient(135deg, #1a1f2e 0%, #222838 100%);
            border-color: #ff6b1a;
            color: #ff6b1a;
            transform: translateY(-2px);
            box-shadow: 0 0 20px rgba(255, 107, 26, 0.3);
            text-shadow: 0 0 10px rgba(255, 107, 26, 0.5);
        }
        
        .profile-nav a.active {
            background: linear-gradient(135deg, #ff6b1a 0%, #ff8c4a 100%);
            border-color: #ffd700;
            color: #000;
            font-weight: 700;
            box-shadow: 0 0 30px rgba(255, 107, 26, 0.5);
        }
        
        .edit-card {
            background: linear-gradient(135deg, #161c2e 0%, #0a0e1a 100%);
            border-radius: 0;
            padding: 35px;
            margin-bottom: 25px;
            border: 2px solid rgba(255, 107, 26, 0.3);
            transition: all 0.2s ease;
            position: relative;
            clip-path: polygon(
                0 15px, 15px 0,
                calc(100% - 15px) 0, 100% 15px,
                100% calc(100% - 15px), calc(100% - 15px) 100%,
                15px 100%, 0 calc(100% - 15px)
            );
            box-shadow: 0 0 40px rgba(255, 107, 26, 0.15), inset 0 0 30px rgba(0, 0, 0, 0.5);
            overflow: hidden;
        }

        .edit-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, #ff6b1a, transparent);
            /* animation: scanLine 4s linear infinite; - Disabled for performance */
        }

        /* Disabled for performance
        @keyframes scanLine {
            0% { transform: translateY(0); opacity: 1; }
            50% { transform: translateY(300px); opacity: 0.5; }
            100% { transform: translateY(0); opacity: 1; }
        } */
        
        .edit-card:hover {
            box-shadow: 0 0 50px rgba(255, 107, 26, 0.3), inset 0 0 40px rgba(255, 107, 26, 0.05);
            border-color: #ff6b1a;
            transform: scale(1.01);
        }
        
        .section-title {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid #333;
        }
        
        .section-title i {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            font-size: 0.9rem;
        }
        
        .section-title h4 {
            margin: 0;
            color: #fff;
            font-size: 1.2rem;
        }
        
        .server-info-banner {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
        }
        
        .server-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }
        
        .info-stat {
            text-align: center;
            background: rgba(255, 255, 255, 0.1);
            padding: 10px;
            border-radius: 8px;
        }
        
        .info-stat-value {
            font-size: 1.3rem;
            font-weight: bold;
            color: #fff;
        }
        
        .info-stat-label {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.8);
            margin-top: 5px;
        }
        
        .form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .form-group {
            margin-bottom: 0;
        }
        
        .form-label {
            display: block;
            margin-bottom: 8px;
            color: #aaa;
            font-size: 0.9rem;
        }
        
        .form-label i {
            margin-right: 5px;
            color: #667eea;
        }
        
        .form-control {
            width: 100%;
            padding: 12px;
            background: #1a1a2e;
            border: 1px solid #333;
            border-radius: 5px;
            color: #fff;
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        
        .form-control:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }
        
        .form-select {
            width: 100%;
            padding: 12px;
            background: #1a1a2e;
            border: 1px solid #333;
            border-radius: 5px;
            color: #fff;
            font-size: 1rem;
            cursor: pointer;
        }
        
        .form-help {
            margin-top: 5px;
            font-size: 0.85rem;
            color: #888;
        }
        
        .server-status {
            display: inline-block;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }
        
        .server-status.online {
            background: rgba(46, 204, 113, 0.2);
            color: #2ecc71;
        }
        
        .server-status.offline {
            background: rgba(231, 76, 60, 0.2);
            color: #e74c3c;
        }
        
        .btn-group {
            display: flex;
            gap: 10px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 5px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }
        
        .btn-secondary {
            background: #444;
            color: #fff;
        }
        
        .btn-secondary:hover {
            background: #555;
            transform: translateY(-2px);
        }
        
        .btn-danger {
            background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
            color: #fff;
        }
        
        .btn-danger:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
        }
        
        .danger-zone {
            background: rgba(231, 76, 60, 0.1);
            border: 2px solid rgba(231, 76, 60, 0.3);
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
        }
        
        .danger-zone-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .danger-zone-header i {
            color: #e74c3c;
            font-size: 1.2rem;
        }
        
        .danger-zone-header h5 {
            color: #e74c3c;
            margin: 0;
        }
        
        .danger-zone p {
            color: #aaa;
            margin-bottom: 15px;
        }
        
        @media (max-width: 768px) {
            .form-row {
                grid-template-columns: 1fr;
            }
            
            .btn-group {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
                justify-content: center;
            }
            
            .server-info-grid {
                grid-template-columns: 1fr;
            }
        }



.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.avatar-placeholder span {
    font-size: 48px;
    font-weight: bold;
    color: white;
}

.avatar-edit-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #667eea;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid white;
}

.avatar-edit-overlay:hover {
    transform: scale(1.1);
    background: #764ba2;
}

.profile-info h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.profile-name {
    display: block;
    color: #fff;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: #4caf50;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.profile-meta {
    display: flex;
    gap: 20px;
    opacity: 0.9;
    font-size: 14px;
}

.profile-actions {
    display: flex;
    gap: 15px;
}

.btn-edit-profile, .btn-settings {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-edit-profile:hover, .btn-settings:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
}

/* Credit Card Section */
.credit-card-section {
    margin-bottom: 30px;
}

.credit-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    height: 200px;
    position: relative;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.credit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, -30px) rotate(180deg); }
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 8px;
    position: relative;
}

.card-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 25px;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
}

.card-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
}

.card-logo i {
    font-size: 24px;
}

.card-number {
    font-size: 22px;
    letter-spacing: 2px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.card-holder .label, .card-expiry .label {
    display: block;
    font-size: 10px;
    opacity: 0.7;
    margin-bottom: 3px;
}

.card-holder .value, .card-expiry .value {
    display: block;
    font-size: 14px;
    font-weight: bold;
}

.card-balance {
    text-align: center;
}

.balance-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.balance-amount {
    display: block;
    font-size: 28px;
    font-weight: bold;
    margin-top: 5px;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.card-actions button {
    flex: 1;
    padding: 8px;
    background: rgba(102, 126, 234, 0.2);
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.card-actions button:hover {
    background: rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

/* Profile Stats */
.profile-stats-card {
    background: #1a1a2e;
    border-radius: 15px;
    padding: 25px;
    height: 100%;
}

.stats-title {
    color: #667eea;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
}

/* Profile Details */
.profile-details-card {
    background: #1a1a2e;
    border-radius: 15px;
    padding: 25px;
}

.details-title {
    color: #667eea;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-form .form-control {
    background: #0f0f1e;
    border: 1px solid #2a2a3e;
    color: #fff;
}

.details-form .form-control:focus {
    background: #0f0f1e;
    border-color: #667eea;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.details-form .form-control:disabled {
    background: #0a0a15;
    opacity: 0.8;
}

.form-label {
    color: #999;
    font-size: 14px;
    margin-bottom: 5px;
}

.social-title {
    color: #667eea;
    margin-top: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-end;
}

.btn-save, .btn-cancel {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-cancel {
    background: #2a2a3e;
    color: #999;
}

.btn-cancel:hover {
    background: #3a3a4e;
    color: white;
}

/* Security Settings */
.profile-security-card {
    background: #1a1a2e;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.security-title {
    color: #667eea;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.security-info h5 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 16px;
    text-align: left;
}

.security-info p {
    color: #999;
    margin: 0;
    font-size: 14px;
    text-align: left;
}

.btn-change-password, .btn-enable-2fa, .btn-sessions {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-change-password:hover, .btn-enable-2fa:hover, .btn-sessions:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Activity */
.profile-activity-card {
    background: #1a1a2e;
    border-radius: 15px;
    padding: 25px;
}

.activity-title {
    color: #667eea;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.activity-content {
    flex: 1;
}

.activity-item .activity-title {
    color: white;
    margin: 0;
    font-size: 14px;
    text-align: left;
}

.activity-time {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
    text-align: left;
}

/* Comprehensive Responsive Styles */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .profile-cover {
        height: 280px !important;
    }
    
    /* Profile info overlay */
    div[style*="position: absolute; bottom: 20px"] {
        bottom: 15px !important;
        left: 15px !important;
        right: 15px !important;
        gap: 15px !important;
    }
    
    .profile-avatar {
        width: 100px !important;
        height: 100px !important;
    }
    
    h2[style*="font-size: 32px"] {
        font-size: 28px !important;
    }
    
    .profile-nav {
        justify-content: center;
    }
    
    .profile-nav a {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    .profile-cover {
        height: auto !important;
        min-height: 400px !important;
        padding-bottom: 20px !important;
    }
    
    /* Convert absolute positioning to relative on mobile */
    div[style*="position: absolute; bottom: 20px"] {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        padding: 20px 15px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
    }
    
    /* Profile avatar adjustments */
    .profile-avatar,
    div[style*="width: 120px"][style*="height: 120px"] {
        width: 90px !important;
        height: 90px !important;
        border: 3px solid white !important;
    }
    
    .profile-avatar > div,
    .profile-avatar img {
        font-size: 32px !important;
    }
    
    /* Edit button on avatar */
    button[style*="position: absolute; bottom: 0; right: 0"] {
        width: 32px !important;
        height: 32px !important;
        bottom: -5px !important;
        right: -5px !important;
    }
    
    /* Profile details section */
    div[style*="flex: 1; color: white"] {
        flex: none !important;
        width: 100% !important;
    }
    
    /* Username */
    h2[style*="font-size: 32px"] {
        font-size: 24px !important;
        text-align: center !important;
    }
    
    /* User status container */
    #userStatusContainer {
        display: flex !important;
        justify-content: center !important;
    }
    
    /* Meta information */
    div[style*="display: flex; gap: 20px"] {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center !important;
        font-size: 13px !important;
    }
    
    /* Profile actions buttons */
    div[style*="display: flex; gap: 10px; align-items: center"] {
        width: 100% !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    div[style*="display: flex; gap: 10px; align-items: center"] > * {
        width: 100% !important;
        text-align: center !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    /* Cover edit button */
    .cover-edit-btn,
    button[style*="position: absolute; top: 20px; right: 20px"] {
        top: 10px !important;
        right: 10px !important;
        padding: 8px 15px !important;
        font-size: 13px !important;
    }
    
    /* Profile nav */
    .profile-nav {
        flex-direction: column;
        padding: 10px !important;
        gap: 10px !important;
    }
    
    .profile-nav a {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* Form sections */
    .profile-form {
        padding: 15px !important;
    }
    
    .form-section {
        padding: 15px !important;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Security items */
    .security-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Card actions */
    .card-actions {
        flex-direction: column;
    }
    
    /* Profile sections */
    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .profile-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Small Mobile (< 576px) */
@media (max-width: 575px) {
    .profile-cover {
        border-radius: 12px !important;
        min-height: 380px !important;
    }
    
    /* Further reduce avatar size */
    .profile-avatar,
    div[style*="width: 120px"][style*="height: 120px"] {
        width: 80px !important;
        height: 80px !important;
    }
    
    .profile-avatar > div {
        font-size: 28px !important;
    }
    
    /* Username smaller */
    h2[style*="font-size: 32px"] {
        font-size: 20px !important;
    }
    
    /* Meta info smaller */
    div[style*="display: flex; gap: 20px"] {
        font-size: 12px !important;
    }
    
    /* Smaller buttons */
    div[style*="display: flex; gap: 10px; align-items: center"] > * {
        padding: 8px 15px !important;
        font-size: 13px !important;
    }
    
    /* Container padding */
    .games-watch-container {
        padding: 10px !important;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
    
    /* Nav items */
    .profile-nav a {
        padding: 8px 12px;
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    /* Hide icons on very small screens */
    .profile-nav a i {
        display: none;
    }
    
    /* Form labels and inputs */
    .form-label {
        font-size: 13px !important;
    }
    
    .form-control,
    .profile-input {
        font-size: 14px !important;
        padding: 8px 12px !important;
    }
}

/* Ultra Small Mobile (< 400px) */
@media (max-width: 399px) {
    .profile-cover {
        margin-bottom: 15px !important;
    }
    
    /* Even smaller avatar */
    .profile-avatar,
    div[style*="width: 120px"][style*="height: 120px"] {
        width: 70px !important;
        height: 70px !important;
        border-width: 2px !important;
    }
    
    .profile-avatar > div {
        font-size: 24px !important;
    }
    
    /* Edit button on avatar smaller */
    button[style*="position: absolute; bottom: 0; right: 0"] {
        width: 28px !important;
        height: 28px !important;
    }
    
    button[style*="position: absolute; bottom: 0; right: 0"] i {
        font-size: 12px !important;
    }
    
    /* Username even smaller */
    h2[style*="font-size: 32px"] {
        font-size: 18px !important;
    }
    
    /* Hide icons in meta info */
    div[style*="display: flex; gap: 20px"] i {
        display: none;
    }
    
    div[style*="display: flex; gap: 20px"] {
        font-size: 11px !important;
    }
    
    /* Action buttons smaller */
    div[style*="display: flex; gap: 10px; align-items: center"] > * {
        padding: 7px 12px !important;
        font-size: 12px !important;
    }
    
    /* Cover edit button smaller */
    .cover-edit-btn,
    button[style*="position: absolute; top: 20px; right: 20px"] {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    
    /* Container minimal padding */
    .games-watch-container {
        padding: 5px !important;
    }
}

/* Landscape orientation fix for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .profile-cover {
        min-height: 300px !important;
    }
    
    div[style*="position: absolute; bottom: 20px"] {
        flex-direction: row !important;
        text-align: left !important;
    }
    
    .profile-avatar {
        margin-bottom: 0 !important;
    }
    
    div[style*="flex: 1; color: white"] {
        text-align: left !important;
    }
    
    h2[style*="font-size: 32px"] {
        text-align: left !important;
    }
    
    div[style*="display: flex; gap: 20px"] {
        flex-direction: row !important;
        justify-content: flex-start !important;
    }
    
    div[style*="display: flex; gap: 10px; align-items: center"] {
        flex-direction: row !important;
        width: auto !important;
        margin-left: auto !important;
    }
    
    div[style*="display: flex; gap: 10px; align-items: center"] > * {
        width: auto !important;
    }
}

/* Flip Card Styles for Profile Card */
.flip-container {
    perspective: 1000px;
    width: 100%;
    height: 220px;
    margin-bottom: 20px;
}

.flip-container:hover .flipper {
    transform: rotateY(180deg);
}

.flipper {
    transition: 0.6s;
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    height: 100%;
}

.front, .back {
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    padding: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.front {
    z-index: 2;
    transform: rotateY(0deg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('../img/back_purse.webp'), linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #1a1d29 0%, #252935 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Front Card Styles */
.left_item_card {
    position: relative;
    height: 100%;
}

.top_balance_left {
    position: absolute;
    top: 20px;
    left: 0;
}

.h1_purse {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.h2_purse {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

.buttom_balance_left {
    position: absolute;
    bottom: 20px;
    left: 0;
}

.name_card_user_purse {
    display: block;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.login_card_purse {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.right_item_card {
    position: absolute;
    top: 20px;
    right: 20px;
}

.right_item_card i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
}

/* Removed points_display - points now shown in left section with balance */

/* Back Card Styles */
.id_link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
}

.id_link span {
    color: #667eea;
    font-size: 14px;
    word-break: break-all;
}

.copy_ref {
    padding: 6px 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.copy_ref:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.copy_ref i {
    font-size: 16px;
}

.reveral_link_info {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 90%;
}

.buttons_referal {
    display: flex;
    gap: 10px;
}

.btn_referal {
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn_referal:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .flip-container {
        height: 200px;
    }
    
    .h1_purse {
        font-size: 28px;
    }
    
    .points_value {
        font-size: 24px;
    }
    
    .right_item_card i {
        font-size: 36px;
    }
}

