@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #F9C935; /* Rapido Yellow */
    --primary-light: #fef08a; /* Light Yellow */
    --primary-dark: #eab308; /* Darker Yellow */
    --secondary-color: #212121; /* Rapido Dark/Black */
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif !important;
    background-color: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* Modernize Layout Containers */
.wrapper {
    max-width: 480px; /* Mobile-first optimization */
    margin: 0 auto;
    background-color: var(--bg-color);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    position: relative;
    padding-bottom: 80px; /* Space for bottom nav */
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Home Section */
.home {
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
}

/* Swiper Slider */
.swiper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Action Buttons Grid (Links) */
.links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.home > .links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 12px;
}

.home > .links iconify-icon {
    padding: 8px;
    font-size: 24px;
}

.links a, .links button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.links a:hover, .links button:hover {
    transform: translateY(-2px);
}

.links iconify-icon {
    font-size: 28px;
    background: var(--primary-light);
    padding: 12px;
    border-radius: 50%;
    color: var(--secondary-color) !important;
    transition: var(--transition);
}

.links a:hover iconify-icon, .links button:hover iconify-icon {
    background: var(--primary-color);
    color: var(--secondary-color) !important;
    box-shadow: 0 4px 12px rgba(249, 201, 53, 0.4);
}

.links p {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-main) !important;
    margin: 0;
}

/* Recharge Button Customization */
.recharge-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: var(--secondary-color) !important;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(249, 201, 53, 0.4);
    margin: 20px 0;
    text-decoration: none;
    width: 100%;
    border: none;
    transition: transform 0.2s;
}

.recharge-button:active { 
    transform: scale(0.98); 
}

.recharge-button p { 
    color: var(--secondary-color) !important; 
    font-weight: 600; 
    font-size: 16px; 
    margin: 0; 
}

.recharge-button iconify-icon { 
    color: var(--secondary-color) !important; 
}

.recharge-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 201, 53, 0.6);
}

/* Product Tabs */
.tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 16px;
    scrollbar-width: none; /* Hide scrollbar */
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tabs a {
    padding: 8px 20px;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    transition: var(--transition);
    text-decoration: none;
}

.tabs a.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(224, 27, 148, 0.3);
}

/* Product Cards */
.products-bag > div {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.products-bag > div:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.products-bag img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--bg-color);
}

