/* === ОСНОВНЫЕ СТИЛИ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ecf0f1;
    min-height: 100vh;
    overflow-x: hidden;
}

/* === КОНТЕЙНЕР === */
.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 90px;
}

/* === ЗАГОЛОВОК === */
.header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.balance-icon {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.balance-icon:hover {
    transform: scale(1.1);
}

.app-title {
    font-size: 20px;
    font-weight: 800;
    color: #3498db;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.free-spins {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 12px;
    background: rgba(52, 152, 219, 0.2);
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.main-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ecf0f1;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #3498db, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* === РУЛЕТКА === */
.roulette-container {
    position: relative;
    height: 120px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.roulette-selector {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 100px;
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    border-radius: 2px;
    z-index: 10;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.8);
}

.roulette-selector::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 15px solid #e74c3c;
}

.roulette-selector::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 15px solid #e74c3c;
}

.roulette-track {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 90px;
    white-space: nowrap;
    transition: none;
}

.roulette-track.pull-back {
    animation: pullBack 0.5s ease-in-out;
}

@keyframes pullBack {
    0% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(30px); }
    100% { transform: translateY(-50%) translateX(0); }
}

.gift-item {
    display: inline-block;
    width: 90px;
    height: 90px;
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    vertical-align: top;
    transition: transform 0.1s ease;
}

.gift-item:hover {
    transform: scale(1.05);
    border-color: rgba(52, 152, 219, 0.6);
}

.gift-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 14px;
    color: #95a5a6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* === КНОПКИ ВЫБОРА ШАНСА === */
.spin-options {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
}

.spin-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    position: relative;
}

.spin-btn:hover:not(.locked) {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
    transform: translateY(-1px);
}

.spin-btn.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.4);
}

.spin-btn.locked {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(149, 165, 166, 0.2);
}

.lock-icon {
    margin-right: 4px;
}

/* === ГЛАВНАЯ КНОПКА СПИНА === */
.main-spin-btn {
    width: 100%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    border-radius: 12px;
    padding: 14px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.main-spin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.main-spin-btn:hover:not(:disabled)::before {
    left: 100%;
}

.main-spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.main-spin-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* === КНОПКА ВЫВОДА ПОДАРКОВ === */
.withdraw-btn {
    width: 100%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
    border-radius: 12px;
    padding: 14px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.withdraw-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.withdraw-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* === РАЗДЕЛИТЕЛЬ === */
.or-divider {
    text-align: center;
    margin: 8px 0;
    font-size: 12px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === НАВИГАЦИЯ === */
.navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 15px 15px 15px;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 10px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.nav-icon {
    font-size: 16px;
    margin-bottom: 2px;
}

/* === СТРАНИЦЫ === */
.page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
    padding-bottom: 80px;
}

.page.hidden {
    display: none;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #3498db, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 20px;
    font-size: 14px;
}

/* === СТАТИСТИКА === */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === ЗАДАНИЯ === */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(52, 152, 219, 0.3);
}

.task-title {
    font-size: 16px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 5px;
}

.task-description {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.task-progress {
    font-size: 12px;
    color: #f39c12;
    margin-bottom: 8px;
    font-weight: 600;
}

.task-reward {
    font-size: 12px;
    color: #2ecc71;
    margin-bottom: 10px;
    font-weight: 600;
}

.task-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.task-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3);
}

.task-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* === ИСТОРИЯ === */
.history-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.filter-btn:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
}

.filter-btn.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 12px;
    object-fit: cover;
}

.history-info {
    flex: 1;
}

.history-prize {
    font-size: 14px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 2px;
}

.history-time {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 2px;
}

.history-multiplier {
    font-size: 11px;
    color: #f39c12;
    font-weight: 600;
}

