:root {
    --bg: #0e1116;
    --bg-soft: #151a21;
    --panel: rgba(24, 30, 40, 0.86);
    --panel-strong: #1b2431;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.22);
    --text: #eef2f7;
    --muted: rgba(238, 242, 247, 0.72);
    --accent: #d6b67d;
    --accent-2: #b78d4f;
    --accent-rgb: 213, 181, 122;
    --accent-2-rgb: 183, 141, 79;
    --accent-dark: #4e3a21;
    --body-bg-top: #0d1117;
    --body-bg-bottom: #0b0e13;
    --header-bg: rgba(10, 14, 20, 0.87);
    --logo-color: #ffffff;
    --success: #8ad4a7;
    --danger: #ffb5b5;
    --max-content: 1240px;
    --radius: 16px;
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] {
    --bg: #f1eee8;
    --bg-soft: #f8f4ee;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: #ffffff;
    --line: rgba(17, 17, 17, 0.14);
    --line-strong: rgba(17, 17, 17, 0.28);
    --text: #101418;
    --muted: rgba(16, 20, 24, 0.66);
    --accent: #151515;
    --accent-2: #252525;
    --accent-rgb: 21, 21, 21;
    --accent-2-rgb: 37, 37, 37;
    --accent-dark: #030406;
    --body-bg-top: #f6f1e7;
    --body-bg-bottom: #ece5da;
    --header-bg: rgba(252, 249, 244, 0.94);
    --logo-color: #0f1317;
    --success: #327d53;
    --danger: #c14949;
    --shadow: 0 16px 36px rgba(14, 20, 28, 0.08);
}

html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Regular.5e077c15f6e1.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Medium.bdb7ba651b7b.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-SemiBold.cc10461cb5e0.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Bold.ed86af2ed5bb.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body.site-body {
    margin: 0;
    color: var(--text);
    font-family: "Montserrat", sans-serif;
    background:
        radial-gradient(1200px 500px at 7% -10%, rgba(var(--accent-rgb), 0.18), transparent 58%),
        radial-gradient(900px 450px at 100% 0, rgba(var(--accent-rgb), 0.1), transparent 52%),
        linear-gradient(180deg, var(--body-bg-top), var(--body-bg-bottom));
    min-height: 100vh;
}

button,
input,
select,
textarea {
    font-family: "Montserrat", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: 0.01em;
}

body.site-body.nav-open {
    overflow: hidden;
}

body.site-body.lightbox-open {
    overflow: hidden;
}

@keyframes fade-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.045) 0.7px, transparent 0.7px);
    background-size: 4px 4px;
    opacity: 0.08;
    z-index: -1;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 2100;
    backdrop-filter: blur(10px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    isolation: isolate;
}

.site-header__inner {
    width: min(var(--max-content), calc(100% - 30px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 74px;
    flex-wrap: nowrap;
    position: relative;
}

.site-logo {
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
    font-size: 21px;
    color: var(--logo-color);
    white-space: nowrap;
}

.site-header-search {
    margin-left: 8px;
    flex: 0 1 clamp(260px, 35vw, 460px);
    min-width: 0;
}

.site-header-search__field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
}

.site-header-search__field:focus-within {
    border-color: rgba(var(--accent-rgb), 0.72);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.16);
}

.site-header-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.site-header-search__input {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    min-height: 34px;
    padding: 0 14px;
    width: 100%;
    font-family: inherit;
}

.site-header-search__input:focus {
    outline: none;
}

.site-header-search__input::placeholder {
    color: rgba(238, 242, 247, 0.55);
}

.site-header-search__hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(238, 242, 247, 0.62);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.03);
    user-select: none;
    pointer-events: none;
}

@keyframes theme-toggle-shimmer {
    0% {
        transform: translateX(-120%);
        opacity: 0;
    }
    22% {
        opacity: 1;
    }
    100% {
        transform: translateX(160%);
        opacity: 0;
    }
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    min-height: 36px;
    padding: 4px 8px 4px 4px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
}

.theme-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.theme-toggle__track {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.58);
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.1));
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle__track::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.78) 50%, transparent 100%);
    transform: translateX(-130%);
    opacity: 0;
}

.theme-toggle.is-flipping .theme-toggle__track::before {
    animation: theme-toggle-shimmer 0.42s ease both;
}

.theme-toggle__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.26s ease, background 0.26s ease;
}

.theme-toggle.is-dark .theme-toggle__thumb {
    transform: translateX(20px);
    background: #f3d89f;
}

.theme-toggle__label {
    white-space: nowrap;
    user-select: none;
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: visible;
    padding: 2px 0;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11.5px;
    line-height: 1;
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.site-nav__toggle {
    font-family: inherit;
    appearance: none;
    cursor: pointer;
}

.site-nav__toggle::after {
    content: "▾";
    margin-left: 7px;
    font-size: 10px;
    opacity: 0.75;
}

.site-nav__link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.site-nav__link.is-current {
    border-color: rgba(var(--accent-rgb), 0.72);
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-rgb), 0.1));
}

