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

body {
    font-family: 'Exo 2', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Futuristic background effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, #ff6b35 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, #f7931e 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #1e3c72 0%, transparent 70%);
    opacity: 0.1;
    z-index: -1;
    animation: backgroundPulse 6s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { opacity: 0.1; }
    100% { opacity: 0.2; }
}

/* Loading screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #000000, #1a1a2e, #000000);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.tron-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
}

.tron-ring {
    position: absolute;
    border: 2px solid transparent;
    border-top: 2px solid #ff6b35;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.tron-ring:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.tron-ring:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 10px;
    left: 10px;
    border-top-color: #f7931e;
    animation-delay: -0.5s;
}

.tron-ring:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 20px;
    left: 20px;
    border-top-color: #ffa500;
    animation-delay: -1s;
}

.tron-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 12px;
    color: #ff6b35;
    text-shadow: 0 0 10px #ff6b35;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    color: #ff6b35;
    text-shadow: 0 0 5px #ff6b35;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Main app */
.main-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 5px #ff6b35);
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 18px;
    color: #ff6b35;
    text-shadow: 0 0 10px #ff6b35;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.lang-switch, .notification-btn {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    color: #ffffff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-switch:hover, .notification-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: scale(1.05);
}

.notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3030;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* Navigation */
.nav-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.nav-tab {
    flex: 1;
    background: none;
    border: none;
    color: #888;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tab.active {
    color: #ff6b35;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    box-shadow: 0 0 10px #ff6b35;
}

.tab-icon {
    font-size: 18px;
}

.nav-tab span:last-child {
    font-size: 12px;
    font-weight: 500;
}

/* Content */
.content {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Cards */
.balance-card, .deposit-card, .withdraw-card, .stats-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.balance-card::before, .deposit-card::before, .withdraw-card::before, .stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff6b35, transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Balance card */
.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.balance-header h2 {
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
}

.balance-refresh {
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

.balance-refresh:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: rotate(180deg);
}

.balance-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 30px;
}

.currency-symbol {
    font-size: 24px;
    color: #ff6b35;
    margin-right: 5px;
    font-weight: 700;
}