.history-value {
    font-size: 20px;
    color: #2ecc71;
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.6;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* === СТЕЙКИНГ === */
.staking-notice {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notice-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* === ВЫВОД ПОДАРКОВ === */
.withdraw-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 20px;
}

.withdraw-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.withdraw-info h3 {
    color: #3498db;
    margin-bottom: 8px;
    font-size: 16px;
}

.withdraw-info p {
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
}

.info-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

/* === АВТОРИЗАЦИЯ === */
.auth-step {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-step.hidden {
    display: none;
}

.auth-step h4 {
    color: #3498db;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.auth-note {
    text-align: center;
    font-size: 11px;
    opacity: 0.7;
    margin-top: 8px;
    line-height: 1.3;
}

.phone-input-container,
.password-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.phone-input,
.password-input {
    width: 100%;
    max-width: 220px;
    padding: 10px 14px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
}

.phone-input:focus,
.password-input:focus {
    border-color: rgba(52, 152, 219, 0.6);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.code-input-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.code-digit {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
}

.code-digit:focus {
    border-color: rgba(52, 152, 219, 0.6);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.auth-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    min-width: 100px;
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-btn.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3);
}

.success-icon {
    font-size: 40px;
    text-align: center;
    margin-bottom: 10px;
}

/* === PREMIUM КОНТЕНТ === */
.premium-content {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.premium-content.hidden {
    display: none;
}

.premium-info {
    margin-bottom: 15px;
    text-align: center;
}

.premium-info h3 {
    color: #f39c12;
    margin-bottom: 8px;
    font-size: 16px;
}

.premium-info p {
    font-size: 13px;
    line-height: 1.3;
    margin: 0;
}

.premium-instructions {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
}

.premium-instructions h4 {
    color: #f39c12;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

.instruction-steps {
    margin-bottom: 15px;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid #f39c12;
}

.step-number {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    margin-right: 10px;
    flex-shrink: 0;
}

.step-content strong {
    color: #ecf0f1;
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
}

.step-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    line-height: 1.3;
}

.step-content code {
    background: rgba(52, 152, 219, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #3498db;
    font-size: 11px;
}

.premium-action-btn {
    width: 100%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
    border-radius: 10px;
    padding: 12px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
}

.premium-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.non-premium-content.hidden {
    display: none;
}

/* === МОДАЛЬНОЕ ОКНО === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 20px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.modal-header h3 {
    color: #f39c12;
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 0 20px;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.instruction-step .step-number {
    background: linear-gradient(135deg, #3498db, #2980b9);
    width: 30px;
    height: 30px;
    font-size: 14px;
}

.instruction-step .step-content h4 {
    margin: 0 0 8px 0;
    color: #ecf0f1;
    font-size: 16px;
}

.instruction-step .step-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.instruction-step .step-content strong {
    color: #f39c12;
}

.instruction-final {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.final-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.instruction-final p {
    margin: 0;
    font-weight: 600;
    color: #2ecc71;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.modal-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

/* === POPUP ПОБЕДИТЕЛЯ === */
.winner-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.winner-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    border: 2px solid rgba(46, 204, 113, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.winner-image {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    margin-bottom: 20px;
    object-fit: cover;
    border: 3px solid rgba(46, 204, 113, 0.5);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.close-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

/* === УВЕДОМЛЕНИЯ === */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.notification.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.notification.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.notification.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .header {
        margin-bottom: 15px;
    }

    .main-title {
        font-size: 18px;
    }

    .subtitle {
        font-size: 12px;
    }

    .roulette-container {
        height: 100px;
        margin-bottom: 15px;
    }

    .roulette-track {
        height: 70px;
    }

    .gift-item {
        width: 70px;
        height: 70px;
        margin: 0 3px;
    }

    .spin-options {
        gap: 4px;
        margin-bottom: 12px;
    }

    .spin-btn {
        padding: 6px 8px;
        font-size: 10px;
    }

    .main-spin-btn,
    .withdraw-btn {
        padding: 12px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .stats-grid {
        gap: 10px;
        margin-bottom: 15px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-number {
        font-size: 20px;
    }

    .tasks-list {
        gap: 12px;
    }

    .task-item {
        padding: 12px;
    }

    .task-title {
        font-size: 14px;
    }

    .history-item {
        padding: 10px;
    }

    .history-item img {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .withdraw-content {
        gap: 10px;
    }

    .auth-step,
    .premium-content {
        padding: 10px;
        margin-bottom: 10px;
    }

    .step {
        padding: 8px;
        margin-bottom: 8px;
    }

    .step-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
        margin-right: 8px;
    }

    .step-content strong {
        font-size: 11px;
    }

    .step-content p {
        font-size: 10px;
    }

    .premium-action-btn {
        padding: 10px;
        font-size: 13px;
    }

    .code-digit {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .code-input-container {
        gap: 6px;
    }

    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }

    .modal-header {
        padding: 15px 15px 0 15px;
    }

    .modal-body {
        padding: 0 15px;
    }

    .modal-footer {
        padding: 15px;
    }

    .instruction-step {
        gap: 10px;
    }

    .instruction-step .step-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .winner-content {
        padding: 20px;
        max-width: 300px;
    }

    .winner-image {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    .navigation {
        padding: 8px 10px 12px 10px;
    }

    .nav-icon {
        font-size: 14px;
        margin-bottom: 1px;
    }

    .nav-item {
        font-size: 9px;
        padding: 3px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 8px;
    }

    .main-title {
        font-size: 16px;
    }

    .roulette-container {
        height: 90px;
    }

    .gift-item {
        width: 60px;
        height: 60px;
        margin: 0 2px;
    }

    .spin-btn {
        padding: 5px 6px;
        font-size: 9px;
    }

    .main-spin-btn,
    .withdraw-btn {
        padding: 10px;
        font-size: 13px;
    }

    .code-digit {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .winner-content {
        padding: 15px;
        max-width: 280px;
    }

    .winner-image {
        width: 80px;
        height: 80px;
        margin-bottom: 12px;
    }
}

/* === АНИМАЦИИ === */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(52, 152, 219, 0.6);
    }
}

/* === ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ === */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.p-10 {
    padding: 10px;
}

.p-15 {
    padding: 15px;
}

.p-20 {
    padding: 20px;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-center {
    align-items: center;
    justify-content: center;
}

.flex-between {
    justify-content: space-between;
}

.flex-around {
    justify-content: space-around;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-70 {
    opacity: 0.7;
}

.opacity-80 {
    opacity: 0.8;
}

.border-radius-5 {
    border-radius: 5px;
}

.border-radius-10 {
    border-radius: 10px;
}

.border-radius-15 {
    border-radius: 15px;
}

/* === ТЕМНАЯ ТЕМА === */
:root {
    --primary-color: #3498db;
    --secondary-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --text-primary: #ecf0f1;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* === ПЛАВНАЯ ПРОКРУТКА === */
html {
    scroll-behavior: smooth;
}

/* === СКРЫТИЕ СКРОЛЛБАРА === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.7);
}

/* === ВЫДЕЛЕНИЕ ТЕКСТА === */
::selection {
    background: rgba(52, 152, 219, 0.3);
    color: #ecf0f1;
}

::-moz-selection {
    background: rgba(52, 152, 219, 0.3);
    color: #ecf0f1;
}

/* === СТРАНИЦА ВЫВОДА ПОДАРКОВ === */
.withdraw-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 20px;
}

.withdraw-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.withdraw-info h3 {
    color: #3498db;
    margin-bottom: 8px;
    font-size: 16px;
}

.withdraw-info p {
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
}

.info-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

/* === АВТОРИЗАЦИЯ === */
.auth-step {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-step.hidden {
    display: none;
}

.auth-step h4 {
    color: #3498db;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.auth-note {
    text-align: center;
    font-size: 11px;
    opacity: 0.7;
    margin-top: 8px;
    line-height: 1.3;
}

.phone-input-container,
.password-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.phone-input,
.password-input {
    width: 100%;
    max-width: 220px;
    padding: 10px 14px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
}

.phone-input:focus,
.password-input:focus {
    border-color: rgba(52, 152, 219, 0.6);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.code-input-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.code-digit {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
}

.code-digit:focus {
    border-color: rgba(52, 152, 219, 0.6);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.auth-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    min-width: 100px;
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-btn.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3);
}

.success-icon {
    font-size: 40px;
    text-align: center;
    margin-bottom: 10px;
}

/* === PREMIUM КОНТЕНТ === */
.premium-content {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.premium-content.hidden {
    display: none;
}

.premium-info {
    margin-bottom: 15px;
    text-align: center;
}

.premium-info h3 {
    color: #f39c12;
    margin-bottom: 8px;
    font-size: 16px;
}

.premium-info p {
    font-size: 13px;
    line-height: 1.3;
    margin: 0;
}

.premium-instructions {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
}

.premium-instructions h4 {
    color: #f39c12;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

.instruction-steps {
    margin-bottom: 15px;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid #f39c12;
}

.step-number {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    margin-right: 10px;
    flex-shrink: 0;
}

.step-content strong {
    color: #ecf0f1;
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
}

.step-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    line-height: 1.3;
}

.step-content code {
    background: rgba(52, 152, 219, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #3498db;
    font-size: 11px;
}

.premium-action-btn {
    width: 100%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
    border-radius: 10px;
    padding: 12px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
}

.premium-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* === BENEFITS ДЛЯ ОБЫЧНЫХ ПОЛЬЗОВАТЕЛЕЙ === */
.premium-benefits {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-benefits h4 {
    color: #f39c12;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.premium-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.premium-benefits li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    line-height: 1.3;
}

.premium-benefits li:last-child {
    border-bottom: none;
}

.premium-btn.small {
    font-size: 12px;
    padding: 8px 16px;
    width: 100%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-btn.small:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
}

.non-premium-content.hidden {
    display: none;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 480px) {
    .withdraw-content {
        gap: 10px;
    }

    .auth-step, .premium-content {
        padding: 10px;
        margin-bottom: 10px;
    }

    .step {
        padding: 8px;
        margin-bottom: 8px;
    }

    .step-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
        margin-right: 8px;
    }

    .step-content strong {
        font-size: 11px;
    }

    .step-content p {
        font-size: 10px;
    }

    .premium-action-btn {
        padding: 10px;
        font-size: 13px;
    }

    .code-digit {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .code-input-container {
        gap: 6px;
    }

    .phone-input, .password-input {
        max-width: 200px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .auth-btn {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 80px;
    }

    .premium-benefits {
        padding: 12px;
    }

    .premium-benefits h4 {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .premium-benefits li {
        font-size: 11px;
        padding: 3px 0;
    }

    .withdraw-info {
        padding: 12px;
    }

    .withdraw-info h3 {
        font-size: 15px;
    }

    .withdraw-info p {
        font-size: 12px;
    }

    .info-icon {
        font-size: 25px;
        margin-bottom: 8px;
    }

    .success-icon {
        font-size: 35px;
    }
}

@media (max-width: 360px) {
    .code-digit {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .phone-input, .password-input {
        max-width: 180px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .auth-step h4 {
        font-size: 13px;
    }

    .step-content strong {
        font-size: 10px;
    }

    .step-content p {
        font-size: 9px;
    }

    .premium-instructions h4 {
        font-size: 13px;
    }

    .premium-action-btn {
        font-size: 12px;
        padding: 8px;
    }
}

/* === ЛОАДЕР ПРОВЕРКИ СТАТУСА === */
.loading-check {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loading-icon {
    font-size: 40px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.loading-check p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
    color: #3498db;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Добавьте эти стили в styles.css */

/* Статусы пользователя */
.user-status {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.premium-badge, .regular-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.premium-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #2c1810;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.regular-badge {
    background: linear-gradient(135deg, #6B73FF, #9D50BB);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 115, 255, 0.3);
}

/* Состояния подарков */
.gift-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.gift-card.disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    z-index: 1;
}

.gift-lock {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: 1.2rem;
    z-index: 2;
}

/* Требование Premium */
.premium-required {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.premium-required p {
    margin: 0 0 5px 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.premium-required small {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Успешная авторизация */
.auth-header.success {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
}

.auth-header.success .auth-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.success-info {
    text-align: center;
    padding: 20px 0;
}

.user-info {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(68, 160, 141, 0.1));
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid rgba(78, 205, 196, 0.3);
}

.user-info h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.premium-status {
    color: #FFD700;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.regular-status {
    color: #6B73FF;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

/* Анимации для статусов */
.premium-badge, .regular-badge {
    animation: statusBadgeAppear 0.5s ease-out;
}

@keyframes statusBadgeAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Улучшенная сетка подарков для разных состояний */
.gifts-grid .gift-card.selectable:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gifts-grid .gift-card.disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Чекбоксы для выбора подарков */
.gift-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.gift-card.selected .gift-checkbox {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    border-color: #4ECDC4;
}

.gift-card.selected .gift-checkbox::after {
    content: '✓';
    color: white;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}

/* Отзывчивость для мобильных устройств */
@media (max-width: 768px) {
    .user-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .premium-badge, .regular-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
    }

    .premium-required {
        padding: 15px;
        margin: 15px 0;
    }

    .user-info h3 {
        font-size: 1.1rem;
    }
}