:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-muted: #eef2f5;
    --text: #18212d;
    --muted: #667287;
    --line: #dce3ea;
    --brand: #0f7b6c;
    --brand-dark: #0a5b50;
    --accent: #ff8459;
    --danger: #c44848;
    --shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
    --radius: 18px;
    --radius-sm: 12px;
    --font: "IBM Plex Sans", "Noto Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: linear-gradient(180deg, #f7f8fa 0%, #edf2f5 100%);
    color: var(--text);
    font-size: 12px;
    line-height: 1.55;
}

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

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
}

.main-header,
.nav-row-inner,
.section-head,
.summary-row,
.compact-head,
.product-bottom,
.builder-summary,
.order-item,
.cart-item,
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-actions,
.main-nav,
.detail-actions,
.actions,
.inline-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(247, 248, 250, 0.92);
    border-bottom: 1px solid rgba(220, 227, 234, 0.8);
}

.main-header {
    min-height: 92px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 240px;
}

.primary-login {
    min-width: 112px;
    text-align: center;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.brand-copy {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.brand-wordmark {
    display: inline-flex;
    align-items: flex-end;
    position: relative;
    gap: 2px;
    line-height: 1;
    transform: translate(var(--brand-offset-x, 0), var(--brand-offset-y, 0));
    transition: transform 0.18s ease;
}

.brand-wordmark-text {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
    color: var(--text);
}

.brand-wordmark-tech .brand-wordmark-text {
    color: #0c3042;
    background-image: linear-gradient(90deg, #0c3042 0%, #0f7b6c 50%, #4eb5d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-wordmark-ice .brand-wordmark-text {
    color: #15486a;
    background-image: linear-gradient(90deg, #0d3b66 0%, #4ea8de 45%, #d8f3ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-wordmark-sunset .brand-wordmark-text {
    color: #7a2c12;
    background-image: linear-gradient(90deg, #7a2c12 0%, #f26b38 48%, #ffc971 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-wordmark-mono .brand-wordmark-text {
    color: #182535;
}

.brand-subtitle {
    color: var(--muted);
    line-height: 1.2;
}

.brand-subtitle,
.product-meta p,
.sidebar-block p,
.callout-card p,
.detail-short,
.timeline-item small,
.old-price {
    color: var(--muted);
}

.search-form {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.search-form input,
.search-form button,
.track-form input,
.builder-row select,
.admin-form input,
.admin-form textarea,
.admin-form select,
.checkout-form input,
.checkout-form textarea {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    min-height: 44px;
    padding: 0 14px;
    outline: none;
}

.search-form button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    border-radius: 14px;
    min-height: 44px;
    padding: 0 18px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 26px rgba(15, 123, 108, 0.18);
}

.button:hover,
.search-form button:hover {
    transform: translateY(-1px);
    background: var(--brand-dark);
}

.button-light {
    background: #fff;
    color: var(--text);
    box-shadow: 0 12px 26px rgba(255, 255, 255, 0.16);
}

.button-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}

.button-dark {
    background: #0f1722;
}

.button-danger {
    background: var(--danger);
    box-shadow: none;
}

.button.small {
    min-height: 36px;
    padding: 0 12px;
}

.header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(15, 123, 108, 0.08);
    font-weight: 600;
    min-height: 44px;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.header-link.trade-link {
    background: rgba(255, 132, 89, 0.15);
    color: #9a3f1f;
    box-shadow: 0 12px 24px rgba(255, 132, 89, 0.14);
}

.header-link.build-link {
    background: rgba(15, 123, 108, 0.14);
    color: #0d5e53;
    box-shadow: 0 12px 24px rgba(15, 123, 108, 0.14);
}

.header-link.trade-link:hover,
.header-link.build-link:hover {
    transform: translateY(-1px);
}

.header-link.trade-link:hover {
    background: #ff8459;
    color: #fff;
    box-shadow: 0 14px 28px rgba(255, 132, 89, 0.28);
}

.header-link.build-link:hover {
    background: var(--brand-dark);
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 123, 108, 0.28);
}

.header-link.setup-link {
    background: rgba(24, 33, 45, 0.08);
}

.header-link.auth-link {
    background: rgba(24, 33, 45, 0.06);
}

.cart-link span {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
}

.nav-row {
    border-top: 1px solid rgba(220, 227, 234, 0.75);
}

.nav-row-inner {
    min-height: 52px;
}

.main-nav {
    flex-wrap: wrap;
}

.main-nav a {
    position: relative;
    padding: 8px 0;
    font-weight: 600;
    color: #425061;
}

.main-nav a.active,
.main-nav a:hover,
.product-card h3 a:hover,
.product-category:hover {
    color: var(--brand-dark);
}

.hero-slider {
    position: relative;
    width: min(1440px, calc(100% - 40px));
    margin: 28px auto 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: clamp(340px, 29vw, 400px);
    background: #0f1722;
    border: 1px solid rgba(220, 227, 234, 0.6);
}

.hero-slide {
    position: absolute;
    inset: 0;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
    animation: fadeIn 0.4s ease;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transform: scale(1.01);
}

.hero-copy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    padding: 34px 40px;
    background: linear-gradient(90deg, rgba(8, 11, 17, 0.84) 0%, rgba(8, 11, 17, 0.48) 44%, rgba(8, 11, 17, 0.04) 78%, rgba(8, 11, 17, 0) 100%);
}

.hero-copy h1,
.detail-info h1,
.section-head h2,
.callout-card h2,
.narrow-panel h2,
.admin-header h1 {
    margin: 0;
    line-height: 1.1;
}

.hero-copy h1 {
    font-size: clamp(28px, 2.6vw, 36px);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    opacity: 0.75;
}

.hero-dots {
    position: absolute;
    left: 40px;
    bottom: 18px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-dots button {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dots button.active {
    background: #fff;
    width: 24px;
}

.site-main {
    padding: 28px 0 80px;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.content-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.catalog-sidebar {
    position: sticky;
    top: 156px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-block,
.product-card,
.callout-card,
.cart-summary,
.cart-item,
.info-card,
.order-card,
.narrow-panel,
.admin-card,
.metric-card,
.builder-panel,
.flash {
    background: var(--surface);
    border: 1px solid rgba(220, 227, 234, 0.85);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.sidebar-block,
.callout-card,
.cart-summary,
.info-card,
.narrow-panel,
.admin-card,
.builder-panel {
    padding: 22px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.category-side-menu,
.timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    position: relative;
}

.category-item > a,
.category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--surface-muted);
    font-weight: 600;
}

.category-toggle {
    border: 0;
    cursor: pointer;
    color: inherit;
}

.category-link-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.category-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(19, 32, 49, 0.08);
    overflow: hidden;
    flex-shrink: 0;
}

.category-link-icon.small {
    width: 24px;
    height: 24px;
    border-radius: 8px;
}

.category-link-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-submenu {
    display: none;
    position: static;
    width: 100%;
    padding: 8px 0 0;
}

.category-submenu a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: #425061;
    background: #f6f8fa;
    margin-top: 6px;
}

.category-submenu a:hover {
    background: #edf3f6;
}

.category-item.open .category-submenu {
    display: block;
}

.category-item.open .category-toggle-arrow {
    transform: rotate(45deg);
}

.category-toggle-arrow {
    color: var(--brand);
    font-size: 18px;
    transition: transform 0.2s ease;
}

.support-card {
    background: linear-gradient(135deg, #132031 0%, #0f7b6c 100%);
    color: rgba(255, 255, 255, 0.88);
}

.support-actions,
.cta-row,
.auth-panels {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.section-head {
    padding: 6px 4px 0;
}

.section-head.compact-head {
    padding: 0 0 18px;
}

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

.product-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    min-height: 220px;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f8fb 0%, #edf2f6 100%);
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    transform: scale(1.01);
}

.product-card:hover .product-main-image,
.product-image:hover .product-main-image {
    transform: scale(1.08);
}

.detail-media .product-main-image,
.cart-item img,
.order-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: #0f1722;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.product-corner-logo {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    border: 0;
    box-shadow: 0 6px 14px rgba(18, 32, 48, 0.08);
    pointer-events: none;
    overflow: hidden;
}

.product-corner-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    transform: none !important;
    transition: none !important;
}

.product-meta {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--brand);
    font-weight: 600;
}

.product-meta h3 {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.3;
    min-height: 39px;
}

.product-meta h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta p {
    margin: 0 0 14px;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    font-size: 18px;
    font-weight: 700;
}

.product-bottom {
    margin-top: auto;
    align-items: flex-end;
    gap: 12px;
}

.product-price-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 48px;
}

