/* Секция блока результатов */
.results-section {
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Контейнер основного результата */
.results {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Обертка блока диаграммы */
.diagram-wrapper-block {
    width: 100%;
    margin: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    position: relative;
    min-height: 0;
    height: auto;
    overflow: visible;
}

/* Эффект размытия диаграммы */
.diagram-wrapper-block.blurred {
    position: relative;
}

.diagram-wrapper-block.blurred::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 13, 26, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    z-index: 2;
    pointer-events: none;
}

.diagram-wrapper-block.blurred .diagram-section-full {
    position: relative;
    z-index: 1;
}

.diagram-wrapper-block.blurred #diagram-container svg text {
    position: relative;
    z-index: 3;
    opacity: 1;
    visibility: visible;
    display: block;
}

/* Оверлей с кнопкой для диаграммы */
.diagram-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.diagram-blur-button {
    padding: 18px 36px;
    background: linear-gradient(135deg, 
        #5B21B6 0%, 
        #6D28D9 20%,
        #7C3AED 40%,
        #8B5CF6 60%,
        #7C3AED 80%,
        #5B21B6 100%);
    background-size: 400% 400%;
    border: none;
    border-radius: 18px;
    color: white;
    font-family: var(--font-family-heading);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-position 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 
        0 4px 17px rgba(91, 33, 182, 0.4),
        0 2px 8px rgba(124, 58, 237, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    animation: blurButtonPulse 3s ease-in-out infinite, gradientShift 4s ease infinite;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Анимация пульсации кнопки диаграммы */
@keyframes blurButtonPulse {
    0%, 100% {
        box-shadow: 
            0 0 0 0 rgba(91, 33, 182, 0.7),
            0 0 0 0 rgba(124, 58, 237, 0.5),
            0 4px 17px rgba(91, 33, 182, 0.4),
            0 2px 8px rgba(124, 58, 237, 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 8px rgba(91, 33, 182, 0),
            0 0 0 16px rgba(124, 58, 237, 0),
            0 4px 17px rgba(91, 33, 182, 0.6),
            0 2px 8px rgba(124, 58, 237, 0.5);
    }
}

.diagram-blur-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.diagram-blur-button:hover::before {
    left: 100%;
}

.diagram-blur-button:hover {
    transform: translateY(-2px) scale(1.02);
    background-position: 100% 50%;
    box-shadow: 
        0 12px 40px rgba(91, 33, 182, 0.5),
        0 6px 20px rgba(124, 58, 237, 0.4),
        inset 0 2px 6px rgba(255, 255, 255, 0.3);
    animation: none;
}

.diagram-blur-button:active {
    transform: translateY(0) scale(1);
}

.diagram-blur-button span {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .diagram-blur-button {
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .diagram-blur-button {
        padding: 12px 20px;
        font-size: 14px;
        white-space: normal;
        max-width: 90%;
    }
}

/* Десктоп */
@media (min-width: 1025px) {
    .diagram-wrapper-block {
        max-width: 90%;
        min-height: 0;
        height: auto;
    }
}

@media (max-width: 768px) {
    .diagram-wrapper-block {
        min-height: 0;
        height: auto;
    }
    
    .destiny-table-section {
        margin-top: 20px;
        padding: 40px 0 0 0;
    }
}

/* Унификация: контейнер диаграммы точно по размеру SVG на всех устройствах */
.diagram-wrapper-block,
.diagram-section-full,
#diagram-container {
    padding: 0 !important;
    margin: 0 !important;
}

.diagram-wrapper-block {
    display: block;
    width: 100%;
}

.diagram-section-full {
    width: 100%;
    display: block;
}

#diagram-container {
    width: 100%;
    display: block;
    line-height: 0;
}

#diagram-container svg {
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

#diagram-container .diagram-wrapper {
    margin: 0;
    padding: 0;
    display: block;
    line-height: 0;
}

@media (max-width: 480px) {
    .results-section .results .diagram-wrapper-block {
        border-radius: 10px;
    }
}

/* Отключение анимаций для пользователей с ограниченной анимацией */
@media (prefers-reduced-motion: reduce) {
    .diagram-wrapper-block,
    .diagram-section-full {
        transition: none;
    }
}

/* Верхний блок скачивания PDF */
.pdf-download-section-top {
    text-align: center;
    margin-bottom: 30px;
}

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-download-pdf:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.btn-download-pdf svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    display: block;
    flex-shrink: 0;
}

/* Кнопка премиум‑PDF */
.btn-pdf-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 44px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 35px rgba(139, 92, 246, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-pdf-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-pdf-premium:hover::before {
    left: 100%;
}

.btn-pdf-premium:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 45px rgba(139, 92, 246, 0.5), 0 6px 15px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-pdf-premium:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4), 0 3px 10px rgba(0, 0, 0, 0.2);
}

.btn-pdf-premium.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: successPulse 0.6s ease;
}

.btn-pdf-premium.btn-success:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 45px rgba(16, 185, 129, 0.55), 0 6px 15px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Анимация успешного состояния кнопки */
@keyframes successPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 14px 50px rgba(16, 185, 129, 0.6), 0 6px 20px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

/* Блок премиум‑предложения */
.matrix-premium-block {
    width: 100%;
    margin: 30px auto;
    text-align: center;
}

