:root {
    --text-color: #ffffff;
    --accent-purple: #9d4edd;
    --accent-blue: #4ea8de;
    --accent-gold: #ffd700;
    --glass-bg: rgba(20, 20, 20, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0; padding: 0;
    font-family: Arial, sans-serif;
    color: var(--text-color);
    background: linear-gradient(-45deg, #000000, #1a0b2e, #0f2027, #000000);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Header */
header { text-align: center; padding: 20px 0; }
.logo-img {
    width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 25px var(--accent-purple);
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

h1 {
    font-weight: bold; text-transform: uppercase; letter-spacing: 1px; margin-top: 15px;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-group { display: flex; flex-direction: column; gap: 15px; margin: 30px 0; }
.btn {
    display: block; padding: 18px; text-align: center; text-decoration: none;
    color: white; font-weight: bold; border-radius: 12px; font-size: 16px;
    transition: 0.3s; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
}
.btn-tg-channel { background: linear-gradient(90deg, #27293d, #0088cc); border-left: 4px solid #0088cc; }
.btn-tg-manager { background: linear-gradient(90deg, #27293d, #00b894); border-left: 4px solid #00b894; }
.btn-tiktok { background: linear-gradient(90deg, #27293d, #fe2c55); border-left: 4px solid #fe2c55; }
/* ДОДАНО: Стиль для нової кнопки резервного TikTok */
.btn-tiktok-reserve { background: linear-gradient(90deg, #27293d, #00f2fe); border-left: 4px solid #00f2fe; } 
.btn-viber { background: linear-gradient(90deg, #27293d, #7360f2); border-left: 4px solid #7360f2; }
.btn:hover { transform: scale(1.02); border-color: var(--accent-purple); }

/* Info */
.info-row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 30px; }
.info-card {
    flex: 1; background: var(--glass-bg); padding: 15px; border-radius: 15px;
    text-align: center; border: 1px solid var(--glass-border);
}
.info-card h3 { margin: 0 0 10px; color: var(--accent-blue); font-size: 14px; text-transform: uppercase; }
.info-card ul { padding: 0; list-style: none; margin: 0; font-size: 13px; color: #ccc; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
.product-card {
    background: #1a1a1a; border-radius: 15px; padding: 15px; border: 1px solid #333; transition: 0.3s;
}
.product-card:hover { border-color: var(--accent-purple); transform: translateY(-5px); }

/* ФОТО 1:1 + Клік */
.product-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Квадрат 1 до 1 */
    object-fit: cover; /* Заповнення без сплющення */
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: zoom-in; /* Курсор лупи */
    border: 1px solid #333;
}

.price { font-size: 22px; color: var(--accent-gold); font-weight: bold; margin: 10px 0; }

/* Payment */
.payment-section {
    background: rgba(20, 20, 20, 0.8); border-radius: 20px; padding: 20px;
    margin-bottom: 30px; border: 1px solid var(--glass-border);
}
.timer-box {
    border: 1px solid #ff4757; background: rgba(255, 71, 87, 0.1); color: #ff6b81;
    padding: 15px; border-radius: 10px; text-align: center; font-weight: bold; margin-bottom: 20px;
}
.copy-item {
    background: #000; padding: 15px; margin: 10px 0; border-radius: 10px;
    border: 1px dashed #444; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.copy-item:active { background: #222; }
.copy-text { font-family: monospace; font-size: 16px; color: white; }
.copy-label { font-size: 12px; color: #888; display: block; margin-bottom: 5px; }

/* Modal (Lightbox) */
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9); backdrop-filter: blur(5px);
}
.modal-content {
    margin: auto; display: block; max-width: 90%; max-height: 90%;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    border-radius: 10px; border: 2px solid var(--accent-purple);
    box-shadow: 0 0 50px rgba(157, 78, 221, 0.5);
}
.close {
    position: absolute; top: 20px; right: 35px; color: #f1f1f1;
    font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer;
}
.close:hover { color: var(--accent-purple); }

/* Toast */
#toast {
    visibility: hidden; min-width: 200px; background: var(--accent-purple); color: white;
    text-align: center; border-radius: 50px; padding: 15px;
    position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 1100;
}
#toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }
@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }

.fade-up { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* === Банер для TikTok === */
.tiktok-warning {
    position: relative;
    background: linear-gradient(135deg, #fe2c55 0%, #ff6b81 100%);
    color: white;
    padding: 18px 18px 18px 18px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(254, 44, 85, 0.5);
    border: 2px solid rgba(255,255,255,0.2);
    animation: warningPulse 2s ease-in-out infinite;
}
@keyframes warningPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(254, 44, 85, 0.5); }
    50% { box-shadow: 0 4px 35px rgba(254, 44, 85, 0.9); }
}
.tw-close {
    position: absolute;
    top: 8px; right: 12px;
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}
.tw-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    padding-right: 30px;
}
.tw-text {
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.5;
}
.tw-copy-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: white;
    color: #fe2c55;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.2s;
}
.tw-copy-btn:active {
    transform: scale(0.97);
    background: #ffe5eb;
}
.tw-copy-sub {
    display: block;
    font-size: 11px;
    font-weight: normal;
    color: #888;
    margin-top: 4px;
    word-break: break-all;
}
.tw-steps {
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
    padding: 12px;
}
.tw-step {
    font-size: 13px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}
.tw-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px; height: 24px;
    background: white;
    color: #fe2c55;
    border-radius: 50%;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
}

/* === Оверлей "Скопійовано" на весь екран === */
.copy-success-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlayFade 0.3s ease;
}
@keyframes overlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.copy-success-box {
    background: linear-gradient(135deg, #00a651 0%, #4caf50 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 20px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 50px rgba(0, 166, 81, 0.6);
    animation: boxPop 0.4s ease;
}
@keyframes boxPop {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.copy-success-icon {
    font-size: 60px;
    margin-bottom: 10px;
}
.copy-success-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}
.copy-success-text {
    font-size: 15px;
    line-height: 1.7;
    background: rgba(0,0,0,0.2);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}
.copy-success-url {
    background: white;
    color: #00a651;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    word-break: break-all;
    font-family: monospace;
    margin-bottom: 15px;
}
.copy-success-close {
    background: white;
    color: #00a651;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.copy-success-close:active {
    transform: scale(0.95);
}

/* === Кнопка оплати Приват24 === */
.btn-privat {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 18px;
    margin: 0 0 20px 0;
    text-align: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 17px;
    border-radius: 12px;
    background: linear-gradient(90deg, #00a651, #4caf50);
    border: 1px solid rgba(255,255,255,0.15);
    border-left: 4px solid #ffd700;
    box-shadow: 0 0 15px rgba(0, 166, 81, 0.4);
    transition: 0.3s;
    animation: privatPulse 2s ease-in-out infinite;
}
.btn-privat:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(0, 166, 81, 0.7);
}
.btn-privat-sub {
    display: block;
    font-size: 12px;
    font-weight: normal;
    color: rgba(255,255,255,0.85);
    margin-top: 4px;
}
@keyframes privatPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 166, 81, 0.4); }
    50% { box-shadow: 0 0 25px rgba(0, 166, 81, 0.8); }
}