:root {
    --primary-color: #F7F7F7;
    --secondary-color: #EEEEEE;
    --accent-color: #343434;
    --text-color: #2a2a2a;
    --bg-light: #ffffff;
    --text-light: #333333;
    --bg-dark: #1a1a1a;
    --text-dark: #ffffff;
    --transition-speed: 0.3s;
    --knight-color: rgba(0, 140, 255, 0.4);
    --ranger-color: rgba(0, 255, 0, 0.4);
    --mage-color: rgba(255, 255, 0, 0.4);
    --assassin-color: rgba(255, 255, 255, 0.4);
    --summoner-color: rgba(255, 0, 0, 0.4);
    --border-opacity: 0.6;
    --glow-opacity: 0.4;
    


    --payment-silver-color: rgba(255, 215, 0, 0.4);
    --payment-honorpoint-color: rgba(0, 191, 255, 0.4);
    --payment-chaospoint-color: rgba(148, 0, 211, 0.4);
    --payment-chaossilver-color: rgba(255, 69, 0, 0.4);

}

script {
    display: none
}


body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    font-family: "Didact Gothic",sans-serif;
    background-image: url(https://raw.githubusercontent.com/Aksel911/R2-HTML-DB/refs/heads/main/static/bg/BG.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    color: var(--text-color);
    transition: background-color var(--transition-speed)
}

h1 {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0,0,0,.1);
    animation: fadeIn 1s ease-in-out
}



.table-wrapper {
    width: 100%;
    background: rgba(255,255,255,.95);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    margin-bottom: 200px;
    overflow: hidden
}

.table {
    width: 100%;
    border-collapse: collapse;
    animation: fadeIn 1s;
    table-layout: fixed
}

.table th,.table td {
    padding: 12px;
    border: 1px solid #dee2e6;
    font-size: 14px;
    text-align: center;
    vertical-align: middle
}

.table th {
    background-color: #343a40;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,.075);
    transition: background-color .3s;
    cursor: pointer
}


.col-md-12 {
    margin: 5px 0;
    margin-left: 0.0rem;
}
.ml-2, .mx-2 {
    margin-left: 0.0rem !important;
}
.col-md-3 {
    width: 80%;
}


.search-container {
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 20px;
    background: rgba(255,255,255,.95);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,.1)
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    transition: all .3s;
    font-size: 16px;
    background: #fff
}

.search-input:focus {
    border-color: #2196f3;
    box-shadow: 0 0 8px rgba(76,175,80,.3);
    outline: 0
}

.skill-image,.item-image {
    transition: transform .3s,box-shadow .3s
}

.skill-image:hover,.item-image:hover {
    transform: scale(2);
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,.2)
}

.img-container {
    position: relative;
    width: 300px;
    height: 300px;
    perspective: 1000px
}

.item-image {
    transition: transform .3s ease,box-shadow .3s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    border-radius: 4px
}

.item-image:hover {
    z-index: 1000
}

.hover-text-wrapper {
    position: relative;
    display: inline-block;
    z-index: 99999!important
}

.hover-text {
    position: absolute;
    top: 50%;
    left: calc(100% + 15px);
    transform: translateY(-50%) translateX(5px);
    background: linear-gradient(135deg,rgba(30,41,59,.98),rgba(15,23,42,.99));
    color: rgba(255,255,255,.95);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease,transform .15s ease;
    pointer-events: none;
    box-shadow: 0 8px 16px rgba(0,0,0,.2),0 2px 4px rgba(0,0,0,.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    letter-spacing: .01em;
    border: 1px solid rgba(255,255,255,.15);
    z-index: 99999!important;
    will-change: transform,opacity;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased
}

.hover-text::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: inherit;
    border-left: 1px solid rgba(255,255,255,.15);
    border-bottom: 1px solid rgba(255,255,255,.15);
    z-index: 99998!important
}

.hover-text-wrapper:hover .hover-text {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0)
}

.dark-theme .hover-text {
    background: linear-gradient(135deg,rgba(51,65,85,.99),rgba(30,41,59,.98));
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 8px 20px rgba(0,0,0,.3),0 2px 6px rgba(0,0,0,.2)
}

@media (max-width:768px) {
    .hover-text {
        font-size: 12px;
        padding: 6px 12px
    }

    .hover-text::before {
        width: 8px;
        height: 8px
    }
}

.form-control {
    border-radius: 8px;
    font-size: 1em;
    line-height: 1.5;
    transition: all .3s ease;
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
    width: 180px
}

.form-control:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
    cursor: pointer
}

.form-control:focus {
    outline: 0;
    border-color: #5b6b71;
    box-shadow: 0 0 5px rgba(91,107,113,.5)
}

.btn-primary,.btn-secondary,.btn-info {
    transition: all .3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
    border-radius: 8px
}

.btn-primary {
    border: 0;
    color: #fff;
    margin-right: 5px
}

.btn-primary:hover {
    border-color: #0288d1;
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,.2);
    color: #fff
}

.btn-primary:active {
    border-color: #0288d1;
    color: #fff;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,.15)
}

.btn-secondary {
    background: linear-gradient(145deg,#007bff,#0056b3);
    border: 0;
    color: #fff;
    margin-right: 5px
}

.btn-secondary:hover {
    background: linear-gradient(145deg,#0056b3,#003d7a);
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,.15)
}

.btn-secondary:active {
    background: linear-gradient(145deg,#003d7a,#002f5d);
    color: #e1e1e1;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,.1)
}

.btn-info {
    background: linear-gradient(145deg,#ede7f6,#d1c4e9);
    border: 0;
    color: #512da8;
    margin-right: 5px
}

.btn-info:hover {
    background: linear-gradient(145deg,#d1c4e9,#b39ddb);
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,.2)
}

.btn-info:active {
    background: linear-gradient(145deg,#b39ddb,#9575cd);
    color: #311b92;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,.1)
}

.card {
    background: linear-gradient(135deg,rgba(250,250,252,.98),rgba(246,247,249,.95));
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31,38,135,.1),0 2px 8px rgba(0,0,0,.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220,224,228,.9);
    transition: all .3s cubic-bezier(.4,0,.2,1)
}

.card input,.card select {
    background: rgba(250,251,254,.95);
    border: 1px solid rgba(190,196,204,.6);
    border-radius: 10px;
    padding: .625rem 1rem;
    transition: all .2s cubic-bezier(.4,0,.2,1)
}

.card input:hover,.card select:hover {
    border-color: rgba(66,153,225,.4);
    box-shadow: 0 2px 8px rgba(66,153,225,.06)
}

.card input:focus,.card select:focus {
    border-color: rgba(66,153,225,.7);
    box-shadow: 0 0 0 3px rgba(66,153,225,.12),0 4px 12px rgba(66,153,225,.08);
    outline: 0
}

.filters-container {
    background: rgba(255, 255, 255, 0.12);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    backdrop-filter: blur(10px);
    transition: background-color .3s,color .3s
}

.advanced-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 20px;
    padding: 10px;
    background: rgba(255,255,255,.02);
    border-radius: 12px
}



.filter-card {
    background: rgba(255,255,255,.05);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    transition: all .3s ease;
    border: 1px solid rgba(255,255,255,.1)
}

.filter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,.15);
    border-color: rgba(255,255,255,.2)
}

.filter-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.1)
}

.filter-icon {
    font-size: 1.5em;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    border-radius: 8px;
    transition: all .3s ease
}

.filter-card:hover .filter-icon {
    background: rgba(255,255,255,.2);
    transform: scale(1.1)
}

.filter-label {
    font-weight: 500;
    font-size: .95em;
    color: rgba(5,5,5,.9)
}

body.dark-theme {
    background-image: url(https://raw.githubusercontent.com/Aksel911/R2-HTML-DB/refs/heads/main/static/bg/BG_black.jpg)!important;
    color: var(--text-dark)
}

.dark-theme .table-wrapper {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.95), rgba(60, 60, 60, 0.2));
  }
  

.dark-theme .table th {
    background-color: #2c3e50;
    border: 1px solid #34495e;
    color: #fff
}

.dark-theme .table td {
    border: 5px #34495e;
    color: #fff
}

.dark-theme .search-container {
    background: rgba(40,40,40,.95)
}

.dark-theme .search-input {
    background: #2c3e50;
    color: #fff;
    border-color: #34495e
}


.dark-theme .form-control {
    background-color: #2c3e50;
    border-color: #34495e;
    color: #fff
}

.dark-theme .form-control:hover {
    background-color: #34495e;
    border-color: #3d566e;
    cursor: pointer
}

.dark-theme .btn-primary {
    border: 0;
    color: #fff
}

.dark-theme .btn-primary:hover {
    border-color: #3a4b4e;
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,.4);
    color: #e1f5fe
}

.dark-theme .btn-primary:active {
    border-color: #1e2829;
    color: #cfd8dc;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,.3)
}