.premium-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Секция оплаченных матриц */
.paid-matrices-section {
    padding: 20px 0;
    margin: 8px 0 40px 0;
    background: transparent;
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.paid-matrices-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.paid-matrices-header {
    text-align: center;
    margin-bottom: 30px;
}

.paid-matrices-header .section-title {
    font-size: 28px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.paid-matrices-header .section-subtitle {
    font-size: 16px;
    color: #94a3b8;
    margin-top: 8px;
}

.paid-matrices-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.paid-matrix-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    z-index: 1;
    overflow: visible;
    pointer-events: auto;
}

.paid-matrix-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
}

.paid-matrix-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.paid-matrix-info {
    flex: 1;
}

.paid-matrix-title {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 8px 0;
}

.paid-matrix-date {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 4px 0;
}

.paid-matrix-date strong {
    color: #e2e8f0;
    font-weight: 600;
}

.paid-matrix-payment-date {
    font-size: 12px;
    color: #64748b;
    margin: 4px 0 0 0;
}

.paid-matrix-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 15;
    pointer-events: auto;
}

.btn-download-pdf-paid,
.btn-recalculate-paid {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    -webkit-touch-callout: none;
}

.btn-download-pdf-paid svg,
.btn-download-pdf-paid span,
.btn-recalculate-paid svg,
.btn-recalculate-paid span {
    pointer-events: none;
}

