:root {
    --bg: #07111f;
    --bg-soft: #0c1729;
    --panel: rgba(10, 22, 39, 0.9);
    --panel-2: #101f35;
    --line: rgba(255, 255, 255, 0.08);
    --text: #eef4ff;
    --muted: #93a4be;
    --accent: #ffb703;
    --accent-2: #4cc9f0;
    --success: #00d084;
    --danger: #ff5c7a;
    --radius: 22px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html {
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    min-height: 100%;
}
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}
body {
    background:
        radial-gradient(circle at top left, rgba(76, 201, 240, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(255, 183, 3, 0.12), transparent 28%),
        linear-gradient(180deg, #050b14, #08111f 40%, #060b13);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}
body.nav-drawer-open {
    overflow: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
button, input, textarea, select {
    max-width: 100%;
}
main {
    display: block;
    flex: 1 0 auto;
    width: 100%;
}

body > main {
    flex: 1 0 auto;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar, .nav, .footer {
    border-bottom: 1px solid var(--line);
    background: rgba(5, 11, 20, 0.85);
    backdrop-filter: blur(14px);
}
.topbar,
.nav {
    position: relative;
    z-index: 1400;
}
.topbar__inner, .nav__inner, .footer__grid {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
    width: 52px; height: 52px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--line);
}
.brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.brand__name {
    font-family: Rajdhani, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.brand__tag, .topbar__meta, .muted { color: var(--muted); font-size: 0.95rem; }
.topbar__meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}
.nav__mobile-bar,
.nav__mobile-drawer {
    display: none;
}
.nav__row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.nav__row--primary {
    justify-content: flex-start;
}
.nav__row--secondary {
    justify-content: flex-end;
}
.nav__search {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1 1 320px;
    min-width: 280px;
    justify-content: flex-end;
}
.nav__search-wrap {
    position: relative;
    flex: 1 1 360px;
    min-width: 280px;
    max-width: 520px;
    overflow: visible;
    z-index: 1000;
    isolation: isolate;
}
.nav__search-wrap .nav__search {
    width: 100%;
    min-width: 0;
    justify-content: stretch;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.nav__search input[type="search"] {
    flex: 1 1 220px;
    max-width: none;
    min-width: 0;
    padding: 0 16px;
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    line-height: 1;
}
.nav__search input[type="search"]::placeholder {
    color: rgba(147, 164, 190, 0.78);
}
.nav__link {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.nav__link:hover { border-color: var(--line); background: rgba(255,255,255,0.04); }
.nav__cta {
    background: linear-gradient(135deg, var(--accent), #ff8f00);
    color: #111;
    font-weight: 800;
}
.nav__search .btn {
    padding: 0 16px;
    min-height: 38px;
    border-radius: 999px;
    border-color: rgba(255,255,255,0.10);
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.16), rgba(255, 183, 3, 0.16));
    color: #e8f5ff;
    backdrop-filter: blur(10px);
    line-height: 1;
}
.nav__search .btn:hover {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.24), rgba(255, 183, 3, 0.24));
}
.nav__suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1300;
    background-color: #0b1625;
    background-image: linear-gradient(180deg, rgba(18, 32, 52, 0.96), rgba(8, 17, 30, 0.98));
    border: 1px solid rgba(154, 231, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
    overflow: hidden;
    max-height: min(320px, calc(100vh - 160px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.nav__search-wrap.is-open .nav__search input[type="search"],
.nav__search-wrap.is-open .nav__search .btn {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
@media (min-width: 721px) {
    .nav__search input[type="search"],
    .nav__search .btn {
        height: 38px;
    }
}
.nav__suggestion-item {
    display: block;
    padding: 12px 14px;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__suggestion-item:last-child {
    border-bottom: 0;
}
.nav__suggestion-item:hover {
    background: rgba(255,255,255,0.05);
}
.nav__suggestion-type {
    display: inline-flex;
    margin-bottom: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ae7ff;
}
.nav__suggestion-title {
    display: block;
    font-weight: 700;
    color: #f8fafc;
}
.nav__suggestion-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
}
.nav__suggestion-empty {
    padding: 14px;
    background: transparent;
    color: var(--muted);
}
.nav__suggestion-footer {
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.05);
    color: #cfe6ff;
}
.nav__suggestions[hidden] {
    display: none;
}

.catalog-search-wrap {
    position: relative;
    overflow: visible;
    z-index: 120;
    isolation: isolate;
}

.catalog-search-shell {
    position: relative;
    display: grid;
    gap: 10px;
    z-index: 1;
}

.catalog-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.catalog-search__input {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.catalog-search__input::placeholder {
    color: rgba(147, 164, 190, 0.78);
}

.catalog-search__button {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    white-space: nowrap;
}

.catalog-search-shell.is-open .catalog-search__input,
.catalog-search-shell.is-open .catalog-search__button {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.catalog-search__suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1300;
    background-color: #0b1625;
    background-image: linear-gradient(180deg, rgba(18, 32, 52, 0.96), rgba(8, 17, 30, 0.98));
    border: 1px solid rgba(154, 231, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
    overflow: hidden;
    max-height: min(320px, calc(100vh - 160px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.nav__suggestions::-webkit-scrollbar,
.catalog-search__suggestions::-webkit-scrollbar {
    width: 10px;
}

.nav__suggestions::-webkit-scrollbar-thumb,
.catalog-search__suggestions::-webkit-scrollbar-thumb {
    background: rgba(154, 231, 255, 0.28);
    border: 2px solid rgba(7, 15, 28, 0.98);
    border-radius: 999px;
}

.nav__suggestions::-webkit-scrollbar-track,
.catalog-search__suggestions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.catalog-search__suggestions[hidden] {
    display: none;
}

.catalog-search-wrap .catalog-search-shell {
    max-width: 100%;
}

.nav__profile {
    position: relative;
    margin-left: auto;
    color: var(--text);
}
.nav__profile > summary {
    list-style: none;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: inherit;
    border: 0;
}
.nav__profile > summary::-webkit-details-marker {
    display: none;
}
.nav__profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    user-select: none;
    color: inherit;
}
.nav__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #ff8f00);
    color: #111;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 24px rgba(255, 183, 3, 0.18);
}
.nav__avatar-caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #dbe5f5;
    opacity: 0.8;
}
.nav__dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(8, 16, 29, 0.98);
    box-shadow: var(--shadow);
    z-index: 25;
    display: grid;
    gap: 8px;
    color: var(--text);
}
.nav__profile:not([open]) .nav__dropdown {
    display: none;
}
.nav__dropdown-head {
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 4px;
}
.nav__dropdown-name {
    font-weight: 800;
    color: #f8fafc;
}
.nav__dropdown-email {
    color: var(--muted);
    font-size: 0.9rem;
    word-break: break-word;
}
.nav__dropdown-link {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: #eef4ff;
    background: transparent;
    border: 1px solid transparent;
}
.nav__dropdown-link:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}
.nav__dropdown-link--danger {
    color: #ffb1bf;
}
.nav__dropdown-link--danger:hover {
    background: rgba(255, 92, 122, 0.12);
}
.nav__menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-weight: 700;
}
.nav__menu-lines {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}
.nav__menu-lines span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}
.nav__mobile-cart {
    padding: 12px 14px;
    border-radius: 16px;
    text-align: center;
}
.nav__mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.nav__mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text);
}
.nav__mobile-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,183,3,0.16);
    color: #ffd36b;
    flex: 0 0 auto;
    font-weight: 800;
    font-size: 0.85rem;
}
.nav__mobile-label {
    font-weight: 700;
}
.nav__mobile-drawer {
    padding: 0;
}
.nav__mobile-drawer.is-open {
    display: block;
}

