.levels {
    margin-bottom: 40px;
}

.levels__block, .levels__block-mobile {
    width: calc(100% - 34px);
    height: 300px;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--bage);
    border-radius: 20px;
    border: 2px solid var(--dark-grey);
    margin-bottom: 10px;
}

.levels__block-skip {
    z-index: 401;
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 25px;
    border-radius: 12px;
    border: 2px solid var(--black);
    transition: scale .3s ease-in-out;
}

.levels__block-skip:hover {
    scale: 1.05;
}

.levels__block-mobile {
    display: none;
    height: 552px;
}

.levels__block-row, .levels__block-row-mobile {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.level_item{
    position: relative;
}

.levels__block-row:not(:last-child) {
    margin-bottom: 44px;
}

.levels__block-row-mobile:not(:last-child) {
    margin-bottom: 84px;
}

.levels__block-level, .levels__block-level-passed {
    z-index: 399;
    cursor: pointer;
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    font-weight: normal;
    border-radius: 20px;
}

.levels__block-level-passed.violet{
    background: var(--light-violet);
    color: white;
}

.levels__block-level-passed.green{
    background: var(--dark-green);
    color: white;
}

.violet {
    color: var(--light-violet);
    border: 4px solid var(--light-violet);
}

.green {
    color: var(--dark-green);
    border: 4px solid var(--dark-green);
}

.levels__head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.levels__head-info, .numberity__head-info, .stats__head-info {
    margin: 0;
    font-size: 42px;
    font-weight: 400;
    color: var(--dark-grey);
    margin-bottom: 20px;
}

.levels__head-colors {
    display: flex;
    flex-direction: column;
}

.levels__head-colour {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.levels__head-colour:not(:last-child) {
    margin-bottom: 20px;
}

#first-marker, #second-marker {
    width: 25px;
    height: 12.5px;
    border-radius: 3px;
    margin-right: 12.5px;
}

#first-marker {
    background-color: var(--light-violet);
}

#second-marker {
    background-color: var(--dark-green);
}

.levels__head-colour-text {
    font-size: 17px;
    color: var(--dark-grey);
}

.levels__block-lines {
    width: 0;
    height: 0;
}

#rect-1 {
    position: absolute;
    top: 77px;
    left: 143px;
    width: calc(25% - 127.5px);
    height: 4px;
    background-color: var(--light-violet);
}

#rect-1-mobile {
    position: absolute;
    width: 4px;
    height: 18px;
    top: 143px;
    left: 77px;
    background-color: var(--light-violet);
}

#circ-1 {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 55px;
    left: calc(25% + 15.5px);
    border: 4px solid var(--light-violet);
    border-radius: 50%
}

#circ-1-mobile {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 161px;
    left: 55px;
    border: 4px solid var(--light-violet);
    border-radius: 50%
}

#rect-2 {
    position: absolute;
    top: 103px;
    left: calc(25% + 37.5px);
    width: 4px;
    height: 124px;
    background-color: var(--light-violet);
}

#rect-2-mobile {
    position: absolute;
    width: 4px;
    height: 18px;
    top: 209px;
    left: 77px;
    background-color: var(--dark-green);
}

#circ-2 {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: 55px;
    right: calc(75% - 63.5px);
    border: 4px solid var(--dark-green);
    border-radius: 50%
}

#circ-2-mobile {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 161px;
    right: 55px;
    border: 4px solid var(--dark-green);
    border-radius: 50%
}

#rect-3 {
    position: absolute;
    bottom: 77px;
    right: calc(50% + 64px);
    width: calc(25% - 127.5px);
    height: 4px;
    background-color: var(--light-violet);
}

#rect-3-mobile {
    position: absolute;
    width: 4px;
    height: 18px;
    top: 143px;
    right: 77px;
    background-color: var(--dark-green);
}

#rect-4 {
    position: absolute;
    width: calc(25% - 127.5px);
    height: 4px;
    bottom: 77px;
    left: 143px;
    background-color: var(--dark-green);
}

#rect-4-mobile {
    position: absolute;
    width: 4px;
    height: 18px;
    top: 209px;
    right: 77px;
    background-color: var(--light-violet);
}

#rect-5 {
    position: absolute;
    width: calc(25% - 127.5px);
    height: 4px;
    top: 77px;
    right: calc(50% + 64px);
    background-color: var(--dark-green);
}

