.page.price {
    padding: 3.75rem 0;
    font-family: var(--font-family-primary)
}

.price_top {
    text-align: center;
    padding: .75rem 2rem;
    background: var(--color-text-primary);
    color: var(--black-100);
    border-radius: .5rem;
    position: relative;
    overflow: hidden
}

.price_top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,rgb(255 255 255 / .1) 0%,rgb(255 255 255 / .05) 100%);
    pointer-events: none
}

.price_top h1 {
    font-family: var(--font-family-tertiary);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.0375rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1
}

.price_top p {
    font-size: 1.125rem;
    line-height: 1.5;
    opacity: .9;
    margin: 0 0 2rem 0;
    position: relative;
    z-index: 1
}

.price-info {
    padding: 2rem 0;
    display: flex;
    position: relative;
    z-index: 1;
    justify-content: space-between;
    align-content: flex-end
}

.info-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: .75rem;
    padding: 1rem 1.5rem;
    background: rgb(255 255 255 / .1);
    border-radius: .5rem;
    -webkit-transition: all var(--transition-base);
    -o-transition: all var(--transition-base);
    transition: all var(--transition-base);
    -webkit-backdrop-filter: blur(.25rem);
    backdrop-filter: blur(.25rem)
}

.info-item:hover {
    background: rgb(255 255 255 / .15);
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px)
}

.info-right {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center
}

.info-left {
    display: flex;
    align-items: center;
    gap: .4rem
}

.info-item i {
    font-size: 1.25rem;
    opacity: .9
}

.info-label {
    font-weight: 600;
    opacity: .9;
    font-size: .9375rem
}

.info-value {
    font-weight: 700;
    font-size: 1.125rem
}

.price-export-buttons {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white-100);
    border-radius: .5rem;
    border: .0625rem solid var(--color-border)
}

.price-export-buttons .export-title {
    font-family: var(--font-family-tertiary);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem
}

#export-buttons-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap
}

#export-buttons-container .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem 1.5rem;
    border-radius: .5rem;
    font-family: var(--font-family-tertiary);
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    text-decoration: none
}

#export-buttons-container .btn-success {
    background: #28a745;
    color: #fff
}

#export-buttons-container .btn-success:hover {
    background: #218838;
    transform: translateY(-1px)
}

#export-buttons-container .btn-info {
    background: #17a2b8;
    color: #fff
}

#export-buttons-container .btn-info:hover {
    background: #138496;
    transform: translateY(-1px)
}

#export-buttons-container .btn-primary {
    background: var(--color-border);
    color: #fff
}

#export-buttons-container .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px)
}

.table-wrap {
    background: var(--white-100);
    border-radius: .5rem;
    overflow-x: scroll;
    border: .0625rem solid var(--color-border);
    color: #000
}

.dataTables_filter {
    display: none
}

/* Табы прайса */
.price-tabs {
    margin-top: 24px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.price-tabs .nav-link {
    cursor: pointer;
    border: none;
    border-bottom: 2px solid transparent;
    color: #777;
    padding: 8px 16px;
    font-weight: 500;
    transition: color .15s ease,border-color .15s ease,background-color .15s ease
}

.price-tabs .nav-item {
    margin: 0;
}

.price-tabs .nav-link:hover {
    color: #000;
    background-color: #f8f9fa
}

.price-tabs .nav-link.active {
    color: #fff;
    border-bottom-color: #007bff;
    background-color: #007bff
}

@media (max-width: 767.98px) {
    .price-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
    }

    .price-tabs .nav-link {
        width: 100%;
        text-align: left;
        padding: 10px 14px;
        border-radius: .25rem .25rem 0 0;
    }
}

.price-tabs-content .tab-pane {
    display: none
}

.price-tabs-content .tab-pane.active {
    display: block
}

/* Общие стили для таблиц прайса */
#minersTable,
#containersTable,
#racksTable,
#gpusTable {
    margin: 0!important;
    width: 100%;
    border-collapse: collapse
}