.amount {
    font-family: 'Orbitron', monospace;
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.currency {
    font-size: 18px;
    color: #ff6b35;
    margin-left: 8px;
    font-weight: 600;
}

.balance-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

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

.balance-item span:first-child {
    color: #cccccc;
    font-size: 14px;
}

.balance-item span:last-child {
    color: #ffffff;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
}

/* Dashboard grid */
.dashboard-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.card-header {
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
}

/* Quick actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    padding: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn.primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn.primary:hover {
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.btn-icon {
    font-size: 20px;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #cccccc;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

/* Address input */
.address-input {
    display: flex;
    gap: 10px;
}

.address-input input {
    flex: 1;
}

.copy-btn {
    padding: 12px 16px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    color: #ff6b35;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255, 107, 53, 0.2);
}

/* Amount input */
.amount-input {
    position: relative;
    display: flex;
    align-items: center;
}

.amount-input input {
    padding-right: 80px;
}

.currency-label {
    position: absolute;
    right: 50px;
    color: #ff6b35;
    font-weight: 600;
    font-size: 14px;
}

.max-btn {
    position: absolute;
    right: 8px;
    padding: 4px 8px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 4px;
    color: #ff6b35;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.max-btn:hover {
    background: rgba(255, 107, 53, 0.2);
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Notification Modal */
.notification-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.notification-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-modal-content {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 16px;
    padding: 0;
    width: 85%;
    max-width: 380px;
    max-height: 70vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.notification-modal-header {
    background: rgba(255, 107, 53, 0.1);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-modal-header h3 {
    margin: 0;
    color: #ff6b35;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 18px;
}

.notification-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-modal-close:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
}

.notification-modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

.notification-modal-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

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

.notification-modal-item:hover {
    background: rgba(255, 107, 53, 0.05);
}

.notification-modal-item.unread {
    background: rgba(255, 107, 53, 0.05);
    border-left: 3px solid #ff6b35;
}

.notification-modal-item.unread::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 8px;
    height: 8px;
    background: #ff6b35;
    border-radius: 50%;
}

.notification-modal-text {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-modal-time {
    font-size: 11px;
    color: #64748b;
}

.notification-modal-empty {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

.notification-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    background: rgba(255, 107, 53, 0.05);
}

.notification-mark-all-btn {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-mark-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* QR Code */
.qr-section {
    text-align: center;
    margin-bottom: 30px;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Network info */
.network-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-item .highlight {
    color: #ff6b35;
    font-weight: 600;
}

/* Radio options */
.withdrawal-types {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background: rgba(255, 107, 53, 0.05);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #ff6b35;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #ff6b35;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Withdrawal summary */
.withdrawal-summary {
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

/* History */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-filters select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    color: #ffffff;
    padding: 8px 12px;
}

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

.history-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.transaction-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.transaction-amount {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
}

.transaction-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-approved {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-pending {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.status-rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Trading Activity (Earnings Overview) */
.trading-activity {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    overflow: hidden;
    margin-bottom: 20px;
    height: 240px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.activity-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(247, 147, 30, 0.1));
    font-weight: 600;
    color: #ff6b35;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
    position: relative;
}

.activity-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ff6b35);
    animation: headerGlow 2s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.activity-header > * {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.1);
    margin: 0 4px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-header > *:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: scale(1.05);
}

.trading-activity .activity-list {
    flex: 1;
    overflow-y: auto;
    max-height: 200px;
    padding: 6px;
}

.trading-activity .activity-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 8px 10px; /* smaller padding */
    margin: 2px 0;
    border-radius: 10px;
    font-size: 11px; /* compact font */
    animation: activitySlideIn 0.5s ease-out;
    text-align: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trading-activity .activity-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.trading-activity .activity-item:hover::before {
    left: 100%;
}

.trading-activity .activity-item:hover {
    background: rgba(255, 107, 53, 0.08);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.trading-activity .activity-item > * {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 2px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trading-activity .activity-item:hover > * {
    background: rgba(255, 107, 53, 0.1);
    transform: scale(1.02);
}

.trading-activity .activity-time {
    color: #94a3b8;
    font-size: 11px;
}

.trading-activity .activity-pool {
    color: #ff6b35;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 11px;
}

.trading-activity .activity-profit {
    color: #22c55e;
    font-weight: 700;
    font-size: 12px;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

@keyframes activitySlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Activity list */
#recentActivity.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px; /* keep original spacing */
    padding: 6px 0;
    max-height: 260px; /* allow at least 3 items visible */
    overflow-y: auto;
}

#recentActivity .activity-item {
    display: flex;
    align-items: center; /* vertical center */
    gap: 12px;
    padding: 14px; /* slightly smaller than global edit */
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    justify-content: space-between;
    min-height: 56px;
}

#recentActivity .activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.activity-icon.deposit {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.activity-icon.withdrawal {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.activity-icon.accrual {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

#recentActivity .activity-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0 12px;
    padding: 2px 0;
}

#recentActivity .activity-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

#recentActivity .activity-subtitle {
    font-size: 12px;
    color: #888888;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

#recentActivity .activity-amount {
    color: #ff6b35;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    text-align: right;
    min-width: 90px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* How It Works Tab */
.how-container {
    padding: 20px 0;
}

.how-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.how-card h2 {
    color: #ff6b35;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    margin-bottom: 24px;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.how-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

.how-step:hover {
    background: rgba(255, 107, 53, 0.05);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.how-emoji {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 107, 53, 0.2);
}

.how-text {
    color: #e2e8f0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    flex: 1;
}

/* Responsive for How It Works */
@media screen and (max-width: 480px) {
    .how-card {
        padding: 20px;
        margin: 0 10px 20px;
    }
    
    .how-card h2 {
        font-size: 20px;
    }
    
    .how-step {
        padding: 12px;
        gap: 12px;
    }
    
    .how-emoji {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .how-text {
        font-size: 14px;
    }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
}

.modal-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #ffffff;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 20px;
}

/* Responsive design */
@media (max-width: 480px) {
    .content {
        padding: 15px;
    }
    
    .balance-card, .deposit-card, .withdraw-card, .stats-card {
        padding: 20px;
    }
    
    .amount {
        font-size: 28px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
}

/* Small warning text */
small {
    display: block;
    color: #f97316;
    font-size: 12px;
    margin-top: 5px;
}

/* Available balance */
.available-balance {
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.available-balance .balance-amount {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: #ff6b35;
    font-size: 18px;
}




