@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --modal-bg: #121212;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #707070;
    --accent-green: #10b981;
    --accent-green-bright: #00ff85;
    --accent-green-glow: rgba(16, 185, 129, 0.3);
    --accent-green-dark: #166534;
    --accent-yellow: #fbbf24;
    --accent-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --green-border: rgba(16, 185, 129, 0.3);
    --accent-red: #ef4444;
    --border-color: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-deep: 0 8px 32px rgba(0, 0, 0, 0.6);
    --glow-green: 0 4px 16px rgba(16, 185, 129, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 50%, transparent 100%);
    padding: 20px 20px 24px;
    margin-bottom: 0;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    pointer-events: none;
}

.user-greeting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.greeting-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.greeting-text #userName {
    color: #4ADE80;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(74, 222, 128, 0.4);
}

.balance-badge-large {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #222;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #fcd34d;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.balance-badge-large svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.5));
}

/* Online Counter */
.online-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(22, 101, 52, 0.4);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid rgba(74, 222, 128, 0.3);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Bonus Banner */
.bonus-banner {
    margin: 0 20px 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.4),
                0 8px 24px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.4),
                    0 8px 24px rgba(0, 0, 0, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 60px rgba(16, 185, 129, 0.6),
                    0 8px 24px rgba(0, 0, 0, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.bonus-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.bonus-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.flowers-decoration {
    display: none;
}

.bonus-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bonus-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bonus-title {
    font-size: 26px;
    font-weight: 900;
    color: #d1fae5;
    margin: 0;
    text-shadow: 0 0 24px rgba(16, 185, 129, 0.8),
                 0 4px 16px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.8px;
}

.bonus-timer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bonus-timer-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(209, 250, 229, 0.9);
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.bonus-timer {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.timer-segment {
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 8px;
    border-radius: 6px;
    min-width: 36px;
    text-align: center;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.timer-separator {
    opacity: 0.5;
}

.bonus-gift {
    display: none;
}

.gift-container {
    display: none;
}

.gift-emoji {
    display: none;
}

.bunny-emoji {
    display: none;
}

/* Recent Payouts List */
.payouts-container {
    margin: 0 20px 20px;
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.1), rgba(20, 83, 45, 0.1));
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.payouts-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(74, 222, 128, 0.2);
}

.payouts-header svg {
    color: var(--accent-green);
    filter: drop-shadow(0 2px 4px rgba(74, 222, 128, 0.4));
}

.payouts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 240px;
    overflow: hidden;
}

.payout-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(74, 222, 128, 0.1);
    transition: all 0.3s ease;
    animation: slideInFromTop 0.5s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideOutToBottom {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
}

.payout-item:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
    transform: scale(1.02);
}

.payout-item .name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.payout-item .amount {
    font-weight: 700;
    font-size: 14px;
}

.payout-item .amount-label {
    color: var(--text-primary);
}

.payout-item .amount-value {
    color: #4ade80;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.8),
                 0 2px 6px rgba(74, 222, 128, 0.4);
}

.payout-item .status {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
    margin: 20px 0;
}

.action-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-btn-full {
    width: 100%;
}

.action-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 16px;
    border: none;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', 'Roboto', sans-serif;
    letter-spacing: 0.2px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:active::before {
    width: 300px;
    height: 300px;
}

.action-btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: var(--text-primary);
    box-shadow: 0 0 35px rgba(5, 150, 105, 0.6),
                0 4px 16px rgba(4, 120, 87, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 45px rgba(5, 150, 105, 0.8),
                0 6px 24px rgba(4, 120, 87, 0.7);
}

