* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Google Sans', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #121212;
    color: #e0e0e0;
    line-height: 1.5;
}

.app {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    padding-bottom: 70px;
}

/* ========== ШАПКА С ЛОГОТИПОМ И ШЕСТЕРЁНКОЙ ========== */
.app-header {
    background: #1a1a1a;
    border-bottom: 1px solid #2d2d2d;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.settings-gear {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gear-icon {
    fill: #3b82f6;
    transition: all 0.3s ease;
}

.settings-gear:hover .gear-icon {
    fill: #2563eb;
    transform: rotate(90deg);
}

/* Контент */
.content {
    flex: 1;
    padding: 20px;
    background: #121212;
}

.page {
    display: none;
    animation: fadeIn 0.25s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Анимация */
.animation-section {
    text-align: center;
    padding: 20px 0;
    background: #1e1e1e;
    border-radius: 20px;
    margin-bottom: 24px;
    border: 1px solid #2d2d2d;
}

.animation-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.animated-gear {
    font-size: 48px;
    animation: spin 3s linear infinite;
}

.animated-robot {
    font-size: 48px;
    animation: bounce 2s ease-in-out infinite;
}

.animated-automation {
    font-size: 48px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.animation-text {
    font-size: 14px;
    color: #a0a0a0;
    font-weight: 500;
}

/* Приложения */
.apps-section {
    margin-bottom: 32px;
}

.apps-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #f0f0f0;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.app-card {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid #2d2d2d;
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.app-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.app-icon img {
    width: 32px;
    height: 32px;
    display: inline-block;
    object-fit: contain;
}

.app-name {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.app-desc {
    font-size: 11px;
    color: #888;
}

/* Отзывы */
.reviews-section {
    margin-bottom: 20px;
}

.reviews-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #f0f0f0;
}

.reviews-slider {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid #2d2d2d;
    transition: all 0.3s ease;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.review-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.review-platform-icon {
    font-size: 32px;
    min-width: 48px;
    text-align: center;
    padding-top: 4px;
}

.review-platform-icon img {
    width: 28px;
    height: 28px;
    display: inline-block;
    object-fit: contain;
}

.review-content {
    flex: 1;
}

.review-stars {
    color: #ffc107;
    font-size: 16px;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.5;
    margin-bottom: 8px;
    font-style: italic;
}

.review-author {
    font-size: 12px;
    color: #888;
}

/* Календарь оклада */
.salary-calendar {
    margin-bottom: 20px;
}

.salary-calendar h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #f0f0f0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.calendar-day {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 6px 4px;
    text-align: center;
    border: 1px solid #2d2d2d;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    min-height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calendar-day.checked {
    background: #1a2e1a;
    border-color: #10b981;
}

.calendar-day.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.day-number {
    font-size: 12px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 2px;
}

.day-amount {
    font-size: 9px;
    font-weight: 500;
    color: #3b82f6;
}

.check-icon {
    font-size: 12px;
    color: #10b981;
    display: none;
    position: absolute;
    top: 3px;
    right: 5px;
}

.calendar-day.checked .check-icon {
    display: block;
}

.day-progress {
    position: absolute;
    bottom: 2px;
    left: 4px;
    right: 4px;
    height: 3px;
    background: #2d2d2d;
    border-radius: 2px;
    overflow: hidden;
}

.day-progress-fill {
    height: 100%;
    background: #3b82f6;
    width: 0%;
    border-radius: 2px;
}

.total-salary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    color: white;
}

.total-label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
}

.total-value {
    font-size: 20px;
    font-weight: 700;
    margin: 0 4px;
}

.total-currency {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
}

/* Форма входа/регистрации */
.auth-screen {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #121212;
    min-height: calc(100vh - 70px);
}

.auth-card {
    background: #1e1e1e;
    border-radius: 28px;
    padding: 32px 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 340px;
    border: 1px solid #2d2d2d;
}

.auth-card h2 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    color: #f0f0f0;
}

.auth-card p {
    font-size: 14px;
    text-align: center;
    color: #a0a0a0;
    margin-bottom: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #3d3d3d;
    border-radius: 12px;
    font-size: 15px;
    background: #2d2d2d;
    color: #e0e0e0;
    transition: all 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #1e1e1e;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

.auth-input::placeholder {
    color: #6b7280;
}

.auth-submit-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.auth-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

.auth-submit-btn:disabled {
    background: #4b5563;
    cursor: not-allowed;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #a0a0a0;
}

.auth-link-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-weight: 600;
    margin-left: 5px;
}

