@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --white: #fafafe;
    --black: #1a0a0a;
    --text: #1a1a1a;
    --text-light: #7a7a7a;
    --accent: #e53935;
    --accent-light: #ef5350;
    --accent-dark: #c62828;
    --accent-glow: rgba(229, 57, 53, 0.22);
    --green: #10b981;
    --green-soft: rgba(16, 185, 129, 0.12);
    --red: #f43f5e;
    --red-soft: rgba(244, 63, 94, 0.12);
    --teal: #0ea5e9;
    --teal-dark: #0284c7;
    --purple: #a855f7;
    --blue: #3b82f6;
    --pink: #ec4899;
    --glass-bg: rgba(255, 255, 255, 0.80);
    --glass-border: rgba(255, 255, 255, 0.60);
    --glass-shadow: 0 8px 40px rgba(229, 57, 53, 0.08);
    --glass-shadow-lg: 0 12px 48px rgba(229, 57, 53, 0.14);
    --radius: 20px;
    --radius-sm: 14px;
    --radius-xs: 8px;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #e53935 100%);
    --gradient-warm: linear-gradient(135deg, #ff8c42, #e53935, #b71c1c);
    --gradient-cool: linear-gradient(135deg, #ff6b35, #e53935, #c62828);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: #f2f2f2;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    padding-bottom: 80px;
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== ANIMATED GRADIENT BACKGROUND ===== */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    width: 250%;
    height: 250%;
    top: -60%;
    left: -60%;
    background: radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.22) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(229, 57, 53, 0.18) 0%, transparent 50%),
                radial-gradient(ellipse at 40% 80%, rgba(255, 140, 66, 0.16) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 60%, rgba(198, 40, 40, 0.14) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 40%, rgba(229, 57, 53, 0.10) 0%, transparent 40%);
    animation: bgShift 25s ease-in-out infinite alternate;
}

.bg-gradient::after {
    content: '';
    position: absolute;
    width: 250%;
    height: 250%;
    top: -40%;
    left: -40%;
    background: radial-gradient(ellipse at 60% 30%, rgba(229, 57, 53, 0.16) 0%, transparent 45%),
                radial-gradient(ellipse at 30% 70%, rgba(255, 107, 53, 0.14) 0%, transparent 45%),
                radial-gradient(ellipse at 80% 80%, rgba(255, 140, 66, 0.12) 0%, transparent 45%),
                radial-gradient(ellipse at 15% 15%, rgba(198, 40, 40, 0.14) 0%, transparent 40%);
    animation: bgShift2 30s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5%, -3%) rotate(2deg); }
    50% { transform: translate(-3%, 5%) rotate(-1deg); }
    75% { transform: translate(4%, 2%) rotate(1.5deg); }
    100% { transform: translate(-2%, -4%) rotate(-2deg); }
}

@keyframes bgShift2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-4%, 3%) rotate(-2deg); }
    66% { transform: translate(3%, -5%) rotate(1.5deg); }
    100% { transform: translate(-1%, 2%) rotate(-1deg); }
}

/* ===== MAIN CONTENT ===== */
.main-content {
    position: relative;
    z-index: 1;
    padding: 0 16px;
}
/* Home page: full-bleed, no extra padding */
.page-home .main-content,
body.page-home > .main-content {
    padding: 0;
}
/* Home page: hide the global bg-gradient (home has its own header bg) */
.page-home .bg-gradient {
    display: none;
}

/* ===== GLASS CARD ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.6);
    transition: box-shadow 0.3s;
}

.glass-sm {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255,255,255,0.5);
    transition: box-shadow 0.3s, transform 0.2s;
}

/* ===== HEADER ===== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    position: relative;
    z-index: 10;
    gap: 0;
}

.top-bar .globe-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-cool);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 14px var(--accent-glow);
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement {
    margin: 0 16px 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement i {
    color: var(--accent);
    font-size: 16px;
    animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.announcement span {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== BANNER SLIDER ===== */
.banner-slider {
    margin: 0 16px 20px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    height: 200px;
}

.banner-slider .slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.banner-slider .slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.slide-bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 0;
}

.slide-content {
    text-align: center;
    z-index: 1;
}

.slide-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.slide-content p {
    font-size: 13px;
    color: var(--text-light);
}

