:root {
    color-scheme: dark;
    color: #f5f7ff;
    background: #090d22;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(113, 81, 255, 0.18), transparent 25%),
                radial-gradient(circle at 80% 10%, rgba(255, 82, 193, 0.2), transparent 22%),
                linear-gradient(180deg, #090d22 0%, #040611 100%);
    color: #f5f7ff;
      --sb-track-color: #232e33;
    --sb-thumb-color: #8f63ff;
    --sb-size: 9px;
}

    body::-webkit-scrollbar {
    width: var(--sb-size);
    }

    body::-webkit-scrollbar-track {
    background: var(--sb-track-color);
    border-radius: 10px;
    }

    body::-webkit-scrollbar-thumb {
    background: var(--sb-thumb-color);
    border-radius: 10px;
    }

    @supports not selector(::-webkit-scrollbar) {
    body {
        scrollbar-color: var(--sb-thumb-color)
                        var(--sb-track-color);
    }
    }

a {
    color: inherit;
    text-decoration: none;
}

.page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 24px 48px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    min-width: 0;
}

.page.admin-page-shell {
    max-width: 1760px !important;
    overflow-x: hidden;
}

.page > main {
    flex: 1 1 auto;
}

.hidden {
    display: none !important;
}

.toast-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2000;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: auto;
}

.toast {
    padding: 14px 16px;
    border-radius: 16px;
    color: #edf1ff;
    background: rgba(15, 20, 45, 0.94);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
    font-weight: 600;
    line-height: 1.35;
    transform: translateY(12px);
    opacity: 0;
    animation: toastIn 0.22s ease forwards;
    pointer-events: auto;
}

.toast.success {
    border-color: rgba(70, 220, 137, 0.55);
    box-shadow: 0 18px 44px rgba(35, 177, 93, 0.22);
}

.toast.error {
    border-color: rgba(255, 89, 116, 0.65);
    box-shadow: 0 18px 44px rgba(255, 89, 116, 0.2);
}

@keyframes toastIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0 14px;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 24px;
    font-size: 0.95rem;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer .logo {
    font-size: 0.95rem;
}

.footer.footer--enhanced {
    align-items: flex-start;
    gap: 22px;
}

.footer--enhanced .footer-left {
    display: grid;
    gap: 10px;
    align-items: start;
}

.footer--enhanced .footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 14px;
    margin-left: auto;
    min-width: 0;
}