.auth-link-btn:hover {
    text-decoration: underline;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #a0a0a0;
    margin: 8px 0;
}

.terms-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.terms-link {
    color: #3b82f6;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* ========== ПРОФИЛЬ ========== */
.profile-card {
    background: #1e1e1e;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    border: 1px solid #2d2d2d;
}

.profile-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.profile-info {
    flex: 2;
}

.profile-info h3 {
    font-size: 22px;
    font-weight: 600;
    color: #f0f0f0;
    margin: 0 0 8px 0;
}

.balance-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 4px;
}

.referral-block {
    flex: 1;
    text-align: right;
    margin-top: 32px;
}

.referral-label {
    font-size: 11px;
    font-weight: 500;
    color: #3b82f6;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referral-code-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2d2d2d;
    padding: 8px 12px;
    border-radius: 40px;
    margin-left: auto;  /* прижимает вправо */
}

.referral-code {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #3b82f6;
    font-family: monospace;
}

.copy-icon {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #3b82f6;
    padding: 4px;
    border-radius: 20px;
    transition: all 0.2s;
}

.copy-icon:hover {
    background: #3d3d3d;
    transform: scale(1.05);
}


/* VIP статус карточка */
.vip-status-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    border-radius: 16px;
    padding: 12px 16px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 1px solid #3d3d3d;
}