.hero {
    padding: 56px 0 28px;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
}
.panel {
    background: linear-gradient(180deg, rgba(16, 31, 53, 0.94), rgba(9, 18, 33, 0.95));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero__main {
    padding: 38px;
    width: 100%;
}
.eyebrow {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(76, 201, 240, 0.12);
    color: #9ae7ff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}
h1, h2, h3, h4 {
    margin: 0 0 14px;
    font-family: Rajdhani, sans-serif;
    line-height: 1.02;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); margin-top: 14px; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
p { line-height: 1.75; color: #dbe5f5; }
.hero__actions, .section__actions, .stack { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.btn--primary {
    background: linear-gradient(135deg, var(--accent), #ff8f00);
    color: #111;
    border-color: rgba(255, 183, 3, 0.5);
}
.btn--primary:hover {
    background: linear-gradient(135deg, #ffd15c, #ff9f2b);
    color: #111;
}
.btn--danger {
    background: rgba(255, 92, 122, 0.12);
    border-color: rgba(255, 92, 122, 0.3);
    color: #ffb1bf;
}
.btn--danger:hover {
    background: rgba(255, 92, 122, 0.18);
    border-color: rgba(255, 92, 122, 0.45);
    color: #ffe1e7;
}
.btn--ghost { background: transparent; }

.hero__side {
    padding: 26px;
    display: grid;
    gap: 14px;
}
.metric {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
}
.metric strong {
    display: block;
    font-size: 1.8rem;
    font-family: Rajdhani, sans-serif;
}

.section { padding: 24px 0 56px; }
.section__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.grid { display: grid; gap: 18px; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
}
.card--catalog {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    min-height: 100%;
}
.card--catalog > h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.18;
    min-height: calc(1.18em * 2);
    margin: 0;
}
.card--catalog > .muted {
    min-height: 1.45em;
}
.card--catalog > .card__description-link {
    flex: 1 1 auto;
    min-height: calc(1.65em * 4);
}
.card--catalog > .price {
    margin-top: auto;
}
.card--catalog > .stack:last-child {
    margin-top: 4px;
    display: grid;
    gap: 8px;
    align-items: stretch;
}
.card--catalog > .stack:last-child > .btn,
.card--catalog > .stack:last-child > a.btn,
.card--catalog > .stack:last-child > form {
    width: 100%;
}
.card--catalog > .stack:last-child > form {
    margin: 0;
}
.card--catalog > .stack:last-child > form .btn {
    width: 100%;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}
.breadcrumb a {
    color: #cfe6ff;
}
.breadcrumb__sep {
    opacity: 0.55;
}
.product-description {
    white-space: normal;
    line-height: 1.55;
}
.product-purchase-actions {
    display: grid;
    gap: 10px;
    align-items: stretch;
}
.product-purchase-actions > form,
.product-purchase-actions > .btn,
.product-purchase-actions > a.btn {
    width: 100%;
    margin: 0;
}
.product-purchase-actions > form .btn {
    width: 100%;
}
.product-purchase-actions__cart {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}
.product-purchase-actions__cart input[type="number"] {
    width: 100%;
    min-width: 0;
}
.product__badge, .chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(76, 201, 240, 0.12);
    color: #9ae7ff;
    font-size: 0.82rem;
    font-weight: 700;
}
.chip--new, .product__badge--new {
    background: rgba(76, 201, 240, 0.16);
    color: #7ad9ff;
}
.chip--best-seller, .product__badge--best-seller {
    background: rgba(255, 183, 3, 0.18);
    color: #ffd36b;
}
.chip--project-kits, .product__badge--project-kits {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.2), rgba(255, 183, 3, 0.18));
    color: #d7f7ff;
    border: 1px solid rgba(76, 201, 240, 0.22);
}
.chip--video, .product__badge--video {
    background: rgba(255, 92, 122, 0.18);
    color: #ffb1bf;
}
.chip--default, .product__badge--default {
    background: rgba(255,255,255,0.08);
    color: #e6eefc;
}
.media-preview {
    position: relative;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 220px;
    max-height: 320px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
}
.media-preview__img, .media-preview__video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        rgba(7, 17, 31, 0.94);
}
.media-preview__badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    pointer-events: none;
}
.media-preview__badges .chip {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}
.price {
    font-size: 1.8rem;
    font-family: Rajdhani, sans-serif;
    font-weight: 700;
    margin: 10px 0;
}
.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}
.list {
    display: grid;
    gap: 12px;
}
.list__item {
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.card__description-link {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
    text-decoration: none;
    line-height: 1.65;
    min-height: calc(1.65em * 4);
}
.card__description-link:hover {
    color: #ffffff;
}
.card--clickable {
    cursor: pointer;
}
.card--clickable:focus-within {
    outline: 2px solid rgba(76, 201, 240, 0.28);
    outline-offset: 2px;
}
.recent-activity-panel {
    height: clamp(300px, 34vw, 410px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.recent-activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.recent-activity-head h2 {
    margin: 0;
}
.recent-activity-feed {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    gap: 10px;
    padding-right: 4px;
}
.recent-activity-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    min-width: 0;
    display: grid;
    gap: 8px;
    line-height: 1.45;
}
.recent-activity-item__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.recent-activity-item__action {
    font-size: 0.98rem;
}
.recent-activity-item__id {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.86rem;
}
.recent-activity-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.82rem;
}
.recent-activity-item__meta span {
    white-space: nowrap;
}
.recent-activity-item .chip {
    padding: 3px 8px;
    font-size: 0.72rem;
}
.recent-activity-item__details summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.86rem;
}
.recent-activity-item__details pre {
    margin: 10px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: #dbe5f5;
}
.panel[id] {
    scroll-margin-top: 96px;
}
.product-toggle {
    padding-top: 16px;
    padding-bottom: 16px;
}
.product-toggle__row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    width: 100%;
    cursor: pointer;
}
.product-toggle__row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--accent);
}
.product-toggle__text {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.field-help {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

form { display: grid; gap: 14px; }
input, textarea, select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font: inherit;
}
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%),
        linear-gradient(to right, rgba(255,255,255,0.02), rgba(255,255,255,0.02));
    background-position:
        calc(100% - 22px) calc(50% - 4px),
        calc(100% - 16px) calc(50% - 4px),
        0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
}
select option {
    background: #0b1628;
    color: var(--text);
}
textarea { min-height: 140px; resize: vertical; }

