/* =========================================
   GUIDE STYLE - MU HAVEN (22.02.2026)
   ========================================= */

/* --- 1. ОСНОВНИЙ ФОН ТА СТРУКТУРА --- */
body {
    background-image: url('../img/bg/main-bg.webp') !important;
    background-position: top center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #0b0e14;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

.guides-wrapper {
    padding-top: 140px;
    padding-bottom: 100px;
    min-height: 100vh;
    z-index: 5;
    position: relative;
}

.page-hero-title {
    max-width: 1400px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.page-hero-title h1 {
    font-family: 'Rajdhani', sans-serif;
    color: #ffffff;
    font-size: 3.5rem;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.page-hero-title h3 {
    color: #FFAD33;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 5px;
}

/* --- 2. КОНТЕЙНЕР ГАЙДІВ (ГРІД) --- */
.guides-main-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 3. САЙДБАР ТА КНОПКИ --- */
.guides-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-btn {
    background: rgba(16, 26, 45, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(60, 100, 180, 0.3);
    border-radius: 12px;
    padding: 18px 20px;
    color: #aebfd6;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}

.guide-btn i, .guide-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.guide-btn:hover {
    background: rgba(60, 100, 180, 0.2);
    border-color: #FFAD33;
    color: #fff;
    transform: translateX(8px);
}

.guide-btn.active {
    background: linear-gradient(90deg, rgba(60, 100, 180, 0.4) 0%, rgba(16, 26, 45, 0.9) 100%);
    border-left: 4px solid #FFAD33;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- 4. ЦЕНТРАЛЬНИЙ КОНТЕНТ (СКЛЯНА СЕКЦІЯ) --- */
.guides-body {
    min-height: 600px;
    background: rgba(16, 26, 45, 0.87);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(60, 100, 180, 0.34);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 5. СТИЛІЗАЦІЯ ТЕКСТУ --- */
.guide-page-content {
    animation: fadeInContent 0.5s ease forwards;
}

.guide-text-content h3 {
    font-family: 'Rajdhani', sans-serif;
    color: #FFAD33;
    font-size: 1.6rem;
    margin: 35px 0 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guide-text-content p {
    color: #e0e6ed;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.guide-feature-box {
    background: rgba(255, 173, 51, 0.07);
    border-left: 4px solid #FFAD33;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.guide-feature-box h4 {
    margin: 0 0 10px 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.guide-feature-box ul {
    margin: 0;
    padding-left: 20px;
    color: #ccd4dc;
}

/* --- 6. ТАБЛИЦІ ТА ВІДЕО --- */
.dashboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5px;
    margin: 20px 0;
}

.dashboard-table th {
    text-align: left;
    color: #7d9bc4;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 12px 15px;
}

.dashboard-table td {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    color: #e0e6ed;
    font-size: 0.95rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(60, 100, 180, 0.4);
    margin: 25px 0;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.guide-image-full img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
}
/* =========================================
   BLOOD CASTLE SPECIFIC STYLES
   ========================================= */

.guide-hero-banner {
    position: relative;
    margin: -40px -40px 30px -40px; 
    height: 350px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 10;
}

.hero-overlay h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4rem;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}

.hero-overlay p {
    color: #FFAD33;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin: 0;
}

.hero-gradient-mask {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(16, 26, 45, 1));
}

/* Crafting Line (Лялька 4 в ряд) - Оновлено */
.bc-crafting-line {
    display: flex;
    align-items: center;
    justify-content: center; /* Центруємо для зменшення відступів */
    gap: 15px; /* Зменшений відступ між елементами */
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 20px 0;
}

.bc-item-slot {
    text-align: center;
    width: 110px; /* Трохи більше місця для іконок */
    transition: transform 0.2s ease;
}

.bc-item-slot img {
    width: 75px; /* Збільшено іконки інгредієнтів */
    height: 75px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(60, 100, 180, 0.4));
    transition: transform 0.3s ease;
}

/* Ефект збільшення при наведенні на іконки */
.bc-item-slot:hover img {
    transform: scale(1.1);
}

.bc-item-slot span {
    display: block;
    font-size: 0.75rem;
    color: #8faab9;
    margin-top: 8px;
    font-weight: 700;
}

/* Остання іконка (Cloak) +30% */
.bc-result-item img {
    width: 100px !important; 
    height: 100px !important;
}

.bc-operator {
    font-size: 2.2rem;
    color: #FFAD33;
    font-weight: 800;
    margin: 0 5px; /* Стискаємо плюси */
}

.result-highlight img {
    filter: drop-shadow(0 0 15px rgba(255, 173, 51, 0.5));
}

/* Інтерактивність таблиць */
.interactive-table tbody tr:hover td {
    background: rgba(60, 100, 180, 0.2) !important;
    color: #fff;
    cursor: pointer;
}

/* Rewards & Gallery Zoom */
.zoom-effect {
    transition: transform 0.3s ease;
}

.zoom-effect:hover {
    transform: scale(1.03);
}

.bc-reward-row:hover .bc-reward-icon img {
    transform: scale(1.15) rotate(3deg);
}

/* Rewards (Зменшені бокси) */
.bc-rewards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bc-reward-row {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    transition: background 0.3s ease;
}

.bc-reward-icon {
    width: 100px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    margin-right: 20px;
}

.bc-reward-icon img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.box-name {
    display: block;
    font-size: 0.65rem;
    color: #7d9bc4;
    text-transform: uppercase;
}

.bc-floor {
    color: #FFAD33;
    font-weight: 800;
    font-family: 'Rajdhani', sans-serif;
}

.bc-reward-text p {
    margin: 0;
    font-size: 0.9rem;
}

/* --- 7. МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 991px) {
    .guides-wrapper { padding-top: 100px; }
    
    .guides-main-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .guides-sidebar {
        position: relative;
        top: 0;
        z-index: 100;
    }
    
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .guide-btn {
        padding: 12px 15px;
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .guides-body { padding: 20px; }

    .hero-overlay h1 { font-size: 2.2rem; }
    
    .bc-crafting-line {
        flex-wrap: wrap; 
        justify-content: center;
        gap: 15px;
    }

    .bc-operator { width: auto; padding: 0 5px; }
}

/* =========================================
   DEVIL SQUARE - TEXT REWARDS
   ========================================= */

.ds-text-rewards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.reward-text-block {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 77, 77, 0.15); /* Тонка червона рамка для DS */
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.reward-text-block:hover {
    background: rgba(255, 77, 77, 0.05);
    border-color: #ffffff;
    transform: translateY(-5px);
}

.reward-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.reward-title i {
    font-size: 1rem;
}

.reward-text-block p {
    margin: 0 !important;
    font-size: 0.95rem !important;
    color: #aebfd6 !important;
}

/* Червоний заголовок для DS Hero */
.ds-event-page .hero-overlay h1 {
    color: #ffffff;
}
/* =========================================
   RUIN EVENT SPECIFIC STYLES
   ========================================= */

/* Блок передперегляду каменів (Гарантований дроп) */
.jewel-drop-preview {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.jewel-drop-preview img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

/* Стилізація Box of Heaven */
.heaven-box-reward {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(0, 0, 0, 0.6) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 40px 20px;
    margin: 35px 0;
    text-align: center;
}

.reward-main-icon img {
    width: 140px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
    margin-bottom: 10px;
}

.highlight-title {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.2rem;
    color: #FFAD33;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.reward-icon-wrapper {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.reward-icon-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.reward-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.reward-item-card:hover {
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-5px);
}

/* =========================================
   GRIZZLY EVENT (TARKAN HUNT)
   ========================================= */

.grizzly-event-page .hero-overlay h1 {
    color: #ffffff; /* Помаранчевий/піщаний колір Tarkan */
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.4);
}

/* Сітка унікальних каменів */
.grizzly-stones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.stone-card {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(243, 156, 18, 0.15);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stone-card:hover {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.05);
    transform: translateX(10px);
}

.stone-icon {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    flex-shrink: 0;
}

.stone-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(243, 156, 18, 0.3));
}

.stone-info span {
    display: block;
    color: #f39c12;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stone-info p {
    margin: 0 !important;
    font-size: 0.85rem !important;
    color: #aebfd6 !important;
}
/* =========================================
   HYDRA EVENT (ATLANS HUNT) - UNIFIED STYLE
   ========================================= */

.hydra-event-page .hero-overlay h1 {
    color: #ffffff; /* Білий заголовок */
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.zen-color {
    color: #FFAD33; /* Помаранчевий акцент для цифр */
    font-weight: 700;
}

/* Сітка монет */
.hydra-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.coin-card {
    display: flex;
    align-items: center;
    background: rgba(16, 26, 45, 0.8); /* Темний фон як у кнопок */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 173, 51, 0.2); /* Помаранчева тонка рамка */
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.coin-card:hover {
    border-color: #FFAD33; /* Яскравий помаранчевий при ховері */
    background: rgba(255, 173, 51, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.coin-icon {
    width: 70px;
    height: 70px;
    margin-right: 20px;
    flex-shrink: 0;
}

.coin-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 173, 51, 0.3));
}

.coin-info span {
    display: block;
    color: #FFAD33; /* Назва монети помаранчевим */
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.coin-info p {
    margin: 0 !important;
    font-size: 0.95rem !important;
    color: #ffffff !important; /* Текст опису білим */
}

/* Мобільна адаптація */
@media (max-width: 768px) {
    .coin-card {
        flex-direction: column;
        text-align: center;
    }
    .coin-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* =========================================
   RED DRAGON INVASION - UNIFIED STYLE
   ========================================= */

.red-dragon-page .hero-overlay h1 {
    color: #ffffff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.9);
}

/* Сітка нагород */
.dragon-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.reward-card {
    display: flex;
    align-items: center;
    background: rgba(16, 26, 45, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 173, 51, 0.2);
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reward-card:hover {
    border-color: #FFAD33;
    background: rgba(255, 173, 51, 0.08);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.reward-icon {
    width: 65px;
    height: 65px;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 173, 51, 0.4));
}

.reward-info span {
    display: block;
    color: #FFAD33; /* Помаранчевий акцент для назви */
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.reward-info p {
    margin: 0 !important;
    font-size: 0.85rem !important;
    color: #ffffff !important; /* Білий текст */
    opacity: 0.8;
}

/* Мобільна адаптація */
@media (max-width: 600px) {
    .reward-card {
        padding: 12px;
    }
    .reward-icon {
        width: 50px;
        height: 50px;
    }
}



/* =========================================
   DROP DATABASE - UNIFIED STYLE
   ========================================= */

.search-section {
    max-width: 100%; /* Займає всю ширину guides-body */
    margin: 0 auto;
}

/* Стилізація інпуту під кнопки сайдбару */
.search-box {
    position: relative;
    margin-bottom: 30px;
}

#itemInput {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(60, 100, 180, 0.3);
    border-radius: 12px;
    padding: 18px 20px 18px 55px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

#itemInput:focus {
    border-color: #FFAD33;
    background: rgba(16, 26, 45, 0.9);
    box-shadow: 0 0 20px rgba(255, 173, 51, 0.15);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFAD33;
    font-size: 1.2rem;
}
/* SEO Картка - копіює стиль .guides-body або .guide-feature-box */
/* SEO Картка - копіює стиль .guides-body або .guide-feature-box */
.seo-welcome-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 173, 51, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin-top: 10px;
    animation: fadeInContent 0.5s ease forwards;
}

.seo-welcome-card h3 {
    font-family: 'Rajdhani', sans-serif;
    color: #fff !important;
    font-size: 2rem !important;
    margin: 0 0 10px 0 !important;
    text-transform: uppercase;
}

.seo-welcome-card h5 {
    color: #FFAD33;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.seo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.seo-features-grid h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: #aebfd6;
    margin: 0;
    padding: 10px;
    background: rgba(16, 26, 45, 0.5);
    border-radius: 6px;
    border-left: 3px solid #FFAD33;
}

.seo-welcome-card p {
    font-size: 0.95rem;
    color: #ccd4dc;
    line-height: 1.6;
}

/* Грід для карток результатів (2 або 3 колонки) */
.drop-results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Коли SEO блок один - він займає всю ширину */
#welcomeMessage {
    grid-column: 1 / -1;
}

/* =========================================
   GUIDE STYLE - MU HAVEN (KUNDUN BOXES)
   ========================================= */

.boxes-vertical-list {
    margin: 40px 0;
    padding: 0 10px; /* Додав боковий падінг для мобілок */
}

.box-section {
    background: linear-gradient(90deg, rgba(255, 173, 51, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-left: 4px solid #ffad33;
    padding: 25px; /* Збільшив падінг всередині секції */
    margin-bottom: 35px;
    border-radius: 0 15px 15px 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Плавна анімка виїзду */
    position: relative;
    overflow: hidden;
}

/* Анімація при торканні/наведенні на всю секцію */
.box-section:hover {
    transform: translateX(12px);
    background: linear-gradient(90deg, rgba(255, 173, 51, 0.15) 0%, rgba(0, 0, 0, 0.3) 100%);
    box-shadow: -5px 10px 30px rgba(0, 0, 0, 0.5);
}

.box-title-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Лого боксів з анімацією */
.box-icon-mini {
    width: 65px; /* Трохи збільшив */
    height: 65px;
    filter: drop-shadow(0 0 15px rgba(255, 173, 51, 0.6));
    transition: all 0.5s ease;
    cursor: pointer;
}

.box-section:hover .box-icon-mini {
    transform: rotate(15deg) scale(1.2); /* Крутиться і збільшується при наведенні на секцію */
    filter: drop-shadow(0 0 25px rgba(255, 173, 51, 0.9));
}

.box-title-wrap h2 {
    color: #ffad33;
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
    text-transform: uppercase;
    font-size: 2rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.excellent-label {
    color: #4db3ff;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Сяйво для Excellent тексту */
.excellent-label::before {
    content: '★';
    color: #ffad33;
    animation: pulse 1.5s infinite;
}

.drop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    font-size: 0.9rem;
    color: #ddd;
}

/* Анімовані елементи шмоту */
.drop-grid span {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
}

.drop-grid span:hover {
    background: rgba(77, 179, 255, 0.15);
    border-color: #4db3ff;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.top-item {
    color: #fff;
    font-weight: 600;
    border-color: rgba(77, 179, 255, 0.5) !important;
    background: rgba(77, 179, 255, 0.08) !important;
}

/* Картка Luck */
.luck-boost {
    border: 1px dashed #ffad33 !important;
    background: rgba(255, 173, 51, 0.08) !important;
    padding: 25px !important;
    margin: 30px 0;
    border-radius: 12px;
    animation: border-glow 2s infinite alternate;
}

/* Ключові анімації */
@keyframes pulse {
    0% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.5; transform: scale(1); }
}

@keyframes border-glow {
    from { box-shadow: 0 0 5px rgba(255, 173, 51, 0.2); }
    to { box-shadow: 0 0 20px rgba(255, 173, 51, 0.5); }
}

.invasion-list li {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s ease;
}

.invasion-list li:hover {
    background: rgba(255,255,255,0.03);
}

/* =========================================
   GUIDE STYLE - MU HAVEN (Skeleton Invasation)
   ========================================= */
/* Skeleton Event Specific */
.boss-target-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.custom-table-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 10px;
    margin: 25px 0;
    overflow-x: auto;
}

.event-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.event-table th {
    text-align: left;
    color: #ffad33;
    padding: 15px;
    border-bottom: 2px solid rgba(255, 173, 51, 0.3);
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

.event-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.table-icon {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 0 8px rgba(77, 179, 255, 0.4));
    transition: transform 0.3s ease;
}

.table-icon:hover {
    transform: scale(1.3) rotate(10deg);
}

.bonus-text {
    color: #ffad33;
    font-size: 0.8rem;
    font-style: italic;
    display: block;
    margin-top: 5px;
}

.invasion-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.invasion-list li {
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 5px;
    border-radius: 4px;
}

.invasion-list i {
    color: #ffad33;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .boss-target-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
    Skeleton Event Specific 
   ========================================= */

.location-grid-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.loc-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(77, 179, 255, 0.2);
}

.loc-card strong {
    display: block;
    color: #4db3ff;
    font-size: 1.1rem;
}

.loc-card small {
    color: #888;
}

/* Пульсація для іконки мага */
.wizard-event-page .box-icon-mini {
    animation: wizard-glow 3s infinite ease-in-out;
}

@keyframes wizard-glow {
    0% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4)); }
    50% { filter: drop-shadow(0 0 20px rgba(77, 179, 255, 0.8)); }
    100% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4)); }
}