.action-btn-secondary {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(4, 120, 87, 0.4),
                0 4px 16px rgba(6, 95, 70, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.action-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(4, 120, 87, 0.6),
                0 6px 24px rgba(6, 95, 70, 0.5);
}

.action-btn-tertiary {
    background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(6, 95, 70, 0.3),
                0 4px 16px rgba(6, 78, 59, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.action-btn-tertiary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(6, 95, 70, 0.5),
                0 6px 24px rgba(6, 78, 59, 0.5);
}

/* Tasks Section */
.tasks-section {
    padding: 0 20px;
    margin-top: 32px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.section-title svg {
    color: var(--accent-green);
    filter: drop-shadow(0 2px 6px rgba(74, 222, 128, 0.5));
}

.tasks-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.task-card {
    background: #1A1A1A;
    border: 1px solid #2C2C2C;
    border-radius: 12px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 40px 1fr 100px;
    gap: 12px;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.task-card:hover {
    border-color: rgba(74, 222, 128, 0.4);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.task-card.vip-card {
    border: 1px solid #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-top: 22px;
}

.task-card.vip-card:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.vip-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    z-index: 1;
}

.task-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.task-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.task-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.task-progress {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 2px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.task-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    justify-self: end;
}

.task-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.info-btn {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.info-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.reward-amount {
    font-size: 16px;
    font-weight: 700;
    color: #4ade80;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.8),
                 0 2px 6px rgba(74, 222, 128, 0.4);
    white-space: nowrap;
}

.reward-amount.vip-reward {
    color: #FFD700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.8),
                 0 2px 6px rgba(255, 215, 0, 0.4);
}


.task-btn {
    width: 100px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.task-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.task-btn:active:not(:disabled) {
    transform: translateY(0);
}

.task-btn:disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 1;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    will-change: backdrop-filter;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.98) 0%, rgba(16, 32, 28, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--green-border);
    border-radius: 28px;
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.15);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.2s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@keyframes slideUp {
    from {
        transform: translate3d(0, 30px, 0);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 20px;
    border-bottom: none;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.modal-close {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(40, 40, 40, 0.9);
    color: var(--text-primary);
    transform: scale(1.05);
}

.modal-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Удалено дублирование - используется новый стиль ниже */

.withdrawal-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.withdrawal-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.method-btn:hover {
    border-color: #00FF85;
    background: rgba(0, 255, 133, 0.05);
}

.method-btn.active {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #00FF85 !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(0, 255, 133, 0.4) !important;
    font-weight: 700 !important;
}

/* Prevent SVG and child elements from blocking clicks */
.method-btn svg,
.method-btn path,
.method-btn rect,
.bank-btn svg,
.bank-btn path,
.bank-btn rect {
    pointer-events: none !important;
}

.method-btn {
    pointer-events: auto !important;
}

.bank-btn {
    pointer-events: auto !important;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00FF85;
    box-shadow: 0 0 0 3px rgba(0, 255, 133, 0.15), 0 0 15px rgba(0, 255, 133, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.bank-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.bank-btn {
    padding: 8px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    user-select: none;
    position: relative;
    z-index: 10;
}

.bank-btn:hover {
    border-color: var(--accent-green);
}

.bank-btn.active {
    border-color: var(--accent-green) !important;
    background: rgba(74, 222, 128, 0.15) !important;
    color: var(--accent-green) !important;
    font-weight: 700 !important;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.3) !important;
}

/* Action Button (Matte Gold with BLACK text) */
.submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.85) 0%, rgba(245, 158, 11, 0.85) 100%);
    color: #000000;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Green Check Button (Matte Green with WHITE text) */
.submit-btn.check-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.submit-btn.check-btn:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.modal-note {
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 12px;
}

/* Close Button */
.close-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    text-align: center;
}

.close-btn:hover {
    border-color: var(--accent-green);
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent-green);
}

.close-btn:active {
    transform: scale(0.98);
}

/* Withdrawal Success */
.withdrawal-success {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-green);
}

/* History Modal */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-green);
}

.history-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.history-status {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* В ожидании - Оранжевый */
.status-pending,
.status-vozidanii,
.status-rassmatrivaetsa {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

/* Выполнено - Зеленый */
.status-done,
.status-vipolneno,
.status-podtverzhdena,
.status-otpravlena {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
}

/* Отклонено - Красный */
.status-rejected,
.status-otkloneno,
.status-otmenena {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.history-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.history-details {
    font-size: 12px;
    color: var(--text-tertiary);
    font-family: monospace;
}

.status-podtverzhdena {
    background: rgba(16, 185, 129, 0.2);
    color: #4ade80;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.empty-history {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Task Card (top block with green border) */
.modal-task-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(16, 40, 32, 0.6) 100%);
    border: 1px solid var(--green-border);
    border-radius: 14px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 0;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.1);
}

.modal-task-card .task-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--green-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.modal-task-card .task-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-task-card .task-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-task-card .task-progress {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.task-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-green-bright) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.modal-task-card .task-action {
    display: flex;
    align-items: center;
}

.modal-task-card .reward-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-green-bright);
    text-shadow: 0 0 8px rgba(0, 255, 133, 0.4);
}