.btn-download-pdf-paid:hover,
.btn-recalculate-paid:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-recalculate-paid {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

@media (max-width: 768px) {
    .paid-matrices-section {
        padding: 30px 0;
        margin-bottom: 30px;
    }
    
    .paid-matrices-header .section-title {
        font-size: 24px;
    }
    
    .paid-matrices-header .section-subtitle {
        font-size: 14px;
    }
    
    .paid-matrix-card {
        padding: 16px;
    }
    
    .paid-matrix-card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .paid-matrix-actions {
        width: 100%;
    }
    
    .btn-download-pdf-paid,
    .btn-recalculate-paid {
        width: 100%;
        justify-content: center;
    }
}

/* Секция таблицы жизненных программ */
.destiny-table-section {
    padding: 20px 0 0 0;
    margin: 8px 0 0 0;
    background: transparent;
    width: 100%;
    display: block;
}

.destiny-table-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.destiny-table-title {
    font-family: var(--font-family-serif);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 0 24px 0;
    padding: 0;
    text-align: center;
    background: linear-gradient(135deg, 
        #D4AF37 0%,
        #F4E4C1 30%,
        #D4AF37 60%,
        #C9A961 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.destiny-table-subtitle {
    font-size: 20px;
    color: rgba(148, 163, 184, 0.8);
    text-align: center;
    margin: 0 0 16px 0;
    font-family: var(--font-family-serif);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.destiny-table-container {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.4) 0%, 
        rgba(10, 13, 26, 0.5) 50%,
        rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 14px;
    padding: 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    display: block;
}

/* Эффект размытия таблицы предназначений */
.destiny-table-wrapper.blurred {
    position: relative;
}

.destiny-table-wrapper.blurred .destiny-table-title {
    position: relative;
    z-index: 3;
}

.destiny-table-wrapper.blurred .destiny-table-container {
    position: relative;
}

.destiny-table-wrapper.blurred .destiny-table-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 13, 26, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    z-index: 2;
    pointer-events: none;
}

.destiny-table-wrapper.blurred .destiny-table {
    position: relative;
    z-index: 1;
}

.destiny-table-wrapper.blurred .destiny-table thead {
    position: relative;
    z-index: 3;
}

/* Оверлей с кнопкой для таблицы предназначений */
.destiny-table-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.destiny-table-blur-button {
    padding: 18px 36px;
    background: linear-gradient(135deg, 
        #5B21B6 0%, 
        #6D28D9 20%,
        #7C3AED 40%,
        #8B5CF6 60%,
        #7C3AED 80%,
        #5B21B6 100%);
    background-size: 400% 400%;
    border: none;
    border-radius: 18px;
    color: white;
    font-family: var(--font-family-heading);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 
        0 4px 17px rgba(91, 33, 182, 0.4),
        0 2px 8px rgba(124, 58, 237, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    animation: blurButtonPulse 3s ease-in-out infinite, gradientShift 4s ease infinite;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.destiny-table-blur-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.destiny-table-blur-button:hover::before {
    left: 100%;
}

.destiny-table-blur-button:hover {
    transform: translateY(-2px) scale(1.02);
    background-position: 100% 50%;
    box-shadow: 
        0 12px 40px rgba(91, 33, 182, 0.5),
        0 6px 20px rgba(124, 58, 237, 0.4),
        inset 0 2px 6px rgba(255, 255, 255, 0.3);
    animation: none;
}

.destiny-table-blur-button:active {
    transform: translateY(0) scale(1);
}

.destiny-table-blur-button span {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .destiny-table-blur-button {
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .destiny-table-blur-button {
        padding: 12px 20px;
        font-size: 14px;
        white-space: normal;
        max-width: 90%;
    }
}

.destiny-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    margin: 0;
    table-layout: fixed;
    border-radius: 12px;
    overflow: hidden;
    display: table;
}

.destiny-table thead {
    background: linear-gradient(135deg, 
        rgba(5, 150, 105, 0.15) 0%, 
        rgba(139, 92, 246, 0.15) 50%,
        rgba(5, 150, 105, 0.15) 100%);
    border-bottom: 2px solid rgba(139, 92, 246, 0.25);
    position: sticky;
    top: 0;
    z-index: 10;
}

.destiny-table th {
    padding: 12px 12px;
    text-align: center;
    font-family: var(--font-family-serif);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #e2e8f0;
    border-right: 1px solid rgba(139, 92, 246, 0.1);
    white-space: nowrap;
    box-sizing: border-box;
}

.destiny-table thead th:first-child {
    border-top-left-radius: 12px;
}

.destiny-table thead th:last-child {
    border-top-right-radius: 12px;
    border-right: none;
}

.destiny-table th.destiny-type-col {
    width: 35%;
    text-align: center;
    padding-left: 12px;
}

.destiny-table th.destiny-value-col {
    width: 20%;
}

.destiny-table th.destiny-result-col {
    width: 25%;
}

.destiny-table tbody {
    background: transparent;
}

.destiny-table-row {
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
    transition: all 0.2s ease;
    background: rgba(15, 23, 42, 0.2);
}

.destiny-table-row:hover {
    background: linear-gradient(135deg, 
        rgba(5, 150, 105, 0.06) 0%, 
        rgba(139, 92, 246, 0.06) 100%);
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.05);
}

.destiny-table-row:last-child {
    border-bottom: none;
}

.destiny-type-cell {
    padding: 7px 12px;
    vertical-align: middle;
    box-sizing: border-box;
    text-align: center;
    border-right: 1px solid rgba(139, 92, 246, 0.08);
    position: relative;
}

.destiny-type-cell.destiny-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.destiny-type-cell.destiny-clickable .destiny-type-content {
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(135deg, 
        rgba(5, 150, 105, 0.12) 0%, 
        rgba(139, 92, 246, 0.12) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.destiny-type-cell.destiny-clickable:hover .destiny-type-content {
    background: linear-gradient(135deg, 
        rgba(5, 150, 105, 0.2) 0%, 
        rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(139, 92, 246, 0.15);
}

.destiny-type-cell.destiny-clickable:active .destiny-type-content {
    background: linear-gradient(135deg, 
        rgba(5, 150, 105, 0.25) 0%, 
        rgba(139, 92, 246, 0.25) 100%);
    transform: scale(0.98);
    box-shadow: 
        0 1px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(139, 92, 246, 0.2);
}

.destiny-type-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.destiny-type-name {
    font-family: var(--font-family-serif);
    font-weight: 500;
    font-size: 14px;
    color: #e2e8f0;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-transform: uppercase;
    white-space: normal;
    text-align: center;
}

.destiny-type-age {
    font-family: var(--font-family-serif);
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.destiny-value-cell {
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid rgba(139, 92, 246, 0.08);
    box-sizing: border-box;
}

.destiny-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-family: var(--font-family-serif);
    font-weight: 600;
    font-size: 16px;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 0 12px;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(139, 92, 246, 0.1);
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.destiny-value-label {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.destiny-result-cell {
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid rgba(139, 92, 246, 0.08);
    box-sizing: border-box;
}

.destiny-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    font-family: var(--font-family-serif);
    font-weight: 600;
    font-size: 18px;
    color: #10b981;
    background: linear-gradient(135deg, 
        rgba(5, 150, 105, 0.15) 0%, 
        rgba(139, 92, 246, 0.15) 100%);
    border: 1.5px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 0 14px;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(139, 92, 246, 0.2),
        inset 0 1px 3px rgba(5, 150, 105, 0.2);
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 4px;
}

.destiny-result-label {
    display: block;
    font-size: 10px;
    color: #10b981;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.destiny-table-row:hover .destiny-value {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    transform: scale(1.05);
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(139, 92, 246, 0.2),
        inset 0 1px 2px rgba(139, 92, 246, 0.15);
}

.destiny-table-row:hover .destiny-result {
    background: linear-gradient(135deg, 
        rgba(5, 150, 105, 0.2) 0%, 
        rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(139, 92, 246, 0.4);
    transform: scale(1.05);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 18px rgba(139, 92, 246, 0.3),
        inset 0 1px 3px rgba(5, 150, 105, 0.25);
}

/* Строки родовых программ */
.destiny-ancestry-row {
    border-bottom: none;
    background: linear-gradient(90deg, 
        rgba(15, 23, 42, 0.3) 0%, 
        rgba(15, 23, 42, 0.25) 100%);
}

.destiny-ancestry-row:hover {
    background: linear-gradient(90deg, 
        rgba(5, 150, 105, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 50%,
        rgba(15, 23, 42, 0.3) 100%);
}

.destiny-ancestry-values {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.destiny-ancestry-value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.destiny-ancestry-cell .destiny-value {
    margin-bottom: 4px;
}

.destiny-ancestry-cell .destiny-value-label {
    margin-top: 2px;
}

/* Планшеты — родовые программы */
@media (max-width: 1024px) and (min-width: 769px) {
    .destiny-ancestry-values {
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .destiny-ancestry-values {
        gap: 7px;
    }
    
    .destiny-ancestry-cell {
        padding: 9px 5px;
    }
    
    .destiny-ancestry-cell .destiny-value {
        min-width: 29px;
        height: 29px;
        font-size: 13px;
        padding: 0 7px;
    }
    
    .destiny-ancestry-cell .destiny-result {
        min-width: 32px;
        height: 32px;
        font-size: 14px;
        padding: 0 9px;
    }
    
    .destiny-ancestry-cell .destiny-value-label,
    .destiny-ancestry-cell .destiny-result-label {
        font-size: 9px;
        margin-top: 2px;
    }
    
    .destiny-ancestry-cell .destiny-value {
        margin-bottom: 3px;
    }
}

@media (max-width: 480px) {
    .destiny-ancestry-values {
        gap: 6px;
    }
    
    .destiny-ancestry-cell {
        padding: 7px 3px;
    }
    
    .destiny-ancestry-cell .destiny-value {
        min-width: 25px;
        height: 25px;
        font-size: 11px;
        padding: 0 5px;
    }
    
    .destiny-ancestry-cell .destiny-result {
        min-width: 29px;
        height: 29px;
        font-size: 13px;
        padding: 0 7px;
    }
    
    .destiny-ancestry-cell .destiny-value-label,
    .destiny-ancestry-cell .destiny-result-label {
        font-size: 8px;
        margin-top: 1px;
    }
    
    .destiny-ancestry-cell .destiny-value {
        margin-bottom: 3px;
    }
}

@media (max-width: 360px) {
    .destiny-ancestry-values {
        gap: 5px;
    }
    
    .destiny-ancestry-cell {
        padding: 6px 2px;
    }
    
    .destiny-ancestry-cell .destiny-value {
        min-width: 23px;
        height: 23px;
        font-size: 10px;
        padding: 0 4px;
    }
    
    .destiny-ancestry-cell .destiny-result {
        min-width: 26px;
        height: 26px;
        font-size: 12px;
        padding: 0 6px;
    }
    
    .destiny-ancestry-cell .destiny-value-label,
    .destiny-ancestry-cell .destiny-result-label {
        font-size: 7px;
        margin-top: 1px;
    }
}

/* Плейсхолдеры для пустых значений таблицы */
.destiny-value.destiny-placeholder,
.destiny-result.destiny-placeholder {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.15);
}

.destiny-table-row:hover .destiny-value.destiny-placeholder,
.destiny-table-row:hover .destiny-result.destiny-placeholder {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.2);
    transform: none;
    box-shadow: none;
}

/* Десктоп — таблица предназначений */
@media (min-width: 1025px) {
    .destiny-table-wrapper {
        max-width: 90%;
    }
    
    .destiny-table-subtitle {
        margin-bottom: 20px;
    }
}

/* Планшеты — таблица предназначений */
@media (max-width: 1024px) and (min-width: 769px) {
    .destiny-table-title {
        font-size: 24px;
        margin-bottom: 31px;
    }
    
    .destiny-table-subtitle {
        font-size: 16px;
        margin-bottom: 23px;
        font-weight: 400;
        color: rgba(148, 163, 184, 0.8);
    }
    
    .destiny-table {
        font-size: 12px;
    }
    
    .destiny-table th {
        padding: 10px 8px;
        font-size: 11px;
    }
    
    .destiny-table th.destiny-type-col {
        width: 38%;
        padding-left: 12px;
    }
    
    .destiny-table th.destiny-value-col {
        width: 20%;
    }
    
    .destiny-table th.destiny-result-col {
        width: 22%;
    }
    
    .destiny-type-cell {
        padding: 10px 14px;
    }
    
    .destiny-type-cell.destiny-clickable {
        padding-left: 18px;
    }
    
    .destiny-type-cell.destiny-clickable:hover {
        padding-left: 20px;
    }
    
    .destiny-type-cell.destiny-clickable .destiny-type-content {
        padding: 6px 10px;
        min-height: 44px;
    }
    
    .destiny-type-name {
        font-size: 12px;
        letter-spacing: 0.3px;
        line-height: 1.2;
    }
    
    .destiny-type-age {
        font-size: 9px;
        line-height: 1.2;
    }
    
    .destiny-value-cell,
    .destiny-result-cell {
        padding: 10px 6px;
    }
    
    .destiny-value {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
        padding: 0 10px;
    }
    
    .destiny-result {
        min-width: 40px;
        height: 40px;
        font-size: 16px;
        padding: 0 12px;
    }
    
    .destiny-value-label,
    .destiny-result-label {
        font-size: 9px;
    }
}

@media (max-width: 768px) {
    .destiny-table-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .destiny-table-subtitle {
        font-size: 16px;
        margin-bottom: 14px;
        font-weight: 400;
        color: rgba(148, 163, 184, 0.8);
    }
    
    .destiny-table {
        font-size: 10px;
    }
    
    .destiny-table th {
        padding: 8px 6px;
        font-size: 9px;
    }
    
    .destiny-table th.destiny-type-col {
        width: 40%;
        padding-left: 10px;
    }
    
    .destiny-table th.destiny-value-col {
        width: 20%;
    }
    
    .destiny-table th.destiny-result-col {
        width: 20%;
    }
    
    .destiny-type-cell {
        padding: 8px 12px;
    }
    
    .destiny-type-cell.destiny-clickable {
        padding-left: 16px;
    }
    
    .destiny-type-cell.destiny-clickable:hover {
        padding-left: 18px;
    }
    
    .destiny-type-cell.destiny-clickable .destiny-type-content {
        padding: 6px 8px;
        min-height: 42px;
    }
    
    .destiny-type-name {
        font-size: 10px;
        letter-spacing: 0.2px;
        line-height: 1.2;
    }
    
    .destiny-type-age {
        font-size: 8px;
        line-height: 1.2;
    }
    
    .destiny-value-cell,
    .destiny-result-cell {
        padding: 8px 4px;
    }
    
    .destiny-value {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
    }
    
    .destiny-result {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
        padding: 0 10px;
    }
    
    .destiny-value-label,
    .destiny-result-label {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .destiny-table-title {
        font-size: 24px;
        margin-bottom: 17px;
    }
    
    .destiny-table-subtitle {
        font-size: 16px;
        margin-bottom: 12px;
        font-weight: 400;
        color: rgba(148, 163, 184, 0.8);
    }
    
    .destiny-table {
        font-size: 8px;
    }
    
    .destiny-table th {
        padding: 6px 4px;
        font-size: 8px;
    }
    
    .destiny-table th.destiny-type-col {
        width: 42%;
        padding-left: 8px;
    }
    
    .destiny-table th.destiny-value-col {
        width: 19%;
    }
    
    .destiny-table th.destiny-result-col {
        width: 20%;
    }
    
    .destiny-type-cell {
        padding: 6px 10px;
    }
    
    .destiny-type-cell.destiny-clickable {
        padding-left: 14px;
    }
    
    .destiny-type-cell.destiny-clickable:hover {
        padding-left: 16px;
    }
    
    .destiny-type-cell.destiny-clickable .destiny-type-content {
        padding: 5px 6px;
        min-height: 40px;
    }
    
    .destiny-type-name {
        font-size: 9px;
        letter-spacing: 0.1px;
        line-height: 1.15;
    }
    
    .destiny-type-age {
        font-size: 7px;
        line-height: 1.15;
    }
    
    .destiny-value-cell,
    .destiny-result-cell {
        padding: 6px 3px;
    }
    
    .destiny-value {
        min-width: 28px;
        height: 28px;
        font-size: 11px;
        padding: 0 6px;
    }
    
    .destiny-result {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
    }
    
    .destiny-value-label,
    .destiny-result-label {
        font-size: 7px;
    }
}

@media (max-width: 360px) {
    .destiny-table-title {
        font-size: 24px;
        margin-bottom: 13px;
    }
    
    .destiny-table-subtitle {
        font-size: 16px;
        margin-bottom: 9px;
        font-weight: 400;
        color: rgba(148, 163, 184, 0.8);
    }
    
    .destiny-table {
        font-size: 7px;
    }
    
    .destiny-table th {
        padding: 5px 3px;
        font-size: 7px;
    }
    
    .destiny-table th.destiny-type-col {
        width: 44%;
        padding-left: 6px;
    }
    
    .destiny-table th.destiny-value-col {
        width: 18%;
    }
    
    .destiny-table th.destiny-result-col {
        width: 20%;
    }
    
    .destiny-type-cell {
        padding: 5px 8px;
        width: 44%;
        max-width: 44%;
    }
    
    .destiny-value-cell {
        width: 18%;
        max-width: 18%;
    }
    
    .destiny-result-cell {
        width: 20%;
        max-width: 20%;
    }
    
    .destiny-type-cell.destiny-clickable {
        padding-left: 10px;
    }
    
    .destiny-type-cell.destiny-clickable:hover {
        padding-left: 12px;
    }
    
    .destiny-type-cell.destiny-clickable .destiny-type-content {
        padding: 4px 5px;
        min-height: 38px;
    }
    
    .destiny-type-name {
        font-size: 8px;
        letter-spacing: 0.1px;
        line-height: 1.1;
    }
    
    .destiny-type-age {
        font-size: 6px;
        line-height: 1.1;
    }
    
    .destiny-value-cell,
    .destiny-result-cell {
        padding: 5px 2px;
    }
    
    .destiny-value {
        min-width: 24px;
        height: 24px;
        font-size: 10px;
        padding: 0 5px;
    }
    
    .destiny-result {
        min-width: 28px;
        height: 28px;
        font-size: 11px;
        padding: 0 6px;
    }
    
    .destiny-value-label,
    .destiny-result-label {
        font-size: 6px;
    }
}

/* Секция карты здоровья */
.health-map-section {
    padding: 20px 0;
    margin: 8px 0 40px 0;
    background: transparent;
    width: 100%;
    display: block;
}

.health-map-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.health-map-title {
    font-family: var(--font-family-serif);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
    padding: 0;
    text-align: center;
    background: linear-gradient(135deg, 
        #D4AF37 0%,
        #F4E4C1 30%,
        #D4AF37 60%,
        #C9A961 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.health-map-subtitle {
    font-size: 20px;
    color: rgba(148, 163, 184, 0.8);
    text-align: center;
    margin: 0 0 16px 0;
    font-family: var(--font-family-serif);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.health-map-table-container {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.4) 0%, 
        rgba(10, 13, 26, 0.5) 50%,
        rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 14px;
    padding: 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    display: block;
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .health-map-section {
        margin-top: 20px;
        padding-top: 40px;
    }
}

/* Эффект размытия карты здоровья */
.health-map-wrapper.blurred {
    position: relative;
}

.health-map-wrapper.blurred .health-map-title,
.health-map-wrapper.blurred .health-map-subtitle {
    position: relative;
    z-index: 3;
}

.health-map-wrapper.blurred .health-map-table-container {
    position: relative;
}

.health-map-wrapper.blurred .health-map-table-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 13, 26, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    z-index: 2;
    pointer-events: none;
}

.health-map-wrapper.blurred .health-map-table {
    position: relative;
    z-index: 1;
}

.health-map-wrapper.blurred .health-map-table thead,
.health-map-wrapper.blurred .health-map-table tfoot {
    position: relative;
    z-index: 3;
}

/* Оверлей с кнопкой для карты здоровья */
.health-map-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.health-map-blur-button {
    padding: 18px 36px;
    background: linear-gradient(135deg, 
        #5B21B6 0%, 
        #6D28D9 20%,
        #7C3AED 40%,
        #8B5CF6 60%,
        #7C3AED 80%,
        #5B21B6 100%);
    background-size: 400% 400%;
    border: none;
    border-radius: 18px;
    color: white;
    font-family: var(--font-family-heading);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 
        0 4px 17px rgba(91, 33, 182, 0.4),
        0 2px 8px rgba(124, 58, 237, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    animation: blurButtonPulse 3s ease-in-out infinite, gradientShift 4s ease infinite;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.health-map-blur-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.health-map-blur-button:hover::before {
    left: 100%;
}

.health-map-blur-button:hover {
    transform: translateY(-2px) scale(1.02);
    background-position: 100% 50%;
    box-shadow: 
        0 12px 40px rgba(91, 33, 182, 0.5),
        0 6px 20px rgba(124, 58, 237, 0.4),
        inset 0 2px 6px rgba(255, 255, 255, 0.3);
    animation: none;
}

.health-map-blur-button:active {
    transform: translateY(0) scale(1);
}

.health-map-blur-button span {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .health-map-blur-button {
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .health-map-blur-button {
        padding: 12px 20px;
        font-size: 14px;
        white-space: normal;
        max-width: 90%;
    }
}

.health-map-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    margin: 0;
    table-layout: fixed;
    border-radius: 12px;
    overflow: hidden;
    display: table;
}

.health-map-table thead {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.15) 0%, 
        rgba(5, 150, 105, 0.12) 50%,
        rgba(16, 185, 129, 0.15) 100%);
    border-bottom: 2px solid rgba(16, 185, 129, 0.25);
    position: sticky;
    top: 0;
    z-index: 10;
}

.health-map-table th {
    padding: 14px 12px;
    text-align: center;
    font-family: var(--font-family-serif);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #e2e8f0;
    border-right: 1px solid rgba(139, 92, 246, 0.1);
    white-space: nowrap;
    box-sizing: border-box;
}

.health-map-table thead th:first-child {
    border-top-left-radius: 12px;
}

.health-map-table thead th:last-child {
    border-top-right-radius: 12px;
    border-right: none;
}

.health-map-table th.chakra-col {
    padding-left: 12px;
    padding-right: 12px;
    width: 40%;
    border-right: 1px solid rgba(139, 92, 246, 0.1);
}

.health-map-table th.value-col {
    width: 20%;
    border-right: 1px solid rgba(139, 92, 246, 0.1);
}

.health-map-table tbody {
    background: transparent;
}

.health-map-row {
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
    transition: all 0.2s ease;
    background: rgba(15, 23, 42, 0.2);
}

.health-map-row:hover {
    background: rgba(16, 185, 129, 0.06);
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.05);
}

.health-map-row:last-child {
    border-bottom: none;
}

.chakra-cell {
    padding: 8px 12px;
    vertical-align: middle;
    box-sizing: border-box;
    text-align: center;
}

.chakra-btn {
    width: 100%;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 8px;
    font-family: var(--font-family-serif);
    font-weight: 600;
    font-size: 14px;
    color: #e2e8f0;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: inline-block;
    outline: none;
    position: relative;
    overflow: hidden;
}

.chakra-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.chakra-btn > * {
    position: relative;
    z-index: 1;
}

.chakra-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
}

.chakra-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.chakra-btn.chakra-1 {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
}

.chakra-btn.chakra-1::before {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(239, 68, 68, 0.12) 100%);
}

.chakra-btn.chakra-1:hover::before {
    opacity: 1;
}

.chakra-btn.chakra-2 {
    background: rgba(234, 88, 12, 0.1);
    border-color: rgba(234, 88, 12, 0.2);
}

.chakra-btn.chakra-2::before {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.15) 0%, rgba(249, 115, 22, 0.12) 100%);
}

.chakra-btn.chakra-2:hover::before {
    opacity: 1;
}

.chakra-btn.chakra-3 {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.2);
}

.chakra-btn.chakra-3::before {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(251, 191, 36, 0.12) 100%);
}

.chakra-btn.chakra-3:hover::before {
    opacity: 1;
}

.chakra-btn.chakra-4 {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.chakra-btn.chakra-4::before {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.12) 100%);
}

.chakra-btn.chakra-4:hover::before {
    opacity: 1;
}

.chakra-btn.chakra-5 {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.chakra-btn.chakra-5::before {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(59, 130, 246, 0.12) 100%);
}

.chakra-btn.chakra-5:hover::before {
    opacity: 1;
}

.chakra-btn.chakra-6 {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
}

.chakra-btn.chakra-6::before {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%);
}

.chakra-btn.chakra-6:hover::before {
    opacity: 1;
}

.chakra-btn.chakra-7 {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
}

.chakra-btn.chakra-7::before {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(217, 70, 239, 0.12) 100%);
}

.chakra-btn.chakra-7:hover::before {
    opacity: 1;
}

.value-cell {
    padding: 8px 5px;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid rgba(139, 92, 246, 0.08);
    box-sizing: border-box;
}

.value-cell:last-child {
    border-right: none;
}

.energy-map-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    font-family: var(--font-family-serif);
    font-weight: 600;
    font-size: 14px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 0 10px;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(16, 185, 129, 0.1);
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

/* Placeholder для пустых значений */
.energy-map-value.energy-map-placeholder,
.total-value.energy-map-placeholder {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.15);
}