.footer--enhanced .footer-right .footer-freekassa {
    width: auto;
    max-width: min(260px, 100%);
    min-height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.footer--enhanced .footer-right .footer-freekassa a {
    display: block;
}

.footer--enhanced .footer-right .footer-freekassa img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.footer-email {
    color: #c9d6ff;
    text-decoration: none;
}

.footer-email:hover {
    color: #ffffff;
}

.footer-description {
    margin: 0;
    color: #a6b5d9;
    max-width: 760px;
}

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.footer-social-link {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.footer-social-link img {
    width: 26px;
    height: 26px;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.footer-legal-column {
    display: grid;
    grid-auto-flow: row;
    gap: 10px;
    width: min(340px, 100%);
    justify-items: end;
}

.footer-legal-column > a {
    display: block;
    width: 100%;
    text-align: right;
    color: #c9d6ff;
    font-size: 0.88rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-legal-column > a:hover {
    color: #ffffff;
}

.footer-links a {
    color: #c9d6ff;
    font-size: 0.88rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copyright {
    margin: 0;
    color: #92a2ca;
    font-size: 0.84rem;
}

.admin-panel {
    padding: 24px;
    display: grid;
    gap: 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 32px;
    width: 100%;
    min-height: auto;
    place-items: stretch;
    max-width: 100%;
    justify-self: stretch;
    overflow-x: hidden;
    min-width: 0;
}

.admin-panel::before {
    display: none;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-tab {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #c7cee5;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-tab.active {
    background: linear-gradient(135deg, rgba(141, 101, 255, 0.28), rgba(255, 63, 242, 0.22));
    border-color: rgba(141, 101, 255, 0.6);
    color: #ffffff;
}

.admin-panel-body {
    display: grid;
    gap: 24px;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.moderation-diff-block {
    margin-top: 10px;
}

.moderation-json-field {
    width: 100%;
    margin: 6px 0 0;
    padding: 12px 14px;
    max-height: 220px;
    min-height: 96px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #edf1ff;
    resize: none;
    font: 500 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    white-space: pre;
    overflow: auto;
    scrollbar-width: none;
}

.moderation-json-field::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.moderation-actions {
    margin-top: 12px;
    gap: 8px;
}

.product-page.admin-product-page {
    grid-template-columns: 1fr;
    width: 100%;
}

.admin-product-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-product-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    gap: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.admin-product-card .product-preview {
    height: 200px;
    min-height: 200px;
    aspect-ratio: auto;
    background: linear-gradient(180deg, rgba(141, 101, 255, 0.5), rgba(141, 101, 255, 0.16));
    border-radius: 0;
    border: 0;
}

.admin-site-user-card .product-preview {
    height: 52px;
    min-height: 52px;
    background: linear-gradient(180deg, rgba(141, 101, 255, 0.55), rgba(141, 101, 255, 0.16));
}

.admin-product-card .product-preview img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.admin-product-card .product-card-body {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.admin-product-card .product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.admin-product-card .product-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.admin-product-card label textarea,
.admin-product-card textarea,
.admin-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.admin-product-card input,
.admin-product-card select,
.admin-product-card textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #edf1ff;
    padding: 12px 14px;
    outline: none;
}

.admin-product-card textarea {
    min-height: 100px;
    resize: vertical !important;
}

.admin-product-description-textarea {
    min-height: 180px;
    line-height: 1.6;
    resize: vertical !important;
}

.admin-product-card .form-path-preview {
    margin-top: 0;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.payment-form input,
.payment-form textarea,
.payment-form select {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #f5f7ff;
    padding: 14px 16px;
    margin-bottom: 18px;
    font: inherit;
}

.admin-form select,
.admin-product-card select,
.payment-form select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #c7d0ff 50%),
        linear-gradient(135deg, #c7d0ff 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 16px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

.cabinet-field-label select,
.admin-site-user-card select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #c7d0ff 50%),
        linear-gradient(135deg, #c7d0ff 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 16px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

.cabinet-field-label select option,
.admin-site-user-card select option {
    background: #14182f;
    color: #f5f7ff;
}

.admin-form select option,
.admin-product-card select option,
.payment-form select option {
    background: #14182f;
    color: #f5f7ff;
}

.admin-category-list {
    display: grid;
    gap: 12px;
}

.admin-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.admin-category-name-input {
    flex: 1;
    min-width: 180px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #edf1ff;
    padding: 10px 12px;
    outline: none;
}

.admin-form label,
.payment-form label,
.review-submit-form label {
    display: block;
    margin-bottom: 8px;
    color: #c7d0ff;
    font-weight: 600;
}

.form-path-preview {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.12);
    margin-bottom: 18px;
    color: #e6eaf8;
    font-size: 0.95rem;
}

.admin-list {
    display: grid;
    gap: 18px;
    margin-top: 16px;
}

.admin-category-group {
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-category-group h4 {
    margin: 0 0 14px;
    color: #f5f7ff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-item-grid,
.admin-product-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.admin-product-grid--management {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    width: 100%;
}

.admin-item-grid--management {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-item {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: grid;
    gap: 14px;
}

.admin-item-row {
    display: grid;
    gap: 14px;
}

.admin-thumb {
    width: 100%;
    height: 200px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(124,93,255,0.24), rgba(4,7,30,0.95));
    background-size: cover;
    background-position: center;
}

.admin-actions,
.admin-item-actions,
.admin-transaction-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.admin-action-button,
.admin-item-actions button,
.admin-transaction-actions button {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #f5f7ff;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.admin-action-button.danger,
.admin-item-actions button.danger,
.admin-transaction-actions button.danger {
    background: rgba(255, 102, 102, 0.14);
    border-color: rgba(255, 102, 102, 0.3);
}

.admin-action-button:hover,
.admin-item-actions button:hover,
.admin-transaction-actions button:hover {
    background: rgba(141, 101, 255, 0.22);
    transform: translateY(-1px);
}

/* Позитивные действия подсвечиваем зелёным только для нужных кнопок (класс success). */
.admin-action-button.success:hover,
.admin-item-actions button.success:hover,
.admin-transaction-actions button.success:hover {
    background: rgba(115, 201, 146, 0.16);
    border-color: rgba(115, 201, 146, 0.32);
}

/* Негативные действия (удалить/выйти) подсвечиваем красным. */
.ghost-button.danger,
.cta-button.danger,
.buy-button.danger,
button[data-action="site-logout"],
a[data-action="site-logout"] {
    background: rgba(255, 102, 102, 0.14);
    border-color: rgba(255, 102, 102, 0.3);
}

.ghost-button.danger:hover,
.cta-button.danger:hover,
.buy-button.danger:hover,
button[data-action="site-logout"]:hover,
a[data-action="site-logout"]:hover {
    background: rgba(223, 102, 113, 0.18);
    border-color: rgba(223, 102, 113, 0.36);
}

.moderation-approve-btn,
.moderation-reject-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    animation: none;
}

.moderation-approve-btn:hover {
    background: rgba(115, 201, 146, 0.16);
    border-color: rgba(115, 201, 146, 0.32);
}

.moderation-reject-btn:hover {
    background: rgba(223, 102, 113, 0.16);
    border-color: rgba(223, 102, 113, 0.32);
}

/* Вкладка подтверждений: скролл в стиле сайта */
#moderationQueueMount {
    max-height: min(72vh, 980px);
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
}

#moderationQueueMount::-webkit-scrollbar {
    width: var(--sb-size);
}

#moderationQueueMount::-webkit-scrollbar-track {
    background: var(--sb-track-color);
    border-radius: 10px;
}

#moderationQueueMount::-webkit-scrollbar-thumb {
    background: var(--sb-thumb-color);
    border-radius: 10px;
}

.admin-user-detail-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.admin-user-detail-main {
    min-width: 0;
}

.admin-user-detail-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.admin-user-detail-actions .cabinet-link-home {
    font-size: 0.9rem;
    padding: 10px 14px;
}

.admin-meta,
.review-meta {
    color: #a6b5d9;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-item .admin-meta code {
    word-break: break-all;
}

.payment-form-hint {
    margin: 0 0 12px;
    color: #b4c2ec;
    font-size: 0.9rem;
    line-height: 1.45;
}

.payment-paid-banner {
    display: grid;
    gap: 6px;
    margin: 0 0 16px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(52, 199, 89, 0.12);
    border: 1px solid rgba(80, 200, 120, 0.32);
    color: #c4f0d0;
    font-size: 0.95rem;
    line-height: 1.45;
}

.payment-paid-banner strong {
    color: #e8ffef;
    font-size: 1.02rem;
}

.payment-paid-inline {
    color: #9ce6b5;
    font-size: 0.95rem;
}

.cabinet-tx-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.cabinet-tx-main {
    min-width: 0;
}

.cabinet-subscription-meta {
    margin-top: 0;
    text-align: right;
}

.cabinet-subscription-meta .cabinet-renew-btn {
    margin-top: 10px;
    margin-left: auto;
}

.cabinet-tx-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.cabinet-renew-btn {
    margin-left: 0;
}

.buy-button--expiring {
    animation: shimmerPulse 1.2s ease-in-out infinite;
}

.cabinet-tx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #d8e0ff;
    text-decoration: none;
    font-size: 0.92rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cabinet-tx-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.cabinet-support-open-btn {
    display: inline-flex;
    margin-top: 0;
    margin-left: auto;
    align-self: flex-end;
}

.cabinet-support-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cabinet-deal-open-btn {
    margin-right: auto;
    align-self: flex-start;
}

.toast.subscription-alert {
    text-align: left;
    cursor: pointer;
    border-color: rgba(141, 101, 255, 0.65);
    box-shadow: 0 18px 44px rgba(143, 99, 255, 0.25);
}

.tag-pill {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    color: #f5f7ff;
    font-size: 0.85rem;
    background: rgba(141, 101, 255, 0.18);
}

.tag-pill.positive {
    background: rgba(123, 214, 136, 0.18);
}

.tag-pill.negative {
    background: rgba(255, 102, 102, 0.18);
}

.tag-pill.approved {
    background: rgba(96, 198, 250, 0.18);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.payment-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    border-radius: 999px;
    padding: 12px clamp(12px, 3vw, 16px);
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    font-size: clamp(0.82rem, 2.9vw, 1rem);
    line-height: 1.25;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.payment-pill input {
    display: none;
}

.payment-pill.active {
    background: linear-gradient(135deg, rgba(141, 101, 255, 0.3), rgba(255, 63, 242, 0.22));
    border-color: rgba(141, 101, 255, 0.6);
}

.payment-pill:hover {
    transform: translateY(-2px);
}

.payment-summary,
.checkout-summary {
    padding: 28px;
    min-height: 300px;
}

.checkout-card-fields {
    display: grid;
    gap: 16px;
}

.checkout-alt-fields {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.payment-method-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.payment-method-panel h3 {
    margin: 0;
    font-size: 1.05rem;
}

.payment-method-panel p {
    margin: 0;
    color: #c7d0ff;
}

.payment-method-meta {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.12);
}

.payment-method-meta span {
    color: #9aa6d5;
    font-size: 0.9rem;
}

.payment-status,
.review-request {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    margin-top: 18px;
}

.product-preview img {
    width: 103.5%;
    height: 103.5%;
    max-width: none;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.animate-on-load {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.7s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0 36px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.logo-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c5dff, #ff3eec);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(124, 93, 255, 0.42);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-circle:hover {
    transform: scale(1.12);
    box-shadow: 0 0 22px rgba(124, 93, 255, 0.52);
}

.logo-circle::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 0 12px rgba(255,255,255,0.16);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.95rem;
}

.nav a {
    position: relative;
    color: #c7cee5;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #bf7bff, #e31cff);
    transform: scaleX(0);
    opacity: 0;
    transform-origin: left center;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav a:hover,
.nav a.active {
    color: #ffffff;
}

.nav a:hover::after,
.nav a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.cta-button,
.hero-action,
.buy-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8d65ff, #ff3ff2);
    background-size: 200% 200%;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 24px 42px rgba(143, 99, 255, 0.18);
    transition: background-position 0.35s ease, transform 0.2s ease, box-shadow 0.2s ease;
    animation: shimmerPulse 3s ease-in-out infinite;
}

.cta-button:hover,
.hero-action:hover,
.buy-button:hover {
    background-position: 100% 0;
    transform: translateY(-1px);
    box-shadow: 0 30px 52px rgba(143, 99, 255, 0.22);
    animation: shimmerPulse 1.5s ease-in-out infinite;
}

.cta-button:active,
.hero-action:active,
.buy-button:active,
.ghost-button:active,
.admin-action-button:active,
.payment-pill:active,
.social-link:active {
    transform: translateY(1px) scale(0.985);
}

/* removed aria-busy loader */

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-contact-btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #d5ddff !important;
    padding: 9px 16px !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    animation: none !important;
}

.header-contact-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ghost-button {
    cursor: pointer;
    appearance: none;
    background: transparent;
    font-family: inherit;
}

.header-logout-btn {
    color: #d8e0ff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    padding: 9px 16px !important;
    border-radius: 999px !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-admin-btn {
    color: #d8e0ff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    padding: 9px 16px !important;
    border-radius: 999px !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.header-admin-btn:hover {
    background: rgba(143, 99, 255, 0.16);
    border-color: rgba(143, 99, 255, 0.45);
    transform: translateY(-1px);
}

.header-logout-btn:hover {
    background: rgba(255, 98, 129, 0.16);
    border-color: rgba(255, 98, 129, 0.45);
    transform: translateY(-1px);
}

.header-auth-cluster {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-register-tone {
    font-weight: 600;
    padding: 8px 2px !important;
}

.cabinet-link-home {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #d8e0ff !important;
    box-shadow: none !important;
    animation: none !important;
}

.cabinet-link-home:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

.cabinet-link-home.active {
    background: rgba(141, 101, 255, 0.24) !important;
    border-color: rgba(141, 101, 255, 0.58) !important;
    box-shadow: 0 0 14px rgba(141, 101, 255, 0.32) !important;
}

.cabinet-intro {
    padding: 8px 0 48px;
}

.cabinet-shell {
    padding-bottom: 56px;
}

.cabinet-field-label {
    display: block;
    margin: 10px 0;
    font-weight: 600;
    font-size: 0.92rem;
}

.cabinet-field-label input {
    width: 100%;
    margin-top: 6px;
}

.cabinet-avatar-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.cabinet-user-meta {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.cabinet-avatar-preview {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(141, 101, 255, 0.35), rgba(255, 63, 242, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.4rem;
    font-weight: 700;
}

.cabinet-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cabinet-avatar-controls {
    display: grid;
    gap: 10px;
    flex: 1;
}

.cabinet-inline-error {
    color: #ff8b8b;
    font-size: 0.86rem;
    margin-top: 6px;
}

.cabinet-auth-panel label.cabinet-field-label input,
.cabinet-auth-panel label.cabinet-field-label textarea {
    width: 100%;
}

.cabinet-auth-panel {
    max-width: 560px;
    width: min(560px, calc(100vw - 34px));
    padding-top: 44px;
    position: relative;
}

/* Auth modal: close button aligned with tabs */
.auth-portal-overlay .cabinet-auth-panel {
    padding-top: 44px;
}

.auth-portal-form {
    display: grid;
    gap: 12px;
}

.auth-portal-form input {
    width: 100%;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    color: #f5f7ff;
    outline: none;
}

.auth-portal-form input::placeholder {
    color: rgba(205, 214, 255, 0.68);
}

.auth-portal-form input:focus {
    border-color: rgba(143, 99, 255, 0.75);
    box-shadow: 0 0 0 4px rgba(143, 99, 255, 0.18);
}

.auth-portal-actions {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.auth-forgot-btn {
    justify-self: start;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #d8e0ff;
    border-radius: 10px;
    font-size: 0.84rem;
    padding: 8px 12px;
    cursor: pointer;
}

.auth-forgot-btn:hover {
    background: rgba(141, 101, 255, 0.2);
    border-color: rgba(141, 101, 255, 0.45);
}

.auth-inline-block {
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(6, 10, 30, 0.44);
    border-radius: 14px;
}

.auth-inline-btn {
    font-size: 0.92rem;
    min-width: 190px;
}

.cabinet-field-label input,
.cabinet-field-label select,
.cabinet-field-label textarea,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-item-row input,
.admin-item-row select,
.admin-item-row textarea,
.admin-product-card input,
.admin-product-card select,
.admin-product-card textarea {
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    color: #f5f7ff;
    outline: none;
}

.cabinet-field-label input:focus,
.cabinet-field-label select:focus,
.cabinet-field-label textarea:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-item-row input:focus,
.admin-item-row select:focus,
.admin-item-row textarea:focus,
.admin-product-card input:focus,
.admin-product-card select:focus,
.admin-product-card textarea:focus {
    border-color: rgba(143, 99, 255, 0.75);
    box-shadow: 0 0 0 4px rgba(143, 99, 255, 0.18);
}

.cabinet-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.cabinet-pager-meta {
    color: #8d9dc4;
    font-weight: 700;
    font-size: 0.92rem;
}

.cabinet-pager-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.cabinet-pager-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: #eef2ff;
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 700;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.cabinet-pager-btn:hover:not([disabled]) {
    background: rgba(143, 99, 255, 0.2);
    border-color: rgba(143, 99, 255, 0.55);
    transform: translateY(-1px);
}

.admin-refresh-btn {
    margin-left: auto;
}

.admin-review-textarea {
    min-height: 210px;
    max-height: 210px;
    resize: none;
    overflow: auto;
}

.admin-review-textarea::-webkit-scrollbar {
    width: var(--sb-size);
}

.admin-review-textarea::-webkit-scrollbar-track {
    background: var(--sb-track-color);
    border-radius: 10px;
}

.admin-review-textarea::-webkit-scrollbar-thumb {
    background: var(--sb-thumb-color);
    border-radius: 10px;
}

.admin-review-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #c7d0ff 50%),
        linear-gradient(135deg, #c7d0ff 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 16px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

.admin-review-select option {
    background: #14182f;
    color: #f5f7ff;
}

.admin-review-field {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.admin-review-field > span {
    color: #f0f3ff;
    font-weight: 700;
    text-align: center;
    padding-right: 8px;
}

.admin-review-field--text {
    align-items: stretch;
}

.admin-review-field--text > span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cabinet-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.cabinet-card h3 {
    margin-top: 0;
}

.cabinet-muted {
    color: #8d9dc4;
    font-size: 0.92rem;
}

.cabinet-list-pane {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.cabinet-mini-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cabinet-review-card.positive {
    border-color: rgba(70, 220, 137, 0.45);
    background: rgba(70, 220, 137, 0.1);
}

.cabinet-review-card.negative {
    border-color: rgba(255, 89, 116, 0.45);
    background: rgba(255, 89, 116, 0.1);
}

.site-users-admin-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    width: 100%;
    min-width: 0;
}

.admin-site-user-card label select,
.admin-site-user-card label input {
    width: 100%;
}

.admin-site-user-card .product-preview {
    height: 86px;
    min-height: 86px;
}

.admin-site-user-card .product-preview::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(143, 99, 255, 0.22), rgba(255, 63, 242, 0.14));
}

.auth-portal-overlay {
    z-index: 9100 !important;
}

.auth-portal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 8px 0 14px;
    padding-right: 56px;
}

.auth-portal-overlay .close-button {
    /* Align with auth tabs row */
    top: 52px;
    right: 22px;
}

.auth-portal-tab {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #edf1ff;
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
}

.auth-portal-tab.active {
    border-color: rgba(143, 99, 255, 0.7);
    box-shadow: 0 14px 34px rgba(143, 99, 255, 0.14);
}

.admin-item-actions--compact {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.admin-user-detail-panel {
    max-width: 720px;
}

@keyframes shimmerPulse {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: 0 24px 42px rgba(143, 99, 255, 0.18);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 24px 52px rgba(255, 63, 242, 0.28);
    }
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 40px 0 56px;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 0.95;
    margin: 0 0 24px;
    max-width: 620px;
}

.hero-text {
    color: #ced7ff;
    font-size: 1rem;
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.75;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    background: linear-gradient(135deg, #7c5dff, #ff42c2);
    border-radius: 999px;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 18px 36px rgba(124, 93, 255, 0.2);
}

.hero-visual {
    display: grid;
    place-items: center;
}

.visual-card {
    width: min(100%, 520px);
    aspect-ratio: 1 / 1;
    min-height: auto;
    border-radius: 32px;
    padding: 28px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.visual-card img {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    inset: 0;
    padding-left: 20px;
    padding-right: 20px;
}

.visual-card .hero-main-image {
    z-index: 1;
    animation: heroMainFloat 3.4s ease-in-out infinite;
}

.visual-card .hero-elements-image {
    z-index: 2;
    animation: heroElementsFloat 3.4s ease-in-out infinite;
}

@keyframes heroElementsFloat {
    0%,
    100% {
        transform: translate3d(0, -8px, 0);
    }

    50% {
        transform: translate3d(0, 8px, 0);
    }
}

@keyframes heroMainFloat {
    0%,
    100% {
        transform: translate3d(0, -5px, 0);
    }

    50% {
        transform: translate3d(0, 5px, 0);
    }
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(124,93,255,0.25), rgba(12, 17, 47, 0.95));
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.72);
    font-size: 0.95rem;
    text-align: center;
    padding: 28px;
}

.products {
    padding: 10px 0 52px;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 26px;
}

.section-title span {
    font-size: 1.05rem;
    color: #ffcc5c;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 22px;
    display: grid;
    gap: 18px;
    position: relative;
}

.product-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(124,93,255,0.24), rgba(4, 7, 30, 0.95));
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.product-preview img {
    width: 103.5%;
    height: 103.5%;
    max-width: none;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* Для витрины запрещаем перетаскивание и ПКМ по картинке товара (не админка). */
.product-card .product-preview img,
.product-card-large .product-preview img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.product-card-large .product-preview {
    height: 100%;
    min-height: 404px;
    aspect-ratio: auto;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.product-info h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
}

.product-price {
    font-size: 1.05rem;
    color: #9aa6d5;
    font-weight: 600;
}

.product-price-row {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    text-align: right;
}

.product-discount-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(122, 231, 140, 0.35);
    background: rgba(18, 74, 32, 0.82);
    color: #b8ffd2;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
}

.product-discount-badge {
    position: absolute;
    top: 56px;
    right: 14px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(122, 231, 140, 0.35);
    background: rgba(18, 74, 32, 0.82);
    color: #b8ffd2;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1;
}

.product-profitable-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 102, 102, 0.35);
    background: rgba(255, 102, 102, 0.18);
    color: #ffe9e9;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1;
}

.product-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 10px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8d65ff, #ff3ff2);
    background-size: 200% 200%;
    color: #e8eeff;
    border: 1px solid rgba(124, 93, 255, 0.35);
    font-weight: 600;
    transition: background-position 0.35s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.buy-button:hover {
    background-position: 100% 0;
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(143, 99, 255, 0.16);
}

.product-page {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 24px;
    align-items: start;
}

.product-page.admin-product-page {
    grid-template-columns: 1fr !important;
}

.product-card-large,
.product-card-small,
.review-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.product-card-large {
    min-height: 460px;
    padding: 28px;
    display: grid;
    place-items: center;
    width: 100%;
}

.product-info-panel {
    display: grid;
    gap: 16px;
    width: 100%;
    padding: 0;
}

.product-info-panel--detail {
    min-height: 460px;
    display: flex;
    flex-direction: column;
}

.product-tag,
.category-pill {
    display: inline-flex;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(139, 80, 255, 0.18);
    color: #d9d7ff;
    border: 1px solid rgba(139, 80, 255, 0.28);
    font-size: 0.94rem;
    font-weight: 600;
}

.product-price-large {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
}

.product-price-large-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.product-price-old {
    font-size: 1.08rem;
    color: #9aa6d5;
    text-decoration: line-through;
}

.product-description {
    color: #c7d0ff;
    line-height: 1.75;
    white-space: normal;
    min-height: 290px;
    max-height: 290px;
    overflow-y: auto;
    padding-right: 8px;
}

.product-info-panel--detail .product-description {
    max-height: 290px;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
}

.product-info-panel--detail .product-description::-webkit-scrollbar {
    width: var(--sb-size);
}

.product-info-panel--detail .product-description::-webkit-scrollbar-track {
    background: var(--sb-track-color);
    border-radius: 10px;
}

.product-info-panel--detail .product-description::-webkit-scrollbar-thumb {
    background: var(--sb-thumb-color);
    border-radius: 10px;
}

.product-info-panel--detail .buy-button--strong {
    margin-top: auto;
}

.product-description p {
    margin: 0 0 14px;
}

.product-description p:last-child {
    margin-bottom: 0;
}

.buy-button--fullwidth {
    width: 100%;
}

.buy-button--strong {
    min-height: 58px;
    font-size: 1.08rem;
    font-weight: 800;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.category-tabs.centered {
    justify-content: center;
}

.category-pill {
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.category-pill:hover,
.category-pill.active {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(141, 101, 255, 0.28), rgba(255, 63, 242, 0.24));
    border-color: rgba(141, 101, 255, 0.5);
}

.reviews-section {
    padding-top: 28px;
}

.review-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.review-card {
    padding: 20px;
    display: grid;
    gap: 16px;
}

.review-card .review-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 1.15rem;
}

.review-card p {
    margin: 0;
    color: #c7d0ff;
    line-height: 1.75;
}

.review-meta {
    color: #a6b5d9;
    font-size: 0.88rem;
}

.review-card.positive {
    border-color: rgba(123, 214, 136, 0.25);
    background: rgba(123, 214, 136, 0.08);
}

.review-card.negative {
    border-color: rgba(255, 102, 102, 0.22);
    background: rgba(255, 102, 102, 0.08);
}

.contact-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 11, 31, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.contact-panel {
    width: min(640px, calc(100% - 36px));
    max-height: min(88vh, 900px);
    overflow-y: auto;
    padding: 28px;
    border-radius: 28px;
    background: rgba(8, 11, 31, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.35);
    position: relative;
}

.close-button {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 5;
}

.close-button:hover {
    background: rgba(141, 101, 255, 0.18);
}

.social-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.social-link {
    flex: 1 1 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #f5f7ff;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(141, 101, 255, 0.18);
}

.social-link.vk { background: linear-gradient(135deg, rgba(59, 89, 152, 0.22), rgba(94, 121, 194, 0.18)); }
.social-link.tg { background: linear-gradient(135deg, rgba(36, 163, 193, 0.22), rgba(97, 206, 255, 0.18)); }
.social-link.mail { background: linear-gradient(135deg, rgba(255, 74, 114, 0.22), rgba(255, 157, 184, 0.18)); }

.contact-subnote {
    margin: 12px 0 4px;
    color: #8d9dc4;
    font-size: 0.9rem;
}

.support-chat-embed {
    display: grid;
    gap: 12px;
    margin: 14px 0 8px;
}

.support-chat-fields {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 520px) {
    .support-chat-fields {
        grid-template-columns: 1fr;
    }
}

.support-chat-fields input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #f5f7ff;
    font: inherit;
}

.support-chat-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.ghost-link-button {
    padding: 0;
    border: none;
    background: none;
    color: #9aa8ff;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ghost-link-button:hover {
    color: #d2daff;
}

.support-closed-note {
    margin: 0;
    color: #f0ad4e;
    font-size: 0.85rem;
}

.mini-chat-empty {
    padding: 16px;
    color: #8d9dc4;
    font-size: 0.92rem;
    text-align: center;
}

.mini-chat-log {
    max-height: 220px;
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(3, 6, 20, 0.55);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-chat-log.tall {
    max-height: min(340px, 45vh);
}

.mini-chat-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-radius: 12px;
    padding: 10px 12px;
    max-width: 92%;
}

.mini-chat-msg-avatar-wrap {
    flex: 0 0 auto;
}

.mini-chat-msg > div:last-child {
    min-width: 0;
}

.mini-chat-msg--buyer,
.mini-chat-msg--visitor {
    align-self: flex-start;
    background: rgba(113, 81, 255, 0.12);
    border: 1px solid rgba(113, 81, 255, 0.22);
}

.mini-chat-msg--admin {
    align-self: flex-end;
    margin-left: auto;
    background: rgba(74, 194, 135, 0.12);
    border: 1px solid rgba(74, 194, 135, 0.28);
}

.mini-chat-msg-head {
    font-size: 0.75rem;
    color: #9aa8cc;
    margin-bottom: 4px;
    font-weight: 600;
}

.mini-chat-msg-body {
    white-space: pre-wrap;
    line-height: 1.42;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

.mini-chat-send {
    display: grid;
    gap: 10px;
}

.mini-chat-send textarea {
    width: 100%;
    resize: vertical;
    min-height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #f5f7ff;
    padding: 12px 14px;
    font: inherit;
}

.mini-chat-send-btn {
    justify-self: start;
}

.order-deal-chat {
    margin-top: 20px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(141, 101, 255, 0.25);
    background: rgba(8, 12, 32, 0.65);
}

.order-deal-chat-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.order-deal-chat-hint {
    margin: 0 0 14px;
    color: #9aa8cc;
    font-size: 0.9rem;
}

body.order-chat-modal-open {
    overflow: hidden;
}

.deal-chat-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding: 12px 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: radial-gradient(circle at 20% -10%, rgba(141, 101, 255, 0.12), transparent 38%),
        rgba(3, 6, 20, 0.65);
}

.deal-msg-system {
    display: block;
    align-self: center;
    text-align: center;
    margin: 6px auto;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(156, 170, 255, 0.28);
    background: rgba(87, 109, 255, 0.14);
    color: #dce5ff;
    font-size: 0.9rem;
    max-width: 94%;
}

.deal-msg-system--presence {
    border-color: rgba(116, 224, 176, 0.45);
    background: rgba(74, 194, 135, 0.14);
    color: #d8ffef;
}

.deal-chat-send {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.deal-chat-send textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #f5f7ff;
    padding: 12px 14px;
    font: inherit;
    resize: vertical;
    min-height: 76px;
}

.deal-msg-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
}

.deal-msg-row--buyer {
    justify-content: flex-start;
}

.deal-msg-row--admin {
    justify-content: flex-end;
}

.chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f5f7ff;
    font-size: 0.8rem;
    font-weight: 700;
}

.deal-msg-bubble {
    position: relative;
    max-width: min(92%, 320px);
    border-radius: 16px;
    padding: 10px 14px;
    border: 1px solid transparent;
}

.mini-chat-msg-content {
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.msg-hide-menu {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 3;
}

.msg-hide-menu__toggle {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(8, 12, 32, 0.6);
    color: #dce5ff;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.msg-hide-menu__dropdown {
    display: none;
    position: absolute;
    top: 26px;
    right: 0;
    min-width: 150px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(8, 12, 32, 0.95);
}

.msg-hide-menu:hover .msg-hide-menu__dropdown,
.msg-hide-menu:focus-within .msg-hide-menu__dropdown {
    display: block;
}

.msg-hide-menu__action {
    width: 100%;
    border: 0;
    background: rgba(255, 255, 255, 0.05);
    color: #e9efff;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    text-align: left;
}

.deal-msg-bubble--buyer {
    background: linear-gradient(135deg, rgba(113, 81, 255, 0.22), rgba(97, 60, 200, 0.12));
    border-color: rgba(141, 101, 255, 0.35);
}

.deal-msg-bubble--admin {
    background: linear-gradient(135deg, rgba(74, 194, 135, 0.2), rgba(45, 130, 100, 0.12));
    border-color: rgba(74, 194, 135, 0.35);
}

.deal-msg-meta {
    font-size: 0.72rem;
    color: rgba(226, 230, 255, 0.65);
    font-weight: 600;
    margin-bottom: 6px;
}

.deal-msg-text {
    white-space: pre-wrap;
    line-height: 1.45;
    font-size: 0.94rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.order-chat-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: min(28px, 4vw);
    box-sizing: border-box;
}

.order-chat-modal.hidden {
    display: none !important;
}

.order-chat-modal__backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -20%, rgba(141, 101, 255, 0.25), transparent 45%),
        rgba(6, 8, 20, 0.82);
    backdrop-filter: blur(10px);
}

.order-chat-modal__sheet {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    width: min(540px, 100%);
    max-height: min(88vh, 720px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(165deg, rgba(18, 22, 48, 0.98), rgba(8, 10, 28, 0.98));
    box-shadow:
        0 0 0 1px rgba(141, 101, 255, 0.15),
        0 42px 100px rgba(0, 0, 0, 0.45);
}

.order-chat-modal__head {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(141, 101, 255, 0.16), transparent 52%);
}

.order-chat-modal__title {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.order-chat-modal__sub {
    margin: 6px 0 2px;
    font-size: 0.88rem;
    color: #b8c2ff;
}

.order-chat-modal__sub code {
    word-break: break-all;
}

.order-chat-modal__hint {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: #8d9dc4;
}

.order-chat-modal__close {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.order-chat-modal__close:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: rotate(90deg);
}

.order-chat-modal__feed-wrap {
    min-height: 200px;
    padding: 12px 16px;
    overflow: hidden;
}

.deal-chat-feed--modal {
    max-height: min(360px, 48vh);
    height: 100%;
}

.order-chat-modal__foot {
    display: grid;
    gap: 12px;
    padding: 16px 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 5, 14, 0.35);
}

.order-chat-modal__foot textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #f5f7ff;
    padding: 12px 14px;
    font: inherit;
    resize: vertical;
    min-height: 70px;
}

.order-chat-modal__send {
    justify-self: flex-end;
    border-radius: 999px !important;
    padding-inline: 28px !important;
}

.admin-product-modal {
    position: fixed;
    inset: 0;
    z-index: 5200;
    display: grid;
    place-items: start center;
    width: 100vw;
    height: 100vh;
    padding-top: 18px;
}

.admin-product-modal.hidden {
    display: none !important;
}

.admin-product-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 24, 0.82);
}

.admin-product-modal__sheet {
    position: relative;
    width: min(720px, calc(100vw - 28px));
    max-height: calc(100vh - 22px);
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(17, 25, 54, 0.97), rgba(8, 13, 31, 0.97));
    padding: 16px;
    scrollbar-width: none;
}

.admin-product-modal__sheet::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.admin-product-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 3;
    padding-bottom: 8px;
    background: linear-gradient(180deg, rgba(17, 25, 54, 0.97), rgba(17, 25, 54, 0.75));
    backdrop-filter: blur(2px);
}

