/* ======================================= */
/* ========== ПРЕМИУМ СТРАНИЦА ========== */
/* ======================================= */

.premium-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #4a4a8a 100%);
    border-radius: 20px;
    margin: 20px 0 30px;
    position: relative;
    overflow: hidden;
}

.premium-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.premium-crown {
    font-size: 64px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.premium-header h1 {
    font-size: 2.5em;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255,215,0,0.5);
    margin: 10px 0;
}

.premium-subtitle {
    color: #e0e0e0;
    font-size: 1.1em;
}

/* ======================================= */
/* ========== ПРЕМИУМ НАБОР ПО РАСАМ ========== */
/* ======================================= */

.premium-set-section,
.premium-bonuses-section,
.premium-info-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.premium-set-section h2,
.premium-bonuses-section h2,
.premium-info-section h2 {
    color: #4a4a8a;
    font-size: 1.6em;
    margin-bottom: 10px;
    border-left: 4px solid #ffd700;
    padding-left: 15px;
}

.section-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95em;
}

/* Сетка рас */
.race-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.race-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.race-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.race-header {
    padding: 20px;
    text-align: center;
    background: rgba(0,0,0,0.03);
}

.race-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.race-icon img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.race-name {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
}

.race-items {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.race-item {
    background: white;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.race-item:hover {
    transform: scale(1.02);
}

.race-item-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.race-item-icon img {
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
}

.race-item-name {
    font-size: 0.75em;
    font-weight: 600;
    color: #333;
    font-family: monospace;
}

/* ======================================= */
/* ========== TAB PVP/PVE БЛОК ========== */
/* ======================================= */

.premium-tab-block {
    background: white;
    border-radius: 24px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.premium-tab-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.premium-tab-block.pvp {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border-left: 6px solid #e74c3c;
}

.premium-tab-block h2 {
    font-size: 1.8em;
    margin-bottom: 8px;
    color: #2c3e50;
}

.premium-tab-block .section-desc {
    color: #555;
    margin-bottom: 25px;
    font-size: 1em;
}

.tab-layout {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.tab-items-vertical {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tab-item-info {
    flex: 1;
    background: rgba(255,255,255,0.85);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(2px);
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(231,76,60,0.2);
    border: 1px solid rgba(231,76,60,0.3);
}

.tab-item-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 3px solid #ffd700;
}

.tab-item-icon img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
}

.tab-item-name {
    font-weight: bold;
    font-size: 1.3em;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-screenshots-vertical {
    flex: 2;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: stretch;
    width: auto;
    height: 100%;
}

.tab-screenshot {
    flex: 1;
    background: #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-screenshot img {
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.image-with-controls {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.image-with-controls img {
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ======================================= */
/* ========== TOGGLE SWITCH ========== */
/* ======================================= */

.toggle-switch {
    position: absolute;
    width: 40px;
    height: 20px;
    cursor: pointer;
    z-index: 10;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: -1px;
    bottom: -1px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #b19cd9;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background-color: #8b5cf6;
}

/* ======================================= */
/* ========== RANGE SLIDER ========== */
/* ======================================= */

.range-slider-container {
    position: absolute;
    width: 200px;
    z-index: 15;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: #ccc;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 2px solid white;
    position: relative;
    z-index: 20;
}

.range-fill {
    position: absolute;
    height: 12px;
    background: #6d28d9;
    border-radius: 10px;
    pointer-events: none;
    top: 55%;
    transform: translateY(-50%);
}

/* ======================================= */
/* ========== TOGGLE STATUS ========== */
/* ======================================= */

.toggle-status-block {
    position: absolute;
    background: transparent;
    border: none;
    padding: 4px 0;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Segoe UI', 'Montserrat', 'Inter', monospace;
    letter-spacing: -0.5px;
    white-space: nowrap;
    z-index: 15;
    transition: all 0.2s;
    pointer-events: none;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.toggle-status-block.status-on {
    color: #22c55e;
}

.toggle-status-block.status-off {
    color: #ef4444;
}

/* ======================================= */
/* ========== STAT BLOCKS ========== */
/* ======================================= */

.stat-block {
    position: absolute;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 100px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.2s;
    display: none;
}

.stat-block.active-stat {
    display: block;
}

.stat-block:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.02);
    border-color: rgba(255, 215, 0, 0.5);
}

.stat-label {
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.stat-bar-red,
.stat-bar-green {
    width: 100%;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.stat-bar-red .stat-bar-fill,
.stat-bar-green .stat-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 50px;
    transition: width 0.3s ease;
}

.stat-bar-red .stat-bar-fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.stat-bar-green .stat-bar-fill {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

/* ======================================= */
/* ========== CLICK DOTS ========== */
/* ======================================= */

.click-dot {
    position: absolute;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.click-dot:not(.active) {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
        background: rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.2);
        background: rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
        background: rgba(255, 255, 255, 0.1);
    }
}

.click-dot:not(.active):hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
}

.click-dot.active {
    background: transparent;
    border: none;
    animation: none;
    box-shadow: none;
}

.click-dot .dot-indicator {
    position: absolute;
    width: 30px;
    height: 2px;
    background: #ffffff;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
    transition: none;
    opacity: 0;
}

.click-dot.active .dot-indicator {
    opacity: 1;
    height: 4px;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    top: calc(60% + 12px);
}

.click-dot.active:hover {
    transform: translate(-50%, -50%) scale(1);
    background: transparent;
}

.toggle-highlight {
    animation: shake 0.5s ease-in-out;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    border-radius: 34px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ======================================= */
/* ========== TOAST NOTIFICATION ========== */
/* ======================================= */

.toast-notification {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: #ffd700;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    font-family: monospace;
    letter-spacing: 1px;
    z-index: 10000;
    pointer-events: none;
    white-space: nowrap;
    border-left: 3px solid #ffd700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: fadeOut 2s ease-out forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; transform: translateY(0); }
    70% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* ======================================= */
/* ========== БОНУСЫ ========== */
/* ======================================= */

.bonuses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.bonus-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px 20px;
    transition: transform 0.2s;
    border: 1px solid #e0e0e0;
}

.bonus-card:hover {
    transform: translateX(5px);
    background: #e8e8ff;
    border-color: #ffd700;
}

.bonus-icon {
    font-size: 36px;
    min-width: 50px;
    text-align: center;
}

.bonus-info {
    flex: 1;
}

.bonus-name {
    font-weight: 600;
    color: #333;
    font-size: 1em;
    margin-bottom: 5px;
}

.bonus-value {
    font-weight: 700;
    font-size: 1.2em;
}

/* ======================================= */
/* ========== ИНФО КАРТОЧКИ ========== */
/* ======================================= */

.info-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.info-card {
    flex: 1;
    min-width: 200px;
    text-align: center;
    background: linear-gradient(135deg, #4a4a8a, #2c3e50);
    border-radius: 16px;
    padding: 25px 15px;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.info-icon img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.info-text {
    color: white;
    font-weight: 600;
    font-size: 1em;
}

/* ======================================= */
/* ========== ПРЕМИУМ НАБОР ПО РАСАМ ========== */
/* ======================================= */

.race-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.race-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.race-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Цвета рас */
.race-card[data-race="acretia"] {
    border-top: 4px solid #dc3545;
}
.race-card[data-race="acretia"] .race-name {
    color: #dc3545;
}

.race-card[data-race="bellato"] {
    border-top: 4px solid #28a745;
}
.race-card[data-race="bellato"] .race-name {
    color: #28a745;
}

.race-card[data-race="cora"] {
    border-top: 4px solid #17a2b8;
}
.race-card[data-race="cora"] .race-name {
    color: #17a2b8;
}

.race-header {
    padding: 20px;
    text-align: center;
    background: rgba(0,0,0,0.03);
}

.race-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.race-icon img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.race-name {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
}

/* Строчный список предметов */
.race-items-list {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.race-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s;
}

.race-item-row:hover {
    background: rgba(0, 0, 0, 0.03);
}

.race-item-row:last-child {
    border-bottom: none;
}

.race-item-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    padding: 4px;
}

.race-item-icon img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.race-item-info {
    flex: 2;
    min-width: 120px;
}

.race-item-name {
    font-weight: 700;
    font-size: 1.05em;
    color: #333;
    margin-bottom: 2px;
}

.race-item-props {
    flex: 3;
}

.prop-text {
    font-size: 0.75em;
    color: #4a4a8a;
    font-weight: 600;
    background: rgba(74, 74, 138, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .race-premium-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .race-header {
        padding: 15px;
    }
    
    .race-name {
        font-size: 1.2em;
    }
    
    .race-item-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .race-item-icon {
        width: 36px;
        height: 36px;
    }
    
    .race-item-icon img {
        max-width: 28px;
        max-height: 28px;
    }
    
    .race-item-info {
        flex: 1;
        min-width: 100px;
    }
    
    .race-item-name {
        font-size: 0.8em;
    }
    
    .race-item-props {
        flex: 100%;
        margin-left: 48px;
    }
    
    .prop-text {
        font-size: 0.7em;
        padding: 3px 6px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .race-item-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .race-item-icon {
        width: 36px;
        height: 36px;
    }
    
    .race-item-icon img {
        max-width: 28px;
        max-height: 28px;
    }
    
    .race-item-info {
        flex: 1;
        min-width: 100px;
    }
    
    .race-item-name {
        font-size: 0.8em;
    }
    
    .race-item-props {
        flex: 100%;
        margin-left: 48px;
    }
    
    .prop-text {
        font-size: 0.7em;
        padding: 3px 6px;
    }
}

/* ======================================= */
/* ========== АДАПТИВНОСТЬ ========== */
/* ======================================= */

@media (max-width: 768px) {
    .premium-header h1 {
        font-size: 1.8em;
    }
    
    .premium-crown {
        font-size: 48px;
    }
    
    .premium-set-section,
    .premium-bonuses-section,
    .premium-info-section {
        padding: 20px;
    }
    
    .premium-set-section h2,
    .premium-bonuses-section h2,
    .premium-info-section h2 {
        font-size: 1.3em;
    }
    
    .race-premium-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .race-header {
        padding: 15px;
    }
    
    .race-name {
        font-size: 1.2em;
    }
    
    .race-items {
        gap: 8px;
    }
    
    .race-item {
        padding: 5px 8px;
    }
    
    .race-item-name {
        font-size: 0.65em;
    }
    
    .tab-layout {
        flex-direction: column;
    }
    
    .tab-items-vertical {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
        order: 1;
    }
    
    .tab-item-info {
        flex: 0 0 auto;
        min-width: 120px;
        padding: 15px;
    }
    
    .tab-item-icon {
        width: 60px;
        height: 60px;
    }
    
    .tab-item-icon img {
        max-width: 40px;
        max-height: 40px;
    }
    
    .tab-item-name {
        font-size: 0.9em;
    }
    
    .tab-screenshots-vertical {
        flex-direction: column !important;
        overflow-x: visible !important;
        gap: 20px;
        order: 2;
    }
    
    .tab-screenshot {
        flex: 1 1 auto;
        min-width: auto;
        width: 100%;
        min-height: auto;
    }
    
    .tab-screenshot img {
        width: 100%;
        height: auto;
        min-width: auto;
    }
    
    .image-with-controls {
        min-width: auto;
        width: 100%;
    }
    
    .premium-tab-block h2 {
        font-size: 1.4em;
    }
    
    .bonuses-grid {
        grid-template-columns: 1fr;
    }
    
    .info-cards {
        flex-direction: column;
    }
    
    .info-card {
        min-width: auto;
    }
    
    .toggle-status-block {
        font-size: 10px;
    }
    
    .click-dot {
        width: 20px;
        height: 20px;
    }
    
    .click-dot .dot-indicator {
        width: 18px;
    }
    
    .range-slider-container {
        width: 120px;
    }
}