.add-cart-button {
    min-width: 104px;
    flex-shrink: 0;
}

.product-card form {
    margin: 0;
}

.split-callout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.callout-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(255, 132, 89, 0.22), rgba(15, 123, 108, 0.08) 42%, #fff 75%);
}

.callout-card.dark {
    background: linear-gradient(135deg, #111827 0%, #0f3653 100%);
    color: rgba(255, 255, 255, 0.92);
}

.callout-card.dark p,
.callout-card.dark .eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

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

.detail-media,
.detail-info {
    background: var(--surface);
    border-radius: 24px;
    padding: 26px;
    border: 1px solid rgba(220, 227, 234, 0.9);
    box-shadow: var(--shadow);
}

.detail-media {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #f8fafb 0%, #eef3f7 100%);
}

.detail-corner-logo {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    padding: 3px;
    border-radius: 12px;
}

.detail-info h1 {
    font-size: 34px;
    margin-bottom: 14px;
}

.detail-price-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
}

.detail-price-row strong {
    font-size: 28px;
}

.bullet-list {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.bullet-list.compact {
    margin-top: 6px;
}

.builder-grid,
.form-grid,
.metrics-grid,
.admin-card-grid,
.cart-grid,
.checkout-grid,
.order-layout {
    display: grid;
    gap: 18px;
}

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

.builder-section + .builder-section {
    margin-top: 20px;
}

.builder-section-head {
    margin-bottom: 14px;
}

.builder-section-head h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.builder-section-head p {
    margin: 0;
    color: var(--muted);
}

.builder-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfcfd;
}