.input--invalid {
    border-color: rgba(255, 92, 122, 0.9) !important;
    box-shadow: 0 0 0 3px rgba(255, 92, 122, 0.12);
}

.input--valid {
    border-color: rgba(0, 208, 132, 0.9) !important;
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.14);
}

.field-feedback {
    display: none;
    color: #ffb1bf;
    font-size: 0.86rem;
    line-height: 1.4;
    margin-top: -6px;
}

.field-feedback.is-visible {
    display: block;
}

.field-feedback.is-success {
    color: #7ef0bc;
}

.address-status {
    display: none;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0, 208, 132, 0.24);
    background: rgba(0, 208, 132, 0.08);
    color: #bff7de;
    font-size: 0.92rem;
    line-height: 1.5;
}

.address-status.is-visible {
    display: block;
}

.address-status.is-error {
    border-color: rgba(255, 92, 122, 0.24);
    background: rgba(255, 92, 122, 0.08);
    color: #ffb1bf;
}

.table-wrap { overflow-x: auto; }
.table-wrap { -webkit-overflow-scrolling: touch; }
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}
th, td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
th { color: #fff; }

.order-details {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
}
.order-details__summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    list-style: none;
    color: var(--text);
    font-weight: 700;
}
.order-details__summary::-webkit-details-marker {
    display: none;
}
.order-details__body {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    color: var(--text);
}
.order-update {
    min-width: 240px;
    display: grid;
    gap: 10px;
}
.order-update__primary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}
.order-update__links {
    min-width: 240px;
}

.footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    border-bottom: none;
}
.footer__grid {
    align-items: start;
    padding: 26px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.live-chat-widget {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

.live-chat-widget__button {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 1px solid rgba(76, 201, 240, 0.22);
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    color: #04111d;
    font-weight: 800;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.live-chat-widget__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.live-chat-widget__panel {
    pointer-events: auto;
    width: min(360px, calc(100vw - 24px));
    max-height: min(68vh, 640px);
    display: none;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(76, 201, 240, 0.22);
    background: linear-gradient(180deg, rgba(8, 16, 29, 0.98), rgba(8, 16, 29, 0.92));
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.live-chat-widget.is-open .live-chat-widget__panel {
    display: flex;
}

.live-chat-widget__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 16px 16px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.live-chat-widget__title {
    font-family: Rajdhani, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.live-chat-widget__subtitle {
    color: var(--muted);
    font-size: 0.92rem;
}

.live-chat-widget__icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 1rem;
}

.live-chat-widget__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 10px;
    overflow: hidden;
}

.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-right: 4px;
}

.chat-thread--widget {
    flex: 1 1 auto;
    min-height: 160px;
    max-height: 32vh;
    min-width: 0;
    min-height: 0;
    overscroll-behavior: contain;
}

.chat-bubble {
    max-width: 88%;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line);
}

.chat-bubble--mine {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(255,183,3,0.16), rgba(255,143,0,0.18));
    border-color: rgba(255, 183, 3, 0.24);
}