.dark-theme .btn-secondary {
    background: linear-gradient(145deg,#3d5a80,#293241);
    border: 0;
    color: #cfd8dc
}

.dark-theme .btn-secondary:hover {
    background: linear-gradient(145deg,#2d5a80,#193241);
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,.2)
}

.dark-theme .btn-secondary:active {
    background: linear-gradient(145deg,#1f3e58,#0b161d);
    color: #fff;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,.1)
}

.dark-theme .btn-info {
    background: linear-gradient(145deg,#5d5a80,#493241);
    border: 0;
    color: #cfd8dc
}

.dark-theme .btn-info:hover {
    background: linear-gradient(145deg,#4d5a80,#393241);
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,.2)
}

.dark-theme .btn-info:active {
    background: linear-gradient(145deg,#2f374e,#1e1a22);
    color: #fff;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,.1)
}

.dark-theme .page-link {
    background-color: #2c3e50!important;
    border-color: #34495e!important;
    color: #fff!important
}

.dark-theme .page-item.active .page-link {
    background-color: #3498db!important;
    border-color: #3498db!important;
    color: #fff!important
}

.dark-theme .page-item.disabled .page-link {
    background-color: #1a1a1a!important;
    border-color: #34495e!important;
    color: #6c757d!important
}

.dark-theme .page-link:hover {
    background-color: #34495e!important;
    border-color: #2c3e50!important;
    color: #fff!important
}

.dark-theme .page-item.active .page-link:hover {
    background-color: #2980b9!important;
    border-color: #2980b9!important
}

.dark-theme a {
    color: #fff5e6!important
}

.dark-theme a:hover {
    color: #ffe4b5!important;
}

.dark-theme .filters-container {
    background: rgba(19, 19, 19, 0.4);
}

.dark-theme .card {
    background: linear-gradient(135deg,rgba(25,32,45,.98),rgba(22,27,38,.95));
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 32px rgba(0,0,0,.3),0 2px 8px rgba(0,0,0,.2);
    backdrop-filter: blur(10px)
}

.dark-theme .card input,.dark-theme .card select {
    background: rgba(15,19,28,.8);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.9)
}

.dark-theme .card input:hover,.dark-theme .card select:hover {
    border-color: rgba(66,153,225,.5);
    background: rgba(20,24,34,.9);
    box-shadow: 0 2px 8px rgba(66,153,225,.08)
}

.dark-theme .card input:focus,.dark-theme .card select:focus {
    border-color: rgba(66,153,225,.5);
    box-shadow: 0 2px 8px rgba(66,153,225,.08);
    background: rgba(20,24,34,.95)
}

.dark-theme .form-control,.dark-theme .input-group-text {
    background-color: #2c3e50;
    border-color: #34495e;
    color: #fff
}

.dark-theme .filter-label {
    font-weight: 500;
    font-size: .95em;
    color: rgba(255,255,255,.9)
}

@keyframes filterCardAppear {
    0% {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.filter-card {
    animation: filterCardAppear .3s ease forwards
}

.filter-card:nth-child(n) {
    animation-delay: calc(.05s*var(--index, 0))
}

.dark-theme h1 {
    color: #fff5e6!important;
    text-decoration: none!important
}

/* Кнопка переключения темы */
.theme-toggle {
    position: fixed;
    bottom: 5px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f1f1, #e0e0e0);
    border: 0;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease, transform 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 9999;
}

.theme-toggle i {
    font-size: 22px;
    line-height: 1;
    color: #333;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    background: linear-gradient(135deg, rgb(0, 174, 255), #0077cc);
    color: #fff;
    transform: rotate(360deg) scale(1.1); 
}

.theme-toggle:active {
    background: linear-gradient(135deg, #0077cc, rgb(0, 174, 255));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transform: scale(0.95); 
}

body.dark-theme .theme-toggle {
    background: linear-gradient(135deg, #333, #555); 
    color: #f1f1f1;
}

body.dark-theme .theme-toggle:hover {
    background: linear-gradient(135deg, #555, #777);
}
.theme-toggle.bouncing {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}



.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease-in-out
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible
}

.loading-content {
    background: #fff;
    padding: 30px 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateY(-20px);
    transition: transform .3s ease-out;
    box-shadow: 0 4px 20px rgba(0,0,0,.15)
}

.loading-overlay.show .loading-content {
    transform: translateY(0)
}

.spinner {
    width: 42px;
    height: 42px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite
}

.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 1000;
    opacity: 0;
    transform: translateX(50px);
    transition: all .3s ease-in-out;
    background: #fff5f5;
    color: #e53e3e;
    border-left: 4px solid #e53e3e
}

.error-message.show {
    opacity: 1;
    transform: translateX(0)
}

.table-fade-enter {
    opacity: 0;
    transform: translateY(10px)
}

.table-fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .3s ease-in-out,transform .3s ease-in-out
}

.pagination-container {
    -webkit-transition: opacity .3s ease-out;
    transition: opacity .3s ease-out;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pagination-container button {
    transition: all .2s ease
}

.pagination-container button:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,.1)
}

.pagination-bottom {
    margin-top: -5rem;
    border-top: 1px solid var(--border-color);
    margin: auto;
    margin-top: -180px;
}


.dark-theme .loading-content {
    background: #2d3748;
    color: #e2e8f0
}

.dark-theme .error-message {
    background: #742a2a;
    color: #fff;
    border-left-color: #fc8181
}

.filter-card-container {
    background: linear-gradient(135deg,rgba(255,255,255,.98),rgba(252,252,252,.95));
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31,38,135,.08),0 2px 8px rgba(0,0,0,.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(230,232,236,.8);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    padding: 1.5rem
}

.filter-card-container input,.filter-card-container select,.filter-select {
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(200,206,214,.6);
    border-radius: 10px;
    padding: .625rem 1rem;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    font-size: .95rem;
    color: #2d3748;
    min-height: 42px
}

.filter-card-container input:hover,.filter-card-container select:hover,.filter-select:hover {
    border-color: rgba(66,153,225,.5);
    box-shadow: 0 2px 8px rgba(66,153,225,.08);
    transform: translateY(-1px)
}

.filter-card-container input:focus,.filter-card-container select:focus,.filter-select:focus {
    border-color: rgba(66,153,225,.8);
    box-shadow: 0 0 0 3px rgba(66,153,225,.15),0 4px 12px rgba(66,153,225,.1);
    outline: 0;
    transform: translateY(-1px)
}

.filter-group {
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
    text-align: center;
}

.filter-label {
    display: flex;
    margin-bottom: .625rem;
    font-weight: 500;
    color: #2d3748;
    font-size: .925rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    letter-spacing: .01em
}

.filter-range {
    display: flex;
    align-items: center;
    gap: .75rem
}

.range-separator {
    color: #718096;
    font-weight: 500;
    user-select: none
}

.filter-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 1.25rem 1rem;
    border-top: 1px solid rgba(226,232,240,.6);
    margin-top: 1rem
}

.custom-switch {
    padding: .625rem 1.25rem;
    background: rgba(247,250,252,.8);
    border-radius: 24px;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    border: 1px solid rgba(226,232,240,.8)
}

.dark-theme .filter-card-container {
    background: linear-gradient(135deg,rgba(30,38,52,.98),rgba(26,32,44,.95));
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 8px 32px rgba(0,0,0,.25),0 2px 8px rgba(0,0,0,.15)
}

.dark-theme .filter-card-container input,.dark-theme .filter-card-container select,.dark-theme .filter-select {
    background: rgba(20,24,34,.8);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.9)
}

.dark-theme .filter-label {
    color: rgba(255,255,255,.9)
}

.dark-theme .custom-switch {
    background: rgba(45,55,72,.8);
    border-color: rgba(255,255,255,.1)
}

.dark-theme .range-separator {
    color: rgba(255,255,255,.6)
}

.dark-theme .filter-card-container input:hover,.dark-theme .filter-card-container select:hover,.dark-theme .filter-select:hover {
    border-color: rgba(66,153,225,.4);
    background: rgba(26,32,44,.9)
}

.dark-theme .filter-card-container input:focus,.dark-theme .filter-card-container select:focus,.dark-theme .filter-select:focus {
    border-color: rgba(66,153,225,.6);
    box-shadow: 0 0 0 3px rgba(66,153,225,.2),0 4px 12px rgba(0,0,0,.2);
    background: rgba(26,32,44,.95)
}

.filterrow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    padding: .5rem
}

@media (max-width:768px) {
    .filter-toggles {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch
    }

    .custom-switch {
        width: 100%;
        text-align: center;
        padding: .75rem
    }

    .filterrow {
        gap: 1rem
    }

    .filter-card-container {
        padding: 1rem
    }
}


.author-box {
	text-align: center;
	position: absolute;
	width: 100%;
}

@keyframes gradientSlide {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 200% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}

.author-credit {
    position: relative;
    text-align: center;
    font-weight: 600;
    background-image: linear-gradient(
        90deg,
        #ff6b6b,
        #4ecdc4,
        #45b649,
        #2c3e50,
        #ff6b6b,
        #ff6b6b
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientSlide 15s linear infinite;
    transition: all 0.3s ease;
}

.author-credit::before {
    content: "Добро пожаловать в базу знаний R2 Online";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 110%;
    background-image: linear-gradient(
        90deg,
        #ff6b6b,
        #4ecdc4,
        #45b649,
        #2c3e50,
        #ff6b6b,
        #ff6b6b
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: blur(8px);
    opacity: 0.8;
    animation: gradientSlide 15s linear infinite;
    z-index: -1;
}

.author-credit a {
    background-image: linear-gradient(
        90deg,
        #ff6b6b,
        #4ecdc4,
        #45b649,
        #2c3e50,
        #ff6b6b,
        #ff6b6b
    ) !important;
    background-size: 400% 100% !important;
    color: transparent !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    text-decoration: none !important;
    position: relative;
    display: inline-block;
    animation: gradientSlide 15s linear infinite;
    transition: all 0.3s ease;
}

.author-credit a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-image: linear-gradient(
        90deg,
        #ff6b6b,
        #4ecdc4,
        #45b649,
        #2c3e50,
        #ff6b6b,
        #ff6b6b
    );
    background-size: 400% 100%;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.45, 0.05, 0.55, 0.95);
    animation: gradientSlide 15s linear infinite;
}

.author-credit a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.author-credit a:hover {
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

/* Dark theme styles */
.dark-theme .author-credit {
    background-image: linear-gradient(
        90deg,
        #845EC2,
        #D65DB1,
        #FF6F91,
        #FF9671,
        #845EC2,
        #845EC2
    );
}

.dark-theme .author-credit::before {
    background-image: linear-gradient(
        90deg,
        #845EC2,
        #D65DB1,
        #FF6F91,
        #FF9671,
        #845EC2,
        #845EC2
    );
    filter: blur(12px);
    opacity: 0.9;
}

.dark-theme .author-credit a {
    background-image: linear-gradient(
        90deg,
        #845EC2,
        #D65DB1,
        #FF6F91,
        #FF9671,
        #845EC2,
        #845EC2
    ) !important;
}

.dark-theme .author-credit a::after {
    background-image: linear-gradient(
        90deg,
        #845EC2,
        #D65DB1,
        #FF6F91,
        #FF9671,
        #845EC2,
        #845EC2
    );
    height: 3px;
}

.dark-theme .author-credit a:hover {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}








/* ! Отображение предметов */

/* Оптимизация для мобильных устройств */
@media (max-width: 768px) {
    .atropos {
        perspective: none;
    }
    
    .atropos-rotate {
        transform: none !important;
    }
    
    .atropos-scale {
        transform: none !important;
    }
    
    .atropos-inner:hover {
        transform: translateY(-2px) scale(1.01);
    }
}

* {
    backface-visibility: hidden;
}

/* Добавляем плавную анимацию для всех переходов */

.atropos * {
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.no-transition * {
    transition: none !important;
    animation: none !important;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1.5rem;
    will-change: transform;
}

.atropos {
    position: relative;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: iconFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    perspective: 1000px;
    cursor: pointer;
    will-change: transform, opacity;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.no-atropos-transitions .atropos,
.no-atropos-transitions .atropos * {
    transition: none !important;
    animation: none !important;
}

.atropos:nth-child(n) {
    animation-delay: calc(var(--index) * 0.1s);
}

.atropos-inner {
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(250, 250, 250, 0.95));
    padding: 2rem;
    border: 1px solid rgba(230, 230, 230, 0.5);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    position: relative;
    cursor: pointer; 
    perspective: 600px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.atropos-inner .monster-image, 
.atropos-inner .item-card-image {
    width: 48px;
    height: 48px;
    transform: translateZ(0px) rotateX(0deg) rotateY(0deg) scale(1); /* Начальные параметры */
    transition: transform 0.3s ease-out, filter 0.3s ease-out;
    will-change: transform, filter; /* Оптимизация производительности */
}

.atropos-inner:hover .monster-image,
.atropos-inner:hover .item-card-image {
    transform: translateZ(0px) scale(1.05);
    filter: brightness(1.2) saturate(1.2);
}   

/* Основные стили для hover */
.atropos-inner:hover {
    --blur-strength: 15px;
    cursor: pointer;
    transform: translateY(-5px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.atropos-inner .item-card-id .tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 100%; /* Появляется над блоком */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
  }

  .atropos-inner .item-card-id:hover .tooltip {
    visibility: visible;
    opacity: 1;
  }

/* Для комбинаций — зафиксируем состояние при убирании мышки */
.atropos-inner[data-class="0"]:not(:hover),
.atropos-inner[data-class="1"]:not(:hover),
.atropos-inner[data-class="2"]:not(:hover),
.atropos-inner[data-class="4"]:not(:hover),
.atropos-inner[data-class="8"]:not(:hover),
.atropos-inner[data-class="16"]:not(:hover),
.atropos-inner[data-class="5"]:not(:hover),
.atropos-inner[data-class="18"]:not(:hover),
.atropos-inner[data-class="20"]:not(:hover),
.atropos-inner[data-class="7"]:not(:hover),
.atropos-inner[data-class="19"]:not(:hover),
.atropos-inner[data-class="22"]:not(:hover),
.atropos-inner[data-class="15"]:not(:hover),
.atropos-inner[data-class="23"]:not(:hover),
.atropos-inner[data-class="255"]:not(:hover) {
    border-color: rgba(128, 128, 128, 0.15); /* Возвращаемся к серому цвету */
    box-shadow: 0 4px 20px rgba(31, 38, 135, 0.1); /* Плавный переход обратно */
    transition: all 0.3s ease, box-shadow 0.3s ease-in-out; /* Плавный переход обратно */
    
}


/* Стили для разных классов */
.atropos-inner[data-class="0"]:hover { /* Нет класса */
    border-color: rgba(128, 128, 128, 0.4);
}

.atropos-inner[data-class="1"]:hover { /* Рыцарь */
    border-color: rgba(0, 140, 255, 0.4);
}

.atropos-inner[data-class="2"]:hover { /* Рейнджер */
    border-color: rgba(0, 255, 0, 0.4);
}

.atropos-inner[data-class="4"]:hover { /* Маг */
    border-color: rgba(255, 255, 0, 0.4);
}

.atropos-inner[data-class="8"]:hover { /* Ассасин */
    border-color: rgba(255, 255, 255, 0.4);
}

.atropos-inner[data-class="16"]:hover { /* Призыватель */
    border-color: rgba(255, 0, 0, 0.4);
}

/* Анимации для комбинаций */
.atropos-inner[data-class="5"]:hover { /* Рыцарь + Маг */
    animation: knightMageBorder 3s linear infinite;
}

.atropos-inner[data-class="18"]:hover { /* Рейнджер + Призыватель */
    animation: rangerSummonerBorder 3s linear infinite;
}

.atropos-inner[data-class="20"]:hover { /* Маг + Призыватель */
    animation: mageSummonerBorder 3s linear infinite;
}

.atropos-inner[data-class="7"]:hover { /* Рыцарь + Рейнджер + Маг */
    animation: tripleKnightRangerMageBorder 4s linear infinite;
}

.atropos-inner[data-class="19"]:hover { /* Рыцарь + Рейнджер + Призыватель */
    animation: tripleKnightRangerSummonerBorder 4s linear infinite;
}

.atropos-inner[data-class="22"]:hover { /* Рейнджер + Маг + Призыватель */
    animation: tripleRangerMageSummonerBorder 4s linear infinite;
}

.atropos-inner[data-class="15"]:hover { /* Рыцарь + Рейнджер + Маг + Ассасин */
    animation: quadKnightRangerMageAssassinBorder 5s linear infinite;
}

.atropos-inner[data-class="23"]:hover { /* Рыцарь + Рейнджер + Маг + Призыватель */
    animation: quadKnightRangerMageSummonerBorder 5s linear infinite;
}

.atropos-inner[data-class="255"]:hover { /* Все классы */
    animation: allClassesBorder 6s linear infinite;
}

/* Определение анимаций */
@keyframes knightMageBorder {
    0%, 100% { 
        border-color: rgba(0, 140, 255, 0.4); /* Рыцарь */
        box-shadow: 0 4px 20px rgba(0, 140, 255, 0.4); 
    }
    50% { 
        border-color: rgba(255, 255, 0, 0.4); /* Маг */
        box-shadow: 0 4px 20px rgba(255, 255, 0, 0.4); 
    }
}

@keyframes rangerSummonerBorder {
    0%, 100% { 
        border-color: rgba(0, 255, 0, 0.4); /* Рейнджер */
        box-shadow: 0 4px 20px rgba(0, 255, 0, 0.4); 
    }
    50% { 
        border-color: rgba(255, 0, 0, 0.4); /* Призыватель */
        box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4); 
    }
}

@keyframes mageSummonerBorder {
    0%, 100% { 
        border-color: rgba(255, 255, 0, 0.4); /* Маг */
        box-shadow: 0 4px 20px rgba(255, 255, 0, 0.4); 
    }
    50% { 
        border-color: rgba(255, 0, 0, 0.4); /* Призыватель */
        box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4); 
    }
}

@keyframes tripleKnightRangerMageBorder {
    0%, 100% { 
        border-color: rgba(0, 140, 255, 0.4); /* Рыцарь */
        box-shadow: 0 4px 20px rgba(0, 140, 255, 0.4); 
    }
    33% { 
        border-color: rgba(0, 255, 0, 0.4); /* Рейнджер */
        box-shadow: 0 4px 20px rgba(0, 255, 0, 0.4); 
    }
    66% { 
        border-color: rgba(255, 255, 0, 0.4); /* Маг */
        box-shadow: 0 4px 20px rgba(255, 255, 0, 0.4); 
    }
}

@keyframes tripleKnightRangerSummonerBorder {
    0%, 100% { 
        border-color: rgba(0, 140, 255, 0.4); /* Рыцарь */
        box-shadow: 0 4px 20px rgba(0, 140, 255, 0.4); 
    }
    33% { 
        border-color: rgba(0, 255, 0, 0.4); /* Рейнджер */
        box-shadow: 0 4px 20px rgba(0, 255, 0, 0.4); 
    }
    66% { 
        border-color: rgba(255, 0, 0, 0.4); /* Призыватель */
        box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4); 
    }
}

@keyframes tripleRangerMageSummonerBorder {
    0%, 100% { 
        border-color: rgba(0, 255, 0, 0.4); /* Рейнджер */
        box-shadow: 0 4px 20px rgba(0, 255, 0, 0.4); 
    }
    33% { 
        border-color: rgba(255, 255, 0, 0.4); /* Маг */
        box-shadow: 0 4px 20px rgba(255, 255, 0, 0.4); 
    }
    66% { 
        border-color: rgba(255, 0, 0, 0.4); /* Призыватель */
        box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4); 
    }
}

@keyframes quadKnightRangerMageAssassinBorder {
    0%, 100% { 
        border-color: rgba(0, 140, 255, 0.4); /* Рыцарь */
        box-shadow: 0 4px 20px rgba(0, 140, 255, 0.4); 
    }
    25% { 
        border-color: rgba(0, 255, 0, 0.4); /* Рейнджер */
        box-shadow: 0 4px 20px rgba(0, 255, 0, 0.4); 
    }
    50% { 
        border-color: rgba(255, 255, 0, 0.4); /* Маг */
        box-shadow: 0 4px 20px rgba(255, 255, 0, 0.4); 
    }
    75% { 
        border-color: rgba(255, 255, 255, 0.4); /* Ассасин */
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4); 
    }
}

