body {
    background-color: #0d1117;
    color: #e6edf3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding-bottom: 80px;
    user-select: none;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #21262d;
}

.balance-badge {
    background: #1f242c;
    border: 1px solid #30363d;
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 700;
    color: #f0883e;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.event-card, .dashboard-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    transition: border-color 0.15s ease;
}

.event-card:hover, .dashboard-card:hover {
    border-color: #484f58;
}

.category-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #21262d;
    color: #8b949e;
}

.prob-bar {
    height: 6px;
    border-radius: 3px;
    background: #da3633;
    overflow: hidden;
    display: flex;
}

.prob-fill {
    background: #238636;
    height: 100%;
    transition: width 0.4s ease;
}

.btn-predict-yes {
    background: rgba(35, 134, 54, 0.15);
    border: 1px solid #238636;
    color: #3fb950;
    font-weight: 600;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.2s;
}

.btn-predict-yes:hover, .btn-predict-yes:active {
    background: #238636 !important;
    color: #fff !important;
}

.btn-predict-no {
    background: rgba(218, 54, 51, 0.15);
    border: 1px solid #da3633;
    color: #f85149;
    font-weight: 600;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.2s;
}

.btn-predict-no:hover, .btn-predict-no:active {
    background: #da3633 !important;
    color: #fff !important;
}

.modal-content, .auth-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 20px;
}

.quick-amount-btn {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    border-radius: 10px;
    padding: 6px 0;
    font-weight: 600;
    width: 100%;
}

.quick-amount-btn:hover {
    background: #30363d;
    color: #fff;
}

.nav-link-custom {
    color: #8b949e;
    text-decoration: none;
    font-weight: 500;
}

.nav-link-custom.active, .nav-link-custom:hover {
    color: #58a6ff;
}
/* Фильтры и категории */
.categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-bottom: 4px;
}
.categories-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-pill {
    background: #161b22;
    border: 1px solid #30363d;
    color: #8b949e;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-block;
}

.category-pill:hover {
    color: #f0f6fc;
    border-color: #8b949e;
}

.category-pill.active {
    background: #1f6feb;
    border-color: #1f6feb;
    color: #ffffff;
}

.search-input-group .form-control {
    background: #161b22;
    border-color: #30363d;
    color: #e6edf3;
    font-size: 0.9rem;
}

.search-input-group .form-control:focus {
    background: #161b22;
    border-color: #58a6ff;
    color: #ffffff;
    box-shadow: none;
}

.search-input-group .btn {
    border-color: #30363d;
}
/* Лидерборд */
.leader-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 24px;
    padding-top: 20px;
}

.podium-place {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    flex: 1;
    max-width: 140px;
    transition: transform 0.2s;
}

.podium-place.rank-1 {
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.15) 0%, #161b22 100%);
    border-color: rgba(234, 179, 8, 0.5);
    order: 2;
    transform: scale(1.08);
}
.podium-place.rank-2 {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.15) 0%, #161b22 100%);
    border-color: rgba(148, 163, 184, 0.4);
    order: 1;
}
.podium-place.rank-3 {
    background: linear-gradient(180deg, rgba(180, 83, 9, 0.15) 0%, #161b22 100%);
    border-color: rgba(180, 83, 9, 0.4);
    order: 3;
}

/* Базовый размер бейджей для 2 и 3 мест */
.podium-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.rank-2 .podium-badge {
    background: #94a3b8;
    color: #0f172a;
}

.rank-3 .podium-badge {
    background: #b45309;
    color: #ffffff;
}

/* Увеличенный бейдж первого места со свечением */
.rank-1 .podium-badge-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
}

.rank-1 .podium-badge {
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #ffd700 0%, #eab308 100%);
    color: #1a1600;
    box-shadow: 0 0 16px rgba(234, 179, 8, 0.45);
    border: 2px solid #fef08a;
    margin-bottom: 0;
}

.crown-icon {
    width: 24px;
    height: 24px;
    color: #facc15;
    filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.7));
    margin-bottom: -4px;
    z-index: 2;
}

/* Ежедневный бонус (Daily Reward) */
.daily-reward-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

/* 7-й день растягивается на 2 колонки для красивой сетки из 7 элементов */
.daily-card:nth-child(7) {
    grid-column: span 2;
}

.daily-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 10px 4px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.daily-card .day-title {
    font-size: 0.7rem;
    color: #8b949e;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.daily-card .day-icon {
    font-size: 1.4rem;
    color: #f0883e;
    margin-bottom: 2px;
}

.daily-card .day-reward {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e6edf3;
}

/* Состояние: Уже получено */
.daily-card.claimed {
    background: rgba(35, 134, 54, 0.1);
    border-color: rgba(35, 134, 54, 0.4);
    opacity: 0.75;
}
.daily-card.claimed .day-reward {
    color: #3fb950;
}

/* Состояние: Активно к получению прямо сейчас */
.daily-card.active {
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.2) 0%, #161b22 100%);
    border-color: #eab308;
    box-shadow: 0 0 14px rgba(234, 179, 8, 0.35);
    transform: scale(1.04);
}
.daily-card.active .day-title {
    color: #facc15;
}
.daily-card.active .day-reward {
    color: #ffd700;
}

/* Состояние: Будущие дни (Locked) */
.daily-card.locked {
    opacity: 0.45;
}