.site-nav__link.is-accent {
    border-color: rgba(var(--accent-rgb), 0.7);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.24), rgba(var(--accent-rgb), 0.08));
}

.site-nav__link.is-utility {
    border-color: rgba(138, 212, 167, 0.55);
}

.site-nav__item {
    position: relative;
    padding-bottom: 4px;
}

.site-nav__item.has-submenu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 20px;
}

.site-nav__submenu {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    min-width: 230px;
    display: none;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(8, 12, 18, 0.98);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.site-nav__submenu-link {
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    min-height: 36px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
}

.site-nav__submenu-link:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.07);
}

.site-nav__submenu-link.is-current {
    border-color: rgba(var(--accent-rgb), 0.72);
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.08));
}

.site-nav__item.is-submenu-open .site-nav__submenu {
    display: grid;
}

.site-nav__item--account .site-nav__submenu {
    left: auto;
    right: 0;
}

@media (min-width: 1025px) {
    .site-nav__item.has-submenu:hover > .site-nav__submenu,
    .site-nav__item.has-submenu:focus-within > .site-nav__submenu {
        display: grid;
    }
}

.mobile-nav-toggle,
.mobile-nav-close {
    display: none;
    border: 1px solid var(--line);
    background: transparent;
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    position: relative;
    z-index: 4100;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.mobile-nav-head {
    display: none;
}

.mobile-nav-title,
.mobile-nav-subtitle {
    margin: 0;
}

.mobile-nav-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.mobile-nav-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(232, 238, 245, 0.68);
}

.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 12, 0.72);
    z-index: 3900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mobile-nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

#content {
    width: min(var(--max-content), calc(100% - 30px));
    margin: 20px auto 30px;
}

.flash-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.floating-toast {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translate(-50%, -10px);
    width: min(840px, calc(100% - 20px));
    border: 1px solid rgba(138, 212, 167, 0.52);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(138, 212, 167, 0.22), rgba(9, 18, 14, 0.96));
    color: #e8f9ee;
    padding: 14px 16px;
    text-align: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 3300;
}

.floating-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.floating-toast--important {
    border-width: 2px;
    border-color: rgba(138, 212, 167, 0.92);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.52);
    font-size: 15px;
    line-height: 1.45;
}

.flash-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
}

.flash-success {
    border-color: rgba(138, 212, 167, 0.45);
}

.flash-warning {
    border-color: rgba(243, 212, 141, 0.45);
}

.flash-error {
    border-color: rgba(255, 181, 181, 0.45);
}

.page-shell {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    animation: fade-rise 0.36s ease both;
}

.page-shell + .page-shell {
    margin-top: 16px;
}

.page-shell--soft {
    background: rgba(18, 24, 34, 0.82);
}

.page-header {
    text-align: center;
    margin-bottom: 16px;
}

.order-cta-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.order-cta-card {
    display: grid;
    gap: 10px;
    align-content: start;
}

.page-title {
    margin: 0 0 8px;
    font-size: clamp(25px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.2;
}

.page-title.is-left,
.page-subtitle.is-left {
    text-align: left;
}

.page-subtitle {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.page-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.section-stack {
    display: grid;
    gap: 14px;
}

.u-grid-fluid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.u-adaptive-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.u-overflow-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.grid-cards,
.feature-grid,
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.article-card,
.template-card,
.profile-card,
.order-card,
.feature-card,
.kpi-card {
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.article-card:hover,
.template-card:hover,
.profile-card:hover,
.order-card:hover,
.feature-card:hover,
.kpi-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: rgba(34, 43, 58, 0.9);
}

.article-card h3,
.template-card h3,
.profile-card h3,
.order-card h3,
.feature-card h3,
.kpi-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.article-card p,
.template-card p,
.profile-card p,
.order-card p,
.feature-card p,
.kpi-card p {
    margin: 0 0 8px;
    color: var(--muted);
}

.kpi-card strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
}

.hero-shell {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    background: linear-gradient(140deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0.02));
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 18px;
}

.hero-shell__left h1 {
    margin: 10px 0 12px;
    font-size: clamp(30px, 4.6vw, 48px);
    line-height: 1.1;
}

.hero-shell__left p {
    color: var(--muted);
    margin: 0;
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.52);
    padding: 6px 12px;
    font-size: 12px;
    color: var(--accent);
}

.hero-cta {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-facts {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-facts article {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.hero-facts strong {
    display: block;
    font-size: 18px;
}

.hero-facts span {
    color: var(--muted);
    font-size: 13px;
}

.hero-shell__right,
.media-frame {
    border-radius: 16px;
    overflow: hidden;
    min-height: 290px;
}

.hero-shell__right img,
.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.info-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 7px;
}

.notice-strip {
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.15), rgba(var(--accent-rgb), 0.05));
    border-radius: 12px;
    padding: 12px 14px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.table-pricing {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.table-pricing th,
.table-pricing td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    padding: 11px 12px;
    vertical-align: top;
    line-height: 1.45;
}

.table-pricing th {
    background: rgba(255, 255, 255, 0.04);
    font-size: 14px;
}

.table-pricing td:last-child,
.table-pricing th:last-child {
    white-space: nowrap;
    width: 130px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

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

.btn-main,
.btn-ghost,
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 11px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15px;
    transition: transform 0.2s ease, border-color 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn-main {
    background: linear-gradient(145deg, var(--accent), var(--accent-2));
    color: #1a1410;
    border-color: rgba(var(--accent-rgb), 0.88);
    box-shadow: 0 8px 20px rgba(183, 144, 75, 0.28);
}

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

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-color: var(--line);
}

.btn-ghost:hover,
.btn-link:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
}