/* =========================================
   QUIZ EVENT CUSTOM STYLE - MU HAVEN
   ========================================= */

/* Блок терміналу для команди */
.quiz-command-terminal {
    background: #0d1117;
    border: 1px solid #4db3ff;
    border-radius: 10px;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    margin: 25px 0;
    box-shadow: 0 0 15px rgba(77, 179, 255, 0.3);
}

.terminal-header {
    background: rgba(77, 179, 255, 0.1);
    padding: 10px 15px;
    border-bottom: 1px solid rgba(77, 179, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-header .red { background: #ff5f56; }
.terminal-header .yellow { background: #ffbd2e; }
.terminal-header .green { background: #27c93f; }

.terminal-title {
    color: #888;
    font-size: 0.8rem;
    margin-left: 10px;
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
}

.terminal-body {
    padding: 25px;
    font-size: 1.6rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.cmd-prompt {
    color: #ffad33;
    animation: terminal-glow 1s infinite alternate;
}

.cmd-answer {
    color: #fff;
    opacity: 0.5;
    font-style: italic;
}

/* Картки прикладів */
.quiz-example-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.quiz-example-card:hover {
    border-color: #ffad33;
    background: rgba(255, 173, 51, 0.05);
    transform: translateY(-5px);
}

.card-q {
    color: #ccc;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.card-a {
    color: #ffad33;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
}

/* Блоки нагород */
.reward-box-alt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.reward-box-alt img {
    width: 40px;
    height: 40px;
}

/* Анімація для команди */
@keyframes terminal-glow {
    from { text-shadow: 0 0 5px #ffad33; }
    to { text-shadow: 0 0 20px #ffad33; }
}

/* Chaos Castle Specific Styles */
.hero-chaos h1 {
    color: #ffffff !important; /* Криваво-червоний для битви */
    text-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

.chaos-castle-page .box-section {
    border-left-color: #e74c3c;
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
}

.chaos-castle-page code {
    background: #e74c3c;
    color: #fff;
}

/* Анімація для Ancient шмотки в таблиці */
.chaos-castle-page .table-item-cell img {
    animation: ancient-glow 2s infinite alternate;
}

@keyframes ancient-glow {
    from { filter: drop-shadow(0 0 5px #2ecc71); }
    to { filter: drop-shadow(0 0 15px #2ecc71); }
}

/* =========================================
   BOX & LOTTERY STYLES
   ========================================= */

.lottery-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.lottery-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.4s ease;
}

.lottery-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 173, 51, 0.05);
    border-color: rgba(255, 173, 51, 0.3);
}

.lottery-visual {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin-right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottery-visual img {
    max-width: 100%;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.5));
}

.lottery-info h2 {
    color: #ffad33;
    font-family: 'Rajdhani', sans-serif;
    margin: 0 0 15px 0;
    font-size: 1.6rem;
    text-transform: uppercase;
}

.drop-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chance-tag {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
    cursor: default;
}

/* Кольори шансів */
.chance-tag.gold { background: rgba(255, 215, 0, 0.15); color: #ffd700; border-color: #ffd700; }
.chance-tag.blue { background: rgba(77, 179, 255, 0.15); color: #4db3ff; border-color: #4db3ff; }
.chance-tag.purple { background: rgba(162, 89, 255, 0.15); color: #a259ff; border-color: #a259ff; }
.chance-tag.green { background: rgba(46, 204, 113, 0.15); color: #2ecc71; border-color: #2ecc71; }
.chance-tag.gray { background: rgba(153, 153, 153, 0.15); color: #999; border-color: #999; }

.chance-tag:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

@media (max-width: 768px) {
    .lottery-card {
        flex-direction: column;
        text-align: center;
    }
    .lottery-visual {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .drop-badges {
        justify-content: center;
    }
}

/* =========================================
   CUSTOM NPC - WIDE BANNER STYLE
   ========================================= */

.npc-wide-banner {
    position: relative;
    width: 100%;
    height: 250px; /* Matching your 600x250 aspect ratio */
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    background: #050a14;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.npc-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(to right, rgba(10, 15, 25, 0.9) 10%, rgba(10, 15, 25, 0.4) 50%, rgba(10, 15, 25, 0) 100%);
    display: flex;
    align-items: center;
}

.npc-content-box {
    margin-left: 25%; /* THE OFFSET: 25% from the left */
    max-width: 50%;   /* Keeps text in the middle-right area */
    padding: 20px;
}

.npc-content-box h2 {
    color: #ffad33;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.npc-content-box p {
    color: #eee;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 15px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.9);
}

.npc-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 173, 51, 0.1);
    border: 1px solid #ffad33;
    color: #ffad33;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* Hover Effect */
.npc-wide-banner:hover {
    border-color: rgba(255, 173, 51, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Mobile Fix */
@media (max-width: 768px) {
    .npc-content-box {
        margin-left: 10%;
        max-width: 80%;
    }
    .npc-banner-overlay {
        background: rgba(10, 15, 25, 0.7);
    }
}