@keyframes quadKnightRangerMageSummonerBorder {
    0%, 100% { 
        border-color: rgba(0, 140, 255, 0.4); /* Рыцарь */
        box-shadow: 0 4px 20px rgba(0, 140, 255, 0.4); 
    }
    25% { 
        border-color: rgba(0, 255, 0, 0.4); /* Рейнджер */
        box-shadow: 0 4px 20px rgba(0, 255, 0, 0.4); 
    }
    50% { 
        border-color: rgba(255, 255, 0, 0.4); /* Маг */
        box-shadow: 0 4px 20px rgba(255, 255, 0, 0.4); 
    }
    75% { 
        border-color: rgba(255, 0, 0, 0.4); /* Призыватель */
        box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4); 
    }
}

@keyframes allClassesBorder {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(0, 140, 255, 0.4); /* Рыцарь */
        border-color: rgba(0, 140, 255, 0.4); 
    }
    20% { 
        box-shadow: 0 4px 20px rgba(0, 255, 0, 0.4); /* Рейнджер */
        border-color: rgba(0, 255, 0, 0.4); 
    }
    40% { 
        box-shadow: 0 4px 20px rgba(255, 255, 0, 0.4); /* Маг */
        border-color: rgba(255, 255, 0, 0.4); 
    }
    60% { 
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4); /* Ассасин */
        border-color: rgba(255, 255, 255, 0.4); 
    }
    80% { 
        box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4); /* Призыватель */
        border-color: rgba(255, 0, 0, 0.4); 
    }
}

/* Оптимизация Atropos анимаций */
.atropos-rotate {
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1) !important;
    transform: rotateX(var(--rotateX)) rotateY(var(--rotateY)) scale(1.02) !important;
    --rotateX: clamp(-2deg, var(--raw-rotateX), 2deg);
    --rotateY: clamp(-2deg, var(--raw-rotateY), 2deg);
}

.atropos-scale {
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1) !important;
    transform: scale(1) !important;
}




/* Улучшаем качество текста при трансформациях */
.merchant-card-title,
.monster-card-title,
.item-card-title,
.item-card-description,
.stat-badge {
    transform: translateZ(0);
    backface-visibility: hidden;
}