.btn-ghost.is-current,
.btn-link.is-current {
    border-color: rgba(var(--accent-rgb), 0.72);
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.08));
}

.btn-link {
    background: rgba(255, 255, 255, 0.01);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

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

.form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-label {
    color: var(--muted);
    font-size: 13px;
}

.inputf1,
.inputfsup,
.form-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-shell select,
.form-shell textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    padding: 10px 12px;
    font: inherit;
}

.form-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(var(--accent-rgb), 0.95) 50%),
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.95) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.form-shell textarea {
    min-height: 110px;
    resize: vertical;
}

.form-shell input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.92) sepia(0.2) saturate(1.3);
    cursor: pointer;
}

.input-date {
    min-height: 44px;
}

.date-input-wrap {
    display: grid;
    gap: 7px;
}

.date-picker-trigger {
    min-height: 35px;
    border-radius: 9px;
    border: 1px dashed rgba(var(--accent-rgb), 0.58);
    background: rgba(var(--accent-rgb), 0.08);
    color: #f6e8cc;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.date-picker-trigger:hover {
    background: rgba(var(--accent-rgb), 0.16);
}

.checkf1 {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.checkf1::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    transform: scale(0);
    transition: transform 0.15s ease;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.checkf1:checked::after {
    transform: scale(1);
}

.switch-control {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.1), rgba(255, 255, 255, 0.02));
    padding: 10px 12px;
    cursor: pointer;
}

.switch-control input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.switch-control__track {
    position: relative;
    width: 50px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease;
    flex: 0 0 auto;
}

.switch-control__track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f2f4f8;
    transition: transform 0.18s ease;
}

.switch-control input[type="checkbox"]:checked + .switch-control__track {
    border-color: rgba(var(--accent-rgb), 0.9);
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.16));
}

.switch-control input[type="checkbox"]:checked + .switch-control__track::after {
    transform: translateX(22px);
    background: #fff3de;
}

.switch-control__text {
    color: var(--muted);
    font-size: 14px;
}

.inputf1:focus,
.inputfsup:focus,
.form-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.form-shell select:focus,
.form-shell textarea:focus {
    outline: none;
    border-color: rgba(var(--accent-rgb), 0.72);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.inputf1:invalid,
.form-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):invalid,
.form-shell select:invalid,
.form-shell textarea:invalid {
    border-color: rgba(255, 181, 181, 0.62);
}

.inputf1.is-invalid,
.form-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]).is-invalid,
.form-shell select.is-invalid,
.form-shell textarea.is-invalid {
    border-color: rgba(255, 181, 181, 0.82);
    box-shadow: 0 0 0 3px rgba(255, 181, 181, 0.12);
}

.errorlist,
.form-errors {
    margin: 0;
    list-style: none;
    padding: 0;
    color: var(--danger);
    font-size: 12px;
}

.errorlist li,
.form-errors li {
    margin: 0;
}

.auth-entry-strip {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 12px;
}

.auth-panel {
    align-content: start;
}

.auth-step-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 7px;
    color: var(--muted);
}

.specialty-picker-wrap > div {
    display: grid;
    gap: 8px;
}

.specialty-picker-wrap > div > div {
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.specialty-picker-wrap label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    cursor: pointer;
}

.specialty-picker-wrap input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    margin: 0;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.specialty-picker-wrap input[type="checkbox"]::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 3px;
    transform: scale(0);
    transition: transform 0.15s ease;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.specialty-picker-wrap input[type="checkbox"]:checked::after {
    transform: scale(1);
}

.multi-select {
    border: 1px solid rgba(var(--accent-rgb), 0.26);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.multi-select[open] {
    border-color: rgba(var(--accent-rgb), 0.62);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.12);
}

.multi-select__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.13), rgba(var(--accent-rgb), 0.04));
    color: #f7e7c8;
    font-weight: 600;
}

.multi-select__summary::-webkit-details-marker {
    display: none;
}

.multi-select__summary::after {
    content: "▾";
    font-size: 13px;
    opacity: 0.82;
    transition: transform 0.18s ease;
}

.multi-select[open] > .multi-select__summary::after {
    transform: rotate(180deg);
}

.multi-select__panel {
    display: grid;
    gap: 8px;
    max-height: min(42vh, 360px);
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
}