/* Кликабельные значения чакр */
.chakra-value-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.chakra-value-clickable:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    transform: scale(1.08) !important;
    box-shadow: 
        0 4px 12px rgba(139, 92, 246, 0.3),
        0 0 20px rgba(139, 92, 246, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.1) !important;
}

.chakra-value-clickable:active {
    transform: scale(0.98) !important;
}

/* Интерактивные значения в таблице предназначений */
.destiny-value-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.destiny-value-clickable:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    transform: scale(1.08) !important;
    box-shadow: 
        0 4px 12px rgba(139, 92, 246, 0.3),
        0 0 20px rgba(139, 92, 246, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.1) !important;
}

.destiny-value-clickable:active {
    transform: scale(0.98) !important;
}

.health-map-row:hover .energy-map-value:not(.energy-map-placeholder) {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(16, 185, 129, 0.2),
        inset 0 1px 2px rgba(16, 185, 129, 0.15);
}

.health-map-row:hover .energy-map-value.energy-map-placeholder {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.2);
    transform: none;
    box-shadow: none;
}

.health-map-table tfoot {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.12) 0%, 
        rgba(5, 150, 105, 0.1) 50%,
        rgba(16, 185, 129, 0.12) 100%);
    border-top: 2px solid rgba(16, 185, 129, 0.3);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.health-map-total {
    background: transparent;
}