.builder-row-label {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.builder-row-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.builder-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(19, 32, 49, 0.08);
    overflow: hidden;
    flex-shrink: 0;
}

.builder-row-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.builder-row-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 123, 108, 0.1);
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 700;
}

.builder-summary {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.cart-grid,
.checkout-grid,
.order-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
}

.cart-list,
.order-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item,
.order-item {
    padding: 16px;
}

.cart-item img,
.order-item img {
    width: 94px;
    height: 94px;
    background: #f3f6f9;
    padding: 10px;
}

.cart-item-copy {
    flex: 1;
}

.cart-item-controls {
    min-width: 130px;
    text-align: right;
}

.cart-item-controls input {
    width: 76px;
    margin-bottom: 8px;
}

.summary-row.total {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--line);
}

.checkout-form,
.track-form,
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

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

.form-grid label,
.checkout-form label,
.track-form label,
.admin-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-grid .full,
.admin-form .full {
    grid-column: 1 / -1;
}

.form-help {
    grid-column: 1 / -1;
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.settings-asset-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfcfd;
}

.settings-asset-preview span {
    color: var(--muted);
    font-weight: 600;
}

.settings-asset-preview img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.settings-restore-form {
    margin-top: 14px;
}

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

.brand-position-fields label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-editor-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfcfd 0%, #f2f7f8 100%);
}

.brand-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-preview-canvas {
    position: relative;
    min-height: 170px;
    padding: 24px;
    border: 1px dashed rgba(15, 123, 108, 0.28);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(78, 181, 208, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 247, 0.95));
    overflow: hidden;
}

.brand-preview-lockup {
    position: absolute;
    left: 24px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    transform: translateY(-50%);
}

.brand-preview-mark {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    object-fit: contain;
}

[data-brand-preview-wordmark] {
    cursor: grab;
    user-select: none;
    touch-action: none;
}

