@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;600&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background-color: #e0f2f1; 
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    color: #333;
}

.mobile-wrapper {
    background-color: #ffffff; 
    width: 100%;
    max-width: 420px; 
    min-height: 100vh; 
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
    display: flex;
    flex-direction: column;
}

@media (min-width: 450px) {
    .mobile-wrapper {
        min-height: 90vh;
        border-radius: 24px;
        margin: 20px 0;
        overflow: hidden;
    }
}

/* --- หน้า Login --- */
.login-page {
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.login-icon { 
    font-size: 60px; 
    color: #4DB6AC; 
    margin-bottom: 20px; 
}

.login-content h1 { 
    margin: 0; 
    color: #00897B; 
    font-size: 28px; 
}

.login-content p { 
    color: #666; 
    margin-bottom: 30px; 
}

.input-group { 
    position: relative; 
    margin-bottom: 20px; 
    width: 100%; 
}

.input-group i { 
    position: absolute; 
    left: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #999; 
}

.input-group input { 
    width: 100%; 
    padding: 15px 15px 15px 45px; 
    border: 1px solid #ddd; 
    border-radius: 12px; 
    font-size: 16px; 
}

.btn-primary { 
    width: 100%; 
    padding: 15px; 
    background-color: #00897B; 
    color: white; 
    border: none; 
    border-radius: 12px; 
    font-size: 16px; 
    font-weight: bold; 
    cursor: pointer; 
}

/* --- ส่วนหัวทั่วไป --- */
.app-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px; 
    background-color: #ffffff; 
}

.app-header h3 { 
    color: #00897b; 
    font-weight: 600; 
    margin: 0; 
}

.logout-btn { 
    color: #FF5252; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 14px; 
}

/* --- Dashboard --- */
.profile-card { 
    background: linear-gradient(135deg, #4db6ac, #00897b); 
    border-radius: 20px; 
    padding: 20px; 
    margin: 0 20px 20px 20px; 
    color: white; 
    box-shadow: 0 4px 10px rgba(0, 137, 123, 0.3); 
}

.profile-info { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 15px; 
}

.profile-img { 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    background-color: #fff; 
    padding: 2px; 
}

.profile-text h3 { 
    margin: 0 0 5px 0; 
    font-size: 20px; 
}

.profile-text p { 
    margin: 0; 
    font-size: 13px; 
    opacity: 0.9; 
}

.balance-info { 
    background-color: rgba(255, 255, 255, 0.2); 
    border-radius: 15px; 
    padding: 15px; 
    text-align: center; 
}

.points-display span:first-child { 
    font-size: 36px; 
    font-weight: bold; 
}

.action-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
    padding: 0 20px; 
}

.action-box { 
    background-color: white; 
    border: 1px solid #f0f0f0; 
    border-radius: 16px; 
    padding: 20px 10px; 
    text-align: center; 
    text-decoration: none; 
    color: #333; 
    font-weight: bold; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 12px; 
}

.icon-circle { 
    width: 55px; 
    height: 55px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 24px; 
}

.deposit-icon { 
    background-color: #E0F2F1; 
    color: #4DB6AC; 
}

.redeem-icon { 
    background-color: #FFF8E1; 
    color: #FFCA28; 
}

.history-section { 
    background-color: #fcfcfc; 
    border-radius: 24px 24px 0 0; 
    padding: 25px 20px; 
    margin-top: 25px; 
    flex-grow: 1; 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.03); 
}

.history-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.history-list li { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 0; 
    border-bottom: 1px dashed #e0e0e0; 
}

/* --- หน้าฝากความดี (Deposit) --- */
.form-container { 
    padding: 20px; 
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: bold; 
    color: #333; 
}

.input-field { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 10px; 
    font-size: 15px; 
    font-family: 'Prompt', sans-serif; 
}

/* --- หน้าแลกรางวัล (Redeem) --- */
.reward-list-container { 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.reward-card { 
    display: flex; 
    align-items: center; 
    background-color: #ffffff; 
    border-radius: 12px; 
    padding: 15px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); 
    border: 1px solid #f0f0f0; 
}

.reward-icon { 
    font-size: 24px; 
    color: #008
}