#minersTable thead th,
#containersTable thead th,
#racksTable thead th,
#gpusTable thead th {
    background: var(--color-text-primary);
    font-family: var(--font-family-tertiary);
    font-weight: 700;
    font-size: .9375rem;
    padding: 1rem;
    text-align: center;
    border: none;
    text-transform: uppercase;
    letter-spacing: .025rem
}

#minersTable thead th:first-child,
#containersTable thead th:first-child,
#racksTable thead th:first-child,
#gpusTable thead th:first-child {
    text-align: left
}

#minersTable thead th:last-child,
#containersTable thead th:last-child,
#racksTable thead th:last-child,
#gpusTable thead th:last-child {
    width: 120px;
    min-width: 120px
}

#minersTable tbody td,
#containersTable tbody td,
#racksTable tbody td,
#gpusTable tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: .1625rem solid #070809;
    font-size: .9375rem;
    line-height: 1.4;
    font-family: var(--font-family-tertiary)
}

#minersTable tbody tr,
#containersTable tbody tr,
#racksTable tbody tr,
#gpusTable tbody tr {
    -webkit-transition: all var(--transition-base);
    -o-transition: all var(--transition-base);
    transition: all var(--transition-base)
}

#minersTable tbody tr:hover,
#containersTable tbody tr:hover,
#racksTable tbody tr:hover,
#gpusTable tbody tr:hover {
    background-color: #0000001f
}

/* Цены всегда в одну строку и визуально выделены */
#minersTable td:nth-child(4),
#minersTable td:nth-child(5),
#containersTable td:nth-child(4),
#containersTable td:nth-child(5),
#racksTable td:nth-child(3),
#racksTable td:nth-child(4),
#gpusTable td:nth-child(3),
#gpusTable td:nth-child(4) {
    white-space: nowrap;
    font-weight: 700;
    font-family: var(--font-family-tertiary)
}

/* Стили для анимации загрузки */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: .25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: .2em
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg)
    }
}

/* Стили для кнопок в состоянии загрузки */
.price-table__action-btn.loading {
    opacity: .8;
    cursor: not-allowed
}

.price-table__action-btn.loading .spinner-border {
    color: #fff;
    width: 18px;
    height: 18px;
    border-width: 2px
}

/* Исправление выравнивания для таблицы контейнеров */
#containersTable {
    table-layout: auto!important
}

#containersTable thead th,
#containersTable tbody td {
    vertical-align: middle
}

#containersTable_wrapper {
    overflow-x: visible
}


.btn-cart {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border: none;
    border-radius: .375rem;
    background: var(--color-accent);
    color: var(--white-100);
    font-family: var(--font-family-tertiary);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all var(--transition-base);
    -o-transition: all var(--transition-base);
    transition: all var(--transition-base);
    min-width: 100px
}

.btn-cart:hover {
    background: var(--black-100);
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
    -webkit-box-shadow: 0 .25rem .75rem rgb(0 0 0 / .15);
    box-shadow: 0 .25rem .75rem rgb(0 0 0 / .15)
}

.btn-cart:active {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0)
}

.btn-cart.in-cart {
    background: #dc3545;
    color: var(--white-100);
    pointer-events: auto
}

.btn-cart.in-cart:hover {
    background: #c82333;
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
    -webkit-box-shadow: 0 .25rem .75rem rgb(220 53 69 / .25);
    box-shadow: 0 .25rem .75rem rgb(220 53 69 / .25)
}

.btn-cart.in-cart .btn-text {
    display: inline
}

.btn-cart.in-cart::after {
    content: none
}

.btn-cart i {
    font-size: 1rem
}

.badge-warning {
    background: #070809;
    color: #fff;
    padding: 5px 10px;
    font-size: .7rem
}

.product-name strong {
    font-weight: 400;
    font-family: var(--font-family-tertiary)
}

.product-name .text-muted {
    color: var(--color-text-secondary);
    font-style: italic;
    font-size: .875rem
}

#minersTable tbody td a,
#minersTable tbody td .price-table__product-name,
#containersTable tbody td a,
#containersTable tbody td .price-table__product-name {
    text-decoration: none;
    color: inherit;
    display: flex;
    -webkit-transition: all var(--transition-base);
    -o-transition: all var(--transition-base);
    transition: all var(--transition-base);
    font-weight: 600;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    font-family: var(--font-family-tertiary)
}

