/* =========================================
   PREMIUM PAGE STYLES (CLEAN & RESPONSIVE)
   ========================================= */

/* Загальні налаштування фону */
.premium-page-body {
    background: #05070a url('../img/bg/Body-final-background.jpg') no-repeat top center fixed;
    background-size: cover;
    color: white;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden; /* Запобігає горизонтальному скролу */
}
/* --- HERO SECTION --- */
.prem-hero-section {
    padding-top: 150px;
    padding-bottom: 50px;
}

.prem-hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prem-text-side {
    flex: 1;
    max-width: 500px;
}

.prem-subtitle {
    color: #FFAD33;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

/* ОСЬ ТУТ БУЛА ПРОБЛЕМА */
.prem-text-side h1 {
    font-size: 3.5rem;
    /* Міняємо шрифт на Rajdhani (акцентний) */
    font-family: 'Rajdhani', sans-serif; 
    /* Міняємо товщину на жирну */
    font-weight: 700; 
    margin: 0 0 20px 0;
    line-height: 1;
    text-transform: uppercase;
    color: white;
    /* Додаємо тінь, щоб текст читався краще */
    text-shadow: 0 5px 15px rgba(0,0,0,0.5); 
}

.prem-desc {
    color: #8faab9;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    font-weight: 400;
}

/* --- ЗОЛОТА КНОПКА (MU STYLE) --- */
.btn-gold-action {
    display: inline-block;
    background: linear-gradient(135deg, #FFAD33 0%, #ff8c00 100%);
    color: black;
    padding: 12px 40px;
    border-radius: 10px; 
    transform: skewX(-10deg);
    border: 1px solid #FFAD33;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 173, 51, 0.3);
    position: relative;
    z-index: 10;
}

.btn-gold-action span {
    display: block;
    transform: skewX(10deg);
}

.btn-gold-action:hover {
    transform: skewX(-10deg) translateY(-3px); 
    box-shadow: 0 0 30px rgba(255, 173, 51, 0.6); 
    filter: brightness(1.1); 
    color: black;
}

.prem-img-side {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.prem-img-side img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}
/* =========================================
   PRICING CARDS SECTION (RESTRUCTURED)
   ========================================= */

.prem-pricing-section {
    padding: 60px 0 100px 0;
}

.center-header { text-align: center; margin-bottom: 50px; }
.center-header h2 { font-size: 2.5rem; text-transform: uppercase; letter-spacing: 2px; color: white; margin: 0; }
.section-header-small span { color: #FFAD33; font-family: 'Rajdhani', sans-serif; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 5px; }

/* Grid Layout: 3 колонки зверху + 1 знизу */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 рівні колонки */
    gap: 30px;
    perspective: 1000px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Card Style */
.pricing-card {
    background: rgba(13, 20, 36, 0.7);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 15px;
    padding: 30px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    width: 100%;
    box-sizing: border-box;
}

/* Glow Effect */
.card-glow {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 15px;
    pointer-events: none;
    z-index: -1;
    opacity: 0; transition: 0.3s;
}

.pricing-card:hover { z-index: 10; transform: translateY(-10px); }
.pricing-card:hover .card-glow { opacity: 0.6; }

/* --- THEMES --- */
.card-bronze { border-top: 4px solid #cd7f32; }
.card-bronze:hover { box-shadow: 0 0 30px rgba(205, 127, 50, 0.2); border-color: #ffcba4; }
.card-bronze .card-glow { background: radial-gradient(circle at top, rgba(205, 127, 50, 0.2), transparent 70%); }

.card-silver { border-top: 4px solid #c0c0c0; }
.card-silver:hover { box-shadow: 0 0 30px rgba(192, 192, 192, 0.2); border-color: white; }
.card-silver .card-glow { background: radial-gradient(circle at top, rgba(192, 192, 192, 0.2), transparent 70%); }

.card-gold { 
    border: 1px solid #FFAD33; 
    background: rgba(13, 20, 36, 0.85);
    transform: scale(1.05); /* Трохи більша */
    z-index: 5;
}
.card-gold:hover { transform: scale(1.05) translateY(-10px); box-shadow: 0 0 40px rgba(255, 173, 51, 0.3); }
.card-gold .card-glow { background: radial-gradient(circle at top, rgba(255, 173, 51, 0.15), transparent 80%); }

/* --- FULL WIDTH FREE CARD --- */
.full-width-card {
    grid-column: 1 / -1; /* Розтягується на всю ширину */
    margin-top: 20px;
    border-top: 4px solid #5d6f85;
    background: rgba(13, 20, 36, 0.4); /* Більш прозора */
    padding: 20px 40px;
}
.full-width-card:hover { transform: translateY(-5px); box-shadow: 0 0 30px rgba(93, 111, 133, 0.2); border-color: #aebfd6; }

.free-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 30px;
}

.free-header {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 180px;
}
.tier-icon-small { width: 50px; height: auto; }
.card-price-small .currency { color: #aebfd6; font-size: 1.2rem; font-weight: 700; }

.free-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 характеристики в ряд */
    gap: 10px 30px;
    flex: 1;
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 0 30px;
}
.feat-item { display: flex; justify-content: space-between; font-size: 0.85rem; color: #aebfd6; }

.free-action { min-width: 150px; }

/* --- COMMON CARD ELEMENTS --- */
.best-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: #FFAD33; color: black;
    font-size: 0.7rem; font-weight: 800; padding: 4px 12px;
    border-radius: 10px; text-transform: uppercase;
    box-shadow: 0 0 10px rgba(255, 173, 51, 0.5);
    white-space: nowrap;
}

.card-header { text-align: center; margin-bottom: 15px; transform: translateZ(20px); }
.tier-icon { width: 80px; height: auto; margin-bottom: 10px; }
.card-header h3 { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; margin: 0; color: white; letter-spacing: 1px; }

.card-price { margin-bottom: 20px; color: white; transform: translateZ(30px); text-align: center; }
.currency { font-size: 1.2rem; vertical-align: top; color: #8faab9; }
.amount { font-size: 2.2rem; font-weight: 700; font-family: 'Rajdhani', sans-serif; line-height: 1; }
.period { font-size: 0.8rem; color: #5d6f85; display: block; margin-top: -5px; }

.card-bronze .amount { color: #cd7f32; }
.card-silver .amount { color: #e0e0e0; }
.card-gold .amount { color: #FFAD33; }

.card-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.05); margin-bottom: 20px; }

.features-list { list-style: none; padding: 0; margin: 0 0 25px 0; width: 100%; text-align: center; }
.features-list li {
    font-size: 0.85rem; color: #aebfd6;
    margin-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,0.05);
    padding-bottom: 5px;
    transform: translateZ(10px);
}
.features-list li:last-child { border: none; }
.f-label { display: block; font-size: 0.7rem; color: #5d6f85; margin-bottom: 2px; }
.f-val { font-weight: 600; color: white; font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; }
.f-val.highlight { color: #00e676; }
.f-val.gold-txt { color: #FFAD33; }

/* --- BUTTONS --- */
.btn-plan {
    width: 80%; /* Трохи ширші кнопки */
    margin: 0 auto;
    padding: 12px 0; 
    text-align: center;
    border-radius: 15px;
    font-weight: 700; 
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase; 
    text-decoration: none;
    transition: 0.3s; 
    transform: skewX(-10deg) translateZ(25px); 
    display: block;
    border: 1px solid transparent;
}
.btn-plan span { display: block; transform: skewX(10deg); }

.btn-gray { background: rgba(255, 255, 255, 0.05); color: #5d6f85; cursor: default; border-color: rgba(255,255,255,0.1); width: 100%; }

.btn-bronze, .btn-silver, .btn-gold { 
    background: rgba(0, 0, 0, 0.5); color: #FFAD33; border: 1px solid #FFAD33; box-shadow: 0 0 10px rgba(255, 173, 51, 0.1);
}
.btn-bronze:hover, .btn-silver:hover, .btn-gold:hover { 
    background: #FFAD33; color: black; box-shadow: 0 0 20px rgba(255, 173, 51, 0.6); transform: skewX(-10deg) translateZ(30px) translateY(-2px);
}


/* =========================================
   RESPONSIVENESS FOR PRICING
   ========================================= */

/* Tablets (< 991px) */
@media (max-width: 991px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr; /* 2 колонки */
        gap: 20px;
    }
    
    /* Gold карта стає звичайною */
    .card-gold { transform: none; z-index: 1; }
    .card-gold:hover { transform: translateY(-5px); }
    
    /* Free card стає звичайною карткою на 2 колонки або 1 */
    .full-width-card {
        grid-column: 1 / -1; 
    }
    
    .free-layout {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .free-header { flex-direction: column; }
    .free-features-grid {
        grid-template-columns: 1fr 1fr; /* 2 колонки для характеристик */
        border: none; padding: 0; width: 100%;
        gap: 15px;
    }
    .feat-item { flex-direction: column; align-items: center; }
}

/* Phones (< 768px) */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr; /* Всі в одну колонку */
        max-width: 400px;
    }
    
    .full-width-card {
        padding: 30px 20px;
    }
    
    .free-features-grid {
        grid-template-columns: 1fr; /* Характеристики в стовпчик */
        gap: 10px;
    }
    .feat-item { flex-direction: row; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 5px; }
}

/* =========================================
   PAYMENT METHODS SECTION (FIXED FOR REALME/NARROW)
   ========================================= */

.prem-methods-section {
    padding: 60px 0;
    overflow: hidden; /* Захист від вильотів */
}

.section-header-small { margin-bottom: 40px; }

.payment-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; 
    gap: 30px;
    width: 100%;
}

.pay-col-left {
    display: flex;
    flex-direction: column;
    gap: 30px; 
    justify-content: space-between;
}

.prem-pay-card {
    background: rgba(22, 33, 58, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box; /* Щоб padding не збільшував ширину */
}

.prem-pay-card:hover {
    background: rgba(22, 33, 58, 0.9);
    border-color: #FFAD33;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transform: translateY(-5px);
}

.small-card { height: 180px; }
.big-card { 
    height: 100%; 
    min-height: 390px;
    background: radial-gradient(circle at center, rgba(30, 45, 80, 0.8) 0%, rgba(22, 33, 58, 0.8) 100%);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 10px; /* Внутрішній відступ для безпеки */
}

.payment-system-logo {
    max-width: 180px; 
    width: 80%; /* Адаптивна ширина */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
    transition: 0.3s;
}

.prem-pay-card:hover .payment-system-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(255, 173, 51, 0.3));
}

.crypto-big-img {
    max-width: 320px;
    width: 80%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
    transition: 0.5s;
}

.big-card:hover .crypto-big-img { transform: scale(1.05) rotate(5deg); }


/* =========================================
   MANAGER SECTION (FIXED SIZE CONTROL)
   ========================================= */

.prem-manager-section {
    padding: 50px 0 100px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.manager-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    position: relative;
    width: 100%;
}

.goblin-side {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.goblin-side img {
    /* --- РОЗМІР ГОБЛІНА --- */
    height: 35vh; 
    width: auto; 
    max-width: none; 
    filter: drop-shadow(0 0 40px rgba(138, 43, 226, 0.3));
    animation: floatGoblin 6s ease-in-out infinite;
    display: block;
}

@keyframes floatGoblin {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.manager-text-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 5;
}

.rate-title {
    font-size: 2rem;
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 173, 51, 0.3);
}

.manager-text-side p {
    color: #aebfd6;
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 450px;
}
/* =========================================
   ФІКС: МОБІЛЬНА АДАПТАЦІЯ (2 КОЛОНКИ)
   ========================================= */

@media (max-width: 991px) {
    /* 1. ГЕРОЙ-СЕКЦІЯ: Гобліни і текст в один рядок не влізуть, 
       тому лишаємо їх компактним стеком, але зменшуємо відступи */
    .prem-hero-container {
        flex-direction: column !important;
        padding-top: 100px !important;
    }
    .prem-img-side { order: 1; margin-bottom: 10px; }
    .prem-img-side img { width: 220px !important; }
    .prem-text-side { order: 2; }
    .prem-text-side h1 { font-size: 2rem !important; }

    /* 2. ТАРИФИ: СУВОРО В 2 КОЛОНКИ (В ОДИН РЯДОК ПО ВИСОТІ) */
    .pricing-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Жорстко 2 колонки */
        gap: 12px !important; /* Мінімальний проміжок, щоб влізло по ширині */
        padding: 0 10px !important;
        max-width: 100% !important;
    }

    .pricing-card {
        padding: 15px 10px !important; /* Максимально компактні відступи */
        min-height: auto !important;
    }

    /* Золота картка більше не збільшується, щоб не ламати сусідню */
    .card-gold {
        transform: none !important;
        border-width: 1px !important;
    }

    /* Зменшуємо все всередині картки, щоб влізло у вузьку колонку */
    .tier-icon { width: 50px !important; margin-bottom: 5px !important; }
    .card-header h3 { font-size: 0.9rem !important; letter-spacing: 1px !important; }
    .amount { font-size: 1.4rem !important; }
    .features-list li { font-size: 0.75rem !important; margin-bottom: 5px !important; }
    .btn-plan { width: 100% !important; font-size: 0.8rem !important; padding: 10px 0 !important; }

    /* 3. ПЛАТЕЖІ: ТУТ ЛИШАЄМО В ОДНУ КОЛОНКУ (як ви і просили) */
    .payment-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .pay-col-left { flex-direction: column !important; gap: 15px !important; }
    .small-card { height: 120px !important; }
    .big-card { min-height: 250px !important; }

    /* 4. ГОБЛІН МЕНЕДЖЕР: Компактно */
    .manager-container { flex-direction: column !important; gap: 20px !important; }
    .goblin-side img { height: 180px !important; }
    .rate-title { font-size: 1.4rem !important; }
}

/* Для дуже маленьких екранів (iPhone SE / 320px) ще сильніше стискаємо текст */
@media (max-width: 370px) {
    .pricing-grid { gap: 8px !important; }
    .features-list li { font-size: 0.7rem !important; }
    .card-header h3 { font-size: 0.8rem !important; }
}