.admin-product-modal__close {
    position: sticky;
    top: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #eef2ff;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
}

.admin-action-button.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.support-admin-help {
    margin-bottom: 12px !important;
}

.support-admin-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.support-admin-tab {
    display: grid;
    gap: 2px;
    text-align: left;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e8ebff;
    cursor: pointer;
    font: inherit;
    min-width: 140px;
    max-width: 280px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.support-admin-tab:hover {
    border-color: rgba(141, 101, 255, 0.35);
}

.support-admin-tab.active {
    border-color: rgba(141, 101, 255, 0.55);
    background: rgba(141, 101, 255, 0.14);
}

.support-admin-tab.support-admin-tab--closed {
    opacity: 0.65;
}

.support-admin-tab-id {
    font-family: ui-monospace, monospace;
    font-size: 0.78rem;
    color: #b8c2ff;
}

.support-admin-tab-prev {
    font-size: 0.82rem;
    color: #8d9dc4;
}

.support-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.support-badge-closed {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    background: rgba(240, 173, 78, 0.15);
    border: 1px solid rgba(240, 173, 78, 0.45);
    color: #ffc46c;
}

.support-admin-workspace {
    padding-top: 4px;
    overflow: hidden;
}

/* Hard clamp: admin support chat must not overflow horizontally */
.support-admin-workspace .mini-chat-log,
.support-admin-workspace #supportAdminLog {
    overflow-x: hidden;
}