/* Изображение предмета */
.monster-image,
.item-card-image {
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 0;
    margin: 0 auto;
    
    transform: translateZ(20px);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Плавная анимация появления с мягкими эффектами */
@keyframes iconFadeIn {
    0% {
        opacity: 0;
        filter: blur(100px);
        transform: scale(0.6) translateY(20px);
    }
    60% {
        opacity: 0.6;
        filter: blur(30px);
        transform: scale(0.9) translateY(10px);
    }
    100% {
        opacity: 1;
        filter: none;
        transform: scale(1) translateY(0);
    }
}

/* Анимация RGB (не используется) */
@keyframes rgbGlow {
    0% { box-shadow: 0 0 20px rgba(0, 140, 255, 0.3); }
    33% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.3); }
    66% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.3); }
    100% { box-shadow: 0 0 20px rgba(0, 140, 255, 0.3); }
}


/* Задержка для каждой иконки */
.atropos:nth-child(n) .monster-image,
.atropos:nth-child(n) .item-card-image {
    animation-delay: calc(var(--index) * 0.1s + 0.2s);
}

/* Классовые подсветки */
/* Одиночные классы */
.item-card-image[data-class="0"] { /* Нет класса */
    box-shadow: 0 4px 20px rgba(128, 128, 128, 0.4);
}

.item-card-image[data-class="1"] { /* Рыцарь */
    box-shadow: 0 4px 18px rgba(0, 140, 255, 0.4);
}

.item-card-image[data-class="2"] { /* Рейнджер */
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.4);
}

.item-card-image[data-class="4"] { /* Маг */
    box-shadow: 0 4px 20px rgba(255, 255, 0, 0.4);
}

.item-card-image[data-class="8"] { /* Ассасин */
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4),
                0 4px 40px rgba(0, 0, 0, 0.6);
}

.item-card-image[data-class="16"] { /* Призыватель */
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

/* Двойные комбинации */
.item-card-image[data-class="5"] { /* Рыцарь + Маг */
    animation: knightMageShadow 3s linear infinite;
}

.item-card-image[data-class="18"] { /* Рейнджер + Призыватель */
    animation: rangerSummonerShadow 3s linear infinite;
}

.item-card-image[data-class="20"] { /* Маг + Призыватель */
    animation: mageSummonerShadow 3s linear infinite;
}

/* Тройные комбинации */
.item-card-image[data-class="7"] { /* Рыцарь + Рейнджер + Маг */
    animation: tripleKnightRangerMageShadow 4s linear infinite;
}

.item-card-image[data-class="19"] { /* Рыцарь + Рейнджер + Призыватель */
    animation: tripleKnightRangerSummonerShadow 4s linear infinite;
}

.item-card-image[data-class="22"] { /* Рейнджер + Маг + Призыватель */
    animation: tripleRangerMageSummonerShadow 4s linear infinite;
}

/* Четверные комбинации */
.item-card-image[data-class="15"] { /* Рыцарь + Рейнджер + Маг + Ассасин */
    animation: quadKnightRangerMageAssassinShadow 5s linear infinite;
}

.item-card-image[data-class="23"] { /* Рыцарь + Рейнджер + Маг + Призыватель */
    animation: quadKnightRangerMageSummonerShadow 5s linear infinite;
}

/* Все классы */
.item-card-image[data-class="255"] { /* Все классы */
    animation: allClassesShadow 6s linear infinite;
}

/* Анимации для комбинаций */
@keyframes knightMageShadow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 140, 255, 0.4); } /* Рыцарь */
    50% { box-shadow: 0 4px 20px rgba(255, 255, 0, 0.4); } /* Маг */
}

@keyframes rangerSummonerShadow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 255, 0, 0.4); } /* Рейнджер */
    50% { box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4); } /* Призыватель */
}

@keyframes mageSummonerShadow {
    0%, 100% { box-shadow: 0 4px 20px rgba(255, 255, 0, 0.4); } /* Маг */
    50% { box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4); } /* Призыватель */
}

@keyframes tripleKnightRangerMageShadow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 140, 255, 0.4); } /* Рыцарь */
    33% { box-shadow: 0 4px 20px rgba(0, 255, 0, 0.4); } /* Рейнджер */
    66% { box-shadow: 0 4px 20px rgba(255, 255, 0, 0.4); } /* Маг */
}

@keyframes tripleKnightRangerSummonerShadow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 140, 255, 0.4); } /* Рыцарь */
    33% { box-shadow: 0 4px 20px rgba(0, 255, 0, 0.4); } /* Рейнджер */
    66% { box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4); } /* Призыватель */
}

@keyframes tripleRangerMageSummonerShadow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 255, 0, 0.4); } /* Рейнджер */
    33% { box-shadow: 0 4px 20px rgba(255, 255, 0, 0.4); } /* Маг */
    66% { box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4); } /* Призыватель */
}

@keyframes quadKnightRangerMageAssassinShadow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 140, 255, 0.4); } /* Рыцарь */
    25% { box-shadow: 0 4px 20px rgba(0, 255, 0, 0.4); } /* Рейнджер */
    50% { box-shadow: 0 4px 20px rgba(255, 255, 0, 0.4); } /* Маг */
    75% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6); } /* Ассасин */
}

@keyframes quadKnightRangerMageSummonerShadow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 140, 255, 0.4); } /* Рыцарь */
    25% { box-shadow: 0 4px 20px rgba(0, 255, 0, 0.4); } /* Рейнджер */
    50% { box-shadow: 0 4px 20px rgba(255, 255, 0, 0.4); } /* Маг */
    75% { box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4); } /* Призыватель */
}

@keyframes allClassesShadow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 140, 255, 0.4); } /* Рыцарь */
    20% { box-shadow: 0 4px 20px rgba(0, 255, 0, 0.4); } /* Рейнджер */
    40% { box-shadow: 0 4px 20px rgba(255, 255, 0, 0.4); } /* Маг */
    60% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6); } /* Ассасин */
    80% { box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4); } /* Призыватель */
}


.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.monster-image img,
.item-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



.item-card-id {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15), rgba(74, 158, 255, 0.1));
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2c5282;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(74, 158, 255, 0.2);
}

/* Название предмета */
.merchant-card-title,
.monster-card-title,
.item-card-title {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    z-index: 10;
    font-size: 1.2rem;
}

/* Характеристики */
.stat-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

/* Общие стили для stat-badge */
.stat-badge {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4a5568;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.1, 0, 0.2, 1);
}

.stat-badge:hover {
    transform: translateY(-2px);
    background: rgba(0, 153, 255, 0.25);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Темная тема */
.dark-theme .stat-badge {
    background: rgba(30, 31, 35, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

.dark-theme .stat-badge:hover {
    transform: translateY(-2px);
    background: rgba(74, 158, 255, 0.15);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Описание предмета */
.item-card-description {
    margin-top: 1.5rem;
    padding-bottom: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4a5568;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    pointer-events: auto;
    
}


.item-card-description.visible {
    opacity: 1;
    transform: translateY(0);
}


.atropos-active .item-card-description {
    opacity: 1;
    transform: translateY(0);
}

/* Темная тема */
.dark-theme .atropos-inner {
    background: linear-gradient(145deg, rgba(40, 41, 45, 0.97), rgba(30, 31, 35, 0.95));
    border-color: rgba(144, 202, 249, 0.2);
}

.dark-theme .item-card-id {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
    color: #bbdefb;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .merchant-card-title a,
.dark-theme .monster-card-title a,
.dark-theme .item-card-title a {
    color: #90caf9;
}

.dark-theme .stat-badge {
    background: rgba(255, 255, 255, 0.05);
    color: #90caf9;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .item-card-description {
    color: #b0bec5;
    border-color: rgba(255, 255, 255, 0.1);
}


/* Glassmorphism 2.0 с variable blur */
.dark-theme .atropos-inner {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.03)
    );
    backdrop-filter: blur(var(--blur-strength, 10px));
    -webkit-backdrop-filter: blur(var(--blur-strength, 10px));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-theme .atropos-inner {
    background: linear-gradient(145deg, 
        rgba(0, 0, 0, 0.05), 
        rgba(0, 0, 0, 0.02)
    );
    backdrop-filter: blur(var(--blur-strength, 10px));
    -webkit-backdrop-filter: blur(var(--blur-strength, 10px));
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.05),
        0 4px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}




/* Claymorphism для бейджей */
.stat-badge {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 
        -8px -8px 16px rgba(255, 255, 255, 0.5),
        8px 8px 16px rgba(0, 0, 0, 0.03),
        inset 2px 2px 4px rgba(255, 255, 255, 0.5),
        inset -2px -2px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-badge:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        -12px -12px 20px rgba(255, 255, 255, 0.5),
        12px 12px 20px rgba(0, 0, 0, 0.03),
        inset 3px 3px 6px rgba(255, 255, 255, 0.5),
        inset -3px -3px 6px rgba(0, 0, 0, 0.03);
}

/* Современный градиент с шумом */
.atropos-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.1;
    mix-blend-mode: overlay;
    pointer-events: none;
    border-radius: inherit;
}



/* описания */
.item-card-description {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 158, 255, 0.3) transparent;
}

/* Динамический текст */
.merchant-card-title a,
.monster-card-title a,
.item-card-title a {
    background-image: linear-gradient(
        90deg,
        var(--text-color) 0%,
        var(--text-color) 50%,
        var(--accent-color) 50%,
        var(--accent-color) 100%
    );
    background-size: 200% 100%;
    background-position: 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    color:rgb(30, 30, 30);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    pointer-events: all;
}

.merchant-card-title a:hover,
.monster-card-title a:hover,
.item-card-title a:hover {
    background-position: 0%;
    background: rgba(74, 158, 255, 0.05); /* Снижена прозрачность */
    color: #2c5282;
}


/* Темная тема */
.dark-theme .merchant-card-title a:hover,
.dark-theme .monster-card-title a:hover,
.dark-theme .item-card-title a:hover {
    background-position: 0%;
    background: rgba(74, 158, 255, 0.1); /* Снижена прозрачность */
    color: #2c5282;
}



/* Анимированные границы */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate {
    to {
        --angle: 360deg;
    }
}

/* Эффекты свечения для классов */
.atropos-inner {
    position: relative;
    overflow: visible !important;
}

.atropos-inner::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    animation: rotate 6s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.atropos-inner:hover::after {
    opacity: 1;
}

/* Индивидуальные стили для каждого класса */
/* Нет класса */
.atropos-inner[data-class="0"] {
    box-shadow: 0 8px 32px rgba(128, 128, 128, 0.1);
}
.atropos-inner[data-class="0"]:hover {
    box-shadow: 0 8px 32px rgba(128, 128, 128, 0.3);
}
.atropos-inner[data-class="0"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(128, 128, 128, 0),
        rgba(128, 128, 128, 0.2) 25%,
        rgba(128, 128, 128, 0.4) 50%,
        rgba(128, 128, 128, 0.2) 75%,
        rgba(128, 128, 128, 0)
    );
}

