@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0a101c;
    --bg-elev: #111a2b;
    --bg-soft: #17243a;
    --line: rgba(148, 163, 184, 0.24);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --white: #f8fafc;
    --green: #10b981;
    --green-2: #059669;
    --sky: #38bdf8;
    --rose: #f472b6;
    --rose-soft: #fbcfe8;
    --rose-deep: #e11d48;
    --red: #f87171;
    --radius: 16px;
    --shadow: 0 18px 45px rgba(2, 6, 23, 0.5);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 12%, rgba(244, 114, 182, 0.11), transparent 34%),
        radial-gradient(circle at 92% 4%, rgba(56, 189, 248, 0.1), transparent 32%),
        radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.07), transparent 40%),
        var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    color: var(--white);
    font-family: var(--font-display), Inter, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: #7dd3fc; }
a:hover { color: #bae6fd; }

.header {
    position: sticky;
    top: 0;
    z-index: 120;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(8, 14, 26, 0.72);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.header__glow {
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(56, 189, 248, 0.55) 22%,
        rgba(16, 185, 129, 0.65) 50%,
        rgba(56, 189, 248, 0.55) 78%,
        transparent 100%
    );
    pointer-events: none;
}

.header__inner {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.72rem 1.1rem;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 1.12rem;
    transition: transform 220ms var(--ease), filter 220ms var(--ease);
}

.logo:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 11px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.95), rgba(16, 185, 129, 0.92));
    box-shadow: 0 8px 22px rgba(244, 114, 182, 0.22);
}

.logo__mark-img {
    display: block;
    width: 88%;
    height: 88%;
    object-fit: contain;
    mix-blend-mode: lighten;
}

.logo__accent {
    background: linear-gradient(135deg, #fbcfe8 0%, #6ee7b7 55%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header__burger {
    display: none;
    width: 2.65rem;
    height: 2.65rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    cursor: pointer;
    padding: 0.55rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    transition: border-color 220ms var(--ease), background 220ms var(--ease);
}

.header__burger:hover {
    border-color: rgba(148, 163, 184, 0.5);
    background: rgba(30, 41, 59, 0.75);
}

.header__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #e2e8f0;
    transition: transform 240ms var(--ease), opacity 200ms var(--ease);
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(2) {
    opacity: 0;
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.nav__links,
.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav__actions {
    margin-left: 0.35rem;
    padding-left: 0.65rem;
    border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    user-select: none;
    margin-right: 0.15rem;
}

.theme-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.theme-switch__text {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}

.theme-switch__ui {
    position: relative;
    width: 2.55rem;
    height: 1.4rem;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.35);
    flex-shrink: 0;
    transition: background 0.2s var(--ease);
}

.theme-switch__ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: #f8fafc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s var(--ease);
}

.theme-switch input:checked + .theme-switch__ui {
    background: rgba(56, 189, 248, 0.55);
    border-color: rgba(56, 189, 248, 0.65);
}

.theme-switch input:checked + .theme-switch__ui::after {
    transform: translateX(1.1rem);
}

.theme-switch input:focus-visible + .theme-switch__ui {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.nav__link,
.nav__btn {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 999px;
    transition:
        background 220ms var(--ease),
        color 220ms var(--ease),
        border-color 220ms var(--ease),
        box-shadow 220ms var(--ease),
        transform 220ms var(--ease);
}

.nav__link {
    color: #cbd5e1;
    padding: 0.5rem 0.85rem;
}

.nav__link:hover {
    color: var(--white);
    background: rgba(148, 163, 184, 0.14);
    transform: translateY(-1px);
}

.nav__link--highlight {
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.nav__link--highlight:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.45);
}

.nav__link--muted {
    color: #64748b;
    cursor: default;
    pointer-events: none;
}

.nav__link--with-badge {
    position: relative;
    padding-right: 1.45rem;
}

.nav__count-badge {
    position: absolute;
    top: 1px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 0 0 2px rgba(11, 18, 32, 0.92);
}

.nav__link--highlight .nav__count-badge {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18);
}

.nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.52rem 1rem;
    white-space: nowrap;
}

.nav__btn--ghost {
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.35);
}

.nav__btn--ghost:hover {
    color: var(--white);
    border-color: rgba(148, 163, 184, 0.55);
    background: rgba(30, 41, 59, 0.65);
}

.nav__btn--primary {
    color: #042f2e;
    border: 1px solid rgba(244, 114, 182, 0.35);
    background: linear-gradient(135deg, #f9a8d4 0%, #34d399 52%, #38bdf8 100%);
    box-shadow: 0 10px 24px rgba(244, 114, 182, 0.18);
    font-weight: 700;
}

.nav__btn--primary:hover {
    color: #022c22;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(244, 114, 182, 0.26);
}

.nav__btn--ghost.nav__btn--active {
    color: #d1fae5;
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.12);
}

.nav__btn--primary.nav__btn--active {
    box-shadow:
        0 0 0 1px rgba(16, 185, 129, 0.55),
        0 12px 26px rgba(16, 185, 129, 0.34);
}

@media (max-width: 860px) {
    .header__burger {
        display: inline-flex;
    }

    .nav {
        position: absolute;
        top: calc(100% + 0.45rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.85rem;
        border-radius: 16px;
        border: 1px solid rgba(148, 163, 184, 0.22);
        background: rgba(10, 17, 31, 0.96);
        box-shadow: 0 22px 48px rgba(2, 6, 23, 0.55);
    }

    .nav.nav--open {
        display: flex;
    }

    .nav__links,
    .nav__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
    }

    .nav__link,
    .nav__btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.8rem 1rem 2.4rem;
}

#page-main {
    transition: opacity 180ms var(--ease);
}

#page-main.page-main--loading {
    opacity: 0.58;
}

.turbo-progress-bar {
    height: 2px;
    background: linear-gradient(90deg, #34d399, #38bdf8);
}

.auth-card,
.admin-dashboard,
.admin-panel-menu,
.admin-panel-workspace,
.checkout-step-card,
.checkout-summary-card,
.cabinet-orders-table {
    background: linear-gradient(180deg, rgba(23, 36, 58, 0.95), rgba(17, 26, 43, 0.95));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-card {
    width: 100%;
    max-width: 500px;
    padding: 1.35rem;
}

.auth-form { display: grid; gap: 0.9rem; }

.auth-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.85rem;
    color: rgba(219, 230, 245, 0.65);
    font-size: 0.88rem;
}

.auth-or::before,
.auth-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(148, 163, 184, 0.28);
}

.auth-google-btn {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.auth-google-hint {
    margin-top: 0.65rem;
    text-align: center;
}

.auth-label {
    display: grid;
    gap: 0.4rem;
    font-weight: 600;
    color: #dbe6f5;
}

.auth-label--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-weight: 500;
    line-height: 1.45;
}

.auth-label--checkbox input[type='checkbox'] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.auth-label .auth-hint {
    font-weight: 400;
    font-size: 0.85rem;
    color: rgba(219, 230, 245, 0.72);
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .auth-input {
    padding-right: 5.6rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: rgba(219, 230, 245, 0.88);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.2rem 0.35rem;
    border-radius: 6px;
}

.auth-password-toggle:hover {
    color: #fff;
    background: rgba(148, 163, 184, 0.14);
}

.auth-input.auth-input--match {
    border-color: rgba(74, 222, 128, 0.78);
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.18);
}

.auth-input.auth-input--mismatch {
    border-color: rgba(248, 113, 113, 0.88);
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.16);
}

.auth-field-status {
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 1.1rem;
}

.auth-field-status--ok {
    color: #86efac;
}

.auth-field-status--error {
    color: #fca5a5;
}

.auth-input,
.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-filters input,
.admin-filters select,
.warehouse-status-select {
    width: 100%;
    padding: 0.68rem 0.76rem;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(11, 18, 32, 0.82);
    color: var(--white);
    font: inherit;
}

.auth-input:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.admin-filters input:focus,
.admin-filters select:focus,
.warehouse-status-select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22), 0 0 20px rgba(16, 185, 129, 0.22);
}

.auth-button,
.admin-primary-btn,
.warehouse-status-save {
    border: 1px solid rgba(16, 185, 129, 0.76);
    border-radius: 11px;
    padding: 0.72rem 1rem;
    font: inherit;
    font-weight: 700;
    color: #ecfeff;
    background: linear-gradient(180deg, var(--green), var(--green-2));
    cursor: pointer;
}

.admin-menu-btn,
.admin-secondary-btn,
.admin-edit-btn,
.checkout-upsell-link,
.checkout-qty-btn {
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 10px;
    background: rgba(11, 18, 32, 0.8);
    color: #ccecff;
}

.admin-panel-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1rem;
    align-items: start;
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th,
.admin-table td,
.cabinet-orders-table th,
.cabinet-orders-table td { border: 1px solid rgba(148, 163, 184, 0.2); }

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
    gap: 1.2rem;
    align-items: start;
}

.checkout-main {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.checkout-main > .checkout-step-card,
.checkout-main > .checkout-submit-btn { grid-column: span 12; }

.checkout-step-card,
.checkout-summary-card {
    position: relative;
    border-radius: 18px;
    padding: 1.2rem 1.25rem;
}

.checkout-step-card::before,
.checkout-summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sky), var(--green));
}