#rect-5-mobile {
    position: absolute;
    width: calc(100% - 206px);
    height: 4px;
    top: 183px;
    left: 103px;
    background-color: var(--light-violet);
}

#rect-6 {
    position: absolute;
    width: calc(25% - 127.5px);
    height: 4px;
    top: 77px;
    left: calc(50% + 64px);
    background-color: var(--dark-green);
}

#rect-6-mobile {
    position: absolute;
    width: 4px;
    height: 18px;
    bottom: 143px;
    left: 77px;
    background-color: var(--light-violet);
}

#circ-3 {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 55px;
    right: calc(25% + 15.5px);
    border: 4px solid var(--dark-green);
    border-radius: 50%
}

#circ-3-mobile {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: 161px;
    left: 55px;
    border: 4px solid var(--dark-green);
    border-radius: 50%
}

#rect-7 {
    position: absolute;
    width: calc(25% - 127.5px);
    height: 4px;
    bottom: 77px;
    right: 143px;
    background-color: var(--dark-green);
}

#rect-7-mobile {
    position: absolute;
    width: 4px;
    height: 18px;
    bottom: 209px;
    left: 77px;
    background-color: var(--dark-green);
}

#circ-4 {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: 55px;
    left: calc(75% - 63.5px);
    border: 4px solid var(--light-violet);
    border-radius: 50%
}

#circ-4-mobile {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: 161px;
    right: 55px;
    border: 4px solid var(--light-violet);
    border-radius: 50%
}

#rect-8 {
    position: absolute;
    top: 77px;
    right: 143px;
    width: calc(25% - 127.5px);
    height: 4px;
    background-color: var(--light-violet);
}

#rect-8-mobile {
    position: absolute;
    width: 4px;
    height: 18px;
    bottom: 143px;
    right: 77px;
    background-color: var(--dark-green);
}

#rect-9 {
    position: absolute;
    top: 103px;
    right: calc(25% + 37.5px);
    width: 4px;
    height: 124px;
    background-color: var(--dark-green);
}

#rect-9-mobile {
    position: absolute;
    width: 4px;
    height: 18px;
    bottom: 209px;
    right: 77px;
    background-color: var(--light-violet);
}

#rect-10 {
    position: absolute;
    bottom: 77px;
    left: calc(50% + 64px);
    width: calc(25% - 127.5px);
    height: 4px;
    background-color: var(--light-violet);
}

#rect-10-mobile {
    position: absolute;
    width: calc(100% - 206px);
    height: 4px;
    bottom: 183px;
    left: 103px;
    background-color: var(--dark-green);
}

#circ-1, #circ-2, #circ-3, #circ-4, #circ-1-mobile, #circ-2-mobile, #circ-3-mobile, #circ-4-mobile {
    cursor: pointer;
}

.violet-circ::after, .green-circ::after {
    position: absolute;
    top: calc(50% - 12.5px);
    left: calc(50% - 12.5px);
    content: "";
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color .3s ease-in-out;
}

.violet-circ:hover::after {
    background-color: var(--light-violet);
}

.green-circ:hover::after {
    background-color: var(--dark-green);
}

.levels__mention {
    font-size: 20px;
}

.stats {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 30px;
}