/* Рыцарь */
.atropos-inner[data-class="1"] {
    box-shadow: 0 8px 32px rgba(0, 140, 255, 0.1);
}
.atropos-inner[data-class="1"]:hover {
    box-shadow: 0 8px 32px rgba(0, 140, 255, 0.3);
}
.atropos-inner[data-class="1"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(0, 140, 255, 0),
        rgba(0, 140, 255, 0.2) 25%,
        rgba(0, 140, 255, 0.4) 50%,
        rgba(0, 140, 255, 0.2) 75%,
        rgba(0, 140, 255, 0)
    );
}

/* Рейнджер */
.atropos-inner[data-class="2"] {
    box-shadow: 0 8px 32px rgba(0, 255, 0, 0.1);
}
.atropos-inner[data-class="2"]:hover {
    box-shadow: 0 8px 32px rgba(0, 255, 0, 0.3);
}
.atropos-inner[data-class="2"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(0, 255, 0, 0),
        rgba(0, 255, 0, 0.2) 25%,
        rgba(0, 255, 0, 0.4) 50%,
        rgba(0, 255, 0, 0.2) 75%,
        rgba(0, 255, 0, 0)
    );
}

/* Маг */
.atropos-inner[data-class="4"] {
    box-shadow: 0 8px 32px rgba(255, 255, 0, 0.1);
}
.atropos-inner[data-class="4"]:hover {
    box-shadow: 0 8px 32px rgba(255, 255, 0, 0.3);
}
.atropos-inner[data-class="4"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 255, 0, 0),
        rgba(255, 255, 0, 0.2) 25%,
        rgba(255, 255, 0, 0.4) 50%,
        rgba(255, 255, 0, 0.2) 75%,
        rgba(255, 255, 0, 0)
    );
}

/* Ассасин */
.atropos-inner[data-class="8"] {
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}
.atropos-inner[data-class="8"]:hover {
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.3);
}
.atropos-inner[data-class="8"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.2) 25%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        rgba(255, 255, 255, 0)
    );
}

/* Призыватель */
.atropos-inner[data-class="16"] {
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.1);
}
.atropos-inner[data-class="16"]:hover {
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.3);
}
.atropos-inner[data-class="16"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 0, 0, 0),
        rgba(255, 0, 0, 0.2) 25%,
        rgba(255, 0, 0, 0.4) 50%,
        rgba(255, 0, 0, 0.2) 75%,
        rgba(255, 0, 0, 0)
    );
}

/* Комбинированные классы */
/* Например, Рыцарь + Маг (5) */
.atropos-inner[data-class="5"] {
    box-shadow: 0 8px 32px rgba(0, 140, 255, 0.1);
}
.atropos-inner[data-class="5"]:hover {
    box-shadow: 0 8px 32px rgba(0, 140, 255, 0.3);
}
.atropos-inner[data-class="5"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(0, 140, 255, 0),
        rgba(255, 255, 0, 0.2) 25%,
        rgba(0, 140, 255, 0.4) 50%,
        rgba(255, 255, 0, 0.2) 75%,
        rgba(0, 140, 255, 0)
    );
}

/* Рыцарь, Рейнджер, Маг (7) */
.atropos-inner[data-class="7"] {
    box-shadow: 0 8px 32px rgba(0, 140, 255, 0.1);
}
.atropos-inner[data-class="7"]:hover {
    box-shadow: 0 8px 32px rgba(0, 140, 255, 0.3);
}
.atropos-inner[data-class="7"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(0, 140, 255, 0),
        rgba(0, 255, 0, 0.2) 33%,
        rgba(255, 255, 0, 0.4) 66%,
        rgba(0, 140, 255, 0.2) 100%
    );
}

/* Рыцарь, Рейнджер, Маг, Ассасин (15) */
.atropos-inner[data-class="15"] {
    box-shadow: 0 8px 32px rgba(0, 140, 255, 0.1);
}
.atropos-inner[data-class="15"]:hover {
    box-shadow: 0 8px 32px rgba(0, 140, 255, 0.3);
}
.atropos-inner[data-class="15"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(0, 140, 255, 0),
        rgba(0, 255, 0, 0.2) 25%,
        rgba(255, 255, 0, 0.3) 50%,
        rgba(255, 255, 255, 0.4) 75%,
        rgba(0, 140, 255, 0)
    );
}

/* Рейнджер, Призыватель (18) */
.atropos-inner[data-class="18"] {
    box-shadow: 0 8px 32px rgba(0, 255, 0, 0.1);
}
.atropos-inner[data-class="18"]:hover {
    box-shadow: 0 8px 32px rgba(0, 255, 0, 0.3);
}
.atropos-inner[data-class="18"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(0, 255, 0, 0),
        rgba(255, 0, 0, 0.2) 50%,
        rgba(0, 255, 0, 0.4) 100%
    );
}

/* Рыцарь, Рейнджер, Призыватель (19) */
.atropos-inner[data-class="19"] {
    box-shadow: 0 8px 32px rgba(0, 140, 255, 0.1);
}
.atropos-inner[data-class="19"]:hover {
    box-shadow: 0 8px 32px rgba(0, 140, 255, 0.3);
}
.atropos-inner[data-class="19"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(0, 140, 255, 0),
        rgba(0, 255, 0, 0.2) 33%,
        rgba(255, 0, 0, 0.4) 66%,
        rgba(0, 140, 255, 0)
    );
}

/* Маг, Призыватель (20) */
.atropos-inner[data-class="20"] {
    box-shadow: 0 8px 32px rgba(255, 255, 0, 0.1);
}
.atropos-inner[data-class="20"]:hover {
    box-shadow: 0 8px 32px rgba(255, 255, 0, 0.3);
}
.atropos-inner[data-class="20"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 255, 0, 0),
        rgba(255, 0, 0, 0.2) 50%,
        rgba(255, 255, 0, 0.4) 100%
    );
}

/* Рейнджер, Маг, Призыватель (22) */
.atropos-inner[data-class="22"] {
    box-shadow: 0 8px 32px rgba(0, 255, 0, 0.1);
}
.atropos-inner[data-class="22"]:hover {
    box-shadow: 0 8px 32px rgba(0, 255, 0, 0.3);
}
.atropos-inner[data-class="22"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(0, 255, 0, 0),
        rgba(255, 255, 0, 0.2) 33%,
        rgba(255, 0, 0, 0.4) 66%,
        rgba(0, 255, 0, 0)
    );
}

/* Рыцарь, Рейнджер, Маг, Призыватель (23) */
.atropos-inner[data-class="23"] {
    box-shadow: 0 8px 32px rgba(0, 140, 255, 0.1);
}
.atropos-inner[data-class="23"]:hover {
    box-shadow: 0 8px 32px rgba(0, 140, 255, 0.3);
}
.atropos-inner[data-class="23"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(0, 140, 255, 0),
        rgba(0, 255, 0, 0.2) 25%,
        rgba(255, 255, 0, 0.3) 50%,
        rgba(255, 0, 0, 0.4) 75%,
        rgba(0, 140, 255, 0)
    );
}

/* Все классы (255) */
.atropos-inner[data-class="255"] {
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}
.atropos-inner[data-class="255"]:hover {
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.3);
}
.atropos-inner[data-class="255"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(0, 140, 255, 0),
        rgba(0, 255, 0, 0.2) 20%,
        rgba(255, 255, 0, 0.3) 40%,
        rgba(255, 255, 255, 0.4) 60%,
        rgba(255, 0, 0, 0.3) 80%,
        rgba(0, 140, 255, 0)
    );
}