.checkout-summary-head { border-bottom: 1px solid rgba(148, 163, 184, 0.22); padding-bottom: 0.8rem; margin-bottom: 0.8rem; }
.checkout-summary-total, .checkout-summary-row-value, .admin-price-preview { color: #6ee7b7; }
.checkout-summary-extra, .checkout-upsell { border-top: 1px solid rgba(148, 163, 184, 0.22); margin-top: 1rem; padding-top: 0.85rem; }

.warehouse-feedback--ok { background: rgba(16, 185, 129, 0.16); color: #86efac; border: 1px solid rgba(16, 185, 129, 0.48); }
.warehouse-feedback--error { background: rgba(239, 68, 68, 0.16); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.42); }

.warehouse-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.warehouse-badge.pay-ok { background: rgba(16, 185, 129, 0.16); color: #86efac; border: 1px solid rgba(16, 185, 129, 0.48); }
.warehouse-badge.pay-refund { background: rgba(245, 158, 11, 0.16); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.48); }
.warehouse-badge.pay-cod { background: rgba(245, 158, 11, 0.16); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.45); }
.warehouse-badge.pay-no { background: rgba(239, 68, 68, 0.16); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.42); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

textarea.auth-input { resize: vertical; min-height: 4rem; }

@media (max-width: 980px) {
    .admin-panel-shell { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-aside { position: static; order: -1; }
}

@media (min-width: 980px) {
    .checkout-main > .checkout-step-card:nth-child(1),
    .checkout-main > .checkout-step-card:nth-child(2),
    .checkout-main > .checkout-step-card:nth-child(3) { grid-column: span 6; }
    .checkout-main > .checkout-step-card:nth-child(4) { grid-column: span 12; }
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0b1220;
    --bg-elev: #111a2b;
    --bg-soft: #17243a;
    --line: rgba(148, 163, 184, 0.24);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --white: #f8fafc;
    --green: #10b981;
    --green-2: #059669;
    --sky: #38bdf8;
    --radius: 16px;
    --shadow: 0 18px 45px rgba(2, 6, 23, 0.5);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 8%, rgba(56, 189, 248, 0.1), transparent 38%),
        radial-gradient(circle at 90% 0%, rgba(16, 185, 129, 0.08), transparent 34%),
        var(--bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

a {
    color: #7dd3fc;
}

a:hover {
    color: #bae6fd;
}

.main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.8rem 1rem 2.4rem;
}

.main:has(.auth-card) {
    min-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
}

.main:has(.auth-card) > h1,
.main:has(.auth-card) > .auth-hint {
    width: 100%;
    max-width: 500px;
    margin: 0;
}

.main:has(.auth-card) > h1 {
    text-align: left;
}

.main:has(.auth-card) > .auth-hint {
    text-align: left;
}

.auth-card,
.admin-dashboard,
.admin-panel-menu,
.admin-panel-workspace,
.checkout-step-card,
.checkout-summary-card,
.cabinet-orders-table {
    background: linear-gradient(180deg, rgba(23, 36, 58, 0.95), rgba(17, 26, 43, 0.95));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-card {
    width: 100%;
    max-width: 500px;
    padding: 1.35rem;
}

.auth-form {
    display: grid;
    gap: 0.9rem;
}

.auth-label {
    display: grid;
    gap: 0.4rem;
    font-weight: 600;
    color: #dbe6f5;
}

.auth-label--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-weight: 500;
    line-height: 1.45;
}

.auth-label--checkbox input[type='checkbox'] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.auth-label .auth-hint {
    font-weight: 400;
    font-size: 0.85rem;
    color: rgba(219, 230, 245, 0.72);
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .auth-input {
    padding-right: 5.6rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: rgba(219, 230, 245, 0.88);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.2rem 0.35rem;
    border-radius: 6px;
}

.auth-password-toggle:hover {
    color: #fff;
    background: rgba(148, 163, 184, 0.14);
}

.auth-input.auth-input--match {
    border-color: rgba(74, 222, 128, 0.78);
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.18);
}

.auth-input.auth-input--mismatch {
    border-color: rgba(248, 113, 113, 0.88);
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.16);
}

.auth-field-status {
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 1.1rem;
}

.auth-field-status--ok {
    color: #86efac;
}

.auth-field-status--error {
    color: #fca5a5;
}

.auth-input,
.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-filters input,
.admin-filters select,
.warehouse-status-select {
    width: 100%;
    padding: 0.68rem 0.76rem;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(11, 18, 32, 0.82);
    color: var(--white);
    font: inherit;
    transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}

.auth-input::placeholder,
.admin-form input::placeholder,
.admin-form textarea::placeholder,
.admin-filters input::placeholder {
    color: #7b8aa6;
}

.auth-input:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.admin-filters input:focus,
.admin-filters select:focus,
.warehouse-status-select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22), 0 0 20px rgba(16, 185, 129, 0.22);
    background: rgba(17, 26, 43, 0.98);
}

.auth-button,
.admin-primary-btn,
.warehouse-status-save {
    border: 1px solid rgba(16, 185, 129, 0.76);
    border-radius: 11px;
    padding: 0.72rem 1rem;
    font: inherit;
    font-weight: 700;
    color: #ecfeff;
    background: linear-gradient(180deg, var(--green), var(--green-2));
    cursor: pointer;
    transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), filter 220ms var(--ease);
}

.auth-button:hover,
.admin-primary-btn:hover,
.warehouse-status-save:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.28);
}

.auth-error {
    margin-top: 0.8rem;
    min-height: 1.2em;
    color: #fca5a5;
}

.auth-error-link {
    color: #93c5fd;
    text-decoration: underline;
    margin-left: 0.35rem;
}

.blocked-account-lead {
    margin: 0 0 1rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.blocked-reason-box {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.blocked-reason-box h2 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.blocked-reason-text {
    margin: 0 0 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.blocked-message-input {
    min-height: 6rem;
    resize: vertical;
}

.admin-block-panel {
    margin-bottom: 1rem;
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(30, 41, 59, 0.65);
}

.admin-block-panel h4 {
    margin: 0 0 0.65rem;
}

.admin-block-panel .auth-label {
    display: block;
    margin-bottom: 0.55rem;
}

.admin-block-panel select,
.admin-block-panel textarea {
    width: 100%;
    max-width: 28rem;
}

.admin-block-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.admin-block-cell__label {
    color: #fca5a5;
    font-size: 0.88rem;
}

.admin-link-btn {
    padding: 0;
    border: none;
    background: none;
    color: #93c5fd;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
}

.admin-link-btn:hover {
    color: #bfdbfe;
}

.auth-hint {
    margin-top: 1rem;
    color: var(--muted);
}

.auth-hint a {
    color: #93c5fd;
}

.admin-dashboard {
    padding: 1.3rem 1.45rem;
}

.admin-dashboard__title {
    font-size: 1.55rem;
    margin-bottom: 0.8rem;
}

.admin-dashboard__hint {
    color: var(--muted);
}

.admin-panel-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1rem;
    align-items: start;
}

.admin-panel-menu,
.admin-panel-workspace {
    border-radius: 18px;
}

.admin-panel-menu {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 0.85rem;
    max-height: calc(100vh - 1.7rem);
    overflow: auto;
}

.admin-panel-menu__brand {
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-panel-menu__eyebrow {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #86efac;
}

.admin-panel-menu__title {
    margin: 0.15rem 0 0.45rem;
    font-size: 1.15rem;
    color: var(--white);
}

.admin-panel-menu__site-link {
    font-size: 0.82rem;
    color: #93c5fd;
    text-decoration: none;
}

.admin-panel-menu__site-link:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.admin-nav-top {
    margin-bottom: 0.15rem;
}

.admin-nav-group {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    background: rgba(8, 14, 28, 0.55);
    overflow: hidden;
}

.admin-nav-group__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border: 0;
    background: transparent;
    color: #e2e8f0;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.admin-nav-group__toggle:hover {
    background: rgba(56, 189, 248, 0.08);
}

.admin-nav-group__chevron {
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    transition: transform 180ms ease;
}

.admin-nav-group.is-open .admin-nav-group__chevron {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
}

.admin-nav-group__items {
    display: none;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0 0.45rem 0.45rem;
}

.admin-nav-group.is-open .admin-nav-group__items {
    display: flex;
}

.admin-nav-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #cbd5e1;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.48rem 0.55rem;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.admin-nav-sub:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #e0f2fe;
    border-color: rgba(56, 189, 248, 0.25);
}

.admin-nav-sub.active {
    background: rgba(16, 185, 129, 0.18);
    color: #d1fae5;
    border-color: rgba(16, 185, 129, 0.55);
}

.admin-nav-sub--accent {
    color: #86efac;
}

.admin-nav-badge {
    min-width: 1.25rem;
    padding: 0.08rem 0.35rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.22);
    color: #bbf7d0;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.admin-nav-badge--warn {
    background: rgba(245, 158, 11, 0.22);
    color: #fde68a;
}

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

.admin-nav-sub__badges {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.admin-panel-workspace__crumb {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #94a3b8;
}

.admin-panel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    color: var(--muted);
}

.admin-empty-state {
    padding: 1.25rem 0.5rem;
    text-align: center;
}

.admin-empty-state p {
    margin: 0 0 0.75rem;
    color: var(--muted);
}

.admin-attention {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
}

.admin-attention__list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-attention__item {
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    color: #fde68a;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
}

.admin-attention__item:hover {
    background: rgba(245, 158, 11, 0.15);
}

.admin-low-stock__list {
    list-style: none;
    margin: 0 0 0.65rem;
    padding: 0;
}

.admin-low-stock-link {
    border: none;
    background: transparent;
    color: #fca5a5;
    font: inherit;
    font-size: 0.9rem;
    padding: 0.2rem 0;
    cursor: pointer;
    text-align: left;
}

.admin-low-stock-link:hover {
    color: #fecaca;
    text-decoration: underline;
}

.admin-order-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.admin-order-head__main h3 {
    margin: 0 0 0.25rem;
}

.admin-order-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.admin-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.admin-order-card {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.35);
}

.admin-order-card h4 {
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
    color: #cbd5e1;
}

