* { box-sizing: border-box; }
body { margin: 0; font-family: var(--brand-font); color: #172033; background: #f4f6f8; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.store-header { background: #fff; border-bottom: 1px solid #e4e8ef; position: sticky; top: 0; z-index: 20; }
.header-grid { min-height: 76px; display: grid; grid-template-columns: 230px minmax(240px, 1fr) auto; gap: 22px; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--brand-secondary); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.search-box { display: grid; grid-template-columns: 1fr 116px; background: #f1f4f8; border: 1px solid #dfe5ed; border-radius: 8px; overflow: hidden; }
.search-box input, .search-box button, .checkout-shell input, .checkout-shell textarea, .checkout-shell select, .admin-form input, .admin-form textarea, .admin-form select { border: 0; padding: 13px 14px; min-width: 0; }
.search-box button, .btn-cart, .buy-button, .admin-action { background: var(--brand-button); color: #101820; border: 0; border-radius: 6px; font-weight: 800; padding: 12px 18px; display: inline-flex; justify-content: center; align-items: center; }
.header-actions { display: flex; gap: 16px; align-items: center; font-size: .94rem; }
.header-actions strong { color: var(--brand-primary); }
.delivery-strip { color: #596579; font-size: .9rem; padding-bottom: 12px; }
.hero-commerce { background: #111827; }
.hero-slide { min-height: 410px; background-size: cover; background-position: center; display: flex; align-items: center; position: relative; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,18,35,.82), rgba(9,18,35,.38), rgba(9,18,35,.08)); }
.hero-copy { position: relative; max-width: 620px; margin-left: clamp(20px, 6vw, 84px); color: #fff; }
.hero-copy h1 { font-size: clamp(2.1rem, 5vw, 4.8rem); line-height: 1; margin: 0 0 16px; letter-spacing: 0; }
.hero-copy p { font-size: 1.18rem; max-width: 520px; }
.hero-copy a { display: inline-flex; background: var(--brand-button); color: #101820; padding: 14px 20px; border-radius: 6px; font-weight: 800; }
.marketplace-carousel { position: relative; }
.hero-indicators { right: auto; left: clamp(20px, 6vw, 84px); bottom: 24px; margin: 0; justify-content: flex-start; gap: 8px; }
.hero-indicators [data-bs-target] { width: 34px; height: 6px; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); opacity: 1; }
.hero-indicators .active { background: var(--brand-button); }
.hero-control { width: 46px; height: 46px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.92); color: #172033; border-radius: 999px; opacity: 1; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.hero-control.carousel-control-prev { left: 18px; }
.hero-control.carousel-control-next { right: 18px; }
.hero-control span { font-size: 2.2rem; line-height: .8; font-weight: 300; }
.quick-access { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.quick-access div, .category-strip a, .admin-panel, .stats-grid article { background: #fff; border: 1px solid #e3e8ef; border-radius: 8px; padding: 16px; }
.catalog-section { margin: 30px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; gap: 20px; }
.section-title h1, .section-title h2 { font-size: 1.55rem; margin: 0; color: #172033; }
.section-title a { color: var(--brand-primary); font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { background: #fff; border: 1px solid #e3e8ef; border-radius: 8px; overflow: hidden; min-width: 0; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(24, 38, 63, .12); }
.product-media { position: relative; aspect-ratio: 1 / .82; background: #eef2f6; display: block; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.badge-sale, .badge-new { position: absolute; top: 10px; z-index: 2; padding: 5px 8px; border-radius: 5px; font-size: .75rem; font-weight: 800; }
.badge-sale { left: 10px; background: #e92241; color: #fff; }
.badge-new { right: 10px; background: #0f9f6e; color: #fff; }
.product-body { padding: 14px; display: grid; gap: 8px; }
.product-brand, .rating { color: #6b7586; font-size: .84rem; }
.product-body h3 { font-size: 1rem; line-height: 1.28; margin: 0; min-height: 42px; }
.price-row { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price-row strong { font-size: 1.25rem; color: var(--brand-secondary); }
.old-price { text-decoration: line-through; color: #8792a3; }
.inventory { font-size: .78rem; font-weight: 900; letter-spacing: 0; }
.inventory.out { color: #b42318; }
.inventory.low { color: #bf6a02; }
.inventory.ok { color: #027a48; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-detail { border: 1px solid #cfd7e2; border-radius: 6px; display: inline-flex; justify-content: center; align-items: center; font-weight: 800; }
.category-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.product-detail { display: grid; grid-template-columns: minmax(320px, .9fr) 1fr; gap: 34px; padding-top: 34px; }
.gallery, .detail-copy, .description-panel, .checkout-shell { background: #fff; border: 1px solid #e3e8ef; border-radius: 8px; padding: 20px; }
.gallery > img { aspect-ratio: 1 / .75; width: 100%; object-fit: cover; border-radius: 6px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs img { width: 76px; height: 62px; object-fit: cover; border-radius: 5px; }
.detail-copy h1 { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.05; letter-spacing: 0; }
.detail-box { border: 1px solid #d9e2ee; border-radius: 8px; padding: 14px; margin: 18px 0; color: #435069; }
.buy-button { background: var(--brand-primary); color: #fff; }
.checkout-shell { margin-top: 34px; margin-bottom: 34px; }
.checkout-shell.narrow { max-width: 520px; }
.checkout-shell form, .checkout-grid fieldset { display: grid; gap: 12px; }
.checkout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-grid fieldset { border: 1px solid #dce3ec; border-radius: 8px; padding: 16px; }
.checkout-grid button { grid-column: 1 / -1; }
.cart-line, .summary-line { display: grid; grid-template-columns: 1fr 90px 140px; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #e5eaf0; }
.cart-line span { display: block; color: #667085; }
.store-footer { background: #111827; color: #d8dee9; padding: 28px 0; margin-top: 40px; }
.store-footer .container-fluid { display: flex; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; gap: 18px; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: #101820; color: #dce4f2; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.admin-sidebar a { padding: 11px 12px; border-radius: 6px; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: rgba(255,255,255,.1); }
.admin-brand { font-weight: 900; font-size: 1.1rem; margin-bottom: 18px; }
.admin-main { padding: 26px; }
.admin-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 20px; }
.admin-heading span { color: #667085; font-weight: 700; }
.admin-heading h1 { margin: 0; font-size: 1.8rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stats-grid span { color: #667085; display: block; }
.stats-grid strong { font-size: 1.7rem; }
.admin-panel { margin-bottom: 18px; }
.admin-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-form.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-form textarea { min-height: 82px; }
.report-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.report-grid span { background: #f2f5f9; border-radius: 6px; padding: 12px; }
@media (max-width: 1000px) {
    .header-grid, .product-detail, .admin-shell { grid-template-columns: 1fr; }
    .header-actions, .store-footer .container-fluid { flex-wrap: wrap; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-access, .category-strip, .stats-grid, .report-grid, .admin-form, .admin-form.compact, .checkout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-sidebar { position: static; }
}
@media (max-width: 620px) {
    .search-box, .product-grid, .quick-access, .category-strip, .checkout-grid, .cart-line, .summary-line, .stats-grid, .report-grid, .admin-form, .admin-form.compact { grid-template-columns: 1fr; }
    .hero-slide { min-height: 360px; }
    .hero-copy { margin: 24px; }
    .checkout-grid button { grid-column: auto; }
    .hero-control { width: 38px; height: 38px; }
    .hero-indicators { bottom: 14px; }
}

body { background: #eef2f7; }
.store-header { background: linear-gradient(135deg, var(--brand-secondary), #273449); color: #fff; border-bottom: 0; box-shadow: 0 10px 30px rgba(15, 23, 42, .22); }
.brand { color: #fff; }
.search-box { background: #fff; border-color: rgba(255,255,255,.3); box-shadow: 0 12px 32px rgba(0, 0, 0, .15); }
.delivery-strip { color: #dbe5f4; }
.hero-commerce { background: radial-gradient(circle at top left, rgba(255,183,3,.22), transparent 30%), #111827; }
.quick-access div { min-height: 70px; display: flex; align-items: center; font-weight: 800; box-shadow: 0 12px 24px rgba(28, 39, 57, .08); }
.product-card { position: relative; }
.product-card::after { content: "Envio protegido"; position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.92); color: #027a48; border-radius: 5px; padding: 4px 7px; font-size: .72rem; font-weight: 900; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.badge-sale { top: 42px; }
.admin-shell { grid-template-columns: 270px 1fr; background: #eef2f7; }
.admin-sidebar { background: linear-gradient(180deg, #111827, #172033 58%, #24344d); box-shadow: 14px 0 40px rgba(15, 23, 42, .18); }
.stats-grid article { background: linear-gradient(135deg, #fff, #f7faff); box-shadow: 0 16px 35px rgba(28, 39, 57, .08); }
.admin-panel.elevated { box-shadow: 0 18px 45px rgba(28, 39, 57, .09); }
.admin-hero { min-height: 190px; background: linear-gradient(135deg, #182235, #1769ff); color: #fff; border-radius: 8px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 20px; overflow: hidden; position: relative; }
.admin-hero::after { content: ""; position: absolute; width: 320px; height: 320px; right: -90px; top: -110px; background: rgba(255, 183, 3, .22); border-radius: 50%; }
.admin-hero > * { position: relative; z-index: 1; }
.admin-hero span, .panel-title span { display: block; color: #8fb5ff; font-weight: 900; text-transform: uppercase; font-size: .76rem; letter-spacing: .08em; }
.admin-hero h1 { max-width: 760px; margin: 6px 0 10px; font-size: clamp(1.7rem, 3vw, 3.1rem); line-height: 1; letter-spacing: 0; }
.admin-hero p { max-width: 680px; margin: 0; color: #dce9ff; font-size: 1.05rem; }
.admin-action.light { background: #fff; color: #152033; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 16px; }
.panel-title h2 { margin: 0; font-size: 1.25rem; letter-spacing: 0; }
.panel-title strong { background: #edf4ff; color: var(--brand-primary); padding: 8px 10px; border-radius: 6px; }
.product-editor { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.editor-main, .media-uploader { display: grid; gap: 12px; }
.form-grid, .theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.form-grid input, .form-grid select, .editor-main textarea, .media-uploader input, .theme-grid input, .settings-workspace input, .settings-workspace textarea { width: 100%; border: 1px solid #dce4ee; border-radius: 7px; background: #f8fafc; padding: 12px 13px; }
.editor-main textarea { min-height: 92px; }
.upload-box { min-height: 132px; border: 1px dashed #93a4ba; border-radius: 8px; background: #f8fbff; display: grid; place-items: center; text-align: center; padding: 16px; cursor: pointer; }
.upload-box input { display: none; }
.upload-box strong { color: #172033; }
.upload-box span { color: #667085; font-size: .9rem; }
.upload-box.video { background: #fff8e7; border-color: #e2b84c; }
.admin-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-product-card { background: #f8fafc; border: 1px solid #e1e8f0; border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 112px 1fr; min-height: 132px; }
.admin-product-card img { width: 112px; height: 100%; object-fit: cover; }
.admin-product-card div { padding: 12px; min-width: 0; }
.admin-product-card span, .admin-product-card small { color: #667085; }
.admin-product-card h3 { font-size: 1rem; margin: 3px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-meter { height: 7px; border-radius: 999px; background: #e4ebf3; overflow: hidden; margin: 10px 0; }
.stock-meter i { display: block; height: 100%; background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e); border-radius: inherit; }
.settings-workspace { display: grid; gap: 18px; }
.brand-grid { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.brand-preview { min-height: 250px; background: linear-gradient(160deg, #111827, #26364f); color: #fff; border-radius: 8px; padding: 20px; display: grid; place-items: center; text-align: center; align-content: center; gap: 8px; }
.preview-logo { width: 96px; height: 96px; border-radius: 22px; background: #fff; color: var(--brand-primary); display: grid; place-items: center; font-size: 2.3rem; font-weight: 900; overflow: hidden; }
.preview-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.upload-inline { display: grid; gap: 6px; color: #435069; font-weight: 700; }
.theme-grid label { background: #f8fafc; border: 1px solid #dce4ee; border-radius: 7px; padding: 10px 12px; display: grid; grid-template-columns: 1fr 62px; align-items: center; gap: 12px; font-weight: 800; }
.theme-grid input[type="color"] { padding: 0; height: 42px; }
.theme-grid .wide { grid-column: span 2; }
.payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.payment-card { border: 1px solid #dce4ee; background: #f8fafc; border-radius: 8px; padding: 14px; display: grid; gap: 10px; }
.payment-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.payment-head strong { display: block; }
.payment-head span { color: #667085; font-size: .88rem; }
.payment-card textarea { min-height: 72px; }
.switch input { display: none; }
.switch i { width: 48px; height: 28px; border-radius: 999px; background: #cbd5e1; display: block; position: relative; transition: .18s ease; }
.switch i::after { content: ""; width: 22px; height: 22px; background: #fff; border-radius: 50%; position: absolute; left: 3px; top: 3px; transition: .18s ease; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--brand-primary); }
.switch input:checked + i::after { transform: translateX(20px); }
.sticky-save { position: sticky; bottom: 16px; background: rgba(17, 24, 39, .94); color: #fff; border-radius: 8px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; box-shadow: 0 20px 45px rgba(15, 23, 42, .28); z-index: 5; }
@media (max-width: 1000px) {
    .product-editor, .brand-grid { grid-template-columns: 1fr; }
    .payment-grid, .admin-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .form-grid, .theme-grid, .payment-grid, .admin-product-grid { grid-template-columns: 1fr; }
    .admin-hero, .sticky-save { align-items: stretch; flex-direction: column; }
    .theme-grid .wide { grid-column: auto; }
}

.market-breadcrumb { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 10px; color: #2563eb; font-size: .9rem; }
.market-product-shell { display: grid; grid-template-columns: minmax(430px, 1.08fr) minmax(340px, .9fr) 310px; gap: 28px; background: #fff; border: 1px solid #dde3ea; border-radius: 8px; padding-top: 24px; padding-bottom: 24px; align-items: start; }
.market-gallery { display: grid; grid-template-columns: 68px 1fr; gap: 18px; }
.market-thumbs { display: grid; gap: 10px; align-content: start; }
.market-thumbs button { border: 1px solid #d6dce5; background: #fff; border-radius: 6px; padding: 3px; width: 58px; height: 58px; cursor: pointer; }
.market-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.market-main-image { background: #f7f8fa; border-radius: 8px; min-height: 520px; display: grid; place-items: center; overflow: hidden; }
.market-main-image img { width: 100%; height: 100%; object-fit: cover; }
.market-info h1 { font-size: 1.45rem; line-height: 1.22; margin: 8px 0 4px; color: #222; letter-spacing: 0; }
.meta-line, .review-line, .installments { color: #6b7280; }
.review-line { display: flex; gap: 8px; align-items: center; margin: 5px 0 14px; }
.review-line strong { color: #3483fa; letter-spacing: 1px; }
.old-price.big { font-size: 1rem; }
.market-price { font-size: 2rem; line-height: 1; font-weight: 500; color: #222; margin: 4px 0 6px; }
.market-price span { display: inline-flex; vertical-align: middle; background: #00a650; color: #fff; border-radius: 4px; padding: 4px 6px; font-size: .78rem; font-weight: 800; }
.installments { color: #00a650; margin: 0 0 8px; }
.payment-link { color: #3483fa; font-weight: 700; font-size: .92rem; }
.promo-strip { max-width: 320px; background: linear-gradient(90deg, #eef4ff, #f8ecff); color: #344054; border-radius: 6px; padding: 12px; margin: 16px 0 20px; font-weight: 800; }
.compatibility-panel { border: 1px solid #d9e2ef; border-radius: 12px; background: #fbfdff; padding: 16px; display: grid; gap: 12px; margin-bottom: 18px; }
.compatibility-panel h2 { margin: 0; font-size: 1rem; font-weight: 950; color: #101828; }
.compatibility-panel div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.compatibility-panel span { display: block; color: #667085; font-size: .76rem; font-weight: 850; }
.compatibility-panel strong { display: block; color: #101828; font-size: .88rem; overflow-wrap: anywhere; }
.variant-block { display: grid; gap: 10px; margin: 16px 0; }
.variant-options { display: flex; gap: 9px; flex-wrap: wrap; }
.variant-options button { min-width: 44px; height: 34px; border: 1px solid #cfd7e2; background: #fff; border-radius: 6px; }
.description-panel.flat { border: 0; padding: 22px 0 0; background: transparent; }
.description-panel.flat h2 { font-size: 1rem; margin-bottom: 12px; }
.buy-card { border: 1px solid #d6dce5; border-radius: 8px; padding: 16px; display: grid; gap: 14px; position: sticky; top: 112px; background: #fff; }
.delivery-card, .seller-card, .protected-card { display: grid; gap: 5px; color: #344054; }
.delivery-card a { color: #3483fa; font-size: .9rem; }
.delivery-card p { margin: 6px 0 0; }
.stock-box { display: grid; gap: 7px; margin-top: 8px; }
.stock-box strong { color: #1f2937; }
.buy-actions { display: grid; gap: 9px; }
.buy-now, .add-cart { border: 0; min-height: 48px; border-radius: 7px; font-weight: 900; }
.buy-now { background: #3483fa; color: #fff; }
.add-cart { background: #e8f1ff; color: #2563eb; }
.seller-card { border-top: 1px solid #edf0f4; padding-top: 12px; }
.protected-card { color: #667085; border-top: 1px solid #edf0f4; padding-top: 12px; }
.inventory-board .panel-title { align-items: start; }
.predictive-input { border: 1px solid #dce4ee; border-radius: 8px; background: #fff; padding: 12px 14px; min-width: min(420px, 100%); }
.inventory-suggestions { display: grid; gap: 8px; margin-bottom: 12px; }
.inventory-suggestions.floating { position: relative; z-index: 4; margin-bottom: 0; }
.inventory-suggestions button { border: 1px solid #dce4ee; background: #fff; border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; text-align: left; cursor: pointer; }
.inventory-suggestions button:hover { border-color: var(--brand-primary); box-shadow: 0 8px 20px rgba(37, 99, 235, .1); }
.inventory-suggestions span { color: #667085; font-size: .86rem; }
.inventory-table { display: grid; gap: 8px; }
.inventory-row { display: grid; grid-template-columns: minmax(280px, 1fr) 150px 130px 130px 110px 110px; gap: 12px; align-items: center; background: #f8fafc; border: 1px solid #e1e8f0; border-radius: 8px; padding: 10px 12px; }
.inventory-row.head { background: #172033; color: #fff; font-weight: 800; }
.inventory-product { display: flex; align-items: center; gap: 12px; min-width: 0; }
.inventory-product img { width: 58px; height: 58px; object-fit: cover; border-radius: 9px; box-shadow: 0 8px 18px rgba(16,24,40,.10); }
.inventory-product strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inventory-product small { color: #667085; }
.inventory-pill { border-radius: 999px; padding: 6px 10px; font-weight: 900; text-align: center; font-size: .82rem; }
.inventory-pill.ok { background: #dcfce7; color: #166534; }
.inventory-pill.low { background: #fef3c7; color: #92400e; }
.inventory-pill.out { background: #fee2e2; color: #991b1b; }
.predictive-field { position: relative; }
.loaded-product-preview { display: none; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 8px; padding: 10px; }
.loaded-product-preview.show { display: grid; }
.loaded-product-preview img { width: 76px; height: 76px; object-fit: cover; border-radius: 7px; background: #fff; }
.loaded-product-preview strong { display: block; color: #1e40af; }
.loaded-product-preview span { color: #475569; font-size: .9rem; }
.classification-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.classification-editor div { display: grid; gap: 8px; background: #f8fafc; border: 1px solid #dce4ee; border-radius: 8px; padding: 12px; }
.classification-editor label { font-weight: 900; color: #334155; }
.classification-editor input { width: 100%; border: 1px solid #dce4ee; border-radius: 7px; background: #fff; padding: 12px 13px; }
.product-highlights { display: grid; gap: 8px; padding-left: 18px; margin: 0; color: #111827; }
.modern-checkout { padding-top: 28px; padding-bottom: 36px; }
.checkout-hero { min-height: 160px; border-radius: 8px; background: linear-gradient(135deg, #172033, #2563eb); color: #fff; padding: 26px; display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 18px; box-shadow: 0 18px 45px rgba(28,39,57,.16); }
.checkout-hero span, .account-benefits span { color: #bfdbfe; font-weight: 900; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }
.checkout-hero h1, .account-benefits h1 { margin: 6px 0 8px; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; letter-spacing: 0; }
.checkout-hero p, .account-benefits p { margin: 0; color: #dbeafe; max-width: 620px; }
.checkout-progress { display: grid; grid-template-columns: 34px auto 34px auto 34px auto; gap: 8px; align-items: center; white-space: nowrap; }
.checkout-progress i, .step-heading i { width: 34px; height: 34px; border-radius: 999px; background: var(--brand-button); color: #111827; display: grid; place-items: center; font-style: normal; font-weight: 900; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.checkout-forms { display: grid; gap: 14px; }
.checkout-step-card, .order-summary-card { background: #fff; border: 1px solid #dce4ee; border-radius: 8px; padding: 18px; box-shadow: 0 14px 34px rgba(28,39,57,.08); }
.step-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.step-heading strong { display: block; font-size: 1.08rem; }
.step-heading span { color: #667085; font-size: .9rem; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid label, .account-form label { display: grid; gap: 6px; color: #475569; font-weight: 800; font-size: .9rem; }
.field-grid input, .field-grid textarea, .field-grid select, .account-form input { width: 100%; border: 1px solid #cfd8e3; border-radius: 7px; background: #f8fafc; padding: 12px 13px; min-height: 48px; color: #111827; }
.field-grid input:focus, .field-grid textarea:focus, .field-grid select:focus, .account-form input:focus { outline: 3px solid rgba(37,99,235,.14); border-color: var(--brand-primary); background: #fff; }
.field-grid .wide { grid-column: 1 / -1; }
.field-grid textarea { min-height: 90px; resize: vertical; }
.location-capture { margin-top: 14px; border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 8px; padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.location-capture strong { display: block; color: #1e3a8a; }
.location-capture span { color: #475569; font-size: .92rem; }
.location-capture a { color: var(--brand-primary); font-weight: 900; margin-left: 6px; }
.location-capture button { border: 0; border-radius: 7px; background: var(--brand-primary); color: #fff; font-weight: 900; padding: 12px 16px; white-space: nowrap; }
.location-capture button:disabled { opacity: .65; cursor: wait; }
.order-summary-card { position: sticky; top: 116px; display: grid; gap: 14px; }
.order-summary-card h2 { margin: 0; font-size: 1.25rem; }
.summary-items, .summary-totals { display: grid; gap: 10px; }
.summary-items div, .summary-totals div { display: flex; justify-content: space-between; gap: 14px; align-items: start; color: #475569; }
.summary-items small { color: #64748b; }
.grand-total { border-top: 1px solid #e2e8f0; padding-top: 12px; color: #111827 !important; }
.grand-total strong { font-size: 1.3rem; }
.secure-note { margin: 0; color: #64748b; font-size: .9rem; text-align: center; }
.account-page { padding-top: 34px; padding-bottom: 42px; }
.account-card { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(320px, 520px); max-width: 1080px; margin: 0 auto; background: #fff; border: 1px solid #dce4ee; border-radius: 8px; overflow: hidden; box-shadow: 0 18px 45px rgba(28,39,57,.1); }
.account-card.login-card { max-width: 920px; }
.account-benefits { background: linear-gradient(145deg, #111827, #1d4ed8); color: #fff; padding: clamp(26px, 5vw, 46px); display: grid; align-content: center; gap: 14px; }
.account-benefits ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 8px; color: #e0ecff; }
.account-form { padding: clamp(24px, 4vw, 38px); display: grid; gap: 14px; align-content: center; }
.account-form h2 { margin: 0 0 4px; font-size: 1.7rem; }
.account-form a { color: var(--brand-primary); font-weight: 800; text-align: center; }
.admin-action.ghost { background: #eef4ff; color: var(--brand-primary); border: 1px solid #bfdbfe; margin-top: 10px; }
.banner-editor { display: grid; grid-template-columns: minmax(320px, .9fr) 1fr; gap: 18px; align-items: stretch; }
.banner-preview-box { min-height: 320px; border-radius: 8px; overflow: hidden; position: relative; background: #111827; color: #fff; display: grid; align-items: end; box-shadow: 0 18px 45px rgba(28,39,57,.12); }
.banner-preview-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.banner-preview-box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(15,23,42,.82)); }
.banner-preview-box div { position: relative; z-index: 1; padding: 22px; }
.banner-preview-box strong { display: block; font-size: 1.5rem; line-height: 1.05; }
.banner-preview-box span { color: #dbeafe; }
.banner-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.banner-fields input, .banner-fields label { width: 100%; }
.banner-fields input { border: 1px solid #dce4ee; border-radius: 7px; background: #f8fafc; padding: 12px 13px; }
.banner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.banner-card { background: #f8fafc; border: 1px solid #e1e8f0; border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 180px 1fr; min-height: 150px; }
.banner-card img { width: 180px; height: 100%; object-fit: cover; }
.banner-card div { padding: 14px; display: grid; gap: 6px; align-content: start; }
.banner-card span { color: #667085; font-size: .86rem; }
.banner-card h3 { margin: 0; font-size: 1.05rem; }
.banner-card p { margin: 0; color: #475569; }
.palette-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.palette-card { min-height: 78px; border-radius: 8px; border: 1px solid #dce4ee; padding: 12px; display: flex; align-items: end; gap: 8px; font-weight: 900; cursor: pointer; background: #fff; position: relative; overflow: hidden; }
.palette-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 16px; }
.palette-card input { position: relative; z-index: 1; }
.palette-market::before { background: linear-gradient(90deg, #fff159 0 48%, #3483fa 48% 75%, #00a650 75%); }
.palette-blue::before { background: linear-gradient(90deg, #1769ff 0 45%, #111827 45% 72%, #ffb703 72%); }
.palette-green::before { background: linear-gradient(90deg, #0f9f6e 0 45%, #10231d 45% 72%, #22c55e 72%); }
.palette-dark::before { background: linear-gradient(90deg, #8b5cf6 0 45%, #111827 45% 72%, #f59e0b 72%); }
@media (max-width: 1100px) {
    .market-product-shell { grid-template-columns: 1fr; }
    .buy-card { position: static; }
    .inventory-row { grid-template-columns: 1fr 1fr; }
    .inventory-row.head { display: none; }
    .checkout-layout { grid-template-columns: 1fr; }
    .order-summary-card { position: static; }
    .banner-editor, .banner-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .market-gallery { grid-template-columns: 1fr; }
    .market-thumbs { display: flex; overflow-x: auto; }
    .market-main-image { min-height: 360px; }
    .palette-grid { grid-template-columns: 1fr 1fr; }
    .compatibility-panel div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .classification-editor { grid-template-columns: 1fr; }
    .checkout-hero, .account-card { grid-template-columns: 1fr; }
    .checkout-hero { display: grid; }
    .checkout-progress { grid-template-columns: 34px auto; white-space: normal; }
    .field-grid, .field-grid.two { grid-template-columns: 1fr; }
    .location-capture { grid-template-columns: 1fr; }
}

:root {
    --primary-dark: #07111f;
    --secondary-dark: #101827;
    --yellow: #ffc400;
    --yellow-hover: #f3b300;
    --text-dark: #101828;
    --muted: #667085;
    --background: #f4f7fb;
    --white: #ffffff;
}
body { background: var(--background); color: var(--text-dark); }
.store-header { position: sticky; top: 0; z-index: 30; background: var(--white); color: var(--text-dark); box-shadow: 0 10px 30px rgba(16,24,40,.10); }
.market-topbar { background: linear-gradient(90deg, #020814, #07111f); color: #fff; font-size: .84rem; }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.store-icon { color: var(--yellow); font-style: normal; margin-right: 6px; }
.market-mainbar { background: var(--white); }
.header-grid { min-height: 92px; grid-template-columns: 230px minmax(320px, 1fr) auto; }
.brand { color: var(--primary-dark); font-size: 2rem; font-weight: 950; letter-spacing: -1px; }
.brand span b { color: var(--primary-dark); }
.brand span em { color: var(--yellow); font-style: normal; }
.search-box { height: 52px; border: 1px solid #d0d5dd; border-radius: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.08); grid-template-columns: 1fr 64px; }
.search-box input { font-size: .98rem; padding-left: 18px; }
.search-box button { background: var(--yellow); border-radius: 0; color: #020814; font-size: 1.4rem; padding: 0; }
.search-box button:hover, .btn-cart:hover, .hero-copy a:hover { background: var(--yellow-hover); }
.header-actions { gap: 22px; color: var(--text-dark); }
.header-actions a { display: grid; justify-items: center; gap: 4px; font-size: .84rem; color: var(--text-dark); position: relative; }
.header-actions i { font-style: normal; font-size: 1.35rem; line-height: 1; }
.cart-link strong { position: absolute; top: -9px; right: -10px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--yellow); color: #111; display: grid; place-items: center; font-size: .75rem; }
.market-categorybar { background: var(--primary-dark); color: #fff; }
.categorybar-inner { min-height: 58px; display: flex; align-items: center; gap: 24px; overflow-x: auto; white-space: nowrap; }
.categorybar-inner a { font-weight: 800; font-size: .9rem; }
.all-categories { background: var(--yellow); color: #07111f; border-radius: 7px; padding: 12px 16px; }
.daily-deal { margin-left: auto; border: 1px solid rgba(255,196,0,.65); border-radius: 7px; padding: 10px 16px; color: #fff; }
.hero-commerce { background: var(--primary-dark); }
.hero-slide { min-height: 360px; background-position: center; }
.hero-slide::before { background: radial-gradient(circle at 70% 35%, rgba(255,196,0,.08), transparent 24%), linear-gradient(90deg, rgba(7,17,31,.96), rgba(7,17,31,.70), rgba(7,17,31,.18)); }
.hero-copy span { display: block; color: var(--yellow); text-transform: uppercase; font-weight: 950; letter-spacing: .08em; margin-bottom: 8px; }
.hero-copy h1 { max-width: 520px; font-size: clamp(2.5rem, 5.3vw, 5rem); font-weight: 950; }
.hero-copy p { font-weight: 600; }
.hero-copy a { gap: 14px; background: var(--yellow); color: #06101e; min-width: 150px; justify-content: center; }
.hero-control { background: rgba(255,255,255,.92); }
.hero-indicators .active { background: var(--yellow); }
.benefit-float { margin-top: -42px; position: relative; z-index: 3; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.benefit-float article { min-height: 86px; background: #fff; border: 1px solid #e4e7ec; border-right: 0; display: flex; align-items: center; gap: 14px; padding: 18px 22px; box-shadow: 0 16px 40px rgba(16,24,40,.12); }
.benefit-float article:first-child { border-radius: 10px 0 0 10px; }
.benefit-float article:last-child { border-right: 1px solid #e4e7ec; border-radius: 0 10px 10px 0; }
.benefit-float i, .quick-access i, .promo-dark i { width: 38px; height: 38px; border-radius: 9px; border: 1px solid #d0d5dd; display: grid; place-items: center; font-style: normal; font-size: 1.2rem; color: var(--primary-dark); flex: 0 0 auto; }
.benefit-float strong, .quick-access strong, .promo-dark strong { display: block; color: var(--text-dark); }
.benefit-float span, .quick-access span, .promo-dark span { color: var(--muted); font-size: .84rem; }
.quick-access { margin-top: 18px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.quick-access div { background: #fff; min-height: 86px; display: flex; gap: 14px; align-items: center; border-radius: 8px; border: 1px solid #e4e7ec; box-shadow: 0 10px 24px rgba(16,24,40,.06); flex-wrap: wrap; align-content: center; }
.quick-access strong, .quick-access span { width: calc(100% - 52px); }
.deal-title { align-items: center; }
.deal-title div { display: flex; align-items: center; gap: 14px; }
.deal-title h2 { font-size: 1.45rem; font-weight: 950; }
.deal-title span { background: #fff1f3; color: #d92d20; border-radius: 999px; padding: 7px 12px; font-weight: 900; font-size: .86rem; }
.deal-title a { color: #1d4ed8; }
.product-grid { gap: 22px; }
.product-card { border-radius: 10px; border: 1px solid #e4e7ec; box-shadow: 0 12px 30px rgba(16,24,40,.08); }
.product-card::after { display: none; }
.product-media { aspect-ratio: 1 / .56; }
.product-media img { transition: transform .25s ease; }
.product-card:hover .product-media img { transform: scale(1.035); }
.shipping-tag { position: absolute; left: 12px; top: 12px; z-index: 2; background: #ecfdf3; color: #067647; border-radius: 6px; padding: 5px 8px; font-size: .76rem; font-weight: 950; }
.badge-sale { top: 42px; left: 12px; background: #e40046; }
.favorite-btn { position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 999px; border: 0; background: rgba(255,255,255,.95); color: #111827; font-size: 1.2rem; box-shadow: 0 8px 18px rgba(16,24,40,.18); }
.product-body { padding: 16px; gap: 7px; }
.product-body h3 { min-height: auto; font-weight: 900; color: var(--text-dark); }
.rating span { color: #f59e0b; }
.price-row { margin-top: 4px; }
.price-row strong { font-size: 1.4rem; color: var(--text-dark); }
.card-actions { position: absolute; right: 14px; bottom: 16px; display: block; }
.card-actions .btn-cart { width: 44px; height: 44px; border-radius: 8px; padding: 0; background: var(--yellow); font-size: 1.3rem; }
.btn-detail { display: none; }
.promo-footer-band { display: grid; grid-template-columns: 1fr 360px; gap: 0; margin-top: 10px; margin-bottom: 34px; }
.promo-dark { background: linear-gradient(90deg, #07111f, #0d1b2e); color: #fff; border-radius: 10px 0 0 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.promo-dark article { min-height: 90px; display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-right: 1px solid rgba(255,255,255,.12); }
.promo-dark strong { color: #fff; }
.promo-dark span { color: #cbd5e1; }
.promo-dark i { color: #fff; border-color: rgba(255,255,255,.35); }
.seller-cta { background: linear-gradient(135deg, #fff7df, #fff); border: 1px solid #fde7a1; border-left: 0; border-radius: 0 10px 10px 0; display: flex; align-items: center; justify-content: space-around; gap: 18px; padding: 18px; }
.seller-cta strong { color: #f59e0b; font-size: 1.1rem; display: block; }
.seller-cta span { color: var(--text-dark); }
.seller-cta a { background: var(--primary-dark); color: #fff; border-radius: 7px; padding: 12px 18px; font-weight: 900; }
@media (max-width: 1180px) {
    .header-grid { grid-template-columns: 1fr; padding-top: 16px; padding-bottom: 16px; }
    .header-actions { justify-content: space-between; }
    .benefit-float, .quick-access, .promo-dark { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefit-float article, .benefit-float article:first-child, .benefit-float article:last-child { border-radius: 8px; border: 1px solid #e4e7ec; }
    .promo-footer-band { grid-template-columns: 1fr; }
    .promo-dark, .seller-cta { border-radius: 10px; }
}
@media (max-width: 640px) {
    .topbar-inner { justify-content: center; }
    .header-actions { display: grid; grid-template-columns: repeat(3, 1fr); }
    .categorybar-inner { gap: 14px; }
    .benefit-float, .quick-access, .promo-dark, .product-grid { grid-template-columns: 1fr; }
    .benefit-float { margin-top: 14px; }
    .hero-slide { min-height: 430px; }
    .promo-dark article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
    .seller-cta { display: grid; }
}

/* Modern admin dashboard */
:root {
    --sidebar-dark: #0b1728;
    --blue: #155eef;
    --blue-dark: #173b78;
    --card: #ffffff;
    --text: #101828;
    --border: #d9e2ef;
    --success: #12b76a;
    --danger: #f04438;
}
.admin-shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; background: var(--background); font-family: var(--brand-font); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, #07111f, #0b1728 58%, #102341); color: #fff; padding: 26px 16px 18px; display: flex; flex-direction: column; box-shadow: 18px 0 45px rgba(7,17,31,.24); }
.admin-brand-block { padding: 0 6px 18px; }
.admin-brand { display: block; font-size: 1.7rem; font-weight: 950; letter-spacing: -.6px; color: #fff; line-height: 1; }
.admin-brand b { color: #fff; }
.admin-brand em { color: var(--yellow); font-style: normal; }
.admin-brand-block span { display: block; color: #dbeafe; font-size: .88rem; margin-top: 6px; font-weight: 700; }
.admin-menu { display: grid; gap: 7px; margin-top: 6px; }
.admin-menu a { display: flex; align-items: center; gap: 12px; color: #fff; border-radius: 8px; padding: 12px 13px; font-weight: 850; font-size: .95rem; transition: background .18s ease, transform .18s ease; }
.admin-menu a i { width: 22px; height: 22px; display: grid; place-items: center; font-style: normal; color: #eaf2ff; }
.admin-menu a.active, .admin-menu a:hover { background: linear-gradient(90deg, #124ecb, #155eef); transform: translateX(2px); }
.admin-user-card { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; display: grid; grid-template-columns: 38px 1fr 18px; gap: 10px; align-items: center; }
.admin-user-card > span { width: 34px; height: 34px; border-radius: 999px; background: var(--yellow); color: #07111f; display: grid; place-items: center; font-weight: 950; }
.admin-user-card strong { display: block; font-size: .88rem; }
.admin-user-card small { color: #b8c7df; font-size: .76rem; }
.admin-main { padding: 18px 28px 34px; min-width: 0; }
.admin-topbar { min-height: 42px; display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-bottom: 18px; }
.admin-search { width: min(360px, 100%); height: 42px; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 8px; display: grid; grid-template-columns: 38px 1fr; align-items: center; color: #64748b; }
.admin-search i { font-style: normal; text-align: center; }
.admin-search input { border: 0; outline: 0; background: transparent; height: 100%; }
.admin-top-actions { display: flex; gap: 12px; }
.admin-top-actions button { width: 36px; height: 36px; border: 0; background: transparent; color: #334155; position: relative; font-weight: 900; font-size: 1.1rem; }
.admin-top-actions strong { position: absolute; top: -4px; right: -2px; background: var(--blue); color: #fff; width: 18px; height: 18px; border-radius: 999px; font-size: .7rem; display: grid; place-items: center; }
.products-hero.admin-hero { min-height: 160px; background: linear-gradient(105deg, #07111f, #123f91 48%, #155eef); border-radius: 12px; padding: 28px; box-shadow: 0 18px 38px rgba(21,94,239,.16); }
.products-hero .admin-action.light { background: #fff; color: #0f172a; border-radius: 8px; min-width: 142px; }
.admin-hero-art { margin-left: auto; width: 280px; height: 112px; position: relative; display: grid; place-items: center; }
.admin-hero-art i { width: 86px; height: 86px; border-radius: 20px; background: linear-gradient(180deg, #2f7bff, #0c4edc); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 2rem; box-shadow: 0 18px 40px rgba(0,0,0,.25); transform: translateX(-38px); }
.admin-hero-art b { position: absolute; right: 28px; width: 112px; height: 82px; border-radius: 8px; background: rgba(255,255,255,.88); color: #155eef; display: grid; place-items: center; font-size: 2.3rem; box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.admin-stats-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.admin-stat-card { background: #fff; border: 1px solid #e4eaf2; border-radius: 12px; padding: 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; box-shadow: 0 12px 28px rgba(16,24,40,.06); }
.admin-stat-card span { color: #344054; font-weight: 850; font-size: .85rem; }
.admin-stat-card strong { display: block; font-size: 1.65rem; line-height: 1; margin: 9px 0 6px; color: var(--text); }
.admin-stat-card small { color: var(--muted); }
.admin-stat-card i { width: 54px; height: 54px; border-radius: 999px; display: grid; place-items: center; font-style: normal; font-size: 1.55rem; }
.admin-stat-card.blue i { background: #dbeafe; color: #155eef; }
.admin-stat-card.green i { background: #dcfce7; color: #16a34a; }
.admin-stat-card.orange i { background: #ffedd5; color: #f97316; }
.admin-stat-card.purple i { background: #f3e8ff; color: #9333ea; }
.admin-stat-card.cyan i { background: #cffafe; color: #0891b2; }
.admin-stat-card.yellow i { background: #fef3c7; color: #d97706; }
.admin-panel.elevated { background: #fff; border: 1px solid #e4eaf2; border-radius: 14px; box-shadow: 0 14px 34px rgba(16,24,40,.06); padding: 18px; }
.panel-title { margin-bottom: 12px; }
.panel-title span { color: #155eef; }
.shipping-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.shipping-settings-grid label {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid #d9e6ff;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff, #fff);
}
.shipping-settings-grid span {
    color: #071B34;
    font-weight: 950;
}
.shipping-settings-grid input {
    min-height: 44px;
    width: 100%;
    border: 1px solid #cbd8ea;
    border-radius: 10px;
    background: #fff;
    color: #071B34;
    padding: 0 12px;
    font-weight: 850;
}
.shipping-settings-grid input:focus {
    outline: 3px solid rgba(31, 94, 255, .16);
    border-color: #1F5EFF;
}
.shipping-settings-grid small {
    color: #667085;
    font-weight: 750;
}
.product-editor { grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; }
.predictive-input, .form-grid input, .form-grid select, .editor-main textarea, .media-uploader input, .classification-editor input { border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; min-height: 40px; padding: 11px 13px; font-size: .9rem; }
.form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.editor-main textarea { min-height: 42px; }
.classification-editor div { border-radius: 10px; background: #fbfdff; }
.publish-panel { background: #fff; border-radius: 12px; }
.upload-box { min-height: 96px; border-radius: 10px; border: 1.5px dashed #84adff; background: #f8fbff; }
.upload-box.video { border-color: #f6bd4f; background: #fffaf0; }
.upload-box strong { font-size: .95rem; }
.media-uploader label { font-weight: 800; color: #344054; }
.save-product-action { width: 100%; min-height: 48px; background: var(--yellow); color: #07111f; border-radius: 8px; }
.admin-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-product-card { grid-template-columns: 94px 1fr; border-radius: 10px; background: #f8fafc; border: 1px solid #dbe4ef; min-height: 104px; position: relative; box-shadow: 0 8px 20px rgba(16,24,40,.05); }
.admin-product-card img { width: 94px; height: 100%; object-fit: cover; }
.admin-product-card div { padding: 10px 42px 10px 12px; }
.product-more { position: absolute; top: 8px; right: 9px; border: 0; background: transparent; color: #475569; font-size: 1.25rem; }
.admin-product-card h3 { font-size: .9rem; }
.admin-product-card strong { font-size: .86rem; color: #0f172a; }
.admin-product-card small { font-size: .76rem; }
.stock-meter { height: 8px; background: #dbe4ef; }
.stock-meter i { background: linear-gradient(90deg, #155eef, #3b82f6); }
.edit-product.admin-action.ghost { min-height: 30px; padding: 6px 16px; color: #155eef; background: #eef4ff; border-color: #c7d7fe; font-size: .8rem; }
@media (max-width: 1320px) {
    .admin-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-editor { grid-template-columns: 1fr; }
    .admin-hero-art { display: none; }
}
@media (max-width: 620px) {
    .admin-main { padding: 14px; }
    .admin-menu, .admin-stats-row, .admin-product-grid, .form-grid { grid-template-columns: 1fr; }
    .admin-topbar { display: grid; justify-content: stretch; }
    .admin-search { width: 100%; }
}

/* Premium product editor */
.edit-product-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin: 4px 0 18px; }
.admin-breadcrumb { display: flex; align-items: center; gap: 9px; color: #7a8aa0; font-size: .86rem; margin-bottom: 6px; }
.admin-breadcrumb a { color: #667085; font-weight: 750; }
.admin-breadcrumb strong { color: #155eef; }
.edit-product-head h1 { margin: 0; color: #101828; font-size: 1.75rem; font-weight: 950; letter-spacing: 0; }
.edit-product-head p { margin: 5px 0 0; color: #667085; }
.edit-head-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.admin-action.save-head-action, .save-product-action { background: var(--yellow); color: #07111f; border: 0; font-weight: 950; box-shadow: 0 10px 22px rgba(255,196,0,.24); }
.admin-action.save-head-action:hover, .save-product-action:hover { background: var(--yellow-hover); color: #07111f; }
.premium-product-editor { display: grid; gap: 18px; }
.product-edit-banner { min-height: 132px; border-radius: 16px; padding: 24px 28px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; color: #fff; background: linear-gradient(105deg, #0f2a6d, #155eef); box-shadow: 0 20px 44px rgba(21,94,239,.22); overflow: hidden; position: relative; }
.product-edit-banner::after { content: ""; position: absolute; right: 120px; top: -30px; width: 230px; height: 190px; border-radius: 999px; background: rgba(255,255,255,.12); filter: blur(.2px); }
.banner-product-icon { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 14px; background: rgba(255,255,255,.95); color: #155eef; display: grid; place-items: center; font-size: 2rem; font-weight: 950; }
.product-edit-banner div { position: relative; z-index: 1; }
.product-edit-banner span { display: block; color: #bcd4ff; text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; font-weight: 950; margin-bottom: 5px; }
.product-edit-banner h2 { margin: 0; font-size: 1.45rem; font-weight: 950; }
.product-edit-banner p { margin: 6px 0 0; max-width: 620px; color: #eef5ff; }
.banner-product-meta { display: grid; gap: 6px; min-width: 250px; background: rgba(7,17,31,.22); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 14px; }
.banner-product-meta span { color: #d1fadf; letter-spacing: 0; text-transform: none; margin: 0; }
.banner-product-meta span::before { content: "✓ "; }
.banner-product-meta strong { font-size: .86rem; font-weight: 850; color: #fff; }
.product-edit-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 430px); gap: 18px; align-items: start; }
.product-edit-main, .product-edit-side { display: grid; gap: 18px; min-width: 0; }
.product-edit-side { position: sticky; top: 72px; }
.edit-card { background: #fff; border: 1px solid #e4e7ec; border-radius: 16px; box-shadow: 0 14px 34px rgba(16,24,40,.06); padding: 18px; min-width: 0; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.card-heading span { color: #155eef; font-size: .78rem; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; }
.card-heading h2 { margin: 2px 0 0; color: #101828; font-size: 1.05rem; font-weight: 950; letter-spacing: 0; }
.card-heading strong { background: #eef4ff; color: #155eef; border-radius: 999px; padding: 6px 10px; font-size: .8rem; }
.search-card .predictive-input { width: 100%; min-height: 48px; }
.premium-field-grid { display: grid; gap: 14px; }
.premium-field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.premium-field-grid label, .inventory-edit-metrics label, .product-edit-side label, .variant-editor-grid label, .textarea-label { display: grid; gap: 7px; color: #344054; font-size: .82rem; font-weight: 900; }
.premium-field-grid .wide { grid-column: span 2; }
.premium-field-grid input, .premium-field-grid select, .inventory-edit-metrics input, .product-edit-side input, .product-edit-side textarea, .variant-editor-grid input, .textarea-label textarea, .highlights-editor { width: 100%; border: 1px solid #d9e2ef; border-radius: 12px; background: #fbfdff; color: #101828; min-height: 44px; padding: 12px 13px; outline: 0; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.premium-field-grid input:focus, .premium-field-grid select:focus, .inventory-edit-metrics input:focus, .product-edit-side input:focus, .product-edit-side textarea:focus, .variant-editor-grid input:focus, .textarea-label textarea:focus, .highlights-editor:focus { border-color: #155eef; box-shadow: 0 0 0 4px rgba(21,94,239,.10); background: #fff; }
.computed-output { min-height: 44px; display: flex; align-items: center; border: 1px solid #d9e2ef; border-radius: 12px; padding: 0 13px; background: #f8fafc; color: #101828; font-weight: 950; }
.margin-badge, .stock-pill { border-radius: 999px; padding: 7px 11px; font-size: .78rem; font-weight: 950; white-space: nowrap; }
.margin-badge.excellent, .stock-pill.high { background: #ecfdf3; color: #067647; }
.margin-badge.medium, .stock-pill.medium { background: #fffaeb; color: #b54708; }
.margin-badge.low, .stock-pill.low { background: #fef3f2; color: #b42318; }
.inventory-edit-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stock-progress { height: 12px; border-radius: 999px; background: #e5edf7; overflow: hidden; margin-top: 16px; }
.stock-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #12b76a, #155eef); transition: width .2s ease; }
.rich-toolbar { display: flex; gap: 7px; flex-wrap: wrap; }
.rich-toolbar button, .small-link-button { border: 1px solid #d9e2ef; background: #f8fafc; color: #344054; border-radius: 9px; padding: 7px 10px; font-weight: 900; font-size: .8rem; }
.textarea-label { margin-bottom: 14px; }
.textarea-label textarea { min-height: 86px; resize: vertical; }
.textarea-label small { justify-self: end; color: #667085; font-weight: 750; }
.variant-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.variant-editor-grid > div { display: grid; gap: 10px; border: 1px solid #edf1f7; border-radius: 14px; padding: 14px; background: #fbfdff; }
.variant-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-chips span { background: #eef4ff; color: #155eef; border: 1px solid #bfdbfe; border-radius: 999px; padding: 6px 10px; font-size: .8rem; font-weight: 900; }
.highlights-editor { min-height: 118px; }
.media-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }
.media-thumbs figure { margin: 0; position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid #d9e2ef; background: #f8fafc; }
.media-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.media-thumbs figcaption { position: absolute; left: 6px; bottom: 6px; background: rgba(21,94,239,.92); color: #fff; border-radius: 7px; padding: 4px 6px; font-size: .68rem; font-weight: 900; }
.dropzone { min-height: 120px; border: 1.5px dashed #9bbcff; border-radius: 14px; background: linear-gradient(180deg, #f8fbff, #fff); place-items: center; text-align: center; padding: 18px; cursor: pointer; }
.dropzone input { display: none; }
.dropzone strong { color: #101828; font-size: .95rem; }
.dropzone span { color: #667085; font-size: .82rem; max-width: 270px; margin: 0 auto; }
.video-zone { border-color: #f6bd4f; background: #fffaf0; }
.switch-row { grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid #edf1f7; padding: 12px 0; }
.switch-row:last-of-type { border-bottom: 0; }
.switch-row span { display: grid; gap: 2px; }
.switch-row strong { color: #101828; }
.switch-row small { color: #667085; font-weight: 700; }
.switch-row input { width: 42px; height: 24px; accent-color: #155eef; }
.save-product-action { width: 100%; min-height: 48px; border-radius: 12px; margin-top: 12px; }
.google-preview { border: 1px solid #e4e7ec; border-radius: 14px; padding: 13px; background: #fbfdff; display: grid; gap: 4px; margin-top: 6px; }
.google-preview strong { color: #155eef; font-size: .95rem; }
.google-preview span { color: #067647; font-size: .78rem; overflow-wrap: anywhere; }
.google-preview p { margin: 0; color: #475467; font-size: .86rem; }
.mini-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mini-stats-grid article { min-height: 116px; border: 1px solid #edf1f7; border-radius: 14px; background: #fbfdff; padding: 14px; position: relative; overflow: hidden; }
.mini-stats-grid strong { display: block; color: #101828; font-size: 1.35rem; }
.mini-stats-grid span { color: #667085; font-weight: 750; font-size: .82rem; }
.mini-stats-grid i { position: absolute; right: 12px; bottom: 12px; width: 18px; border-radius: 999px; background: linear-gradient(180deg, #155eef, #12b76a); }
.published-products-card { margin-top: 18px; position: relative; overflow: visible; }
.published-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.floating-new-product { position: fixed; right: 28px; bottom: 28px; z-index: 25; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0 20px; background: var(--yellow); color: #07111f; font-weight: 950; box-shadow: 0 18px 36px rgba(16,24,40,.20), 0 8px 18px rgba(255,196,0,.28); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.floating-new-product:hover { color: #07111f; background: var(--yellow-hover); transform: translateY(-2px); box-shadow: 0 22px 42px rgba(16,24,40,.24), 0 10px 22px rgba(255,196,0,.30); }
.published-product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.published-product-row { position: relative; display: grid; grid-template-columns: 108px minmax(0, 1fr) 42px 38px; gap: 14px; align-items: center; border: 1px solid #dbe4ef; border-radius: 16px; background: linear-gradient(180deg, #fff, #fbfdff); padding: 12px; min-width: 0; cursor: pointer; box-shadow: 0 10px 26px rgba(16,24,40,.055); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.published-product-row:hover { transform: translateY(-3px); border-color: #adc6ff; box-shadow: 0 18px 42px rgba(16,24,40,.12); background: #fff; }
.published-product-row:focus-visible { outline: 4px solid rgba(21,94,239,.16); border-color: #155eef; }
.published-product-media { width: 108px; height: 108px; border-radius: 13px; overflow: hidden; position: relative; background: #eef4ff; }
.published-product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease, filter .25s ease; }
.published-product-row:hover .published-product-media img { transform: scale(1.05); filter: saturate(1.05); }
.image-quick-actions { position: absolute; inset: auto 8px 8px 8px; display: flex; gap: 7px; transform: translateY(10px); opacity: 0; transition: opacity .18s ease, transform .18s ease; }
.published-product-row:hover .image-quick-actions { transform: translateY(0); opacity: 1; }
.image-quick-actions a, .image-quick-actions button { flex: 1; border: 0; border-radius: 8px; background: rgba(7,17,31,.88); color: #fff; min-height: 30px; display: grid; place-items: center; font-size: .75rem; font-weight: 950; }
.published-product-info { min-width: 0; display: grid; gap: 5px; }
.category-badge { width: max-content; max-width: 100%; color: #155eef !important; background: #eef4ff; border: 1px solid #c7d7fe; border-radius: 999px; padding: 4px 8px; font-size: .72rem !important; font-weight: 950; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.published-product-info h3 { margin: 0; color: #101828; font-size: 1rem; font-weight: 950; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .18s ease; }
.published-product-row:hover .published-product-info h3 { color: #155eef; }
.published-product-info strong { color: #101828; font-size: .95rem; }
.published-product-info small { display: block; color: #667085; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.status-badge { width: max-content; border-radius: 999px; padding: 4px 8px; font-size: .68rem; font-weight: 950; line-height: 1; }
.status-badge.active { background: #ecfdf3; color: #067647; }
.status-badge.featured { background: #fffaeb; color: #b54708; }
.status-badge.low { background: #fff7ed; color: #c2410c; }
.status-badge.soldout { background: #fef3f2; color: #b42318; }
.stock-line { display: flex; justify-content: space-between; gap: 10px; color: #667085; font-size: .75rem; font-weight: 850; margin-top: 2px; }
.published-product-row .stock-meter { height: 8px; margin: 0; background: #e5edf7; border-radius: 999px; overflow: hidden; }
.published-product-row .stock-meter i { display: block; height: 100%; border-radius: inherit; transition: width .2s ease; }
.published-product-row .stock-meter.good i { background: linear-gradient(90deg, #12b76a, #32d583); }
.published-product-row .stock-meter.warning i { background: linear-gradient(90deg, #f79009, #fec84b); }
.published-product-row .stock-meter.danger i { background: linear-gradient(90deg, #f04438, #f97066); }
.icon-edit-action { width: 42px; height: 42px; border-radius: 12px; border: 1px solid #c7d7fe; background: #eef4ff; color: #155eef; font-size: 1.05rem; font-weight: 950; transition: transform .18s ease, background .18s ease, color .18s ease; }
.icon-edit-action:hover { transform: translateY(-2px); background: #155eef; color: #fff; }
.product-context-wrap { position: relative; }
.published-product-row .product-more { position: static; background: #fff; border: 1px solid #d9e2ef; border-radius: 12px; width: 38px; height: 38px; color: #344054; font-weight: 950; line-height: 1; transition: background .18s ease, border-color .18s ease; }
.published-product-row .product-more:hover { background: #f8fafc; border-color: #adc6ff; }
.product-context-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 168px; z-index: 20; display: none; padding: 7px; background: #fff; border: 1px solid #d9e2ef; border-radius: 14px; box-shadow: 0 18px 42px rgba(16,24,40,.18); }
.product-context-menu.open { display: grid; animation: menuIn .16s ease; }
.product-context-menu a, .product-context-menu button { width: 100%; min-height: 36px; border: 0; background: transparent; color: #344054; border-radius: 9px; display: flex; align-items: center; padding: 0 10px; font-weight: 850; text-align: left; }
.product-context-menu a:hover, .product-context-menu button:hover { background: #f2f6ff; color: #155eef; }
.product-context-menu .danger { color: #b42318; }
.product-context-menu .danger:hover { background: #fef3f2; color: #b42318; }
@keyframes menuIn {
    from { opacity: 0; transform: translateY(-4px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.admin-list-search { min-height: 42px; min-width: min(360px, 100%); border: 1px solid #d9e2ef; border-radius: 12px; padding: 0 14px; background: #fff; }
.entity-editor { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.entity-editor textarea { min-height: 44px; border: 1px solid #d9e2ef; border-radius: 10px; padding: 11px 13px; background: #fbfdff; }
.entity-table { display: grid; gap: 10px; }
.entity-row { display: grid; grid-template-columns: 90px 1.2fr 1fr .6fr .8fr .9fr 1.4fr; gap: 12px; align-items: center; padding: 12px; border: 1px solid #e4eaf2; border-radius: 14px; background: #fbfdff; box-shadow: 0 8px 20px rgba(16,24,40,.04); }
.entity-row.head { background: #07111f; color: #fff; font-weight: 900; box-shadow: none; }
.entity-row img { width: 70px; height: 54px; object-fit: cover; border-radius: 10px; background: #eef4ff; }
.entity-row strong { color: #101828; }
.entity-row.head strong { color: #fff; }
.entity-row small { display: block; color: #667085; font-size: .76rem; margin-top: 3px; }
.entity-actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.entity-actions form { display: flex; gap: 6px; align-items: center; margin: 0; }
.entity-actions select, .inline-status-form select { border: 1px solid #d9e2ef; border-radius: 8px; min-height: 34px; padding: 0 8px; background: #fff; max-width: 150px; }
.mini-action { border: 1px solid #d9e2ef; background: #fff; color: #344054; border-radius: 9px; min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; font-weight: 850; font-size: .8rem; }
.mini-action:hover { background: #eef4ff; color: #155eef; }
.mini-action.danger, .entity-actions .danger { border-color: #fecaca; color: #b42318; }
.inline-status-form { display: flex; gap: 8px; align-items: center; margin: 0; }
.reports-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 16px; margin-bottom: 16px; }
.dashboard-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chart-bars { height: 190px; display: flex; align-items: end; gap: 12px; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, #f8fbff, #fff); border: 1px solid #edf1f7; }
.chart-bars i { flex: 1; min-height: 18px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #155eef, #12b76a); box-shadow: 0 10px 20px rgba(21,94,239,.18); }
.status-donut { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 4px; border-radius: 14px; background: radial-gradient(circle, #fff 0 40%, transparent 41%), conic-gradient(#155eef 0 45%, #12b76a 45% 75%, #ffc400 75% 90%, #f04438 90%); }
.status-donut strong { font-size: 2rem; color: #101828; }
.status-donut span { color: #667085; font-weight: 900; }
.compact-list { display: grid; gap: 10px; }
.compact-list div { border: 1px solid #edf1f7; border-radius: 12px; background: #fbfdff; padding: 10px 12px; }
.compact-list strong { display: block; color: #101828; font-size: .9rem; }
.compact-list span { color: #667085; font-size: .8rem; }
@media (max-width: 1200px) {
    .shipping-settings-grid { grid-template-columns: 1fr; }
    .entity-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .entity-row, .entity-row.head { grid-template-columns: 1fr 1fr; }
    .entity-row.head { display: none; }
    .reports-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid, .dashboard-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .entity-editor, .entity-row, .reports-row { grid-template-columns: 1fr; }
}

/* Servilujos premium automotive dashboard */
.admin-shell {
    grid-template-columns: 260px minmax(0, 1fr);
    background: var(--background);
    color: var(--text);
    font-family: Inter, Poppins, Arial, sans-serif;
}
.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--sidebar), #08203f 100%);
    padding: 24px 18px;
    box-shadow: 18px 0 38px rgba(7, 17, 31, .18);
}
.admin-brand-block { display: grid; gap: 4px; margin-bottom: 24px; }
.admin-brand { margin: 0; color: #fff; font-size: 1.52rem; line-height: 1; letter-spacing: 0; }
.admin-brand b { color: #fff; }
.admin-brand em { color: var(--yellow); font-style: normal; }
.admin-brand-block span { color: #d7e4f8; font-weight: 800; font-size: .84rem; }
.admin-menu { display: grid; gap: 7px; }
.admin-menu a {
    min-height: 46px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    color: #edf5ff;
    font-weight: 850;
    padding: 0 12px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.admin-menu a i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 8px;
    color: #fff;
    font-style: normal;
}
.admin-menu a strong {
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .72rem;
    padding: 0 7px;
}
.admin-menu a.active, .admin-menu a:hover {
    background: linear-gradient(135deg, var(--primary), #0b47d9);
    color: #fff;
    transform: translateX(2px);
}
.admin-user-card {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.13);
    padding-top: 18px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}
.admin-user-card > span, .nm-admin-profile > span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--primary-dark);
    display: grid;
    place-items: center;
    font-weight: 950;
}
.admin-user-card strong { color: #fff; display: block; font-size: .86rem; }
.admin-user-card small { color: #a7b7cc; display: block; font-size: .75rem; }
.admin-main { padding: 0 24px 28px; min-width: 0; }
.admin-topbar {
    min-height: 76px;
    margin: 0 -24px 18px;
    padding: 0 24px;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 18px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px);
}
.nm-menu-toggle {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #eef4ff;
    color: var(--primary-dark);
    font-weight: 950;
}
.admin-search {
    min-height: 48px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 26px;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid #d9e2ef;
    border-radius: 13px;
    padding: 0 12px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .05);
}
.admin-search input { border: 0; outline: 0; min-width: 0; color: var(--text); }
.admin-search kbd { background: #f2f4f7; color: #667085; border: 1px solid #d0d5dd; border-radius: 6px; box-shadow: none; font-size: .75rem; }
.admin-top-actions { justify-self: end; display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.admin-top-actions button {
    position: relative;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 8px 22px rgba(16,24,40,.06);
}
.admin-top-actions button strong {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #f04438;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .65rem;
}
.nm-store-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    background: var(--yellow);
    color: var(--primary-dark);
    padding: 0 18px;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(255,196,0,.26);
}
.nm-admin-profile {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding-left: 8px;
    min-width: 0;
    max-width: 210px;
}
.nm-admin-profile div { min-width: 0; }
.nm-admin-profile strong,
.nm-admin-profile small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nm-admin-profile strong { font-size: .88rem; color: var(--text); }
.nm-admin-profile small { color: #667085; font-size: .76rem; }
.nm-service-strip {
    min-height: 38px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 12px;
    color: #0b2143;
    font-size: .78rem;
    font-weight: 850;
    margin-bottom: 16px;
}
.nm-service-strip span { text-align: center; }
.nm-hero {
    min-height: 245px;
    border-radius: 16px;
    color: #fff;
    background-image: linear-gradient(90deg, rgba(7,17,31,.98) 0%, rgba(7,17,31,.84) 36%, rgba(7,17,31,.34) 62%, rgba(7,17,31,.14) 100%), var(--hero-image);
    background-size: cover;
    background-position: center;
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(430px, .8fr);
    gap: 24px;
    align-items: end;
    box-shadow: 0 24px 56px rgba(7,17,31,.18);
    overflow: hidden;
}
.nm-hero-copy span, .nm-section-head span {
    display: block;
    color: #74a7ff;
    font-size: .76rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.nm-hero-copy h1 {
    margin: 6px 0 8px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
}
.nm-hero-copy p { max-width: 540px; margin: 0 0 18px; color: #e8f1ff; font-size: 1.05rem; }
.nm-hero-copy a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    background: var(--yellow);
    color: var(--primary-dark);
    padding: 0 18px;
    font-weight: 950;
}
.nm-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.nm-hero-metrics article {
    min-height: 94px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    background: rgba(9,36,86,.58);
    backdrop-filter: blur(6px);
    padding: 14px;
}
.nm-hero-metrics span { color: #cde0ff; display: block; font-size: .78rem; font-weight: 850; }
.nm-hero-metrics strong { display: block; font-size: 1.35rem; }
.nm-hero-metrics small { color: #47d18c; font-weight: 900; }
.nm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}
.nm-kpi-card, .nm-panel, .nm-product-card, .nm-category-grid a, .nm-quick-grid a {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(16,24,40,.06);
}
.nm-kpi-card { min-height: 142px; padding: 16px; display: grid; gap: 10px; overflow: hidden; }
.nm-kpi-card span { color: #667085; display: block; font-size: .78rem; font-weight: 850; }
.nm-kpi-card strong { display: block; color: var(--text); font-size: 1.35rem; font-weight: 950; overflow-wrap: anywhere; }
.nm-kpi-card small { color: var(--success); font-weight: 900; }
.nm-kpi-card svg { width: 100%; height: 46px; }
.nm-kpi-card polyline { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.nm-kpi-card.green polyline { stroke: var(--success); }
.nm-kpi-card.orange polyline { stroke: #f97316; }
.nm-kpi-card.purple polyline { stroke: #7c3aed; }
.nm-kpi-card.yellow polyline { stroke: var(--yellow); }
.nm-kpi-card.cyan polyline { stroke: #06b6d4; }
.nm-quick-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.nm-quick-grid a { min-height: 76px; padding: 14px; display: flex; align-items: center; gap: 12px; font-weight: 950; color: var(--text); transition: transform .18s ease, border-color .18s ease; }
.nm-quick-grid a:hover { transform: translateY(-3px); border-color: #adc6ff; color: var(--primary); }
.nm-quick-grid i { width: 42px; height: 42px; border-radius: 12px; background: #eef4ff; color: var(--primary); display: grid; place-items: center; font-style: normal; }
.nm-section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 18px 0 12px; }
.nm-section-head h2 { margin: 2px 0 0; color: var(--text); font-size: 1.14rem; font-weight: 950; letter-spacing: 0; }
.nm-section-head a { color: var(--primary); font-weight: 900; font-size: .84rem; }
.nm-section-head.compact { margin: 0 0 14px; }
.nm-category-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.nm-category-grid a { min-height: 86px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; }
.nm-category-grid img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #f7f9fc; }
.nm-category-grid strong { display: block; color: var(--text); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-category-grid span { display: block; color: #667085; font-size: .74rem; font-weight: 800; }
.nm-product-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.nm-product-card { overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.nm-product-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(16,24,40,.12); }
.nm-product-image { position: relative; aspect-ratio: 1 / .82; background: #f8fafc; }
.nm-product-image img { width: 100%; height: 100%; object-fit: cover; }
.nm-product-image span {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #f04438;
    color: #fff;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: .72rem;
    font-weight: 950;
}
.nm-product-body { padding: 14px; display: grid; gap: 5px; }
.nm-product-body small { color: var(--primary); font-weight: 900; }
.nm-product-body h3 { margin: 0; min-height: 42px; color: var(--text); font-size: .98rem; font-weight: 950; line-height: 1.25; letter-spacing: 0; }
.nm-product-body p { margin: 0; color: #667085; font-size: .78rem; }
.nm-product-body strong { color: var(--primary-dark); font-size: 1.05rem; }
.nm-product-body del { color: #98a2b3; font-size: .78rem; }
.nm-product-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .75rem; font-weight: 900; }
.nm-product-meta .ok { color: var(--success); }
.nm-product-meta .danger { color: var(--danger); }
.nm-operations-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr) minmax(280px, .8fr);
    gap: 14px;
    margin-top: 18px;
}
.nm-panel { padding: 16px; min-width: 0; }
.nm-panel.wide { grid-row: span 2; }
.nm-bar-chart { height: 270px; display: flex; align-items: end; gap: 18px; padding: 16px 8px 0; border-radius: 14px; background: linear-gradient(180deg, #fbfdff, #fff); border: 1px solid #edf1f7; }
.nm-bar-chart div { flex: 1; height: 100%; display: grid; grid-template-rows: 1fr auto; align-items: end; gap: 10px; }
.nm-bar-chart i { display: block; min-height: 20px; border-radius: 12px 12px 5px 5px; background: linear-gradient(180deg, var(--primary), #64a3ff); box-shadow: 0 12px 22px rgba(21,94,239,.22); }
.nm-bar-chart span { text-align: center; color: #667085; font-size: .78rem; font-weight: 900; }
.nm-list { display: grid; gap: 10px; }
.nm-list div { border: 1px solid #edf1f7; border-radius: 12px; background: #fbfdff; padding: 10px 12px; }
.nm-list strong { display: block; color: var(--text); font-size: .86rem; }
.nm-list span { display: block; margin-top: 3px; color: #667085; font-size: .78rem; }
@media (max-width: 1500px) {
    .nm-kpi-grid, .nm-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nm-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-user-card { margin-top: 12px; }
    .nm-hero, .nm-operations-grid { grid-template-columns: 1fr; }
    .nm-panel.wide { grid-row: auto; }
    .nm-service-strip, .nm-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-topbar { grid-template-columns: auto minmax(0, 1fr); }
    .admin-top-actions { grid-column: 1 / -1; justify-self: stretch; justify-content: flex-end; flex-wrap: wrap; }
}
@media (max-width: 760px) {
    .admin-main { padding: 0 14px 22px; }
    .admin-topbar { margin: 0 -14px 14px; padding: 12px 14px; grid-template-columns: 1fr; }
    .admin-search { grid-template-columns: 24px minmax(0, 1fr); }
    .admin-search kbd, .nm-admin-profile { display: none; }
    .admin-menu, .nm-service-strip, .nm-hero-metrics, .nm-kpi-grid, .nm-quick-grid, .nm-category-grid, .nm-product-grid { grid-template-columns: 1fr; }
    .nm-hero { padding: 20px; }
    .nm-bar-chart { gap: 8px; }
}
@media (max-width: 1400px) {
    .product-edit-layout { grid-template-columns: 1fr; }
    .product-edit-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .edit-product-head, .edit-head-actions { display: grid; justify-content: stretch; }
    .product-edit-banner { grid-template-columns: 1fr; }
    .banner-product-meta { min-width: 0; }
    .premium-field-grid.three, .inventory-edit-metrics, .variant-editor-grid, .mini-stats-grid, .product-edit-side, .published-product-list { grid-template-columns: 1fr; }
    .premium-field-grid .wide { grid-column: span 1; }
    .published-product-row { grid-template-columns: 82px minmax(0, 1fr); }
    .published-product-media { width: 82px; height: 82px; }
    .icon-edit-action, .product-context-wrap { grid-column: 1 / -1; width: 100%; }
    .published-product-row .product-more { width: 100%; }
    .product-context-menu { left: 0; right: auto; width: 100%; }
    .floating-new-product { right: 16px; bottom: 16px; }
}

/* Servilujos premium public storefront */
.nm-public-body {
    background: var(--background);
    color: var(--text);
    font-family: Inter, Poppins, Arial, sans-serif;
}
.nm-store-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 11, 20, .96);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 42px rgba(0,0,0,.28);
    backdrop-filter: blur(14px);
}
.market-topbar {
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: #030813;
}
.topbar-inner {
    min-height: 34px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 14px;
    color: #edf5ff;
    font-size: .78rem;
    font-weight: 800;
}
.topbar-inner span:nth-child(2) { color: #e9fff4; }
.market-mainbar { background: linear-gradient(180deg, #07111f, #050b14); }
.header-grid {
    min-height: 86px;
    grid-template-columns: 230px minmax(280px, 1fr) auto;
}
.brand { color: #fff; gap: 0; }
.brand > span { display: grid; line-height: 1; }
.nm-store-header .brand b, .nm-store-header .brand em {
    display: inline;
    font-family: Poppins, Inter, sans-serif;
    font-size: 1.72rem;
    font-weight: 950;
    letter-spacing: 0;
}
.nm-store-header .brand b { color: #fff !important; }
.nm-store-header .brand em { color: var(--yellow) !important; font-style: normal; margin-left: 0; }
.brand small {
    display: block;
    margin-top: 5px;
    color: #d5deec;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}
.search-box {
    min-height: 52px;
    grid-template-columns: minmax(0, 1fr) 74px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.search-box input { color: #101828; font-weight: 700; outline: 0; }
.search-box button {
    border-radius: 0;
    background: linear-gradient(180deg, var(--yellow), var(--yellow-hover));
    color: #07111f;
    font-size: 1.05rem;
}
.header-actions {
    gap: 18px;
    color: #f6f9ff;
    font-size: .78rem;
    font-weight: 850;
}
.header-actions a {
    min-width: 58px;
    display: grid;
    place-items: center;
    gap: 4px;
    position: relative;
}
.header-actions i {
    width: 28px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #fff;
    font-style: normal;
    font-size: 1.05rem;
}
.cart-link strong {
    position: absolute;
    top: -5px;
    right: 5px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--yellow);
    color: #07111f;
    font-size: .67rem;
}
.market-categorybar {
    border-top: 1px solid rgba(255,255,255,.08);
    background: #07111f;
}
.categorybar-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
    color: #eef4ff;
    font-size: .86rem;
    font-weight: 900;
}
.categorybar-inner::-webkit-scrollbar { display: none; }
.categorybar-inner a { white-space: nowrap; }
.all-categories, .daily-deal {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 0 16px;
}
.all-categories { background: var(--yellow); color: #07111f; }
.daily-deal {
    margin-left: auto;
    border: 1px solid var(--yellow);
    color: #fff;
}
.nm-public-hero {
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(520px, 1.35fr);
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #020711;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.nm-public-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(5,11,20,.58) 38%, rgba(5,11,20,.08) 74%);
}
.nm-public-hero img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    grid-column: 1 / -1;
    grid-row: 1;
}
.nm-hero-content {
    position: relative;
    z-index: 2;
    grid-column: 1;
    grid-row: 1;
    padding-left: clamp(24px, 5vw, 86px);
    max-width: 720px;
}
.nm-hero-content span, .nm-section-title span {
    display: block;
    color: var(--yellow);
    text-transform: uppercase;
    font-weight: 950;
    font-size: .78rem;
    letter-spacing: .12em;
}
.nm-hero-content h1 {
    margin: 8px 0 12px;
    color: #fff;
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(2.25rem, 5vw, 4.2rem);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: 0;
}
.nm-hero-content p {
    max-width: 600px;
    margin: 0 0 24px;
    color: #f4f7fb;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.45;
}
.nm-hero-content a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    background: var(--yellow);
    color: #07111f;
    padding: 0 24px;
    font-weight: 950;
    box-shadow: 0 18px 34px rgba(255,196,0,.22);
}
.nm-hero-content a:hover { background: var(--yellow-hover); }
.nm-category-rail {
    display: grid;
    grid-template-columns: repeat(9, minmax(118px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.nm-category-rail a, .nm-benefits, .nm-promo-grid a, .nm-product-card-public {
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(7,17,31,.96));
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.nm-category-rail a {
    min-height: 138px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    transition: transform .18s ease, border-color .18s ease;
}
.nm-category-rail a:hover { transform: translateY(-3px); border-color: rgba(255,196,0,.52); }
.nm-category-rail img {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    object-fit: cover;
    background: #fff;
}
.nm-category-rail strong { color: #fff; font-size: .88rem; font-weight: 950; }
.nm-category-rail span { color: var(--muted); font-size: .74rem; font-weight: 800; }
.nm-benefits {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin-top: 18px;
    border-radius: 8px;
    overflow: hidden;
}
.nm-benefits article {
    min-height: 74px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
}
.nm-benefits i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--yellow);
    font-style: normal;
    font-size: 1.35rem;
}
.nm-benefits strong { display: block; color: #fff; font-size: .92rem; }
.nm-benefits span { display: block; color: var(--muted); font-size: .78rem; }
.nm-store-section { margin-top: 22px; }
.nm-section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}
.nm-section-title h2 {
    color: #fff;
    margin: 2px 0 0;
    font-family: Poppins, Inter, sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0;
}
.nm-section-title a {
    color: var(--yellow);
    font-size: .86rem;
    font-weight: 950;
}
.nm-premium-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nm-product-card-public {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.nm-product-card-public::after { display: none; }
.nm-product-card-public:hover {
    transform: translateY(-4px);
    border-color: rgba(255,196,0,.36);
    box-shadow: 0 24px 48px rgba(0,0,0,.32);
}
.nm-product-card-public .product-media {
    aspect-ratio: 1 / .78;
    background: #fff;
}
.nm-product-card-public .product-media img {
    object-fit: contain;
    padding: 14px;
    background: #fff;
}
.nm-product-card-public .favorite-btn {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(7,17,31,.68);
    color: #fff;
}
.nm-product-card-public .shipping-tag { display: none; }
.nm-product-card-public .badge-sale {
    top: 12px;
    left: 12px;
    border-radius: 6px;
    background: #f04438;
}
.nm-product-card-public .product-body {
    min-height: 188px;
    padding: 14px;
    gap: 6px;
}
.nm-product-card-public .product-brand {
    color: var(--muted);
    font-weight: 850;
}
.nm-product-card-public h3 {
    min-height: 40px;
    color: #fff;
    font-size: .98rem;
}
.nm-product-card-public .rating {
    color: #dce6f4;
    font-size: .78rem;
}
.nm-product-card-public .rating span { color: var(--yellow); }
.nm-product-card-public .price-row strong {
    color: #fff;
    font-size: 1.18rem;
}
.nm-product-card-public .old-price { color: var(--muted); }
.nm-product-card-public .inventory.ok { color: var(--success); }
.nm-product-card-public .card-actions {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: block;
}
.nm-product-card-public .btn-cart {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    padding: 0;
    background: var(--yellow);
    color: #07111f;
}
.nm-promo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.nm-promo-grid a {
    min-height: 158px;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(120px, .8fr);
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 18px;
    overflow: hidden;
}
.nm-promo-grid strong {
    display: block;
    color: #fff;
    font-family: Poppins, Inter, sans-serif;
    font-size: 1.2rem;
}
.nm-promo-grid span {
    display: block;
    color: var(--yellow);
    font-size: 1rem;
    font-weight: 950;
}
.nm-promo-grid small {
    display: block;
    margin-top: 8px;
    color: var(--yellow);
    font-weight: 900;
}
.nm-promo-grid img {
    width: 100%;
    height: 122px;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(0,0,0,.36));
}
.store-footer {
    margin-top: 34px;
    background: #030813;
    border-top: 1px solid rgba(255,255,255,.09);
}
.nm-public-body .market-breadcrumb {
    color: var(--muted);
}
.nm-public-body .market-breadcrumb a { color: var(--yellow); font-weight: 900; }
.nm-public-body .market-product-shell,
.nm-public-body .gallery,
.nm-public-body .detail-copy,
.nm-public-body .description-panel,
.nm-public-body .buy-card {
    background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(7,17,31,.98));
    border-color: rgba(255,255,255,.12);
    color: #fff;
}
.nm-public-body .market-main-image,
.nm-public-body .market-thumbs button {
    background: #fff;
    border-color: rgba(255,255,255,.16);
}
.nm-public-body .market-main-image img,
.nm-public-body .market-thumbs img {
    object-fit: contain;
    padding: 18px;
    background: #fff;
}
.nm-public-body .market-info h1,
.nm-public-body .compatibility-panel h2,
.nm-public-body .compatibility-panel strong,
.nm-public-body .stock-box strong {
    color: #fff;
}
.nm-public-body .meta-line,
.nm-public-body .review-line,
.nm-public-body .compatibility-panel span,
.nm-public-body .installments,
.nm-public-body .delivery-card,
.nm-public-body .seller-card,
.nm-public-body .protected-card {
    color: var(--muted);
}
.nm-public-body .review-line strong,
.nm-public-body .payment-link,
.nm-public-body .delivery-card a { color: var(--yellow); }
.nm-public-body .market-price {
    color: #fff;
    font-weight: 900;
}
.nm-public-body .market-price span,
.nm-public-body .buy-now {
    background: var(--blue);
    color: #fff;
}
.nm-public-body .compatibility-panel,
.nm-public-body .promo-strip {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.12);
    color: #fff;
}
.nm-public-body .variant-options button {
    background: #101b2e;
    border-color: rgba(255,255,255,.16);
    color: #fff;
}
.nm-public-body .add-cart {
    background: var(--yellow);
    color: #07111f;
}
@media (max-width: 1120px) {
    .header-grid { grid-template-columns: 1fr; padding-top: 14px; padding-bottom: 14px; }
    .header-actions { justify-content: space-between; flex-wrap: wrap; }
    .nm-category-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .nm-premium-grid, .nm-promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .topbar-inner, .nm-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nm-public-hero { min-height: 470px; grid-template-columns: 1fr; }
    .nm-public-hero img { min-height: 470px; }
    .nm-public-hero::before { background: linear-gradient(180deg, rgba(0,0,0,.78), rgba(5,11,20,.32)); }
    .nm-hero-content { align-self: end; padding: 24px; }
    .nm-category-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .topbar-inner, .search-box, .nm-benefits, .nm-premium-grid, .nm-promo-grid, .nm-promo-grid a { grid-template-columns: 1fr; }
    .brand b, .brand em { font-size: 1.46rem; }
    .header-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .categorybar-inner { gap: 14px; }
    .nm-category-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nm-section-title { align-items: start; flex-direction: column; }
    .nm-promo-grid img { height: 150px; }
}

/* Premium cart and checkout */
.nm-cart-page,
.nm-checkout-page {
    --nm-dark: #071B34;
    --nm-blue: #1F5EFF;
    --nm-yellow: #FFC107;
    --nm-green: #0f9f6e;
    --nm-soft: #f4f7fb;
    --nm-line: #dce5f1;
    --nm-text: #101828;
    --nm-muted: #667085;
    padding-top: 28px;
    padding-bottom: 42px;
    color: var(--nm-text);
}
.nm-cart-card,
.nm-step-card,
.nm-order-summary,
.nm-empty-cart {
    background: #fff;
    border: 1px solid rgba(7, 27, 52, .10);
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(7, 27, 52, .14);
}
.nm-cart-card {
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 34px);
    animation: nmFadeUp .28s ease both;
}
.nm-cart-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 26px;
    color: var(--nm-dark);
}
.nm-cart-success span,
.nm-step-title > span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--nm-green);
    color: #fff;
    flex: 0 0 auto;
}
.nm-cart-success h1,
.nm-checkout-hero h1 {
    margin: 0;
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(1.45rem, 2.6vw, 2.2rem);
    font-weight: 950;
    letter-spacing: 0;
}
.nm-cart-table {
    overflow-x: auto;
    border: 1px solid var(--nm-line);
    border-radius: 8px;
}
.nm-cart-row {
    min-width: 920px;
    display: grid;
    grid-template-columns: 92px minmax(190px, 1.35fr) minmax(110px, .75fr) minmax(130px, .78fr) minmax(150px, .85fr) minmax(130px, .78fr) 78px;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #edf1f6;
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.nm-cart-row:last-child { border-bottom: 0; }
.nm-cart-head {
    background: linear-gradient(180deg, #f8fbff, #f2f6fb);
    color: var(--nm-dark);
    font-size: .82rem;
    font-weight: 950;
    text-transform: uppercase;
}
.nm-cart-row.removing {
    opacity: 0;
    transform: translateX(18px);
}
.nm-cart-product-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: linear-gradient(145deg, #f8fafc, #e8eef7);
    border: 1px solid #dbe4f0;
    display: grid;
    place-items: center;
}
.nm-cart-product-image span {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--nm-dark);
    color: var(--nm-yellow);
    font-weight: 950;
}
.nm-cart-name strong,
.nm-summary-items strong,
.nm-summary-totals strong { color: var(--nm-dark); }
.nm-cart-name small,
.nm-cart-sku,
.nm-shipping-copy span,
.nm-step-title p,
.nm-choice-card span,
.nm-secure-list,
.nm-summary-items span,
.nm-summary-totals span {
    color: var(--nm-muted);
}
.nm-qty-control {
    width: 132px;
    height: 44px;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    border: 1px solid #ccd7e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.nm-qty-control.pulse {
    animation: nmQtyPulse .18s ease;
}
.nm-qty-control output {
    text-align: center;
    font-weight: 900;
    color: var(--nm-dark);
}
.nm-qty-btn,
.nm-remove-line,
.nm-choice-card,
.nm-warning-action,
.nm-primary-action,
.nm-confirm-order,
.nm-mini-blue {
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.nm-qty-btn,
.nm-remove-line {
    border: 0;
    background: #f8fafc;
    color: var(--nm-dark);
    height: 100%;
}
.nm-qty-btn:hover,
.nm-remove-line:hover { background: #eef4ff; color: var(--nm-blue); }
.nm-line-total,
.nm-cart-total strong,
.nm-grand-total strong {
    color: var(--nm-green);
}
.nm-remove-line {
    width: 42px;
    height: 42px;
    border-radius: 8px;
}
.nm-shipping-progress {
    margin-top: 24px;
    display: grid;
    grid-template-columns: minmax(230px, .9fr) minmax(260px, 1fr) 110px;
    gap: 18px;
    align-items: center;
    border-radius: 8px;
    background: linear-gradient(90deg, #eff6ff, #f8fbff);
    border: 1px solid #dbeafe;
    padding: 16px;
}
.nm-shipping-copy {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nm-shipping-copy i {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--nm-blue);
    box-shadow: 0 10px 22px rgba(31, 94, 255, .14);
}
.nm-shipping-copy strong,
.nm-progress-goal strong { display: block; color: var(--nm-blue); }
.nm-progress-track {
    height: 12px;
    border-radius: 999px;
    background: #dfe8f5;
    overflow: hidden;
}
.nm-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--nm-blue), #43a1ff);
    transition: width .25s ease;
}
.nm-progress-goal {
    text-align: right;
    font-size: .86rem;
}
.nm-cart-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--nm-line);
}
.nm-cart-total {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 28px;
    margin-bottom: 22px;
}
.nm-cart-total span { font-size: 1.2rem; font-weight: 900; }
.nm-cart-total strong {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 950;
}
.nm-cart-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.nm-warning-action,
.nm-primary-action,
.nm-confirm-order,
.nm-mini-blue {
    min-height: 54px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 950;
}
.nm-warning-action { background: var(--nm-yellow); color: #071B34; }
.nm-primary-action,
.nm-confirm-order,
.nm-mini-blue { background: var(--nm-blue); color: #fff; }
.nm-warning-action:hover,
.nm-primary-action:hover,
.nm-confirm-order:hover,
.nm-mini-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(31, 94, 255, .22);
}
.nm-warning-action:hover { box-shadow: 0 16px 34px rgba(255, 193, 7, .28); }
.nm-warning-action.is-loading i,
.nm-confirm-order.is-loading i { animation: nmSpin .8s linear infinite; }
.nm-trust-row {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.nm-trust-row article {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e4ebf5;
    border-radius: 8px;
    background: #fbfdff;
    padding: 14px;
}
.nm-trust-row i,
.nm-secure-list i { color: var(--nm-green); font-size: 1.15rem; }
.nm-empty-cart {
    max-width: 620px;
    margin: 34px auto;
    padding: clamp(28px, 5vw, 54px);
    text-align: center;
    animation: nmFadeUp .28s ease both;
}
.nm-empty-illustration {
    width: 148px;
    height: 148px;
    margin: 0 auto 22px;
    border-radius: 34px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #eef4ff, #fff8df);
    position: relative;
}
.nm-empty-illustration i {
    font-size: 4rem;
    color: var(--nm-blue);
}
.nm-empty-illustration span {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--nm-yellow);
}
.nm-empty-cart h1 {
    color: var(--nm-dark);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 950;
    letter-spacing: 0;
}
.nm-empty-cart p { color: var(--nm-muted); margin-bottom: 24px; }
.nm-checkout-hero {
    min-height: 150px;
    border-radius: 8px;
    background: linear-gradient(135deg, #071B34, #0c3474 52%, #1F5EFF);
    color: #fff;
    padding: clamp(20px, 3vw, 30px);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 18px;
    box-shadow: 0 22px 48px rgba(7, 27, 52, .22);
    animation: nmFadeUp .24s ease both;
}
.nm-checkout-hero span {
    color: #dbeafe;
    font-weight: 950;
    text-transform: uppercase;
    font-size: .78rem;
}
.nm-checkout-hero p { margin: 8px 0 0; color: #e7efff; }
.nm-checkout-wizard {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin: 0;
    font-weight: 950;
    text-transform: uppercase;
    font-size: .78rem;
}
.nm-checkout-wizard li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nm-checkout-wizard li span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--nm-dark);
}
.nm-checkout-wizard li.active span {
    background: var(--nm-yellow);
}
.nm-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 18px;
    align-items: start;
}
.nm-checkout-forms {
    display: grid;
    gap: 16px;
}
.nm-step-card,
.nm-order-summary {
    padding: clamp(16px, 2.4vw, 22px);
}
.nm-step-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 16px;
}
.nm-step-title > span {
    background: var(--nm-yellow);
    color: var(--nm-dark);
    font-weight: 950;
}
.nm-step-title h2 {
    margin: 0;
    color: var(--nm-dark);
    font-size: 1.08rem;
    font-weight: 950;
}
.nm-step-title p { margin: 2px 0 0; font-size: .86rem; }
.nm-field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}
.nm-field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nm-input-field {
    display: grid;
    gap: 7px;
    position: relative;
    color: #334155;
    font-weight: 850;
    font-size: .88rem;
}
.nm-input-field.wide { grid-column: 1 / -1; }
.nm-input-field i {
    position: absolute;
    left: 13px;
    bottom: 15px;
    color: #7890ad;
}
.nm-input-field input,
.nm-coupon-field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #ccd7e5;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--nm-dark);
    padding: 12px 13px 12px 38px;
}
.nm-coupon-field input { padding-left: 13px; }
.nm-input-field input:focus,
.nm-coupon-field input:focus,
.nm-choice-card:focus-visible,
.nm-warning-action:focus-visible,
.nm-primary-action:focus-visible,
.nm-confirm-order:focus-visible,
.nm-mini-blue:focus-visible,
.nm-qty-btn:focus-visible,
.nm-remove-line:focus-visible {
    outline: 3px solid rgba(31, 94, 255, .22);
    border-color: var(--nm-blue);
}
.nm-input-field.valid input { border-color: var(--nm-green); background: #f6fffa; }
.nm-input-field.invalid input { border-color: #d92d20; background: #fff8f7; }
.nm-location-box {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    border-radius: 8px;
    padding: 14px;
}
.nm-location-box strong,
.nm-location-box span { display: block; }
.nm-location-box strong { color: var(--nm-blue); }
.nm-location-box span { color: #475569; font-size: .88rem; }
.nm-location-box a { color: var(--nm-blue); font-weight: 950; }
.nm-mini-blue {
    min-height: 44px;
    padding: 0 16px;
}
.nm-map-preview {
    height: 210px;
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cfe0ff;
}
.nm-map-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.nm-choice-grid {
    display: grid;
    gap: 12px;
}
.nm-choice-grid.shipping { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nm-choice-grid.payment { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nm-choice-card {
    min-height: 106px;
    border: 1px solid #d7e0ed;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    display: grid;
    gap: 6px;
    text-align: left;
    color: var(--nm-dark);
    cursor: pointer;
}
.nm-choice-card i {
    font-size: 1.45rem;
    color: var(--nm-blue);
}
.nm-choice-card strong { font-weight: 950; }
.nm-choice-card:hover,
.nm-choice-card.active {
    border-color: var(--nm-blue);
    background: #f5f9ff;
    box-shadow: 0 14px 30px rgba(31, 94, 255, .12);
    transform: translateY(-2px);
}
.nm-choice-card.active::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--nm-yellow);
    color: var(--nm-dark);
    display: grid;
    place-items: center;
    font-size: .75rem;
}
.nm-order-summary {
    position: sticky;
    top: 118px;
    display: grid;
    gap: 16px;
}
.nm-order-summary h2 {
    margin: 0;
    color: var(--nm-dark);
    font-size: 1.25rem;
    font-weight: 950;
}
.nm-summary-items,
.nm-summary-totals,
.nm-secure-list {
    display: grid;
    gap: 10px;
}
.nm-summary-items div,
.nm-summary-totals div {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 14px;
}
.nm-summary-totals .nm-shipping-rule {
    display: block;
    margin-top: -4px;
    padding: 10px 12px;
    border: 1px solid #d9e6ff;
    border-radius: 8px;
    background: #f3f7ff;
}
.nm-summary-totals .nm-shipping-rule span {
    color: #315174;
    font-size: .82rem;
    font-weight: 850;
    line-height: 1.35;
}
.nm-summary-items span { max-width: 210px; }
.nm-summary-items small { color: #8090a5; font-weight: 850; }
.nm-coupon-field {
    display: grid;
    gap: 7px;
    color: var(--nm-muted);
    font-weight: 850;
}
.nm-grand-total {
    border-top: 1px solid var(--nm-line);
    padding-top: 14px;
}
.nm-grand-total strong {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 950;
}
.nm-confirm-order { width: 100%; }
.nm-secure-list {
    border-top: 1px solid var(--nm-line);
    padding-top: 14px;
    font-size: .9rem;
}
.nm-secure-list span {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nm-ripple {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    pointer-events: none;
    background: rgba(255,255,255,.48);
    transform: translate(-50%, -50%) scale(1);
    animation: nmRipple .42s ease-out forwards;
}
.nm-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1100;
    min-width: min(340px, calc(100vw - 32px));
    border-radius: 8px;
    background: var(--nm-dark, #071B34);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 22px 44px rgba(0,0,0,.28);
    animation: nmToast .24s ease both;
}
.nm-toast i { color: var(--nm-yellow, #FFC107); }
.nm-toast.hide { animation: nmToastOut .22s ease both; }
@keyframes nmFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes nmSpin {
    to { transform: rotate(360deg); }
}
@keyframes nmQtyPulse {
    50% { transform: scale(1.04); box-shadow: 0 10px 22px rgba(31, 94, 255, .16); }
}
@keyframes nmRipple {
    to { opacity: 0; transform: translate(-50%, -50%) scale(18); }
}
@keyframes nmToast {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes nmToastOut {
    to { opacity: 0; transform: translateY(10px); }
}
@media (max-width: 1100px) {
    .nm-checkout-layout { grid-template-columns: 1fr; }
    .nm-order-summary { position: static; }
    .nm-choice-grid.payment { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nm-shipping-progress { grid-template-columns: 1fr; }
    .nm-progress-goal { text-align: left; }
}
@media (max-width: 760px) {
    .nm-cart-page,
    .nm-checkout-page { padding-left: 12px; padding-right: 12px; }
    .nm-cart-table {
        border: 0;
        overflow: visible;
        display: grid;
        gap: 12px;
    }
    .nm-cart-head { display: none; }
    .nm-cart-row {
        min-width: 0;
        grid-template-columns: 82px minmax(0, 1fr);
        border: 1px solid var(--nm-line);
        border-radius: 8px;
        padding: 14px;
        gap: 10px 14px;
    }
    .nm-cart-row > *:nth-child(n+3) {
        grid-column: 1 / -1;
    }
    .nm-cart-product-image { width: 70px; height: 70px; }
    .nm-cart-actions,
    .nm-trust-row,
    .nm-field-grid,
    .nm-field-grid.two,
    .nm-choice-grid.shipping,
    .nm-choice-grid.payment {
        grid-template-columns: 1fr;
    }
    .nm-cart-total { justify-content: space-between; }
    .nm-checkout-hero {
        display: grid;
    }
    .nm-checkout-wizard {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        font-size: .7rem;
    }
    .nm-location-box { grid-template-columns: 1fr; }
    .nm-input-field.wide { grid-column: auto; }
}

/* Premium admin reports */
.admin-shell {
    grid-template-columns: 280px minmax(0, 1fr);
    background: #f6f8fb;
    overflow-x: hidden;
}
.admin-sidebar {
    width: 280px;
    background:
        radial-gradient(circle at 18% 0%, rgba(31, 94, 255, .22), transparent 34%),
        linear-gradient(180deg, #071B34 0%, #061428 100%);
    border-right: 1px solid rgba(255,255,255,.08);
    box-shadow: inset -1px 0 0 rgba(255,255,255,.08);
}
.admin-brand {
    font-family: Poppins, Inter, Arial, sans-serif;
    font-size: 1.72rem;
    font-weight: 950;
}
.admin-brand-block span {
    color: rgba(255,255,255,.82);
    font-weight: 700;
}
.admin-menu a {
    border-radius: 13px;
    color: rgba(255,255,255,.90);
}
.admin-menu a i {
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.04);
}
.admin-menu a.active,
.admin-menu a:hover {
    background: linear-gradient(135deg, #1F5EFF, #073fbd);
    box-shadow: 0 14px 28px rgba(31, 94, 255, .26);
}
.admin-menu a.active i,
.admin-menu a:hover i {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.35);
}
.admin-user-card {
    min-height: 78px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: rgba(255,255,255,.05);
    padding: 12px;
}
.admin-user-card .online-dot {
    position: relative;
    padding-left: 12px;
    color: #b9f6d3;
}
.admin-user-card .online-dot::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #12B76A;
    transform: translateY(-50%);
}
.admin-main {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(18px, 3vw, 34px) 36px;
}
.admin-topbar {
    min-height: 78px;
    margin: 0 0 26px;
    padding: 12px clamp(18px, 3vw, 34px);
    background: rgba(255,255,255,.78);
    border-bottom: 1px solid rgba(208, 213, 221, .68);
    box-shadow: 0 18px 38px rgba(16, 24, 40, .07);
    backdrop-filter: blur(18px);
}
.admin-search {
    max-width: 560px;
    min-height: 52px;
    border-radius: 14px;
}
.admin-search i { color: #475467; }
.admin-top-actions button,
.nm-admin-date,
.nm-admin-profile {
    border: 1px solid #e4e7ec;
    background: rgba(255,255,255,.84);
    box-shadow: 0 10px 24px rgba(16,24,40,.06);
}
.nm-admin-date {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 12px;
    padding: 0 14px;
    color: #344054;
    font-weight: 850;
    white-space: nowrap;
}
.nm-store-button {
    background: linear-gradient(135deg, #FFC107, #ffb000);
    border-radius: 12px;
}
.nm-reports-page {
    display: grid;
    gap: 22px;
    color: #101828;
    animation: nmAdminFade .28s ease both;
}
.nm-reports-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
}
.nm-reports-head span,
.nm-panel-title span {
    display: block;
    color: #667085;
    font-weight: 850;
    font-size: .9rem;
}
.nm-reports-head h1 {
    margin: 4px 0 4px;
    color: #071B34;
    font-family: Poppins, Inter, Arial, sans-serif;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 950;
    letter-spacing: 0;
}
.nm-reports-head p,
.nm-panel-title p,
.nm-day-intro p {
    margin: 0;
    color: #667085;
}
.nm-reports-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.nm-date-filter,
.nm-export-primary {
    min-height: 52px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    font-weight: 950;
    transition: transform .25s ease, box-shadow .25s ease;
}
.nm-date-filter {
    border: 1px solid #d9e2ef;
    background: #fff;
    color: #344054;
}
.nm-export-primary {
    border: 0;
    background: linear-gradient(135deg, #1F5EFF, #0a46d6);
    color: #fff;
    box-shadow: 0 16px 34px rgba(31, 94, 255, .24);
}
.nm-date-filter:hover,
.nm-export-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(16,24,40,.10);
}
.nm-report-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}
.nm-report-kpi,
.nm-export-panel,
.nm-day-summary {
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(16,24,40,.07);
}
.nm-report-kpi {
    min-height: 168px;
    padding: 18px;
    display: grid;
    gap: 12px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nm-report-kpi:hover,
.nm-export-card:hover,
.nm-day-grid article:hover {
    transform: translateY(-4px);
    border-color: #bfd2ff;
    box-shadow: 0 24px 52px rgba(16,24,40,.12);
}
.nm-kpi-top {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}
.nm-kpi-top > i {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    background: #eef4ff;
    color: #1F5EFF;
}
.nm-report-kpi.green .nm-kpi-top > i { background: #ecfdf3; color: #12B76A; }
.nm-report-kpi.orange .nm-kpi-top > i { background: #fff7ed; color: #f97316; }
.nm-report-kpi.violet .nm-kpi-top > i { background: #f4f0ff; color: #7c3aed; }
.nm-kpi-top span {
    color: #667085;
    font-weight: 850;
    font-size: .88rem;
}
.nm-kpi-top strong {
    display: block;
    margin-top: 5px;
    color: #071B34;
    font-size: clamp(1.25rem, 1.5vw, 1.52rem);
    font-weight: 950;
    line-height: 1.08;
    overflow-wrap: anywhere;
}
.nm-kpi-top small {
    display: block;
    margin-top: 8px;
    color: #667085;
    font-weight: 850;
}
.nm-kpi-top small.positive { color: #079455; }
.nm-kpi-top em {
    color: #667085;
    font-style: normal;
    font-weight: 750;
}
.nm-report-kpi svg {
    width: 100%;
    height: 46px;
}
.nm-report-kpi polyline {
    fill: none;
    stroke: #1F5EFF;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nm-report-kpi.green polyline { stroke: #12B76A; }
.nm-report-kpi.orange polyline { stroke: #f97316; }
.nm-report-kpi.violet polyline { stroke: #7c3aed; }
.nm-export-panel {
    padding: clamp(18px, 2.3vw, 28px);
}
.nm-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.nm-panel-title h2,
.nm-day-intro h2 {
    margin: 4px 0 4px;
    color: #071B34;
    font-size: 1.25rem;
    font-weight: 950;
}
.nm-cloud-art {
    min-width: 238px;
    height: 88px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.nm-cloud-art > i {
    width: 96px;
    height: 58px;
    border-radius: 999px 999px 20px 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #eef4ff, #dbe8ff);
    color: #1F5EFF;
    font-size: 2rem;
    box-shadow: 0 16px 34px rgba(31, 94, 255, .14);
}
.nm-cloud-art span {
    position: absolute;
    bottom: 4px;
    width: 46px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: .68rem;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(16,24,40,.10);
}
.nm-cloud-art .csv { right: 76px; background: #ecfdf3; color: #079455; }
.nm-cloud-art .xls { right: 24px; background: #f0fdf4; color: #16a34a; }
.nm-cloud-art .pdf { right: 0; background: #fff1f3; color: #d92d20; }
.nm-export-groups {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.nm-export-group {
    min-width: 0;
    display: grid;
    gap: 10px;
}
.nm-export-group header {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #071B34;
    font-weight: 950;
}
.nm-export-group header i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: #1F5EFF;
}
.nm-export-group > div {
    display: grid;
    gap: 10px;
}
.nm-export-card {
    min-height: 58px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    border: 1px solid #e4eaf2;
    border-radius: 14px;
    background: #fff;
    padding: 10px 12px;
    color: #24364f;
    font-weight: 850;
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nm-export-card > i {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #ecfdf3;
    color: #12B76A;
}
.nm-export-card.red > i { background: #fff1f3; color: #f04438; }
.nm-export-card b {
    color: #667085;
    font-size: .9rem;
}
.nm-day-summary {
    min-height: 138px;
    display: grid;
    grid-template-columns: minmax(260px, .55fr) minmax(0, 1.45fr);
    align-items: center;
    gap: 18px;
    padding: clamp(18px, 2.2vw, 26px);
    border-color: #cfe0ff;
}
.nm-day-intro {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}
.nm-day-intro > i {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1F5EFF, #073fbd);
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 18px 34px rgba(31,94,255,.22);
}
.nm-day-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    border-left: 1px solid #dce6f5;
}
.nm-day-grid article {
    min-height: 96px;
    display: grid;
    gap: 5px;
    align-content: center;
    padding: 0 16px;
    border-right: 1px solid #dce6f5;
    transition: transform .25s ease, box-shadow .25s ease;
}
.nm-day-grid article i {
    color: #1F5EFF;
    font-size: 1rem;
}
.nm-day-grid span {
    color: #344054;
    font-weight: 850;
    font-size: .82rem;
}
.nm-day-grid strong {
    color: #079455;
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
    font-weight: 950;
    line-height: 1;
    overflow-wrap: anywhere;
}
.nm-day-grid small {
    width: fit-content;
    border-radius: 999px;
    background: #dff7ea;
    color: #079455;
    padding: 5px 9px;
    font-weight: 950;
    font-size: .72rem;
}
@keyframes nmAdminFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1400px) {
    .nm-report-kpis,
    .nm-export-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nm-day-summary { grid-template-columns: 1fr; }
    .nm-day-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 0; }
}
@media (max-width: 1180px) {
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 60;
        transform: translateX(-104%);
        transition: transform .25s ease;
    }
    .admin-shell.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }
    .admin-shell { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .nm-reports-head,
    .nm-panel-title {
        align-items: stretch;
        flex-direction: column;
    }
    .nm-reports-actions,
    .nm-date-filter,
    .nm-export-primary {
        width: 100%;
    }
    .nm-report-kpis,
    .nm-export-groups,
    .nm-day-grid {
        grid-template-columns: 1fr;
    }
    .nm-day-grid {
        border-left: 0;
        gap: 10px;
    }
    .nm-day-grid article {
        border: 1px solid #e4eaf2;
        border-radius: 14px;
    }
    .nm-cloud-art {
        min-width: 0;
        justify-content: start;
    }
}

/* Users module layout override: match compact reference screen */
.nm-users-page .nm-user-form-card {
    grid-template-columns: minmax(0, 1fr) 210px !important;
    column-gap: 24px !important;
    align-items: start;
}
.nm-users-page .nm-user-form-card .nm-user-card-title {
    grid-column: 1 / 2 !important;
    margin-bottom: 18px;
    padding-bottom: 0;
}
.nm-users-page .nm-user-form-grid {
    grid-column: 1 / 2 !important;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
    grid-auto-flow: row;
    align-items: end !important;
}
.nm-users-page .nm-user-form-grid label {
    min-width: 0;
}
.nm-users-page .nm-user-form-grid label:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
}
.nm-users-page .nm-user-form-grid label:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
}
.nm-users-page .nm-user-form-grid label:nth-of-type(3) {
    grid-column: 3;
    grid-row: 1;
}
.nm-users-page .nm-user-form-grid label.required:nth-of-type(5) {
    grid-column: 1;
    grid-row: 2;
}
.nm-users-page .nm-user-form-grid .nm-user-switch {
    grid-column: 3 !important;
    grid-row: 2 !important;
    width: 100%;
    min-height: 46px;
    margin: 0;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    align-items: center !important;
}
.nm-users-page .nm-user-switch i {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
}
.nm-users-page .nm-user-switch span {
    white-space: normal;
    overflow-wrap: anywhere;
}
.nm-users-page .nm-user-module-picker {
    grid-column: 1 / 2 !important;
    grid-template-columns: repeat(6, minmax(96px, 1fr)) !important;
    margin-top: 20px !important;
}
.nm-users-page .nm-user-actions {
    grid-column: 2 / 3 !important;
    grid-row: 2 / span 3 !important;
    width: 100%;
    margin-top: 38px !important;
    border-left: 1px solid #edf1f7 !important;
    border-top: 0 !important;
    padding-left: 24px !important;
    padding-top: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-content: start;
}
.nm-users-page .nm-user-actions button {
    min-width: 0;
    white-space: nowrap;
}
.nm-users-page .nm-user-table {
    overflow-x: visible;
}
.nm-users-page .nm-user-row {
    min-width: 0 !important;
    grid-template-columns: minmax(210px, 1.3fr) minmax(220px, 1.2fr) 150px 120px 150px 150px !important;
}
@media (max-width: 1320px) {
    .nm-users-page .nm-user-form-card {
        grid-template-columns: 1fr !important;
    }
    .nm-users-page .nm-user-actions {
        grid-column: 1 !important;
        grid-row: auto !important;
        margin-top: 18px !important;
        border-left: 0 !important;
        border-top: 1px solid #edf1f7 !important;
        padding-left: 0 !important;
        padding-top: 16px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 980px) {
    .nm-users-page .nm-user-form-grid,
    .nm-users-page .nm-user-module-picker {
        grid-template-columns: 1fr !important;
    }
    .nm-users-page .nm-user-form-grid label,
    .nm-users-page .nm-user-form-grid .nm-user-switch {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    .nm-users-page .nm-user-table {
        overflow-x: auto;
    }
    .nm-users-page .nm-user-row {
        min-width: 920px !important;
    }
}
@media (max-width: 560px) {
    .admin-topbar {
        grid-template-columns: 1fr;
    }
    .admin-top-actions {
        justify-content: stretch;
    }
    .nm-admin-date,
    .admin-top-actions button:nth-of-type(4) {
        display: none;
    }
    .nm-day-intro {
        grid-template-columns: 1fr;
    }
}

/* Premium product edit module */
.nm-product-editor-page {
    max-width: 1700px;
    margin: 0 auto;
    padding-bottom: 34px;
    display: grid;
    gap: 20px;
    color: #071B34;
    animation: nmAdminFade .28s ease both;
}
.nm-product-editor-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: 18px;
    align-items: end;
}
.nm-product-editor-head h1 {
    margin: 6px 0 4px;
    color: #071B34;
    font-family: Poppins, Inter, Arial, sans-serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 950;
    letter-spacing: 0;
}
.nm-product-editor-head p,
.nm-card-title p {
    margin: 0;
    color: #667085;
}
.nm-product-meta-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid #e4eaf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(16,24,40,.07);
    overflow: hidden;
}
.nm-product-meta-card div {
    min-height: 74px;
    padding: 14px;
    display: grid;
    align-content: center;
    background: #fbfdff;
}
.nm-product-meta-card span {
    color: #667085;
    font-size: .75rem;
    font-weight: 850;
}
.nm-product-meta-card strong {
    color: #071B34;
    font-size: .9rem;
    font-weight: 950;
}
.nm-product-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.nm-editor-action {
    min-height: 44px;
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 15px;
    font-weight: 950;
    color: #071B34;
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.nm-editor-action:hover {
    color: #071B34;
    transform: translateY(-2px);
    border-color: #b9cdfd;
    box-shadow: 0 14px 30px rgba(16,24,40,.10);
}
.nm-editor-action.primary {
    border: 0;
    background: linear-gradient(135deg, #FFC107, #ffb000);
    color: #071B34;
    box-shadow: 0 16px 32px rgba(255,193,7,.24);
}
.nm-editor-action.blue {
    border: 0;
    background: linear-gradient(135deg, #1F5EFF, #0a48de);
    color: #fff;
    box-shadow: 0 16px 32px rgba(31,94,255,.22);
}
.nm-product-form {
    display: grid;
    gap: 20px;
}
.nm-editor-advice {
    min-height: 132px;
    border-radius: 18px;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) minmax(250px, auto);
    gap: 18px;
    align-items: center;
    color: #fff;
    background: linear-gradient(115deg, #071B34, #0e43a4 58%, #1F5EFF);
    box-shadow: 0 22px 46px rgba(31,94,255,.22);
}
.nm-editor-advice > i {
    width: 64px;
    height: 64px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #1F5EFF;
    font-size: 1.8rem;
}
.nm-editor-advice strong { display: block; color: #fff; }
.nm-editor-advice span { color: #e7efff; }
.nm-editor-advice ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-weight: 850;
    font-size: .86rem;
}
.nm-editor-advice li i { color: #22C55E; margin-right: 7px; }
.nm-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    gap: 20px;
    align-items: start;
}
.nm-product-main,
.nm-product-side {
    display: grid;
    gap: 20px;
    min-width: 0;
}
.nm-product-side {
    position: sticky;
    top: 96px;
}
.nm-editor-card {
    min-width: 0;
    border: 1px solid #e4eaf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(16,24,40,.07);
    padding: clamp(18px, 2vw, 24px);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.nm-editor-card:hover {
    border-color: #d4e0f4;
    box-shadow: 0 22px 50px rgba(16,24,40,.10);
}
.nm-card-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.nm-card-title span {
    display: block;
    color: #1F5EFF;
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.nm-card-title h2 {
    margin: 3px 0 4px;
    color: #071B34;
    font-size: 1.12rem;
    font-weight: 950;
}
.nm-card-title > strong,
.nm-valid-pill,
.nm-seo-score {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #079455;
    padding: 0 11px;
    font-size: .78rem;
    font-weight: 950;
    white-space: nowrap;
}
.nm-sku-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}
.nm-product-field-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.nm-product-field-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nm-product-field-grid .wide {
    grid-column: span 2;
}
.nm-icon-field,
.nm-inventory-grid label,
.nm-price-card label,
.nm-variant-manager label,
.textarea-label {
    display: grid;
    gap: 7px;
    position: relative;
    color: #344054;
    font-size: .83rem;
    font-weight: 900;
}
.nm-icon-field > i {
    position: absolute;
    left: 13px;
    bottom: 14px;
    color: #7b8da8;
    pointer-events: none;
}
.nm-icon-field.required span::after {
    content: " *";
    color: #EF4444;
}
.nm-icon-field input,
.nm-icon-field select,
.nm-inventory-grid input,
.nm-price-card input,
.nm-variant-manager input,
.textarea-label textarea,
.nm-media-manager input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d7e0ed;
    border-radius: 12px;
    background: #fbfdff;
    color: #071B34;
    padding: 12px 13px 12px 38px;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.nm-inventory-grid input,
.nm-price-card input,
.nm-variant-manager input,
.textarea-label textarea,
.nm-media-manager input {
    padding-left: 13px;
}
.nm-icon-field input[readonly],
.nm-icon-field select:disabled {
    color: #667085;
    background: #f5f7fb;
}
.nm-icon-field input:focus,
.nm-icon-field select:focus,
.nm-inventory-grid input:focus,
.nm-price-card input:focus,
.nm-variant-manager input:focus,
.textarea-label textarea:focus,
.nm-media-manager input:focus {
    border-color: #1F5EFF;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(31,94,255,.12);
}
.nm-icon-field.valid input,
.nm-icon-field.valid select {
    border-color: #22C55E;
    background: #f6fffa;
}
.nm-icon-field.invalid input,
.nm-icon-field.invalid select {
    border-color: #EF4444;
    background: #fff7f7;
}
.nm-variant-manager {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.nm-variant-manager > div {
    display: grid;
    gap: 10px;
    border: 1px solid #edf1f7;
    border-radius: 16px;
    background: #fbfdff;
    padding: 14px;
}
.variant-chips button {
    border: 0;
    border-radius: 999px;
    background: #1F5EFF;
    color: #fff;
    font-weight: 950;
    padding: 6px 11px;
}
.nm-inventory-grid,
.nm-price-pair {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.nm-price-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nm-stock-availability {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.nm-stock-availability span { color: #667085; font-weight: 850; }
.nm-stock-availability strong { color: #079455; }
.rich-toolbar {
    margin-bottom: 14px;
}
.rich-toolbar button {
    min-width: 38px;
    min-height: 36px;
    display: inline-grid;
    place-items: center;
}
.textarea-label textarea {
    min-height: 120px;
    resize: vertical;
}
.nm-seo-meter {
    height: 10px;
    border-radius: 999px;
    background: #e8eef7;
    overflow: hidden;
    margin: 16px 0;
}
.nm-seo-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22C55E, #1F5EFF);
}
.nm-seo-tips {
    margin: 14px 0 0;
    padding-left: 18px;
    color: #475467;
    font-size: .88rem;
}
.nm-media-manager {
    overflow: hidden;
}
.nm-dropzone {
    min-height: 148px;
    display: grid;
    gap: 7px;
    border: 1.5px dashed #9bbcff;
    background: linear-gradient(180deg, #f8fbff, #fff);
}
.nm-dropzone i,
.video-zone i {
    color: #1F5EFF;
    font-size: 2rem;
}
.nm-dropzone b {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1F5EFF var(--upload-progress, 0%), #e5edf7 var(--upload-progress, 0%));
    color: transparent;
    overflow: hidden;
}
.nm-media-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.nm-media-thumbs figure {
    min-height: 82px;
}
.nm-media-thumbs button {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: rgba(7,27,52,.82);
    color: #fff;
    display: grid;
    place-items: center;
}
.nm-price-card {
    display: grid;
    gap: 12px;
}
.nm-final-price {
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: linear-gradient(180deg, #f0fdf4, #fff);
    padding: 16px;
}
.nm-final-price span {
    color: #344054;
    font-weight: 850;
}
.nm-final-price strong {
    display: block;
    margin: 6px 0;
    color: #1F5EFF;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 950;
}
.nm-final-price small {
    color: #079455;
    font-weight: 900;
}
.nm-publication-card .switch-row {
    border-bottom: 1px solid #edf1f7;
}
.nm-publication-card .switch-row i {
    color: #1F5EFF;
    margin-right: 7px;
}
.nm-side-seo .nm-editor-action {
    width: 100%;
    margin-top: 12px;
}
.nm-product-stats article {
    display: grid;
    gap: 5px;
}
.nm-product-stats article > i {
    color: #1F5EFF;
    font-size: 1.25rem;
}
.nm-product-stats small {
    width: fit-content;
    border-radius: 999px;
    background: #ecfdf3;
    color: #079455;
    padding: 4px 8px;
    font-weight: 950;
}
.nm-related-products {
    overflow: hidden;
}
.nm-related-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
}
.nm-related-card {
    min-width: 0;
    border: 1px solid #e4eaf2;
    border-radius: 16px;
    background: #fbfdff;
    padding: 12px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease;
}
.nm-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(16,24,40,.12);
}
.nm-related-card img {
    width: 92px;
    height: 108px;
    object-fit: cover;
    border-radius: 13px;
    background: #f4f7fb;
}
.nm-related-card strong,
.nm-related-card span,
.nm-related-card small,
.nm-related-card b {
    display: block;
}
.nm-related-card strong {
    color: #071B34;
    font-size: .88rem;
    line-height: 1.25;
}
.nm-related-card span {
    color: #071B34;
    font-weight: 950;
    margin-top: 5px;
}
.nm-related-card small {
    color: #667085;
    font-size: .76rem;
}
.nm-related-card b {
    color: #079455;
    font-size: .78rem;
    margin-top: 5px;
}
.nm-related-card footer {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.nm-related-card footer button,
.nm-related-card footer a {
    min-height: 36px;
    border: 1px solid #d9e2ef;
    border-radius: 10px;
    background: #fff;
    color: #1F5EFF;
    display: grid;
    place-items: center;
}
.nm-related-card footer .danger {
    color: #EF4444;
}
@media (max-width: 1450px) {
    .nm-product-field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nm-product-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 390px); }
}
@media (max-width: 1180px) {
    .nm-product-editor-head,
    .nm-product-layout,
    .nm-editor-advice {
        grid-template-columns: 1fr;
    }
    .nm-product-side {
        position: static;
    }
    .nm-product-meta-card,
    .nm-product-field-grid,
    .nm-inventory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .nm-product-editor-page {
        gap: 16px;
    }
    .nm-product-toolbar,
    .nm-product-toolbar .nm-editor-action {
        width: 100%;
    }
    .nm-product-meta-card,
    .nm-product-field-grid,
    .nm-product-field-grid.two,
    .nm-sku-row,
    .nm-variant-manager,
    .nm-inventory-grid,
    .nm-price-pair,
    .mini-stats-grid {
        grid-template-columns: 1fr;
    }
    .nm-product-field-grid .wide {
        grid-column: auto;
    }
    .nm-card-title,
    .nm-stock-availability {
        display: grid;
    }
    .nm-related-track {
        grid-auto-columns: minmax(240px, 92%);
    }
}

/* Premium categories module */
.nm-category-page {
    max-width: 1740px;
    margin: 0 auto;
    padding-bottom: 34px;
    display: grid;
    gap: 20px;
    color: #071B34;
    animation: nmAdminFade .28s ease both;
}
.nm-category-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}
.nm-category-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.nm-category-import {
    margin: 0;
}
.nm-category-import input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.nm-category-head nav {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #667085;
    font-weight: 850;
    font-size: .9rem;
}
.nm-category-head nav strong { color: #1F5EFF; }
.nm-category-head h1 {
    margin: 8px 0 4px;
    font-family: Poppins, Inter, Arial, sans-serif;
    font-size: clamp(2rem, 3vw, 2.85rem);
    font-weight: 950;
    letter-spacing: 0;
}
.nm-category-head p {
    margin: 0;
    color: #667085;
    font-size: 1.03rem;
}
.nm-category-primary,
.nm-category-save,
.nm-category-secondary,
.nm-category-ghost,
.nm-category-row-actions a,
.nm-category-row-actions button,
.nm-category-pagination button {
    min-height: 44px;
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 15px;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.nm-category-primary,
.nm-category-save {
    border: 0;
    background: linear-gradient(135deg, #1F5EFF, #073fbd);
    color: #fff;
    box-shadow: 0 18px 34px rgba(31,94,255,.22);
}
.nm-category-save {
    background: linear-gradient(135deg, #FFC107, #ffad00);
    color: #071B34;
    box-shadow: 0 18px 34px rgba(255,193,7,.24);
}
.nm-category-secondary,
.nm-category-ghost {
    background: #fff;
    color: #071B34;
}
.nm-category-ghost { color: #667085; }
.nm-category-primary:hover,
.nm-category-save:hover,
.nm-category-secondary:hover,
.nm-category-ghost:hover,
.nm-category-row-actions a:hover,
.nm-category-row-actions button:hover,
.nm-category-pagination button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(16,24,40,.11);
}
.nm-category-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.nm-category-stats article,
.nm-category-card {
    min-width: 0;
    border: 1px solid #e4eaf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(16,24,40,.07);
}
.nm-category-stats article {
    min-height: 178px;
    padding: 20px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px 15px;
    align-items: center;
    animation: nmAdminFade .28s ease both;
}
.nm-category-stats article > i {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: #1F5EFF;
    font-size: 1.5rem;
}
.nm-category-stats article.green > i { background: #ecfdf3; color: #079455; }
.nm-category-stats article.blue > i { background: #eff8ff; color: #1570ef; }
.nm-category-stats article.orange > i { background: #fff4e5; color: #f97316; }
.nm-category-stats article.yellow > i { background: #fff8db; color: #b77900; }
.nm-category-stats span {
    display: block;
    color: #667085;
    font-weight: 850;
}
.nm-category-stats strong {
    display: block;
    color: #071B34;
    font-size: 2rem;
    font-weight: 950;
}
.nm-category-stats svg {
    grid-column: 1 / -1;
    width: 100%;
    height: 42px;
}
.nm-category-stats polyline {
    fill: none;
    stroke: #1F5EFF;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nm-category-stats .green polyline { stroke: #079455; }
.nm-category-stats .blue polyline { stroke: #1570ef; }
.nm-category-stats .orange polyline { stroke: #f97316; }
.nm-category-stats .yellow polyline { stroke: #FFC107; }
.nm-category-stats small {
    grid-column: 1 / -1;
    width: fit-content;
    border-radius: 999px;
    background: #ecfdf3;
    color: #079455;
    padding: 5px 9px;
    font-weight: 950;
}
.nm-category-workspace {
    display: grid;
}
.nm-category-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: start;
}
.nm-category-card {
    padding: clamp(18px, 2vw, 24px);
}
.nm-category-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.nm-category-card-title span {
    display: block;
    color: #1F5EFF;
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.nm-category-card-title h2 {
    margin: 3px 0 4px;
    font-size: 1.18rem;
    font-weight: 950;
}
.nm-category-card-title p {
    margin: 0;
    color: #667085;
}
.nm-category-card-title > strong {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1F5EFF;
    padding: 0 11px;
    font-size: .78rem;
    font-weight: 950;
    white-space: nowrap;
}
.nm-category-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.nm-category-field {
    display: grid;
    gap: 7px;
    position: relative;
    color: #344054;
    font-size: .83rem;
    font-weight: 900;
}
.nm-category-field.required span::after {
    content: " *";
    color: #EF4444;
}
.nm-category-field > i {
    position: absolute;
    left: 13px;
    bottom: 14px;
    color: #7b8da8;
    pointer-events: none;
}
.nm-category-field input,
.nm-category-field select,
.nm-category-field textarea,
.nm-category-filters input,
.nm-category-filters select,
.nm-category-row-actions select,
.nm-category-pagination select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d7e0ed;
    border-radius: 12px;
    background: #fbfdff;
    color: #071B34;
    padding: 12px 13px 12px 38px;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.nm-category-field input[type="color"] {
    min-height: 46px;
    padding: 5px 12px 5px 38px;
}
.nm-category-field small {
    color: #667085;
    font-size: .74rem;
    font-weight: 850;
    text-align: right;
}
.nm-category-field textarea {
    min-height: 96px;
    resize: vertical;
}
.nm-category-field.wide { grid-column: span 3; }
.nm-category-field input:focus,
.nm-category-field select:focus,
.nm-category-field textarea:focus,
.nm-category-filters input:focus,
.nm-category-filters select:focus {
    border-color: #1F5EFF;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(31,94,255,.12);
}
.nm-category-switch {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: end;
    border: 1px solid #d7e0ed;
    border-radius: 12px;
    padding: 0 13px;
    background: #fbfdff;
    color: #344054;
    font-weight: 950;
}
.nm-category-switch input { display: none; }
.nm-category-switch i {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
}
.nm-category-switch i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,.18);
    transition: transform .2s ease;
}
.nm-category-switch input:checked + i {
    background: #1F5EFF;
}
.nm-category-switch input:checked + i::after {
    transform: translateX(18px);
}
.nm-category-image-row {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 16px;
}
.nm-category-preview-box {
    border: 1px solid #e4eaf2;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff, #fff);
    padding: 12px;
    position: relative;
    overflow: hidden;
}
.nm-category-preview-box img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
    background: #fff;
}
.nm-category-preview-box span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    background: rgba(7,27,52,.82);
    color: #fff;
    padding: 5px 8px;
    font-size: .7rem;
    font-weight: 950;
}
.nm-category-image-tools {
    display: grid;
    gap: 12px;
    align-content: center;
}
.nm-category-progress {
    height: 8px;
    border-radius: 999px;
    background: #e8eef7;
    overflow: hidden;
}
.nm-category-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #FFC107, #1F5EFF);
    transition: width .35s ease;
}
.nm-category-editor.generating .nm-category-progress i { width: 100%; }
.nm-category-actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.nm-category-seo-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}
.nm-category-seo-score {
    min-height: 76px;
    border: 1px solid #d7e0ed;
    border-radius: 14px;
    background: #fbfdff;
    padding: 11px 13px;
    display: grid;
    gap: 6px;
}
.nm-category-seo-score span {
    color: #667085;
    font-size: .78rem;
    font-weight: 950;
}
.nm-category-seo-score strong {
    color: #071B34;
    font-size: 1.45rem;
    font-weight: 950;
}
.nm-category-seo-score i {
    height: 7px;
    border-radius: 999px;
    background: #e8eef7;
    overflow: hidden;
}
.nm-category-seo-score b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22C55E, #1F5EFF);
}
.nm-category-side {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 96px;
}
.nm-help-card {
    background: linear-gradient(180deg, #f8fbff, #fff);
}
.nm-help-card > i {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: #1F5EFF;
    font-size: 1.25rem;
}
.nm-help-card h3 {
    margin: 12px 0 6px;
    font-weight: 950;
}
.nm-help-card p,
.nm-help-card li,
.nm-seo-preview p {
    color: #667085;
}
.nm-help-card ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
    font-weight: 850;
}
.nm-help-card li i {
    color: #079455;
    margin-right: 8px;
}
.nm-seo-preview span,
.nm-seo-preview small,
.nm-seo-preview strong,
.nm-seo-preview em {
    display: block;
}
.nm-seo-preview span {
    color: #667085;
    font-size: .78rem;
    font-weight: 900;
}
.nm-seo-preview small {
    margin-top: 12px;
    color: #079455;
}
.nm-seo-preview strong {
    margin-top: 6px;
    color: #1F5EFF;
    font-size: 1.02rem;
    font-weight: 950;
}
.nm-seo-preview div {
    height: 8px;
    margin: 14px 0 8px;
    border-radius: 999px;
    background: #e8eef7;
    overflow: hidden;
}
.nm-seo-preview div i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22C55E, #1F5EFF);
}
.nm-seo-preview em {
    color: #079455;
    font-style: normal;
    font-weight: 950;
}
.nm-category-insights span {
    color: #1F5EFF;
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
}
.nm-category-insights h3 {
    margin: 8px 0 10px;
    color: #071B34;
    font-size: 1rem;
    font-weight: 950;
}
.nm-category-insights p {
    margin: 8px 0 0;
    color: #667085;
    font-weight: 850;
}
.nm-category-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) repeat(4, minmax(160px, .75fr));
    gap: 12px;
    margin-bottom: 16px;
}
.nm-category-filters label {
    position: relative;
}
.nm-category-filters label i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7b8da8;
    z-index: 1;
}
.nm-category-table {
    overflow-x: auto;
    display: grid;
}
.nm-category-row {
    min-width: 1260px;
    display: grid;
    grid-template-columns: 78px minmax(210px, 1.35fr) minmax(145px, .8fr) 130px 120px 96px 126px 136px minmax(310px, 1.35fr);
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid #edf1f7;
    padding: 12px 6px;
    transition: background .2s ease, transform .2s ease;
}
.nm-category-row.dragging {
    opacity: .56;
    background: #eef4ff;
}
.nm-category-row.drag-over {
    box-shadow: inset 0 3px 0 #1F5EFF;
}
.nm-category-row.head {
    min-height: 44px;
    color: #344054;
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .02em;
    background: #f8fbff;
    border-radius: 14px;
    border-bottom: 0;
    padding-inline: 12px;
}
.nm-category-row:not(.head):hover {
    background: #fbfdff;
    transform: translateY(-1px);
}
.nm-category-row figure {
    width: 64px;
    height: 64px;
    margin: 0;
    border: 1px solid #e4eaf2;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}
.nm-category-row figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nm-category-row strong,
.nm-category-row small {
    display: block;
}
.nm-category-row strong {
    color: #071B34;
    font-weight: 950;
}
.nm-category-row small,
.nm-category-row p,
.nm-category-row span {
    margin: 0;
    color: #667085;
    font-size: .86rem;
    font-weight: 800;
}
.nm-category-row p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.nm-status-badge {
    width: fit-content;
    border-radius: 999px;
    padding: 6px 10px;
    display: inline-flex;
    color: #079455;
    background: #dff7ea;
    font-size: .76rem;
    font-weight: 950;
}
.nm-status-badge.inactive {
    color: #b42318;
    background: #fee4e2;
}
.nm-category-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.nm-category-row-actions a,
.nm-category-row-actions button {
    width: 38px;
    min-height: 38px;
    padding: 0;
    background: #fff;
    color: #1F5EFF;
}
.nm-category-row-actions .danger {
    color: #EF4444;
    border-color: #fecaca;
}
.nm-category-row-actions form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nm-category-row-actions select {
    width: 118px;
    min-height: 38px;
    padding: 8px 10px;
    font-size: .78rem;
}
.nm-category-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    color: #667085;
    font-weight: 850;
}
.nm-category-pagination div {
    display: inline-flex;
    gap: 8px;
}
.nm-category-pagination button {
    width: 42px;
    min-height: 42px;
    padding: 0;
    background: #fff;
    color: #1F5EFF;
}
.nm-category-pagination button.active {
    border: 0;
    background: #1F5EFF;
    color: #fff;
}
.nm-category-pagination label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nm-category-pagination select {
    min-height: 42px;
    padding: 8px 34px 8px 12px;
}
@media (max-width: 1280px) {
    .nm-category-editor,
    .nm-category-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nm-category-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .nm-category-seo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nm-category-side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 820px) {
    .nm-category-head,
    .nm-category-card-title,
    .nm-category-pagination {
        align-items: stretch;
        flex-direction: column;
    }
    .nm-category-head-actions {
        justify-content: stretch;
    }
    .nm-category-primary,
    .nm-category-head-actions .nm-category-secondary,
    .nm-category-actions button {
        width: 100%;
    }
    .nm-category-stats,
    .nm-category-editor,
    .nm-category-side,
    .nm-category-form-grid,
    .nm-category-seo-grid,
    .nm-category-filters,
    .nm-category-actions,
    .nm-category-image-row {
        grid-template-columns: 1fr;
    }
    .nm-category-field.wide {
        grid-column: auto;
    }
}

/* Users and profiles module */
.nm-users-page {
    max-width: 1680px;
    margin: 0 auto;
    padding-bottom: 34px;
    display: grid;
    gap: 20px;
    color: #071B34;
}
.nm-users-title-wrap > div {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nm-users-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: #1F5EFF;
    font-size: 1.45rem;
}
.nm-users-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 6px;
}
.nm-users-head nav {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #667085;
    font-weight: 850;
    font-size: .9rem;
}
.nm-users-head nav strong { color: #1F5EFF; }
.nm-users-head h1 {
    margin: 8px 0 4px;
    font-size: clamp(2rem, 2.5vw, 2.55rem);
    font-weight: 950;
    letter-spacing: 0;
}
.nm-users-head p,
.nm-user-card-title p,
.nm-profile-guide p {
    margin: 0;
    color: #667085;
}
.nm-user-primary,
.nm-user-save,
.nm-user-secondary,
.nm-user-row-actions button,
.nm-user-filter-button {
    min-height: 44px;
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 15px;
    font-weight: 950;
    background: #fff;
    color: #071B34;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.nm-user-primary,
.nm-user-save {
    border: 0;
    background: linear-gradient(135deg, #1F5EFF, #073fbd);
    color: #fff;
    box-shadow: 0 18px 34px rgba(31,94,255,.22);
}
.nm-user-save:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}
.nm-user-primary:hover,
.nm-user-save:not(:disabled):hover,
.nm-user-secondary:hover,
.nm-user-row-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(16,24,40,.11);
}
.nm-user-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.nm-user-stats { display: none; }
.nm-user-stats article,
.nm-user-card {
    border: 1px solid #e4eaf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(16,24,40,.07);
}
.nm-user-stats article {
    min-height: 142px;
    padding: 20px;
    display: grid;
    gap: 8px;
}
.nm-user-stats i {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: #1F5EFF;
    font-size: 1.25rem;
}
.nm-user-stats span,
.nm-user-card-title span {
    color: #667085;
    font-weight: 900;
}
.nm-user-stats strong {
    font-size: 2rem;
    font-weight: 950;
}
.nm-user-stats small {
    width: fit-content;
    border-radius: 999px;
    background: #ecfdf3;
    color: #079455;
    padding: 5px 9px;
    font-weight: 950;
}
.nm-users-grid {
    display: grid;
    grid-template-columns: minmax(0, 3.4fr) minmax(300px, 1.05fr);
    gap: 20px;
    align-items: start;
}
.nm-users-aside {
    display: grid;
    gap: 16px;
}
.nm-user-card {
    padding: clamp(18px, 2vw, 24px);
}
.nm-user-form-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 0 26px;
    min-height: 420px;
}
.nm-user-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.nm-user-card-title h2 {
    margin: 3px 0 4px;
    font-size: 1.2rem;
    font-weight: 950;
}
.nm-user-form-card .nm-user-card-title {
    grid-column: 1;
    padding-bottom: 12px;
}
.nm-user-card-title > strong {
    border-radius: 999px;
    background: #eef4ff;
    color: #1F5EFF;
    padding: 7px 11px;
    font-size: .78rem;
    font-weight: 950;
}
.nm-user-form-grid {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 20px;
    align-items: end;
}
.nm-user-extra,
.nm-password-tools,
.nm-user-security-grid.nm-user-advanced {
    display: none !important;
}
.nm-user-form-grid label,
.nm-user-search {
    position: relative;
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: .83rem;
    font-weight: 900;
}
.nm-user-form-grid label > i,
.nm-user-search i {
    position: absolute;
    left: 13px;
    bottom: 14px;
    color: #7b8da8;
}
.nm-user-form-grid label.required > span::after {
    content: " *";
    color: #EF4444;
}
.nm-user-form-grid label > button {
    position: absolute;
    right: 9px;
    bottom: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #667085;
    padding: 0;
    display: grid;
    place-items: center;
}
.nm-user-form-grid input,
.nm-user-form-grid select,
.nm-user-form-grid textarea,
.nm-user-search input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d7e0ed;
    border-radius: 12px;
    background: #fbfdff;
    color: #071B34;
    padding: 12px 13px 12px 38px;
    outline: 0;
}
.nm-user-form-grid textarea {
    min-height: 84px;
    resize: vertical;
}
.nm-user-form-grid .wide {
    grid-column: 1 / -1;
}
.nm-user-form-grid input[type="password"] {
    padding-right: 44px;
}
.nm-user-switch {
    min-height: 46px;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    align-self: end;
    border: 1px solid #d7e0ed;
    border-radius: 12px;
    padding: 8px 14px;
    background: #fbfdff;
    justify-content: flex-start;
    overflow: hidden;
}
.nm-user-switch span {
    color: #071B34;
    line-height: 1.1;
    display: block;
    min-width: 0;
}
.nm-user-switch small {
    display: block;
    color: #667085;
    font-size: .78rem;
    font-weight: 800;
    margin-top: 3px;
}
.nm-user-switch input { display: none; }
.nm-user-switch i {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    grid-column: 1;
    grid-row: 1;
}
.nm-user-switch i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.nm-user-switch input:checked + i { background: #1F5EFF; }
.nm-user-switch input:checked + i::after { transform: translateX(18px); }
.nm-user-actions {
    grid-column: 2;
    grid-row: 2 / span 4;
    margin-top: 8px;
    border-left: 1px solid #edf1f7;
    padding-left: 26px;
    display: grid;
    gap: 14px;
    align-content: start;
}
.nm-user-actions .nm-user-save,
.nm-user-actions .nm-user-secondary {
    width: 100%;
}
.nm-password-tools {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    border: 1px solid #e4eaf2;
    border-radius: 14px;
    background: #fbfdff;
    padding: 14px;
}
.nm-password-tools span,
.nm-password-tools strong {
    display: block;
    font-weight: 950;
}
.nm-password-tools span {
    color: #667085;
    font-size: .8rem;
}
.nm-password-tools strong {
    color: #071B34;
    margin: 3px 0 8px;
}
.nm-password-tools i {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: #e8eef7;
    overflow: hidden;
}
.nm-password-tools b {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #EF4444;
    transition: width .24s ease, background .24s ease;
}
.nm-password-tools b.medium { background: #FFC107; }
.nm-password-tools b.strong { background: #079455; }
.nm-user-security-grid,
.nm-user-module-picker {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.nm-user-security-grid label {
    min-height: 48px;
    border: 1px solid #e4eaf2;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    color: #344054;
    font-weight: 900;
}
.nm-user-security-grid input[type="checkbox"] { accent-color: #1F5EFF; }
.nm-user-security-grid select {
    width: 100%;
    border: 0;
    background: transparent;
    color: #071B34;
    font-weight: 900;
    outline: 0;
}
.nm-user-module-picker {
    grid-column: 1;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 18px;
}
.nm-user-module-picker button,
.nm-permission-button-grid label {
    min-height: 78px;
    border: 1px solid #d7e0ed;
    border-radius: 14px;
    background: #fff;
    color: #071B34;
    display: grid;
    place-items: center;
    gap: 7px;
    text-align: center;
    font-size: .82rem;
    font-weight: 950;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.nm-user-module-picker button i,
.nm-permission-button-grid label i {
    color: #1F5EFF;
    font-size: 1.25rem;
}
.nm-user-module-picker button.active,
.nm-user-module-picker button:hover,
.nm-permission-button-grid label.active,
.nm-permission-button-grid label:hover {
    border-color: #1F5EFF;
    background: #eef4ff;
    color: #1F5EFF;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(31,94,255,.13);
}
.nm-profile-guide > i {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: #1F5EFF;
    font-size: 1.35rem;
}
.nm-side-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.nm-side-title i {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: #1F5EFF;
}
.nm-side-title h2,
.nm-security-advice h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 950;
}
.nm-recommended-role {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-top: 1px solid #edf1f7;
}
.nm-recommended-role > i {
    display: none;
}
.nm-recommended-role > i {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #f4f7fb;
    color: #1F5EFF;
}
.nm-recommended-role strong,
.nm-recommended-role span {
    display: block;
    font-weight: 950;
}
.nm-recommended-role p {
    margin: 4px 0 7px;
    font-size: .88rem;
}
.nm-recommended-role span {
    width: fit-content;
    border-radius: 999px;
    background: #eef4ff;
    color: #1F5EFF;
    padding: 5px 8px;
    font-size: .74rem;
}
.nm-recommended-role button {
    display: none;
}
.nm-role-detail-link {
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid #edf1f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #1F5EFF;
    font-weight: 950;
}
.nm-security-advice ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 9px;
    color: #667085;
    font-weight: 850;
}
.nm-security-advice li i {
    color: #079455;
    margin-right: 8px;
}
.nm-profile-guide h3 {
    margin: 14px 0 10px;
    font-weight: 950;
}
.nm-profile-guide p + p { margin-top: 10px; }
.nm-user-table {
    display: grid;
    overflow-x: auto;
}
.nm-user-row {
    min-width: 980px;
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) minmax(230px, 1.1fr) 150px 120px 145px 180px;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid #edf1f7;
    padding: 12px 6px;
}
.nm-user-row.head {
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    background: #f8fbff;
    color: #344054;
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
}
.nm-user-person {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nm-user-row b {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: #1F5EFF;
    font-weight: 950;
}
.nm-user-row small {
    display: block;
    color: #667085;
    font-size: .78rem;
    font-weight: 850;
}
.nm-user-row strong,
.nm-user-row span {
    display: block;
    min-width: 0;
}
.nm-user-row span {
    color: #667085;
    font-weight: 850;
    overflow-wrap: anywhere;
}
.nm-role-badge {
    width: fit-content;
    border-radius: 999px;
    padding: 6px 10px;
    display: inline-flex;
    background: #eef4ff;
    color: #1F5EFF;
    font-size: .76rem;
    font-style: normal;
    font-weight: 950;
}
.nm-role-badge.master { background: #fff8db; color: #b77900; }
.nm-role-badge.admin { background: #eef4ff; color: #1F5EFF; }
.nm-role-badge.supervisor { background: #ecfdf3; color: #079455; }
.nm-role-badge.operator { background: #f4ebff; color: #7f56d9; }
.nm-role-badge.warehouse { background: #e0f2fe; color: #0277bd; }
.nm-role-badge.sales { background: #fff7ed; color: #f97316; }
.nm-role-badge.staff { background: #f2f4f7; color: #475467; }
.nm-user-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nm-user-row-actions {
    flex-wrap: wrap;
}
.nm-user-row-actions form {
    margin: 0;
}
.nm-user-row-actions button {
    width: 38px;
    min-height: 38px;
    padding: 0;
    color: #1F5EFF;
}
.nm-user-row-actions [data-reset-password],
.nm-user-row-actions .duplicate-entity {
    display: none;
}
.nm-user-row-actions .danger {
    color: #EF4444;
    border-color: #fecaca;
}
.nm-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.nm-role-permissions-card {
    scroll-margin-top: 92px;
}
.nm-profile-card {
    border: 1px solid #e4eaf2;
    border-radius: 16px;
    background: #fbfdff;
    padding: 16px;
    display: grid;
    gap: 14px;
}
.nm-profile-card.highlight {
    border-color: #1F5EFF;
    box-shadow: 0 22px 52px rgba(31,94,255,.18);
}
.nm-profile-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.nm-profile-card header span,
.nm-profile-card header strong {
    display: block;
}
.nm-profile-card header span {
    color: #071B34;
    font-weight: 950;
}
.nm-profile-card header strong {
    color: #667085;
    font-size: .84rem;
}
.nm-profile-card fieldset {
    border: 1px solid #e4eaf2;
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 8px;
    background: #fff;
}
.nm-permission-button-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.nm-permission-button-grid label {
    position: relative;
    min-height: 86px;
}
.nm-permission-button-grid input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.nm-profile-card legend {
    float: none;
    width: auto;
    margin: 0;
    padding: 0 6px;
    color: #1F5EFF;
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
}
.nm-profile-card label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-weight: 850;
}
.nm-profile-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1F5EFF;
}
.nm-user-table-tools {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.nm-user-table-tools .nm-user-search {
    min-width: 280px;
}
.nm-user-table-tools select {
    min-height: 46px;
    border: 1px solid #d7e0ed;
    border-radius: 12px;
    background: #fff;
    color: #071B34;
    padding: 0 12px;
    font-weight: 900;
}
.nm-user-filter-button {
    background: #fff;
    color: #071B34;
}
.nm-user-modal[hidden] {
    display: none;
}
.nm-user-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 22px;
}
.nm-user-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7,27,52,.38);
    backdrop-filter: blur(8px);
}
.nm-user-modal-panel {
    position: relative;
    width: min(920px, 100%);
    max-height: min(760px, 92vh);
    overflow: auto;
    border: 1px solid #e4eaf2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(7,27,52,.26);
    padding: 22px;
    animation: nmAdminFade .24s ease both;
}
.nm-user-modal-panel header,
.nm-user-modal-panel footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}
.nm-user-modal-panel header {
    margin-bottom: 18px;
}
.nm-user-modal-panel header span {
    color: #1F5EFF;
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
}
.nm-user-modal-panel header h2 {
    margin: 3px 0 0;
    font-size: 1.35rem;
    font-weight: 950;
}
.nm-user-modal-panel header button {
    width: 42px;
    height: 42px;
    border: 1px solid #d7e0ed;
    border-radius: 12px;
    background: #fff;
    color: #071B34;
}
.nm-user-modal-panel footer {
    margin-top: 18px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
@media (max-width: 1180px) {
    .nm-users-grid,
    .nm-profile-grid {
        grid-template-columns: 1fr;
    }
    .nm-user-form-card {
        grid-template-columns: 1fr;
    }
    .nm-user-actions {
        grid-column: 1;
        grid-row: auto;
        border-left: 0;
        border-top: 1px solid #edf1f7;
        padding-left: 0;
        padding-top: 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nm-user-form-grid,
    .nm-user-stats,
    .nm-user-module-picker,
    .nm-permission-button-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .nm-users-head,
    .nm-user-card-title {
        align-items: stretch;
        flex-direction: column;
    }
    .nm-user-primary,
    .nm-user-save,
    .nm-user-secondary,
    .nm-user-search {
        width: 100%;
    }
    .nm-user-form-grid,
    .nm-user-stats,
    .nm-password-tools,
    .nm-user-security-grid,
    .nm-user-module-picker,
    .nm-permission-button-grid {
        grid-template-columns: 1fr;
    }
    .nm-users-title-wrap > div,
    .nm-user-table-tools,
    .nm-user-modal-panel header,
    .nm-user-modal-panel footer {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Admin topbar actions */
.admin-top-actions .nm-top-dropdown,
.admin-top-actions .nm-profile-dropdown {
    position: relative;
}

.admin-top-actions .nm-top-icon,
.admin-top-actions a.nm-top-icon {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: rgba(255,255,255,.84);
    color: var(--primary-dark);
    display: inline-grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(16,24,40,.06);
    font-weight: 900;
}

.admin-top-actions .nm-top-icon strong {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #f04438;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .65rem;
}

.admin-top-actions .nm-admin-profile {
    width: auto;
    height: auto;
    min-height: 46px;
    border: 1px solid #e4e7ec;
    border-radius: 0;
    background: rgba(255,255,255,.84);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 4px 10px 4px 8px;
    max-width: 230px;
    color: var(--text);
    text-align: left;
    box-shadow: 0 10px 24px rgba(16,24,40,.06);
}

.admin-top-actions .nm-admin-profile::after {
    display: none;
}

.nm-admin-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
    min-width: 270px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(16,24,40,.16);
    padding: 8px;
}

.nm-admin-dropdown.show {
    display: block;
}

.nm-admin-dropdown .dropdown-header {
    color: #667085;
    font-weight: 900;
    padding: 8px 10px;
}

.nm-admin-dropdown .dropdown-item {
    min-height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #101828;
    font-weight: 800;
}

.nm-admin-dropdown .dropdown-item i {
    width: 18px;
    color: #155eef;
    text-align: center;
}

.nm-admin-dropdown .dropdown-item:hover {
    background: #eef4ff;
    color: #0b47d9;
}

.nm-admin-dropdown .dropdown-item.text-danger,
.nm-admin-dropdown .dropdown-item.text-danger i {
    color: #d92d20 !important;
}

@media (max-width: 700px) {
    .admin-top-actions .nm-admin-profile {
        display: none;
    }
    .nm-admin-dropdown {
        min-width: 235px;
    }
}

/* Enterprise users screen - reference driven override */
.nm-users-enterprise {
    --user-blue: #1F5EFF;
    --user-dark: #071B34;
    --user-yellow: #FFC107;
    --user-bg: #F7F9FC;
    --user-border: #DCE5F2;
    --user-muted: #667085;
    display: grid;
    gap: 22px;
    color: var(--user-dark);
}

.admin-main:has(.nm-users-enterprise) {
    background: var(--user-bg);
}

.nm-users-enterprise-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 0;
}

.nm-users-enterprise .nm-users-title-wrap nav {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #667085;
    font-weight: 850;
    margin-bottom: 10px;
}

.nm-users-enterprise .nm-users-title-wrap nav strong {
    color: var(--user-blue);
}

.nm-users-enterprise .nm-users-title-wrap > div {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nm-users-enterprise .nm-users-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--user-blue);
    background: #EAF1FF;
    font-size: 1.55rem;
}

.nm-users-enterprise h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 950;
    letter-spacing: 0;
}

.nm-users-enterprise p {
    margin: 4px 0 0;
    color: var(--user-muted);
    font-weight: 700;
}

.nm-users-workspace {
    display: grid;
    grid-template-columns: minmax(560px, 1.6fr) minmax(310px, .7fr) minmax(230px, .42fr);
    gap: 20px;
    align-items: start;
}

.nm-users-enterprise .nm-user-card {
    border: 1px solid #E4EAF3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .07);
}

.nm-users-enterprise .nm-user-form-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
}

.nm-users-enterprise .nm-user-card-title {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.nm-users-enterprise .nm-user-card-title h2,
.nm-users-enterprise .nm-side-title h2,
.nm-users-enterprise .nm-info-card h2 {
    margin: 0;
    color: var(--user-dark);
    font-size: 1.2rem;
    font-weight: 950;
}

.nm-users-enterprise .nm-user-card-title > strong {
    min-width: 58px;
    text-align: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: #EDF4FF;
    color: var(--user-blue);
    font-weight: 950;
}

.nm-users-enterprise .nm-user-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 16px;
}

.nm-users-enterprise .nm-user-form-grid label,
.nm-users-enterprise .nm-user-search {
    position: relative;
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 900;
}

.nm-users-enterprise .nm-user-form-grid label > span {
    font-size: .83rem;
}

.nm-users-enterprise .nm-user-form-grid label.required > span::after {
    content: " *";
    color: #F04438;
}

.nm-users-enterprise .nm-user-form-grid label > i,
.nm-users-enterprise .nm-user-search > i {
    position: absolute;
    left: 15px;
    top: 43px;
    color: #7890AD;
    z-index: 1;
}

.nm-users-enterprise .nm-user-form-grid input,
.nm-users-enterprise .nm-user-form-grid select,
.nm-users-enterprise .nm-user-form-grid textarea,
.nm-users-enterprise .nm-user-search input,
.nm-users-enterprise .nm-user-table-tools select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #CFDAEA;
    border-radius: 10px;
    background: #FBFDFF;
    color: #071B34;
    outline: 0;
    padding: 0 14px 0 44px;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.nm-users-enterprise .nm-user-form-grid textarea {
    min-height: 48px;
    resize: vertical;
    padding-top: 13px;
}

.nm-users-enterprise .nm-user-form-grid input:focus,
.nm-users-enterprise .nm-user-form-grid select:focus,
.nm-users-enterprise .nm-user-form-grid textarea:focus,
.nm-users-enterprise .nm-user-search input:focus,
.nm-users-enterprise .nm-user-table-tools select:focus {
    border-color: var(--user-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(31, 94, 255, .10);
}

.nm-users-enterprise .nm-user-form-grid label > button {
    position: absolute;
    right: 10px;
    top: 34px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #667085;
}

.nm-users-enterprise .nm-user-form-grid label:has(> button) input {
    padding-right: 44px;
}

.nm-users-enterprise .nm-user-switch {
    min-height: 48px;
    align-self: end;
    border: 1px solid #CFDAEA;
    border-radius: 10px;
    background: #FBFDFF;
    padding: 9px 14px;
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.nm-users-enterprise .nm-user-switch input {
    display: none;
}

.nm-users-enterprise .nm-user-switch i {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #D0D5DD;
    position: relative;
}

.nm-users-enterprise .nm-user-switch i::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(16,24,40,.22);
    transition: transform .25s ease;
}

.nm-users-enterprise .nm-user-switch input:checked + i {
    background: var(--user-blue);
}

.nm-users-enterprise .nm-user-switch input:checked + i::after {
    transform: translateX(18px);
}

.nm-users-enterprise .nm-user-switch span {
    color: var(--user-dark);
    font-weight: 950;
}

.nm-users-enterprise .nm-user-switch small {
    display: block;
    color: var(--user-muted);
    font-weight: 700;
    font-size: .74rem;
}

.nm-users-enterprise .nm-password-tools {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
    gap: 16px;
}

.nm-users-enterprise .nm-password-tools div {
    display: grid;
    gap: 7px;
}

.nm-users-enterprise .nm-password-tools span,
.nm-users-enterprise .nm-user-section-label strong {
    color: #344054;
    font-weight: 950;
    font-size: .83rem;
}

.nm-users-enterprise .nm-password-tools strong {
    color: #F04438;
    font-size: .8rem;
}

.nm-users-enterprise .nm-password-tools i {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #F04438 0 33%, #FFC107 33% 66%, #12B76A 66%);
    overflow: hidden;
}

.nm-users-enterprise .nm-password-tools b {
    display: block;
    width: 0;
    height: 100%;
    background: #F04438;
    transition: width .25s ease, background .25s ease;
}

.nm-users-enterprise .nm-password-tools b.medium { background: #FFC107; }
.nm-users-enterprise .nm-password-tools b.strong { background: #12B76A; }
.nm-users-enterprise .nm-password-tools em {
    display: flex;
    justify-content: space-between;
    color: #667085;
    font-style: normal;
    font-weight: 850;
}

.nm-users-enterprise .nm-user-section-label {
    display: grid;
    gap: 3px;
}

.nm-users-enterprise .nm-user-section-label span {
    color: var(--user-muted);
    font-size: .82rem;
    font-weight: 750;
}

.nm-users-enterprise .nm-user-module-picker {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.nm-users-enterprise .nm-user-module-picker button {
    min-height: 44px;
    border: 1px solid #AFC6FF;
    border-radius: 8px;
    background: #fff;
    color: var(--user-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 950;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.nm-users-enterprise .nm-user-module-picker button:hover,
.nm-users-enterprise .nm-user-module-picker button.active {
    background: var(--user-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(31, 94, 255, .20);
}

.nm-users-enterprise .nm-user-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0;
    border: 0;
}

.nm-users-enterprise .nm-user-primary,
.nm-users-enterprise .nm-user-save,
.nm-users-enterprise .nm-user-secondary,
.nm-users-enterprise .nm-user-filter-button {
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid #CFDAEA;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    font-weight: 950;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.nm-users-enterprise .nm-user-primary,
.nm-users-enterprise .nm-user-save {
    border-color: var(--user-blue);
    background: var(--user-blue);
    color: #fff;
    box-shadow: 0 12px 26px rgba(31, 94, 255, .22);
}

.nm-users-enterprise .nm-user-secondary,
.nm-users-enterprise .nm-user-filter-button {
    background: #fff;
    color: var(--user-dark);
}

.nm-users-enterprise .nm-user-primary:hover,
.nm-users-enterprise .nm-user-save:not(:disabled):hover,
.nm-users-enterprise .nm-user-secondary:hover,
.nm-users-enterprise .nm-user-filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(16, 24, 40, .12);
}

.nm-users-enterprise .nm-profile-guide,
.nm-users-enterprise .nm-security-card,
.nm-users-enterprise .nm-info-card {
    padding: 20px;
}

.nm-users-enterprise .nm-profile-guide {
    display: grid;
    gap: 13px;
}

.nm-users-enterprise .nm-side-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 4px;
}

.nm-users-enterprise .nm-side-title > i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #EDF4FF;
    color: var(--user-blue);
    display: grid;
    place-items: center;
}

.nm-users-enterprise .nm-recommended-role {
    min-height: 72px;
    border: 1px solid #EDF1F7;
    border-radius: 12px;
    background: #F8FBFF;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.nm-users-enterprise .nm-recommended-role:hover {
    transform: translateY(-2px);
    border-color: #C9D9FF;
    box-shadow: 0 14px 26px rgba(16,24,40,.08);
}

.nm-users-enterprise .nm-recommended-role > i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--user-blue);
    background: #EAF1FF;
}

.nm-users-enterprise .nm-recommended-role.role-supervisor > i,
.nm-users-enterprise .nm-recommended-role.role-operator > i { background: #F4EBFF; color: #7F56D9; }
.nm-users-enterprise .nm-recommended-role.role-warehouse > i { background: #FFF4E5; color: #F79009; }
.nm-users-enterprise .nm-recommended-role.role-sales > i { background: #E0F7FA; color: #0891B2; }
.nm-users-enterprise .nm-recommended-role.role-viewer > i { background: #F2F4F7; color: #475467; }

.nm-users-enterprise .nm-recommended-role strong {
    display: block;
    color: var(--user-dark);
    font-weight: 950;
}

.nm-users-enterprise .nm-recommended-role p {
    margin: 2px 0 0;
    font-size: .76rem;
    line-height: 1.35;
}

.nm-users-enterprise .nm-recommended-role button {
    min-height: 36px;
    border: 1px solid #AFC6FF;
    border-radius: 8px;
    background: #fff;
    color: var(--user-blue);
    padding: 0 12px;
    font-weight: 950;
}

.nm-users-info-column {
    display: grid;
    gap: 20px;
}

.nm-security-card ul {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 20px;
}

.nm-security-card li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
}

.nm-security-card li > i {
    color: var(--user-dark);
    margin-top: 2px;
}

.nm-security-card strong,
.nm-info-card dt {
    color: var(--user-dark);
    font-weight: 950;
}

.nm-security-card small {
    display: block;
    color: #45607E;
    font-weight: 750;
    font-size: .74rem;
    margin-top: 3px;
}

.nm-info-card dl {
    display: grid;
    gap: 17px;
    margin: 18px 0 0;
}

.nm-info-card dt {
    margin-bottom: 5px;
}

.nm-info-card dd {
    margin: 0 0 5px;
    color: #344054;
    font-weight: 750;
}

.nm-info-card dd i {
    color: #12B76A;
    margin-right: 6px;
}

.nm-users-enterprise .nm-users-table-card {
    padding: 20px;
}

.nm-users-enterprise .nm-user-table-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.nm-users-enterprise .nm-user-table-tools .nm-user-search {
    min-width: min(360px, 100%);
}

.nm-users-enterprise .nm-user-table-tools .nm-user-search > i {
    top: 15px;
}

.nm-users-enterprise .nm-user-table-tools select {
    width: 190px;
    padding-left: 14px;
    font-weight: 850;
}

.nm-users-enterprise .nm-user-table {
    width: 100%;
    display: grid;
    margin-top: 18px;
    border: 1px solid #E4EAF3;
    border-radius: 14px;
    overflow: hidden;
}

.nm-users-enterprise .nm-user-row {
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(180px, 1.15fr) minmax(230px, 1.15fr) 150px 120px 150px 170px 188px;
    gap: 14px;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid #EEF2F7;
    background: #fff;
    transition: background .25s ease;
}

.nm-users-enterprise .nm-user-row:hover {
    background: #F8FBFF;
}

.nm-users-enterprise .nm-user-row.head {
    min-height: 52px;
    background: #F8FAFD;
    color: #344054;
    font-size: .78rem;
    font-weight: 950;
}

.nm-users-enterprise .nm-user-row:last-child {
    border-bottom: 0;
}

.nm-users-enterprise .nm-user-person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.nm-users-enterprise .nm-user-person b {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #EAF1FF;
    color: var(--user-blue);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.nm-users-enterprise .nm-user-row strong,
.nm-users-enterprise .nm-user-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nm-users-enterprise .nm-user-row small {
    display: block;
    color: var(--user-muted);
}

.nm-users-enterprise .nm-role-badge,
.nm-users-enterprise .nm-status-badge {
    min-height: 26px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-style: normal;
    font-weight: 950;
    font-size: .78rem;
}

.nm-users-enterprise .nm-status-badge.active { background: #E7F8EF; color: #079455; }
.nm-users-enterprise .nm-status-badge.inactive { background: #FFF1F3; color: #F04438; }

.nm-users-enterprise .nm-user-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.nm-users-enterprise .nm-user-row-actions form {
    margin: 0;
}

.nm-users-enterprise .nm-user-row-actions button {
    width: 34px;
    height: 34px;
    border: 1px solid #CFE0FF;
    border-radius: 8px;
    background: #fff;
    color: var(--user-blue);
    display: grid;
    place-items: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.nm-users-enterprise .nm-user-row-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(16,24,40,.10);
}

.nm-users-enterprise .nm-user-row-actions .danger {
    border-color: #FFD0D6;
    color: #F04438;
}

.nm-user-table-footer {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    color: #667085;
    font-weight: 850;
}

.nm-user-table-footer nav {
    display: flex;
    gap: 8px;
}

.nm-user-table-footer button,
.nm-user-table-footer select {
    min-width: 38px;
    height: 38px;
    border: 1px solid #CFDAEA;
    border-radius: 8px;
    background: #fff;
    color: var(--user-dark);
    font-weight: 950;
}

.nm-user-table-footer button.active {
    background: var(--user-blue);
    border-color: var(--user-blue);
    color: #fff;
}

.nm-user-table-footer select {
    min-width: 132px;
    padding: 0 10px;
}

.nm-users-enterprise .nm-role-permissions-card {
    padding: 20px;
}

@media (max-width: 1500px) {
    .nm-users-workspace {
        grid-template-columns: minmax(0, 1fr) minmax(280px, .45fr);
    }
    .nm-users-info-column {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nm-users-enterprise .nm-user-row {
        grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) 140px 115px 140px 150px 178px;
    }
}

@media (max-width: 1100px) {
    .nm-users-workspace,
    .nm-users-info-column {
        grid-template-columns: 1fr;
    }
    .nm-users-enterprise .nm-user-form-grid,
    .nm-users-enterprise .nm-user-module-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nm-users-enterprise .nm-user-table {
        border: 0;
        gap: 12px;
        overflow: visible;
    }
    .nm-users-enterprise .nm-user-row.head {
        display: none;
    }
    .nm-users-enterprise .nm-user-row {
        grid-template-columns: 1fr 1fr;
        min-height: auto;
        border: 1px solid #E4EAF3;
        border-radius: 14px;
        padding: 16px;
    }
    .nm-users-enterprise .nm-user-row-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .nm-users-enterprise-head,
    .nm-users-enterprise .nm-user-card-title,
    .nm-user-table-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .nm-users-enterprise .nm-users-title-wrap > div {
        align-items: flex-start;
    }
    .nm-users-enterprise .nm-user-form-grid,
    .nm-users-enterprise .nm-user-module-picker,
    .nm-users-enterprise .nm-password-tools,
    .nm-users-enterprise .nm-user-row {
        grid-template-columns: 1fr;
    }
    .nm-users-enterprise .nm-user-primary,
    .nm-users-enterprise .nm-user-save,
    .nm-users-enterprise .nm-user-secondary,
    .nm-users-enterprise .nm-user-table-tools,
    .nm-users-enterprise .nm-user-table-tools select,
    .nm-users-enterprise .nm-user-table-tools .nm-user-search {
        width: 100%;
    }
}

/* Users spacing correction: cancel older compact action-rail rules */
.nm-users-page.nm-users-enterprise .nm-user-form-card {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start;
}

.nm-users-page.nm-users-enterprise .nm-user-form-card .nm-user-card-title,
.nm-users-page.nm-users-enterprise .nm-user-form-grid,
.nm-users-page.nm-users-enterprise .nm-password-tools,
.nm-users-page.nm-users-enterprise .nm-user-section-label,
.nm-users-page.nm-users-enterprise .nm-user-module-picker,
.nm-users-page.nm-users-enterprise .nm-user-actions {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
}

.nm-users-page.nm-users-enterprise .nm-user-form-grid label,
.nm-users-page.nm-users-enterprise .nm-user-form-grid .nm-user-switch,
.nm-users-page.nm-users-enterprise .nm-user-form-grid label:nth-of-type(1),
.nm-users-page.nm-users-enterprise .nm-user-form-grid label:nth-of-type(2),
.nm-users-page.nm-users-enterprise .nm-user-form-grid label:nth-of-type(3),
.nm-users-page.nm-users-enterprise .nm-user-form-grid label:nth-of-type(4),
.nm-users-page.nm-users-enterprise .nm-user-form-grid label:nth-of-type(5),
.nm-users-page.nm-users-enterprise .nm-user-form-grid label:nth-of-type(6),
.nm-users-page.nm-users-enterprise .nm-user-form-grid label:nth-of-type(7),
.nm-users-page.nm-users-enterprise .nm-user-form-grid label:nth-of-type(8),
.nm-users-page.nm-users-enterprise .nm-user-form-grid label:nth-of-type(9) {
    grid-column: auto !important;
    grid-row: auto !important;
}

.nm-users-page.nm-users-enterprise .nm-user-actions {
    border-left: 0 !important;
    border-top: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
}

.nm-users-page.nm-users-enterprise .nm-user-actions .nm-user-save,
.nm-users-page.nm-users-enterprise .nm-user-actions .nm-user-secondary {
    width: auto !important;
    min-width: 148px;
}

.nm-users-page.nm-users-enterprise .nm-users-workspace {
    grid-template-columns: minmax(650px, 1.58fr) minmax(300px, .66fr) minmax(230px, .42fr);
}

.nm-users-page.nm-users-enterprise .nm-user-form-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
}

.nm-users-page.nm-users-enterprise .nm-user-module-picker {
    grid-template-columns: repeat(5, minmax(118px, 1fr)) !important;
}

.nm-users-page.nm-users-enterprise .nm-role-permissions-card {
    margin-top: -8px;
}

@media (max-width: 1500px) {
    .nm-users-page.nm-users-enterprise .nm-users-workspace {
        grid-template-columns: minmax(0, 1fr) minmax(300px, .48fr);
    }
}

@media (max-width: 1100px) {
    .nm-users-page.nm-users-enterprise .nm-user-form-grid,
    .nm-users-page.nm-users-enterprise .nm-user-module-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 720px) {
    .nm-users-page.nm-users-enterprise .nm-user-form-grid,
    .nm-users-page.nm-users-enterprise .nm-user-module-picker {
        grid-template-columns: 1fr !important;
    }
    .nm-users-page.nm-users-enterprise .nm-user-actions .nm-user-save,
    .nm-users-page.nm-users-enterprise .nm-user-actions .nm-user-secondary {
        width: 100% !important;
    }
}

/* CRM customers module */
.nm-crm-page {
    --crm-dark: #071B34;
    --crm-blue: #1F5EFF;
    --crm-yellow: #FFC107;
    --crm-bg: #F7F9FC;
    --crm-border: #DCE5F2;
    --crm-muted: #667085;
    display: grid;
    gap: 22px;
    color: var(--crm-dark);
}
.admin-main:has(.nm-crm-page) { background: var(--crm-bg); }
.nm-crm-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
}
.nm-crm-head nav {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--crm-muted);
    font-weight: 850;
    margin-bottom: 14px;
}
.nm-crm-head nav strong { color: var(--crm-blue); }
.nm-crm-title {
    display: flex;
    align-items: center;
    gap: 18px;
}
.nm-crm-title > span {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #EAF1FF;
    color: var(--crm-blue);
    font-size: 1.55rem;
}
.nm-crm-title h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 950;
}
.nm-crm-title p,
.nm-crm-card-title p,
.nm-crm-list-head p {
    margin: 4px 0 0;
    color: var(--crm-muted);
    font-weight: 700;
}
.nm-crm-card {
    border: 1px solid #E4EAF3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(16,24,40,.07);
}
.nm-crm-editor-card,
.nm-crm-list-card {
    padding: 22px;
}
.nm-crm-card-title,
.nm-crm-list-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}
.nm-crm-card-title h2,
.nm-crm-list-head h2 {
    margin: 0;
    color: var(--crm-dark);
    font-size: 1.25rem;
    font-weight: 950;
}
.nm-crm-card-title > strong {
    border-radius: 999px;
    padding: 7px 12px;
    background: #EDF4FF;
    color: var(--crm-blue);
    font-weight: 950;
}
.nm-crm-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.nm-crm-form label,
.nm-crm-search {
    position: relative;
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 900;
}
.nm-crm-form label > span { font-size: .83rem; }
.nm-crm-form label.required > span::after { content: " *"; color: #F04438; }
.nm-crm-form label > i,
.nm-crm-search > i {
    position: absolute;
    left: 15px;
    top: 43px;
    color: #7890AD;
    z-index: 1;
}
.nm-crm-form input,
.nm-crm-form select,
.nm-crm-form textarea,
.nm-crm-search input,
.nm-crm-tools select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #CFDAEA;
    border-radius: 10px;
    background: #FBFDFF;
    color: var(--crm-dark);
    outline: 0;
    padding: 0 14px 0 44px;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nm-crm-form textarea {
    min-height: 92px;
    resize: vertical;
    padding-top: 13px;
}
.nm-crm-form input:focus,
.nm-crm-form select:focus,
.nm-crm-form textarea:focus,
.nm-crm-search input:focus,
.nm-crm-tools select:focus {
    border-color: var(--crm-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(31,94,255,.10);
}
.nm-crm-form .wide { grid-column: span 2; }
.nm-crm-status {
    min-height: 48px;
    align-self: end;
    border: 1px solid #CFDAEA;
    border-radius: 10px;
    background: #FBFDFF;
    padding: 9px 14px;
    display: flex !important;
    align-items: center;
    gap: 10px;
}
.nm-crm-status input { display: none; }
.nm-crm-status i {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #D0D5DD;
    position: relative;
}
.nm-crm-status i::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(16,24,40,.22);
    transition: transform .25s ease;
}
.nm-crm-status input:checked + i { background: var(--crm-blue); }
.nm-crm-status input:checked + i::after { transform: translateX(18px); }
.nm-crm-form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.nm-crm-primary,
.nm-crm-save,
.nm-crm-secondary,
.nm-crm-actions button,
.nm-crm-actions a,
.nm-crm-pagination button,
.nm-crm-pagination select {
    min-height: 42px;
    border: 1px solid #CFDAEA;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    font-weight: 950;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.nm-crm-primary,
.nm-crm-save {
    border-color: var(--crm-blue);
    background: var(--crm-blue);
    color: #fff;
    box-shadow: 0 12px 26px rgba(31,94,255,.22);
}
.nm-crm-secondary {
    background: #fff;
    color: var(--crm-dark);
}
.nm-crm-primary:hover,
.nm-crm-save:hover,
.nm-crm-secondary:hover,
.nm-crm-actions button:hover,
.nm-crm-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(16,24,40,.12);
}
.nm-crm-tools {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.nm-crm-search { min-width: min(340px, 100%); }
.nm-crm-search > i { top: 15px; }
.nm-crm-tools select {
    width: 160px;
    padding-left: 14px;
    font-weight: 850;
}
.nm-crm-import {
    cursor: pointer;
}
.nm-crm-import input { display: none; }
.nm-crm-table {
    display: grid;
    margin-top: 18px;
    border: 1px solid #E4EAF3;
    border-radius: 14px;
    overflow: hidden;
}
.nm-crm-row {
    min-height: 72px;
    display: grid;
    grid-template-columns: 58px minmax(190px, 1fr) 120px 145px 82px minmax(190px, 1fr) 150px 120px 105px 120px 256px;
    gap: 14px;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid #EEF2F7;
    background: #fff;
    transition: background .25s ease;
}
.nm-crm-row:hover { background: #F8FBFF; }
.nm-crm-row.head {
    min-height: 52px;
    background: #F8FAFD;
    color: #344054;
    font-size: .78rem;
    font-weight: 950;
}
.nm-crm-row:last-child { border-bottom: 0; }
.nm-crm-row span,
.nm-crm-client strong,
.nm-crm-client small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nm-crm-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #EAF1FF;
    color: var(--crm-blue);
    display: grid;
    place-items: center;
    font-weight: 950;
}
.nm-crm-client strong {
    display: block;
    color: var(--crm-dark);
    font-weight: 950;
}
.nm-crm-client small {
    display: block;
    color: var(--crm-muted);
    font-weight: 700;
}
.nm-crm-wa { color: #12B76A; font-size: 1.05rem; }
.nm-crm-badge {
    min-height: 26px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    font-style: normal;
    font-weight: 950;
}
.nm-crm-badge.activo { background: #E7F8EF; color: #079455; }
.nm-crm-badge.inactivo { background: #F2F4F7; color: #667085; }
.nm-crm-actions {
    display: flex;
    gap: 7px;
    align-items: center;
}
.nm-crm-actions form { margin: 0; }
.nm-crm-actions button,
.nm-crm-actions a {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    background: #fff;
    color: var(--crm-blue);
    border-color: #CFE0FF;
}
.nm-crm-actions .danger {
    border-color: #FFD0D6;
    color: #F04438;
}
.nm-crm-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    color: var(--crm-muted);
    font-weight: 850;
}
.nm-crm-pagination nav {
    display: flex;
    gap: 8px;
}
.nm-crm-pagination button,
.nm-crm-pagination select {
    background: #fff;
    color: var(--crm-dark);
}
.nm-crm-pagination button.active {
    background: var(--crm-blue);
    border-color: var(--crm-blue);
    color: #fff;
}
.nm-crm-drawer[hidden] { display: none; }
.nm-crm-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
}
.nm-crm-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7,27,52,.36);
    backdrop-filter: blur(7px);
}
.nm-crm-drawer-panel {
    position: absolute;
    right: 0;
    top: 0;
    width: min(520px, 100%);
    height: 100%;
    overflow: auto;
    background: #fff;
    box-shadow: -24px 0 60px rgba(7,27,52,.22);
    padding: 24px;
    animation: nmSlideInRight .25s ease both;
}
@keyframes nmSlideInRight {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}
.nm-crm-drawer-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid #DCE5F2;
    border-radius: 10px;
    background: #fff;
}
.nm-crm-drawer-panel header {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-right: 44px;
}
.nm-crm-drawer-panel header > span {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #EAF1FF;
    color: var(--crm-blue);
    font-size: 1.25rem;
    font-weight: 950;
}
.nm-crm-drawer-panel h2 { margin: 0; font-weight: 950; }
.nm-crm-drawer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0;
}
.nm-crm-drawer-actions button,
.nm-crm-drawer-actions a {
    min-height: 42px;
    border: 1px solid #CFE0FF;
    border-radius: 10px;
    background: #fff;
    color: var(--crm-blue);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: 950;
}
.nm-crm-drawer-panel dl {
    display: grid;
    gap: 14px;
}
.nm-crm-drawer-panel dt {
    color: var(--crm-muted);
    font-weight: 850;
}
.nm-crm-drawer-panel dd {
    margin: 3px 0 0;
    color: var(--crm-dark);
    font-weight: 850;
}
@media (max-width: 1500px) {
    .nm-crm-row {
        grid-template-columns: 54px minmax(180px, 1fr) 120px 140px 70px minmax(180px, 1fr) 120px 110px 95px 110px 220px;
    }
}
@media (max-width: 1200px) {
    .nm-crm-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nm-crm-table {
        border: 0;
        overflow: visible;
        gap: 12px;
    }
    .nm-crm-row.head { display: none; }
    .nm-crm-row {
        grid-template-columns: 54px 1fr 1fr;
        min-height: auto;
        border: 1px solid #E4EAF3;
        border-radius: 14px;
        padding: 16px;
    }
    .nm-crm-actions { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .nm-crm-head,
    .nm-crm-card-title,
    .nm-crm-list-head,
    .nm-crm-pagination {
        align-items: stretch;
        flex-direction: column;
    }
    .nm-crm-title { align-items: flex-start; }
    .nm-crm-form,
    .nm-crm-row,
    .nm-crm-drawer-actions {
        grid-template-columns: 1fr;
    }
    .nm-crm-form .wide { grid-column: auto; }
    .nm-crm-primary,
    .nm-crm-save,
    .nm-crm-secondary,
    .nm-crm-tools,
    .nm-crm-tools select,
    .nm-crm-search {
        width: 100%;
    }
}

.nm-dynamic-admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.nm-dynamic-admin-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    padding: 4px;
}
.nm-dynamic-admin-brand span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-weight: 950;
}
.brand span b {
    overflow-wrap: anywhere;
}
.brand span small {
    display: block;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