.support-admin-workspace .mini-chat-msg,
.support-admin-workspace .mini-chat-msg-content {
    max-width: 100%;
    overflow: hidden;
}

.support-admin-workspace .msg-hide-menu__dropdown {
    max-width: min(240px, calc(100vw - 48px));
    box-sizing: border-box;
    overflow: hidden;
}

.payment-form input,
.payment-form textarea,
.payment-form select {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #f5f7ff;
    padding: 14px 16px;
    margin-bottom: 18px;
    font: inherit;
}

.payment-form label,
.review-submit-form label {
    display: block;
    margin-bottom: 8px;
    color: #c7d0ff;
    font-weight: 600;
}

.payment-summary {
    padding: 28px;
    min-height: 300px;
}

.payment-result {
    padding: 22px;
    border-radius: 24px;
    background: rgba(124, 93, 255, 0.12);
    border: 1px solid rgba(124, 93, 255, 0.22);
    margin-top: 18px;
}

.review-submit-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.review-submit-form textarea,
.review-submit-form select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: #f5f7ff;
    padding: 12px 14px;
    font: inherit;
}

.review-submit-form textarea {
    resize: vertical;
    min-height: 96px;
}

.review-submit-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #c9d1ff 50%),
        linear-gradient(135deg, #c9d1ff 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.review-submit-form select option {
    background: #101632;
    color: #f5f7ff;
}

