* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.app-container {
    max-width: 450px;
    width: 100%;
    min-height: 700px;
    background: #f8f9fa;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
    padding: 20px;
}

.screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 450px;
    margin: 0 auto;
    background: #f8f9fa;
    overflow-y: auto;
    padding: 20px;
    display: none;
    z-index: 10;
}

.screen.active {
    display: block;
}

.header {
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.user-info i {
    font-size: 50px;
    color: #667eea;
}

.user-info h3 {
    font-size: 18px;
    color: #333;
}

.logout-btn {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    color: #ef4444;
    cursor: pointer;
}

.balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}

.balance-card i {
    font-size: 40px;
}

.balance-card h2 {
    font-size: 32px;
    margin-top: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-box {
    background: white;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-box i {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-box h3 {
    font-size: 22px;
    color: #333;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 15px 0 25px;
}

.action-btn {
    background: white;
    border: none;
    padding: 15px;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.action-btn i {
    font-size: 24px;
    color: #667eea;
    display: block;
    margin-bottom: 8px;
}

.action-btn span {
    font-size: 12px;
    color: #333;
}

.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    background: white;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.task-item:hover {
    transform: translateY(-2px);
}

.task-item.completed {
    opacity: 0.6;
    background: #e5e7eb;
}

.task-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
}

/* Offer Details Styles */
.offer-detail-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.offer-detail-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.offer-detail-header h2 {
    margin: 15px 0 10px;
    font-size: 22px;
}

.offer-reward {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: bold;
}

.offer-detail-body {
    padding: 20px;
}

.offer-instructions {
    margin-bottom: 25px;
}

.offer-instructions h3 {
    margin-bottom: 12px;
    color: #1e293b;
    font-size: 18px;
}

.offer-instructions ol {
    margin-left: 20px;
}

.offer-instructions li {
    margin: 8px 0;
    line-height: 1.5;
}

.start-offer-btn {
    width: 100%;
    padding: 14px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: 15px 0;
    transition: all 0.3s;
}

.start-offer-btn:hover {
    background: #d97706;
    transform: scale(1.02);
}

.offer-note {
    background: #fef3c7;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Single Ad Button Styles */
.single-ad-container {
    margin-bottom: 25px;
}

.ad-card-large {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 30px 20px;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.ad-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.ad-card-large i {
    font-size: 70px;
    color: white;
    margin-bottom: 15px;
}

.ad-card-large h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 10px;
}

.ad-card-large p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
}

.ad-reward-large {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

.ad-limit-info {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 10px;
}

/* Offerwall Card */
.offerwall-card {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.offerwall-card:hover {
    transform: translateY(-3px);
}

.offerwall-card i {
    font-size: 40px;
    color: white;
    margin-bottom: 10px;
}

.offerwall-card h3 {
    color: white;
    margin-bottom: 8px;
}

.offerwall-card p {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    margin-bottom: 15px;
}

.offerwall-btn {
    background: white;
    color: #f59e0b;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* Ads Container */
.ads-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.ad-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.ad-card i {
    font-size: 50px;
    color: #667eea;
    margin-bottom: 10px;
}

.ad-reward {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #10b981;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.daily-bonus {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
}

.claim-btn {
    background: white;
    color: #f5576c;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.withdraw-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
}

.withdraw-balance {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    color: white;
    margin-bottom: 20px;
}

.method-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
}

.method-option.selected {
    border-color: #10b981;
    background: #f0fdf4;
}

.method-check {
    color: #10b981;
    display: none;
}

.method-option.selected .method-check {
    display: inline-block;
}

.withdraw-input input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin: 10px 0;
}

.withdraw-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
}

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

.refer-stat {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.refer-stat h3 {
    font-size: 28px;
    color: #667eea;
}

.link-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    background: #f3f4f6;
    border-radius: 10px;
}

.link-display button {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.refer-info {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.refer-info ul {
    list-style: none;
    margin-top: 10px;
}

.refer-info li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-container {
    background: white;
    border-radius: 30px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: #9ca3af;
}

.tab-btn.active {
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.auth-form {
    display: none;
}

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

.auth-form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 450px;
    margin: 0 auto;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    z-index: 20;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #9ca3af;
}

.nav-item.active {
    color: #667eea;
}

.nav-item i {
    font-size: 22px;
}

.nav-item span {
    font-size: 11px;
}

.activity-list {
    max-height: 200px;
    overflow-y: auto;
}

.activity-item {
    background: white;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.activity-item i {
    color: #10b981;
}

.screen-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.back-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #667eea;
}

.history-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: white;
    padding: 8px;
    border-radius: 50px;
}

.history-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
}

.history-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

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

.withdrawal-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    border-left: 4px solid;
}

.withdrawal-card.pending { border-left-color: #f59e0b; }
.withdrawal-card.approved { border-left-color: #10b981; }
.withdrawal-card.rejected { border-left-color: #ef4444; }

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

.withdrawal-amount {
    font-size: 20px;
    font-weight: bold;
}

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

.status-pending { background: #fef3c7; color: #d97706; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #dc2626; }

.withdrawal-details {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.toast {
    position: fixed;
    bottom: 80px;
    left: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10000;
}

.toast.show { opacity: 1; }
.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }

.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

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