/* ========================================
   MY ACCOUNT PAGE
======================================== */
.my-account-page {
    max-width: 440px;
    margin: 0 auto;
    background: #FFFFFF;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    padding: 10px 15px 0;
    display: flex;
    flex-direction: column;
}

/* ========================================
   BACK BUTTON
======================================== */
.back-button-container {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #00A99D;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-button i {
    width: 20px;
    height: 20px;
    background: #F1FF4D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #333333;
}

.back-button:hover {
    transform: translateX(-3px);
}

/* ========================================
   USER PROFILE SECTION
======================================== */
.user-profile-section {
    text-align: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.user-avatar {
    margin: 0 auto 10px;
    width: 90px;
    height: 90px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFFFFF;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #CCCCCC;
    border: 3px solid #FFFFFF;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.user-name {
    font-size: 20px;
    font-weight: 700;
    color: #00A99D;
    margin: 0 0 12px 0;
}

.fundraising-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 auto;
    max-width: 400px;
}

.stat-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 11px;
    font-weight: 600;
    color: #666666;
    margin: 0 0 5px 0;
}

.stat-amount {
    font-size: 11px;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

/* ========================================
   DAILY STREAKS SECTION
======================================== */
.daily-streaks-section {
    margin-bottom: 12px;
    flex-shrink: 0;
}

.streaks-card {
    background: #00A99D;
    border-radius: 15px;
    padding: 12px 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.streaks-title {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 10px 0;
}

.streaks-badges {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.streak-badge {
    width: 100%;
    aspect-ratio: 1;
    background: #FFFFFF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    transition: all 0.3s ease;
}

.streak-badge.active {
    background: #F1FF4D;
    color: #333333;
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* ========================================
   SQUAD & RANKING SECTION
======================================== */
.squad-ranking-section {
    margin-bottom: 12px;
    flex-shrink: 0;
}

.squad-card {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #00A99D;
    text-align: center;
    margin: 0 0 12px 0;
}

.ranking-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
}

.rank-item {
    text-align: center;
}

.rank-number {
    width: 65px;
    height: 65px;
    background: #00A99D;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 auto 8px;
    box-shadow: 0 3px 10px rgba(23, 162, 184, 0.3);
}

.rank-label {
    font-size: 12px;
    font-weight: 600;
    color: #00A99D;
    margin: 0;
}

.rank-divider {
    width: 3px;
    height: 50px;
    background: #E0E0E0;
    border-radius: 2px;
}

/* ========================================
   ACHIEVEMENT SECTION
======================================== */
.achievement-section {
    margin-bottom: 0;
    flex-shrink: 0;
}

.achievement-card {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.achievement-title {
    font-size: 16px;
    font-weight: 700;
    color: #00A99D;
    margin: 0 0 12px 0;
}

.achievement-button {
    display: inline-block;
    background: #00A99D;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 35px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(23, 162, 184, 0.3);
}

.achievement-button:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(23, 162, 184, 0.4);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
======================================== */
@media (max-width: 380px) {
    .my-account-page {
        padding: 8px 12px 0;
    }
    
    .user-avatar {
        width: 80px;
        height: 80px;
    }
    
    .user-name {
        font-size: 18px;
    }
    
    .fundraising-stats {
        gap: 8px;
    }
    
    .stat-card {
        padding: 8px;
    }
    
    .stat-card h3 {
        font-size: 10px;
    }
    
    .stat-amount {
        font-size: 10px;
    }
    
    .streaks-badges {
        gap: 4px;
    }
    
    .streak-badge {
        font-size: 14px;
        border-radius: 6px;
    }
    
    .rank-number {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    
    .rank-label {
        font-size: 11px;
    }
}

@media (min-height: 700px) {
    .my-account-page {
        padding: 15px 15px 0;
    }
    
    .back-button-container {
        margin-bottom: 15px;
    }
    
    .user-profile-section {
        margin-bottom: 15px;
    }
    
    .user-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 12px;
    }
    
    .daily-streaks-section,
    .squad-ranking-section,
    .achievement-section {
        margin-bottom: 15px;
    }
}