#minersTable tbody td a strong {
    font-family: sans-serif;
    letter-spacing: .4px
}

#minersTable tbody td a:hover {
    color: var(--color-accent);
    text-decoration: none
}

.label {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: .375rem .75rem;
    border: .0625rem solid var(--color-border);
    background-color: var(--white-10);
    border-radius: .25rem;
    font-weight: 600;
    font-size: .75rem;
    letter-spacing: .025rem;
    text-transform: uppercase;
    color: var(--color-text-primary)
}

.label--warning {
    background-color: #ffc107;
    color: #212529;
    border-color: #ffc107
}

#minersTable td.text-right {
    text-align: right;
    font-weight: 600;
    font-family: var(--font-family-tertiary)
}

#minersTable td:nth-child(4) {
    font-family: var(--font-family-tertiary);
    font-weight: 600;
    letter-spacing: .2px
}

#minersTable td:nth-child(5) {
    font-family: var(--font-family-tertiary);
    font-weight: 600;
    letter-spacing: .2px
}

.top-miner {
    border-left: .25rem solid #ff8f00;
    position: relative
}

.top-star {
    color: gold;
    margin-right: .5rem;
    -webkit-animation: sparkle 2s ease-in-out infinite;
    animation: sparkle 2s ease-in-out infinite
}

@-webkit-keyframes sparkle {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .7
    }
}

@keyframes sparkle {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .7
    }
}

.dataTables_wrapper {
    font-family: var(--font-family-primary)
}

.dataTables_length,.dataTables_filter,.dataTables_info,.dataTables_paginate {
    font-size: .9375rem
}

.dataTables_length label,.dataTables_filter label {
    font-weight: 600;
    margin-bottom: .5rem
}

.dataTables_filter input {
    border: .0625rem solid var(--color-border);
    border-radius: .5rem;
    padding: .75rem 1rem;
    font-size: .9375rem;
    -webkit-transition: all var(--transition-base);
    -o-transition: all var(--transition-base);
    transition: all var(--transition-base);
    background: var(--white-100)
}

.dataTables_filter input:focus {
    border-color: var(--color-accent);
    outline: none;
    -webkit-box-shadow: 0 0 0 .125rem rgb(0 123 255 / .25);
    box-shadow: 0 0 0 .125rem rgb(0 123 255 / .25)
}

.dataTables_info {
    padding: 1rem
}

.dataTables_paginate {
    margin-top: 1.5rem
}

.dataTables_paginate .paginate_button {
    padding: .5rem 1rem;
    margin: 0 .25rem;
    border: .0625rem solid var(--color-border);
    border-radius: .5rem;
    background: var(--white-100);
    color: var(--color-text-primary);
    font-weight: 600;
    -webkit-transition: all var(--transition-base);
    -o-transition: all var(--transition-base);
    transition: all var(--transition-base);
    text-decoration: none
}

.dataTables_paginate .paginate_button:hover {
    background: var(--color-text-primary);
    color: var(--white-100);
    border-color: var(--color-text-primary)
}

.dataTables_paginate .paginate_button.current {
    background: var(--color-text-primary);
    color: var(--white-100);
    border-color: var(--color-text-primary)
}

.dataTables_paginate .paginate_button.disabled {
    opacity: .5;
    cursor: not-allowed
}

.dataTables_paginate .paginate_button.disabled:hover {
    background: var(--white-100);
    color: var(--color-text-primary);
    border-color: var(--color-border)
}

#minersTable.loading {
    opacity: .6;
    position: relative
}

#minersTable.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    border: .25rem solid var(--color-border);
    border-top: .25rem solid var(--color-text-primary);
    border-radius: 50%;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%)
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: translate(-50%,-50%) rotate(0deg)
    }

    100% {
        -webkit-transform: translate(-50%,-50%) rotate(360deg)
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%,-50%) rotate(0deg)
    }

    100% {
        transform: translate(-50%,-50%) rotate(360deg)
    }
}

