/* ═══════════════════════════════════════════════
   CubeWill Donate — Main Stylesheet
   ═══════════════════════════════════════════════ */

:root {
    --bg:            #0f0f0f;
    --surface:       #1a1a1a;
    --surface-light: #252525;
    --accent:        #f59e0b;
    --accent-hover:  #d97706;
    --text:          #e5e5e5;
    --text-muted:    #888888;
    --success:       #22c55e;
    --error:         #ef4444;
    --border:        #333333;
}

/* ── Анимация перелива для текста ─────────────────────────────────────── */
@keyframes shimmer-text {
    0% {
        background-position: 0% 50%;
        color: #fbbf24;
    }
    50% {
        background-position: 100% 50%;
        color: #f97316;
    }
    100% {
        background-position: 0% 50%;
        color: #fbbf24;
    }
}

/* ── Анимация перелива для фона карточек ─────────────────────────────────────── */
@keyframes shimmer-card {
    0% {
        background-position: 0% 50%;
        border-color: #fbbf24;
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.1);
    }
    50% {
        background-position: 100% 50%;
        border-color: #f97316;
        box-shadow: 0 4px 20px rgba(249, 115, 22, 0.2);
    }
    100% {
        background-position: 0% 50%;
        border-color: #fbbf24;
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.1);
    }
}

/* ── Анимация перелива для градиентного текста ─────────────────────────────────────── */
@keyframes gradient-shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Применяем перелив к основным текстам */
.catalog-title,
.product-name,
.buy-card h1,
.support-card h1,
.info-card h1,
.result-subtitle {
    background: linear-gradient(90deg, #fbbf24, #f97862, #fbbf24, #ea580c, #fbbf24);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    animation: gradient-shimmer 3s ease infinite;
    font-weight: 700;
}

/* Заголовки в карточках */
.product-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text);
    transition: all 0.2s;
    /* градиент при наведении применяется через .product-card:hover .product-name */
}

/* Применяем перелив к карточкам */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 200px;
    border-radius: 12px;
    padding: 0.875rem 0.875rem 1.25rem;
    text-align: left;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    /* Тёмный фон с тонкой текстурой */
    background: linear-gradient(135deg, #1c1c1c 0%, #1a1a1a 50%, #1e1e1e 100%);
    border: 1px solid #2a2a2a;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    animation: fadeInUp 0.35s ease both;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 200, 6, 0.5);
    box-shadow: 0 8px 24px rgba(255, 141, 6, 0.15);
}

