/* ==========================================================================
   СТРАНИЦА "ДОНАТ И БОНУСЫ" (DONATE ONLY)
   ========================================================================== */

/* --- Центрированный Header --- */
.pw-page-header {
    position: relative;
    min-height: 250px;
    background-color: var(--pw-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pw-page-header .pw-hero-bg-zoom {
    position: absolute; inset: -15px;
    background: url('header.jpg') center center / cover no-repeat;
    animation: heroBreathe 18s ease-in-out infinite alternate;
    z-index: 1;
}

.pw-page-header .pw-hero-sword-flare {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    mix-blend-mode: screen; pointer-events: none; z-index: 2;
}

.pw-page-header .pw-hero-cinematic-overlay {
    position: absolute; inset: 0;
    background:
            radial-gradient(circle at 50% 50%, rgba(11, 12, 16, 0.4) 0%, rgba(11, 12, 16, 0.85) 75%, var(--pw-bg-dark) 100%),
            linear-gradient(to bottom, rgba(11, 12, 16, 0.3) 0%, transparent 40%, rgba(13, 14, 18, 0.98) 100%);
    z-index: 3; pointer-events: none;
}

.pw-breadcrumb {
    font-size: 0.82rem; letter-spacing: 1px;
    text-transform: uppercase; list-style: none; padding-left: 0 !important;
}

.pw-breadcrumb .breadcrumb-item a { color: var(--pw-gold); text-decoration: none; }
.pw-breadcrumb .breadcrumb-item.active { color: rgba(255, 255, 255, 0.45); }
.pw-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(229, 193, 88, 0.35); content: "•"; padding: 0 8px;
}

/* --- Плавающий сайдбар быстрого доступа (Справа) --- */
.pw-floating-quick {
    position: fixed; right: 18px; top: 50%;
    transform: translateY(-50%); z-index: 1050;
    display: flex; flex-direction: column; gap: 12px; pointer-events: none;
}
.pw-quick-bubble {
    pointer-events: auto; position: relative; border-radius: 8px;
    background: rgba(11, 12, 16, 0.88); backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 193, 88, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 12px rgba(229, 193, 88, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pw-quick-bubble.float-1 { animation: floatBob 4.2s ease-in-out infinite alternate; }
.pw-quick-bubble.float-2 { animation: floatBob 4.8s ease-in-out infinite alternate 0.6s; }
.pw-quick-bubble.float-3 { animation: floatBob 4.4s ease-in-out infinite alternate 1.2s; }
.pw-quick-bubble.float-4 { animation: floatBob 5s ease-in-out infinite alternate 1.8s; }

.pw-quick-bubble:hover {
    transform: scale(1.08) translateX(-6px) !important;
    border-color: var(--pw-gold-light);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9), 0 0 20px rgba(229, 193, 88, 0.45);
}
.pw-quick-bubble-link {
    display: flex; align-items: center; padding: 8px 12px; gap: 8px;
    text-decoration: none; color: #f1f1f1;
}
.pw-quick-icon { color: var(--pw-gold); font-size: 1rem; filter: drop-shadow(0 0 4px rgba(229, 193, 88, 0.5)); }
.pw-quick-label { font-size: 0.76rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #ffffff; }

@media (max-width: 991px) { .pw-floating-quick { display: none; } }

/* ==========================================================================
   ГЛАВНАЯ КАРТОЧКА И АНИМАЦИЯ 3D-МОНЕТ
   ========================================================================== */
.pw-donate-card {
    background:
            radial-gradient(circle at 50% 0%, rgba(229, 193, 88, 0.06) 0%, transparent 60%),
            linear-gradient(180deg, #11131a 0%, #0c0d12 100%);
    border-radius: 12px;
    border: 1px solid var(--pw-border-soft);
    box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.8),
            inset 0 0 0 1px rgba(255, 255, 255, 0.03),
            inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.pw-donate-corner {
    position: absolute;
    width: 18px; height: 18px;
    border: 2px solid var(--pw-gold);
    pointer-events: none; opacity: 0.7; transition: opacity 0.3s ease;
}
.pw-donate-card:hover .pw-donate-corner { opacity: 1; }
.corner-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.corner-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.corner-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

/* 3D-Вращающаяся золотая монета */
.pw-coin-emitter {
    display: flex;
    justify-content: center;
    perspective: 800px;
}

.pw-coin-3d {
    width: 56px;
    height: 56px;
    position: relative;
    transform-style: preserve-3d;
    animation: coinSpin3D 6s linear infinite;
}

.pw-coin-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff7d6 0%, #e5c158 50%, #8a661c 100%);
    border: 3px solid #ffeba3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #3d2a06;
    box-shadow: 0 0 18px rgba(229, 193, 88, 0.6), inset 0 0 6px rgba(0, 0, 0, 0.5);
    backface-visibility: hidden;
}

.pw-coin-face.back {
    transform: rotateY(180deg);
}

@keyframes coinSpin3D {
    0% { transform: rotateY(0deg) translateY(0); }
    50% { transform: rotateY(180deg) translateY(-8px); }
    100% { transform: rotateY(360deg) translateY(0); }
}

/* Юридический блок */
.pw-legal-notice {
    background: rgba(229, 193, 88, 0.04);
    border: 1px solid rgba(229, 193, 88, 0.25);
    border-left: 4px solid var(--pw-gold);
}

/* ==========================================================================
   ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ СПОСОБОВ ОПЛАТЫ
   ========================================================================== */
.pw-section-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff7d6;
}

.pw-scroll-hint {
    font-size: 0.76rem;
    letter-spacing: 0.5px;
}

/* Лента горизонтальной прокрутки */
.pw-payments-scroll-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 4px 20px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Кастомный золотой скроллбар */
.pw-payments-scroll-track::-webkit-scrollbar {
    height: 6px;
}

.pw-payments-scroll-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.pw-payments-scroll-track::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #59421b 0%, var(--pw-gold) 50%, #59421b 100%);
    border-radius: 3px;
    box-shadow: 0 0 6px rgba(229, 193, 88, 0.4);
}

/* Универсальная карточка оплаты */
.pw-pay-card {
    flex: 0 0 260px;
    min-width: 260px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(229, 193, 88, 0.18);
    border-radius: 10px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pw-pay-card:hover {
    background: rgba(229, 193, 88, 0.05);
    border-color: rgba(229, 193, 88, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 15px rgba(229, 193, 88, 0.2);
}

/* Выделенная популярная карточка (СБП) */
.pw-pay-card.is-popular {
    background: linear-gradient(180deg, rgba(229, 193, 88, 0.08) 0%, rgba(14, 16, 21, 0.95) 100%);
    border-color: rgba(229, 193, 88, 0.45);
}

/* Мини-бейдж на карточке */
.pw-pay-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.pw-pay-badge.is-accent {
    background: linear-gradient(135deg, #ff4500 0%, #e5c158 100%);
    border: none;
    color: #111;
    box-shadow: 0 0 8px rgba(229, 193, 88, 0.4);
}

/* Иконка способа оплаты */
.pw-pay-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(229, 193, 88, 0.1);
    border: 1px solid rgba(229, 193, 88, 0.25);
    color: var(--pw-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.pw-pay-card:hover .pw-pay-icon-wrap {
    background: var(--pw-gold);
    color: #111;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(229, 193, 88, 0.6);
}

/* Заголовок и описание */
.pw-pay-title {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff7d6;
    margin-bottom: 6px;
}

.pw-pay-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin-bottom: 16px;
    min-height: 55px; /* Выравнивает высоту текстовых блоков */
}

/* Мета-информация (Комиссия и время) */
.pw-pay-meta {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pw-meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.5);
}

.pw-meta-item strong {
    color: var(--pw-gold-light);
}

@media (max-width: 576px) {
    .pw-pay-card {
        flex: 0 0 240px;
        min-width: 240px;
    }
}