.multi-select__hint {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.multi-select__option {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.multi-select__option label {
    min-height: 42px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.multi-select__option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--accent);
}

.multi-select__option span {
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
}

.multi-select__option:hover {
    border-color: rgba(var(--accent-rgb), 0.52);
    background: rgba(var(--accent-rgb), 0.12);
}

.multi-select--brands .multi-select__panel {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.consent-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 12px;
    cursor: pointer;
}

.consent-check span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.consent-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex: 0 0 auto;
}

.chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.chip-row--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.chip-row--scroll .btn-link,
.chip-row--scroll .btn-ghost {
    white-space: nowrap;
    flex: 0 0 auto;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
}

.profile-grid,
.order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quick-info {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
}

.quick-info p {
    margin: 0;
    color: var(--muted);
}

.quick-info p + p {
    margin-top: 8px;
}

#support-ticket-list .feature-card {
    border-color: rgba(var(--accent-rgb), 0.22);
}

#support-ticket-list .quick-info {
    background: rgba(255, 255, 255, 0.02);
}

.kanban-board {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.kanban-column {
    min-width: 320px;
    max-width: 360px;
    flex: 0 0 340px;
}

.kanban-dropzone {
    min-height: 68px;
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 2px;
    border-radius: 12px;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.kanban-dropzone.is-drop-hover {
    background: rgba(var(--accent-rgb), 0.11);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.48);
}

.kanban-card {
    margin: 0;
    padding: 10px;
    cursor: grab;
}

.kanban-card.is-dragging {
    opacity: 0.55;
    cursor: grabbing;
}

.kanban-status-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.kanban-empty {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.message-inline-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.btn-link.is-danger {
    border-color: rgba(255, 158, 158, 0.42);
    color: #ffd0d0;
}

.btn-link.is-danger:hover {
    border-color: rgba(255, 158, 158, 0.72);
    background: rgba(255, 128, 128, 0.14);
    color: #ffe6e6;
}

.shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 14px;
}

.products-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.product-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--panel);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.48);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.product-card__image-wrap {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    height: 190px;
    overflow: hidden;
}

.product-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.product-card__image-empty {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--muted);
}

.product-card__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-card__meta {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.product-card__body h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
}

.product-card__body h3 a {
    text-decoration: none;
}

.product-card__body p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.product-card__bottom {
    margin-top: auto;
    display: grid;
    gap: 8px;
}

.product-card__add {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 8px;
}

.product-price strong {
    font-size: 20px;
    line-height: 1.2;
}

.shop-sidebar {
    display: grid;
    gap: 12px;
    align-self: start;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 104px);
    overflow-y: hidden;
    overflow-x: hidden;
    padding-right: 4px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.shop-sidebar:hover,
.shop-sidebar:focus-within {
    overflow-y: auto;
}

#shop-cart-panel {
    display: grid;
    gap: 10px;
}

.cart-items {
    display: grid;
    gap: 10px;
    max-height: min(52vh, 560px);
    overflow-y: auto;
    padding-right: 4px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.cart-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.cart-item__actions {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.cart-total {
    margin: 8px 0 12px;
}

.shop-filter-form {
    margin-top: 10px;
}

.category-quick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-quick-link {
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    font-size: 12px;
}

.category-quick-link.is-active {
    border-color: rgba(var(--accent-rgb), 0.72);
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.08));
}

.catalog-categories-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.catalog-category-chip {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.catalog-category-chip input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--accent);
}

.catalog-category-chip span {
    font-size: 13px;
    color: var(--muted);
}

.catalog-category-chip.is-active {
    border-color: rgba(var(--accent-rgb), 0.66);
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.06));
}

.catalog-pick-toolbar {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.catalog-pick-toolbar__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.catalog-pick-toolbar__qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.catalog-pick-toolbar__qty .inputf1 {
    width: 92px;
}

.catalog-product-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.catalog-product-selector input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--accent);
}

.product-card.is-picked {
    border-color: rgba(var(--accent-rgb), 0.7);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.38);
}

.site-search-form {
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(22, 30, 45, 0.68), rgba(18, 24, 36, 0.52));
    padding: 16px;
}

.site-search-form .form-row {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
}

.site-search-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.site-search-actions .btn-main,
.site-search-actions .btn-ghost {
    width: 100%;
    justify-content: center;
}

.site-search-token-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-search-token-list code {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
}

.search-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.search-section-head h2 {
    margin: 0;
}

.search-count {
    color: var(--muted);
    font-size: 12px;
}

.search-hit-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(var(--accent-rgb), 0.55);
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(var(--accent-rgb), 0.1);
    color: #ffe6be;
    font-size: 11px;
}

.phone-verify-row {
    align-items: end;
}

.phone-verify-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.phone-verify-status.status-success {
    border-color: rgba(138, 212, 167, 0.62);
}

.phone-verify-status.status-error {
    border-color: rgba(255, 181, 181, 0.62);
}

#shop-inline-status.status-success {
    border-color: rgba(138, 212, 167, 0.62);
}

#shop-inline-status.status-error {
    border-color: rgba(255, 181, 181, 0.62);
}

