/* assets/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.mobile-container {
    max-width: 400px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
    min-height: 600px;
    padding-bottom: 70px;
}

/* Header cố định */
.fixed-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    color: white;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info .username {
    font-weight: bold;
    font-size: 16px;
}

.user-info .balance {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* Content */
.content {
    padding: 20px;
    min-height: 400px;
}

/* Footer cố định */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.footer-item {
    text-align: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    padding: 5px 10px;
    transition: all 0.3s;
}

.footer-item.active {
    color: #667eea;
}

.footer-item i {
    display: block;
    font-size: 24px;
    margin-bottom: 3px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #667eea;
    outline: none;
}

.btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: #6c757d;
}

/* Mining Button */
.mining-btn {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin: 30px auto;
    display: block;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    position: relative;
}

.mining-btn:active {
    transform: scale(0.95);
}

.mining-btn.mining {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

.mining-status {
    text-align: center;
    margin: 20px 0;
}

.mining-status .time {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.mining-status .earnings {
    font-size: 18px;
    color: #28a745;
}

/* Referral */
.referral-link {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    word-break: break-all;
}

.referral-link input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.copy-btn {
    margin-top: 10px;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

/* Toast message */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 999;
    display: none;
}

/* Responsive */
@media (max-width: 400px) {
    .mining-btn {
        width: 120px;
        height: 120px;
        font-size: 16px;
    }
}