.products-bag > div > div:nth-child(2) {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.products-bag p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.products-bag p span {
    font-weight: 600;
    color: var(--text-main);
}

.products-bag button {
    background: var(--primary-color) !important; /* Override inline styles */
    color: white !important;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px !important;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: auto !important; /* Override fixed width */
    height: auto !important;
}

.products-bag button:hover {
    background: var(--primary-dark) !important;
    transform: scale(1.05);
}

/* My Tasks Section */
.my-tasks {
    padding: 20px;
}

.my-tasks .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.my-tasks .title p {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-tasks .title a {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.tasks > div {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modal Styling Overrides */
.modal {
    backdrop-filter: blur(5px);
}

.modal-content {
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: none;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer Nav */
.footer-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Utility to hide/override inline styles */
[style*="color: rgba(255, 0, 0, 0.8)"] {
    color: var(--primary-color) !important;
}

[style*="color: rgba(224, 27, 148, 0.8)"] {
    color: var(--primary-color) !important;
}

/* Mine/Profile Page */
.mine2 {
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
}

.mine2 .title {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 24px;
    color: white;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.mine2 .title::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.mine2 .title > p:first-child {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: white !important;
}

.mine2 .title > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* User Info Section */
.mine2 .title > div:nth-child(2) {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.mine2 .title .user-info {
    flex: 1;
}

.mine2 .title .user-info p:first-child {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.mine2 .title .user-info p:last-child {
    font-size: 18px;
    font-weight: 600;
}

.mine2 .title .user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    background: white;
    padding: 2px;
}

/* Balance Section */
.mine2 .balance-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mine2 .balance-card div p:first-child {
    font-size: 12px;
    opacity: 0.9;
}

.mine2 .balance-card div p:last-child {
    font-size: 20px;
    font-weight: 700;
}

.mine2 .balance-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.mine2 .balance-actions a {
    font-size: 12px;
    color: white;
    text-decoration: underline;
    opacity: 0.9;
}

/* Logout Button */
.logout-btn {
    width: 100%;
    padding: 14px;
    background: white;
    color: var(--text-main); /* Changed from primary to text-main for subtle look, or red */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-top: 30px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.logout-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fecaca;
}

/* Top Navigation Header */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 40;
}

.top-nav.transparent {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.top-nav p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.top-nav a {
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: var(--transition);
}

/* Auth Buttons */
.auth > .title > div:last-of-type {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: transparent;
    border: none;
    justify-content: center;
}

.auth > .title > div:last-of-type > a {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-md);
    background: #f1f5f9;
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    border: none !important; /* Override style.css border-bottom */
    transition: var(--transition);
}

.auth > .title > div:last-of-type > a.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.top-nav a:hover {
    background: var(--bg-color);
}

/* Team Page */
.team {
    padding: 20px;
}

.team .title {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 24px;
    border-radius: var(--radius-lg);
    color: white;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.team .title > p:first-child {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.team .title > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.team .title button {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 12px;
    color: white;
    text-align: center;
    cursor: default;
}

.team .title button p:last-child {
    font-size: 18px;
    font-weight: 700;
    margin-top: 4px;
}

/* Rank Section */
.rank {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.rank .tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
}

.rank .tabs button {
    padding: 8px 24px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.rank .tabs button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(224, 27, 148, 0.3);
}

.rank > p {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    padding-left: 8px;
    border-left: 4px solid var(--primary-color);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-color);
}

table td {
    padding: 16px 8px;
    font-size: 14px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
}

table tr:last-child td {
    border-bottom: none;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    pointer-events: none; /* Allow clicks to pass through container */
}

.bottom-nav > div {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 !important;
    border-top: 1px solid var(--border-color);
    pointer-events: auto; /* Re-enable clicks */
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05) !important;
    border-radius: 0 !important; /* Override pill shape */
}

.bottom-nav a, .bottom-nav > div > * {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: var(--text-muted) !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    transition: var(--transition);
    flex: 1;
    background-color: transparent !important; /* Remove green background */
    border-radius: 0 !important; /* Remove pill shape */
    padding: 4px 0 !important;
}

.bottom-nav a p, .bottom-nav > div > * > p {
    display: block !important; /* Always show text */
    margin-top: 4px;
    font-size: 10px;
}

.bottom-nav a iconify-icon, .bottom-nav > div > * > iconify-icon {
    margin-bottom: 2px;
    font-size: 24px;
    transition: var(--transition);
    color: inherit;
}

.bottom-nav a.active, .bottom-nav > div > .active {
    color: var(--primary-color) !important;
    background-color: transparent !important;
}

.bottom-nav a.active iconify-icon, .bottom-nav > div > .active > iconify-icon {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 6px rgba(224, 27, 148, 0.3));
    color: var(--primary-color) !important;
}

.bottom-nav a:hover {
    color: var(--primary-color) !important;
}

/* -------------------------------------------------------------------------- */
/* NEW STYLES for Orders, Payment Ledger, Recharge */
/* -------------------------------------------------------------------------- */

/* Orders Page (Income/Earning) */
.income .title {
    display: flex;
    background: white;
    padding: 5px;
    border-radius: var(--radius-lg);
    margin: 16px 0;
    border: 1px solid var(--border-color);
}

.income .title button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s;
    cursor: pointer;
}

.income .title button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(224, 27, 148, 0.3);
}

/* Summary Card in Orders */
.products-bag .card {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
    color: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.products-bag .card button {
    background: white !important;
    color: var(--primary-color) !important;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
    align-self: flex-start;
}

/* Order List Items */
.products-bag .item {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.products-bag .item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Payment Ledger (Record) */
.record .list > div {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.record .list > div > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.record .list p {
    margin: 0;
}

/* Recharge Page Styles */
.recharge {
    padding: 20px;
}

/* Amount Chips */
.recharge .balance {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.recharge .balance button {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.2s;
    cursor: pointer;
}

.recharge .balance button:hover, 
.recharge .balance button.active { /* Assuming JS adds active class, or hover */
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(224, 27, 148, 0.05);
}

/* Input */
.recharge .input-group input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box; /* Ensure padding doesn't overflow */
}

.recharge .input-group input:focus {
    border-color: var(--primary-color);
}

/* Radio Options */
.recharge-method {
    padding: 0 20px;
}

.radio-option {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.radio-option:hover {
    background: #f8fafc;
    transform: none !important; /* Override inline style */
}

/* Submit Button */
.btn-submit {
    background: var(--primary-color);
    color: white;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(224, 27, 148, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 27, 148, 0.5);
}

/* -------------------------------------------------------------------------- */
/* Status Colors (Payment Ledger) */
/* -------------------------------------------------------------------------- */
.status-success {
    color: #16a34a !important; /* Green */
    font-weight: 600;
}

.status-pending {
    color: #ca8a04 !important; /* Yellow/Orange */
    font-weight: 600;
}

.status-rejected {
    color: #dc2626 !important; /* Red */
    font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Radio Buttons (Recharge Page) */
/* -------------------------------------------------------------------------- */
.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background-color: white;
    position: relative;
    transition: all 0.2s ease;
    margin-right: 10px;
}

.radio-option input[type="radio"]:checked {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.radio-option input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.radio-option label {
    font-weight: 500;
    cursor: pointer;
    color: var(--text-main);
    flex: 1;
}

.recharge .notes {
    margin-top: 24px;
    padding: 20px;
    background: #fffbeb;
    border-radius: var(--radius-md);
    border: 1px solid #fcd34d;
}

.recharge .notes p {
    color: #92400e;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Horizontal Marquee (Notice Bar) */
/* -------------------------------------------------------------------------- */
.notice-bar {
    background: #facc15; /* Yellow */
    color: #854d0e; /* Dark Yellow/Brown text */
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid #eab308;
}

.notice-bar iconify-icon {
    font-size: 24px;
    color: #7c3aed; /* Purple icon */
    flex-shrink: 0;
    animation: bellShake 3s infinite;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: inline-block;
    animation: marquee 80s linear infinite;
    font-weight: 700;
    font-size: 13px;
    padding-left: 100%; /* Start from outside */
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(15deg); }
    20%, 40%, 60%, 80% { transform: rotate(-15deg); }
}

/* -------------------------------------------------------------------------- */
/* Vertical Loop (Withdrawal Feed) */
/* -------------------------------------------------------------------------- */
.withdrawal-feed {
    background: linear-gradient(135deg, #6366f1, #a855f7); /* Indigo to Purple */
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
    height: 180px;
    overflow: hidden;
    position: relative;
    color: white;
}

.withdrawal-feed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, #a855f7, transparent);
    pointer-events: none;
}

.withdrawal-feed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, #6366f1, transparent);
    pointer-events: none;
    z-index: 1;
}

.feed-container {
    height: 100%;
    overflow: hidden;
}

.feed-wrapper {
    animation: verticalScroll 15s linear infinite;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feed-item iconify-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    color: #facc15; /* Gold money bag */
}

.feed-item p {
    color: white !important;
    font-weight: 600;
    font-size: 11px;
    margin: 0;
    white-space: normal;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

@keyframes verticalScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Withdrawal Record Page Styles */
.withdrawal-record-page {
    padding: 20px 16px;
    background: #f8fafc;
    min-height: 100vh;
}

.withdrawal-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
    margin: 0 auto;
}

.withdrawal-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
    animation: slideUpFade 0.4s ease-out forwards;
}

.withdrawal-card:active {
    transform: scale(0.98);
}

/* Colored accent bar on the left */
.withdrawal-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

/* Status variants */
.withdrawal-card.status-success::before { background: #10b981; } /* Emerald */
.withdrawal-card.status-pending::before { background: #f59e0b; } /* Amber */
.withdrawal-card.status-rejected::before { background: #ef4444; } /* Red */

/* Status Badge Styles */
.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Success Animation */
@keyframes successPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes checkPop {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    70% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.withdrawal-card.status-success .status-badge { 
    color: #047857; 
    background: #ecfdf5; 
    border: 1px solid #10b981;
    animation: successPulse 2s infinite;
}

.withdrawal-card.status-success .status-badge iconify-icon {
    font-size: 18px;
    color: #059669;
    animation: checkPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.withdrawal-card.status-pending .status-badge { color: #d97706; background: #fef3c7; }
.withdrawal-card.status-rejected .status-badge { color: #dc2626; background: #fee2e2; }

/* Orders Page Styles */
.modern-orders-page {
    padding: 20px 16px 100px 16px;
    background: #f8fafc;
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
}

.orders-header-summary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
    position: relative;
    overflow: hidden;
}

.orders-header-summary::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.summary-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.summary-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 16px;
}

.summary-item .value {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-item .label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Tabs */
.category-tabs-container {
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    padding: 4px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-tabs a {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    border-radius: 8px;
    color: #64748b;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
}

.category-tabs a.active {
    background: #4f46e5;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Products List */
.products-list.hide {
    display: none;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modern-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.modern-product-card:active {
    transform: scale(0.99);
}

.product-image {
    width: 100%;
    height: 180px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s;
}

.modern-product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.product-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-value {
    font-size: 14px;
    color: #334155;
    font-weight: 600;
}

.stat-value.price {
    color: #4f46e5;
    font-weight: 800;
    font-size: 16px;
}

.stat-value.highlight {
    color: #059669;
}

.vip-req .stat-value {
    color: #d97706;
    font-size: 12px;
    background: #fffbeb;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.product-action {
    margin-top: 8px;
}

.btn-action {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-buy {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-buy:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-buy::after {
    content: '→';
    font-size: 18px;
    transition: transform 0.2s;
}

.btn-buy:hover::after {
    transform: translateX(4px);
}

.btn-sold {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
}

.btn-coming {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border: 1px dashed #cbd5e1;
}

.product-note {
    padding: 8px 16px;
    background: #f0f9ff;
    border-top: 1px solid #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.amount {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.card-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0 -20px 16px -20px;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.detail-row .label {
    color: #94a3b8;
    font-weight: 500;
}

.detail-row .value {
    color: #475569;
    font-weight: 600;
}

.detail-row .value.ref-id {
    font-family: monospace;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #64748b;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #94a3b8;
    text-align: center;
}

.empty-state iconify-icon {
    font-size: 48px;
    margin-bottom: 12px;
    color: #cbd5e1;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Modern Earning/Orders Page Styles */
.modern-earning-page {
    padding: 20px 16px 100px 16px;
    background: #f8fafc;
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
}

/* Tabs */
.earning-tabs-container {
    background: white;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.earning-tabs {
    display: flex;
    gap: 8px;
}

.earning-tabs button {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.earning-tabs button.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Claim Card */
.claim-card {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: hidden;
}

.claim-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.claim-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.claim-info {
    display: flex;
    flex-direction: column;
}

.claim-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.claim-amount {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.btn-claim {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-claim:active {
    transform: scale(0.95);
}

.claim-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 12px;
}

.claim-note {
    font-size: 12px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Orders Grid */
.orders-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modern-order-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.order-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.order-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.order-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.order-status.status-active {
    background: #dcfce7;
    color: #15803d;
}

.order-status.status-completed {
    background: #f1f5f9;
    color: #64748b;
}

.order-body {
    padding: 16px;
    display: flex;
    gap: 16px;
}

.order-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-details {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item .label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
}

.detail-item .value {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.detail-item .value.highlight {
    color: #2563eb;
}

.order-footer {
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.earning-progress {
    margin-bottom: 8px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
    color: #475569;
}

.progress-amount {
    font-weight: 600;
    color: #10b981;
}

.progress-bar-bg {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-subtext {
    font-size: 10px;
    color: #94a3b8;
    text-align: right;
}

.next-drop {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

.next-drop iconify-icon {
    font-size: 14px;
    color: #2563eb;
}


/* Utility */
.hide {
    display: none !important;
}


/* Modern Ledger Page Styles */
.modern-ledger-page {
    padding: 20px 16px 100px 16px;
    background: #f8fafc;
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
}

.ledger-balance-card {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-radius: 20px;
    padding: 24px;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.ledger-balance-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.ledger-balance-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ledger-balance-amount {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.ledger-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.stat-box {
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s;
}

.stat-box:active {
    transform: scale(0.98);
}

.stat-box-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 18px;
}

.stat-box-icon.income { background: #e0f2fe; color: #0284c7; }
.stat-box-icon.deposit { background: #dcfce7; color: #16a34a; }
.stat-box-icon.withdraw { background: #fee2e2; color: #dc2626; }
.stat-box-icon.success-withdraw { background: #f3e8ff; color: #9333ea; }

.stat-box-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 4px;
}

.stat-box-value {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.ledger-history-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ledger-history-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ledger-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ledger-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.ledger-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ledger-item-left {
    display: flex;
    gap: 12px;
}

.ledger-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
}

.ledger-info {
    display: flex;
    flex-direction: column;
}

.ledger-desc {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
    line-height: 1.4;
}

.ledger-date {
    font-size: 11px;
    color: #94a3b8;
}

.ledger-item-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ledger-amount {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.ledger-amount.positive { color: #16a34a; }
.ledger-amount.negative { color: #dc2626; }

.ledger-status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: capitalize;
}

.ledger-status.success { background: #dcfce7; color: #16a34a; }
.ledger-status.pending { background: #fff7ed; color: #ea580c; }
.ledger-status.rejected { background: #fee2e2; color: #dc2626; }