.chat-bubble--system {
    margin: 0 auto;
    max-width: 100%;
    text-align: center;
    background: rgba(76, 201, 240, 0.08);
    color: #d7f7ff;
}

.chat-bubble__meta {
    font-size: 0.8rem;
    color: #9ddfff;
    margin-bottom: 6px;
}

.chat-bubble__text {
    white-space: pre-wrap;
    line-height: 1.6;
}

.chat-bubble__attachment {
    margin-top: 10px;
}

.chat-bubble__footer {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--muted);
}

.chat-attachment {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
}

.chat-attachment img {
    width: 100%;
    max-width: 100%;
    display: block;
}

.chat-attachment--file {
    padding: 12px 14px;
    color: #cfe7ff;
}

.chat-preview {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: grid;
    place-items: center;
    padding: 20px;
}

.chat-preview[hidden] {
    display: none;
}

.chat-preview__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 18, 0.78);
    backdrop-filter: blur(6px);
}

.chat-preview__dialog {
    position: relative;
    width: min(900px, 100%);
    max-height: min(88vh, 820px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(76, 201, 240, 0.22);
    background: linear-gradient(180deg, rgba(8, 16, 29, 0.98), rgba(8, 16, 29, 0.94));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.chat-preview__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.chat-preview__title {
    font-weight: 700;
}

.chat-preview__body {
    min-height: 280px;
    background: rgba(255,255,255,0.02);
}

.chat-preview__image,
.chat-preview__frame {
    display: block;
    width: 100%;
    height: min(76vh, 720px);
    border: 0;
    background: #0a1221;
    object-fit: contain;
}

.site-confirm[hidden] {
    display: none;
}

.site-confirm {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.site-confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 18, 0.76);
    backdrop-filter: blur(6px);
}

.site-confirm__dialog {
    position: relative;
    width: min(460px, 100%);
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(76, 201, 240, 0.24);
    background: linear-gradient(180deg, rgba(8, 16, 29, 0.98), rgba(8, 16, 29, 0.94));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.site-confirm__head,
.site-confirm__body {
    position: relative;
    z-index: 1;
}

.site-confirm__title {
    margin: 0;
}

.site-confirm__message {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.site-confirm__actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

body.site-confirm-open {
    overflow: hidden;
}

.chat-empty, .chat-typing {
    color: var(--muted);
    font-size: 0.92rem;
}

.chat-reply-form--widget {
    gap: 8px;
}

.chat-reply-form--widget input[type="text"],
.chat-reply-form--widget textarea {
    border-radius: 14px;
    padding: 10px 12px;
}

.chat-reply-form--widget textarea {
    min-height: 44px;
    max-height: 132px;
    line-height: 1.45;
    resize: none;
    overflow-y: hidden;
}

.live-chat-widget__actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
}

.live-chat-widget__actions--admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-chat-widget__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.live-chat-widget__action-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(76, 201, 240, 0.35);
    background: rgba(255,255,255,0.07);
}

.live-chat-widget__action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.live-chat-widget__action-btn svg {
    width: 18px;
    height: 18px;
}

.live-chat-widget__action-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.live-chat-widget__action-btn--send {
    border-color: rgba(76, 201, 240, 0.22);
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    color: #04111d;
}

.live-chat-widget__action-btn[type="button"],
.live-chat-widget__action-btn[type="submit"],
label.live-chat-widget__action-btn {
    position: relative;
}

.live-chat-widget__file-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.live-chat-widget__file-status {
    min-height: 18px;
    font-size: 0.82rem;
    color: var(--muted);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.live-chat-widget__file-status.is-visible {
    opacity: 1;
}

.live-chat-widget__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;
}

.chat-session {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}

.chat-session.is-active {
    border-color: rgba(76, 201, 240, 0.35);
    background: rgba(76, 201, 240, 0.08);
}

.chat-session__preview {
    color: #dce7f7;
    line-height: 1.5;
}

.chat-session__meta {
    color: var(--muted);
    font-size: 0.88rem;
}

.chat-sidebar, .chat-detail {
    min-height: 600px;
}

.chat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.chat-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px;
}