.admin-order-card p {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.admin-order-alert {
    margin-bottom: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.08);
}

.admin-order-alert--warn {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.1);
}

.admin-order-alert p {
    margin: 0 0 0.45rem;
    font-size: 0.88rem;
}

.admin-section-head {
    margin: 1rem 0 0.5rem;
    font-size: 0.95rem;
}

.admin-code {
    font-family: ui-monospace, monospace;
    font-size: 0.82rem;
    word-break: break-all;
}

.admin-status-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid rgba(148, 163, 184, 0.25);
}

.admin-status-timeline__item {
    position: relative;
    padding: 0 0 0.75rem 0.85rem;
    display: grid;
    gap: 0.15rem;
}

.admin-status-timeline__item::before {
    content: '';
    position: absolute;
    left: -0.42rem;
    top: 0.25rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.admin-status-timeline__time {
    font-size: 0.78rem;
    color: var(--muted);
}

.admin-status-timeline__change {
    font-size: 0.88rem;
    font-weight: 600;
}

.admin-status-timeline__who {
    font-size: 0.8rem;
    color: #94a3b8;
}

.admin-variant-input {
    display: block;
    width: 100%;
    max-width: 9rem;
    margin-bottom: 0.25rem;
}

.admin-variant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.admin-variant-active-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
}

.admin-couriers-hint {
    margin-top: 0.75rem;
}

.admin-couriers-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.admin-couriers-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-courier-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.admin-courier-summary strong {
    color: #e2e8f0;
}

.admin-text-warn {
    color: #fde68a;
}

.admin-courier-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.warehouse-order-hint {
    margin: 0.35rem 0;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: #bae6fd;
    font-size: 0.86rem;
    line-height: 1.45;
}

.admin-panel-workspace__head {
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-panel-workspace__subtitle {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.admin-products-head__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-dashboard-section-title {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    color: #e2e8f0;
}

.admin-dashboard-quick {
    margin-bottom: 1.1rem;
}

.admin-dashboard-quick__title {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    color: #e2e8f0;
}

.admin-dashboard-quick__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.55rem;
}

.admin-quick-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.75rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.55);
    color: inherit;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.admin-quick-card strong {
    color: #f8fafc;
    font-size: 0.95rem;
}

.admin-quick-card span {
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.35;
}

.admin-quick-card:hover {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(56, 189, 248, 0.08);
    transform: translateY(-1px);
}

.admin-quick-card--link:hover {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.08);
}

@media (max-width: 900px) {
    .admin-panel-menu {
        position: static;
        max-height: none;
    }
}

.admin-menu-btn {
    position: relative;
}

.admin-menu-btn,
.admin-secondary-btn,
.admin-edit-btn,
.checkout-upsell-link,
.checkout-qty-btn {
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 10px;
    background: rgba(11, 18, 32, 0.8);
    color: #ccecff;
    font: inherit;
    cursor: pointer;
    transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}

.admin-menu-btn {
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    padding: 0.6rem 0.68rem;
}

.admin-menu-btn:hover,
.admin-secondary-btn:hover,
.admin-edit-btn:hover,
.checkout-upsell-link:hover,
.checkout-qty-btn:hover {
    background: rgba(56, 189, 248, 0.14);
    color: #e0f2fe;
    border-color: rgba(56, 189, 248, 0.72);
}

.admin-menu-btn.active {
    background: rgba(16, 185, 129, 0.24);
    color: #d1fae5;
    border-color: rgba(16, 185, 129, 0.82);
}

.admin-panel-shell--booting .admin-panel-content:empty::before {
    content: 'Завантаження…';
    display: block;
    padding: 2rem 0;
    color: var(--muted);
}

.admin-panel-placeholder,
.admin-panel-workspace__subtitle,
.admin-dashboard__hint {
    color: var(--muted);
}

.admin-panel-workspace {
    padding: 1rem 1.05rem;
    min-height: 72vh;
}

.admin-panel-workspace__title {
    font-size: 2rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-stat {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    padding: 0.75rem;
}

.admin-stat span {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.admin-stat strong {
    font-size: 1.2rem;
    color: #f8fafc;
}

.admin-stat-warn {
    border-color: rgba(245, 158, 11, 0.45);
}

.admin-low-stock ul {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    color: #cbd5e1;
}

.admin-revenue-block {
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
}

.admin-revenue-block h4 {
    margin: 0 0 0.75rem;
    color: #f8fafc;
}

.admin-revenue-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.82rem;
    color: #94a3b8;
}

.admin-revenue-filters select,
.admin-revenue-filters input[type='date'],
.admin-revenue-filters input[type='month'] {
    min-width: 10rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
}

.admin-revenue-range {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-revenue-result {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-revenue-label {
    margin: 0 0 0.35rem;
    color: #94a3b8;
    font-size: 0.88rem;
}

.admin-revenue-sum {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    color: #f8fafc;
}

.admin-revenue-orders {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 0.85rem;
    margin-bottom: 0.9rem;
    align-items: flex-end;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(11, 18, 32, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    min-width: 0;
}

.admin-filters label:has(input[type='search']) {
    flex: 1 1 240px;
    min-width: min(100%, 280px);
}

.admin-filters > select,
.admin-filters label select {
    min-width: 10.5rem;
    max-width: 100%;
}

.admin-filters input[type='search'],
.admin-filters input[type='text'],
.admin-filters input[type='date'],
.admin-filters input[type='month'] {
    min-width: 0;
    width: 100%;
}

.admin-filters > select,
.admin-filters label select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.35rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.72rem center;
    background-size: 12px 8px;
}

.admin-filters > select:hover,
.admin-filters label select:hover {
    border-color: rgba(56, 189, 248, 0.45);
}

.admin-filters input[type='search']:hover,
.admin-filters input[type='text']:hover,
.admin-filters input[type='date']:hover,
.admin-filters input[type='month']:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background-color: rgba(17, 26, 43, 0.92);
}

.admin-filters input[type='search']:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='6.5' stroke='%2394a3b8' stroke-width='1.8'/%3E%3Cpath d='M16 16L20 20' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.admin-filters > select,
.admin-filters label select {
    color-scheme: dark;
}

.admin-filters input[type='search'] {
    padding-left: 2.15rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='6.5' stroke='%237b8aa6' stroke-width='1.8'/%3E%3Cpath d='M16 16L20 20' stroke='%237b8aa6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.72rem center;
    background-size: 16px 16px;
}

.admin-filters input[type='search']:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='6.5' stroke='%2386efac' stroke-width='1.8'/%3E%3Cpath d='M16 16L20 20' stroke='%2386efac' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.admin-filters [id$='-search-count'],
.admin-filters [id$='-count'],
.admin-filters #admin-product-search-count {
    align-self: center;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #bbf7d0;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    white-space: nowrap;
}

.admin-filters [id$='-search-count']:empty,
.admin-filters [id$='-count']:empty,
.admin-filters #admin-product-search-count:empty {
    display: none;
}

.admin-product-filters {
    align-items: flex-end;
}

.admin-product-filters label {
    flex: 0 1 auto;
    min-width: 8.5rem;
}

.admin-product-filters label:has(input[type='search']) {
    flex: 1 1 200px;
    min-width: min(100%, 240px);
}

.admin-revenue-filters {
    align-items: flex-end;
}

.admin-revenue-filters label {
    min-width: 8rem;
}

.admin-revenue-filters .admin-primary-btn {
    align-self: flex-end;
    margin-bottom: 1px;
}

.admin-form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.admin-order-detail p {
    margin: 0.35rem 0;
}

.admin-panel-message {
    min-height: 20px;
    margin: 0.5rem 0;
    font-weight: 600;
}

.admin-review-comment-cell {
    max-width: 260px;
    word-break: break-word;
    font-size: 13px;
    vertical-align: top;
}

.admin-review-actions-cell {
    vertical-align: top;
}

.admin-review-rating-num {
    color: #fde68a;
    font-size: 0.82rem;
    font-weight: 700;
    margin-left: 0.15rem;
}

.admin-review-actions-cell .admin-primary-btn,
.admin-review-actions-cell .admin-secondary-btn {
    margin: 0 6px 6px 0;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 8px;
    font-size: 14px;
}

.admin-table th {
    background: rgba(30, 41, 59, 0.9);
    color: var(--white);
    text-align: left;
}

.admin-table td {
    color: #dbe6f5;
}

.admin-table-photo {
    width: 84px;
    text-align: center;
}

.admin-table-thumb {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.26);
}

.admin-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.admin-product-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.82rem;
}

.admin-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-status-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-status-badge--active {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
}

.admin-status-badge--archived {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

.admin-type-badge {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    font-size: 0.72rem;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.admin-type-badge--constructor {
    background: rgba(236, 72, 153, 0.15);
    color: #f9a8d4;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 220px;
}

.admin-link-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    font-size: 0.78rem;
    text-decoration: none;
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.35);
}

.admin-link-btn:hover {
    background: rgba(59, 130, 246, 0.12);
}

.admin-stock-cell {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 120px;
}

.admin-stock-input {
    width: 72px;
    min-height: 34px;
    padding: 0.25rem 0.4rem;
}

.admin-stock-low .admin-stock-input {
    border-color: #f59e0b;
}

.admin-muted-hint {
    color: var(--muted);
    font-size: 0.78rem;
}

.admin-table-meta {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-product-table .admin-secondary-btn,
.admin-product-table .admin-edit-btn,
.admin-product-table .admin-primary-btn {
    font-size: 0.76rem;
    padding: 0.3rem 0.5rem;
}

.admin-product-photo-block {
    display: grid;
    gap: 8px;
    max-width: 360px;
}

.admin-photo-hint {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.admin-product-thumb {
    display: block;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.26);
}

.admin-cat-thumb {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.26);
}