[data-brand-preview-wordmark].is-dragging {
    cursor: grabbing;
}

.banner-editor-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfcfd 0%, #f2f6fb 100%);
}

.banner-preview-canvas {
    position: relative;
    min-height: 260px;
    border: 1px dashed rgba(15, 123, 108, 0.28);
    border-radius: 20px;
    overflow: hidden;
    background: #09111b;
}

.banner-preview-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.banner-preview-image.is-dragging {
    cursor: grabbing;
}

.banner-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 28px 32px;
    background: linear-gradient(90deg, rgba(8, 11, 17, 0.84) 0%, rgba(8, 11, 17, 0.5) 44%, rgba(8, 11, 17, 0.06) 78%, rgba(8, 11, 17, 0) 100%);
    pointer-events: none;
}

.banner-preview-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 430px;
    color: #fff;
}

.banner-preview-copy strong {
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.08;
}

.banner-preview-copy span:last-child {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
}

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

.banner-position-fields label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trade-setup-preview {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfcfd 0%, #f3f7fa 100%);
}

.trade-setup-preview img {
    width: 132px;
    height: 100px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(220, 227, 234, 0.8);
}

.trade-setup-preview-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trade-setup-preview-copy strong {
    font-size: 16px;
}

.trade-setup-preview-copy span {
    color: var(--brand);
    font-weight: 700;
}

.trade-setup-preview-copy p {
    margin: 0;
    color: var(--muted);
}

.trade-admin-thumb {
    width: 96px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(220, 227, 234, 0.9);
}

.switch {
    flex-direction: row !important;
    align-items: center;
}

.switch input {
    min-height: auto;
}

.info-card.alt {
    margin-top: 16px;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 240px;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.status-stack,
.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(15, 123, 108, 0.12);
    color: var(--brand-dark);
    font-weight: 700;
}

.status-pill.muted {
    background: rgba(24, 33, 45, 0.08);
    color: #364254;
}

.status-pill.tone-success {
    background: rgba(25, 171, 112, 0.14);
    color: #11744b;
}

.status-pill.tone-pending {
    background: rgba(255, 173, 51, 0.18);
    color: #9a6200;
}

.status-pill.tone-danger {
    background: rgba(214, 62, 62, 0.14);
    color: #a02727;
}

.status-pill.tone-muted {
    background: rgba(24, 33, 45, 0.08);
    color: #364254;
}

.timeline-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f6f8fa;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr);
    gap: 18px;
}

.profile-sidebar,
.profile-main,
.profile-quick-links,
.profile-order-list,
.profile-ai-log {
    display: grid;
    gap: 18px;
}

.profile-summary-card {
    position: sticky;
    top: 96px;
}

.profile-ai-item {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #f8fafb;
}

.profile-ai-item.is-ai {
    background: linear-gradient(180deg, #eef8f6 0%, #f7fbfa 100%);
}

.profile-ai-item p {
    margin: 6px 0 0;
    color: var(--muted);
    white-space: pre-wrap;
}

.profile-order-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.profile-order-head,
.profile-order-body,
.profile-order-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.profile-order-head span,
.profile-order-body small {
    display: block;
    color: var(--muted);
}

.profile-order-body {
    margin: 16px 0;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.profile-order-actions {
    justify-content: flex-start;
}

.floating-contact {
    position: static;
    right: auto;
    bottom: auto;
    z-index: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    background: #0f1722;
    color: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 34, 0.25);
    border: 0;
    cursor: pointer;
}

.floating-contact-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 45;
}