@media (max-width: 1199px) {
    .price_top h1 {
        font-size:2.5rem
    }

    .price_top {
        padding: 3rem 1.5rem
    }
}

@media (max-width: 767px) {
    .page.price {
        padding:2rem 0
    }

    .price_top {
        padding: 2rem 1rem;
        margin-bottom: 2rem
    }

    .price_top h1 {
        font-size: 2rem
    }

    .price-info .row {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column
    }

    .info-item {
        margin-bottom: .75rem;
        padding: .75rem 1rem
    }

    .price-export-buttons {
        padding: 1rem;
        margin-bottom: 1.5rem
    }

    #export-buttons-container {
        gap: .75rem;
        flex-wrap: nowrap
    }

    .price-info {
        flex-direction: column
    }

    .info-right {
        flex-direction: column;
        margin-top: .8rem
    }

    .info-left {
        justify-content: center
    }

    #export-buttons-container .btn {
        width: 100%;
        justify-content: center
    }

    .export-buttons {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: .75rem
    }

    .dataTables_wrapper {
        font-size: .875rem
    }

    .dataTables_filter input {
        width: 100%;
        margin-bottom: 1rem
    }

    #minersTable thead th,#minersTable tbody td {
        padding: .75rem .5rem;
        font-size: .875rem
    }

    .btn-cart {
        padding: .375rem .75rem;
        font-size: .8125rem;
        min-width: 85px
    }

    .btn-cart .btn-text {
        display: none
    }

    .btn-cart::after {
        content: ""
    }
}

@media (max-width: 575px) {
    .price_top {
        padding:1.5rem .75rem
    }

    .price_top h1 {
        font-size: 1.75rem
    }

    .price-export-buttons {
        padding: .75rem;
        margin-bottom: 1rem
    }

    .price-export-buttons .export-title {
        font-size: 1rem;
        margin-bottom: .75rem
    }

    #export-buttons-container .btn {
        height: 2.5rem;
        font-size: .875rem;
        padding: 0 1rem
    }

    #minersTable {
        font-size: .8125rem
    }

    #minersTable thead th,#minersTable tbody td {
        padding: .5rem .25rem;
        font-size: .8125rem;
        min-width: 8rem
    }

    #minersTable thead th:last-child {
        width: 80px;
        min-width: 80px
    }

    .btn-cart {
        padding: .25rem .5rem;
        font-size: .75rem;
        min-width: 70px
    }

    .label {
        font-size: .6875rem;
        padding: .25rem .5rem
    }
}

.text-center {
    text-align: center
}

.text-right {
    text-align: right
}

.text-muted {
    color: var(--color-text-secondary)
}

@media (hover: hover) {
    .export-buttons .button--primary:hover {
        background:var(--color-accent);
        -webkit-transform: translateY(-1px);
        -ms-transform: translateY(-1px);
        transform: translateY(-1px)
    }

    .export-buttons .button--secondary:hover {
        background: var(--color-border);
        border-color: var(--color-text-primary)
    }
}

@media (hover: none) {
    .export-buttons .button--primary:active {
        background:var(--color-accent)
    }

    .export-buttons .button--secondary:active {
        background: var(--color-border);
        border-color: var(--color-text-primary)
    }
}

.export-buttons {
    margin-bottom: 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 1rem;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap
}

.export-buttons .button {
    --btn-height: 3.4375rem;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: .5rem;
    height: var(--btn-height);
    padding: 0 1.25rem;
    border-radius: .5rem;
    font-family: var(--font-family-tertiary);
    font-size: .9375rem;
    font-weight: 700;
    line-height: var(--btn-height);
    cursor: pointer;
    border: none;
    -webkit-transition: all var(--transition-base);
    -o-transition: all var(--transition-base);
    transition: all var(--transition-base);
    text-decoration: none
}

.export-buttons .button--primary {
    background: var(--color-text-primary);
    color: var(--white-100)
}

.export-buttons .button--secondary {
    background: #fff0;
    border: .0625rem solid var(--color-border);
    background: var(--white-10);
    color: var(--color-text-primary)
}

.export-buttons .button i {
    font-size: 1rem
}

.flex-right {
    display: flex;
    justify-content: end
}