.vip-icon {
    font-size: 32px;
    background: rgba(255,255,255,0.1);
    width: 48px;
    height: 48px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-info {
    flex: 1;
}

.vip-title {
    font-size: 10px;
    opacity: 0.7;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.vip-level {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.vip-percent {
    font-size: 11px;
    opacity: 0.9;
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.deposit {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.action-btn.deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}

.action-btn.withdraw {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.action-btn.withdraw:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}

.action-btn.history {
    background: #4b5563;
    color: white;
}

.action-btn.history:hover {
    background: #374151;
    transform: translateY(-2px);
}

/* Ссылки внизу */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0 16px 0;
    padding-top: 16px;
    border-top: 1px solid #2d2d2d;
}

.footer-link {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #2d2d2d;
}

.footer-link:last-child {
    border-bottom: none;
}

.footer-link:hover {
    color: #3b82f6;
    padding-left: 8px;
}

/* Кнопка выхода */
.logout-btn {
    width: 100%;
    padding: 12px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.profile-spacer {
    height: 20px;
}

/* Статистические карточки */
.stats-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #1e1e1e;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid #2d2d2d;
}

.stat-title {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #f0f0f0;
}

.stat-currency {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.stat-note {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 8px;
}

.commission-card .stat-value {
    color: #10b981;
}

/* Сеты заданий */
.sets-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.set-card {
    background: #1e1e1e;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid #2d2d2d;
    transition: all 0.3s ease;
}

.set-card.completed {
    background: #1a2e1a;
    border-color: #10b981;
}

.set-card.locked {
    opacity: 0.6;
    background: #1a1a1a;
}

.set-header {
    display: none;
}

.set-progress {
    margin-bottom: 20px;
    text-align: center;
}

.progress-bar {
    height: 10px;
    background: #2d2d2d;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    font-size: 24px;
    font-weight: 700;
    color: #f0f0f0;
    text-align: center;
}

.progress-text span {
    font-size: 24px;
    font-weight: 700;
}

.progress-text span:first-child {
    color: #3b82f6;
}

.set-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.set-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.set-btn:disabled {
    background: #4b5563;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.set-btn.completed-btn {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.set-btn.completed-btn:hover {
    background: #059669;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.8);
}

/* ========== СТРАНИЦА ЗАДАНИЙ ========== */
.tasks-container {
    padding: 0;
}

.tasks-progress-bar {
    background: #2d2d2d;
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.tasks-progress-fill {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    height: 100%;
    width: 0%;
    border-radius: 20px;
    transition: width 0.3s;
}

.tasks-progress-text {
    font-size: 13px;
    color: #a0a0a0;
    text-align: center;
    margin-bottom: 24px;
    font-weight: 500;
}

.task-card {
    background: #1e1e1e;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: 1px solid #2d2d2d;
}

.task-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2d2d2d;
}

.task-icon {
    font-size: 48px;
    background: linear-gradient(135deg, #2d2d2d, #1e1e1e);
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-title {
    font-size: 20px;
    font-weight: 700;
    color: #f0f0f0;
}

.task-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: #2d2d2d;
    border-radius: 16px;
}

.task-stat {
    text-align: center;
}

.stat-label {
    font-size: 11px;
    color: #9ca3af;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #f0f0f0;
}

.stat-unit {
    font-size: 10px;
    color: #9ca3af;
}

.task-stat.highlight .stat-value {
    color: #10b981;
    font-size: 20px;
}

.task-review-section {
    margin-bottom: 24px;
}

.review-label {
    font-size: 14px;
    font-weight: 500;
    color: #a0a0a0;
    margin-bottom: 12px;
}

.review-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.review-option {
    background: #2d2d2d;
    border: 1px solid #3d3d3d;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.review-option:hover {
    background: #3d3d3d;
    border-color: #3b82f6;
}

.review-option.selected {
    background: #3d3d3d;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

.review-text {
    font-size: 13px;
    color: #e0e0e0;
    line-height: 1.4;
}

.task-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.task-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}

.task-submit-btn:disabled {
    background: #4b5563;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ========== ИСТОРИЯ ЗАДАНИЙ ========== */
.tasks-history {
    background: #1e1e1e;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    border: 1px solid #2d2d2d;
}

.tasks-history h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #f0f0f0;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-history-item {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    cursor: default;
    gap: 12px;
    flex-wrap: wrap;
}

.task-history-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.task-history-number span:first-child {
    font-size: 28px;
    width: 32px;
    text-align: center;
}

.task-history-item.frozen-task {
    background: #2d1a1a;
    border-left: 4px solid #ef4444;
}

.task-history-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.task-history-number {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #e0e0e0;
}

.task-history-number img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    background: #2d2d2d;
}

.task-history-date {
    font-size: 11px;
    color: #9ca3af;
}

.task-history-amount {
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
    color: #ef4444;
}

.task-history-reward {
    font-weight: 600;
    color: #10b981;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.continue-task-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.continue-task-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}

.continue-task-btn:active {
    transform: translateY(0);
}

.loading-tasks {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

.completed-tasks-section {
    margin-top: 24px;
}

.completed-tasks-section h3 {
    margin-bottom: 12px;
    font-size: 16px;
    color: #10b981;
}

@media (max-width: 480px) {
    .task-history-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .task-history-reward {
        align-self: flex-end;
        margin-top: 8px;
    }
    
    .task-history-number img {
        width: 28px;
        height: 28px;
    }
    
    .continue-task-btn {
        padding: 6px 16px;
        font-size: 12px;
    }
}

/* ========== НИЖНЯЯ ПАНЕЛЬ ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #1a1a1a;
    border-top: 1px solid #2d2d2d;
    padding: 10px 20px;
    height: 70px;
    box-sizing: border-box;
    z-index: 1000;
}

.nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.2s;
    border-radius: 35px;
    min-width: 70px;
    color: #9ca3af;
}

.nav-btn .nav-icon {
    font-size: 22px;
}

.nav-btn .nav-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-btn.active {
    color: #3b82f6;
    background: #2d2d2d;
}

/* ========== МОДАЛЬНЫЕ ОКНА (ТЁМНЫЕ) ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1e1e1e;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    border: 1px solid #2d2d2d;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #2d2d2d;
    position: sticky;
    top: 0;
    background: #1e1e1e;
    z-index: 10;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #f0f0f0;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ef4444;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    color: #d1d5db;
    line-height: 1.6;
}

.modal-body h4 {
    color: #f0f0f0;
    margin-bottom: 8px;
}

/* FAQ и Policy элементы */
.faq-item, .policy-item {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2d2d2d;
}

.faq-item:last-child, .policy-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h4, .policy-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 8px;
}

.faq-item p, .policy-item p {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.5;
}

/* Модальное окно истории транзакций */
#historyModal .modal-content {
    max-width: 500px;
}

#historyModal .transaction-item {
    background: #2d2d2d;
    border-radius: 12px;
    margin-bottom: 8px;
    padding: 12px;
}

#historyModal .transaction-title {
    color: #e0e0e0;
}

#historyModal .transaction-date {
    color: #9ca3af;
}

/* Модальное окно вывода */
#withdrawModal .modal-content {
    max-width: 500px;
}