.slide-content .platform-logo {
    width: 120px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.banner-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dots .dot.active {
    background: var(--accent);
    width: 20px;
    border-radius: 4px;
}

/* ===== QUICK ACTIONS GRID ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 24px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 14px 6px;
    border-radius: var(--radius-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.action-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.action-icon.deposit { background: linear-gradient(135deg,#eef2ff,#c7d2fe); color: #4338ca; }
.action-icon.withdrawal { background: linear-gradient(135deg,#fdf4ff,#e9d5ff); color: #7c3aed; }
.action-icon.invitation { background: linear-gradient(135deg,#fce7f3,#fbcfe8); color: #be185d; }
.action-icon.customer { background: linear-gradient(135deg,#ecfdf5,#a7f3d0); color: #047857; }
.action-icon.terms { background: linear-gradient(135deg,#f0f9ff,#bae6fd); color: #0369a1; }
.action-icon.about { background: linear-gradient(135deg,#eef2ff,#c7d2fe); color: #4f46e5; }
.action-icon.faq { background: linear-gradient(135deg,#fff7ed,#fed7aa); color: #c2410c; }
.action-icon.wfp { background: linear-gradient(135deg,#f0fdfa,#99f6e4); color: #0f766e; }

.action-item span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    line-height: 1.2;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 16px;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}
.withdraw-feed {
    padding: 0 16px;
    margin-bottom: 20px;
    max-height: 320px;
    overflow: hidden;
    position: relative;
}

.withdraw-feed-inner {
    animation: scrollFeed 12s linear infinite;
}

.withdraw-feed:hover .withdraw-feed-inner {
    animation-play-state: paused;
}

@keyframes scrollFeed {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.withdraw-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 10px;
    gap: 14px;
}

.withdraw-item .icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.withdraw-item .info {
    flex: 1;
}

.withdraw-item .info .user {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.withdraw-item .info .status {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.withdraw-item .amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    margin-top: 14px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    border: 1px solid rgba(0,0,0,0.06);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 6px 18px var(--accent-glow);
    font-weight: 600;
}

/* ===== VIP CARDS ===== */
.vip-card {
    margin: 0 16px 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    position: relative;
}

.vip-card .vip-info {
    flex: 1;
}

.vip-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    margin-bottom: 8px;
}

.vip-card .platform-name {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-dark);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.vip-card .vip-details p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 3px;
}

.vip-card .platform-image {
    width: 130px;
    height: 130px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.platform-placeholder {
    width: 130px;
    height: 130px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

/* ===== ORDER RECORD ===== */
.order-card {
    margin: 0 16px 16px;
    padding: 18px;
}

.order-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 14px;
    line-height: 1.6;
}

.order-product {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.order-product .product-img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ccc;
    flex-shrink: 0;
    overflow: hidden;
}

.order-product .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-product .product-info {
    flex: 1;
}

.order-product .product-info .name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-product .product-info .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-product .product-info .price {
    font-size: 14px;
    color: var(--text-light);
}

.order-product .product-info .qty {
    font-size: 14px;
    color: var(--text-light);
}

.order-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-summary .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.order-summary .row:last-child {
    border-bottom: none;
}

.order-summary .row .label {
    font-size: 14px;
    color: var(--text);
}

.order-summary .row .value {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-dark);
}

/* ===== BUTTONS ===== */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 20px var(--accent-glow);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.btn-teal {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6, #6366f1);
    color: white;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.30);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(14, 165, 233, 0.45);
}

/* ===== DEPOSIT PAGE ===== */
.page-title {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 20px 16px 16px;
    letter-spacing: -0.5px;
}

.deposit-option {
    margin: 0 16px 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
}

.deposit-option:hover {
    transform: translateY(-1px);
}

.deposit-option .left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.deposit-option .crypto-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.deposit-option .crypto-icon.usdt {
    background: #26a17b;
    color: white;
}

.deposit-option .name {
    font-size: 16px;
    font-weight: 500;
}

.deposit-option .radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ddd;
    position: relative;
    transition: all 0.2s;
}

.deposit-option.selected .radio {
    border-color: var(--accent);
}

.deposit-option.selected .radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.deposit-actions {
    padding: 16px;
}

.deposit-actions .btn {
    margin-bottom: 12px;
}

.cs-link {
    margin: 0 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
}

.cs-link i {
    color: #ccc;
}

/* ===== PROFILE PAGE ===== */
.profile-header {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: 600;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info .name {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-dark);
}

.profile-info .meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.profile-info .invite-code {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-info .invite-code .copy-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 14px;
}

.profile-bell {
    position: absolute;
    right: 16px;
    top: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
}