.health-map-total td {
    padding: 14px 12px;
    font-family: var(--font-family-serif);
    font-weight: 600;
    font-size: 14px;
    color: #10b981;
    text-align: center;
    border-right: 1px solid rgba(139, 92, 246, 0.1);
    letter-spacing: 0.5px;
    box-sizing: border-box;
}

.health-map-total td:first-child {
    text-align: center;
    padding: 14px 12px;
    color: #e2e8f0;
    font-family: var(--font-family-serif);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.health-map-total td:last-child {
    border-right: none;
}

.health-map-table tfoot td:first-child {
    border-bottom-left-radius: 12px;
}

.health-map-table tfoot td:last-child {
    border-bottom-right-radius: 12px;
}

.total-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-family: var(--font-family-serif);
    font-weight: 600;
    font-size: 15px;
    color: #34d399;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.15) 0%, 
        rgba(5, 150, 105, 0.12) 50%,
        rgba(16, 185, 129, 0.15) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 0 12px;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(16, 185, 129, 0.2),
        inset 0 1px 3px rgba(16, 185, 129, 0.2);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Десктоп — карта здоровья */
@media (min-width: 1025px) {
    .health-map-wrapper {
        max-width: 90%;
    }
    
    .health-map-subtitle {
        margin-bottom: 20px;
    }
}

/* Планшеты — карта здоровья */
@media (max-width: 1024px) and (min-width: 769px) {
    .health-map-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .health-map-subtitle {
        font-size: 16px;
        margin-bottom: 23px;
        font-weight: 400;
        color: rgba(148, 163, 184, 0.8);
    }
    
    .health-map-table {
        font-size: 13px;
    }
    
    .health-map-table th {
        padding: 8px 6px;
        font-size: 10px;
    }
    
    .health-map-total td {
        padding: 8px 6px;
        font-size: 10px;
    }
    
    .health-map-total td:first-child {
        padding: 8px 8px;
        font-size: 10px;
    }
    
    .chakra-btn {
        padding: 6px 10px;
        font-size: 11px;
        line-height: 1.3;
    }
    
    .energy-map-value {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
        padding: 0 8px;
    }
    
    .total-value {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 10px;
    }
    
    .chakra-cell {
        padding: 6px 8px;
    }
    
    .value-cell {
        padding: 6px 4px;
    }
    
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .health-map-title {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .health-map-subtitle {
        font-size: 16px;
        margin-bottom: 14px;
        font-weight: 400;
        color: rgba(148, 163, 184, 0.8);
    }
    
    .health-map-table {
        font-size: 10px;
    }
    
    .health-map-table th {
        padding: 6px 4px;
        font-size: 9px;
    }
    
    .health-map-total td {
        padding: 6px 4px;
        font-size: 9px;
    }
    
    .health-map-total td:first-child {
        padding: 6px 6px;
        font-size: 9px;
    }
    
    .health-map-table th.chakra-col {
        padding-left: 8px;
        padding-right: 8px;
        width: 45%;
    }
    
    .health-map-table th.value-col {
        width: 18.33%;
    }
    
    .chakra-cell {
        padding: 5px 8px;
    }
    
    .chakra-btn {
        padding: 5px 8px;
        font-size: 10px;
        line-height: 1.2;
    }
    
    .value-cell {
        padding: 5px 3px;
    }
    
    .energy-map-value {
        min-width: 24px;
        height: 24px;
        font-size: 10px;
        padding: 0 6px;
    }
    
    .total-value {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
        padding: 0 8px;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 480px) {
    .health-map-title {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .health-map-subtitle {
        font-size: 16px;
        margin-bottom: 12px;
        font-weight: 400;
        color: rgba(148, 163, 184, 0.8);
    }
    
    .health-map-table {
        font-size: 8px;
    }
    
    .health-map-table th {
        padding: 5px 3px;
        font-size: 8px;
    }
    
    .health-map-total td {
        padding: 5px 3px;
        font-size: 8px;
    }
    
    .health-map-total td:first-child {
        padding: 5px 5px;
        font-size: 8px;
    }
    
    .health-map-table th.chakra-col {
        padding-left: 6px;
        padding-right: 6px;
        width: 50%;
    }
    
    .health-map-table th.value-col {
        width: 16.67%;
    }
    
    .chakra-cell {
        padding: 4px 6px;
    }
    
    .chakra-btn {
        padding: 4px 6px;
        font-size: 9px;
        line-height: 1.2;
    }
    
    .value-cell {
        padding: 4px 2px;
    }
    
    .energy-map-value {
        min-width: 20px;
        height: 20px;
        font-size: 9px;
        padding: 0 4px;
    }
    
    .total-value {
        min-width: 24px;
        height: 24px;
        font-size: 10px;
        padding: 0 6px;
    }
}

/* Очень маленькие мобильные устройства */
@media (max-width: 360px) {
    .health-map-title {
        font-size: 24px;
        margin-bottom: 4px;
    }
    
    .health-map-subtitle {
        font-size: 16px;
        margin-bottom: 9px;
        font-weight: 400;
        color: rgba(148, 163, 184, 0.8);
    }
    
    .health-map-table {
        font-size: 8px;
    }
    
    .health-map-table th {
        padding: 4px 2px;
        font-size: 7px;
    }
    
    .health-map-total td {
        padding: 4px 2px;
        font-size: 7px;
    }
    
    .health-map-total td:first-child {
        padding: 4px 4px;
        font-size: 7px;
    }
    
    .health-map-table th.chakra-col {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .chakra-cell {
        padding: 3px 5px;
    }
    
    .chakra-btn {
        padding: 3px 5px;
        font-size: 8px;
        line-height: 1.2;
    }
    
    .value-cell {
        padding: 3px 2px;
    }
    
    .energy-map-value {
        min-width: 18px;
        height: 18px;
        font-size: 8px;
        padding: 0 4px;
    }
    
    .total-value {
        min-width: 22px;
        height: 22px;
        font-size: 9px;
        padding: 0 5px;
    }
}

/* Стили для подзаголовков в блоках расшифровок */
.content-text strong,
.content-info .content-text strong,
.content-highlight .content-text strong,
.content-warning .content-text strong {
    color: #ffffff;
    font-weight: 700;
    display: block;
    margin-bottom: 0.2em;
    margin-top: 0.5em;
}

.content-text strong:first-child,
.content-info .content-text strong:first-child,
.content-highlight .content-text strong:first-child,
.content-warning .content-text strong:first-child {
    margin-top: 0;
}

/* Отступ между подзаголовками и текстом */
.content-highlight > strong + .content-text,
.content-info > strong + .content-text,
.content-warning > strong + .content-text {
    margin-top: 0.3em;
}

.price-discount-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.price-old {
    font-size: 24px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.price-new {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 42px;
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 2px 16px rgba(251, 191, 36, 0.3);
    letter-spacing: 0.3px;
}

.price-saving {
    font-size: 15px;
    color: #86efac;
    font-weight: 600;
    margin-bottom: 18px;
}

.timer-container-placeholder {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 125, 216, 0.25);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.timer-icon-placeholder {
    font-size: 22px;
    animation: pulseTimer 2s ease-in-out infinite;
}

@keyframes pulseTimer {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.timer-label-placeholder {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 500;
}

.timer-value-placeholder {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #a5b4fc;
    transition: color 0.3s ease;
}

.urgent-timer {
    animation: urgentPulse 1s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.5;
    }
}

/* Ссылки на блоки */
.block-link {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.5;
    color: #16a34a !important;
    text-decoration: none !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 10px;
    margin: 0 1px;
    border-radius: 7px;
    background: linear-gradient(145deg, 
        rgba(22, 163, 74, 0.15) 0%, 
        rgba(22, 163, 74, 0.1) 50%,
        rgba(5, 150, 105, 0.08) 100%);
    border: 1.5px solid rgba(22, 163, 74, 0.3);
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(22, 163, 74, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) translateZ(0);
    backdrop-filter: blur(4px);
}

.block-link::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(22, 163, 74, 0.2) 0%, 
        rgba(5, 150, 105, 0.12) 40%,
        transparent 70%);
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.8);
}

.block-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.06) 0%, 
        transparent 50%,
        rgba(0, 0, 0, 0.04) 100%);
    border-radius: 7px;
    pointer-events: none;
    opacity: 0.6;
}

.block-link:hover {
    color: #22c55e !important;
    border-color: rgba(22, 163, 74, 0.45);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(22, 163, 74, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 3px 10px rgba(22, 163, 74, 0.25);
    transform: perspective(1000px) translateY(-1px) translateZ(2px);
}

.block-link:hover::before {
    opacity: 0.8;
    transform: scale(1);
}

.block-link:active {
    color: #15803d !important;
    transform: perspective(1000px) translateY(0) translateZ(1px);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.25),
        0 0 12px rgba(22, 163, 74, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

/* Кнопка возврата назад */
.block-back-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    color: #8b5cf6;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
}

.block-back-button.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.block-back-button:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
    color: #a78bfa;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.block-back-button:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.block-back-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .block-back-button {
        bottom: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
    }
    
    .block-back-button svg {
        width: 14px;
        height: 14px;
    }
}