.pagination-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.owner-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}

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

.owner-table th,
.owner-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.owner-table th {
    background: rgba(255, 255, 255, 0.04);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
}

.product-detail__media {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    min-height: 320px;
}

.product-detail__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail__content {
    display: grid;
    gap: 10px;
    align-content: start;
}

.article-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 14px;
}

.article-image-card {
    margin: 0;
}

.article-image-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.article-image-card figcaption {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.article-content {
    line-height: 1.65;
    color: rgba(238, 242, 247, 0.93);
    white-space: normal;
}

.article-content p {
    margin: 0 0 10px;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 16px 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 26px;
    background: rgba(6, 9, 13, 0.7);
}

.support-widget-toggle {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    border: 1px solid rgba(var(--accent-rgb), 0.72);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.94), rgba(var(--accent-2-rgb), 0.94));
    color: #17110c;
    min-height: 46px;
    padding: 0 16px;
    font: inherit;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.36);
    cursor: pointer;
}

.support-widget {
    position: fixed;
    right: 16px;
    bottom: 72px;
    width: min(370px, calc(100vw - 20px));
    max-height: min(72vh, 620px);
    z-index: 60;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(9, 13, 20, 0.98);
    box-shadow: var(--shadow);
    display: none;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
    resize: both;
    min-width: 320px;
    min-height: 360px;
}

.support-widget.is-open {
    display: grid;
}

.support-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 10px;
    border-bottom: 1px solid var(--line);
}

.support-widget__head h3 {
    margin: 0;
    font-size: 16px;
}

.support-widget__close {
    border: 1px solid var(--line);
    background: transparent;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    cursor: pointer;
}

.support-widget__status {
    padding: 8px 12px;
    color: var(--muted);
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.support-widget__messages {
    overflow-y: auto;
    padding: 10px 12px;
    display: grid;
    gap: 8px;
}

.support-widget__bubble {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.4;
}

.support-widget__bubble.is-user {
    background: rgba(var(--accent-rgb), 0.14);
    border-color: rgba(var(--accent-rgb), 0.42);
}

.support-widget__bubble.is-support {
    background: rgba(255, 255, 255, 0.03);
}

.support-widget__bubble-meta {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 4px;
}

.support-widget__delete {
    margin-top: 8px;
    min-height: 30px;
    padding: 0 10px;
}

.support-widget__form {
    border-top: 1px solid var(--line);
    padding: 10px 12px 12px;
    display: grid;
    gap: 8px;
}

.support-widget__form textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    padding: 9px 10px;
    resize: vertical;
    min-height: 68px;
    font: inherit;
}

.support-widget__file-input,
.support-file-input,
.support-widget__form input[type="file"] {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    padding: 8px 10px;
    font: inherit;
}

.support-widget__file-input::file-selector-button,
.support-file-input::file-selector-button {
    margin-right: 10px;
    border: 1px solid rgba(var(--accent-rgb), 0.58);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.92), rgba(var(--accent-2-rgb), 0.92));
    color: #1d150a;
    font: inherit;
    font-weight: 700;
    min-height: 34px;
    padding: 0 12px;
    cursor: pointer;
}

.support-widget__file-input:hover,
.support-file-input:hover {
    border-color: rgba(var(--accent-rgb), 0.62);
}

.attachment-list {
    margin: 8px 0 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.attachment-list li {
    line-height: 1.35;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
    display: grid;
    gap: 8px;
}

.attachment-list__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.attachment-preview {
    display: block;
    width: min(100%, 340px);
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(6, 9, 14, 0.7);
}

.attachment-preview--image {
    height: auto;
}

.attachment-preview--video {
    max-height: 220px;
}

.support-widget__messages .attachment-preview {
    width: min(100%, 220px);
}

.is-lightbox-target {
    cursor: zoom-in;
}

.site-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    background: rgba(2, 5, 9, 0.92);
    padding: 56px 24px 44px;
    align-items: center;
    justify-content: center;
}