/* ===== WALLET CARD ===== */
.wallet-card {
    margin: 0 16px 20px;
    padding: 28px;
    background: linear-gradient(135deg, #c62828 0%, #e53935 50%, #ff6b35 100%);
    color: white;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 12px 36px rgba(229, 57, 53, 0.35);
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.wallet-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.wallet-card .wallet-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.wallet-card .wallet-balance {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.wallet-buttons {
    display: flex;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 24px;
}

.wallet-buttons .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    font-size: 15px;
    border-radius: var(--radius-sm);
}

/* ===== SERVICE CENTER ===== */
.service-center {
    padding: 0 16px;
    margin-bottom: 24px;
}

.service-center .sc-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-dark);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.service-item {
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s;
}

.service-item:hover {
    transform: translateY(-2px);
}

.service-item .si-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.si-icon.balance { background: linear-gradient(135deg,#eef2ff,#c7d2fe); color: #4338ca; }
.si-icon.team { background: linear-gradient(135deg,#fdf4ff,#e9d5ff); color: #7c3aed; }
.si-icon.dep-rec { background: linear-gradient(135deg,#ecfdf5,#a7f3d0); color: #047857; }
.si-icon.wd-rec { background: linear-gradient(135deg,#fff7ed,#fed7aa); color: #c2410c; }
.si-icon.invite { background: linear-gradient(135deg,#fce7f3,#fbcfe8); color: #be185d; }
.si-icon.settings { background: linear-gradient(135deg,#f0f9ff,#bae6fd); color: #0369a1; }

.service-item .si-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

/* ===== BALANCE PAGE ===== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 20px;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
}

.transaction-list {
    padding: 0 16px;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 10px;
    gap: 14px;
}

.transaction-item .tx-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tx-icon.tx-in {
    background: linear-gradient(135deg,#ecfdf5,#a7f3d0);
    color: #047857;
}

.tx-icon.tx-out {
    background: linear-gradient(135deg,#fff0f0,#fecaca);
    color: #dc2626;
}

.transaction-item .tx-info {
    flex: 1;
}

.transaction-item .tx-info .tx-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.transaction-item .tx-info .tx-date {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.transaction-item .tx-amount {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.tx-amount.positive {
    color: var(--green);
    font-weight: 700;
}

.tx-amount.negative {
    color: var(--red);
    font-weight: 700;
}

/* ===== SETTINGS PAGE ===== */
.settings-list {
    padding: 0 16px;
}

.settings-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text);
    gap: 14px;
    transition: transform 0.2s;
}

.settings-item:hover {
    transform: translateX(4px);
}

.settings-item .si-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.si-icon-wrap.login-pass { background: linear-gradient(135deg,#eef2ff,#c7d2fe); color: #4338ca; }
.si-icon-wrap.wd-pass { background: linear-gradient(135deg,#fdf4ff,#e9d5ff); color: #7c3aed; }
.si-icon-wrap.wd-method { background: linear-gradient(135deg,#ecfdf5,#a7f3d0); color: #047857; }
.si-icon-wrap.logout { background: linear-gradient(135deg,#fff0f0,#fecaca); color: #dc2626; }

.settings-item .si-label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.settings-item .si-arrow {
    color: #ccc;
    font-size: 14px;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 16px;
    padding: 0 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* ===== INVITATION PAGE ===== */
.invite-card {
    margin: 16px;
    padding: 30px 24px;
    text-align: center;
}

.invite-card .invite-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.invite-card .invite-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.invite-code-box {
    background: rgba(0, 0, 0, 0.05);
    border: 2px dashed var(--accent);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.invite-code-box .code {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 3px;
}

.invite-code-box .copy-icon {
    background: var(--accent);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

/* ===== INFO PAGES (Terms, About, FAQ) ===== */
.info-content {
    padding: 0 16px;
    margin-bottom: 24px;
}

.info-card {
    padding: 24px;
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 10px;
}

.info-card ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.info-card ul li {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 4px;
}

.faq-item {
    margin-bottom: 12px;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--text-light);
}

.faq-question.open i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 16px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    display: none;
}

.faq-answer.show {
    display: block;
}

/* ===== WITHDRAWAL PAGE ===== */
.wd-amount-input {
    margin: 16px;
    padding: 24px;
    text-align: center;
}

.wd-amount-input .wd-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.wd-amount-input .wd-field {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
}

.wd-amount-input .wd-field .currency-symbol {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
}

.wd-amount-input .wd-field input {
    font-size: 40px;
    font-weight: 700;
    color: var(--text);
    border: none;
    background: none;
    width: 200px;
    text-align: center;
    outline: none;
    font-family: inherit;
}

.wd-amount-input .wd-balance {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== PLATFORM CARDS ===== */
.platform-cards {
    padding: 0 16px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 4px 20px rgba(99,102,241,0.08);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    border-radius: 4px 0 0 4px;
}

.platform-card.amazon::before  { background: linear-gradient(180deg,#f59e0b,#f97316); }
.platform-card.alibaba::before { background: linear-gradient(180deg,#f97316,#ef4444); }
.platform-card.shopee::before  { background: linear-gradient(180deg,#f43f5e,#ec4899); }

.platform-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(99,102,241,0.14);
}

.platform-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.platform-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.platform-card-info {
    flex: 1;
}

.platform-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.platform-card-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

.platform-card-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--gradient-primary);
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 50px 16px;
    color: var(--text-light);
    font-size: 14px;
}

/* ===== BOTTOM NAVBAR ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 14px;
    z-index: 100;
    box-shadow: 0 -6px 30px rgba(31, 38, 135, 0.08);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #999;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 12px;
    transition: color 0.2s;
    position: relative;
}

.nav-item i {
    font-size: 20px;
    transition: transform 0.2s;
}

.nav-item.active {
    color: var(--accent);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--gradient-primary);
}

.nav-item.active i {
    transform: scale(1.18);
    filter: drop-shadow(0 2px 8px rgba(229, 57, 53, 0.40));
}

.nav-item span {
    font-size: 10px;
}

/* ===== LOGIN/REGISTER ===== */
.auth-page {
    padding: 40px 16px;
    text-align: center;
}

.auth-page .auth-logo {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 10px;
}

.auth-page .auth-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.auth-page .auth-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.auth-error {
    background: rgba(255, 61, 87, 0.1);
    color: #e03131;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 61, 87, 0.2);
    text-align: left;
}

.auth-form {
    text-align: left;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-link {
    text-align: center;
    padding: 16px;
    font-size: 14px;
    color: var(--text-light);
}

.auth-link a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

/* ===== WFP PAGE ===== */
.wfp-card {
    margin: 16px;
    padding: 24px;
    text-align: center;
}

.wfp-card .wfp-icon {
    font-size: 50px;
    color: var(--accent);
    margin-bottom: 14px;
}

.wfp-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.wfp-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.05s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.15s; opacity: 0; }
.fade-in-delay-4 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-5 { animation-delay: 0.25s; opacity: 0; }

/* ===== RESPONSIVE ===== */

/* ===== DESKTOP STYLES ===== */
@media (min-width: 768px) {
    body {
        max-width: 100%;
        padding-bottom: 0;
        background: #eef0ff;
    }

    .bg-gradient {
        width: 100%;
        opacity: 0.5;
    }

    .main-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 40px 60px;
    }

    /* -- Top Bar / Header -- */
    .top-bar {
        padding: 20px 0;
        margin-bottom: 8px;
    }
    .top-bar .globe-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 20px;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .top-bar .globe-icon:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

    /* -- Announcement -- */
    .announcement {
        margin: 0 0 24px;
        padding: 16px 24px;
        border-radius: 16px;
    }
    .announcement span { font-size: 14px; }

    /* -- Banner Slider -- */
    .banner-slider {
        margin: 0 0 32px;
        height: 300px;
        border-radius: 24px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    }
    .slide-content h3 { font-size: 32px; }
    .slide-content p { font-size: 15px; }
    .slide-content .platform-logo { width: 160px; height: 80px; }
    .banner-dots .dot { width: 10px; height: 10px; }
    .banner-dots .dot.active { width: 28px; }

    /* -- Quick Actions -- 2 rows of 4 with bigger cards */
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        padding: 0;
        margin-bottom: 36px;
    }
    .action-item {
        padding: 24px 12px;
        border-radius: 18px;
        gap: 10px;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        box-shadow: 0 4px 20px rgba(31, 38, 135, 0.06);
        transition: transform 0.25s, box-shadow 0.25s;
    }
    .action-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(31, 38, 135, 0.14);
    }
    .action-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        font-size: 26px;
    }
    .action-item span {
        font-size: 14px;
        font-weight: 600;
    }

    /* -- Section Title -- */
    .section-title {
        font-size: 26px;
        padding: 0;
        margin-bottom: 20px;
    }

    /* -- VIP Cards -- Desktop grid */
    .vip-card {
        margin: 0 0 20px;
        padding: 32px;
        border-radius: 24px;
        transition: transform 0.25s, box-shadow 0.25s;
    }
    .vip-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--glass-shadow-lg);
    }
    .vip-card .platform-name { font-size: 34px; }
    .vip-card .vip-details p { font-size: 14px; margin-bottom: 5px; }
    .vip-card .platform-image,
    .platform-placeholder {
        width: 160px;
        height: 160px;
        border-radius: 20px;
    }

    /* -- Withdraw Feed -- */
    .withdraw-feed {
        padding: 0;
        margin-bottom: 32px;
        max-height: 400px;
    }
    .withdraw-item {
        padding: 18px 22px;
        margin-bottom: 10px;
        border-radius: 16px;
        transition: transform 0.2s;
    }
    .withdraw-item:hover { transform: translateX(4px); }
    .withdraw-item .icon-wrap { width: 46px; height: 46px; font-size: 18px; }
    .withdraw-item .info .user { font-size: 15px; }

    /* -- Tabs -- */
    .tabs {
        padding: 0;
        margin-bottom: 28px;
        gap: 12px;
    }
    .tab-btn {
        padding: 12px 32px;
        font-size: 15px;
        border-radius: 14px;
        transition: all 0.25s;
    }
    .tab-btn:hover:not(.active) {
        background: rgba(255,255,255,0.9);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }

    /* -- Order Cards -- */
    .order-card {
        margin: 0 0 20px;
        padding: 28px;
        border-radius: 22px;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .order-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--glass-shadow-lg);
    }
    .order-product .product-img {
        width: 100px;
        height: 100px;
        border-radius: 14px;
    }
    .order-product .product-info .name { font-size: 16px; }

    /* -- Profile -- */
    .profile-header {
        padding: 32px 0;
        gap: 20px;
    }
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 30px;
        box-shadow: 0 8px 24px var(--accent-glow);
    }
    .profile-info .name { font-size: 24px; }
    .profile-info .meta { font-size: 14px; }
    .profile-info .invite-code { font-size: 14px; }
    .profile-bell {
        right: 0;
        top: 32px;
        width: 48px;
        height: 48px;
        font-size: 20px;
        transition: transform 0.2s;
    }
    .profile-bell:hover { transform: scale(1.1); }

    /* -- Wallet Card -- */
    .wallet-card {
        margin: 0 0 28px;
        padding: 44px 40px;
        border-radius: 24px;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 16px 48px rgba(99, 102, 241, 0.32);
    }
    .wallet-card .wallet-label { font-size: 16px; text-align: left; }
    .wallet-card .wallet-balance { font-size: 46px; text-align: left; }
    .wallet-card::before { width: 300px; height: 300px; top: -50%; right: -10%; }
    .wallet-card::after { width: 250px; height: 250px; }

    .wallet-buttons {
        padding: 0;
        gap: 16px;
        margin-bottom: 32px;
    }
    .wallet-buttons .btn {
        padding: 16px;
        font-size: 16px;
        border-radius: 16px;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .wallet-buttons .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    }

    /* -- Service Center -- */
    .service-center {
        padding: 0;
        margin-bottom: 36px;
    }
    .service-center .sc-title { font-size: 24px; margin-bottom: 18px; }
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .service-item {
        padding: 24px 20px;
        border-radius: 18px;
        gap: 16px;
        transition: transform 0.25s, box-shadow 0.25s;
    }
    .service-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    }
    .service-item .si-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        font-size: 22px;
    }
    .service-item .si-text { font-size: 15px; font-weight: 600; }

    /* -- Page Title -- */
    .page-title {
        font-size: 32px;
        padding: 32px 0 24px;
    }

    /* -- Back Button -- */
    .back-btn {
        padding: 20px 0;
        font-size: 24px;
        transition: color 0.2s;
    }
    .back-btn:hover { color: var(--accent); }

    /* -- Forms -- */
    .form-group {
        padding: 0;
        margin-bottom: 22px;
        max-width: 560px;
    }
    .form-group label {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 10px;
    }
    .form-input {
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 14px;
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    .form-input:focus {
        box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
    }

    /* -- Balance / Transactions -- */
    .transaction-list { padding: 0; }
    .transaction-item {
        padding: 20px 24px;
        margin-bottom: 12px;
        border-radius: 18px;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .transaction-item:hover {
        transform: translateX(4px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    }
    .transaction-item .tx-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        font-size: 20px;
    }
    .transaction-item .tx-info .tx-label { font-size: 16px; }
    .transaction-item .tx-info .tx-date { font-size: 13px; }
    .transaction-item .tx-amount { font-size: 18px; }

    /* -- Settings -- */
    .settings-list { padding: 0; max-width: 640px; }
    .settings-item {
        padding: 22px 28px;
        margin-bottom: 12px;
        border-radius: 18px;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .settings-item:hover {
        transform: translateX(6px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }
    .settings-item .si-icon-wrap {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        font-size: 20px;
    }
    .settings-item .si-label { font-size: 16px; }

    /* -- Invitation -- */
    .invite-card {
        margin: 24px auto;
        padding: 48px 40px;
        border-radius: 24px;
        max-width: 560px;
    }
    .invite-card .invite-title { font-size: 28px; }
    .invite-card .invite-desc { font-size: 15px; }
    .invite-code-box { padding: 20px; border-radius: 16px; }
    .invite-code-box .code { font-size: 30px; }

    /* -- Info Pages (Terms, About, FAQ) -- */
    .info-content { padding: 0; max-width: 800px; }
    .info-card {
        padding: 32px;
        margin-bottom: 20px;
        border-radius: 20px;
    }
    .info-card h3 { font-size: 20px; }
    .info-card p, .info-card ul li { font-size: 15px; line-height: 1.8; }
    .faq-question { padding: 20px 24px; font-size: 16px; }

    /* -- Deposit -- */
    .deposit-option {
        margin: 0 0 16px;
        padding: 22px 28px;
        border-radius: 20px;
        max-width: 560px;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .deposit-option:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .deposit-actions { padding: 24px 0; max-width: 560px; }
    .cs-link {
        margin: 0;
        padding: 20px 28px;
        border-radius: 18px;
        max-width: 560px;
    }

    /* -- Withdrawal -- */
    .wd-amount-input {
        margin: 24px auto;
        padding: 40px;
        border-radius: 24px;
        max-width: 560px;
    }
    .wd-amount-input .wd-field input { font-size: 52px; }
    .wd-amount-input .wd-label { font-size: 15px; }

    /* -- WFP -- */
    .wfp-card {
        margin: 24px auto;
        padding: 48px 40px;
        border-radius: 24px;
        max-width: 560px;
    }
    .wfp-card h2 { font-size: 28px; }
    .wfp-card p { font-size: 15px; }

    /* -- Auth Pages -- */
    .auth-page {
        max-width: 480px;
        margin: 0 auto;
        padding: 80px 0 40px;
    }
    .auth-page .auth-logo { font-size: 56px; }
    .auth-page .auth-title { font-size: 34px; }
    .auth-page .auth-subtitle { font-size: 16px; margin-bottom: 40px; }
    .auth-form .form-group { padding: 0; }
    .auth-error { border-radius: 14px; padding: 16px 20px; font-size: 14px; }

    /* -- Chat -- */
    .chat-container {
        margin: 0 auto 40px;
        border-radius: 24px;
        height: calc(100vh - 200px);
        max-width: 720px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    }
    .chat-bubble { font-size: 15px; padding: 12px 18px; }
    .chat-input { padding: 12px 20px; font-size: 15px; }

    /* -- Bottom Nav → Desktop Top/Side Style -- */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        max-width: 600px;
        border-radius: 24px 24px 0 0;
        padding: 12px 20px 18px;
        box-shadow: 0 -8px 40px rgba(31, 38, 135, 0.1);
        background: rgba(255,255,255,0.96);
    }
    .nav-item {
        gap: 5px;
        padding: 8px 24px;
        border-radius: 12px;
        transition: background 0.2s, color 0.2s;
    }
    .nav-item:hover {
        background: rgba(0,0,0,0.03);
    }
    .nav-item.active {
        background: rgba(0,0,0,0.04);
    }
    .nav-item i { font-size: 22px; }
    .nav-item span { font-size: 11px; font-weight: 600; }

    /* -- Chat FAB -- */
    .chat-fab {
        width: 64px;
        height: 64px;
        font-size: 26px;
        bottom: 100px;
        right: 40px;
        box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    }
    .chat-fab:hover {
        transform: scale(1.12);
        box-shadow: 0 12px 36px rgba(0,0,0,0.35);
    }

    /* -- Buttons -- */
    .btn {
        padding: 16px;
        font-size: 17px;
        border-radius: 16px;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .btn:hover {
        transform: translateY(-3px);
    }
    .btn-primary:hover {
        box-shadow: 0 12px 36px rgba(0,0,0,0.25);
    }

    /* -- Glass cards hover -- */
    .glass:hover {
        box-shadow: var(--glass-shadow-lg);
    }
    .glass-sm:hover {
        box-shadow: 0 8px 28px rgba(31, 38, 135, 0.12);
    }

    /* -- Empty state -- */
    .empty-state { padding: 80px 16px; font-size: 16px; }

    /* -- Language Modal -- */
    .lang-modal {
        max-width: 520px;
        border-radius: 24px;
    }
}

/* ===== LARGE DESKTOP ===== */
@media (min-width: 1200px) {
    .main-content {
        max-width: 1320px;
        padding: 0 60px 80px;
    }

    /* -- Banner -- */
    .banner-slider {
        height: 360px;
        border-radius: 28px;
    }
    .slide-content h3 { font-size: 38px; }
    .slide-content p { font-size: 16px; }

    /* -- Quick Actions → Full row of 8 */
    .quick-actions {
        grid-template-columns: repeat(8, 1fr);
        gap: 16px;
    }
    .action-item { padding: 28px 8px; }
    .action-icon { width: 68px; height: 68px; font-size: 28px; }

    /* -- VIP Cards -- */
    .vip-card { padding: 36px; border-radius: 28px; }
    .vip-card .platform-name { font-size: 38px; }
    .vip-card .platform-image,
    .platform-placeholder { width: 180px; height: 180px; border-radius: 22px; }

    /* -- Service Grid -- */
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .service-item { padding: 28px 24px; border-radius: 20px; }
    .service-item .si-icon { width: 56px; height: 56px; font-size: 24px; border-radius: 16px; }

    /* -- Wallet -- */
    .wallet-card {
        padding: 52px 48px;
        border-radius: 28px;
    }
    .wallet-card .wallet-balance { font-size: 54px; }
    .wallet-card .wallet-label { font-size: 17px; }

    /* -- Profile -- */
    .profile-avatar { width: 90px; height: 90px; font-size: 34px; }
    .profile-info .name { font-size: 26px; }

    /* -- Page Title -- */
    .page-title {
        font-size: 36px;
        padding: 36px 0 28px;
    }

    /* -- Wider form areas -- */
    .form-group { max-width: 600px; }
    .settings-list { max-width: 700px; }
    .deposit-option, .deposit-actions, .cs-link { max-width: 600px; }
    .wd-amount-input, .wfp-card, .invite-card { max-width: 600px; }
    .info-content { max-width: 880px; }

    /* -- Transaction items -- */
    .transaction-item { padding: 22px 28px; border-radius: 20px; }
    .transaction-item .tx-icon { width: 56px; height: 56px; font-size: 22px; }

    /* -- Bottom Nav -- */
    .bottom-nav { max-width: 680px; }

    /* -- Auth -- */
    .auth-page {
        max-width: 500px;
        padding: 100px 0 60px;
    }

    /* -- Buttons -- */
    .btn { font-size: 18px; padding: 18px; border-radius: 18px; }
}

/* ===== TABLET ===== */
@media (min-width: 481px) and (max-width: 767px) {
    body {
        max-width: 600px;
        border-left: 1px solid rgba(0,0,0,0.05);
        border-right: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 0 40px rgba(0,0,0,0.05);
    }
    .bg-gradient { width: 600px; }
    .bottom-nav { max-width: 600px; }
}

/* Small screens */
@media (max-width: 380px) {
    .quick-actions {
        gap: 8px;
        padding: 0 10px;
    }
    .action-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 18px;
    }
    .action-item {
        padding: 10px 4px;
        gap: 6px;
    }
    .action-item span {
        font-size: 10px;
    }
    .banner-slider {
        margin: 0 10px 16px;
        height: 160px;
    }
    .slide-content h3 {
        font-size: 20px;
    }
    .slide-content p {
        font-size: 12px;
    }
    .announcement {
        margin: 0 10px 12px;
        padding: 10px 12px;
    }
    .announcement span {
        font-size: 12px;
    }
    .top-bar .globe-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .section-title {
        font-size: 18px;
        padding: 0 10px;
    }
    .vip-card {
        margin: 0 10px 12px;
        padding: 16px;
    }
    .vip-card .platform-name {
        font-size: 22px;
    }
    .vip-card .platform-image,
    .platform-placeholder {
        width: 100px;
        height: 100px;
        font-size: 32px;
    }
    .wallet-card {
        margin: 0 10px 16px;
        padding: 22px;
    }
    .wallet-card .wallet-balance {
        font-size: 30px;
    }
    .wallet-buttons {
        padding: 0 10px;
        gap: 8px;
    }
    .wallet-buttons .btn {
        font-size: 13px;
        padding: 11px;
    }
    .service-center {
        padding: 0 10px;
    }
    .service-item {
        padding: 14px 12px;
        gap: 10px;
    }
    .service-item .si-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
    }
    .service-item .si-text {
        font-size: 13px;
    }
    .withdraw-feed {
        padding: 0 10px;
    }
    .page-title {
        font-size: 22px;
        padding: 16px 10px 12px;
    }
    .form-group {
        padding: 0 10px;
    }
    .profile-header {
        padding: 16px 10px;
    }
    .profile-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .profile-info .name {
        font-size: 16px;
    }
    .settings-item {
        padding: 14px 14px;
    }
    .settings-item .si-icon-wrap {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .settings-item .si-label {
        font-size: 14px;
    }
    .chat-fab {
        width: 48px;
        height: 48px;
        font-size: 20px;
        bottom: 84px;
        right: 14px;
    }
    .bottom-nav {
        padding: 6px 0 10px;
    }
    .nav-item i {
        font-size: 18px;
    }
    .nav-item span {
        font-size: 9px;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .quick-actions {
        gap: 6px;
        padding: 0 8px;
    }
    .action-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }
    .action-item span {
        font-size: 9px;
    }
    .banner-slider {
        height: 140px;
        margin: 0 8px 14px;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FLOATING CHAT BUTTON ===== */
.chat-fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: chatPulse 2s infinite;
}
.chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
}
@keyframes chatPulse {
    0%, 100% { box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35); }
    50% { box-shadow: 0 6px 32px rgba(99, 102, 241, 0.55); }
}

/* ===== USER CHAT PAGE — MODERN MESSAGING DESIGN ===== */
.chat-container {
    margin: 0 12px 90px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 420px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 20px 60px rgba(229,57,53,0.12), 0 4px 20px rgba(0,0,0,0.06);
}

/* Chat status header bar */
.chat-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(229,57,53,0.06) 0%, rgba(255,107,53,0.04) 100%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.chat-status-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 18px;
    box-shadow: 0 4px 14px var(--accent-glow);
    flex-shrink: 0;
}
.chat-status-info { flex: 1; }
.chat-status-name {
    font-size: 14px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 7px;
}
.chat-status-online {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 500; color: #10b981;
}
.chat-status-online::before {
    content: '';
    width: 7px; height: 7px; border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16,185,129,0.6);
    animation: onlinePulse 2s ease-in-out infinite;
}
@keyframes onlinePulse {
    0%, 100% { box-shadow: 0 0 6px rgba(16,185,129,0.5); }
    50%       { box-shadow: 0 0 14px rgba(16,185,129,0.8); }
}
.chat-status-sub {
    font-size: 11.5px; color: var(--text-light); margin-top: 1px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(229,57,53,0.2) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(229,57,53,0.2); border-radius: 4px; }

.chat-welcome {
    text-align: center;
    padding: 30px 20px 20px;
    color: var(--text-light);
}

/* ================================================================
   DEPOSIT STEP INDICATOR
================================================================ */
.deposit-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 4px;
}
.dep-step {
    display: flex;
    align-items: center;
    gap: 7px;
    opacity: 0.45;
}
.dep-step.active, .dep-step.completed { opacity: 1; }
.dep-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--text-light);
    flex-shrink: 0;
    transition: all 0.3s;
}
.dep-step.active .dep-step-num {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 3px 10px var(--accent-glow);
}
.dep-step.completed .dep-step-num {
    background: var(--green);
    color: #fff;
}
.dep-step-label {
    font-size: 12px; font-weight: 600;
    color: var(--text-light);
}
.dep-step.active .dep-step-label { color: var(--accent); }
.dep-step.completed .dep-step-label { color: var(--green); }
.dep-step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 10px;
    border-radius: 2px;
}
.dep-step-line.active { background: var(--gradient-primary); }

/* ================================================================
   SETTINGS LIST ENHANCEMENTS
================================================================ */
.settings-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text);
}

/* ================================================================
   INVITATION HERO BANNER
================================================================ */
.invite-hero-banner {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 60%, #a855f7 100%);
    margin: 0;
    padding: 36px 16px 36px;
    text-align: center;
}
.invite-card { border-radius: var(--radius); margin: 0 16px 16px; padding: 20px; }

/* ================================================================
   PROFILE PAGE — HERO BOTTOM SAFE PADDING
================================================================ */
.profile-hero { padding-bottom: 28px; }

.chat-welcome-icon {
    font-size: 52px;
    margin-bottom: 14px;
    opacity: 0.35;
    color: var(--accent);
    filter: drop-shadow(0 4px 12px var(--accent-glow));
}
.chat-welcome p {
    font-size: 13px; line-height: 1.6;
    color: var(--text-light);
    max-width: 220px; margin: 0 auto;
}

.chat-date-divider {
    text-align: center;
    margin: 14px 0;
}
.chat-date-divider span {
    font-size: 11px;
    color: var(--text-light);
    background: rgba(229,57,53,0.06);
    padding: 4px 14px;
    border-radius: 12px;
    border: 1px solid rgba(229,57,53,0.10);
}

/* Chat bubbles — modern WhatsApp-like style */
.chat-bubble {
    max-width: 78%;
    padding: 10px 14px 8px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.55;
    word-wrap: break-word;
    position: relative;
    animation: bubbleIn 0.18s ease;
}
@keyframes bubbleIn {
    from { opacity: 0; transform: scale(0.95) translateY(4px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.chat-bubble-content { word-break: break-word; }
.chat-bubble-time {
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.55;
    display: block;
}

/* User sent (right side) */
.chat-user {
    align-self: flex-end;
    background: var(--gradient-primary);
    color: #fff;
    border-bottom-right-radius: 5px;
    box-shadow: 0 4px 16px var(--accent-glow);
}
.chat-user .chat-bubble-time { color: rgba(255,255,255,0.7); text-align: right; }

/* Admin reply (left side) */
.chat-admin {
    align-self: flex-start;
    background: rgba(255,255,255,0.95);
    color: var(--text);
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.chat-admin .chat-bubble-time { color: var(--text-light); }

/* ===== CHAT INPUT AREA ===== */
.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0,0,0,0.06);
    align-items: center;
}

.chat-attach-btn {
    width: 40px; height: 40px;
    border-radius: 50%; border: none;
    background: rgba(229,57,53,0.08);
    color: var(--accent);
    font-size: 17px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.22s;
    flex-shrink: 0;
}
.chat-attach-btn:hover {
    background: var(--accent-glow);
    transform: rotate(15deg);
}

.chat-input {
    flex: 1;
    border: 1.5px solid rgba(229,57,53,0.15);
    border-radius: 26px;
    padding: 11px 20px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255,255,255,0.9);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--text);
}
.chat-input::placeholder { color: var(--text-light); }
.chat-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: #fff;
}

.chat-send-btn {
    width: 44px; height: 44px;
    border-radius: 50%; border: none;
    background: var(--gradient-primary);
    color: #fff; font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.chat-send-btn:hover { transform: scale(1.08); box-shadow: 0 6px 22px var(--accent-glow); }

/* ===== UPLOAD PREVIEW ===== */
.chat-upload-preview {
    padding: 10px 14px;
    background: rgba(255,255,255,0.8);
    border-top: 1px solid rgba(229,57,53,0.08);
}
.upload-preview-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(229,57,53,0.05);
    border-radius: 12px;
    border: 1px solid rgba(229,57,53,0.10);
}
.upload-preview-inner img {
    max-width: 56px; max-height: 56px;
    border-radius: 8px; object-fit: cover;
}
.upload-preview-inner span {
    flex: 1; font-size: 12px; color: var(--text);
    word-break: break-all;
}
.upload-preview-inner button {
    background: none; border: none;
    color: var(--text-light);
    font-size: 16px; cursor: pointer; padding: 4px;
    transition: color 0.2s;
}
.upload-preview-inner button:hover { color: var(--red); }

/* ===== CHAT MEDIA ===== */
.chat-img-preview {
    max-width: 210px; max-height: 210px;
    border-radius: 12px; display: block;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: transform 0.2s;
}
.chat-img-preview:hover { transform: scale(1.02); }

.chat-file-link {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 15px;
    background: rgba(229,57,53,0.07);
    border-radius: 10px; color: var(--accent-dark);
    text-decoration: none; font-size: 13px; font-weight: 500;
    border: 1px solid rgba(229,57,53,0.12);
    transition: background 0.2s;
}
.chat-file-link:hover { background: rgba(229,57,53,0.12); }

/* Responsive chat */
@media (max-width: 480px) {
    .chat-container { margin: 0 8px 80px; border-radius: 20px; height: calc(100vh - 190px); }
    .chat-bubble { max-width: 86%; font-size: 13.5px; }
}

/* ===== LANGUAGE MODAL ===== */
.lang-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.lang-modal-overlay.active {
    display: flex;
}
.lang-modal {
    width: 100%;
    max-width: 480px;
    max-height: 70vh;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: langSlideUp 0.3s ease;
}
@keyframes langSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.lang-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.lang-modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}
.lang-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
}
.lang-list {
    overflow-y: auto;
    padding: 8px 12px 20px;
}
.lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: var(--radius-xs);
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s;
}
.lang-item:hover {
    background: rgba(0,0,0,0.04);
}
.lang-item.active {
    background: var(--accent-glow);
    color: var(--accent-dark);
    font-weight: 600;
}
.lang-item .lang-native {
    font-size: 15px;
    font-weight: 600;
    min-width: 80px;
}
.lang-item .lang-name {
    font-size: 13px;
    color: var(--text-light);
    flex: 1;
}
.lang-item .fa-check {
    color: var(--accent);
    font-size: 14px;
}