.review-message,
.payment-message {
    margin-top: 16px;
    color: #b8f7b5;
}

.reviews-pagination {
    display: flex;
    gap: 10px;
    margin-top: 26px;
    align-items: center;
}

.reviews-pagination .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
    cursor: pointer;
}

.reviews-pagination .dot.active {
    background: linear-gradient(135deg, #8d65ff, #ff3ff2);
}

.auth-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.auth-form h2 {
    margin: 0 0 24px;
    font-size: 1.8rem;
    text-align: center;
}

.auth-form form {
    display: grid;
    gap: 16px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #c7d0ff;
    font-weight: 600;
    font-size: 0.95rem;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #f5f7ff;
    font: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: rgba(141, 101, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.auth-form button {
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #8d65ff, #ff3ff2);
    background-size: 200% 200%;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background-position 0.35s ease, transform 0.2s ease, box-shadow 0.2s ease;
    animation: shimmerPulse 3s ease-in-out infinite;
    margin-top: 8px;
}

.auth-form button:hover {
    background-position: 100% 0;
    transform: translateY(-1px);
    box-shadow: 0 24px 42px rgba(143, 99, 255, 0.22);
    animation: shimmerPulse 1.5s ease-in-out infinite;
}

.auth-error {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 102, 102, 0.12);
    border: 1px solid rgba(255, 102, 102, 0.3);
    color: #ff9999;
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-align: center;
}

.admin-logout-button {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #c7cee5;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.admin-logout-button:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    color: #eef0ff;
}

.admin-logout-button:active {
    background: rgba(255,255,255,0.12);
}

@media (max-width: 960px) {
    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-visual {
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-text {
        margin: 0 auto 24px;
    }

    .visual-card {
        width: 90%;
        max-width: 380px;
        aspect-ratio: 1 / 1;
        min-height: auto;
    }

    .visual-card img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .header,
    .nav,
    .category-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .header-auth-cluster {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer--enhanced .footer-left {
        justify-items: center;
    }

    .footer--enhanced .footer-right {
        align-items: center;
        margin-left: 0;
        width: 100%;
    }

    .footer-legal-column {
        justify-items: center;
    }

    .footer-legal-column > a {
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .admin-panel-header {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .admin-panel-header h2 {
        order: 1;
        width: 100%;
        margin: 0 0 16px 0;
    }

    .admin-nav {
        order: 2;
        flex: 1;
        min-width: 0;
    }

    .admin-logout-button {
        order: 3;
    }

    .product-grid,
    .admin-product-grid--management,
    .admin-item-grid--management,
    .review-list,
    .product-page {
        grid-template-columns: 1fr;
    }

    .product-card-large {
        min-height: 0;
    }

    .product-card-large .product-preview {
        min-height: 0;
        height: auto;
        aspect-ratio: 1 / 1;
        width: 100%;
        max-width: min(100%, 420px);
        margin-inline: auto;
    }

    .product-price-large {
        font-size: 1.75rem;
    }
}

@media (max-width: 1200px) {
    .admin-product-grid--management {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .admin-product-grid--management {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-panel-header {
        gap: 12px;
    }

    .admin-logout-button {
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    .admin-panel {
        padding: 16px;
    }

    .site-users-admin-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .admin-site-user-card {
        min-width: 0;
    }

    .admin-site-user-card .product-card-body {
        padding: 14px;
        gap: 12px;
    }

    .admin-site-user-card .product-info {
        align-items: flex-start;
    }

    .admin-site-user-card .product-info h3 {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .admin-site-user-card .admin-meta {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .admin-category-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .admin-category-name-input {
        min-width: 0;
        width: 100%;
    }

    .admin-category-item .admin-item-actions {
        width: 100%;
        justify-content: stretch;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .admin-category-item .admin-item-actions .admin-action-button {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .admin-product-grid--management {
        grid-template-columns: 1fr;
    }

    .admin-panel-header {
        gap: 8px;
        padding: 0 0 12px 0;
    }

    .admin-panel-header h2 {
        font-size: 1.25rem;
        margin: 0 0 12px 0;
    }

    .admin-nav {
        width: 100%;
        gap: 6px;
    }

    .admin-tab {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .admin-logout-button {
        padding: 8px 12px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    .admin-panel {
        padding: 12px;
        border-radius: 20px;
    }

    .header-auth-cluster {
        display: grid;
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        width: 100%;
        gap: 8px;
    }

    .header-auth-cluster > :only-child,
    .header-auth-cluster .cabinet-link-home {
        grid-column: 1 / -1;
    }

    .header-auth-cluster .cta-button,
    .header-auth-cluster .header-admin-btn,
    .header-auth-cluster .header-logout-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .header-contact-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .admin-item-grid,
    .admin-item-grid--management {
        gap: 12px;
    }

    .admin-item {
        padding: 12px;
    }

    .admin-site-user-card .admin-item-actions,
    .admin-site-user-card .admin-item-actions--compact {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .admin-site-user-card .admin-item-actions .admin-action-button,
    .admin-site-user-card .admin-item-actions--compact .admin-action-button {
        width: 100%;
    }

    .admin-category-item .admin-item-actions {
        grid-template-columns: 1fr;
    }
}