/* Светлая тема */
.light-theme .atropos-inner {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(250, 250, 250, 0.9));
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Темная тема */
.dark-theme .atropos-inner {
    background: linear-gradient(145deg, rgba(40, 41, 45, 0.9), rgba(30, 31, 35, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* Обеспечиваем видимость контента во время переключения */
.atropos-inner * {
    transition: color 0.3s ease,
                background-color 0.3s ease;
}

/* Исправляем z-index для карточек во время переключения */
.atropos {
    z-index: 1;
    position: relative;
}

/* Улучшаем видимость контента в темной теме */
.dark-theme .merchant-card-title a,
.dark-theme .monster-card-title a,
.dark-theme .item-card-title a,
.dark-theme .item-card-description,
.dark-theme .stat-badge {
    color: rgba(255, 255, 255, 0.9);
}









/* ! МОНСТРЫ */
/* Monster Type Colors */

/* Grid layout одинаковый с предметами */
.monsters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1.5rem;
}

/* Monster Card Base */
.atropos-inner[data-monster-type] {
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(250, 250, 250, 0.95));
    padding: 2rem;
    border: 1px solid rgba(230, 230, 230, 0.5);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    position: relative;
    overflow: visible !important;
}

/* Monster Type-Specific Glows */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate {
    to {
        --angle: 360deg;
    }
}

.atropos-inner[data-monster-type]::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    animation: rotate 6s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.atropos-inner[data-monster-type]:hover::after {
    opacity: 1;
}

/* Monster Type-Specific Styles */
/* Базовые классы (от легких к тяжелым) */
/* A класс (1) */

.atropos-inner[data-monster-type="1"]:hover {
    box-shadow: 0 4px 20px #99FF99;
}
 .atropos-inner[data-monster-type="1"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(153, 255, 153, 0),
        rgba(204, 255, 204, 0.2) 25%,
        rgba(153, 255, 153, 0.4) 50%,
        rgba(204, 255, 204, 0.2) 75%,
        rgba(153, 255, 153, 0)
    );
 }
 .monster-image[data-monster-type="1"] {
    box-shadow: 0 4px 20px #99FF99;
 }
 
 /* B класс (2) */
 .atropos-inner[data-monster-type="2"]:hover {
    box-shadow: 0 4px 20px #99FFCC;
 }
 .atropos-inner[data-monster-type="2"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(153, 255, 204, 0),
        rgba(204, 255, 230, 0.2) 25%,
        rgba(153, 255, 204, 0.4) 50%,
        rgba(204, 255, 230, 0.2) 75%,
        rgba(153, 255, 204, 0)
    );
 }
 .monster-image[data-monster-type="2"] {
    box-shadow: 0 4px 20px #99FFCC;
 }
 
 /* C класс (3) */
 .atropos-inner[data-monster-type="3"]:hover {
    box-shadow: 0 4px 20px #99FFFF;
}
 .atropos-inner[data-monster-type="3"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(153, 255, 255, 0),
        rgba(204, 255, 255, 0.2) 25%,
        rgba(153, 255, 255, 0.4) 50%,
        rgba(204, 255, 255, 0.2) 75%,
        rgba(153, 255, 255, 0)
    );
 }
 .monster-image[data-monster-type="3"] {
    box-shadow: 0 4px 20px #99FFFF;
 }
 
 /* D класс (4) */
 .atropos-inner[data-monster-type="4"]:hover {
    box-shadow: 0 4px 20px #99CCFF;
}
 .atropos-inner[data-monster-type="4"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(153, 204, 255, 0),
        rgba(204, 230, 255, 0.2) 25%,
        rgba(153, 204, 255, 0.4) 50%,
        rgba(204, 230, 255, 0.2) 75%,
        rgba(153, 204, 255, 0)
    );
 }
 .monster-image[data-monster-type="4"] {
    box-shadow: 0 4px 20px #99CCFF;
 }

 /* E класс (5) */
 .atropos-inner[data-monster-type="5"]:hover {
    box-shadow: 0 4px 20px #9999FF;
}
 .atropos-inner[data-monster-type="5"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(153, 153, 255, 0),
        rgba(204, 204, 255, 0.2) 25%,
        rgba(153, 153, 255, 0.4) 50%,
        rgba(204, 204, 255, 0.2) 75%,
        rgba(153, 153, 255, 0)
    );
 }
 .monster-image[data-monster-type="5"] {
    box-shadow: 0 4px 20px #9999FF;
 }
 
 /* F класс (6) */
 .atropos-inner[data-monster-type="6"]:hover {
    box-shadow: 0 4px 20px #CC99FF;
}
 .atropos-inner[data-monster-type="6"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(204, 153, 255, 0),
        rgba(230, 204, 255, 0.2) 25%,
        rgba(204, 153, 255, 0.4) 50%,
        rgba(230, 204, 255, 0.2) 75%,
        rgba(204, 153, 255, 0)
    );
 }
 .monster-image[data-monster-type="6"] {
    box-shadow: 0 4px 20px #CC99FF;
 }
 
 /* G класс (7) */
 .atropos-inner[data-monster-type="7"]:hover {
    box-shadow: 0 4px 20px #FF99FF;
}
 .atropos-inner[data-monster-type="7"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 153, 255, 0),
        rgba(255, 204, 255, 0.2) 25%,
        rgba(255, 153, 255, 0.4) 50%,
        rgba(255, 204, 255, 0.2) 75%,
        rgba(255, 153, 255, 0)
    );
 }
 .monster-image[data-monster-type="7"] {
    box-shadow: 0 4px 20px #FF99FF;
 }
 
 /* H класс (8) */
 .atropos-inner[data-monster-type="8"]:hover {
    box-shadow: 0 4px 20px #FF99CC;
}
 .atropos-inner[data-monster-type="8"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 153, 204, 0),
        rgba(255, 204, 238, 0.2) 25%,
        rgba(255, 153, 204, 0.4) 50%,
        rgba(255, 204, 238, 0.2) 75%,
        rgba(255, 153, 204, 0)
    );
 }
 .monster-image[data-monster-type="8"] {
    box-shadow: 0 4px 20px #FF99CC;
 }
 
 /* I класс (9) */
 .atropos-inner[data-monster-type="9"]:hover {
    box-shadow: 0 4px 20px #FF9999;
}
 .atropos-inner[data-monster-type="9"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 153, 153, 0),
        rgba(255, 204, 204, 0.2) 25%,
        rgba(255, 153, 153, 0.4) 50%,
        rgba(255, 204, 204, 0.2) 75%,
        rgba(255, 153, 153, 0)
    );
 }
 .monster-image[data-monster-type="9"] {
    box-shadow: 0 4px 20px #FF9999;
 }
 
 /* J класс (10) */
 .atropos-inner[data-monster-type="10"]:hover {
    box-shadow: 0 4px 20px #FFCC99;
}
 .atropos-inner[data-monster-type="10"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 204, 153, 0),
        rgba(255, 230, 204, 0.2) 25%,
        rgba(255, 204, 153, 0.4) 50%,
        rgba(255, 230, 204, 0.2) 75%,
        rgba(255, 204, 153, 0)
    );
 }
 .monster-image[data-monster-type="10"] {
    box-shadow: 0 4px 20px #FFCC99;
 }
 
 /* K класс (11) */
 .atropos-inner[data-monster-type="11"]:hover {
    box-shadow: 0 4px 20px #FFB366;
}
 .atropos-inner[data-monster-type="11"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 179, 102, 0),
        rgba(255, 214, 153, 0.2) 25%,
        rgba(255, 179, 102, 0.4) 50%,
        rgba(255, 214, 153, 0.2) 75%,
        rgba(255, 179, 102, 0)
    );
 }
 .monster-image[data-monster-type="11"] {
    box-shadow: 0 4px 20px #FFB366;
 }
 
 /* L класс (12) */
 .atropos-inner[data-monster-type="12"]:hover {
    box-shadow: 0 4px 20px #FF9966;
}
 .atropos-inner[data-monster-type="12"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 153, 102, 0),
        rgba(255, 204, 153, 0.2) 25%,
        rgba(255, 153, 102, 0.4) 50%,
        rgba(255, 204, 153, 0.2) 75%,
        rgba(255, 153, 102, 0)
    );
 }
 .monster-image[data-monster-type="12"] {
    box-shadow: 0 4px 20px #FF9966;
 }
 
 /* M класс (13) */
 .atropos-inner[data-monster-type="13"]:hover {
    box-shadow: 0 4px 20px #FF6666;
}
 .atropos-inner[data-monster-type="13"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 102, 102, 0),
        rgba(255, 153, 153, 0.2) 25%,
        rgba(255, 102, 102, 0.4) 50%,
        rgba(255, 153, 153, 0.2) 75%,
        rgba(255, 102, 102, 0)
    );
 }
 .monster-image[data-monster-type="13"] {
    box-shadow: 0 4px 20px #FF6666;
 }
 
 /* N класс (14) */
 .atropos-inner[data-monster-type="14"]:hover {
    box-shadow: 0 4px 20px #FF3366;
}
 .atropos-inner[data-monster-type="14"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 51, 102, 0),
        rgba(255, 153, 170, 0.2) 25%,
        rgba(255, 51, 102, 0.4) 50%,
        rgba(255, 153, 170, 0.2) 75%,
        rgba(255, 51, 102, 0)
    );
 }
 .monster-image[data-monster-type="14"] {
    box-shadow: 0 4px 20px #FF3366;
 }
 
 /* O класс (15) */
 .atropos-inner[data-monster-type="15"]:hover {
    box-shadow: 0 4px 20px #FF0066;
}
 .atropos-inner[data-monster-type="15"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 0, 102, 0),
        rgba(255, 102, 170, 0.2) 25%,
        rgba(255, 0, 102, 0.4) 50%,
        rgba(255, 102, 170, 0.2) 75%,
        rgba(255, 0, 102, 0)
    );
 }
 .monster-image[data-monster-type="15"] {
    box-shadow: 0 4px 20px #FF0066;
 }
 
 /* P класс (16) */
 .atropos-inner[data-monster-type="16"]:hover {
    box-shadow: 0 4px 20px #CC0066;
}
 .atropos-inner[data-monster-type="16"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(204, 0, 102, 0),
        rgba(255, 51, 154, 0.2) 25%,
        rgba(204, 0, 102, 0.4) 50%,
        rgba(255, 51, 154, 0.2) 75%,
        rgba(204, 0, 102, 0)
    );
 }
 .monster-image[data-monster-type="16"] {
    box-shadow: 0 4px 20px #CC0066;
 }
 
 /* Q класс (17) */
 .atropos-inner[data-monster-type="17"]:hover {
    box-shadow: 0 4px 20px #990066;
}
 .atropos-inner[data-monster-type="17"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(153, 0, 102, 0),
        rgba(204, 51, 138, 0.2) 25%,
        rgba(153, 0, 102, 0.4) 50%,
        rgba(204, 51, 138, 0.2) 75%,
        rgba(153, 0, 102, 0)
    );
 }
 .monster-image[data-monster-type="17"] {
    box-shadow: 0 4px 20px #990066;
 }
 
 /* R класс (18) */
 .atropos-inner[data-monster-type="18"]:hover {
    box-shadow: 0 4px 20px #660066;
}
 .atropos-inner[data-monster-type="18"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(102, 0, 102, 0),
        rgba(153, 51, 153, 0.2) 25%,
        rgba(102, 0, 102, 0.4) 50%,
        rgba(153, 51, 153, 0.2) 75%,
        rgba(102, 0, 102, 0)
    );
 }
 .monster-image[data-monster-type="18"] {
    box-shadow: 0 4px 20px #660066;
 }
 
 /* S класс (19) */
 .atropos-inner[data-monster-type="19"]:hover {
    box-shadow: 0 4px 20px #330066;
}
 .atropos-inner[data-monster-type="19"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(51, 0, 102, 0),
        rgba(102, 51, 153, 0.2) 25%,
        rgba(51, 0, 102, 0.4) 50%,
        rgba(102, 51, 153, 0.2) 75%,
        rgba(51, 0, 102, 0)
    );
 }

 
 /* T класс (20) */
 .atropos-inner[data-monster-type="20"]:hover {
    box-shadow: 0 4px 20px #000066;
}
 .atropos-inner[data-monster-type="20"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(0, 0, 102, 0),
        rgba(51, 51, 153, 0.2) 25%,
        rgba(0, 0, 102, 0.4) 50%,
        rgba(51, 51, 153, 0.2) 75%,
        rgba(0, 0, 102, 0)
    );
 }
 .monster-image[data-monster-type="20"] {
    box-shadow: 0 4px 20px #000066;
 }
 
 /* U класс (21) */
 .atropos-inner[data-monster-type="21"]:hover {
    box-shadow: 0 4px 20px #000033;
}
 .atropos-inner[data-monster-type="21"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(0, 0, 51, 0),
        rgba(26, 26, 102, 0.2) 25%,
        rgba(0, 0, 51, 0.4) 50%,
        rgba(26, 26, 102, 0.2) 75%,
        rgba(0, 0, 51, 0)
    );
 }
 .monster-image[data-monster-type="21"] {
    box-shadow: 0 4px 20px #000033;
 }
 
 /* V класс (22) */
 .atropos-inner[data-monster-type="22"]:hover {
    box-shadow: 0 4px 20px #1A0033;
}
 .atropos-inner[data-monster-type="22"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(26, 0, 51, 0),
        rgba(51, 26, 102, 0.2) 25%,
        rgba(26, 0, 51, 0.4) 50%,
        rgba(51, 26, 102, 0.2) 75%,
        rgba(26, 0, 51, 0)
    );
 }
 .monster-image[data-monster-type="22"] {
    box-shadow: 0 4px 20px #1A0033;
 }
 
 /* W класс (24) */
 .atropos-inner[data-monster-type="24"]:hover {
    box-shadow: 0 4px 20px #330033;
}
 .atropos-inner[data-monster-type="24"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(51, 0, 51, 0),
        rgba(102, 26, 102, 0.2) 25%,
        rgba(51, 0, 51, 0.4) 50%,
        rgba(102, 26, 102, 0.2) 75%,
        rgba(51, 0, 51, 0)
    );
 }
 .monster-image[data-monster-type="24"] {
    box-shadow: 0 4px 20px #330033;
 }
 
 /* X класс (25) */
 .atropos-inner[data-monster-type="25"]:hover {
    box-shadow: 0 4px 20px #330000;
}
 .atropos-inner[data-monster-type="25"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(51, 0, 0, 0),
        rgba(102, 26, 26, 0.2) 25%,
        rgba(51, 0, 0, 0.4) 50%,
        rgba(102, 26, 26, 0.2) 75%,
        rgba(51, 0, 0, 0)
    );
 }
 .monster-image[data-monster-type="25"] {
    box-shadow: 0 4px 20px #330000;
 }
 
 /* Специальные классы */
 /* NPC (23) */
 .atropos-inner[data-monster-type="23"]:hover {
    box-shadow: 0 4px 20px #808080;
}
 .atropos-inner[data-monster-type="23"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(128, 128, 128, 0),
        rgba(166, 166, 166, 0.2) 25%,
        rgba(128, 128, 128, 0.4) 50%,
        rgba(166, 166, 166, 0.2) 75%,
        rgba(128, 128, 128, 0)
    );
 }
 .monster-image[data-monster-type="23"] {
    box-shadow: 0 4px 20px #808080;
 }
 
 /* Особый Монстр (26) */
 .atropos-inner[data-monster-type="26"]:hover {
    box-shadow: 0 4px 20px #FFD700;
}
 .atropos-inner[data-monster-type="26"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 215, 0, 0),
        rgba(255, 240, 170, 0.2) 25%,
        rgba(255, 215, 0, 0.4) 50%,
        rgba(255, 240, 170, 0.2) 75%,
        rgba(255, 215, 0, 0)
    );
 }
 .monster-image[data-monster-type="26"] {
    box-shadow: 0 4px 20px #FFD700;
 }
 
 /* Событие (27) */
 .atropos-inner[data-monster-type="27"]:hover {
    box-shadow: 0 4px 20px #00FFFF;
}
 .atropos-inner[data-monster-type="27"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(0, 255, 255, 0),
        rgba(153, 255, 255, 0.2) 25%,
        rgba(0, 255, 255, 0.4) 50%,
        rgba(153, 255, 255, 0.2) 75%,
        rgba(0, 255, 255, 0)
    );
 }
 .monster-image[data-monster-type="27"] {
    box-shadow: 0 4px 20px #00FFFF;
 }
 
 /* Именной (28) */
 .atropos-inner[data-monster-type="28"]:hover {
    box-shadow: 0 4px 20px #FF1493;
}
 .atropos-inner[data-monster-type="28"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 20, 147, 0),
        rgba(255, 105, 180, 0.2) 25%,
        rgba(255, 20, 147, 0.4) 50%,
        rgba(255, 105, 180, 0.2) 75%,
        rgba(255, 20, 147, 0)
    );
 }
 .monster-image[data-monster-type="28"] {
    box-shadow: 0 4px 20px #FF1493;
 }
 
 /* Босс (29) */
 .atropos-inner[data-monster-type="29"]:hover {
    box-shadow: 0 4px 20px #FF0000;
}
 .atropos-inner[data-monster-type="29"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 0, 0, 0),
        rgba(255, 77, 77, 0.2) 25%,
        rgba(255, 0, 0, 0.4) 50%,
        rgba(255, 77, 77, 0.2) 75%,
        rgba(255, 0, 0, 0)
    );
 }
 .monster-image[data-monster-type="29"] {
    box-shadow: 0 4px 20px #FF0000;
 }
 
 /* S альтернативный (31) */
 .atropos-inner[data-monster-type="31"]:hover {
    box-shadow: 0 4px 20px #4B0082;
}
 .atropos-inner[data-monster-type="31"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(75, 0, 130, 0),
        rgba(139, 0, 139, 0.2) 25%,
        rgba(75, 0, 130, 0.4) 50%,
        rgba(139, 0, 139, 0.2) 75%,
        rgba(75, 0, 130, 0)
    );
 }
 .monster-image[data-monster-type="31"] {
    box-shadow: 0 4px 20px #4B0082;
 }
 
 /* Налетчики (32) */
 .atropos-inner[data-monster-type="32"]:hover {
    box-shadow: 0 4px 20px #8B0000;
}
 .atropos-inner[data-monster-type="32"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(139, 0, 0, 0),
        rgba(178, 34, 34, 0.2) 25%,
        rgba(139, 0, 0, 0.4) 50%,
        rgba(178, 34, 34, 0.2) 75%,
        rgba(139, 0, 0, 0)
    );
 }
 .monster-image[data-monster-type="32"] {
    box-shadow: 0 4px 20px #8B0000;
 }
 
 /* Эпик Мобы (33) */
 .atropos-inner[data-monster-type="33"]:hover {
    box-shadow: 0 4px 20px #9400D3;
}
 .atropos-inner[data-monster-type="33"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(148, 0, 211, 0),
        rgba(186, 85, 211, 0.2) 25%,
        rgba(148, 0, 211, 0.4) 50%,
        rgba(186, 85, 211, 0.2) 75%,
        rgba(148, 0, 211, 0)
    );
 }
 .monster-image[data-monster-type="33"] {
    box-shadow: 0 4px 20px #9400D3;
 }
 
 /* Эпик Боссы (34) */
 .atropos-inner[data-monster-type="34"]:hover {
    box-shadow: 0 4px 20px #4B0082;
}
 .atropos-inner[data-monster-type="34"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(75, 0, 130, 0),
        rgba(128, 0, 128, 0.2) 25%,
        rgba(75, 0, 130, 0.4) 50%,
        rgba(128, 0, 128, 0.2) 75%,
        rgba(75, 0, 130, 0)
    );
 }
 .monster-image[data-monster-type="34"] {
    box-shadow: 0 4px 20px #4B0082;
 }
 
 /* Статуя (35) */
 .atropos-inner[data-monster-type="35"]:hover {
    box-shadow: 0 4px 20px #708090;
}
 .atropos-inner[data-monster-type="35"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(112, 128, 144, 0),
        rgba(169, 169, 169, 0.2) 25%,
        rgba(112, 128, 144, 0.4) 50%,
        rgba(169, 169, 169, 0.2) 75%,
        rgba(112, 128, 144, 0)
    );
 }
 .monster-image[data-monster-type="35"] {
    box-shadow: 0 4px 20px #708090;
 }
 
 /* Последователи (36) */
 .atropos-inner[data-monster-type="36"]:hover {
    box-shadow: 0 4px 20px #DAA520;
}
 .atropos-inner[data-monster-type="36"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(218, 165, 32, 0),
        rgba(255, 215, 0, 0.2) 25%,
        rgba(218, 165, 32, 0.4) 50%,
        rgba(255, 215, 0, 0.2) 75%,
        rgba(218, 165, 32, 0)
    );
 }
 .monster-image[data-monster-type="36"] {
    box-shadow: 0 4px 20px #DAA520;
 }
 
 /* Разъяренные Боссы (37) */
 .atropos-inner[data-monster-type="37"]:hover {
    box-shadow: 0 4px 20px #FF4500;
}
 .atropos-inner[data-monster-type="37"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 69, 0, 0),
        rgba(255, 99, 71, 0.2) 25%,
        rgba(255, 69, 0, 0.4) 50%,
        rgba(255, 99, 71, 0.2) 75%,
        rgba(255, 69, 0, 0)
    );
 }
 .monster-image[data-monster-type="37"] {
    box-shadow: 0 4px 20px #FF4500;
 }
 
 /* Падшие Боссы (38) */
 .atropos-inner[data-monster-type="38"]:hover {
    box-shadow: 0 4px 20px #800000;
}
 .atropos-inner[data-monster-type="38"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(128, 0, 0, 0),
        rgba(165, 42, 42, 0.2) 25%,
        rgba(128, 0, 0, 0.4) 50%,
        rgba(165, 42, 42, 0.2) 75%,
        rgba(128, 0, 0, 0)
    );
 }
 .monster-image[data-monster-type="38"] {
    box-shadow: 0 4px 20px #800000;
 }



