/* ==========================================================================
   👤 ALLO QUTTY: MODERN HI-TECH PROFILE STYLES (DARK MINIMALISM)
   ========================================================================== */

/* 1. НЕГІЗГІ КОНТЕЙНЕР ОҚШАУЛАУЫ */
#profileSection {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 15px;
    background: #0d1117; /* Терең hi-tech күңгірт фон */
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #e6edf3;
    box-sizing: border-box;
}

#profileSection * {
    box-sizing: border-box;
}

/* 2. ТАБЫСТЫ ПРОФИЛЬ КАРТАСЫ (MAIN CARD) */
.profile-card {
    background: linear-gradient(145deg, #161b22, #0f141c);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.profile-main-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

/* 📸 ҚАУІПСІЗ АВА ТЕХНОЛОГИЯСЫ */
.avatar-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid #58a6ff; /* Электрлі көк энергия сызығы */
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.2);
    margin-bottom: 12px;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #21262d;
}

.edit-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #58a6ff;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.avatar-wrapper:hover .edit-overlay {
    opacity: 1;
}

.profile-main-info h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #f0f6fc;
    letter-spacing: -0.5px;
}

.profile-main-info p {
    margin: 6px 0 0 0;
    font-size: 0.95rem;
    color: #8b949e;
}

/* 📊 СТАТИСТИКА КОРЫ (GRID SYSTEM) */
.user-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 12px 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-item:hover {
    transform: translateX(3px);
    border-color: #444c56;
}

.stat-icon {
    font-size: 1.1rem;
    color: #58a6ff; /* Индустриалды көк екпін */
    width: 24px;
    text-align: center;
    margin-right: 12px;
}

.stat-label {
    font-size: 0.9rem;
    color: #8b949e;
    flex: 1;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #c9d1d9;
}

/* 🔥 Табыс пен бөлісуді ерекшелейтін жарық стиль */
.stat-value.highlight {
    color: #3fb950; /* Қаржылық жасыл энергия */
    text-shadow: 0 0 10px rgba(63, 185, 80, 0.15);
}

/* 📣 РЕФЕРАЛ СЫБАҒА КАРТАСЫ */
.share-promo-card {
    background: linear-gradient(145deg, #1f1b2d, #120e1e); /* Сәл күлгін промо екпін */
    border: 1px solid #4c2f75;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.promo-content h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff9e22; /* Назар аудартатын алтын реңк */
}

.promo-content p {
    margin: 6px 0 14px 0;
    font-size: 0.85rem;
    color: #b1bac4;
    line-height: 1.4;
}

.referral-box {
    display: flex;
    gap: 8px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 4px;
}

.ref-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #c9d1d9;
    font-size: 0.85rem;
    padding: 8px 10px;
    outline: none;
    font-family: monospace;
}

.btn-copy {
    background: #21262d;
    border: 1px solid #30363d;
    color: #58a6ff;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: #58a6ff;
    color: #ffffff;
    border-color: #58a6ff;
}

/* 🟢 WHATSAPP SHARE BUTTON */
.btn-whatsapp-share {
    background: #238636;
    border: 1px solid #2ea44f;
    color: #ffffff;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.btn-whatsapp-share:hover {
    background: #2ea44f;
}

/* 💰 ҚАРЖЫЛЫҚ ӘМИЯН КАРТАСЫ */
.finance-card-modern {
    background: linear-gradient(145deg, #0f1c15, #0a110d); /* Күңгірт жасыл әмиян */
    border: 1px solid #238636;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.finance-card-modern p {
    margin: 0 0 10px 0;
    font-size: 0.85rem;
    color: #8b949e;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #56d364; /* Ашық қаржылық жарық */
    letter-spacing: -1px;
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(86, 211, 100, 0.2);
}

/* 📤 НЕГІЗГІ ӘРЕКЕТ БАТЫРМАСЫ (WITHDRAW) */
.btn-primary-action {
    width: 100%;
    padding: 14px;
    background: #238636;
    border: 1px solid #2ea44f;
    color: #ffffff;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(46, 164, 79, 0.2);
}

.btn-primary-action:hover:not(:disabled) {
    background: #2ea44f;
    box-shadow: 0 4px 16px rgba(46, 164, 79, 0.4);
}

.btn-primary-action:disabled {
    background: #21262d;
    border-color: #30363d;
    color: #8b949e;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

/* ⬅️ АРТҚА ҚАЙТУ БАТЫРМАСЫ */
.btn-back {
    background: transparent;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    border-color: #8b949e;
    color: #f0f6fc;
    background: rgba(255, 255, 255, 0.02);
}

/* 📱 МОБИЛЬДІ ОҢТАЙЛАНДЫРУ ПРЕДИКАЦИЯЛАРЫ */
@media (max-width: 380px) {
    .profile-card {
        padding: 16px 12px;
    }
    .balance-amount {
        font-size: 1.75rem;
    }
}