.site-lightbox.is-open {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.site-lightbox__image {
    max-width: min(86vw, 1180px);
    max-height: min(76vh, 840px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.03);
}

.site-lightbox__close,
.site-lightbox__nav {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(11, 16, 25, 0.88);
    color: #fff;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    font: inherit;
    font-size: 22px;
}

.site-lightbox__close {
    position: absolute;
    top: 14px;
    right: 16px;
}

.site-lightbox__nav:disabled {
    opacity: 0.4;
    cursor: default;
}

.site-lightbox__caption {
    grid-column: 1 / -1;
    margin: 0;
    text-align: center;
    color: rgba(236, 242, 250, 0.86);
}

.kanban-card__drag {
    border: 1px solid rgba(var(--accent-rgb), 0.46);
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
    font: inherit;
    font-size: 12px;
    min-height: 28px;
    padding: 0 10px;
    cursor: grab;
    margin-bottom: 8px;
}

.kanban-card__drag:active {
    cursor: grabbing;
}

.kanban-card.is-dragging .kanban-card__drag {
    opacity: 0.75;
}

.footer-shell {
    width: min(var(--max-content), calc(100% - 30px));
    margin: 0 auto;
    padding: 20px 0 26px;
}

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

.footer-grid h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.footer-grid p {
    margin: 0 0 4px;
    color: var(--muted);
    line-height: 1.45;
}

.footer-copy {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

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

.allauth-box {
    max-width: 620px;
    margin: 0 auto;
}

html[data-theme="light"] body.site-body {
    background:
        radial-gradient(1000px 420px at 4% -20%, rgba(var(--accent-rgb), 0.07), transparent 58%),
        radial-gradient(840px 420px at 100% -10%, rgba(var(--accent-rgb), 0.04), transparent 52%),
        linear-gradient(180deg, var(--body-bg-top), var(--body-bg-bottom));
}

html[data-theme="light"] .site-noise {
    opacity: 0.035;
    background-image: radial-gradient(rgba(20, 20, 20, 0.06) 0.7px, transparent 0.7px);
}

html[data-theme="light"] .site-header {
    box-shadow: 0 10px 26px rgba(20, 25, 32, 0.06);
}

html[data-theme="light"] .site-header-search__field {
    background: #ffffff;
}

html[data-theme="light"] .site-header-search__hint {
    border-color: rgba(14, 20, 28, 0.2);
    color: rgba(16, 20, 24, 0.62);
    background: rgba(14, 20, 28, 0.04);
}

html[data-theme="light"] .site-header-search__input::placeholder {
    color: rgba(16, 20, 24, 0.48);
}

html[data-theme="light"] .site-nav__link,
html[data-theme="light"] .site-nav__submenu-link,
html[data-theme="light"] .mobile-nav-toggle,
html[data-theme="light"] .mobile-nav-close {
    color: #12161a;
}

html[data-theme="light"] .site-nav__link {
    background: rgba(255, 255, 255, 0.84);
}

html[data-theme="light"] .site-nav__link.is-current,
html[data-theme="light"] .site-nav__link.is-accent,
html[data-theme="light"] .site-nav__submenu-link.is-current,
html[data-theme="light"] .btn-ghost.is-current,
html[data-theme="light"] .btn-link.is-current {
    color: #12161a;
    border-color: rgba(16, 20, 24, 0.28);
    background: rgba(16, 20, 24, 0.08);
}

html[data-theme="light"] .site-nav__submenu {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 26px rgba(20, 25, 32, 0.12);
}

html[data-theme="light"] .page-shell--soft {
    background: rgba(255, 255, 255, 0.86);
}

html[data-theme="light"] .article-card,
html[data-theme="light"] .template-card,
html[data-theme="light"] .profile-card,
html[data-theme="light"] .order-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .kpi-card {
    background: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .article-card:hover,
html[data-theme="light"] .template-card:hover,
html[data-theme="light"] .profile-card:hover,
html[data-theme="light"] .order-card:hover,
html[data-theme="light"] .feature-card:hover,
html[data-theme="light"] .kpi-card:hover {
    background: rgba(247, 249, 252, 0.96);
}

html[data-theme="light"] .btn-main {
    color: #ffffff;
    border-color: rgba(15, 15, 15, 0.9);
    background: #141414;
    box-shadow: 0 8px 20px rgba(15, 20, 28, 0.14);
}

html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .btn-link {
    color: #14181c;
    background: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .btn-ghost:hover,
html[data-theme="light"] .btn-link:hover {
    background: #f2f5f8;
}

html[data-theme="light"] .btn-main:hover {
    filter: none;
    background: #090909;
}

html[data-theme="light"] .inputf1,
html[data-theme="light"] .inputfsup,
html[data-theme="light"] .form-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html[data-theme="light"] .form-shell select,
html[data-theme="light"] .form-shell textarea {
    background: #ffffff;
    color: #111417;
    border-color: rgba(14, 20, 28, 0.18);
}

html[data-theme="light"] .date-picker-trigger,
html[data-theme="light"] .multi-select__summary,
html[data-theme="light"] .search-hit-badge {
    color: #111417;
}

html[data-theme="light"] .form-shell input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
}

html[data-theme="light"] .floating-toast {
    background: #ffffff;
    color: #111417;
    border-color: rgba(50, 125, 83, 0.44);
    box-shadow: 0 16px 36px rgba(14, 20, 28, 0.14);
}

html[data-theme="light"] .site-lightbox {
    border-color: rgba(14, 20, 28, 0.16);
    background: rgba(248, 249, 252, 0.97);
}

html[data-theme="light"] .site-lightbox__close,
html[data-theme="light"] .site-lightbox__nav {
    background: rgba(255, 255, 255, 0.98);
    color: #12161a;
}

html[data-theme="light"] .site-lightbox__caption {
    color: rgba(16, 20, 24, 0.8);
}

html[data-theme="light"] .mobile-nav-backdrop {
    background: rgba(17, 22, 28, 0.22);
}

html[data-theme="light"] .support-widget-toggle,
html[data-theme="light"] .support-widget__file-input::file-selector-button,
html[data-theme="light"] .support-file-input::file-selector-button {
    color: #ffffff;
}

html[data-theme="light"] .site-footer {
    background: rgba(248, 244, 236, 0.94);
    border-top-color: rgba(17, 17, 17, 0.14);
}

html[data-theme="light"] .footer-grid h3 {
    color: #121417;
}

html[data-theme="light"] .footer-grid p,
html[data-theme="light"] .footer-copy {
    color: rgba(18, 20, 23, 0.72);
}

html[data-theme="light"] .footer-grid a {
    color: #111315;
}

html[data-theme="light"] .page-shell,
html[data-theme="light"] .hero-shell,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .kpi-card,
html[data-theme="light"] .product-card,
html[data-theme="light"] .order-card,
html[data-theme="light"] .article-card,
html[data-theme="light"] .profile-card,
html[data-theme="light"] .template-card {
    backdrop-filter: none;
}

@media (max-width: 1180px) {
    .site-header__inner,
    .footer-shell,
    #content {
        width: calc(100% - 20px);
    }

.site-nav {
        gap: 6px;
    }

    .site-header-search {
        flex-basis: clamp(220px, 32vw, 340px);
    }

    .theme-toggle__label {
        display: none;
    }

    .site-nav__link {
        padding: 6px 8px;
        font-size: 11px;
    }

    .site-nav__toggle::after {
        margin-left: 6px;
        font-size: 9px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .site-header-search {
        display: none;
    }

    .theme-toggle {
        margin-left: auto;
        min-height: 38px;
        padding-right: 6px;
        gap: 6px;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        margin-left: 0;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        min-height: 46px;
        padding: 0 16px;
        border-color: rgba(var(--accent-rgb), 0.62);
        background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.12));
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .mobile-nav-toggle:hover {
        transform: translateY(-1px);
        border-color: rgba(var(--accent-rgb), 0.9);
    }

    html[data-theme="light"] .mobile-nav-toggle {
        background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0.06));
        border-color: rgba(var(--accent-rgb), 0.32);
    }

    .mobile-nav-backdrop {
        display: block;
        background: linear-gradient(180deg, rgba(2, 6, 12, 0.72), rgba(1, 3, 7, 0.86));
        backdrop-filter: blur(3px);
    }

    .site-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        top: var(--mobile-nav-offset-top, calc(env(safe-area-inset-top, 0px) + 102px));
        bottom: var(--mobile-nav-offset-bottom, calc(env(safe-area-inset-bottom, 0px) + 12px));
        margin-left: 0;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 22px;
        padding: 14px 14px 16px;
        background: radial-gradient(circle at 20% 0%, rgba(var(--accent-rgb), 0.18), transparent 48%), rgba(8, 12, 18, 0.98);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
        transform: translateY(-14px) scale(0.985);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.24s ease, opacity 0.24s ease;
        z-index: 4050;
        overflow-x: hidden;
        overflow-y: auto;
        align-content: start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: auto;
        will-change: transform;
    }

    .site-nav.is-open {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
    }

    body.nav-open .mobile-nav-toggle {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-4px);
    }

    .mobile-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 2;
        padding: 10px 8px 12px;
        border-radius: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(8, 12, 18, 0.96);
    }

    html[data-theme="light"] .site-nav {
        background: radial-gradient(circle at 20% 0%, rgba(var(--accent-rgb), 0.08), transparent 46%), rgba(255, 255, 255, 0.98);
        border-color: rgba(14, 20, 28, 0.16);
        box-shadow: 0 24px 64px rgba(14, 20, 28, 0.14);
    }

    html[data-theme="light"] .mobile-nav-head {
        background: rgba(255, 255, 255, 0.98);
        border-bottom-color: rgba(14, 20, 28, 0.12);
    }

    html[data-theme="light"] .mobile-nav-title {
        color: #12161a;
    }

    html[data-theme="light"] .mobile-nav-subtitle {
        color: rgba(16, 20, 24, 0.78);
    }

    html[data-theme="light"] .site-nav__item.has-submenu {
        background: rgba(248, 249, 251, 0.92);
        border-color: rgba(14, 20, 28, 0.12);
    }

    .mobile-nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        min-width: 124px;
        padding: 0 18px;
        border-radius: 14px;
        border-color: rgba(255, 255, 255, 0.24);
        background: rgba(255, 255, 255, 0.08);
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.01em;
        color: rgba(244, 248, 252, 0.95);
        flex-shrink: 0;
    }

    .site-nav__link {
        text-align: left;
        min-height: 56px;
        font-size: 18px;
        padding: 0 18px;
        width: 100%;
        justify-content: flex-start;
        border-radius: 14px;
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.04);
    }

    .site-nav__link.is-utility {
        margin-top: auto;
        justify-content: center;
        min-height: 56px;
        font-weight: 700;
        border-color: rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.05);
    }

    .site-nav__item {
        display: grid;
        gap: 8px;
        padding-bottom: 0;
        width: 100%;
    }

    .site-nav__item.has-submenu::after {
        display: none;
    }

    .site-nav__item.has-submenu {
        border: 0;
        border-radius: 0;
        padding: 0;
        background: transparent;
        width: 100%;
    }

    .site-nav__item.has-submenu > .site-nav__link {
        width: 100%;
        box-sizing: border-box;
    }

    .site-nav__item.has-submenu > .site-nav__toggle {
        min-height: 56px;
        width: 100%;
        justify-content: space-between;
    }

    .site-nav__item.is-submenu-open {
        border-color: transparent;
        background: transparent;
    }

    .site-nav__toggle {
        font-size: 18px;
    }

    .site-nav__toggle::after {
        margin-left: 12px;
        font-size: 12px;
        opacity: 0.9;
    }

    .site-nav__submenu {
        position: static;
        min-width: 0;
        border: 0;
        border-radius: 12px;
        box-shadow: none;
        padding: 8px 2px 2px;
        background: transparent;
        gap: 8px;
    }

    .site-nav__submenu-link {
        width: 100%;
        justify-content: flex-start;
        min-height: 56px;
        border-radius: 14px;
        font-size: 16px;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .site-nav__link.is-accent,
    .site-nav__link.is-current,
    .site-nav__submenu-link.is-current {
        border-color: rgba(var(--accent-rgb), 0.42);
        background: rgba(var(--accent-rgb), 0.14);
    }

    .site-nav__link.is-accent:not(.is-current) {
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.04);
    }

    html[data-theme="light"] .site-nav__link,
    html[data-theme="light"] .site-nav__toggle,
    html[data-theme="light"] .site-nav__submenu-link,
    html[data-theme="light"] .mobile-nav-close {
        background: rgba(255, 255, 255, 0.92);
        border-color: rgba(14, 20, 28, 0.14);
        color: #12161a;
    }

    html[data-theme="light"] .site-nav__item.is-submenu-open {
        border-color: transparent;
        background: transparent;
    }

    html[data-theme="light"] .site-nav__link.is-utility {
        border-color: rgba(14, 20, 28, 0.14);
        background: rgba(255, 255, 255, 0.92);
        color: #12161a;
    }

    html[data-theme="light"] .site-nav__link.is-accent:not(.is-current) {
        border-color: rgba(14, 20, 28, 0.14);
        background: rgba(255, 255, 255, 0.92);
        color: #12161a;
    }

    .catalog-pick-toolbar__controls {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-shell,
    .split-grid,
    .auth-layout,
    .shop-layout,
    .product-detail,
    .profile-grid,
    .order-grid,
    .footer-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-facts {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .owner-table th,
    .owner-table td {
        font-size: 13px;
    }
}

@media (max-width: 760px) {
    .site-search-form .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-search-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .floating-toast {
        top: 66px;
        width: calc(100% - 12px);
        padding: 12px 13px;
    }

    .page-shell {
        padding: 15px;
    }

    .hero-shell {
        padding: 16px;
    }

    .table-wrap {
        margin-left: -3px;
        margin-right: -3px;
    }

    .table-pricing {
        min-width: 520px;
    }

    .btn-main,
    .btn-ghost,
    .btn-link {
        width: 100%;
    }

    .page-actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .page-actions .btn-main,
    .page-actions .btn-ghost,
    .page-actions .btn-link {
        width: 100%;
    }

    .category-quick-link {
        width: 100%;
        justify-content: center;
    }

    .auth-entry-strip {
        grid-template-columns: 1fr;
    }

    .u-adaptive-actions > * {
        width: 100%;
    }

    .support-widget {
        right: 6px;
        bottom: 62px;
        width: calc(100vw - 12px);
        max-height: 78vh;
        resize: none;
    }

    .support-widget-toggle {
        right: 10px;
        bottom: 10px;
        min-height: 42px;
        padding: 0 12px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .site-header__inner {
        min-height: 64px;
    }

    .site-logo {
        font-size: 17px;
        max-width: calc(100vw - 136px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .theme-toggle {
        min-height: 34px;
        padding: 3px 5px 3px 3px;
    }

    .theme-toggle__track {
        width: 40px;
        height: 22px;
    }

    .theme-toggle__thumb {
        width: 16px;
        height: 16px;
    }

    .theme-toggle.is-dark .theme-toggle__thumb {
        transform: translateX(18px);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card__image-wrap {
        height: 220px;
    }

    .product-card__add,
    .cart-item__actions {
        grid-template-columns: 1fr;
    }

    .hero-shell__right,
    .media-frame {
        min-height: 210px;
    }

    .kpi-grid,
    .grid-cards,
    .feature-grid,
    .gallery-grid,
    .article-image-grid {
        grid-template-columns: 1fr;
    }

    .site-lightbox {
        padding: 58px 10px 24px;
    }

    .site-lightbox.is-open {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px;
    }

    .site-lightbox__close,
    .site-lightbox__nav {
        min-width: 38px;
        min-height: 38px;
        font-size: 20px;
    }
}