/* Monster Card Components */

.card-title {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    z-index: 10;
    font-size: 1.2rem;
}

/* Monster Info Box */
.monster-info {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.monster-race,
.monster-class {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4a5568;
}

/* Stats Grid */
.stat-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4a5568;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.1, 0, 0.2, 1);
}

.stat-badge:hover {
    transform: translateY(-2px);
    background: rgba(74, 158, 255, 0.15);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Dark Theme Adjustments */
.dark-theme .atropos-inner[data-monster-type] {
    background: linear-gradient(145deg, rgba(40, 41, 45, 0.97), rgba(30, 31, 35, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .monster-info {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .monster-race,
.dark-theme .monster-class {
    color: #b0bec5;
}

.dark-theme .stat-badge {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes monsterCardAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.atropos {
    animation: monsterCardAppear 0.3s ease forwards;
}

.atropos:nth-child(n) {
    animation-delay: calc(0.05s * var(--index, 0));
}



/* Base select styles */
#classFilter {
    padding: 10px 12px;
    border-radius: 6px;
    border: 2px solid #ddd;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    appearance: none;
    background: #fff url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23444%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 12px top 50%;
    background-size: 12px auto;
}

#classFilter:hover {
    border-color: #aaa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#classFilter:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Option base styles */
#classFilter option {
    font-weight: 500;
    padding: 8px;
    background-color: #fff;
}

/* Monster type colors */
/* Базовые типы (от легких к тяжелым) */
#classFilter option[value="1"] { color: #99FF99; background-color: rgba(153, 255, 153, 0.1); }
#classFilter option[value="2"] { color: #99FFCC; background-color: rgba(153, 255, 204, 0.1); }
#classFilter option[value="3"] { color: #99FFFF; background-color: rgba(153, 255, 255, 0.1); }
#classFilter option[value="4"] { color: #99CCFF; background-color: rgba(153, 204, 255, 0.1); }
#classFilter option[value="5"] { color: #9999FF; background-color: rgba(153, 153, 255, 0.1); }
#classFilter option[value="6"] { color: #CC99FF; background-color: rgba(204, 153, 255, 0.1); }
#classFilter option[value="7"] { color: #FF99FF; background-color: rgba(255, 153, 255, 0.1); }
#classFilter option[value="8"] { color: #FF99CC; background-color: rgba(255, 153, 204, 0.1); }
#classFilter option[value="9"] { color: #FF9999; background-color: rgba(255, 153, 153, 0.1); }
#classFilter option[value="10"] { color: #FFCC99; background-color: rgba(255, 204, 153, 0.1); }
#classFilter option[value="11"] { color: #FFB366; background-color: rgba(255, 179, 102, 0.1); }
#classFilter option[value="12"] { color: #FF9966; background-color: rgba(255, 153, 102, 0.1); }
#classFilter option[value="13"] { color: #FF6666; background-color: rgba(255, 102, 102, 0.1); }
#classFilter option[value="14"] { color: #FF3366; background-color: rgba(255, 51, 102, 0.1); }
#classFilter option[value="15"] { color: #FF0066; background-color: rgba(255, 0, 102, 0.1); }
#classFilter option[value="16"] { color: #CC0066; background-color: rgba(204, 0, 102, 0.1); }
#classFilter option[value="17"] { color: #990066; background-color: rgba(153, 0, 102, 0.1); }
#classFilter option[value="18"] { color: #660066; background-color: rgba(102, 0, 102, 0.1); }
#classFilter option[value="19"] { color: #330066; background-color: rgba(51, 0, 102, 0.1); }
#classFilter option[value="20"] { color: #000066; background-color: rgba(0, 0, 102, 0.1); }
#classFilter option[value="21"] { color: #000033; background-color: rgba(0, 0, 51, 0.1); }
#classFilter option[value="22"] { color: #1A0033; background-color: rgba(26, 0, 51, 0.1); }
#classFilter option[value="23"] { color: #330033; background-color: rgba(51, 0, 51, 0.1); }
#classFilter option[value="24"] { color: #330000; background-color: rgba(51, 0, 0, 0.1); }
#classFilter option[value="25"] { color: #660000; background-color: rgba(102, 0, 0, 0.1); }

/* Специальные типы */
#classFilter option[value="26"] { color: #FFD700; background-color: rgba(255, 215, 0, 0.1); }
#classFilter option[value="27"] { color: #00FFFF; background-color: rgba(0, 255, 255, 0.1); }
#classFilter option[value="28"] { color: #FF1493; background-color: rgba(255, 20, 147, 0.1); }
#classFilter option[value="29"] { color: #FF0000; background-color: rgba(255, 0, 0, 0.1); }
#classFilter option[value="31"] { color: #4B0082; background-color: rgba(75, 0, 130, 0.1); }
#classFilter option[value="32"] { color: #8B0000; background-color: rgba(139, 0, 0, 0.1); }
#classFilter option[value="33"] { color: #9400D3; background-color: rgba(148, 0, 211, 0.1); }
#classFilter option[value="34"] { color: #4B0082; background-color: rgba(75, 0, 130, 0.1); }
#classFilter option[value="35"] { color: #708090; background-color: rgba(112, 128, 144, 0.1); }
#classFilter option[value="36"] { color: #DAA520; background-color: rgba(218, 165, 32, 0.1); }
#classFilter option[value="37"] { color: #FF4500; background-color: rgba(255, 69, 0, 0.1); }
#classFilter option[value="38"] { color: #800000; background-color: rgba(128, 0, 0, 0.1); }

/* Default option style */
#classFilter option[value=""] {
    color: inherit;
    font-weight: normal;
    background-color: transparent;
}

/* Dark theme styles */
.dark-theme #classFilter {
    background-color: #2a2a2a;
    border-color: #444;
    color: #fff;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
}

.dark-theme #classFilter:hover {
    border-color: #555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-theme #classFilter:focus {
    border-color: #666;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.dark-theme #classFilter option {
    background-color: #2a2a2a;
}

/* Enhance color visibility in dark theme */
.dark-theme #classFilter option[value]:not([value=""]) {
    filter: brightness(1.2) saturate(1.2);
}