.admin-cat-edit-preview {
    width: 80px;
    height: 80px;
    margin: 6px 0;
}

.admin-cat-move-cell {
    white-space: nowrap;
}

.admin-cat-move {
    min-width: 32px;
    padding: 4px 8px;
    margin: 0 2px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.admin-cat-move:hover {
    background: rgba(16, 185, 129, 0.25);
}

.admin-category-edit-panel {
    margin: 0.75rem 0 1rem;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.45);
}

.admin-category-edit-panel h4 {
    margin: 0 0 10px;
}

.admin-form {
    display: grid;
    gap: 10px;
    max-width: 780px;
}

.admin-form-note {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.34);
    color: #fde68a;
}

.admin-discount-block {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(11, 18, 32, 0.48);
}

.admin-discount-check-label,
.admin-discount-pct-label,
.admin-form label {
    color: #dbe6f5;
}

.admin-discount-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.admin-discount-check-label input,
.admin-discount-pct-label input {
    width: auto;
    margin: 0;
}

.admin-discount-fields {
    display: grid;
    gap: 8px;
}

.admin-discount-pct-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

.admin-discount-pct-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.admin-discount-fields #admin-discount-custom {
    max-width: 120px;
}

.admin-price-preview {
    margin: 0;
    color: #6ee7b7;
    font-weight: 700;
}

.admin-form-actions {
    display: flex;
    gap: 10px;
}

.admin-constructor-settings-form {
    margin-bottom: 1.5rem;
}

.admin-constructor-products {
    margin-top: 0.5rem;
}

.admin-constructor-products__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.75rem;
}

.admin-constructor-products__head h4 {
    margin: 0;
}

.admin-bouquet-templates-root {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-bouquet-templates__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.75rem;
}

.admin-bouquet-templates__head h4 {
    margin: 0;
}

.admin-template-items-fieldset {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0.75rem;
    padding: 0.85rem;
    margin: 0.5rem 0 1rem;
}

.admin-template-item-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.6fr auto;
    gap: 0.55rem;
    align-items: end;
    margin-bottom: 0.55rem;
}

.admin-template-item-remove {
    min-width: 2.2rem;
    padding: 0.45rem;
}

.admin-constructor-color-fields {
    display: grid;
    gap: 0.75rem;
}