#withdrawModal .form-group label {
    color: #a0a0a0;
}

#withdrawModal .form-group input {
    background: #2d2d2d;
    color: #e0e0e0;
    border-color: #3d3d3d;
}

/* Модальное окно депозита */
#depositModal .modal-content {
    max-width: 400px;
}

/* Модальное окно настроек */
#settingsModal .modal-content {
    max-width: 400px;
}

/* Модальное окно заданий (специальное) */
.task-modal {
    background: rgba(0,0,0,0.95);
}

.task-modal .modal-content {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    max-width: 500px;
}

.task-modal .modal-header {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
}

/* ========== КАРТОЧКИ ВЫБОРА ========== */
.card-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 10px 0;
}

.card-btn {
    background: #2d2d2d;
    border: 2px solid #3d3d3d;
    border-radius: 16px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.card-btn.active {
    border-color: #3b82f6;
    background: #1e2a3a;
}

.card-btn span:first-child {
    font-size: 32px;
}

.card-btn span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
}

/* Вывод средств */
.withdraw-amount-info {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #a0a0a0;
    flex-wrap: wrap;
    gap: 8px;
}

.full-amount-btn {
    width: 100%;
    background: #2d2d2d;
    border: 1px solid #3d3d3d;
    color: #3b82f6;
    padding: 10px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
}

.full-amount-btn:hover {
    background: #3d3d3d;
}

/* Модальное окно заданий (продолжение) */
.task-progress {
    margin-bottom: 20px;
}

.task-progress-bar {
    height: 8px;
    background: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
}

.task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    width: 0%;
    transition: width 0.3s;
    border-radius: 10px;
}

.task-progress-text {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

.task-card-modal {
    background: #2d2d2d;
    border-radius: 20px;
    padding: 20px;
}

.task-header-modal {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.task-icon-modal {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    object-fit: cover;
    background: #3d3d3d;
}

.task-title-modal {
    font-size: 18px;
    font-weight: bold;
    color: #f0f0f0;
    flex: 1;
}

.task-stats-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.task-stat-item {
    flex: 1;
    background: #1e1e1e;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
}

.task-stat-item .stat-label {
    font-size: 11px;
    color: #9ca3af;
    display: block;
    margin-bottom: 4px;
}

.task-stat-item .stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #fbbf24;
}

.task-stat-item .stat-unit {
    font-size: 10px;
    color: #6b7280;
}

.task-rating-section {
    margin-bottom: 20px;
    text-align: center;
}

.rating-label {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 8px;
}

.rating-stars {
    font-size: 32px;
    letter-spacing: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.rating-stars span {
    cursor: pointer;
    transition: transform 0.2s;
    color: #ffd700;
}

.rating-stars span:hover {
    transform: scale(1.1);
}

.rating-hint {
    font-size: 11px;
    color: #6b7280;
    margin-top: 8px;
}

.review-options-modal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

.review-option-modal {
    background: #1e1e1e;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #3d3d3d;
}

.review-option-modal:hover {
    background: #2d2d2d;
    transform: translateX(4px);
}

.review-option-modal.selected {
    background: linear-gradient(135deg, #10b981, #059669);
}

.review-text-modal {
    font-size: 13px;
    color: #e0e0e0;
    line-height: 1.4;
}

.hidden {
    display: none !important;
}

@media (max-width: 480px) {
    .task-modal .modal-content {
        width: 95%;
        padding: 16px;
    }
    
    .task-stats-row {
        gap: 6px;
    }
    
    .task-stat-item {
        padding: 8px;
    }
    
    .task-stat-item .stat-value {
        font-size: 14px;
    }
    
    .task-title-modal {
        font-size: 14px;
    }
    
    .task-icon-modal {
        width: 40px;
        height: 40px;
    }
    
    .rating-stars {
        font-size: 28px;
        letter-spacing: 4px;
    }
    
    .review-text-modal {
        font-size: 11px;
    }
}

/* Иконки соцсетей */
.app-icon .fa-telegram {
    color: #26A5E4 !important;
}

.app-icon .fa-instagram {
    color: #E4405F !important;
}

.review-platform-icon .fa-telegram {
    color: #26A5E4 !important;
}   

.review-platform-icon .fa-instagram {
    color: #E4405F !important;
}

/* ========== СТИЛИ ДЛЯ ПОЛЯ ВВОДА ДЕПОЗИТА ========== */
#depositAmount {
    width: 100%;
    padding: 14px 16px;
    background: #2d2d2d;
    border: 1px solid #3d3d3d;
    border-radius: 12px;
    font-size: 16px;
    color: #e0e0e0;
    transition: all 0.2s;
}

#depositAmount:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

#depositAmount::placeholder {
    color: #6b7280;
}

.deposit-amount-info {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 10px;
    margin-top: 8px;
    font-size: 13px;
    color: #a0a0a0;
}

/* Кнопка пополнения - синяя */
#confirmDepositBtn {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#confirmDepositBtn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}

/* Кнопка отправки заявки в выводе - синяя */
#confirmWithdrawBtn {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

#confirmWithdrawBtn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}

/* ========== МОДАЛЬНОЕ ОКНО НАСТРОЕК ========== */
.settings-item {
    margin-bottom: 24px;
}

.settings-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.settings-input {
    width: 100%;
    padding: 14px 16px;
    background: #2d2d2d;
    border: 1px solid #3d3d3d;
    border-radius: 12px;
    font-size: 15px;
    color: #e0e0e0;
    transition: all 0.2s;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.settings-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

.settings-input::placeholder {
    color: #6b7280;
}

.settings-save-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-save-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}

.settings-lang-buttons {
    display: flex;
    gap: 12px;
}

.settings-lang-btn {
    flex: 1;
    background: #2d2d2d;
    border: 1px solid #3d3d3d;
    padding: 12px 16px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #e0e0e0;
}

.settings-lang-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    color: white;
}