.chat-filters {
    display: grid;
    gap: 10px;
}

.chat-filters input, .chat-filters select {
    width: 100%;
}

.chat-detail .chat-thread {
    min-height: 280px;
    max-height: 52vh;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
}

.chat-detail .chat-bubble {
    max-width: 76%;
}

.chat-typing--widget {
    min-height: 20px;
}

@media (max-width: 900px) {
    .hero__grid, .split { grid-template-columns: 1fr; }
    .topbar__inner, .section__head { flex-direction: column; align-items: stretch; }
    .topbar__meta {
        display: none;
    }
    .brand {
        gap: 10px;
        align-items: center;
    }
    .brand__mark {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        flex: 0 0 auto;
    }
    .brand__tag {
        display: none;
    }
    .brand__name {
        font-size: 1.05rem;
        letter-spacing: 0.04em;
    }
    .nav {
        position: sticky;
        top: 0;
        z-index: 90;
    }
    .nav__mobile-bar {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
    }
    .nav__mobile-drawer {
        display: none;
        padding: 0 0 2px;
    }
    .nav__mobile-drawer.is-open {
        display: block;
    }
    .nav__row {
        width: 100%;
        justify-content: flex-start;
    }
    .nav__profile {
        margin-left: 0;
    }
    .nav__profile-trigger {
        width: 100%;
        justify-content: space-between;
    }
    .nav__dropdown {
        left: 0;
        right: auto;
        width: min(100%, 280px);
    }
    .nav__search {
        width: 100%;
        min-width: 0;
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
    }
    .nav__search-wrap.is-open .nav__search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        gap: 8px;
    }
    .nav__search-wrap {
        width: 100%;
        max-width: none;
        min-width: 0;
        overflow: visible;
    }
    .nav__search input[type="search"] {
        max-width: none;
        width: 100%;
        min-height: 42px;
        padding: 0 14px;
        line-height: 1;
    }
    .nav__search-wrap.is-open .nav__search input[type="search"] {
        flex: 1 1 auto;
        min-width: 0;
    }
    .nav__search .btn {
        width: 100%;
    }
    .nav__search-wrap.is-open .nav__search .btn {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
        min-height: 42px;
        padding: 0 14px;
        line-height: 1;
        align-self: stretch;
    }
    .product-toggle__row {
        gap: 10px;
    }
    .order-update,
    .order-update__links {
        min-width: 0;
    }
    .order-update__primary {
        grid-template-columns: 1fr;
    }
    .hero__actions, .section__actions, .stack {
        align-items: stretch;
    }
    .nav__row--primary,
    .nav__row--secondary {
        display: none;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 20px, 1180px);
    }
    .section {
        padding: 18px 0 42px;
    }
    .hero {
        padding-top: 34px;
    }
    .hero__main, .hero__side, .card, .panel {
        border-radius: 18px;
    }
    .hero__main, .hero__side, .card {
        padding: 18px;
    }
    .panel {
        padding: 18px;
    }
    .section__head {
        margin-bottom: 14px;
    }
    .section__head > div {
        width: 100%;
    }
    h1 { font-size: clamp(2.1rem, 12vw, 3.2rem); }
    h2 { font-size: clamp(1.65rem, 8vw, 2.2rem); }
    h3 { font-size: clamp(1.3rem, 6vw, 1.7rem); }
    .brand__name { font-size: 1.2rem; }
    .brand__tag, .topbar__meta, .muted { font-size: 0.92rem; }
    .topbar__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .topbar__inner {
        gap: 12px;
    }
    .nav__link, .nav__cta {
        width: 100%;
        text-align: center;
    }
    .btn {
        width: auto;
        max-width: 100%;
        white-space: normal;
    }
    .hero__actions .btn,
    .section__actions .btn,
    .stack > .btn,
    .stack > form,
    .stack > a {
        width: 100%;
    }
    form {
        gap: 12px;
    }
    input, textarea, select {
        padding: 12px 14px;
        border-radius: 12px;
    }
    textarea {
        min-height: 120px;
    }
    .stack {
        gap: 10px;
    }
    .stack > form .btn {
        width: 100%;
    }
    .table-wrap {
        margin: 0 -4px;
        padding: 0 4px;
    }
    table {
        min-width: 620px;
    }
    th, td {
        padding: 11px 10px;
        font-size: 0.92rem;
        vertical-align: top;
    }
    .grid--cards {
        grid-template-columns: 1fr;
    }
    .product-purchase-actions__cart {
        grid-template-columns: 1fr;
    }
    .media-preview__img, .media-preview__video {
        width: 100%;
        height: 100%;
        min-height: 210px;
        max-height: 300px;
    }
    .media-preview__badges {
        top: 10px;
        right: 10px;
    }
    .media-preview__badges .chip {
        padding: 5px 8px;
        font-size: 0.74rem;
    }
    .nav__inner {
        gap: 10px;
    }
    .nav__row {
        gap: 8px;
    }
    .nav__row--secondary {
        justify-content: flex-start;
    }
    .nav__inner > .nav__link,
    .nav__inner > .nav__cta {
        padding: 12px 14px;
    }
    .nav__row > .nav__link,
    .nav__row > .nav__cta {
        width: auto;
    }
    .nav__mobile-grid {
        grid-template-columns: 1fr;
    }
    .catalog-search {
        grid-template-columns: 1fr;
    }
    .catalog-search__button {
        width: 100%;
    }
    .catalog-search__suggestions {
        top: calc(100% + 6px);
    }
    .hero__main,
    .hero__side,
    .card,
    .panel {
        box-shadow: none;
    }
    .live-chat-widget {
        right: 10px;
        bottom: 10px;
    }
    .live-chat-widget__panel {
        width: calc(100vw - 20px);
        max-height: 62vh;
    }
    .chat-thread--widget {
        min-height: 140px;
        max-height: 28vh;
    }
    .chat-detail .chat-bubble {
        max-width: 90%;
    }
    .chat-sidebar,
    .chat-detail {
        min-height: auto;
    }
    .chat-sidebar {
        max-height: min(56vh, 460px);
        overflow: hidden;
    }
    .chat-list {
        max-height: min(34vh, 300px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 520px) {
    .site-confirm {
        padding: 14px;
    }
    .site-confirm__dialog {
        padding: 18px;
        border-radius: 20px;
    }
    .site-confirm__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .site-confirm__actions .btn {
        width: 100%;
    }
    .live-chat-widget__body {
        padding: 10px;
        gap: 8px;
    }
    .chat-reply-form--widget {
        gap: 6px;
    }
    .chat-reply-form--widget input[type="text"],
    .chat-reply-form--widget textarea {
        padding: 9px 11px;
    }
    .live-chat-widget__actions {
        gap: 6px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .live-chat-widget__actions--admin {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .live-chat-widget__action-btn {
        min-height: 40px;
        border-radius: 12px;
    }
    .live-chat-widget__action-btn svg {
        width: 16px;
        height: 16px;
    }
    .live-chat-widget__file-status {
        font-size: 0.78rem;
    }
}

.ajax-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    max-width: min(92vw, 360px);
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(10, 18, 33, 0.96);
    color: #f5f9ff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
    transform: translateY(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.ajax-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ajax-toast.is-error {
    border-color: rgba(255, 122, 122, 0.42);
    background: rgba(47, 14, 18, 0.96);
}

form.is-loading {
    opacity: 0.92;
}

form.is-loading button[type="submit"],
form.is-loading input[type="submit"] {
    cursor: progress;
}