/* Referral Link Box */
.referral-link-box {
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(16, 40, 32, 0.6) 100%);
    border: 1px solid var(--green-border);
    border-radius: 12px;
    margin-bottom: 0;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.1);
}

.referral-link-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.referral-link-input {
    display: flex;
    align-items: center;
    gap: 6px;
}

.referral-link-input input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 12px;
    font-family: monospace;
    outline: none;
}

.referral-link-input input:focus {
    border-color: var(--accent-green);
}

.copy-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.copy-btn svg {
    width: 18px;
    height: 18px;
}

/* Steps (each in separate card with green border) */
.task-description {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.task-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.5) 0%, rgba(16, 40, 32, 0.4) 100%);
    border: 1px solid var(--green-border);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.step-number {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--green-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(16, 185, 129, 0.9);
    margin-top: 1px;
}

.step-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
    opacity: 0.9;
    text-align: left;
}

/* Reward Block (very dark, blends with background) */
.task-reward-note {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-align: center;
    margin-top: 0;
    font-size: 13px;
    font-weight: 500;
    color: rgba(160, 160, 160, 0.8);
}

.task-reward-note span {
    display: inline-block;
    margin-left: 6px;
    color: var(--accent-green-bright);
    font-weight: 700;
    font-size: 17px;
    text-shadow: 0 0 12px rgba(0, 255, 133, 0.5);
}

/* Auto Check Text (inside reward block) */
.task-auto-check-text {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(16, 185, 129, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Success Modal */
.success-modal-content {
    text-align: center;
    padding: 40px 30px;
    max-width: 400px;
    position: relative;
}

.success-modal-content .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    animation: successPop 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.success-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: center;
}

.success-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.6);
    text-align: center;
}

.success-modal-content .close-btn {
    margin-top: 0;
}

/* Footer */
.app-footer {
    padding: 40px 20px 30px;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.footer-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Interactive Slider */
.interactive-slider {
    margin-bottom: 20px;
}

.slider-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.slider-container {
    position: relative;
    min-height: 220px;
}

.slider-card {
    display: none;
    background: #222;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.slider-card.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slider-image {
    width: 100%;
    height: 140px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-placeholder {
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
    padding: 0 4px;
}

.slider-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.slider-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Age Verification Modal */
.age-verification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease-out;
}

.age-verification-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.age-modal-content {
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s ease-out;
}

/* Removed duplicate slideUp animation */

.age-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    color: white;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.age-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.age-modal-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.age-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.age-btn {
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.age-btn-accept {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.age-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
}

.age-btn-accept:active {
    transform: translateY(0);
}

.age-btn-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.age-btn-decline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

/* Banner Animations */
@keyframes hourglassRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.02);
    }
}

.hourglass-icon {
    display: inline-block;
    animation: hourglassRotate 3s ease-in-out infinite;
}

.bonus-title {
    animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .bonus-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .bonus-timer {
        margin: 12px auto 0;
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
}

/* Withdrawal Steps */
.withdraw-step {
    animation: fadeIn 0.3s ease-in-out;
}

.balance-info-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid var(--green-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.balance-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--accent-yellow);
}

.balance-text {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 28px;
}

.balance-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    line-height: 28px;
}

.balance-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 28px;
}

.withdraw-info-block {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid var(--green-border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    flex-shrink: 0;
    color: var(--text-tertiary);
}

.info-item span {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
}

.info-item span strong {
    color: var(--accent-green);
    font-weight: 600;
}

.selected-method-info {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.selected-bank-info {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.selected-method-info p {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-green);
}

.back-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.back-btn:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