.floating-contact-panel {
    display: none;
    margin-top: 10px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.floating-contact-panel a {
    display: inline-flex;
    min-width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f5f7fa;
}

.floating-contact-widget.is-open .floating-contact-panel {
    display: block;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
}

.auth-wrapper .narrow-panel {
    width: 100%;
}

.track-form {
    text-align: center;
}

.track-form label {
    text-align: left;
}

.track-form .button {
    align-self: center;
    min-width: 180px;
}

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

.form-hint.invalid {
    color: var(--danger);
}

.button:disabled,
.button[disabled] {
    cursor: not-allowed;
    background: #c6d0da;
    box-shadow: none;
    transform: none;
}

.trade-info-card {
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.helper-text {
    margin-top: 12px;
    color: #6b7280;
    font-size: 12px;
}

.trade-package-grid {
    margin-bottom: 24px;
}

.trade-package-card .setup-card-body {
    gap: 10px;
}

.trade-package-button {
    margin-top: 6px;
}

.trade-package-includes {
    margin: 20px 0;
    padding: 16px 18px;
    border-radius: 18px;
    background: #f7fafc;
    border: 1px solid var(--line);
}

.trade-package-includes h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.trade-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 24px;
}

.trade-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 16, 26, 0.56);
    backdrop-filter: blur(4px);
}

.trade-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(220, 227, 234, 0.9);
    box-shadow: 0 28px 56px rgba(15, 23, 34, 0.24);
}

.trade-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #eff3f7;
    color: #152231;
    font-size: 24px;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

.chat-admin-grid {
    grid-template-columns: 320px minmax(0, 1fr);
}

.chat-customer {
    background: #f3f8f6;
}

.chat-admin {
    background: #f6f7fb;
}

.chat-form {
    margin-top: 18px;
}

.live-chat-shell {
    position: fixed;
    right: 20px;
    top: 50%;
    z-index: 44;
    transform: translateY(-50%);
}

