/* ===== ГЛОБАЛЬНЫЕ НАСТРОЙКИ ===== */
* {
    box-sizing: border-box;
    max-width: 100%; /* Запрещаем элементам быть шире экрана */
}

html, body {
    margin: 0;
    padding: 0;
    background: #0f172a;
    color: #f8fafc;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    overflow-x: hidden; /* Глобальный запрет горизонтальной прокрутки */
    width: 100%;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px; /* Уменьшил для лучшей посадки на мобилках */
    text-align: center;
}

/* ===== РЕКЛАМА (СТРОГИЙ АДАПТИВ) ===== */
.ad-top, .ad-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
    width: 100%;
    overflow: hidden;
}

.ad-inner {
    width: 100%;
    max-width: 728px;
}

.ad-inner iframe, .ad-top iframe, .ad-bottom iframe {
    max-width: 100% !important; /* Насильно втискиваем рекламу в экран */
}

/* ===== КАРТОЧКА КРАНА ===== */
.faucet-card {
    background: #1e293b;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid #334155;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.faucet-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #34d399, #3b82f6);
}

h1 {
    font-size: 1.8rem; /* Оптимизировал размер для всех устройств */
    margin-bottom: 10px;
    color: #ffffff;
}

.reward-info {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.reward-info span {
    color: #34d399;
    font-weight: bold;
}

/* ===== КНОПКИ И ФОРМЫ ===== */
.btn-claim {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 15px auto;
    padding: 16px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(16,185,129,0.4);
}

.btn-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.6);
}

.btn-claim:disabled, .btn-claim.btn-disabled {
    background: #475569 !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.6;
}

.input-email {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    margin: 10px 0;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    font-size: 16px;
}

/* ===== ТАЙМЕР И ПРОГРЕСС ===== */
.timer-box {
    font-size: 1.4rem;
    font-weight: bold;
    color: #34d399;
    margin: 10px 0;
}

.progress-bar {
    height: 8px;
    background: #334155;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #34d399, #3b82f6);
    transition: width 1s linear;
}

/* ===== ТАБЛИЦА ВЫПЛАТ (БЕЗ СКРОЛЛА) ===== */
.table-container {
    margin-top: 30px;
    background: #1e293b;
    border-radius: 10px;
    border: 1px solid #334155;
    width: 100%;
    overflow: hidden; /* Убирает скролл внутри контейнера */
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #94a3b8;
    table-layout: fixed; /* Жестко фиксирует ширину колонок */
}

th {
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    padding: 10px 5px;
    text-align: left;
}

td {
    padding: 10px 5px;
    border-bottom: 1px solid #334155;
    overflow: hidden;
    text-overflow: ellipsis; /* Три точки, если не влезло */
    white-space: nowrap;
}

/* Пропорции колонок: 50% - 25% - 25% */
table th:nth-child(1), table td:nth-child(1) { width: 50%; text-align: left; }
table th:nth-child(2), table td:nth-child(2) { width: 25%; text-align: center; }
table th:nth-child(3), table td:nth-child(3) { width: 25%; text-align: right; }

.amount {
    color: #34d399;
    font-weight: 600;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ (МЕНЕЕ 480PX) ===== */
@media (max-width: 480px) {
    h1 { font-size: 1.4rem; }
    .faucet-card { padding: 20px 10px; }
    table { font-size: 11px; }
    th, td { padding: 8px 4px; }
    .ad-top, .ad-bottom { transform: scale(0.95); }
}