/* ! Merchant СТИЛИ ПРОДАВЦОВ */
/* Grid layout */
.merchants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1.5rem;
}


/* Merchant Card Base */
.atropos-inner[data-merchant-type] {
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(250, 250, 250, 0.95));
    padding: 2rem;
    border: 1px solid rgba(230, 230, 230, 0.5);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    position: relative;
    overflow: visible !important;
}

/* Payment Type-Specific Glows */
.atropos-inner[data-merchant-type]::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    animation: rotate 6s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.atropos-inner[data-merchant-type]:hover::after {
    opacity: 1;
}

/* Payment Type-Specific Styles */
/* Silver */
.atropos-inner[data-merchant-type="0"]:hover {
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}
.atropos-inner[data-merchant-type="0"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 215, 0, 0),
        rgba(255, 215, 0, 0.2) 25%,
        rgba(255, 215, 0, 0.4) 50%,
        rgba(255, 215, 0, 0.2) 75%,
        rgba(255, 215, 0, 0)
    );
}
.merchant-image[data-merchant-type="0"] {
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

/* Honor Point */
.atropos-inner[data-merchant-type="1"]:hover {
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.4);
}
.atropos-inner[data-merchant-type="1"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(0, 191, 255, 0),
        rgba(0, 191, 255, 0.2) 25%,
        rgba(0, 191, 255, 0.4) 50%,
        rgba(0, 191, 255, 0.2) 75%,
        rgba(0, 191, 255, 0)
    );
}
.merchant-image[data-merchant-type="1"] {
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.4);
}

/* Chaos Points */
.atropos-inner[data-merchant-type="2"]:hover {
    box-shadow: 0 4px 20px rgba(148, 0, 211, 0.4);
}
.atropos-inner[data-merchant-type="2"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(148, 0, 211, 0),
        rgba(148, 0, 211, 0.2) 25%,
        rgba(148, 0, 211, 0.4) 50%,
        rgba(148, 0, 211, 0.2) 75%,
        rgba(148, 0, 211, 0)
    );
}
.merchant-image[data-merchant-type="2"] {
    box-shadow: 0 4px 20px rgba(148, 0, 211, 0.4);
}

/* Chaos Silver */
.atropos-inner[data-merchant-type="3"]:hover {
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.4);
}
.atropos-inner[data-merchant-type="3"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 69, 0, 0),
        rgba(255, 69, 0, 0.2) 25%,
        rgba(255, 69, 0, 0.4) 50%,
        rgba(255, 69, 0, 0.2) 75%,
        rgba(255, 69, 0, 0)
    );
}
.merchant-image[data-merchant-type="3"] {
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.4);
}

/* Merchant Card Components */
.merchant-card-id {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15), rgba(74, 158, 255, 0.1));
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2c5282;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(74, 158, 255, 0.2);
    z-index: 10;
}

.merchant-id-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.merchant-id-link:hover {
    color: #4299e1;
    text-decoration: none;
}

.dark-theme .merchant-id-link {
    color: #bbdefb;
}

.dark-theme .merchant-id-link:hover {
    color: #63b3ed;
}


/* Merchant Image */
.merchant-image {
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 0;
    margin: 0 auto;
    transform: translateZ(20px);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.merchant-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stats Display */
.stat-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4a5568;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.1, 0, 0.2, 1);
}

.stat-badge:hover {
    transform: translateY(-2px);
    background: rgba(74, 158, 255, 0.15);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Merchant Items List */
.merchant-items {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.merchant-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.merchant-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.merchant-item-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.merchant-item-info {
    flex: 1;
}

.merchant-item-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.merchant-item-price {
    font-size: 0.875rem;
    color: #718096;
}

/* Dark Theme Adjustments */
.dark-theme .merchant-card-id {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
    color: #bbdefb;
    border-color: rgba(255, 255, 255, 0.1);
}



.dark-theme .stat-badge {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .merchant-item {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .merchant-item-name {
    color: #e2e8f0;
}

.dark-theme .merchant-item-price {
    color: #a0aec0;
}

.dark-theme .atropos-inner[data-merchant-type] {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.97), rgba(40, 40, 40, 0.95));
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dark-theme .atropos-inner[data-merchant-type="0"]::after {
    background: conic-gradient(
        from var(--angle),
        rgba(255, 215, 0, 0),
        rgba(255, 215, 0, 0.1) 25%,
        rgba(255, 215, 0, 0.2) 50%,
        rgba(255, 215, 0, 0.1) 75%,
        rgba(255, 215, 0, 0)
    );
}


.dark-theme .merchant-image {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.dark-theme .merchant-items {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.merchant-animate-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .merchants-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .merchant-items {
        grid-template-columns: 1fr;
    }

    .stat-badges {
        grid-template-columns: 1fr;
    }

    .merchant-card-id {
        font-size: 0.8rem;
        padding: 0.25rem 0.75rem;
    }
}

/* Filter Styles */
.merchant-filter-group {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.merchant-filter-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.merchant-filter-select {
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background-color: white;
    color: #4a5568;
    transition: all 0.3s ease;
}

.merchant-filter-select:hover {
    border-color: #cbd5e0;
}

.merchant-filter-select:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    outline: none;
}

/* Price Range Input Styles */
.price-range-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-range-input {
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.price-range-input:hover {
    border-color: #cbd5e0;
}

.price-range-input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    outline: none;
}

/* Search Bar Styles */
.merchant-search {
    position: relative;
    margin-bottom: 1.5rem;
}

.merchant-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: white;
    transition: all 0.3s ease;
}

.merchant-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

/* Payment Type Indicators */
.payment-type-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.payment-gold {
    background-color: rgba(255, 215, 0, 0.1);
    color: #b7791f;
}

.payment-honorpoint {
    background-color: rgba(0, 191, 255, 0.1);
    color: #2b6cb0;
}

.payment-chaospoint {
    background-color: rgba(148, 0, 211, 0.1);
    color: #6b46c1;
}

.payment-chaosssilver {
    background-color: rgba(255, 69, 0, 0.1);
    color: #c53030;
}