@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --white: #fafafe;
    --black: #160f2f;
    --text: #1a1a1a;
    --text-light: #7a7a7a;
    --accent: #7c3aed;
    --accent-light: #8b5cf6;
    --accent-dark: #5b21b6;
    --accent-glow: rgba(124, 58, 237, 0.24);
    --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(76, 29, 149, 0.10);
    --glass-shadow-lg: 0 12px 48px rgba(76, 29, 149, 0.16);
    --radius: 20px;
    --radius-sm: 14px;
    --radius-xs: 8px;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-warm: linear-gradient(135deg, #60a5fa, #8b5cf6, #5b21b6);
    --gradient-cool: linear-gradient(135deg, #2563eb, #7c3aed, #a855f7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: #f3f4ff;
    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(59, 130, 246, 0.18) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.18) 0%, transparent 50%),
                radial-gradient(ellipse at 40% 80%, rgba(96, 165, 250, 0.14) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 60%, rgba(91, 33, 182, 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 40%, rgba(124, 58, 237, 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(59, 130, 246, 0.14) 0%, transparent 45%),
                radial-gradient(ellipse at 30% 70%, rgba(124, 58, 237, 0.14) 0%, transparent 45%),
                radial-gradient(ellipse at 80% 80%, rgba(96, 165, 250, 0.10) 0%, transparent 45%),
                radial-gradient(ellipse at 15% 15%, rgba(91, 33, 182, 0.12) 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, #5b21b6 0%, #7c3aed 50%, #3b82f6 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;
}


/* ==========================================================
   HOLAMAAL PROFESSIONAL FINTECH THEME OVERRIDES
   Login / Register / Home Slider / Revenue Ticker / Navbar
   ========================================================== */
:root {
    --white: #F8FCFF;
    --black: #071B3A;
    --text: #11203B;
    --text-light: #6C7A93;
    --muted: #90A0B9;
    --accent: #0EA5A4;
    --accent-light: #22D3EE;
    --accent-dark: #075E73;
    --accent-glow: rgba(14, 165, 164, .24);
    --brand-navy: #071B3A;
    --brand-blue: #1D4ED8;
    --brand-teal: #0EA5A4;
    --brand-cyan: #67E8F9;
    --brand-gold: #FBBF24;
    --page-bg: #EAF3FF;
    --glass-bg: rgba(255,255,255,.86);
    --glass-border: rgba(255,255,255,.72);
    --glass-shadow: 0 18px 48px rgba(7, 27, 58, .10);
    --glass-shadow-lg: 0 24px 70px rgba(7, 27, 58, .16);
    --radius: 28px;
    --radius-sm: 18px;
    --gradient-primary: linear-gradient(135deg, #0EA5A4 0%, #1D4ED8 100%);
    --gradient-cool: linear-gradient(135deg, #071B3A 0%, #075E73 55%, #0EA5A4 100%);
}

html, body { background: var(--page-bg); color: var(--text); }
body.page-login, body.page-register { max-width: none; padding-bottom: 0; background: #f7fbff; }
body.page-login .main-content, body.page-register .main-content { max-width: none; padding: 0; }
body.page-login .bg-gradient, body.page-register .bg-gradient { display: none; }
.glass-pro { background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.72); box-shadow: 0 24px 70px rgba(7,27,58,.11), inset 0 1px 0 rgba(255,255,255,.85); backdrop-filter: blur(26px) saturate(170%); -webkit-backdrop-filter: blur(26px) saturate(170%); }

/* Auth pages */
.hm-auth-shell { min-height: 100vh; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 42px 24px 72px; isolation: isolate; }
.hm-auth-shell::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 14% 16%, rgba(103,232,249,.22), transparent 24%), radial-gradient(circle at 88% 12%, rgba(251,191,36,.12), transparent 23%), linear-gradient(135deg, #FFFFFF 0%, #F4FAFF 46%, #E7F2FF 100%); z-index:-3; }
.hm-auth-shell::after { content:""; position:absolute; inset:auto -10% 0 -10%; height: 38%; background: repeating-linear-gradient(165deg, rgba(29,78,216,.10) 0 1px, transparent 1px 14px); mask-image: linear-gradient(to top, #000, transparent); -webkit-mask-image: linear-gradient(to top, #000, transparent); z-index:-2; animation: hmWaveFlow 9s linear infinite; }
@keyframes hmWaveFlow { from { transform: translateX(0); } to { transform: translateX(-80px); } }
.hm-auth-lang { position:absolute; right: 72px; top: 52px; display:flex; align-items:center; gap:10px; border:1px solid rgba(255,255,255,.8); background:rgba(255,255,255,.88); color:var(--brand-navy); padding:12px 18px; border-radius:18px; font-weight:800; box-shadow:0 10px 30px rgba(7,27,58,.08); cursor:pointer; }
.hm-auth-brand { width: 390px; max-width: 72vw; margin-bottom: 26px; }
.hm-auth-brand img { width: 100%; display:block; }
.hm-animate-logo { animation: hmLogoEnter .9s cubic-bezier(.2,.8,.2,1) both; transform-origin:center; }
.hm-animate-logo img { filter: drop-shadow(0 14px 24px rgba(7,27,58,.12)); }
@keyframes hmLogoEnter { 0% { opacity:0; transform: translateY(-20px) scale(.86) rotateX(18deg); filter: blur(8px); } 70% { transform: translateY(3px) scale(1.02); } 100% { opacity:1; transform: translateY(0) scale(1); filter: blur(0); } }
.hm-auth-card { width: min(620px, calc(100vw - 34px)); border-radius: 28px; padding: 48px 58px 36px; animation: hmCardIn .65s .12s cubic-bezier(.2,.8,.2,1) both; }
@keyframes hmCardIn { from { opacity:0; transform: translateY(28px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }
.hm-auth-card-head { text-align:center; margin-bottom: 34px; }
.hm-auth-card-head h1 { margin:0; color:var(--brand-navy); font-size:34px; letter-spacing:-.7px; font-weight:900; }
.hm-auth-card-head p { color:#687896; margin-top:10px; font-size:16px; }
.hm-form { display:flex; flex-direction:column; gap:18px; }
.hm-field { height:62px; border-radius:18px; border:1px solid #DCE6F3; background: rgba(255,255,255,.78); display:flex; align-items:center; gap:16px; padding:0 20px; transition:.22s ease; }
.hm-field:focus-within { border-color: rgba(14,165,164,.65); box-shadow:0 0 0 5px rgba(14,165,164,.10), 0 12px 26px rgba(7,27,58,.06); transform:translateY(-1px); }
.hm-field > i { width:20px; color:#8DA0BD; font-size:18px; text-align:center; }
.hm-field input { flex:1; min-width:0; border:none; outline:none; background:transparent; font: 700 17px/1 Inter, sans-serif; color:var(--brand-navy); }
.hm-field input::placeholder { color:#91A0BA; font-weight:650; }
.hm-eye { border:0; background:transparent; color:#0C1830; font-size:18px; cursor:pointer; padding:6px; }
.hm-agree { display:flex; align-items:center; gap:11px; color:#31405B; font-size:15px; line-height:1.3; }
.hm-agree input { width:21px; height:21px; accent-color: var(--brand-teal); }
.hm-agree a, .hm-auth-switch a, .hm-auth-footer a { color:var(--brand-teal); font-weight:900; text-decoration:none; }
.hm-primary-btn { width:100%; min-height:68px; border:0; border-radius:18px; background: linear-gradient(100deg, #0EA5A4 0%, #075E73 48%, #1D4ED8 100%); color:#fff; font-size:18px; letter-spacing:.8px; font-weight:900; cursor:pointer; box-shadow:0 18px 34px rgba(14,165,164,.26); display:flex; align-items:center; justify-content:center; gap:14px; transition:.25s ease; }
.hm-primary-btn:hover { transform: translateY(-3px); box-shadow:0 22px 48px rgba(29,78,216,.26); }
.hm-auth-switch { text-align:center; margin-top:28px; color:#6C7A93; font-weight:650; font-size:15px; }
.hm-auth-error { margin: -10px 0 20px; border-radius: 16px; }
.hm-auth-side-art { position:absolute; right:7%; bottom:13%; width:330px; height:330px; z-index:-1; opacity:.9; }
.hm-phone-card { position:absolute; right:34px; top:0; width:190px; height:276px; border-radius:32px; background:linear-gradient(145deg,#081C3A,#0B4E6B); border:3px solid rgba(255,255,255,.5); color:#fff; padding:34px 22px; transform: rotate(8deg); box-shadow:0 28px 70px rgba(7,27,58,.22); }
.hm-phone-card span { display:block; color:#BFEFFF; font-size:14px; font-weight:800; }
.hm-phone-card strong { display:block; margin-top:12px; font-size:28px; }
.hm-phone-card small { color:#67E8F9; font-weight:800; }
.hm-phone-card svg { color:#22D3EE; width:100%; margin-top:34px; }
.hm-coins { position:absolute; right:0; bottom:0; width:170px; height:84px; border-radius:50%; background: radial-gradient(ellipse at center, #FDE68A 0 21%, #FBBF24 22% 42%, transparent 43%); filter: drop-shadow(0 16px 22px rgba(7,27,58,.18)); }
.hm-auth-footer { position:absolute; bottom:26px; text-align:center; color:#6C7A93; font-weight:650; font-size:14px; line-height:2; }
.hm-register-layout { width:min(1320px, calc(100vw - 60px)); display:grid; grid-template-columns: 1fr 620px 1fr; align-items:center; gap:58px; }
.hm-auth-register { justify-content:center; }
.hm-auth-register .hm-auth-card { width:620px; padding-top:38px; padding-bottom:28px; }
.hm-register-card .hm-auth-card-head { margin-bottom: 24px; }
.hm-register-card .hm-auth-card-head h1 { font-size:30px; }
.hm-register-card .hm-field { height:58px; }
.hm-register-card .hm-primary-btn { min-height:62px; }
.hm-register-copy h2 { color:var(--brand-navy); font-size:34px; line-height:1.18; letter-spacing:-.8px; font-weight:900; margin:0 0 22px; }
.hm-register-copy h2 span { color:var(--brand-teal); }
.hm-register-copy p { max-width:360px; color:#5D6D89; font-size:16px; line-height:1.65; margin-bottom:46px; }
.hm-mini-chart-card { width:250px; border-radius:28px; padding:24px; background:rgba(255,255,255,.62); border:1px solid rgba(255,255,255,.8); box-shadow:0 20px 60px rgba(7,27,58,.12); color:var(--brand-navy); display:grid; gap:8px; }
.hm-mini-chart-card i { width:54px; height:54px; display:grid; place-items:center; border-radius:18px; color:#fff; background:var(--gradient-primary); font-size:24px; }
.hm-mini-chart-card strong { font-size:26px; }
.hm-mini-chart-card small { color:#6C7A93; font-weight:700; }
.hm-benefit-stack { display:grid; gap:28px; }
.hm-benefit-stack div { display:grid; grid-template-columns:64px 1fr; column-gap:18px; align-items:center; color:var(--brand-navy); }
.hm-benefit-stack i { grid-row:1 / span 2; width:64px; height:64px; border-radius:18px; display:grid; place-items:center; color:#fff; font-size:24px; background:var(--gradient-primary); box-shadow:0 16px 34px rgba(29,78,216,.18); }
.hm-benefit-stack strong { font-size:16px; font-weight:900; }
.hm-benefit-stack span { color:#6C7A93; font-weight:650; margin-top:4px; }

/* Home app */
body.page-home { max-width: none; background:#EAF3FF; }
body.page-home .main-content { max-width:none; padding:0 0 90px; }
.hm-mobile-app-shell { width:min(960px, 100%); margin:0 auto; padding:28px 28px 110px; min-height:100vh; background:linear-gradient(180deg,#EAF3FF,#F8FCFF); position:relative; overflow:hidden; }
.hm-mobile-app-shell::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 14% 3%, rgba(103,232,249,.26), transparent 28%), radial-gradient(circle at 90% 24%, rgba(29,78,216,.13), transparent 24%); pointer-events:none; }
.hm-app-header { position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.hm-app-brand img { width:310px; max-width:70vw; display:block; }
.hm-round-icon { width:58px; height:58px; border:0; border-radius:50%; background:rgba(255,255,255,.88); color:var(--brand-navy); font-size:24px; box-shadow:0 12px 30px rgba(7,27,58,.10); cursor:pointer; }
.hm-hero-slider { position:relative; z-index:2; border-radius:36px; overflow:visible; margin-bottom:24px; }
.hm-hero-track { display:flex; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.hm-hero-slide { flex:0 0 100%; min-height:420px; position:relative; border-radius:36px; overflow:hidden; color:#fff; box-shadow:0 26px 60px rgba(7,27,58,.19); }
.hm-hero-slide img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hm-hero-slide::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(7,27,58,.94) 0%, rgba(7,27,58,.68) 42%, rgba(7,27,58,.08) 74%); }
.hm-hero-copy { position:relative; z-index:2; width:min(54%, 520px); padding:66px 72px; }
.hm-hero-copy span { display:inline-flex; padding:10px 18px; border-radius:999px; border:1px solid rgba(255,255,255,.28); background:rgba(255,255,255,.12); font-weight:900; margin-bottom:28px; }
.hm-hero-copy h1 { font-size:42px; line-height:1.12; letter-spacing:-1px; font-weight:950; margin:0 0 18px; }
.hm-hero-copy p { color:#D7E7F6; font-size:18px; line-height:1.6; max-width:460px; margin:0 0 34px; }
.hm-hero-copy a { display:inline-flex; align-items:center; gap:12px; color:#fff; text-decoration:none; background:linear-gradient(135deg,#0EA5A4,#22D3EE); padding:17px 30px; border-radius:20px; font-size:18px; font-weight:950; box-shadow:0 18px 34px rgba(14,165,164,.28); }
.hm-slide-nav { position:absolute; top:50%; transform:translateY(-50%); z-index:4; width:58px; height:58px; border:0; border-radius:50%; background:rgba(7,27,58,.60); color:#fff; font-size:22px; cursor:pointer; backdrop-filter: blur(10px); }
.hm-prev { left:-24px; } .hm-next { right:-24px; }
.hm-hero-dots { display:flex; justify-content:center; gap:14px; margin-top:20px; }
.hm-hero-dots button { width:15px; height:15px; border:0; border-radius:50%; background:#AEBBD0; cursor:pointer; transition:.25s ease; }
.hm-hero-dots button.active { width:42px; border-radius:999px; background:var(--brand-teal); }
.hm-action-panel { position:relative; z-index:2; border-radius:28px; padding:20px; display:grid; grid-template-columns: repeat(4,1fr); gap:18px; margin-bottom:26px; }
.hm-action-card { min-height:180px; border-radius:24px; text-decoration:none; background:rgba(255,255,255,.78); border:1px solid rgba(211,226,243,.9); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:var(--brand-navy); transition:.25s ease; }
.hm-action-card:hover { transform:translateY(-6px); box-shadow:0 20px 42px rgba(7,27,58,.12); }
.hm-action-card > i { width:64px; height:64px; border-radius:22px; display:grid; place-items:center; color:#fff; font-size:28px; box-shadow:0 14px 30px rgba(7,27,58,.12); }
.hm-action-card.recharge > i { background:linear-gradient(135deg,#0EA5A4,#075E73); }
.hm-action-card.withdraw > i { background:linear-gradient(135deg,#2563EB,#1D4ED8); }
.hm-action-card.task > i { background:linear-gradient(135deg,#8B5CF6,#6D28D9); }
.hm-action-card.support > i { background:linear-gradient(135deg,#F59E0B,#F97316); }
.hm-action-card strong { font-size:22px; font-weight:950; }
.hm-action-card span { color:#6C7A93; font-weight:700; }
.hm-action-card em { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; color:#fff; background:rgba(14,165,164,.65); font-style:normal; font-size:13px; margin-top:4px; }
.hm-wallet-strip { position:relative; z-index:2; border-radius:28px; padding:22px 28px; display:grid; grid-template-columns:1fr 1fr auto; gap:18px; align-items:center; margin-bottom:26px; }
.hm-wallet-strip div { display:grid; gap:5px; }
.hm-wallet-strip span { color:#6C7A93; font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.4px; }
.hm-wallet-strip strong { color:var(--brand-navy); font-size:26px; font-weight:950; }
.hm-wallet-strip small { color:var(--brand-teal); font-size:14px; }
.hm-wallet-strip a { text-decoration:none; color:#fff; background:var(--gradient-primary); padding:14px 24px; border-radius:17px; font-weight:900; }
.hm-revenue-panel { position:relative; z-index:2; border-radius:30px; padding:26px 30px 32px; margin-bottom:26px; }
.hm-section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.hm-section-head h2 { margin:0; display:flex; align-items:center; gap:12px; color:var(--brand-navy); font-size:26px; letter-spacing:-.4px; font-weight:950; }
.hm-section-head h2 span { width:7px; height:30px; border-radius:999px; background:var(--brand-teal); display:inline-block; }
.hm-section-head em { display:flex; align-items:center; gap:8px; color:var(--brand-teal); font-style:normal; font-weight:900; }
.hm-section-head em i { width:10px; height:10px; border-radius:50%; background:var(--brand-teal); box-shadow:0 0 0 6px rgba(14,165,164,.12); }
.hm-revenue-ticker { position:relative; height:430px; border-radius:26px; overflow:hidden; background:linear-gradient(180deg,rgba(239,248,255,.9),rgba(255,255,255,.72)); padding:46px 34px; }
.hm-revenue-ticker::before, .hm-revenue-ticker::after { content:""; position:absolute; left:0; right:0; height:72px; z-index:3; pointer-events:none; }
.hm-revenue-ticker::before { top:0; background:linear-gradient(#F4FAFF,rgba(244,250,255,0)); }
.hm-revenue-ticker::after { bottom:0; background:linear-gradient(rgba(244,250,255,0),#F4FAFF); }
.hm-up-cue, .hm-down-cue { position:absolute; left:50%; transform:translateX(-50%); z-index:5; color:#2563EB; font-size:22px; opacity:.75; animation: hmCue 1.4s ease-in-out infinite; }
.hm-up-cue { top:18px; } .hm-down-cue { bottom:18px; }
@keyframes hmCue { 0%,100% { transform:translateX(-50%) translateY(0); opacity:.52; } 50% { transform:translateX(-50%) translateY(-5px); opacity:1; } }
.hm-revenue-inner { animation: hmRevenueScroll 18s linear infinite; }
.hm-revenue-ticker:hover .hm-revenue-inner { animation-play-state:paused; }
@keyframes hmRevenueScroll { 0% { transform: translateY(0); } 100% { transform: translateY(-33.333%); } }
.hm-revenue-row { display:grid; grid-template-columns: 52px 1.1fr 1.5fr 1fr; gap:20px; align-items:center; min-height:68px; border-bottom:1px solid rgba(144,160,185,.16); color:var(--brand-navy); }
.hm-feed-avatar { width:42px; height:42px; border-radius:16px; display:grid; place-items:center; color:#fff; }
.hm-feed-avatar.av1{background:linear-gradient(135deg,#2DD4BF,#0EA5A4)} .hm-feed-avatar.av2{background:linear-gradient(135deg,#60A5FA,#2563EB)} .hm-feed-avatar.av3{background:linear-gradient(135deg,#A78BFA,#7C3AED)} .hm-feed-avatar.av4{background:linear-gradient(135deg,#38BDF8,#0EA5E9)}
.hm-revenue-row strong { font-size:18px; } .hm-revenue-row span { color:#5B6B84; font-size:18px; } .hm-revenue-row em { color:var(--brand-teal); font-size:18px; font-style:normal; font-weight:950; text-align:right; }
.hm-level-preview { position:relative; z-index:2; display:grid; gap:18px; }
.hm-level-card { display:flex; align-items:center; gap:22px; padding:26px; border-radius:26px; text-decoration:none; color:var(--brand-navy); border-left:7px solid var(--vip-color); }
.hm-level-logo { width:90px; height:90px; border-radius:24px; display:grid; place-items:center; background:linear-gradient(135deg,rgba(14,165,164,.10),rgba(29,78,216,.10)); }
.hm-level-logo img { width:62px; }
.hm-level-card div:nth-child(2) { display:grid; gap:7px; flex:1; }
.hm-level-card strong { font-size:24px; font-weight:950; } .hm-level-card span { color:#6C7A93; font-weight:800; } .hm-level-card small { color:#6C7A93; font-weight:800; } .hm-level-card em { color:var(--vip-color); font-style:normal; font-weight:950; font-size:20px; }
.hm-page-loader { position:fixed; inset:0; z-index:99999; display:grid; place-items:center; align-content:center; gap:18px; background:linear-gradient(135deg,#071B3A,#075E73,#0EA5A4); color:#fff; font-weight:900; letter-spacing:.5px; transition:.5s ease; }
.hm-page-loader.hidden { opacity:0; visibility:hidden; }
.hm-loader-logo { width:100px; height:100px; border-radius:28px; background:rgba(255,255,255,.12); display:grid; place-items:center; animation:hmLoaderLogo 1.2s ease-in-out infinite; }
.hm-loader-logo img { width:76px; }
@keyframes hmLoaderLogo { 0%,100%{transform:scale(1) rotate(0)} 50%{transform:scale(1.08) rotate(4deg)} }
.hm-welcome-popup { position:fixed; inset:0; z-index:9999; display:none; place-items:center; background:rgba(5,18,38,.62); backdrop-filter:blur(9px); padding:22px; }
.hm-welcome-popup.show { display:grid; animation:fadeInOverlay .25s ease both; }
.hm-popup-card { position:relative; width:min(470px, 100%); border-radius:32px; background:linear-gradient(180deg,#fff,#F1FAFF); padding:34px 34px 30px; text-align:center; box-shadow:0 30px 90px rgba(0,0,0,.22); animation:popIn .35s ease both; }
.hm-popup-card img { width:260px; max-width:86%; margin-bottom:16px; } .hm-popup-card h3 { color:var(--brand-navy); font-size:30px; margin-bottom:12px; font-weight:950; text-transform:uppercase; } .hm-popup-card p { color:#4C5E78; line-height:1.7; font-size:16px; } .hm-popup-card > button:not(.hm-popup-close) { margin-top:24px; width:100%; height:58px; border:0; border-radius:18px; background:var(--gradient-primary); color:#fff; font-size:18px; font-weight:950; cursor:pointer; }
.hm-popup-close { position:absolute; right:18px; top:18px; width:38px; height:38px; border:0; border-radius:50%; background:#EDF5FF; color:var(--brand-navy); cursor:pointer; font-size:18px; }

/* Bottom nav */
.hm-bottom-nav { max-width:960px; left:50%; bottom:18px; transform:translateX(-50%); width:calc(100% - 32px); border-radius:30px; padding:14px 18px; background:rgba(255,255,255,.90); border:1px solid rgba(255,255,255,.78); box-shadow:0 -4px 40px rgba(7,27,58,.12); }
.hm-bottom-nav .nav-item { color:#5F6D82; border-radius:18px; padding:10px 22px; font-weight:800; min-width:86px; }
.hm-bottom-nav .nav-item i { font-size:24px; } .hm-bottom-nav .nav-item span { font-size:13px; font-weight:800; }
.hm-bottom-nav .nav-item.active { color:var(--brand-teal); background:rgba(14,165,164,.08); }
.hm-bottom-nav .nav-item.active::before { display:none; }
.hm-bottom-nav .nav-item.active i { filter:none; transform:scale(1.1); }
.hm-bottom-nav .hm-nav-grab { margin-top:-42px; }
.hm-bottom-nav .hm-nav-grab i { width:76px; height:76px; border-radius:50%; display:grid; place-items:center; color:#fff; background:var(--gradient-primary); box-shadow:0 16px 34px rgba(14,165,164,.32); border:8px solid rgba(255,255,255,.92); }
.hm-bottom-nav .hm-nav-grab span { margin-top:2px; }
.chat-fab { background:linear-gradient(135deg,#1D4ED8,#0EA5A4)!important; box-shadow:0 16px 36px rgba(29,78,216,.25)!important; }

/* Profile button polish */
.profile-hero-bg { background:linear-gradient(135deg,#071B3A,#075E73,#0EA5A4)!important; }
.profile-balance-card { border-radius:28px!important; background:rgba(255,255,255,.90)!important; box-shadow:0 20px 55px rgba(7,27,58,.12)!important; }
.pbc-btn-primary { background:var(--gradient-primary)!important; border:0!important; color:#fff!important; box-shadow:0 12px 24px rgba(14,165,164,.22)!important; }
.pbc-btn-outline { border:1.5px solid rgba(14,165,164,.24)!important; color:var(--brand-navy)!important; background:rgba(14,165,164,.06)!important; }

@media (max-width: 720px) {
    body.page-login, body.page-register, body.page-home { max-width:480px; margin:0 auto; }
    .hm-auth-shell { justify-content:flex-start; padding:58px 20px 42px; }
    .hm-auth-shell::after { height:28%; }
    .hm-auth-lang { right:22px; top:20px; width:52px; height:52px; padding:0; justify-content:center; border-radius:50%; }
    .hm-auth-lang span, .hm-auth-lang .fa-angle-down { display:none; }
    .hm-auth-brand { width:210px; margin:44px 0 26px; }
    .hm-auth-card, .hm-auth-register .hm-auth-card { width:100%; padding:24px 20px 22px; border-radius:26px; }
    .hm-auth-card-head h1 { font-size:26px; } .hm-auth-card-head p { font-size:14px; }
    .hm-field { height:54px; border-radius:17px; padding:0 16px; }
    .hm-field input { font-size:15px; text-align:left; }
    .hm-primary-btn { min-height:58px; border-radius:18px; font-size:16px; }
    .hm-auth-side-art, .hm-register-copy, .hm-benefit-stack { display:none; }
    .hm-auth-footer { position:relative; bottom:auto; margin-top:26px; }
    .hm-register-layout { display:block; width:100%; }

    .hm-mobile-app-shell { width:100%; padding:20px 12px 98px; }
    .hm-app-brand img { width:210px; max-width:66vw; }
    .hm-round-icon { width:48px; height:48px; font-size:21px; }
    .hm-hero-slider { border-radius:24px; margin-bottom:20px; overflow:visible; }
    .hm-hero-slide { min-height:506px; border-radius:24px; }
    .hm-hero-slide::after { background:linear-gradient(180deg, rgba(7,27,58,.82), rgba(7,27,58,.46) 45%, rgba(7,27,58,.86)); }
    .hm-hero-slide img { object-position:center; }
    .hm-hero-copy { width:100%; padding:32px 30px; }
    .hm-hero-copy span { margin-bottom:20px; font-size:14px; }
    .hm-hero-copy h1 { font-size:34px; line-height:1.16; }
    .hm-hero-copy p { font-size:16px; }
    .hm-slide-nav { width:44px; height:44px; font-size:17px; } .hm-prev { left:-8px; } .hm-next { right:-8px; }
    .hm-action-panel { grid-template-columns:repeat(2,1fr); padding:14px; gap:12px; border-radius:24px; }
    .hm-action-card { min-height:150px; border-radius:22px; } .hm-action-card strong { font-size:18px; }
    .hm-wallet-strip { grid-template-columns:1fr; padding:20px; } .hm-wallet-strip strong { font-size:22px; } .hm-wallet-strip a { text-align:center; }
    .hm-revenue-panel { padding:18px 14px 20px; border-radius:24px; }
    .hm-section-head h2 { font-size:24px; }
    .hm-revenue-ticker { height:390px; padding:42px 14px; }
    .hm-revenue-row { grid-template-columns:44px 1fr; gap:8px 12px; min-height:72px; }
    .hm-revenue-row span { font-size:14px; } .hm-revenue-row em { grid-column:2; text-align:left; font-size:16px; }
    .hm-level-card { padding:18px; gap:14px; } .hm-level-logo { width:64px; height:64px; } .hm-level-logo img { width:46px; } .hm-level-card em { font-size:15px; }
    .hm-bottom-nav { width:calc(100% - 18px); bottom:8px; border-radius:26px; padding:10px 8px 12px; max-width:480px; }
    .hm-bottom-nav .nav-item { min-width:auto; padding:7px 8px; flex:1; } .hm-bottom-nav .nav-item span { font-size:11px; } .hm-bottom-nav .nav-item i { font-size:22px; }
    .hm-bottom-nav .hm-nav-grab { margin-top:-32px; } .hm-bottom-nav .hm-nav-grab i { width:64px; height:64px; border-width:7px; }
    .chat-fab { right:18px; bottom:104px; }
}

@media (min-width: 721px) and (max-width: 1050px) {
    .hm-mobile-app-shell { width:100%; padding-left:22px; padding-right:22px; }
    .hm-hero-copy { width:62%; padding:50px; } .hm-hero-copy h1 { font-size:38px; }
    .hm-action-card { min-height:160px; }
    .hm-register-layout { grid-template-columns: 1fr; width:min(660px, calc(100vw - 44px)); gap:28px; }
    .hm-register-copy, .hm-benefit-stack { display:none; }
}

/* =========================================================
   HOLAMAAL PRO UI PATCH v2: unified pages, profiles, settings
   ========================================================= */
:root {
    --brand-navy: #071B3A;
    --brand-slate: #10243F;
    --brand-teal: #0EA5A4;
    --brand-cyan: #22D3EE;
    --brand-blue: #1D4ED8;
    --brand-gold: #F59E0B;
    --page-bg: #EAF3FF;
    --card-bg-pro: rgba(255,255,255,.90);
    --line-pro: rgba(149, 170, 199, .22);
    --shadow-pro: 0 18px 55px rgba(7, 27, 58, .12);
    --shadow-soft-pro: 0 10px 32px rgba(7, 27, 58, .08);
    --gradient-primary: linear-gradient(135deg,#0EA5A4 0%,#075E73 48%,#1D4ED8 100%);
    --gradient: var(--gradient-primary);
    --border-color: rgba(149, 170, 199, .22);
}

body:not(.page-login):not(.page-register):not(.page-home) {
    background: linear-gradient(135deg,#F7FBFF 0%,#EAF3FF 45%,#EEF2FF 100%);
}
body:not(.page-login):not(.page-register):not(.page-home)::before {
    content:"";
    position:fixed;
    inset:0;
    background: radial-gradient(circle at 13% 10%, rgba(34,211,238,.18), transparent 27%),
                radial-gradient(circle at 86% 8%, rgba(29,78,216,.10), transparent 25%),
                radial-gradient(circle at 80% 86%, rgba(14,165,164,.14), transparent 30%);
    pointer-events:none;
    z-index:0;
}
body:not(.page-login):not(.page-register):not(.page-home) .main-content {
    position:relative;
    z-index:1;
    animation: hmPageEnter .55s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes hmPageEnter { from{opacity:0; transform:translateY(16px) scale(.985);} to{opacity:1; transform:translateY(0) scale(1);} }

.hm-route-loader {
    position:fixed;
    inset:0;
    z-index:99998;
    display:grid;
    place-items:center;
    align-content:center;
    gap:14px;
    background:linear-gradient(135deg,#071B3A,#075E73,#0EA5A4);
    color:#fff;
    font-weight:950;
    letter-spacing:.8px;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:.35s ease;
}
.hm-route-loader.show { opacity:1; visibility:visible; }
.hm-route-logo {
    width:92px;
    height:92px;
    border-radius:28px;
    display:grid;
    place-items:center;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.20);
    box-shadow:0 22px 60px rgba(0,0,0,.24);
    animation:hmRoutePulse 1s ease-in-out infinite;
}
.hm-route-logo img { width:70px; filter:drop-shadow(0 12px 22px rgba(0,0,0,.18)); }
@keyframes hmRoutePulse { 0%,100%{transform:scale(1) rotate(0);} 50%{transform:scale(1.07) rotate(3deg);} }

/* Shared professional title/back spacing */
.back-btn {
    color:var(--brand-navy)!important;
    width:52px;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.68);
    border:1px solid rgba(255,255,255,.88);
    box-shadow:0 10px 26px rgba(7,27,58,.08);
    margin:24px 0 22px;
    text-decoration:none;
}
.page-title,
body:not(.page-home) h1.page-title {
    color:var(--brand-navy)!important;
    font-weight:950!important;
    letter-spacing:-.7px;
}
.glass, .glass-sm, .settings-item, .service-item, .chat-container, .order-card, .transaction-item {
    border-color:rgba(255,255,255,.74)!important;
    background:var(--card-bg-pro)!important;
    box-shadow:var(--shadow-soft-pro)!important;
}

/* Settings page full refresh */
.page-settings .main-content { max-width:980px; padding-bottom:120px; }
.page-settings .settings-list { max-width:760px; margin:0 0 120px; padding:0; }
.page-settings .settings-item {
    min-height:96px;
    padding:20px 26px!important;
    border-radius:24px!important;
    margin-bottom:16px!important;
    display:flex;
    align-items:center;
    gap:18px;
    color:var(--brand-navy);
    text-decoration:none;
    transition:.24s ease;
}
.page-settings .settings-item:hover { transform:translateY(-4px) translateX(4px); box-shadow:0 20px 50px rgba(7,27,58,.12)!important; }
.page-settings .settings-item .si-icon-wrap,
.settings-item .si-icon-wrap {
    width:64px!important;
    height:64px!important;
    border-radius:20px!important;
    display:grid!important;
    place-items:center!important;
    font-size:24px!important;
    color:#fff!important;
    box-shadow:0 14px 30px rgba(7,27,58,.10);
}
.si-icon-wrap.login-pass { background:linear-gradient(135deg,#2563EB,#1D4ED8)!important; }
.si-icon-wrap.wd-pass { background:linear-gradient(135deg,#8B5CF6,#6D28D9)!important; }
.si-icon-wrap.wd-method { background:linear-gradient(135deg,#0EA5A4,#075E73)!important; }
.si-icon-wrap.logout { background:linear-gradient(135deg,#F43F5E,#EF4444)!important; }
.page-settings .si-label { font-size:18px!important; color:var(--brand-navy); font-weight:900!important; }
.page-settings .si-desc { font-size:13px!important; color:#687896!important; margin-top:4px; }
.page-settings .si-arrow { color:#8FA1BD!important; }
.sett-modal-overlay { backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.sett-modal-box { border-radius:28px!important; background:linear-gradient(180deg,#fff,#F4FAFF)!important; box-shadow:0 32px 90px rgba(7,27,58,.22)!important; }
.sett-submit-btn { background:var(--gradient-primary)!important; box-shadow:0 16px 34px rgba(14,165,164,.25)!important; }

/* Chat support refresh */
.page-chat .main-content { max-width:980px; padding-bottom:120px; }
.page-chat .page-title { font-size:44px; color:var(--brand-teal)!important; margin:10px 0 26px; }
.chat-container {
    width:min(780px, 100%);
    min-height:620px;
    height:calc(100vh - 250px);
    border-radius:32px!important;
    overflow:hidden;
    background:rgba(255,255,255,.94)!important;
    box-shadow:0 28px 80px rgba(7,27,58,.13)!important;
}
.chat-status-bar {
    background:linear-gradient(90deg, rgba(255,255,255,.96), rgba(239,248,255,.96))!important;
    border-bottom:1px solid var(--line-pro)!important;
    padding:20px 24px!important;
}
.chat-status-avatar { background:var(--gradient-primary)!important; color:#fff!important; box-shadow:0 14px 30px rgba(14,165,164,.22); }
.chat-status-name { color:var(--brand-navy)!important; font-weight:950!important; }
.chat-status-online { color:#10B981!important; }
.chat-welcome-icon { color:var(--brand-teal)!important; background:rgba(14,165,164,.10)!important; }
.chat-input-area {
    background:rgba(255,255,255,.96)!important;
    border-top:1px solid var(--line-pro)!important;
    padding:16px 20px!important;
}
.chat-input { border:1px solid #DCE6F3!important; background:#fff!important; border-radius:999px!important; }
.chat-input:focus { box-shadow:0 0 0 5px rgba(14,165,164,.10)!important; border-color:rgba(14,165,164,.45)!important; }
.chat-send-btn { background:var(--gradient-primary)!important; box-shadow:0 12px 26px rgba(14,165,164,.24)!important; }
.chat-attach-btn { background:#FFF1F2!important; color:#0EA5A4!important; }

/* Profile page refresh */
.page-profile .main-content { max-width:1120px; padding:0 34px 130px; }
.profile-hero { padding:0 0 24px!important; margin:0 0 0!important; border-radius:0 0 34px 34px; }
.profile-hero-bg { background:linear-gradient(115deg,#071B3A 0%,#075E73 52%,#0EA5A4 100%)!important; border-radius:0 0 34px 34px!important; }
.profile-hero-bg::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 92% 8%, rgba(255,255,255,.14), transparent 18%), radial-gradient(circle at 10% 90%, rgba(34,211,238,.12), transparent 28%); }
.profile-hero-content { padding:30px 24px 2px!important; align-items:center!important; }
.profile-avatar { width:96px!important; height:96px!important; border:3px solid rgba(255,255,255,.56)!important; font-size:34px!important; }
.profile-hero-name { font-size:30px!important; font-weight:950!important; }
.profile-vip-badge { background:rgba(255,255,255,.18)!important; border:1px solid rgba(255,255,255,.28)!important; color:#fff!important; }
.profile-settings-btn.profile-logout-btn {
    width:auto!important;
    min-width:120px;
    padding:0 18px;
    border-radius:18px!important;
    gap:9px;
    font-weight:900;
    font-size:14px!important;
    background:rgba(255,255,255,.16)!important;
}
.profile-settings-btn.profile-logout-btn span { display:inline; }
.profile-balance-card {
    margin:-8px 0 26px!important;
    padding:28px!important;
    display:grid!important;
    grid-template-columns:1fr auto;
    gap:20px;
    align-items:center;
}
.pbc-amount { color:var(--brand-navy)!important; font-size:36px!important; }
.pbc-actions { flex-direction:row!important; gap:14px!important; }
.pbc-btn {
    min-width:170px;
    min-height:58px;
    display:flex!important;
    align-items:center;
    justify-content:center;
    gap:10px;
    border-radius:18px!important;
    font-size:16px!important;
    font-weight:950!important;
}
.service-grid { gap:18px!important; }
.service-item {
    min-height:160px;
    border-radius:26px!important;
    flex-direction:column;
    justify-content:center;
    gap:16px!important;
    transition:.24s ease;
}
.service-item:hover { transform:translateY(-6px); box-shadow:0 22px 55px rgba(7,27,58,.13)!important; }
.service-item .si-icon {
    width:72px!important;
    height:72px!important;
    border-radius:22px!important;
    display:grid!important;
    place-items:center!important;
    font-size:28px!important;
    color:#fff!important;
    box-shadow:0 16px 34px rgba(7,27,58,.11);
}
.si-icon.balance { background:linear-gradient(135deg,#8B5CF6,#6D28D9)!important; }
.si-icon.team { background:linear-gradient(135deg,#0EA5A4,#1D4ED8)!important; }
.si-icon.dep-rec { background:linear-gradient(135deg,#10B981,#059669)!important; }
.si-icon.wd-rec { background:linear-gradient(135deg,#F59E0B,#D97706)!important; }
.si-icon.invite { background:linear-gradient(135deg,#EC4899,#BE185D)!important; }
.si-icon.logout { background:linear-gradient(135deg,#F43F5E,#EF4444)!important; }
.service-item .si-text { color:#61718A!important; font-size:17px!important; font-weight:900!important; text-transform:none!important; }
.profile-section-label { color:#687896!important; margin:18px 0 12px!important; font-weight:950!important; }

/* Plan/level cards: Amazon display */
.vip-card, .hm-level-card { background:rgba(255,255,255,.91)!important; box-shadow:var(--shadow-soft-pro)!important; }
.vip-chip { background:var(--gradient-primary)!important; }
.vip-platform-name { color:var(--brand-navy)!important; }
.vip-logo-box { background:linear-gradient(135deg,rgba(14,165,164,.13),rgba(29,78,216,.13))!important; }
.vip-logo-box img { filter:drop-shadow(0 8px 14px rgba(7,27,58,.13)); }

/* Order records */
.order-card { border-radius:26px!important; padding:24px!important; }
.tabs { background:rgba(255,255,255,.62); border:1px solid rgba(255,255,255,.78); border-radius:999px; padding:7px; box-shadow:var(--shadow-soft-pro); }
.tab-btn.active { background:var(--gradient-primary)!important; color:#fff!important; box-shadow:0 12px 25px rgba(14,165,164,.22); }

@media (max-width:720px) {
    .page-settings .main-content,
    .page-chat .main-content,
    .page-profile .main-content { padding-left:12px!important; padding-right:12px!important; max-width:480px; }
    .page-chat .page-title { font-size:34px; }
    .chat-container { height:calc(100vh - 188px); min-height:520px; border-radius:26px!important; }
    .profile-hero-content { padding:24px 14px 0!important; }
    .profile-avatar { width:78px!important; height:78px!important; }
    .profile-hero-name { font-size:22px!important; }
    .profile-settings-btn.profile-logout-btn { min-width:46px; width:46px!important; height:46px!important; padding:0!important; border-radius:50%!important; }
    .profile-settings-btn.profile-logout-btn span { display:none; }
    .profile-balance-card { grid-template-columns:1fr!important; padding:22px!important; }
    .pbc-actions { width:100%; display:grid!important; grid-template-columns:1fr 1fr; }
    .pbc-btn { min-width:0; min-height:54px; font-size:14px!important; }
    .service-grid { grid-template-columns:repeat(2,1fr)!important; gap:12px!important; }
    .service-item { min-height:136px; border-radius:22px!important; }
    .service-item .si-icon { width:60px!important; height:60px!important; font-size:24px!important; }
    .page-settings .settings-item { min-height:84px; padding:16px!important; border-radius:22px!important; }
    .page-settings .settings-item .si-icon-wrap, .settings-item .si-icon-wrap { width:56px!important; height:56px!important; }
}


/* ==========================================================
   HM FINAL PATCH 20260612-03 - FORCE CLIENT VISIBLE CHANGES
   ========================================================== */
body{background:linear-gradient(135deg,#EEF7FF 0%,#E8F0FF 50%,#F8FCFF 100%)!important;}
.hm-route-loader{position:fixed;inset:0;z-index:999999;background:rgba(248,252,255,.96);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;opacity:0;visibility:hidden;transition:.25s ease;backdrop-filter:blur(16px);}
.hm-route-loader.show{opacity:1;visibility:visible;}
.hm-route-logo{width:92px;height:92px;border-radius:28px;background:#fff;display:grid;place-items:center;box-shadow:0 22px 60px rgba(7,27,58,.15);animation:hmFinalLogoPulse 1s ease-in-out infinite;}
.hm-route-logo img{width:68px!important;height:68px!important;}
.hm-route-loader span{font-weight:950;color:#071B3A;letter-spacing:.12em;text-transform:uppercase;}
@keyframes hmFinalLogoPulse{0%,100%{transform:scale(1) rotate(0deg)}50%{transform:scale(1.07) rotate(3deg)}}
body.page-profile .profile-hero-bg{background:linear-gradient(115deg,#071B3A 0%,#075E73 52%,#0EA5A4 100%)!important;}
body.page-profile .profile-settings-btn{display:none!important;}
body.page-profile .hm-profile-logout-big{display:flex!important;}
body.page-profile .profile-vip-badge{font-size:0!important;}
body.page-profile .profile-vip-badge::after{content:'Level 1';font-size:12px!important;}
body.page-profile .service-item .si-icon{color:#fff!important;}
body.page-profile .si-icon.balance{background:linear-gradient(135deg,#8B5CF6,#4F46E5)!important;}
body.page-profile .si-icon.team{background:linear-gradient(135deg,#0EA5A4,#1D4ED8)!important;}
body.page-profile .si-icon.dep-rec{background:linear-gradient(135deg,#10B981,#059669)!important;}
body.page-profile .si-icon.wd-rec{background:linear-gradient(135deg,#F59E0B,#D97706)!important;}
body.page-profile .si-icon.invite{background:linear-gradient(135deg,#EC4899,#BE185D)!important;}
body.page-profile .si-icon.logout{background:linear-gradient(135deg,#EF4444,#F97316)!important;}
body.page-settings .settings-item,body.page-chat .chat-container,body.page-profile .service-item{border-radius:26px!important;background:rgba(255,255,255,.94)!important;border:1px solid rgba(255,255,255,.78)!important;box-shadow:0 20px 56px rgba(7,27,58,.10)!important;}
body.page-chat .chat-status-avatar,body.page-chat .chat-send-btn,.chat-fab{background:linear-gradient(135deg,#0EA5A4,#1D4ED8)!important;color:#fff!important;}
.vip-chip,.profile-vip-badge{font-size:0!important;}
.vip-chip::after{content:'Level';font-size:12px!important;color:#fff;}
.vip-card:nth-of-type(1) .vip-chip::after{content:'Level 1';}
.vip-card:nth-of-type(2) .vip-chip::after{content:'Level 2';}
.vip-card:nth-of-type(3) .vip-chip::after{content:'Level 3';}