.settings-lang-btn:hover {
    background: #3d3d3d;
}

/* Стили для крестика в модальном окне заданий */
.task-modal .modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
    border-bottom: 1px solid #2d2d2d;
}

.task-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.task-modal .modal-close:hover {
    color: #ef4444;
}

/* Модальное окно заданий - без закреплённой шапки */
.task-modal .modal-header {
    position: relative;
    background: transparent;
    border-bottom: 1px solid #2d2d2d;
    margin-bottom: 0;
}

.task-modal .modal-content {
    overflow: hidden;
}

.task-modal .modal-body {
    max-height: calc(90vh - 50px);
    overflow-y: auto;
    padding: 16px 20px 20px 20px;
}

/* Увеличение отступов в модальном окне заданий */
.task-modal .modal-body {
    padding-bottom: 30px;
}

.task-submit-btn {
    margin-bottom: 10px;
}

/* ========== ЖИВАЯ СТАТИСТИКА ========== */
.live-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1e1e2e, #1a1a2e);
    border-radius: 16px;
    padding: 10px 16px;
    margin: 16px 0 20px 0;
    border: 1px solid #2d2d3d;
}

.live-stats-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.live-stats-icon {
    font-size: 24px;
    background: rgba(59, 130, 246, 0.15);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.live-stats-info {
    display: flex;
    flex-direction: column;
}

.live-stats-label {
    font-size: 10px;  /* было 11px */
    color: #9ca3af;
    letter-spacing: 0.3px;
}

.live-stats-value {
    font-size: 16px;  /* было 20px */
    font-weight: 700;
    color: #3b82f6;
    font-family: 'Monaco', 'Courier New', monospace;
}

.live-stats-divider {
    width: 1px;
    height: 30px;  /* было 40px */
    background: #2d2d3d;
}

/* Анимация пульсации для активных пользователей */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

#activeUsers {
    animation: pulse 2s ease-in-out infinite;
}

/* Переключатель языка на странице входа - СИНИЙ */
.language-switcher .lang-flag-btn {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 20px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 30px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    color: #e0e0e0;
}

.language-switcher .lang-flag-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.language-switcher .lang-flag-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}