.live-chat-head {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #0f7b6c 0%, #183a52 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 34, 0.32);
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.admin-widget-shortcuts {
    position: absolute;
    right: 7px;
    bottom: calc(100% + 10px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.admin-mini-head {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 34, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.admin-mini-head:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(15, 23, 34, 0.28);
    filter: brightness(1.02);
}

.admin-mini-orders {
    background: linear-gradient(145deg, #1d2430 0%, #30506e 100%);
}

.admin-mini-trade {
    background: linear-gradient(145deg, #8c3b1d 0%, #cf6b30 100%);
}

.admin-mini-head-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.admin-mini-head-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(255, 77, 79, 0.34);
}

.live-chat-head-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.live-chat-head > * {
    pointer-events: none;
}

.live-chat-head-presence {
    position: absolute;
    right: 6px;
    bottom: 7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #31d158;
    border: 3px solid #fff;
}

.live-chat-head-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(255, 77, 79, 0.34);
}

.live-chat-panel {
    display: none;
    width: 340px;
    margin-top: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.live-chat-shell.is-open .live-chat-panel {
    display: block;
}

.admin-chat-widget-panel {
    width: 460px;
}

.live-chat-channel-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 14px 0;
    background: #fff;
}

.live-chat-channel {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f6f8fb;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.live-chat-channel.active {
    background: rgba(15, 123, 108, 0.12);
    border-color: rgba(15, 123, 108, 0.26);
    color: var(--brand);
}

.live-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: #0f1722;
    color: #fff;
}

.live-chat-persona {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(15, 123, 108, 0.95), rgba(255, 255, 255, 0.18));
    overflow: hidden;
}

.live-chat-head-avatar img,
.live-chat-avatar img,
.chat-avatar img,
.thread-avatar img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.live-chat-header strong,
.live-chat-header small,
.chat-author,
.chat-meta {
    display: block;
}

.live-chat-header small {
    color: rgba(255, 255, 255, 0.72);
}

.live-chat-close {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.live-chat-messages,
[data-admin-chat-messages] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding: 14px;
    background: #f4f7fa;
}

.chat-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.chat-row.is-customer {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #d7e8f6;
    overflow: hidden;
}

.chat-row.is-admin .chat-avatar {
    background: #d8efe9;
}

.chat-row.is-ai .chat-avatar {
    background: #e1eaf8;
}

.chat-stack {
    max-width: calc(100% - 44px);
}

.chat-row.is-customer .chat-stack {
    text-align: right;
}

.chat-author {
    margin: 0 0 5px;
    color: #617086;
    font-size: 11px;
    font-weight: 600;
}

.chat-bubble {
    display: inline-block;
    padding: 10px 13px;
    border-radius: 18px 18px 18px 6px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 10px 20px rgba(16, 24, 40, 0.06);
    line-height: 1.5;
    text-align: left;
    word-break: break-word;
}

.chat-row.is-customer .chat-bubble {
    border-radius: 18px 18px 6px 18px;
    background: linear-gradient(145deg, #0f7b6c, #136d85);
    color: #fff;
}

.chat-row.is-ai .chat-bubble {
    background: linear-gradient(145deg, #16324b, #254f74);
    color: #fff;
}

.chat-bubble a {
    color: inherit;
    text-decoration: underline;
    font-weight: 700;
}

.chat-meta {
    margin-top: 6px;
    color: #7c899b;
    font-size: 10px;
}

.admin-widget-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 420px;
}

.live-chat-thread-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-right: 1px solid var(--line);
    background: #fbfcfd;
}

.live-chat-thread-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.live-chat-thread-item.active,
.live-chat-thread-item:hover {
    background: #eef4f8;
}

.thread-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #0f7b6c, #1a4962);
    overflow: hidden;
}

.thread-copy {
    min-width: 0;
}

.thread-copy strong,
.thread-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread-copy small {
    color: var(--muted);
}

.admin-widget-chat-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.live-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.live-chat-form textarea {
    min-height: 48px;
    max-height: 120px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
}

.live-chat-empty {
    padding: 20px;
}

.live-chat-empty p {
    margin: 0 0 14px;
    color: var(--muted);
}

.live-chat-empty-actions {
    display: flex;
    gap: 10px;
}

.live-chat-guest-form {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.live-chat-guest-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-chat-guest-form input,
.live-chat-guest-form select {
    border: 1px solid var(--line);
    border-radius: 14px;
    min-height: 42px;
    padding: 0 14px;
    outline: none;
}

.ai-dropzone {
    padding: 16px;
    border: 1px dashed rgba(15, 123, 108, 0.28);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfcfd 0%, #f3f7fa 100%);
}

.ai-dropzone.is-dragover {
    border-color: rgba(15, 123, 108, 0.56);
    background: linear-gradient(180deg, #f5fbf9 0%, #eef7f4 100%);
}

.admin-ai-writer-link {
    min-width: 148px;
}

.admin-shell-link {
    min-width: 136px;
}

.ai-writer-form {
    gap: 18px;
}

.ai-writer-chat {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(15, 123, 108, 0.14);
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfffd 0%, #f2f8f7 100%);
}

.ai-writer-message,
.ai-writer-analysis {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ai-writer-message p,
.ai-writer-analysis p {
    margin: 4px 0 0;
    color: var(--muted);
}

.ai-writer-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 32px;
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(15, 123, 108, 0.1);
    color: var(--brand);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.ai-writer-chip.is-accent {
    background: rgba(9, 87, 150, 0.1);
    color: #095796;
}

.ai-writer-fields {
    align-items: start;
}

.ai-writer-dropzone {
    gap: 8px;
    min-height: 136px;
    justify-content: center;
}

.ai-writer-dropzone small {
    color: var(--muted);
    line-height: 1.5;
}

.ai-writer-preview-card {
    gap: 18px;
}

.ai-writer-analysis {
    padding: 16px;
    border: 1px solid rgba(9, 87, 150, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfcff 0%, #f3f7fb 100%);
}

.ai-writer-image-preview {
    min-height: 180px;
    justify-content: center;
}

.ai-writer-image-preview img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 14px;
    background: #f3f6f9;
}

.ai-writer-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border-radius: 14px;
    background: #f3f6f9;
    color: var(--muted);
    font-weight: 600;
}

.shell-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cloud-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cloud-shell-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px 16px 0 0;
    background: #101827;
    color: #e7eef7;
}

.cloud-shell-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #35d49a;
    box-shadow: 0 0 0 6px rgba(53, 212, 154, 0.12);
}

.cloud-shell-head small {
    margin-left: auto;
    color: rgba(231, 238, 247, 0.68);
}

.cloud-shell-screen {
    min-height: 460px;
    max-height: 68vh;
    margin: 0;
    overflow: auto;
    padding: 18px;
    border-radius: 0 0 16px 16px;
    background: #061018;
    color: #d5e8f3;
    font: 13px/1.5 "IBM Plex Sans", monospace;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid rgba(10, 23, 35, 0.8);
}

.cloud-shell-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfcfd;
}