.stats__left {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.stats__chart {
    width: calc(100% - 14px);
    height: 270px;
    padding: 5px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border: 2px solid var(--dark-grey);
}

.stats__legends {
    width: calc(100% - 14px);
    border-left: 2px solid var(--dark-grey);
    border-right: 2px solid var(--dark-grey);
    padding: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.stats__legend {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.stats__legend-colour {
    width: 25px;
    height: 12.5px;
    border-radius: 3px;
    margin-right: 12.5px;
}

.first-legend {
    background-color: var(--light-violet);
}

.second-legend {
    background-color: var(--dark-green);
}

.stats__legend-text {
    font-size: 17px;
    color: var(--dark-grey);
}

.stats__effic {
    width: calc(100% - 24px);
    height: 60px;
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: var(--level-7);
    border-left: 2px solid var(--dark-grey);
    border-right: 2px solid var(--dark-grey);
}

.stats__effic-elem {
    color: var(--white);
    line-height: 1;
}

.stats__effic-elem:first-child {
    font-size: 35px;
    font-weight: normal;
}

.stats__effic-elem:last-child {
    font-size: 45px;
    font-weight: bold;
}

.stats__selection {
    display: flex;
    flex-direction: row;
    width: calc(100% - 4px);
    background-color: var(--light-grey);
    border: 2px solid var(--dark-grey);
    border-top: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.stats__select {
    cursor: pointer;
    width: 50%;
    height: 40px;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    transition: opacity .3s ease-in-out;
}

.stats__select:first-child {
    border-bottom-left-radius: 20px;
}

.stats__select:last-child {
    border-bottom-right-radius: 20px;
}

.stats__select-arrow {
    fill: var(--dark-grey);
    transform: rotate(90deg);
    margin-right: 10px;
    transition: scale .3s ease-in-out;
}

.stats__select:hover .stats__select-arrow {
    scale: 1.2;
}

.stats__select:hover {
    opacity: 0.7;
}

.stats__select-info {
    color: var(--dark-grey);
    font-size: 20px;
    line-height: 1;
    font-weight: normal;
    margin-left: 10px;
}

.stats__select:first-child::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 0;
    width: 2px;
    height: 40px;
    background-color: var(--dark-grey);
}

.stats__rate {
    margin-bottom: 40px;
}

.stats__rates, .exp-rates {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.stats__num-rates, .exp-num-rates {
    cursor: pointer;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-right: 5px;
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    color: var(--level-7);
    background-image: url(../img/svg/level-7.svg);
    background-repeat: no-repeat;
    background-size: 80px 80px;
    transition: opacity .3s ease-in-out;
}

.stats__name-rates, .exp-name-rates {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: var(--level-7);
}

.stats__num-rates:hover {
    opacity: 0.7;
}

.stats__table, .numberity__table {
    width: 100%;
    border: 2px solid var(--dark-grey);
    border-collapse: collapse;
    text-align: center;
    vertical-align: middle;
    margin-bottom: 0;
}

td, th {
    height: 70px;
    border: 2px solid var(--dark-grey);
    text-align: center;
    vertical-align: middle;
    font-size: 18px;
    line-height: 1;
}

.numberity {
    margin-bottom: 15px;
    overflow-x: auto;
    max-width: 100%;
}

.numberity__table {
    min-width: 1200px;
}

.numberity__table-heading {
    font-size: 28px;
}

.numberity__green, .numberity__violet {
    font-size: 23px;
}

.numberity__green {
    color: var(--dark-green);
}

.numberity__violet {
    color: var(--light-violet);
}

.numbinfo {
    margin-bottom: 60px;
}

.numbinfo__mention {
    font-size: 18px;
}

.modal-fact {
    z-index: 9999;
    position: fixed;
    width: 50%;
    height: 50%;
    top: calc(25% - 20px);
    left: calc(25% - 20px);
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background-color: var(--white);
}

.fact-heading {
    font-size: 30px;
    font-weight: bold;
    margin: 0;
    margin-bottom: 20px;
    line-height: 1;
}

.gem-heading {
    font-size: 30px;
    font-weight: bold;
    margin: 0;
    margin-bottom: 60px;
    line-height: 1;
}

.gem-blocks {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gem-block {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.gem-block:not(:last-child) {
    margin-bottom: 45px;
}

.gem-num {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-right: 30px;
}

.gem-img {
    width: 50px;
    height: 50px;
    margin-right: 7px;
}

.gem-span {
    font-size: 35px;
    font-weight: 700;
}

.gem-buy {
    cursor: pointer;
    padding: 5px 7px;
    border: 3px solid var(--dark-grey);
    font-size: 25px;
    background-color: transparent;
    color: var(--dark-grey);
    border-radius: 10px;
    transition: border .3s ease-in-out, color .3s ease-in-out;
}

.gem-buy:hover {
    border: 3px solid var(--dark-green);
    color: var(--dark-green);
}

.gem-cost {
    font-weight: bold;
}

.fact-body {
    font-size: 20px;
    font-weight: normal;
    margin: 0;
    padding-left: 15px;
    border-left: 4px solid var(--dark-grey);
}

.modal-gem {
    z-index: 9999;
    position: fixed;
    width: 50%;
    height: 60%;
    top: calc(20% - 20px);
    left: calc(25% - 20px);
    flex-direction: column;
    padding: 20px;
    background-color: var(--white);
    overflow-y: scroll;
}

.modal-skip {
    z-index: 9999;
    position: fixed;
    width: 290px;
    height: 250px;
    top: calc(50% - 140px);
    left: calc(50% - 160px);
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: var(--white);
    overflow-y: scroll;
}

.skip-heading {
    text-align: center;
    font-size: 35px;
    font-weight: bold;
    margin: 0;
    margin-bottom: 20px;
    line-height: 1;
}

.skip-info {
    margin-top: 0;
    font-size: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.skip-cryst {
    width: 33px;
    height: 33px;
    margin-left: 5px;
}

.skip-btns {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.skip-skip, .skip-back {
    padding: 5px 7px;
    font-size: 20px;
    color: var(--dark-grey);
    border: 2px solid var(--dark-grey);
    border-radius: 10px;
    background-color: transparent;
    transition: color .3s ease-in-out, border .3s ease-in-out;
}

.skip-skip {
    margin-right: 15px;
}

.skip-skip:hover {
    color: var(--dark-green);
    border: 2px solid var(--dark-green);
}

.skip-back:hover {
    color: var(--red);
    border: 2px solid var(--red);
}

.modal-name {
    z-index: 9999;
    position: fixed;
    width: 320px;
    height: 310px;
    padding: 25px 10px;
    top: calc(50% - 175px);
    left: calc(50% - 170px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.name-heading {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.name-signed {
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 3.5px solid var(--dark-grey);
    font-size: 35px;
    font-weight: 400;
    line-height: 1;
    margin-right: 7px;
}

.name-nameblock {
    display: flex;
    flex-direction: column;

}

.name-btnblock{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.btns-exit{
    background: darkred !important;
    color: white !important;
    border: 1px solid transparent !important;
}

.name-name {
    font-size: 25px;
    line-height: 1;
    margin: 0;
}

.name-forbid {
    margin-top: 7px;
    font-size: 15px;
    color: var(--red);
    text-decoration: underline;
    text-decoration-color: var(--red);
}

.name-exp {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.name-exp-1 {
    font-size: 20px;
    margin-right: 10px;
    text-align: center;
}

.name-exp-2 {
    font-size: 30px;
    font-weight: bold;
    border: 2px solid var(--level-7);
    color: var(--level-7);
    padding: 5px;
    border-radius: 10px;
}

.name-btn, .confirm-btn, .link-button {
    background-color: transparent;
    border: 2px solid var(--red);
    text-align: center;
    color: var(--red);
    padding: 7px 10px;
    font-size: 22px;
    border-radius: 10px;
    transition: background-color .3s ease-in-out, color .3s ease-in-out;
}

.name-btn:hover, .confirm-btn:hover {
    background-color: var(--red);
    color: var(--white);
}

.modal-exp {
    z-index: 9999;
    position: fixed;
    width: 450px;
    height: 300px;
    padding: 10px;
    top: calc(50% - 160px);
    left: calc(50% - 235px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.exp-exp {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.exp-exp-1 {
    font-size: 24px;
    margin-right: 10px;
    text-align: center;
}

.exp-exp-2 {
    font-size: 29px;
    font-weight: bold;
    border: 2px solid var(--level-7);
    color: var(--level-7);
    padding: 5px;
    border-radius: 10px;
    margin-right: 7px;
}

.exp-exp-3 {
    font-size: 29px;
    font-weight: bold;
    padding: 5px;
    border-radius: 10px;
}

.exp-text {
    font-size: 18px;
    text-align: center;
}

.exp-und {
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: var(--level-7);
}

#overlay-modal-fact, #overlay-modal-gem, #overlay-modal-skip, #overlay-modal-name, #overlay-modal-exp, #overlay-modal-save-card {
    position: fixed;
    z-index: 996;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    opacity: 0.7;
}

#overlay-modal-confirm {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    opacity: 0.7;
}

.modal-confirm {
    z-index: 10001;
    position: fixed;
    width: 290px;
    height: 300px;
    padding: 25px 15px;
    top: calc(50% - 175px);
    left: calc(50% - 160px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.confirm-info {
    font-size: 18px;
    margin: 0;
    text-align: center;
}

.confirm-btn:not(:last-child) {
    margin-right: 7px;
}

.modal-fact-close {
    cursor: pointer;
    position: absolute;
    top: -4px;
    right: 10px;
    width: 30px;
    height: 30px;
}

.modal-fact-close:hover {
    transform: scale(1.1);
    transition: transform .4s ease-in-out;
}

.modal-fact-close:not(:hover) {
    transform: scale(1);
    transition: transform .4s ease-in-out;
}

.modal-save-card {
    z-index: 9999;
    position: fixed;
    width: 400px;
    min-height: 280px;
    top: calc(50% - 140px);
    left: calc(50% - 200px);
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    background-color: var(--white);
    border-radius: 15px;
}

.save-card-heading {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.save-card-info {
    text-align: center;
    font-size: 16px;
    margin: 0 0 20px 0;
    color: var(--dark-grey);
}

.save-card-checkbox {
    width: 100%;
    margin-bottom: 25px;
}

.save-card-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
}

.save-card-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.save-card-btns {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}

.save-card-confirm, .save-card-cancel {
    cursor: pointer;
    padding: 10px 25px;
    border: 3px solid var(--dark-grey);
    font-size: 18px;
    background-color: transparent;
    color: var(--dark-grey);
    border-radius: 10px;
    transition: border .3s ease-in-out, color .3s ease-in-out, background-color .3s ease-in-out;
}

.save-card-confirm:hover {
    border: 3px solid var(--dark-green);
    color: var(--white);
    background-color: var(--dark-green);
}

.save-card-cancel:hover {
    border: 3px solid var(--dark-grey);
    color: var(--white);
    background-color: var(--dark-grey);
}

.save-card-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 840px) {
    .modal-gem {
        height: 80%;
        top: calc(10% - 20px);
    }

    .gem-heading {
        margin-bottom: 20px;
    }

    .gem-block {
        flex-direction: column;
    }

    .gem-num {
        margin-bottom: 15px;
    }

    .modal-save-card {
        width: 90%;
        left: 5%;
    }
}

@media (max-width: 768px) {
    .levels__block {
        display: none;
    }

    .levels__block-mobile {
        display: flex;
    }

    .modal-fact {
        height: 80%;
        top: calc(10% - 20px);
    }
}

@media (max-width: 640px) {
    .levels__head {
        display: flex;
        flex-direction: column;
    }

    .levels__head-colours {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .levels__head-colour:not(:last-child) {
        margin-bottom: 0;
    }

    .modal-fact {
        width: 80%;
        left: calc(10% - 20px);
    }

    .modal-gem {
        width: 80%;
        left: calc(10% - 20px);
    }
}

@media (max-width: 530px) {
    .levels__head-colours {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .levels__head-colour:not(:last-child) {
        margin-bottom: 20px;
    }

    .stats__effic {
        flex-direction: column;
        align-items: center;
        height: 90px;
    }

    .stats__effic-elem:first-child {
        font-size: 30px;
        margin-bottom: 15px;
    }

    .stats__effic-elem:last-child {
        font-size: 40px;
    }

    .modal-exp {
        width: 300px;
        height: 400px;
        padding: 10px;
        top: calc(50% - 200px);
        left: calc(50% - 160px);
    }

    .exp-exp-1 {
        font-size: 18px;
    }

    .exp-exp-2, .exp-exp-3 {
        font-size: 23px;
    }
}


.name-titleblock{
    width: 100%;
    display: grid;
    grid-template-columns: 50px calc(100% - 50px);
    gap: 10px;
    box-sizing: border-box;
    padding: 0 10px;
}


/* Баннер без премиума */
.premium-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Баннер с истёкшим премиумом */
.premium-expired {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.2);
}

.banner-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.banner-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.banner-text {
    color: white;
    flex: 1;
}

.banner-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.banner-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.banner-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.btn-primary:hover {
    background: white;
    transform: translateY(-1px);
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Демонстрационный контейнер */
.demo-container {
    max-width: 1200px;
    margin: 0 auto;
}

.demo-section {
    margin-bottom: 30px;
}

.demo-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
    .premium-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .banner-actions {
        width: 100%;
        justify-content: center;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Иконки SVG */
.icon-warning {
    fill: currentColor;
}

.icon-crown {
    fill: currentColor;
}

.icon-info {
    fill: currentColor;
}

.buied-circ{
    display: flex;
    justify-content: center;
    align-items: center;
}

.buied-circ img{
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.buied-circ::after{
    background: transparent !important;
}

/* Payments Section */
.payments-section {
    max-width: 1200px;
    margin: 0 auto 40px;
}

.payment-card-section {
    margin-bottom: 50px;
}

.payment-card-block {
    width: calc(100% - 34px);
    padding: 20px;
    background-color: var(--bage);
    border-radius: 20px;
    border: 2px solid var(--dark-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-card-empty {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.no-card-text {
    font-size: 20px;
    color: var(--dark-grey);
    margin-bottom: 20px;
}

.payment-card-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.card-icon {
    flex-shrink: 0;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-number {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-grey);
    letter-spacing: 2px;
}

.card-meta {
    font-size: 16px;
    color: var(--dark-grey);
    opacity: 0.7;
}

.btn-card-action {
    padding: 12px 24px;
    border-radius: 12px;
    border: 2px solid var(--dark-grey);
    background-color: transparent;
    color: var(--dark-grey);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-card-action:hover {
    transform: scale(1.05);
}

.btn-link {
    border-color: var(--dark-green);
    color: var(--dark-green);
}

.btn-link:hover {
    background-color: var(--dark-green);
    color: white;
}

.btn-unlink {
    border-color: var(--red);
    color: var(--red);
}

.btn-unlink:hover {
    background-color: var(--red);
    color: white;
}

/* Transactions Section */
.transactions-section {
    margin-bottom: 40px;
}

.transactions-table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    border: 2px solid var(--dark-grey);
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    margin: 0;
}

.transactions-table thead {
    background-color: var(--light-grey);
}

.transactions-table th {
    padding: 18px 15px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-grey);
    border-bottom: 2px solid var(--dark-grey);
}

.transactions-table td {
    padding: 18px 15px;
    font-size: 16px;
    color: var(--dark-grey);
    border-bottom: 1px solid var(--light-grey);
}

.transaction-row:last-child td {
    border-bottom: none;
}

.transaction-row:hover {
    background-color: var(--bage);
}

.transaction-date {
    font-size: 14px;
    color: var(--dark-grey);
    opacity: 0.8;
    white-space: nowrap;
}

.transaction-description {
    font-weight: 500;
}

.transaction-amount {
    font-weight: 700;
    font-size: 18px;
}

.amount-positive {
    color: var(--dark-green);
}

.amount-negative {
    color: var(--red);
}

.transaction-balance {
    font-weight: 600;
}

.type-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.type-payment {
    background-color: #e3f2fd;
    color: #1976d2;
}

.type-refund {
    background-color: #fff3e0;
    color: #f57c00;
}

.type-subscription {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.type-bonus {
    background-color: #e8f5e9;
    color: #388e3c;
}

.no-transactions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background-color: var(--bage);
    border-radius: 20px;
    border: 2px solid var(--dark-grey);
}

.no-transactions svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-transactions p {
    font-size: 20px;
    color: var(--dark-grey);
    margin: 0;
}

.pagination-wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* Modal Payment */
.modal-payment {
    z-index: 9999;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background-color: var(--white);
    border-radius: 20px;
    border: 2px solid var(--dark-grey);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.modal-payment-content {
    position: relative;
}

.modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--dark-grey);
    background-color: var(--white);
    color: var(--dark-grey);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--red);
    color: white;
    border-color: var(--red);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--dark-grey);
    border-radius: 10px;
    font-size: 16px;
    color: var(--dark-grey);
    background-color: var(--white);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--dark-green);
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background-color: var(--dark-green);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #2c7a4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 142, 60, 0.3);
}

#overlay-modal-payment,
#overlay-result-modal {
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    opacity: 0.7;
}

/* Result Modal */
#result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.result-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.2;
}

.result-message {
    font-size: 16px;
    color: var(--dark-grey);
    margin-bottom: 25px;
    line-height: 1.5;
    max-width: 400px;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-card-block {
        flex-direction: column;
        gap: 20px;
    }

    .payment-card-info {
        flex-direction: column;
        text-align: center;
    }

    .card-number {
        font-size: 20px;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .transaction-amount {
        font-size: 16px;
    }

    .type-badge {
        padding: 4px 8px;
        font-size: 11px;
    }

    .modal-payment {
        width: 95%;
        padding: 20px;
    }

    .modal-title {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .card-number {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .transactions-table {
        font-size: 12px;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 10px 8px;
    }

    .no-card-text {
        font-size: 18px;
    }
}