.admin-color-cell {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.admin-color-swatch {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: var(--swatch-color, #94a3b8);
    border: 1px solid rgba(148, 163, 184, 0.45);
    flex-shrink: 0;
}

.admin-user-address-cell {
    max-width: 220px;
    font-size: 0.82rem;
    line-height: 1.35;
    word-break: break-word;
}

.cabinet-orders-table {
    width: 100%;
    max-width: 900px;
    margin-top: 0.8rem;
    border-collapse: collapse;
    overflow: hidden;
}

.cabinet-orders-table th,
.cabinet-orders-table td {
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.55rem 0.65rem;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    color: #dbe6f5;
}

.cabinet-orders-table th {
    background: rgba(30, 41, 59, 0.9);
    color: var(--white);
}

.cabinet-orders-table tbody tr:nth-child(even) {
    background: rgba(11, 18, 32, 0.45);
}

.cabinet-orders-note {
    font-size: 0.82rem;
    color: #94a3b8;
}

.cabinet-orders-pay {
    min-width: 9.5rem;
}

.cabinet-pay-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.cabinet-pay-btn {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    text-decoration: none;
    text-align: center;
}

.cabinet-pay-timer {
    font-size: 0.78rem;
    color: #94a3b8;
}

.cabinet-pay-timer-value {
    font-variant-numeric: tabular-nums;
    color: #fcd34d;
}

.cabinet-pay-expired {
    margin: 0;
    font-size: 0.78rem;
    color: #fca5a5;
}

.cabinet-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.cabinet-page-head {
    margin-bottom: 0.85rem;
}

.cabinet-page-head h1 {
    margin: 0 0 0.25rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cabinet-page-sub {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.cabinet-tabs {
    display: flex;
    gap: 0.4rem;
    margin: 0.85rem 0 1rem;
    padding: 0.35rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.cabinet-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.cabinet-tab--active {
    background: rgba(30, 41, 59, 0.9);
    color: #f8fafc;
    font-weight: 600;
}

.cabinet-tab-count {
    display: inline-block;
    min-width: 1.2rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    font-size: 0.78rem;
}

.cabinet-panel-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.65rem;
}

.cabinet-history-toggle {
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: transparent;
    color: #94a3b8;
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.cabinet-history-toggle--on {
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.55);
}

.cabinet-empty {
    margin: 0.65rem 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.cabinet-orders-list,
.cabinet-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.cabinet-order-card,
.cabinet-review-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(23, 36, 58, 0.95), rgba(17, 26, 43, 0.95));
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
    overflow: hidden;
}

.cabinet-order-card--archived {
    opacity: 0.55;
}

.cabinet-order-toggle,
.cabinet-review-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    padding: 0.75rem 0.85rem;
    cursor: pointer;
    font: inherit;
}

.cabinet-order-toggle-main,
.cabinet-review-toggle-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cabinet-order-toggle-side,
.cabinet-review-toggle-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cabinet-order-no {
    font-weight: 700;
    font-size: 0.95rem;
}

.cabinet-order-badge,
.cabinet-review-meta {
    font-size: 0.82rem;
    color: var(--muted);
}

.cabinet-order-sum {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.cabinet-order-chevron {
    color: #64748b;
    font-size: 1.1rem;
    transition: transform 0.15s ease;
}

.cabinet-order-toggle--open .cabinet-order-chevron,
.cabinet-review-toggle--open .cabinet-order-chevron {
    transform: rotate(90deg);
}

.cabinet-order-body,
.cabinet-review-body {
    padding: 0 0.85rem 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.cabinet-order-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0.5rem;
    padding: 0.55rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.cabinet-order-row:last-of-type {
    border-bottom: none;
}

.cabinet-order-row--stack {
    grid-template-columns: 1fr;
}

.cabinet-order-label {
    color: var(--muted);
    font-size: 0.82rem;
}

.cabinet-order-value {
    min-width: 0;
}

.cabinet-orders-contact {
    white-space: pre-line;
    font-size: 0.875rem;
    line-height: 1.4;
    word-break: break-word;
}

.cabinet-archive-btn {
    margin-top: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: transparent;
    color: #94a3b8;
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.cabinet-cancel-block {
    margin: 0.65rem 0;
    padding: 0.65rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cabinet-cancel-hint {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #cbd5e1;
}

.cabinet-cancel-hint--muted {
    color: var(--muted);
}

.cabinet-status-hint {
    margin-top: 0.35rem;
    color: #2d6a4f;
}

.cabinet-order-cancel-btn {
    align-self: flex-start;
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
}

.cabinet-pay-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.cabinet-pay-btn {
    display: inline-block;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    font-size: 0.875rem;
    text-decoration: none;
    background: var(--accent, #22c55e);
    color: #052e16;
    font-weight: 600;
}

.cabinet-pay-timer {
    font-size: 0.82rem;
    color: #fbbf24;
}

.cabinet-pay-expired {
    font-size: 0.82rem;
    color: #fca5a5;
}

.cabinet-review-product {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.cabinet-review-stars-inline {
    font-size: 0.82rem;
    line-height: 1;
}

.cabinet-review-star {
    color: rgba(148, 163, 184, 0.4);
}

.cabinet-review-star--on {
    color: #fbbf24;
}

.cabinet-review-comment {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    white-space: pre-line;
    line-height: 1.45;
}

.cabinet-review-date {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.cabinet-review-pending {
    margin: 0;
    font-size: 0.82rem;
    color: #fbbf24;
}

.cabinet-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cabinet-review-edit-btn,
.cabinet-review-delete-btn,
.cabinet-mini-btn {
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(11, 18, 32, 0.8);
    color: #e2e8f0;
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.cabinet-review-delete-btn {
    color: #fca5a5;
}

.cabinet-mini-btn--primary {
    border: 1px solid rgba(16, 185, 129, 0.76);
    background: linear-gradient(180deg, var(--green), var(--green-2));
    color: #ecfeff;
    border-color: rgba(16, 185, 129, 0.76);
    font-weight: 700;
    min-height: 40px;
}

.cabinet-review-edit-form {
    margin-top: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cabinet-review-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cabinet-review-textarea {
    min-height: 4rem;
    resize: vertical;
    font-size: inherit;
}

.cabinet-profile-compact {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, rgba(23, 36, 58, 0.95), rgba(17, 26, 43, 0.95));
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
}

.cabinet-profile-compact--edit {
    margin-top: 0;
}

.cabinet-profile-edit-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.cabinet-profile-view-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.35rem 0.25rem 0.5rem;
}

.cabinet-avatar-wrap--view {
    width: 80px;
    height: 80px;
    margin-bottom: 0.75rem;
}

.cabinet-profile-view-name {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.cabinet-profile-view-list {
    width: 100%;
    margin: 0 0 0.85rem;
    padding: 0;
}

.cabinet-profile-view-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0.5rem;
    text-align: left;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.875rem;
}

.cabinet-profile-view-row:last-child {
    border-bottom: none;
}

.cabinet-profile-view-row dt {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.cabinet-profile-view-row dd {
    margin: 0;
    word-break: break-word;
}

.cabinet-email-badge {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.08rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    vertical-align: middle;
}

.cabinet-email-badge--ok {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
}

.cabinet-email-badge--wait {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
}

.cabinet-email-verify {
    margin: 0.85rem 0 1rem;
    text-align: left;
}

.cabinet-email-verify-step {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.cabinet-profile-top {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.cabinet-avatar-wrap {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(11, 18, 32, 0.7);
}

.cabinet-avatar-wrap--sm {
    width: 64px;
    height: 64px;
}

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

.cabinet-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: #94a3b8;
}

.cabinet-avatar-form {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cabinet-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.cabinet-profile-address-block {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.cabinet-profile-address-hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
}

.cabinet-profile-address-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.cabinet-mini-label {
    display: grid;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #dbe6f5;
}

.cabinet-mini-input {
    font-size: inherit;
}

.cabinet-password-details {
    margin-top: 0.85rem;
    font-size: 0.9rem;
}

.cabinet-password-wrap {
    margin-top: 1rem;
    max-width: 420px;
}

.cabinet-password-feedback {
    margin: 0 0 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.cabinet-password-feedback--ok {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.cabinet-password-feedback--error {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.cabinet-password-details summary {
    cursor: pointer;
    color: #cbd5e1;
    padding: 0.25rem 0;
}

.cabinet-password-form {
    margin-top: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.cabinet-password-hint {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.45;
}

.cabinet-password-step {
    margin-top: 0.35rem;
}

.cabinet-password-back-btn {
    margin-top: 0.35rem;
    padding: 0;
    border: 0;
    background: none;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

.cabinet-password-back-btn:hover {
    color: #cbd5e1;
}

.cabinet-page .warehouse-feedback {
    max-width: none;
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
}

.cabinet-page #cabinetGlobalFeedback:empty {
    display: none;
}

@media (max-width: 640px) {
    .cabinet-page-head h1 {
        font-size: 1.45rem;
    }

    .cabinet-tab {
        padding: 0.5rem 0.45rem;
        font-size: 0.82rem;
    }

    .cabinet-order-toggle,
    .cabinet-review-toggle {
        padding: 0.65rem 0.7rem;
    }

    .cabinet-order-toggle-side,
    .cabinet-review-toggle-right {
        gap: 0.4rem;
    }

    .cabinet-order-row,
    .cabinet-profile-view-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .cabinet-review-product {
        max-width: 100%;
        white-space: normal;
    }

    .cabinet-profile-grid {
        grid-template-columns: 1fr;
    }

    .cabinet-profile-address-row {
        grid-template-columns: 1fr;
    }

    .cabinet-profile-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cabinet-avatar-form {
        width: 100%;
        align-items: center;
    }
}

.cabinet-inline-form {
    margin-bottom: 0.9rem;
}

.cabinet-code-form {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.warehouse-page {
    max-width: 720px;
}

.warehouse-page > h1 {
    margin-bottom: 0.85rem;
}

.warehouse-count {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.warehouse-empty {
    color: var(--muted);
}

.warehouse-orders-list {
    display: grid;
    gap: 0.65rem;
}

.warehouse-order-card {
    background: rgba(17, 26, 43, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
}

.warehouse-order-card--cancel {
    opacity: 0.78;
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(239, 68, 68, 0.05);
}

.warehouse-order-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.warehouse-order-top-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.65rem;
    min-width: 0;
}

.warehouse-order-no {
    font-weight: 700;
    color: var(--white);
    font-size: 0.95rem;
}

.warehouse-order-when {
    font-weight: 700;
    color: #86efac;
    font-size: 0.92rem;
}

.warehouse-order-sum {
    font-weight: 700;
    color: var(--white);
    font-size: 0.9rem;
    white-space: nowrap;
}

.warehouse-order-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

.warehouse-badge--status {
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.warehouse-badge--method {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.warehouse-badge--express {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.45);
}

.warehouse-badge--confirmed {
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.warehouse-badge--processing {
    background: rgba(168, 85, 247, 0.16);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.38);
}

.warehouse-badge--ready {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.42);
}

.warehouse-badge--shipped {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.warehouse-badge--delivered {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.42);
}

.warehouse-badge--accepted {
    background: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(100, 116, 139, 0.35);
}

.warehouse-badge--cancelled {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.warehouse-status-details {
    margin-top: 0.45rem;
}

.warehouse-status-details__summary {
    cursor: pointer;
    font-size: 0.84rem;
    color: var(--muted);
    user-select: none;
}

.warehouse-status-details[open] .warehouse-status-details__summary {
    margin-bottom: 0.45rem;
    color: #e2e8f0;
}

.warehouse-quick-action {
    margin-bottom: 0.45rem;
}

.warehouse-pickup-cod {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.88rem;
    margin: 0.35rem 0 0;
    color: #fcd34d;
}

.courier-shift-banner {
    position: sticky;
    top: 0;
    z-index: 25;
    margin-bottom: 0.75rem;
}

.courier-shift-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.courier-shift-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.courier-shift-form {
    margin: 0;
}

.courier-shift-btn--disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.courier-shift-blocked {
    margin-bottom: 0.75rem;
}

.courier-shift-hint {
    margin-top: 1rem;
}

.courier-shift-emails {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.courier-shift-emails__title {
    font-size: 1rem;
    margin: 0 0 0.65rem;
}

.courier-shift-emails p {
    margin: 0.35rem 0;
    font-size: 0.92rem;
    color: #cbd5e1;
}

.checkout-payment-hint {
    margin: 0.65rem 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--muted);
}

.checkout-payment-hint strong {
    color: #fbbf24;
    font-weight: 600;
}

.checkout-payment-hint--cod {
    color: #cbd5e1;
}

.admin-stat--click {
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.admin-stat--click:hover {
    border-color: rgba(236, 72, 153, 0.55);
    transform: translateY(-1px);
}

.admin-order-moderation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.warehouse-order-detail-link--block {
    display: block;
    margin-top: 0.45rem;
    text-align: center;
}

.warehouse-order-products {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.55rem;
}

.warehouse-order-products-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #86efac;
    margin-bottom: 0.15rem;
}

.warehouse-order-details {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
    font-size: 0.84rem;
}

.warehouse-order-detail {
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    gap: 0.45rem;
    align-items: start;
}

.warehouse-order-detail--full {
    grid-template-columns: 3.2rem 1fr;
}

.warehouse-order-detail-label {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.78rem;
}

.warehouse-order-detail-value {
    color: var(--text);
    line-height: 1.4;
    min-width: 0;
    word-break: break-word;
}

.warehouse-order-address {
    white-space: pre-line;
    font-size: 0.82rem;
}

.warehouse-tel {
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 600;
}

.warehouse-tel:hover {
    text-decoration: underline;
}

.warehouse-order-foot {
    padding-top: 0.55rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.warehouse-handoff-block {
    margin-bottom: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: rgba(45, 106, 79, 0.08);
    border: 1px solid rgba(45, 106, 79, 0.25);
}

.warehouse-handoff-hint {
    margin: 0 0 0.65rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--text);
}

.warehouse-handoff-form {
    margin: 0;
}

.warehouse-handoff-btn {
    width: 100%;
    max-width: 320px;
}

.warehouse-order-cancel-msg {
    margin: 0;
    font-size: 0.84rem;
    color: #fca5a5;
    font-weight: 600;
}

.warehouse-status-label {
    display: grid;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    flex: 1;
    min-width: 0;
}

.warehouse-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    align-items: flex-end;
    margin-bottom: 0.85rem;
}

.warehouse-filter-label {
    display: grid;
    gap: 0.25rem;
    font-weight: 600;
    font-size: 0.82rem;
}

.warehouse-filter-select {
    min-width: 8.5rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.88rem;
}

.warehouse-filter-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
}

.warehouse-express {
    color: #fcd34d;
}

.warehouse-orders-email {
    color: var(--muted);
    font-size: 0.82rem;
}

.warehouse-status-form {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
}

.warehouse-status-select {
    min-width: 0;
    width: 100%;
    padding: 0.45rem 0.55rem;
    font-size: 0.88rem;
}

.warehouse-status-save {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.warehouse-feedback {
    max-width: 100%;
    margin: 0 0 0.65rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
}

.warehouse-feedback--ok {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.48);
    color: #86efac;
}

.warehouse-feedback--error {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.42);
    color: #fca5a5;
}

.warehouse-order-card--soon {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.warehouse-order-card--overdue {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.warehouse-badge--soon {
    background: rgba(245, 158, 11, 0.16);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.45);
}

a.warehouse-order-no {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 700;
}

a.warehouse-order-no:hover {
    text-decoration: underline;
}

.warehouse-order-detail-link {
    color: #94a3b8;
    font-size: 0.85rem;
    text-decoration: none;
    align-self: center;
    white-space: nowrap;
}

.warehouse-order-detail-link:hover {
    color: #e2e8f0;
    text-decoration: underline;
}

.warehouse-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.warehouse-stat {
    flex: 1 1 5.5rem;
    min-width: 5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.55);
    text-align: center;
}

.warehouse-stat-num {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.1;
}

.warehouse-stat-label {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: #94a3b8;
}

.warehouse-stat--warn .warehouse-stat-num {
    color: #fcd34d;
}

.warehouse-stat--danger .warehouse-stat-num {
    color: #fca5a5;
}

.warehouse-stat--tab {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.warehouse-stat--tab:hover {
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(23, 36, 58, 0.75);
}

.warehouse-stat--active {
    border-color: rgba(167, 139, 250, 0.65);
    background: rgba(88, 28, 135, 0.22);
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.2);
}

.warehouse-stat--active .warehouse-stat-label {
    color: #e9d5ff;
}

.warehouse-poll-hint {
    margin: 0 0 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #bfdbfe;
    font-size: 0.88rem;
}

.warehouse-poll-refresh {
    border: none;
    background: none;
    color: #93c5fd;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.warehouse-phone-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
}

.warehouse-phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.65);
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.82rem;
    white-space: nowrap;
}

.warehouse-phone-btn:hover {
    background: rgba(30, 41, 59, 0.85);
}

.warehouse-phone-btn--tel {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.14);
    color: #86efac;
}

.warehouse-phone-btn--tel:hover {
    background: rgba(16, 185, 129, 0.22);
}

.warehouse-phone-btn--viber {
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.14);
    color: #c4b5fd;
}

.warehouse-phone-btn--viber:hover {
    background: rgba(139, 92, 246, 0.22);
}

.warehouse-phone-btn--tg {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
}

.warehouse-phone-btn--tg:hover {
    background: rgba(56, 189, 248, 0.2);
}

.warehouse-status-log {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.warehouse-status-log-title {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.warehouse-status-log-empty {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.warehouse-status-log-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.warehouse-status-log-item {
    display: grid;
    grid-template-columns: 9.5rem 1fr auto;
    gap: 0.45rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    font-size: 0.88rem;
    color: #cbd5e1;
}

.warehouse-status-log-time {
    color: #94a3b8;
}

.warehouse-status-log-user {
    color: #64748b;
    font-size: 0.82rem;
    text-align: right;
}

.warehouse-print-qr {
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.35);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.warehouse-print-qr-label {
    font-size: 0.82rem;
    color: #64748b;
}

.warehouse-back-link {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

.warehouse-back-link a {
    color: #93c5fd;
    text-decoration: none;
}

.warehouse-back-link a:hover {
    text-decoration: underline;
}

.warehouse-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0.75rem 0 1rem;
}

.warehouse-print-btn {
    width: auto;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
}

.warehouse-items-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #e2e8f0;
}

.warehouse-items-list li {
    margin: 0.15rem 0;
}

.warehouse-stock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.warehouse-stock-table th,
.warehouse-stock-table td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    text-align: left;
}

.warehouse-stock-table th {
    color: #94a3b8;
    font-weight: 600;
}

.warehouse-stock-row--low td {
    background: rgba(239, 68, 68, 0.08);
}

.warehouse-stock-row--zero td {
    background: rgba(239, 68, 68, 0.14);
}

.warehouse-stock-filters {
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.warehouse-filter-input {
    min-width: 10rem;
}

.warehouse-filter-reset {
    align-self: center;
    font-size: 0.88rem;
    color: var(--muted);
}

.warehouse-stock-free--bad {
    color: #fca5a5;
}

.warehouse-stock-page .warehouse-stock-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.warehouse-stock-link {
    color: var(--muted);
    font-size: 0.92rem;
}

.warehouse-flash {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.warehouse-flash--ok {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.warehouse-flash--err {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.warehouse-stock-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.warehouse-stat-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
}

.warehouse-stat-card__label {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.warehouse-stat-card__value {
    font-size: 1.35rem;
    color: #f8fafc;
}

.warehouse-stat-card__value--warn {
    color: #fbbf24;
}

.warehouse-stat-card__value--bad {
    color: #f87171;
}

.warehouse-stock-row--shortage td {
    box-shadow: inset 3px 0 0 rgba(239, 68, 68, 0.65);
}

.warehouse-stock-adjust-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.warehouse-stock-adjust-form {
    display: inline-flex;
    margin: 0;
}

.warehouse-stock-adjust-form--wide {
    align-items: center;
    gap: 0.35rem;
}

.warehouse-stock-adjust-btn {
    min-width: 2.2rem;
    height: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    cursor: pointer;
}

.warehouse-stock-adjust-input {
    width: 4rem;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
}

.warehouse-stock-adjust-save {
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
    min-height: 2rem;
}

.warehouse-stock-journal {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.warehouse-stock-journal__title {
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
}

.warehouse-stock-journal__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.warehouse-stock-journal__list li {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.88rem;
    color: #cbd5e1;
}

.warehouse-stock-journal__time {
    color: #94a3b8;
    margin-right: 0.35rem;
}

.warehouse-stock-journal__who,
.warehouse-stock-journal__note {
    color: #94a3b8;
}

.warehouse-stock-delta--plus {
    color: #86efac;
    font-weight: 600;
}

.warehouse-stock-delta--minus {
    color: #fca5a5;
    font-weight: 600;
}

.list-pager-item--hidden {
    display: none !important;
}

.list-pager-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.list-pager-info {
    font-size: 0.88rem;
    color: #94a3b8;
}

.list-pager-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.list-pager-more,
.list-pager-all {
    min-height: 2.1rem;
    font-size: 0.88rem;
}

.nav-notify__pager.list-pager-controls {
    margin: 0;
    padding: 0.65rem 0.75rem 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.support-archive-list + .list-pager-controls {
    margin-top: 0.5rem;
}

.cart-table-wrap {
    margin-bottom: 1rem;
}

.cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

@media (max-width: 640px) {
    .cart-table thead {
        display: none;
    }

    .cart-table tbody tr {
        display: block;
        margin-bottom: 0.85rem;
        padding: 0.75rem;
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.45);
    }

    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        padding: 0.35rem 0;
        border: none;
    }

    .cart-table td::before {
        content: attr(data-label);
        color: #94a3b8;
        font-size: 0.82rem;
        flex-shrink: 0;
    }

    .cart-table td:first-child::before {
        content: 'Товар';
    }

    .cart-table td:nth-child(2)::before {
        content: 'Ціна';
    }

    .cart-table td:nth-child(3)::before {
        content: 'Кількість';
    }

    .cart-table td:nth-child(4)::before {
        content: 'Сума';
    }

    .cart-table td:last-child::before {
        content: '';
    }

    .cart-table td:last-child {
        justify-content: flex-end;
        padding-top: 0.5rem;
    }
}

.warehouse-items-list--stock .warehouse-item-stock-hint {
    font-size: 0.82rem;
    color: var(--muted);
    margin-left: 0.25rem;
}

.warehouse-item--short {
    color: #fecaca;
}

@media (max-width: 640px) {
    .warehouse-page {
        max-width: 100%;
    }

    .warehouse-order-detail {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }

    .warehouse-status-form {
        flex-direction: column;
        align-items: stretch;
    }

    .warehouse-status-save {
        width: 100%;
    }

    .warehouse-status-log-item {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .warehouse-status-log-user {
        text-align: left;
    }
}

@media print {
    body * {
        visibility: hidden;
    }

    .warehouse-print-slip,
    .warehouse-print-slip * {
        visibility: visible;
    }

    .warehouse-print-slip {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: none;
        padding: 1rem;
        color: #000;
        background: #fff;
    }

    .warehouse-print-slip .warehouse-badge,
    .warehouse-print-slip .warehouse-order-detail-value,
    .warehouse-print-slip .warehouse-order-no,
    .warehouse-print-slip .warehouse-order-when,
    .warehouse-print-slip .warehouse-order-sum,
    .warehouse-print-slip .warehouse-items-list {
        color: #000;
    }

    .warehouse-print-slip .warehouse-badge {
        border: 1px solid #999;
        background: #f5f5f5;
    }

    .warehouse-print-qr img {
        border: 1px solid #ccc;
    }

    .no-print {
        display: none !important;
    }
}

.scroll-to-top {
    position: fixed;
    right: 1.15rem;
    bottom: 1.35rem;
    z-index: 180;
    width: 2.85rem;
    height: 2.85rem;
    border: 1px solid rgba(244, 114, 182, 0.45);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.95), rgba(16, 185, 129, 0.92));
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.75rem);
    pointer-events: none;
    transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.scroll-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    box-shadow: 0 14px 32px rgba(244, 114, 182, 0.35);
}

.scroll-to-top:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.toast-stack {
    position: fixed;
    top: 5.25rem;
    right: 1rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: min(380px, calc(100vw - 1.5rem));
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.8rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(180deg, rgba(23, 36, 58, 0.98), rgba(17, 26, 43, 0.98));
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.55);
    color: #e2e8f0;
    animation: toast-slide-in 0.28s ease;
}

.toast-item--hide {
    animation: toast-slide-out 0.24s ease forwards;
}

.toast-item--ok {
    border-color: rgba(16, 185, 129, 0.45);
}

.toast-item--error {
    border-color: rgba(239, 68, 68, 0.45);
}

.toast-item--info {
    border-color: rgba(56, 189, 248, 0.45);
}

.toast-item__icon {
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
}

.toast-item--ok .toast-item__icon {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.toast-item--error .toast-item__icon {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.toast-item--info .toast-item__icon {
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
}

.toast-item__text {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    padding-top: 0.1rem;
}

.toast-item__close {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.toast-item__close:hover {
    color: #f8fafc;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(1.1rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(1.1rem);
    }
}

@media (max-width: 640px) {
    .scroll-to-top {
        right: 0.85rem;
        bottom: 1rem;
        width: 2.65rem;
        height: 2.65rem;
        font-size: 1.25rem;
    }

    .toast-stack {
        top: auto;
        bottom: 1rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }

    .toast-item {
        animation-name: toast-slide-up;
    }

    .toast-item--hide {
        animation-name: toast-slide-down;
    }
}

@keyframes toast-slide-up {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-slide-down {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(0.75rem);
    }
}

.cart-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: rgba(11, 18, 32, 0.82);
    color: #dbe6f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cart-icon-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.65);
    transform: translateY(-1px);
}

.cart-icon-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.cart-icon-btn--added {
    border-color: rgba(16, 185, 129, 0.75);
    background: rgba(16, 185, 129, 0.22);
    transform: scale(1.08);
}

.cart-summary {
    margin-top: 1rem;
}

.cart-actions {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.cart-actions form {
    margin: 0;
}

.cart-actions .auth-button,
.cart-actions .admin-secondary-btn {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    text-decoration: none;
    white-space: nowrap;
}

.product-card-actions .cart-form,
.product-detail-order .cart-form {
    margin: 0;
}

.checkout-page {
    max-width: 1100px;
    margin: 0 auto;
}

.checkout-guest-note {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.1);
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.45;
}

.checkout-guest-note a {
    font-weight: 700;
    color: #93c5fd;
}

.order-success-page {
    max-width: 640px;
    margin: 0 auto;
}

.order-success-card {
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(23, 36, 58, 0.95), rgba(17, 26, 43, 0.95));
    box-shadow: var(--shadow);
    text-align: center;
}

.order-success-icon {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    color: #6ee7b7;
}

.order-success-card h1 {
    margin: 0 0 0.65rem;
    color: var(--white);
}

.order-success-lead {
    margin: 0 0 1rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.order-success-meta {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(11, 18, 32, 0.55);
    text-align: left;
}

.order-success-meta p {
    margin: 0.35rem 0;
    color: #dbe6f5;
}

.order-success-status {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.order-success-status--paid {
    background: rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
}

.order-success-status--cod {
    background: rgba(56, 189, 248, 0.18);
    color: #bae6fd;
}

.order-success-status--unpaid {
    background: rgba(251, 191, 36, 0.18);
    color: #fde68a;
}

.order-success-guest-hint {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
    text-align: left;
}

.order-success-guest-hint a {
    font-weight: 700;
    color: #93c5fd;
}

.order-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

.order-success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    text-decoration: none;
}

.order-success-btn--ghost {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 11px;
    padding: 0.65rem 1rem;
    color: #cbd5e1;
    background: rgba(11, 18, 32, 0.7);
    font-weight: 600;
}

.message-page {
    max-width: 640px;
    margin: 0 auto;
}

.message-card {
    padding: 1.6rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(23, 36, 58, 0.95), rgba(17, 26, 43, 0.95));
    box-shadow: var(--shadow);
    text-align: center;
}

.message-card--warn {
    border-color: rgba(251, 191, 36, 0.35);
}

.message-card--error {
    border-color: rgba(248, 113, 113, 0.35);
}

.message-card--success {
    border-color: rgba(52, 211, 153, 0.35);
}

.message-icon {
    margin: 0 0 0.35rem;
    font-size: 2rem;
    line-height: 1;
}

.message-code {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.message-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    color: var(--white);
}

.message-text {
    margin: 0 0 0.85rem;
    color: #dbe6f5;
    line-height: 1.55;
    font-size: 1rem;
}

.message-hint {
    margin: 0 0 1.1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: rgba(56, 189, 248, 0.08);
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: left;
}

.message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.message-btn-primary {
    min-width: 210px;
}

.message-btn-secondary {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(11, 18, 32, 0.7);
    color: #cbd5e1;
}

.message-btn-secondary:hover {
    border-color: rgba(148, 163, 184, 0.55);
    color: #f8fafc;
}

html.theme-light .message-card {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-color: rgba(148, 163, 184, 0.35);
}

html.theme-light .message-title {
    color: #0f172a;
}

html.theme-light .message-text {
    color: #334155;
}

html.theme-light .message-hint {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.25);
    color: #475569;
}

html.theme-light .message-btn-secondary {
    background: #f8fafc;
    color: #334155;
}

.checkout-page-title {
    margin-bottom: 1.15rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
    gap: 1.2rem;
    align-items: start;
}

.checkout-main {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.checkout-main > .checkout-step-card {
    grid-column: span 12;
}

.checkout-main > .checkout-submit-btn {
    grid-column: span 12;
}

.checkout-address-search {
    width: 100%;
    margin-top: 6px;
}

.checkout-address-row {
    display: flex;
    gap: 0.75rem;
}

.checkout-address-row .auth-label {
    flex: 1;
}

.checkout-express-note {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.checkout-valid-ok {
    color: #6ee7b7;
}

.checkout-valid-err {
    color: #fca5a5;
}

.checkout-form-error {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.42);
    font-size: 0.92rem;
}

.checkout-summary-row--total {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: var(--text, #e2e8f0);
    font-size: 1.02rem;
}

.checkout-summary-row--total strong {
    color: #6ee7b7;
}

.checkout-address-search gmp-place-autocomplete {
    width: 100%;
    display: block;
}

.checkout-step-card,
.checkout-summary-card {
    position: relative;
    border-radius: 18px;
    padding: 1.2rem 1.25rem;
    transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.checkout-step-card::before,
.checkout-summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sky), var(--green));
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.checkout-step-card:hover,
.checkout-summary-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.34);
}

.checkout-step-card--muted {
    background: linear-gradient(180deg, rgba(23, 36, 58, 0.72), rgba(17, 26, 43, 0.72));
}

.checkout-step-card.form-step-current,
.auth-card.form-step-current,
.constructor-aside.form-step-current {
    box-shadow:
        0 0 0 2px rgba(168, 85, 247, 0.55),
        0 12px 28px rgba(15, 23, 42, 0.35);
    border-color: rgba(168, 85, 247, 0.45);
}

.auth-label.form-field-current,
.checkout-step-card .auth-label.form-field-current {
    border-radius: 12px;
    padding: 0.35rem 0.45rem;
    margin: -0.35rem -0.45rem 0.65rem;
    background: rgba(124, 58, 237, 0.12);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.45);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.auth-label.form-field-current .auth-input,
.auth-label.form-field-current .auth-password-wrap .auth-input {
    border-color: rgba(168, 85, 247, 0.75);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.22);
}

.auth-label--checkbox.form-field-current {
    padding: 0.45rem 0.55rem;
}

.admin-form label.form-field-current,
.product-review-label.form-field-current {
    border-radius: 12px;
    padding: 0.35rem 0.45rem;
    margin: -0.35rem -0.45rem 0.65rem;
    background: rgba(124, 58, 237, 0.12);
    box-shadow: 0 0 0 2px rgba(168, 85, 237, 0.45);
}

.checkout-payment-placeholder {
    color: var(--muted);
    font-size: 0.95rem;
}

.checkout-submit-btn {
    width: 100%;
    margin-top: 0;
    padding: 0.9rem 1.1rem;
}

.checkout-aside {
    position: sticky;
    top: 1rem;
}

.checkout-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.checkout-summary-title {
    font-weight: 700;
}

.checkout-summary-total,
.checkout-summary-row-value {
    color: #6ee7b7;
    font-weight: 700;
}

.checkout-summary-line {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkout-summary-img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    flex-shrink: 0;
}

.checkout-summary-img--placeholder {
    background: linear-gradient(145deg, #2a3a56, #1a253d);
}

.checkout-summary-body {
    flex: 1;
    min-width: 0;
}

.checkout-summary-name {
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.checkout-summary-unit {
    margin-bottom: 0.6rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.checkout-qty-stepper {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 170px;
}

.checkout-qty-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    line-height: 1;
}

.checkout-qty-input {
    text-align: center;
}

.checkout-summary-extra,
.checkout-upsell {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.checkout-summary-extra-title,
.checkout-upsell-title {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.checkout-upsell-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.checkout-upsell-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.15rem 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.88rem;
}

.checkout-upsell-item:last-child {
    border-bottom: none;
}

.checkout-upsell-name {
    font-weight: 600;
}

.checkout-upsell-meta {
    grid-column: 1;
    color: var(--muted);
    font-size: 0.82rem;
}

.checkout-upsell-link {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    padding: 0.32rem 0.56rem;
    font-size: 0.78rem;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    font-weight: 600;
}

.checkout-upsell-na {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    text-align: center;
    color: #64748b;
}

.checkout-future-step,
.checkout-future-step--active {
    opacity: 1;
}

.checkout-recipient-mode {
    border: none;
    padding: 0;
    margin: 0 0 0.75rem;
}

.checkout-radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #dbe6f5;
    cursor: pointer;
}

.checkout-radio-label input {
    margin: 0;
}

.checkout-recipient-other {
    margin-top: 0.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

textarea.auth-input {
    resize: vertical;
    min-height: 4rem;
}

@media (max-width: 980px) {
    .admin-panel-shell {
        grid-template-columns: 1fr;
    }

    .cabinet-profile-shell {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-aside {
        position: static;
        order: -1;
    }
}

@media (min-width: 980px) {
    .checkout-main > .checkout-step-card:nth-child(1),
    .checkout-main > .checkout-step-card:nth-child(2),
    .checkout-main > .checkout-step-card:nth-child(3) {
        grid-column: span 6;
    }

    .checkout-main > .checkout-step-card:nth-child(4) {
        grid-column: span 12;
    }
}

.main > h1 {
    margin-bottom: 0.75rem;
}

.main > h2 {
    margin-top: 1.6rem;
    margin-bottom: 0.65rem;
}

.main > p {
    margin: 0.4rem 0;
    color: var(--muted);
}

.main > p strong {
    color: var(--text);
}

.main > p a {
    font-weight: 600;
}

.site-footer {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid rgba(244, 114, 182, 0.12);
    background:
        radial-gradient(circle at 10% 0%, rgba(244, 114, 182, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(10, 17, 31, 0.92) 100%),
        var(--bg-elev);
}

.site-footer__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.2rem 1rem 1.4rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 1.5rem 1.25rem;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 800;
    font-size: 1.15rem;
}

.site-footer__logo:hover {
    color: var(--white);
}

.site-footer__about {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 22rem;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
}

.site-footer__social a {
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.site-footer__title {
    margin: 0 0 0.7rem;
    font-size: 0.95rem;
    color: var(--white);
}

.site-footer__list,
.site-footer__links,
.site-footer__contacts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__list li,
.site-footer__links li,
.site-footer__contacts li {
    margin: 0 0 0.45rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.site-footer__links a,
.site-footer__contacts a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
}

.site-footer__links a:hover,
.site-footer__contacts a:hover {
    color: #7dd3fc;
}

.site-footer__pay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.site-footer__pay-label {
    color: var(--muted);
    font-size: 0.86rem;
    margin-right: 0.2rem;
}

.site-footer__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.55);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #64748b;
    font-size: 0.82rem;
}

.site-footer__bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.site-footer__bottom-links a {
    color: #64748b;
    text-decoration: none;
}

.site-footer__bottom-links a:hover {
    color: #94a3b8;
}

@media (max-width: 960px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom {
        flex-direction: column;
    }
}

.info-page {
    max-width: 820px;
    margin: 0 auto;
}

.info-page > h1 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.55rem, 3vw, 2rem);
}

.info-page__lead {
    margin: 0 0 0.5rem;
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 1rem;
}

.info-page__updated {
    margin: 0 0 1.4rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.info-page__section {
    margin-bottom: 1.35rem;
    padding: 1.1rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(23, 36, 58, 0.72), rgba(17, 26, 43, 0.88));
    box-shadow: var(--shadow);
}

.info-page__section h2 {
    margin: 0 0 0.65rem;
    font-size: 1.08rem;
    color: #e2e8f0;
}

.info-page__section h3 {
    margin: 0 0 0.45rem;
    font-size: 0.98rem;
}

.info-page__section p {
    margin: 0 0 0.55rem;
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.94rem;
}

.info-page__section p:last-child {
    margin-bottom: 0;
}

.info-page__list {
    margin: 0;
    padding-left: 1.15rem;
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.94rem;
}

.info-page__list li {
    margin-bottom: 0.4rem;
}

.info-page__list--ordered {
    padding-left: 1.25rem;
}

.info-page__note {
    margin-top: 0.85rem !important;
    color: var(--muted) !important;
    font-size: 0.88rem !important;
}

.info-page__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.info-page__card {
    padding: 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(11, 18, 32, 0.55);
}

.info-page__card p {
    font-size: 0.88rem;
}

.info-page__price {
    margin: 0.35rem 0 0 !important;
    color: #86efac !important;
    font-weight: 700;
}

.info-page__body .info-page__section {
    margin-bottom: 1.35rem;
    padding: 1.1rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(23, 36, 58, 0.72), rgba(17, 26, 43, 0.88));
    box-shadow: var(--shadow);
}

.info-page__body .info-page__section:last-child {
    margin-bottom: 0;
}

.admin-legal-hint {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.admin-legal-hint code {
    color: #fde68a;
    font-size: 0.82rem;
}

.admin-legal-lead {
    min-height: 4.5rem;
    resize: vertical;
}

.admin-legal-body {
    min-height: 22rem;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.84rem;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .info-page__cards {
        grid-template-columns: 1fr;
    }
}

.warehouse-view-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1rem;
    flex-wrap: wrap;
}

.warehouse-view-tab {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
}

.warehouse-view-tab--active {
    background: rgba(236, 72, 153, 0.18);
    border-color: rgba(236, 72, 153, 0.45);
    color: #fff;
}

.courier-finish-block {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.courier-finish-hint {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.courier-finish-form {
    margin: 0.5rem 0 0;
}

.courier-finish-btn--close {
    background: linear-gradient(135deg, #059669, #10b981);
}

.nav-notify {
    position: relative;
}

.nav-notify__btn {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 10px;
    padding: 0.4rem 0.55rem;
    cursor: pointer;
}

.nav-notify__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    line-height: 18px;
    text-align: center;
}

.nav-notify__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(320px, 92vw);
    max-height: 360px;
    overflow: auto;
    background: #1a1224;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    z-index: 120;
    padding: 0.65rem;
}

.nav-notify__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
}

.nav-notify__read-all {
    border: none;
    background: none;
    color: #f9a8d4;
    cursor: pointer;
    font-size: 0.78rem;
}

.nav-notify__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-notify__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-notify__item--read {
    opacity: 0.65;
}

.nav-notify__link {
    display: block;
    padding: 0.55rem 0.25rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.86rem;
}

.nav-notify__body {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.nav-notify__time {
    display: block;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    margin-top: 0.2rem;
}

.nav-notify__empty {
    margin: 0.5rem 0;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

.admin-menu-btn {
    position: relative;
}

.admin-menu-badge {
    position: absolute;
    top: 0.35rem;
    right: 0.45rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #38bdf8;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
}

.admin-menu-badge--unread {
    background: #ef4444;
}

.admin-support-unread {
    display: inline-block;
    min-width: 1.1rem;
    padding: 0.1rem 0.35rem;
    margin-left: 0.25rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.nav-notify__settings {
    padding: 0.5rem 0.75rem 0.65rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.alert-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.alert-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.5rem 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: rgba(11, 18, 32, 0.45);
    cursor: pointer;
    user-select: none;
}

.alert-toggle__text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.alert-toggle__title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #e2e8f0;
}

.alert-toggle__hint {
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.3;
}

.alert-toggle__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.alert-toggle__ui {
    position: relative;
    flex-shrink: 0;
    width: 2.55rem;
    height: 1.4rem;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.35);
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.alert-toggle__ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: #f8fafc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s var(--ease);
}

.alert-toggle__input:checked + .alert-toggle__ui {
    background: rgba(16, 185, 129, 0.55);
    border-color: rgba(16, 185, 129, 0.72);
}

.alert-toggle__input:checked + .alert-toggle__ui::after {
    transform: translateX(1.1rem);
}

.alert-toggle__input:focus-visible + .alert-toggle__ui {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.alert-toggle__input:disabled + .alert-toggle__ui {
    opacity: 0.45;
    cursor: not-allowed;
}

.alert-toggle:has(.alert-toggle__input:disabled) {
    cursor: not-allowed;
    opacity: 0.75;
}

.alert-toggles__note {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #fbbf24;
}

.admin-support-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.admin-support-tabs {
    display: flex;
    gap: 0.45rem;
}

.admin-support-tab {
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 8px;
    background: rgba(11, 18, 32, 0.8);
    color: #ccecff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
}

.admin-support-tab--active {
    background: rgba(16, 185, 129, 0.24);
    border-color: rgba(16, 185, 129, 0.82);
    color: #d1fae5;
}

.admin-support-chat-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.admin-support-chat-info {
    flex: 1;
    min-width: 12rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.admin-support-messages {
    max-height: 22rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    background: rgba(11, 18, 32, 0.45);
}

.admin-support-msg {
    max-width: 85%;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.4;
    word-break: break-word;
}

.admin-support-msg--client {
    align-self: flex-start;
    background: rgba(56, 189, 248, 0.15);
    color: #e0f2fe;
}

.admin-support-msg--admin {
    align-self: flex-end;
    background: rgba(16, 185, 129, 0.2);
    color: #d1fae5;
}

.admin-support-msg--system {
    align-self: center;
    max-width: 100%;
    background: rgba(148, 163, 184, 0.12);
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

.admin-support-msg__who {
    display: block;
    font-size: 0.72rem;
    opacity: 0.8;
    margin-bottom: 0.15rem;
}

.admin-support-msg__time {
    display: block;
    font-size: 0.68rem;
    opacity: 0.65;
    margin-top: 0.2rem;
}

.admin-support-compose {
    display: flex;
    gap: 0.5rem;
}

.admin-support-compose input {
    flex: 1;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    background: rgba(11, 18, 32, 0.75);
    color: #e2e8f0;
    font: inherit;
}

.admin-table--compact td,
.admin-table--compact th {
    font-size: 0.85rem;
    padding: 0.45rem 0.5rem;
}

.admin-stats-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-stats-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-end;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
}

.admin-stats-export {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 0.45rem 0.85rem;
}

.admin-stats-intro {
    margin: 0 0 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.45;
}

.admin-stats-filter-summary {
    margin: 0 0 1rem;
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.4;
}

.admin-stats-section-title {
    margin: 1.25rem 0 0.75rem;
    font-size: 1.05rem;
    color: #f8fafc;
}

.admin-stats-chart-hint {
    margin: -0.35rem 0 0.65rem;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.35;
}

.admin-stats-chart-foot {
    margin: 0.5rem 0 0;
    color: #cbd5e1;
    font-size: 0.8rem;
}

.admin-stats-kpi .admin-stat {
    cursor: help;
}

.admin-stats-period-label {
    margin: 0 0 0.35rem;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.admin-stats-kpi {
    margin-bottom: 0.25rem;
}

.admin-stats-delta {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.admin-stats-delta--up {
    color: #4ade80;
}

.admin-stats-delta--down {
    color: #f87171;
}

.admin-stats-delta--flat {
    color: #94a3b8;
}

.admin-stats-compare-hint {
    margin: 0 0 0.5rem;
    color: #94a3b8;
    font-size: 0.82rem;
}

.admin-stats-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-stats-chart-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    padding: 0.85rem;
}

.admin-stats-chart-card--wide {
    grid-column: 1 / -1;
}

.admin-stats-chart-card h4 {
    margin: 0 0 0.65rem;
    color: #f8fafc;
    font-size: 0.95rem;
}

.admin-stats-chart-wrap {
    position: relative;
    height: 220px;
}

.admin-stats-chart-wrap--tall {
    height: 280px;
}

.admin-stats-tables {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.admin-stats-table-block {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    padding: 0.85rem;
    overflow-x: auto;
}

.admin-stats-table-block h4 {
    margin: 0 0 0.65rem;
    color: #f8fafc;
}

.admin-stats-table {
    width: 100%;
}

.admin-stats-empty,
.admin-stats-error {
    color: #94a3b8;
    margin: 0.5rem 0;
}

.admin-stats-error {
    color: #f87171;
}

@media (max-width: 900px) {
    .admin-stats-charts,
    .admin-stats-tables {
        grid-template-columns: 1fr;
    }

    .admin-stats-chart-card--wide {
        grid-column: auto;
    }
}