.cloud-shell-prompt {
    color: var(--brand);
    font-weight: 700;
}

.cloud-shell-form input {
    flex: 1;
    min-width: 260px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.live-chat-typing {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px 12px;
    color: var(--muted);
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dots i {
    width: 7px;
    height: 7px;
    display: block;
    border-radius: 50%;
    background: var(--brand);
    animation: typingPulse 1.2s infinite ease-in-out;
}

.typing-dots i:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots i:nth-child(3) {
    animation-delay: 0.4s;
}

.admin-typing-indicator {
    padding: 10px 0 0;
}

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

.setup-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(220, 227, 234, 0.85);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.setup-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(180deg, #f4f7fa 0%, #eaf0f5 100%);
}

.setup-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    transform: scale(1.01);
}

.setup-card:hover .setup-card-image img {
    transform: scale(1.08);
}

.setup-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
}

.setup-card-body h3 {
    margin: 0;
    font-size: 18px;
}

.setup-card-body p {
    margin: 0;
    color: var(--muted);
}

.setup-card-body strong {
    font-size: 20px;
}

.site-footer {
    padding: 32px 0 90px;
    background: #0f1722;
    color: rgba(255, 255, 255, 0.8);
}

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

.flash {
    margin-top: 20px;
    padding: 16px 18px;
}

.flash-success {
    border-color: rgba(15, 123, 108, 0.25);
}

.flash-error {
    border-color: rgba(196, 72, 72, 0.22);
}

.layout-admin {
    background: #edf1f4;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    background: #0f1722;
    color: rgba(255, 255, 255, 0.78);
    padding: 24px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand-admin {
    margin-bottom: 24px;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
}

.admin-menu-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(255, 77, 79, 0.3);
}

.admin-menu a.active,
.admin-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-main {
    padding: 28px;
}

.admin-header {
    margin-bottom: 18px;
}

.admin-header h1 {
    font-size: 28px;
}

.admin-user {
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-notify-menu,
.admin-weather-menu {
    position: relative;
}

.admin-notify-trigger,
.admin-weather-trigger {
    min-width: 110px;
}

.admin-notify-trigger {
    position: relative;
    padding-right: 42px;
}

.admin-notify-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e95a5a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(233, 90, 90, 0.24);
}

.admin-notify-badge.is-hidden {
    display: none;
}

.admin-notify-dropdown,
.admin-weather-dropdown {
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    min-width: 160px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 6px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 26, 44, 0.12);
    z-index: 20;
}

.admin-notify-dropdown {
    width: min(360px, 80vw);
    padding: 10px;
    gap: 10px;
}

.admin-notify-menu:hover .admin-notify-dropdown,
.admin-notify-menu:focus-within .admin-notify-dropdown,
.admin-weather-menu:hover .admin-weather-dropdown,
.admin-weather-menu:focus-within .admin-weather-dropdown {
    display: flex;
}

.admin-notify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 6px 2px;
}

.admin-notify-head small {
    color: var(--muted);
}

.admin-notify-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-notify-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(220, 227, 234, 0.8);
    background: #f8fafb;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.admin-notify-item strong {
    font-size: 13px;
    line-height: 1.4;
}

.admin-notify-item small {
    color: var(--muted);
}

.admin-notify-item:hover,
.admin-notify-item:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(15, 123, 108, 0.32);
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 26, 44, 0.08);
    outline: none;
}