/* Название при наведении — золотой градиент */
.product-card:hover .product-name {
    background: linear-gradient(180deg, #ffc806 0%, #ff8d06 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Область с изображением — паттерн-фон + центрирование */
.product-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    padding: 16px;
    margin-bottom: 1rem;
    
    /* Основной фон */
    background-color: #1a1a1a;
    
    /* Паттерн из знаков доллара — золотистый, более изящный */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext x='6' y='24' font-family='Georgia%2C serif' font-size='22' font-weight='bold' fill='%23f5c842' fill-opacity='0.12'%3E%24%3C/text%3E%3C/svg%3E");
    background-size: 32px 32px;
    
    /* Плавный градиент сверху для глубины */
    background-image: 
        radial-gradient(ellipse at center, rgba(245, 200, 66, 0.05) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext x='6' y='24' font-family='Georgia%2C serif' font-size='22' font-weight='bold' fill='%23f5c842' fill-opacity='0.12'%3E%24%3C/text%3E%3C/svg%3E");
    background-size: 100% 100%, 32px 32px;
    
    border-radius: 12px;
    border: 1px solid rgba(245, 200, 66, 0.08);
    box-shadow: 
        inset 0 2px 20px rgba(245, 200, 66, 0.03),
        0 2px 8px rgba(0, 0, 0, 0.3);
    
    transition: all 0.3s ease;
}

/* Эффект при наведении для живости */
.product-img-wrap:hover {
    border-color: rgba(245, 200, 66, 0.2);
    box-shadow: 
        inset 0 2px 30px rgba(245, 200, 66, 0.06),
        0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Если внутри есть изображение — добавим мягкую тень */
.product-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease;
}

.product-img-wrap:hover img {
    transform: scale(1.02);
}

.product-icon {
    max-width: 90px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    /* убираем margin из старого стиля */
    margin: 0;
    border-radius: 0;
}

.product-card:hover .product-icon {
    transform: scale(1.35);
}

.product-icon-placeholder {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    background: none;
    border-radius: 0;
    margin: 0;
    transition: transform 0.3s ease;
}

.product-card:hover .product-icon-placeholder {
    transform: scale(1.35);
}

/* Цена — жирный золотой градиент */
.product-price {
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, #ffc806 0%, #ff8d06 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-top: 0.25rem;
    /* убираем старую анимацию */
    animation: none;
}

.product-description {
    display: none; /* убираем описание из карточек нового стиля */
}

/* Ссылки в навигации с переливом при наведении */
.header-nav a:hover {
    background: linear-gradient(90deg, #fbbf24, #f97316);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

/* Цена на странице покупки */
.product-info .price {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fbbf24, #f97316, #f59e0b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    animation: gradient-shimmer 2s ease infinite;
}

/* Текст онлайн-блока */
#online-text {
    font-size: 0.8rem;
    background: linear-gradient(90deg, #fbbf24, #f97316);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    font-weight: 600;
}

/* Прогресс-бар с оранжевым градиентом */
.online-progress::-webkit-progress-value { 
    background: linear-gradient(90deg, #fbbf24, #f97316, #f59e0b);
    border-radius: 3px;
}
.online-progress::-moz-progress-bar { 
    background: linear-gradient(90deg, #fbbf24, #f97316, #f59e0b);
    border-radius: 3px;
}

/* Кнопка в хедере */
.btn-client-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.2));
    border: 1px solid #f59e0b;
    color: #fbbf24;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-client-header:hover {
    background: linear-gradient(90deg, #f59e0b, #f97316);
    border-color: #f97316;
    color: #fff;
    transform: translateY(-1px);
}

/* Мобильная кнопка клиента */
.mobile-client-btn {
    display: block;
    text-align: center;
    margin-top: 0.25rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.2));
    border: 1px solid #f59e0b;
    border-radius: 8px;
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-client-btn:hover {
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #fff;
    border-color: #f97316;
}

/* Ссылки в футере */
.footer-links a:hover { 
    background: linear-gradient(90deg, #fbbf24, #f97316);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

/* Контактные кнопки */
.contact-btn.telegram:hover { 
    background: linear-gradient(90deg, #0088cc, #f97316);
    color: #fff; 
}
.contact-btn.vk:hover { 
    background: linear-gradient(90deg, #4680c2, #f59e0b);
    color: #fff; 
}

/* Ссылки в таблице реквизитов */
.requisites-table a { 
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.2s;
}
.requisites-table a:hover { 
    background: linear-gradient(90deg, #fbbf24, #f97316);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

/* ── Nick bar (под хотбаром онлайна) ─────────── */
.nick-bar {
    margin-top: 0.35rem;
    padding-top: 0.3rem;
    border-top: 1px solid var(--border);
}

/* Мобильный блок ника внутри mobile-nav */
.nick-bar-mobile {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.nick-confirmed-mobile {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.nick-confirmed {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.nick-confirmed-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

.nick-divider {
    display: inline-block;
    width: 1px;
    height: 0.75rem;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.nick-change-link {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
    user-select: none;
}
.nick-change-link:hover { color: var(--accent); }

.nick-input-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nick-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0.2rem 0.45rem;
    color: var(--text);
    font-size: 0.75rem;
    width: 90px;
    outline: none;
    transition: border-color 0.2s;
}
.nick-input::placeholder { color: var(--text-muted); opacity: 0.7; }
.nick-input:focus { border-color: var(--accent); }

.nick-ok-btn {
    background: var(--accent);
    border: none;
    border-radius: 5px;
    color: #1a1a1a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.nick-ok-btn:hover { background: var(--accent-hover); }
.nick-ok-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Модальное окно ошибки ника */
.nick-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}
.nick-modal-overlay.open { display: flex; }
.nick-modal-box {
    background: var(--surface);
    border: 1px solid var(--error);
    border-radius: 14px;
    padding: 2rem;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    animation: fadeInUp 0.25s ease;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; display: block; }

/* ── Header ────────────────────────────────────── */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-left { flex-shrink: 0; }
.header-left .logo { height: 40px; width: auto; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.header-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.2s;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.header-online {
    background: var(--surface-light);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.online-wrap { display: flex; flex-direction: column; gap: 0.2rem; }

.online-progress {
    width: 130px;
    height: 5px;
    border-radius: 3px;
    overflow: hidden;
}
.online-progress::-webkit-progress-bar { background: var(--border); border-radius: 3px; }

.header-right { flex-shrink: 0; display: flex; align-items: center; gap: 0.75rem; }
.server-ip {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Burger button (mobile only) */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Онлайн-блок в мобильном хедере (по центру между лого и бургером) */
.header-online-mobile {
    display: none;       /* скрыт на десктопе */
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
    text-align: center;
}
.header-online-mobile span {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.header-online-mobile .online-progress { width: 90px; }

/* Ник-блок на мобильном — между хотбаром и бургером */
.nick-mob-wrap {
    display: none;       /* скрыт на десктопе */
    align-items: center;
    flex-shrink: 0;
    margin-right: 0.25rem;
}

/* Пилюля с аватаркой и ником */
.nick-mob-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    max-width: 110px;
}
.nick-mob-pill:hover { background: rgba(255,255,255,0.1); }

.nick-mob-avatar {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
    image-rendering: pixelated;
}

.nick-mob-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.nick-mob-input-wrap {
    display: flex;
    align-items: center;
}

.nick-mob-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.28rem 0.5rem;
    color: var(--text);
    font-size: 0.75rem;
    width: 80px;
    outline: none;
    transition: border-color 0.2s;
}
.nick-mob-input::placeholder { color: var(--text-muted); opacity: 0.7; }
.nick-mob-input:focus { border-color: var(--accent); }

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--surface-light);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { 
    background: linear-gradient(90deg, #fbbf24, #f97316);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

/* ── Main ──────────────────────────────────────── */
.main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

/* ── Catalog ───────────────────────────────────── */
.catalog-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.product-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
}
.product-icon-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #252525, #2a2a2a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.product-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex: 1;
}
.empty-catalog {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
    background: var(--surface);
    border-radius: 12px;
}

/* ── Buttons ───────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s, background-color 0.2s, opacity 0.2s;
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.35); }
.btn:active { transform: none; box-shadow: none; }

.btn-success   { background: var(--success);       color: #fff; }
.btn-success:hover { opacity: 0.88; }
.btn-secondary { background: var(--surface-light); color: var(--text); }
.btn-secondary:hover { background: var(--border); }
.btn-full { width: 100%; padding: 0.85rem; font-size: 1.05rem; }
.btn-primary {
    background: linear-gradient(90deg, #f59e0b, #f97316, #f59e0b);
    background-size: 200% auto;
    color: #fff;
    animation: gradient-shimmer 2s ease infinite;
    border: none;
}
.btn-primary:hover {
    background: linear-gradient(90deg, #f97316, #ea580c, #f97316);
    background-size: 200% auto;
    animation: gradient-shimmer 1s ease infinite;
    transform: translateY(-2px);
}

/* ── Buy page ──────────────────────────────────── */
.buy-container { max-width: 560px; margin: 0 auto; }

.buy-card {
    background: var(--surface);
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid var(--border);
}
.buy-card h1 { font-size: 1.5rem; margin-bottom: 1.5rem; text-align: center; }

.product-info {
    text-align: center;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.product-info-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 0.75rem;
    border-radius: 8px;
}
.product-info h2 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.product-info .description { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.4rem; }

.buy-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    background: var(--surface-light);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    width: 100%;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #f59e0b;
}

.error-message { color: var(--error); font-size: 0.85rem; }

.back-link { display: inline-block; margin-top: 1.25rem; color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.back-link:hover { 
    background: linear-gradient(90deg, #fbbf24, #f97316);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

/* ── Alerts / banners ─────────────────────────── */
.alert { border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: rgba(239,68,68,0.12); border: 1px solid var(--error); color: var(--error); }

.test-mode-banner {
    background: rgba(245,158,11,0.12);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: #f59e0b;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

/* ── Payment result ───────────────────────────── */
.result-icon { font-size: 2.75rem; text-align: center; margin-bottom: 0.5rem; }
.result-subtitle { color: var(--text-muted); text-align: center; margin-bottom: 1.25rem; font-size: 0.95rem; }
.test-badge { color: #f59e0b; font-size: 0.85rem; margin-top: 0.4rem; }

.result-details {
    background: var(--surface-light);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 0.75rem 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.result-details p { color: var(--text-muted); font-size: 0.9rem; }
.error-details { border: 1px solid var(--error); }
.error-text { color: var(--error); }

.note { color: var(--text-muted); font-size: 0.875rem; margin-top: 1rem; text-align: center; }

/* ── Support / Tops pages ─────────────────────── */
.support-container, .tops-container { max-width: 760px; margin: 0 auto; }
.support-card, .info-card {
    background: var(--surface);
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid var(--border);
}
.support-card h1, .info-card h1 { font-size: 1.5rem; margin-bottom: 1.25rem; }

.contact-links { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.25rem 0; }
.contact-btn {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--surface-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.25s;
}
.contact-btn:hover { transform: translateX(6px); }

.instruction { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.instruction ol { margin: 0.75rem 0 0 1.5rem; }
.instruction li { margin: 0.4rem 0; color: var(--text-muted); font-size: 0.9rem; }
.coming-soon { font-size: 1.4rem; text-align: center; margin-bottom: 1rem; }

/* ── Requisites page ──────────────────────────── */
.requisites-block { margin-top: 1.25rem; }
.requisites-table { width: 100%; border-collapse: collapse; }
.requisites-table tr { border-bottom: 1px solid var(--border); }
.requisites-table tr:last-child { border-bottom: none; }
.requisites-table td { padding: 0.7rem 0.5rem; vertical-align: top; line-height: 1.5; font-size: 0.9rem; }
.req-label { color: var(--text-muted); font-size: 0.85rem; width: 45%; }
.requisites-table a:hover { text-decoration: underline; }

.terms-block { margin-top: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.terms-block:last-child { border-bottom: none; padding-bottom: 0; }
.terms-block h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; }
.terms-block p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; }
.terms-block a { color: #fbbf24; text-decoration: none; }
.terms-block a:hover { text-decoration: underline; }

/* ── Footer ────────────────────────────────────── */
.footer {
    background-color: var(--surface);
    position: relative;
    overflow: hidden;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}
.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/static/img/icon.png') center / cover no-repeat;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}
.footer-content { position: relative; z-index: 1; }
.footer-icon { height: 44px; width: auto; margin: 0 auto 0.75rem; opacity: 0.8; filter: brightness(0) invert(1); }
.footer p { color: var(--text-muted); font-size: 0.78rem; margin: 0.3rem 0; line-height: 1.5; }
.footer-links { margin-top: 0.75rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; margin: 0 0.5rem; transition: all 0.2s; }

.footer-payment-badge {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}
.footer-payment-badge a {
    display: inline-block;
    line-height: 0;
}
.footer-payment-badge img {
    display: inline-block;
    opacity: 0.85;
    transition: opacity 0.2s;
    max-width: 200px;
    width: 200px;
    height: auto;
    filter: none;
}
.footer-payment-badge img:hover { opacity: 1; }

/* ── Currency constructor (cc-*) ───────────────── */
.cc-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #1a1a1a 100%);
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.cc-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 700px) {
    .cc-layout { flex-direction: row; align-items: center; gap: 2rem; }
}
.cc-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    min-width: 180px;
}
.cc-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    overflow: hidden;
}
.cc-icon img { width: 48px; height: 48px; object-fit: contain; }
.cc-name { font-size: 1.1rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.cc-rate { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.cc-slider-block { flex: 1; min-width: 0; }
.eris-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 8px;
    border-radius: 4px; outline: none; cursor: pointer;
    background: rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}
.eris-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffc806, #ff8d06);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255,141,6,0.5);
    border: 2px solid #141414;
    transition: transform 0.15s;
}
.eris-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.eris-slider::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffc806, #ff8d06);
    cursor: pointer;
    border: 2px solid #141414;
    box-shadow: 0 2px 10px rgba(255,141,6,0.5);
}
.quick-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.quick-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 6px; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; border: none;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.quick-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.quick-btn.active { background: linear-gradient(180deg, #ffc806, #ff8d06); color: #1a1a1a; }
.cc-action { display: flex; flex-direction: column; gap: 0.75rem; flex-shrink: 0; min-width: 200px; }
.cc-amount-row { display: flex; align-items: center; gap: 0.75rem; }
.amount-input-wrap { position: relative; display: inline-flex; align-items: center; }
.amount-input {
    width: 120px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.7rem 2.2rem 0.7rem 0.9rem;
    color: #e5e5e5; -webkit-text-fill-color: #e5e5e5;
    font-size: 1rem; font-weight: 700; text-align: center;
    outline: none; transition: border-color 0.2s;
}
.amount-input:focus { border-color: rgba(255,200,6,0.5); }
.amount-unit {
    position: absolute; right: 0.6rem;
    color: var(--text-muted); font-size: 0.75rem; font-weight: 500;
    pointer-events: none;
}
.btn-buy-currency {
    width: 100%;
    padding: 0.8rem 1.25rem;
    background: linear-gradient(180deg, #ffc806 0%, #ff8d06 100%);
    border: none; border-radius: 10px;
    color: #1a1a1a; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; text-align: center; text-decoration: none; display: block;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
}
.btn-buy-currency:hover {
    background: linear-gradient(180deg, #ffd940 0%, #ffa030 100%);
    box-shadow: 0 4px 16px rgba(255,141,6,0.4);
    transform: translateY(-1px);
}
.btn-buy-currency:active { transform: scale(0.98); }

/* ── Animations ────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.product-grid .product-card:nth-child(1) { animation-delay: 0.03s; }
.product-grid .product-card:nth-child(2) { animation-delay: 0.06s; }
.product-grid .product-card:nth-child(3) { animation-delay: 0.09s; }
.product-grid .product-card:nth-child(4) { animation-delay: 0.12s; }
.product-grid .product-card:nth-child(5) { animation-delay: 0.15s; }
.product-grid .product-card:nth-child(6) { animation-delay: 0.18s; }
.product-grid .product-card:nth-child(7) { animation-delay: 0.21s; }
.product-grid .product-card:nth-child(8) { animation-delay: 0.24s; }
.product-grid .product-card:nth-child(9) { animation-delay: 0.27s; }
.product-grid .product-card:nth-child(10) { animation-delay: 0.30s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 900px)
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .server-ip { font-size: 0.75rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 640px)
   ═══════════════════════════════════════════════ */
@media (max-width: 640px) {

    /* Header */
    .header-inner { padding: 0.6rem 1rem; }
    .header-nav   { display: none; }
    .header-right { display: none; }
    .header-online { display: none; }
    .burger        { display: flex; }
    .header-online-mobile { display: flex; }
    .nick-mob-wrap { display: flex; }
    .header-left .logo { height: 32px; }
    /* На мобильном: лого | [онлайн по центру] | бургер */
    .header-inner { justify-content: space-between; }

    /* Mobile nav */
    .mobile-nav { display: none; }
    .mobile-nav.open { display: flex; }

    /* Main */
    .main { padding: 1rem; }

    /* Catalog */
    .catalog-title { font-size: 1.4rem; margin-bottom: 1.25rem; }
    .product-grid  { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .product-card  { padding: 0.75rem 0.75rem 1rem; min-height: 170px; }
    .product-img-wrap { min-height: 85px; }
    .product-icon  { max-width: 70px; max-height: 70px; }
    .product-name  { font-size: 0.85rem; }
    .product-price { font-size: 1.05rem; }

    /* Buy page */
    .buy-card { padding: 1.25rem 1rem; border-radius: 10px; }
    .buy-card h1 { font-size: 1.2rem; }
    .product-info .price { font-size: 1.4rem; }

    /* Support / Tops */
    .support-card, .info-card { padding: 1.25rem 1rem; }
    .support-card h1 { font-size: 1.2rem; }
    .contact-btn { padding: 0.8rem 1rem; font-size: 0.9rem; }

    /* Footer */
    .footer { padding: 1.75rem 1rem; }
    .footer-links a { margin: 0 0.3rem; font-size: 0.75rem; }

    /* Requisites */
    .req-label { white-space: normal; width: 40%; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Very small (≤ 380px)
   ═══════════════════════════════════════════════ */
@media (max-width: 380px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-title { font-size: 1.2rem; }
}