/* styles.css - SOL TAP Production Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #14F195;
    --secondary: #9945FF;
    --dark: #0A0E27;
    --darker: #050714;
    --light: #1A1F3A;
    --text: #E4E4E7;
    --text-dim: #9CA3AF;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --gradient: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --sol-gradient: linear-gradient(135deg, #14F195 0%, #9945FF 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--darker);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: radial-gradient(ellipse at bottom, #1A1F3A 0%, #050714 100%);
    overflow: hidden;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.orb1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -150px;
    left: -150px;
}

.orb2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

.orb3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #14F195, #9945FF);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -100px) scale(1.1); }
    50% { transform: translate(-100px, 100px) scale(0.9); }
    75% { transform: translate(50px, 50px) scale(1.05); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: var(--light);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.balance-label {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.balance-amount {
    font-size: 32px;
    font-weight: bold;
    background: var(--sol-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.balance-usd {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.balance-info {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    font-size: 12px;
    color: var(--text-dim);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px;
    max-width: 500px;
    margin: 0 auto 20px;
}

.stat-card {
    background: rgba(26, 31, 58, 0.8);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
}

/* Anti-Bot Tap Container */
.tap-container {
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.tap-area {
    position: relative;
    height: 300px;
    background: rgba(26, 31, 58, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tap-button {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--sol-gradient);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(20, 241, 149, 0.4);
    transition: all 0.2s ease;
    overflow: hidden;
}

.tap-button:active {
    transform: scale(0.95);
}

.tap-button.moving {
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.tap-button-content {
    position: relative;
    z-index: 1;
    color: var(--dark);
    font-size: 18px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.tap-icon {
    font-size: 32px;
}

.tap-text {
    font-size: 14px;
}

.tap-info {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: rgba(26, 31, 58, 0.5);
    border-radius: 15px;
}

.tap-rate, .tap-combo {
    font-size: 14px;
    color: var(--text-dim);
}

.tap-rate span, .tap-combo span {
    color: var(--primary);
    font-weight: bold;
}

/* Session Info */
.session-info {
    display: flex;
    gap: 15px;
    padding: 0 20px;
    max-width: 500px;
    margin: 20px auto;
}

.session-card {
    flex: 1;
    padding: 15px;
    background: rgba(26, 31, 58, 0.5);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.session-card span {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.session-card strong {
    font-size: 16px;
    color: var(--primary);
}

/* Sections */
.section {
    display: none;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease;
    flex: 1;
}

.section.active {
    display: block;
}

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

.section-header h2 {
    font-size: 24px;
}

.filter-select {
    padding: 8px 15px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
}

/* Leaderboard */
.leaderboard-list {
    space-y: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(26, 31, 58, 0.5);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(26, 31, 58, 0.8);
    transform: translateX(5px);
}

.rank {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: var(--dark); }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #808080); color: var(--dark); }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #8B4513); color: var(--dark); }
.rank-default { background: var(--sol-gradient); color: var(--dark); }

.user-info-lb {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-lb {
    font-size: 24px;
}

.user-details {
    flex: 1;
}

.username {
    font-weight: bold;
    margin-bottom: 3px;
}

.user-stats {
    font-size: 12px;
    color: var(--text-dim);
}

.earned-amount {
    color: var(--primary);
    font-weight: bold;
    font-size: 16px;
}

/* Earnings Section */
.earnings-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.earning-stat {
    padding: 20px;
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.1), rgba(153, 69, 255, 0.1));
    border-radius: 15px;
    text-align: center;
}

.earning-stat label {
    font-size: 12px;
    color: var(--text-dim);
    display: block;
    margin-bottom: 10px;
}

.earning-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

/* Tasks */
.tasks-container {
    margin-bottom: 30px;
}

.tasks-container h3 {
    margin-bottom: 15px;
}

.task-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(26, 31, 58, 0.5);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.task-card:hover {
    background: rgba(26, 31, 58, 0.7);
}

.task-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.task-icon {
    font-size: 28px;
}

.task-title {
    font-weight: bold;
    margin-bottom: 3px;
}

.task-reward {
    font-size: 12px;
    color: var(--primary);
}

.task-btn {
    padding: 8px 20px;
    background: var(--sol-gradient);
    border: none;
    border-radius: 8px;
    color: var(--dark);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.task-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--dark);
    color: var(--text-dim);
}

/* Referral */
.referral-container {
    padding: 20px;
    background: rgba(26, 31, 58, 0.5);
    border-radius: 15px;
}

.referral-desc {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.referral-code-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.referral-input {
    flex: 1;
    padding: 12px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-family: monospace;
}

.copy-btn {
    padding: 12px 24px;
    background: var(--sol-gradient);
    border: none;
    border-radius: 8px;
    color: var(--dark);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
}

.referral-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ref-stat {
    text-align: center;
}

.ref-stat span {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.ref-stat strong {
    font-size: 18px;
    color: var(--primary);
}

/* Withdraw Section */
.withdraw-form {
    background: rgba(26, 31, 58, 0.5);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.withdraw-balance {
    text-align: center;
    margin-bottom: 25px;
}

.withdraw-balance label {
    font-size: 12px;
    color: var(--text-dim);
    display: block;
    margin-bottom: 10px;
}

.withdraw-amount-display {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
}

.fee-breakdown {
    background: rgba(20, 241, 149, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.fee-breakdown h4 {
    margin-bottom: 15px;
    font-size: 14px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.fee-row.total {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: bold;
    color: var(--primary);
}

.withdraw-btn {
    width: 100%;
    padding: 15px;
    background: var(--sol-gradient);
    border: none;
    border-radius: 10px;
    color: var(--dark);
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.withdraw-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(20, 241, 149, 0.4);
}

.withdraw-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Withdrawal History */
.withdraw-history h3 {
    margin-bottom: 15px;
}

.history-list {
    space-y: 10px;
}

.history-item {
    padding: 15px;
    background: rgba(26, 31, 58, 0.5);
    border-radius: 10px;
    margin-bottom: 10px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.history-amount {
    font-weight: bold;
    color: var(--primary);
}

.history-status {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.history-details {
    font-size: 12px;
    color: var(--text-dim);
}

/* Bottom Navigation */
.bottom-nav {
    position: sticky;
    bottom: 0;
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    z-index: 100;
}

.nav-items {
    display: flex;
    justify-content: space-around;
    max-width: 500px;
    margin: 0 auto;
}

.nav-item {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.nav-item:hover {
    color: var(--primary);
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 24px;
}

.nav-label {
    font-size: 10px;
}

/* Particles */
.particle {
    position: fixed;
    pointer-events: none;
    animation: particleFloat 2s ease-out forwards;
    font-size: 20px;
    color: var(--primary);
    font-weight: bold;
    z-index: 1000;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.5);
    }
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: var(--success);
    color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    animation: slideIn 0.3s ease;
    max-width: 300px;
}

.toast.error {
    background: var(--danger);
}

.toast.warning {
    background: var(--warning);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .balance-amount {
        font-size: 28px;
    }
    
    .tap-button {
        width: 100px;
        height: 100px;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .avatar-option {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
} 0.1);
}

/* Authentication Forms */
.auth-container {
    text-align: center;
}

.auth-logo {
    margin-bottom: 30px;
}

.sol-icon-large {
    width: 80px;
    height: 80px;
    background: var(--sol-gradient);
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 40px rgba(20, 241, 149, 0.5);
}

.auth-logo h1 {
    font-size: 32px;
    background: var(--sol-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.auth-logo p {
    color: var(--text-dim);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 20px;
    color: var(--text);
}

/* Tab Buttons */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--sol-gradient);
    color: var(--dark);
    font-weight: bold;
}

/* Sign Up Methods */
.signup-method {
    display: none;
}

.signup-method.active {
    display: block;
}

.phone-input {
    display: flex;
    gap: 10px;
}

.country-select {
    width: 100px;
    padding: 15px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text);
}

/* Input Fields */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-label {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 8px;
    display: block;
}

.input-field {
    width: 100%;
    padding: 15px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text);
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(20, 241, 149, 0.2);
}

.input-hint {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 5px;
    display: block;
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: 15px;
    background: var(--sol-gradient);
    border: none;
    border-radius: 10px;
    color: var(--dark);
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(20, 241, 149, 0.4);
}

.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Auth Switch */
.auth-switch {
    margin-top: 20px;
    color: var(--text-dim);
    font-size: 14px;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

/* Verification */
.verify-text {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.verification-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.verify-input {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 20px;
    background: var(--dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text);
    transition: all 0.3s ease;
}

.verify-input:focus {
    outline: none;
    border-color: var(--primary);
}

.resend-text {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-dim);
}

/* Avatar Selection */
.avatar-selection {
    margin-bottom: 20px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.avatar-option {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: var(--dark);
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-option:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

.avatar-option.selected {
    border-color: var(--primary);
    background: rgba(20, 241, 149, 0.1);
}

.username-status {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Main App Container */
.app-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 20px;
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    background: var(--sol-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sol-icon {
    width: 30px;
    height: 30px;
    background: var(--sol-gradient);
    border-radius: 50%;
    display: inline-block;
}

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

.user-avatar {
    font-size: 24px;
}

.user-name {
    font-size: 14px;
    color: var(--text);
}

.logout-btn {
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Balance Card */
.balance-card {
    margin: 20px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255,