.admin-notify-item.is-unread {
    border-color: rgba(233, 90, 90, 0.26);
    background: linear-gradient(180deg, #fff8f8 0%, #fff 100%);
}

.admin-weather-form {
    width: 100%;
}

.admin-weather-form button {
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-weather-form button:hover,
.admin-weather-form button:focus-visible,
.admin-weather-form button.active {
    background: rgba(15, 123, 108, 0.1);
    color: var(--accent);
    transform: translateX(2px);
    outline: none;
}

.weather-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.weather-overlay span {
    position: absolute;
    top: -12vh;
    left: var(--weather-left);
}

.weather-overlay-snow span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.48);
    opacity: 0.88;
    animation: snowFall var(--weather-duration) linear infinite;
    animation-delay: var(--weather-delay);
}

.weather-overlay-rain span {
    width: 2px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(to bottom, rgba(132, 189, 255, 0), rgba(132, 189, 255, 0.9));
    opacity: 0.6;
    transform: rotate(12deg);
    animation: rainFall var(--weather-duration) linear infinite;
    animation-delay: var(--weather-delay);
}

.metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.metric-card {
    padding: 20px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-card strong {
    font-size: 30px;
}

.metric-card.accent {
    background: linear-gradient(135deg, rgba(15, 123, 108, 0.12), rgba(255, 255, 255, 1));
}

.metric-card.warn {
    background: linear-gradient(135deg, rgba(255, 132, 89, 0.18), rgba(255, 255, 255, 1));
}

.admin-card-grid {
    grid-template-columns: 1.3fr 0.9fr;
}

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

.data-table th,
.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--muted);
    font-weight: 600;
}

.inline-form {
    flex-wrap: wrap;
}

.inline-form select {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 10px;
    background: #fff;
}

.admin-filter-bar {
    margin-bottom: 12px;
}

.admin-filter-bar label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.narrow-panel {
    max-width: 540px;
    margin: 40px auto 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(1.01); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes typingPulse {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-2px); }
}

@keyframes snowFall {
    0% {
        transform: translate3d(0, -14vh, 0) scale(0.9);
    }
    100% {
        transform: translate3d(26px, 118vh, 0) scale(1.12);
    }
}

@keyframes rainFall {
    0% {
        transform: translate3d(0, -20vh, 0) rotate(12deg);
    }
    100% {
        transform: translate3d(-56px, 118vh, 0) rotate(12deg);
    }
}

@media (max-width: 1280px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .content-with-sidebar,
    .cart-grid,
    .checkout-grid,
    .order-layout,
    .admin-card-grid,
    .profile-grid,
    .split-callout,
    .product-detail,
    .chat-admin-grid {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
    }

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

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

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

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .profile-summary-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 100%);
    }

    .main-header,
    .nav-row-inner,
    .section-head,
    .compact-head,
    .builder-summary,
    .main-nav,
    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form,
    .form-grid,
    .form-grid.two-col,
    .metrics-grid,
    .builder-grid,
    .product-grid,
    .setup-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: none;
        padding: 24px;
    }

    .hero-copy h1 {
        font-size: 24px;
    }

    .brand-wordmark-text {
        font-size: 24px;
    }

    .hero-dots {
        left: 24px;
        bottom: 14px;
    }

    .cart-item,
    .order-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-controls {
        text-align: left;
    }

    .floating-contact {
        right: 12px;
        bottom: 12px;
    }

    .live-chat-shell {
        right: 12px;
        top: auto;
        bottom: 94px;
        transform: none;
    }

    .admin-header,
    .admin-header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-notify-trigger,
    .admin-weather-trigger,
    .admin-user {
        width: 100%;
        text-align: center;
    }

    .admin-notify-dropdown,
    .admin-weather-dropdown {
        left: 0;
        right: 0;
    }

    .trade-setup-preview {
        grid-template-columns: 1fr;
    }

    .trade-setup-preview img {
        width: 100%;
        height: 180px;
    }

    .brand-editor-head,
    .brand-position-fields {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .live-chat-panel {
        width: min(320px, calc(100vw - 24px));
    }

    .admin-chat-widget-panel {
        width: min(420px, calc(100vw - 24px));
    }

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

    .live-chat-thread-list {
        max-height: 180px;
        overflow-y: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}
