* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%); min-height: 100vh; position: relative; overflow-x: hidden; margin: 0; padding: 0; } .container { max-width: 100%; width: 100%; margin: 0 auto; min-height: 100vh; background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%); position: relative; display: flex; flex-direction: column; } /* Header */ .header { display: flex; align-items: center; justify-content: space-between; padding: clamp(12px, 8vw, 24px) clamp(16px, 5vw, 24px) 16px; color: white; width: 100%; box-sizing: border-box; position: relative; z-index: 10; } .status-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; color: rgba(255, 255, 255, 0.9); font-size: 16px; font-weight: 600; } .status-right { display: flex; align-items: center; gap: 5px; } .signal-bar { width: 4px; background: rgba(255, 255, 255, 0.8); border-radius: 1px; } .signal-bar:nth-child(1) { height: 4px; } .signal-bar:nth-child(2) { height: 6px; } .signal-bar:nth-child(3) { height: 8px; } .signal-bar:nth-child(4) { height: 10px; opacity: 0.3; } .wifi-icon { width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 3px; position: relative; margin: 0 3px; } .wifi-icon::before { content: ''; position: absolute; top: 2px; left: 2px; right: 2px; height: 2px; background: rgba(255, 255, 255, 0.8); border-radius: 1px; } .battery { width: 24px; height: 12px; border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 2px; position: relative; } .battery::after { content: ''; position: absolute; right: -3px; top: 3px; width: 2px; height: 6px; background: rgba(255, 255, 255, 0.8); border-radius: 0 1px 1px 0; } .battery-fill { position: absolute; top: 1px; left: 1px; bottom: 1px; width: 70%; background: rgba(255, 255, 255, 0.8); border-radius: 1px; } .back-btn { font-size: 24px; cursor: pointer; padding: 10px; margin: -10px; } .header-title { font-size: 20px; font-weight: 600; } .settings-btn { cursor: pointer; padding: 8px; margin: -8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; width: 40px; height: 40px; border-radius: 50%; transition: background-color 0.2s; } .settings-btn:hover { background-color: rgba(255, 255, 255, 0.1); } /* Balance Section */ .balance-section { text-align: center; padding: clamp(20px, 8vw, 40px) 16px clamp(30px, 10vw, 60px); color: white; width: 100%; box-sizing: border-box; } .balance-label { font-size: clamp(14px, 4vw, 16px); opacity: 0.8; margin-bottom: clamp(8px, 2vw, 12px); } .balance-amount { font-size: clamp(28px, 10vw, 40px); font-weight: 700; line-height: 1.2; margin: 0 auto; max-width: 90%; word-break: break-word; } .balance-note { font-size: clamp(12px, 3.5vw, 14px); opacity: 0.7; margin-top: clamp(20px, 8vw, 40px); } /* Content Section */ .content { background: white; border-radius: 24px 24px 0 0; min-height: 60vh; position: relative; padding: 0 0 max(20px, env(safe-area-inset-bottom, 20px)) 0; flex: 1; width: 100%; box-sizing: border-box; margin-top: auto; } /* Alert Card */ .alert-card { margin: 16px; background: white; border-radius: 16px; padding: clamp(16px, 4vw, 20px); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); border-left: 4px solid #00d4aa; box-sizing: border-box; width: calc(100% - 32px); max-width: 100%; } .alert-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; } .alert-icon { width: 24px; height: 24px; background: #00d4aa; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 16px; flex-shrink: 0; } .alert-title { font-size: 16px; font-weight: 600; color: #2c3e50; line-height: 1.3; } .alert-text { color: #5a6c7d; font-size: 14px; line-height: 1.5; margin-bottom: 20px; } .contact-btn { width: 100%; background: #00d4aa; color: white; border: none; padding: 16px; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; } .contact-btn:hover { background: #00b894; transform: translateY(-2px); } /* Transaction History */ .transaction-section { padding: clamp(12px, 4vw, 20px); } .section-title { font-size: clamp(16px, 4.5vw, 18px); font-weight: 600; color: #2c3e50; margin-bottom: clamp(12px, 4vw, 20px); } .transaction-item { display: flex; align-items: center; justify-content: space-between; padding: clamp(12px, 3vw, 16px) 0; border-bottom: 1px solid #f1f3f4; cursor: pointer; transition: all 0.2s ease; width: 100%; box-sizing: border-box; } .transaction-item:hover { background: rgba(0, 212, 170, 0.05); margin: 0 calc(-1 * clamp(12px, 4vw, 20px)); padding: clamp(12px, 3vw, 16px) clamp(12px, 4vw, 20px); border-radius: 8px; } .transaction-item:last-child { border-bottom: none; } .transaction-left { display: flex; align-items: center; gap: clamp(8px, 3vw, 12px); min-width: 0; flex: 1; } .transaction-icon { width: clamp(36px, 10vw, 44px); height: clamp(36px, 10vw, 44px); background: #f8f9fa; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: clamp(14px, 4vw, 18px); flex-shrink: 0; } .transaction-icon.withdraw { color: #ff4757; } .transaction-icon.refund { color: #00d4aa; } .transaction-details { min-width: 0; overflow: hidden; } .transaction-details h4 { font-size: clamp(14px, 4vw, 16px); font-weight: 600; color: #2c3e50; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .transaction-date { font-size: clamp(12px, 3.2vw, 14px); color: #8e8e93; white-space: nowrap; } .transaction-right { display: flex; align-items: center; gap: clamp(4px, 2vw, 8px); margin-left: 8px; flex-shrink: 0; } .transaction-amount { font-size: clamp(14px, 4vw, 16px); font-weight: 600; white-space: nowrap; } .transaction-amount.negative { color: #ff4757; } .transaction-amount.positive { color: #00d4aa; } .transaction-status { font-size: clamp(10px, 2.8vw, 12px); color: #8e8e93; white-space: nowrap; } .chevron { font-size: clamp(14px, 4vw, 16px); color: #c7c7cc; flex-shrink: 0; } .no-transactions { text-align: center; padding: clamp(24px, 8vw, 40px) 20px; color: #8e8e93; font-size: clamp(12px, 3.5vw, 14px); } /* Bottom indicator */ .bottom-indicator { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); width: 40%; max-width: 134px; height: 5px; background: #000; border-radius: 3px; } /* Modal Styles */ .modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.7); z-index: 1000; padding: 20px; box-sizing: border-box; overflow-y: auto; opacity: 0; transition: opacity 0.3s ease-in-out; pointer-events: none; } .modal.active { display: flex; align-items: center; justify-content: center; opacity: 1; pointer-events: auto; } .modal-content { background: white; border-radius: 16px; width: 100%; max-width: 400px; max-height: 90vh; overflow-y: auto; position: relative; animation: modalFadeIn 0.3s ease-out; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); margin: auto; display: flex; flex-direction: column; transform: translateY(20px); transition: transform 0.3s ease-out; } .modal.active .modal-content { transform: translateY(0); } @keyframes modalFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .close-btn { position: absolute; top: 12px; right: 12px; font-size: 24px; color: #666; background: rgba(255, 255, 255, 0.9); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; border: none; padding: 0; } .modal-image { width: 100%; max-height: 400px; overflow: hidden; } .modal-image img { width: 100%; height: auto; display: block; } .modal-actions { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; } .download-btn { width: 100%; padding: 14px; background: #00d4aa; color: white; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: all 0.2s ease; } .download-btn:hover { background: #00b894; transform: translateY(-1px); } .download-btn:active { transform: translateY(0); } .description-section { padding: 0 20px 20px; } .toggle-description { width: 100%; background: none; border: none; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: #555; cursor: pointer; } .toggle-description i { transition: transform 0.3s ease; } .description-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0; margin: 0; } .description-content.show { max-height: 500px; padding-top: 12px; } .description-content p { margin: 0 0 12px 0; color: #444; line-height: 1.5; } .description-content ol { padding-left: 20px; margin: 0; } .description-content li { margin-bottom: 8px; color: #555; line-height: 1.4; } /* Welcome modal tidy styles */ .welcome-modal { max-width: 440px; } .welcome-header { display: flex; align-items: center; justify-content: center; padding-top: 16px; } .welcome-header i { font-size: 48px; color: #ff9800; } .welcome-body { padding: 12px 20px 20px; text-align: left; } .welcome-text { margin: 0; color: #444; line-height: 1.6; } /* Animations */ @keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .content { animation: slideUp 0.4s ease-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .alert-card { animation: fadeIn 0.6s ease-out 0.2s both; } .transaction-item { animation: fadeIn 0.4s ease-out both; } .transaction-item:nth-child(2) { animation-delay: 0.1s; } .transaction-item:nth-child(3) { animation-delay: 0.2s; } .transaction-item:nth-child(4) { animation-delay: 0.3s; } /* Toast notification */ .toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 20px)); transform: translateX(-50%) translateY(20px); background: rgba(0, 0, 0, 0.85); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,0.25); opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; z-index: 2000; } .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }