/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #a18cd1a4, #fbc2ebb4); /* xanh tím -> hồng nhạt */
    min-height: 100vh;
    color: #333;
}

.app-container {
    max-width: 375px;
    margin: 0 auto;
    min-height: 100vh;
    background: linear-gradient(135deg, #a18cd1a4, #fbc2ebb4); /* xanh tím -> hồng nhạt */
    position: relative;
    overflow-x: hidden;
}


/* Header */
.app-header {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px;
    margin: 15px;
}

.app-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* tăng độ rõ ràng khi trên nền sáng */
}


.language-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgb(255, 255, 255);
}

.language-selector select {
    background: rgba(255, 254, 254, 0.2);
    border: none;
    color: rgba(0, 0, 0, 0.377);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
}


/* Auth styles */
.auth-container {
    padding: 60px 30px;
    text-align: center;
}

.auth-logo {
    margin-bottom: 60px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.logo-icon i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.app-name {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 2px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    outline: none;
}

.form-group input::placeholder {
    color: #999;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ff711fa4, #fbecc2b4); /* nền */
    color: white;
    border: 1px solid #f3d1e3;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    background: #f69097;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.link-secondary {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    color: #d63384;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
}

/* ...[Content truncated to fit context]... */


/* Main content */
.main-content {
    padding: 20px;
    padding-bottom: 30px;
}

/* Hero section */
.hero-section {
    background: rgb(255, 255, 255);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.hero-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.hero-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.action-icon.invitation {
    background: #ffc107;
}

.action-icon.recharge {
    background: #17a2b8;
}

.action-icon.withdrawal {
    background: #28a745;
}

.action-icon.about {
    background: #6f42c1;
}

/* News section */
.news-section {
    background: white;
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.time-ago {
    font-size: 12px;
    color: #999;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.news-item i {
    color: #f8a5aa;
}

/* Stats section */
.stats-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.stats-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.stat-id {
    font-weight: 600;
    color: #333;
}

.stat-desc {
    flex: 1;
    margin-left: 15px;
    color: #666;
}

.stat-amount {
    font-weight: 600;
    color: #17a2b8;
}

/* Task section */
.task-section {
    margin-bottom: 20px;
}

.balance-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.balance-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.balance-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: #4CAF50;
}

.balance-icon.freeze {
    background: #2196F3;
}

.balance-icon.orders {
    background: #FF9800;
}

.balance-icon.balance {
    background: #9C27B0;
}

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.balance-label {
    font-size: 12px;
    color: #666;
}

.balance-amount {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.learn-more {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.learn-more p {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.commission-info {
    font-size: 12px;
    color: #666;
}

/* Profile styles */
.profile-header {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffc107;
}

.profile-info h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-info p {
    font-size: 14px;
    color: #666;
}

.balance-summary {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.balance-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.balance-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.menu-list {
    background: white;
    border-radius: 15px;
    padding: 5px 0;
    margin-bottom: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item.logout {
    justify-content: center;
    color: #f8a5aa;
    font-weight: 600;
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
}

.menu-item span {
    flex: 1;
    font-size: 16px;
}

.menu-item i.fa-chevron-right {
    color: #ccc;
    font-size: 12px;
}

.app-branding {
    text-align: center;
    margin: 30px 0;
}

.app-branding h2 {
    font-size: 24px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    line-height: 1.2;
}

/* Bottom navigation */
 .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 14px 0; /* ✅ Tăng chiều cao */
    border-top: 1px solid #e0f7fa;
    box-shadow: 0 -1px 8px rgba(0, 188, 212, 0.1);
    z-index: 999;
    font-family: 'Arial', sans-serif;
}

.bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    color: #78909c;
    font-size: 22px; /* ✅ Tăng kích thước */
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 6px 0;
}

.bottom-nav .nav-item i {
    font-size: 24px; /* ✅ Icon to hơn một chút */
    display: block;
    margin-bottom: 2px;
}

.bottom-nav .nav-item.active {
    color: #00bcd4;
}

.bottom-nav .nav-item:hover {
    color: #0097a7;
    transform: translateY(-2px);
}


/* Transaction styles */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.amount-btn {
    padding: 15px;
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover,
.amount-btn.active {
    background: #f8a5aa;
    color: white;
    border-color: #f8a5aa;
}

.upload-area {
    background: white;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
}

.upload-area i {
    font-size: 40px;
    color: #ccc;
    margin-bottom: 10px;
}

.withdrawal-info {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.info-label {
    color: #666;
}

.info-value {
    font-weight: 600;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .app-container {
        max-width: 100%;
    }
    
    .bottom-nav {
        width: 100%;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #f8a5aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.vip-plans-wrapper {
    padding: 20px 15px;
    background: #fefefe;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    margin-top: 20px;
}

.vip-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    color: #2d3436;
}

.vip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.vip-card {
    border-radius: 12px;
    padding: 14px;
    width: calc(50% - 10px);
    max-width: 210px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: 0.2s ease;
    text-align: center;
    border: 1px solid #eee;
}

.vip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.vip-icon {
    font-size: 26px;
    margin-bottom: 6px;
}

.vip-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.vip-percent {
    font-size: 12px;
    background-color: #6c5ce7;
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
    display: inline-block;
    margin: 6px 0 10px;
}

.vip-card-body p {
    font-size: 13px;
    margin: 3px 0;
    color: #555;
}


