/* ============================================================
   coin-download.css — кнопка «Скачать за монеты» на странице
   раскраски и страница подтверждения coin_unlock.php.
   Кладётся в /css/coin-download.css
   ============================================================ */

/* ---------- Кнопка на странице раскраски ---------- */
.coin-download { margin: 14px 0; }

.coin-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 22px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}
.coin-btn:hover { transform: translateY(-2px); text-decoration: none; }

.coin-btn-buy {
    background: linear-gradient(135deg, #f0b429 0%, #e09b0b 100%);
    color: #3d2f00 !important;
    box-shadow: 0 5px 16px rgba(224,155,11,.32);
}
.coin-btn-buy:hover {
    box-shadow: 0 9px 22px rgba(224,155,11,.42);
    color: #3d2f00 !important;
}

.coin-btn-open {
    background: linear-gradient(135deg, #2fb46a 0%, #24985a 100%);
    color: #fff !important;
    box-shadow: 0 5px 16px rgba(36,152,90,.3);
}
.coin-btn-open:hover { color: #fff !important; }

/* Премиум-раскраска за монеты: отличаем визуально, цена выше */
.coin-btn-prem {
    background: linear-gradient(135deg, #7c6ce0 0%, #5b4bc4 100%);
    color: #fff !important;
    box-shadow: 0 5px 16px rgba(91,75,196,.3);
}
.coin-btn-prem:hover {
    color: #fff !important;
    box-shadow: 0 9px 22px rgba(91,75,196,.4);
}

.coin-btn-ico { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.coin-btn-main {
    display: block;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
}
.coin-btn-sub {
    display: block;
    font-size: .85rem;
    opacity: .85;
    margin-top: 2px;
}

/* ---------- Прогресс: копит на эту раскраску ---------- */
.coin-progress-box {
    background: #fffaf0;
    border: 1px solid #f6d79b;
    border-radius: 12px;
    padding: 16px 18px;
}
.coin-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: .98rem;
    font-weight: 700;
    color: #8a5a00;
    margin-bottom: 9px;
}
.coin-progress-left { font-weight: 500; font-size: .88rem; color: #a07c3a; }

.coin-progress-bar {
    height: 9px;
    border-radius: 5px;
    background: #f6e2bd;
    overflow: hidden;
    margin-bottom: 10px;
}
.coin-progress-bar i {
    display: block;
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #f0b429, #e09b0b);
    transition: width .7s ease;
}
.coin-progress-text {
    margin: 0;
    font-size: .9rem;
    color: #8a7250;
    line-height: 1.55;
}
.coin-progress-text a { color: #c47f0a; font-weight: 600; }

/* ---------- Приглашение: монет пока нет ---------- */
.coin-invite {
    display: flex;
    gap: 14px;
    background: #f7f8fd;
    border: 1px dashed #c9cef0;
    border-radius: 12px;
    padding: 16px 18px;
}
.coin-invite-ico { font-size: 1.7rem; line-height: 1.1; flex-shrink: 0; }
.coin-invite strong {
    display: block;
    color: #3c4066;
    font-size: 1rem;
    margin-bottom: 4px;
}
.coin-invite p {
    margin: 0;
    font-size: .9rem;
    color: #7a7f9c;
    line-height: 1.6;
}
.coin-invite a { color: #4f5488; font-weight: 600; }

.coin-limit-note {
    margin: 0;
    padding: 13px 16px;
    background: #f7f8fd;
    border-radius: 10px;
    font-size: .9rem;
    color: #7a7f9c;
    line-height: 1.55;
}

/* ---------- Блок монет в окне таймера скачивания ---------- */
.timer-coin-block {
    margin: 16px 0;
    padding: 16px 18px;
    background: #fffaf0;
    border: 1px dashed #f0b429;
    border-radius: 10px;
    text-align: center;
}
.timer-coin-block.timer-coin-ready {
    background: linear-gradient(135deg, #fffaf0, #fff4e0);
    border-style: solid;
    border-color: #e09b0b;
}
.timer-coin-title {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 700;
    color: #8a5a00;
}
.timer-coin-sub {
    margin: 0;
    font-size: .88em;
    color: #8a7250;
    line-height: 1.55;
}
.timer-coin-sub a { color: #c47f0a; font-weight: 600; }

.timer-coin-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0b429, #e09b0b);
    color: #3d2f00 !important;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(224,155,11,.3);
}
.timer-coin-btn:hover {
    color: #3d2f00 !important;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ============================================================
   Страница подтверждения coin_unlock.php
   ============================================================ */

.unlock-preview {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #f7f8fd;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 22px;
}
.unlock-preview img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    background: #fff;
    flex-shrink: 0;
}
.unlock-prem-tag {
    display: inline-block;
    background: linear-gradient(135deg, #7c6ce0, #5b4bc4);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.unlock-info h2 {
    font-size: 1.25rem;
    color: #3c4066;
    margin: 0 0 6px;
    line-height: 1.35;
}
.unlock-cat { margin: 0 0 4px; font-size: .95rem; color: #8b90ad; }
.unlock-fmt { margin: 0; font-size: .95rem; color: #7a7f9c; }

/* Расчёт: видно, сколько спишется и сколько останется */
.unlock-deal {
    background: #fffaf0;
    border: 2px solid #f6d79b;
    border-radius: 14px;
    padding: 6px 20px;
    margin-bottom: 20px;
}
.unlock-deal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1dfb8;
    font-size: 1.05rem;
    color: #7a6a45;
}
.unlock-deal-row:last-child { border-bottom: none; }
.unlock-deal-row b { font-size: 1.2rem; color: #3c4066; white-space: nowrap; }
.unlock-deal-minus b { color: #c0392b; }
.unlock-deal-total { font-weight: 700; }
.unlock-deal-total b { color: #e09b0b; }

.unlock-form { margin-bottom: 14px; }
.unlock-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0b429, #e09b0b);
    color: #3d2f00;
    cursor: pointer;
    transition: transform .2s ease;
}
.unlock-btn:hover { transform: translateY(-2px); }

.unlock-note {
    margin: 0 0 14px;
    font-size: .98rem;
    color: #7a7f9c;
    line-height: 1.6;
    text-align: center;
}
.unlock-back { margin: 0; text-align: center; font-size: .98rem; }
.unlock-back a { color: #8b90ad; }

.unlock-short { text-align: center; }
.unlock-short-text {
    font-size: 1.08rem;
    color: #4a4f7a;
    line-height: 1.6;
    margin: 14px 0 20px;
}
.unlock-short-text b { color: #e09b0b; }

.unlock-empty {
    text-align: center;
    font-size: 1.05rem;
    color: #5d6280;
    line-height: 1.65;
}
.unlock-empty p { margin: 0 0 18px; }
.unlock-empty p:last-child { margin-bottom: 0; }

/* ---------- Мобильные ---------- */
@media (max-width: 640px) {
    .coin-btn { padding: 14px 16px; gap: 11px; }
    .coin-btn-main { font-size: 1rem; }
    .coin-btn-sub  { font-size: .8rem; }

    .unlock-preview {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 16px;
    }
    .unlock-preview img { width: 130px; height: 130px; }
    .unlock-info h2 { font-size: 1.12rem; }

    .unlock-deal-row { font-size: .98rem; padding: 12px 0; }
    .unlock-deal-row b { font-size: 1.1rem; }
    .unlock-deal { padding: 4px 16px; }
}
