:root {
  --primary: #0d8fe8;
  --primary-dark: #076db4;
  --light-bg: #f5f7fb;
  --text: #27364a;
  --muted: #6c7a8c;
  --line: #e5edf5;
  --success: #19a86b;
  --danger: #e54848;
  --warning: #f6a623;
  --card-shadow: 0 8px 24px rgba(15, 45, 77, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8fafc;
  color: var(--text);
  font-family:
    "Microsoft YaHei", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

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

.d-none {
  display: none;
}

.w-100 {
  width: 100%;
}

.mb-2 {
  margin-bottom: 8px;
}

.mx-auto {
  margin-right: auto;
  margin-left: auto;
}

.bg-light {
  background: #fff;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 2px 12px rgba(16, 39, 68, 0.05);
}

.navbar {
  min-height: 72px;
}

.header-container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.navbar-brand.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.navbar-brand.logo img {
  width: 166px;
  height: auto;
  object-fit: contain;
}

.search-container {
  flex: 1 1 360px;
  max-width: 430px;
}

.position-relative {
  position: relative;
}

.form-control {
  display: block;
  width: 100%;
  height: 42px;
  padding: 10px 42px 10px 16px;
  border: 1px solid #d8e3ee;
  border-radius: 999px;
  color: var(--text);
  background: #f7fbff;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 143, 232, 0.12);
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #8292a6;
  font-size: 18px;
  line-height: 1;
}

.navbar-collapse {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #31445c;
  font-weight: 600;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background: #edf7ff;
}

.navbar-toggler,
.menu-button {
  display: none;
  width: 42px;
  height: 38px;
  margin-left: auto;
  border: 1px solid #d8e3ee;
  border-radius: 6px;
  background: #fff;
}

.navbar-toggler span,
.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #4d5f73;
}

.main-content {
  overflow: hidden;
}

.hero-section {
  padding: 78px 0 66px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #0e97ed 0%, #0872c7 100%);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
}

.hero-subtitle {
  max-width: 850px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.products-section,
.notice-section,
.account-types-section,
.advantages-section,
.process-section,
.blog-section,
.contact-section {
  padding: 58px 0;
}

.products-section {
  background:
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.notice-section,
.advantages-section,
.blog-section {
  background: #f5f8fb;
}

.account-types-section,
.process-section,
.contact-section {
  background: #fff;
}

.section-title {
  position: relative;
  margin: 0 0 34px;
  color: #1f3147;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
}

.section-title::after {
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: var(--primary);
  content: "";
}

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

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfeaf5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(24, 57, 91, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #1593e6, #52b8ff);
  content: "";
  opacity: 0;
  transition: opacity 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 143, 232, 0.34);
  box-shadow: 0 20px 44px rgba(15, 45, 77, 0.14);
}

.product-card:hover::before {
  opacity: 1;
}

.product-list-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 17px;
  align-items: stretch;
  min-height: 118px;
  padding: 18px 20px;
}

.product-list-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-list-image img {
  width: 82px;
  height: 82px;
  padding: 10px;
  border: 1px solid #d9efff;
  border-radius: 14px;
  background: #eef8ff;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.product-list-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.product-list-header {
  display: grid;
  gap: 7px;
}

.product-list-title {
  display: -webkit-box;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: #203246;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-list-title-link:hover {
  color: var(--primary);
}

.product-tag {
  justify-self: start;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid rgba(13, 143, 232, 0.18);
  border-radius: 999px;
  color: #0b78c7;
  background: #edf8ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.product-tag.muted-tag {
  color: #996a00;
  border-color: rgba(246, 166, 35, 0.24);
  background: #fff6df;
}

.product-list-desc {
  display: none;
}

.product-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
}

.product-list-price {
  color: var(--danger);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.product-list-sales {
  color: #7b8998;
  font-size: 14px;
  font-weight: 700;
}

.product-list-stock {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.product-list-stock.in-stock {
  color: #0e8051;
  background: #e8f8f1;
}

.product-list-stock.out-stock {
  color: #975800;
  background: #fff3d8;
}

.product-list-action {
  margin-left: auto;
}

.btn-buy-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 36px;
  padding: 7px 16px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #1593e6, #0878ca);
  box-shadow: 0 8px 18px rgba(13, 143, 232, 0.24);
  font-size: 14px;
  font-weight: 800;
}

.btn-buy-now:hover {
  background: linear-gradient(135deg, #0878ca, #0668b0);
}

.notice-box {
  padding: 22px 24px;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  color: #41546c;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.notice-box p {
  margin: 0;
}

.types-grid,
.advantages-grid,
.blog-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

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

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

.type-card,
.advantage-card,
.blog-card,
.contact-item {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.type-card h3,
.advantage-card h3,
.blog-card h3,
.contact-info h3 {
  margin: 0 0 10px;
  color: #1f3147;
  font-size: 19px;
}

.type-card p,
.advantage-card p,
.blog-card p,
.contact-info p {
  margin: 0;
  color: var(--muted);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.process-card {
  position: relative;
  padding: 26px 16px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.process-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
}

.process-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.blog-card {
  display: block;
  min-height: 150px;
}

.blog-card:hover h3 {
  color: var(--primary);
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 24px;
}

.footer {
  padding: 34px 0;
  color: #dce8f5;
  background: #223245;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.footer .fw-bold {
  margin: 0 0 10px;
  color: #fff;
  font-weight: 800;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 7px;
}

.footer a {
  color: #c8d8e8;
}

.footer a:hover {
  color: #fff;
}

.footer-copyright p {
  margin-top: 0;
}

.page-hero {
  padding: 52px 0;
  color: #fff;
  background: linear-gradient(135deg, #0e97ed, #0872c7);
}

.page-hero-inner {
  width: min(1140px, calc(100% - 30px));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 46px);
}

.page-hero .lead,
.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a {
  color: #fff;
  font-weight: 700;
}

.section,
.content-layout {
  width: min(1140px, calc(100% - 30px));
  margin: 0 auto;
  padding: 54px 0;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.query-card,
.side-card,
.article-body,
.legal-body,
.product-detail {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: #344863;
  font-weight: 700;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.btn,
.btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
}

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

.breadcrumb-nav {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #718198;
  list-style: none;
  font-size: 14px;
}

.breadcrumb-item a {
  color: var(--primary);
  font-weight: 700;
}

.breadcrumb-item + .breadcrumb-item::before {
  margin-right: 8px;
  color: #a1adba;
  content: "/";
}

.product-detail-section {
  padding: 34px 0 56px;
  background: #f5f8fb;
}

.unified-product-card,
.product-detail-content {
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 12px rgba(15, 45, 77, 0.08);
}

.unified-product-card {
  overflow: hidden;
}

.product-three-columns {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 390px;
  min-height: 320px;
}

.product-three-columns::before,
.product-three-columns::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 1px;
  background: #e0e7ef;
  content: "";
}

.product-three-columns::before {
  left: 300px;
}

.product-three-columns::after {
  right: 390px;
}

.product-image-column,
.product-info-column,
.product-purchase-column {
  position: relative;
  z-index: 2;
}

.product-image-column {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 28px 24px;
  background:
    linear-gradient(135deg, rgba(13, 143, 232, 0.08) 0%, rgba(13, 143, 232, 0.02) 42%, rgba(232, 248, 255, 0.75) 100%),
    #f7fcff;
}

.product-media-card {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 236px;
  padding: 18px 16px 16px;
  border: 1px solid #dbeefc;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(17, 83, 132, 0.11);
}

.media-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 14px;
  color: #7a8a9c;
  font-size: 12px;
  font-weight: 800;
}

.media-topline strong {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0d8fe8;
  background: #e9f6ff;
  font-size: 12px;
}

.media-caption {
  margin-top: 13px;
  color: #20344c;
  font-size: 17px;
  font-weight: 900;
}

.media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-top: 10px;
}

.media-tags span {
  padding: 5px 8px;
  border: 1px solid #dcecf8;
  border-radius: 999px;
  color: #607188;
  background: #f7fbff;
  font-size: 12px;
  font-weight: 800;
}

.image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 164px;
  height: 164px;
  border: 1px solid #d7efff;
  border-radius: 28px;
  background: linear-gradient(180deg, #eef8ff, #e3f3ff);
  box-shadow: inset 0 0 0 14px #f7fcff;
}

.product-main-image {
  width: 106px;
  height: 106px;
  object-fit: contain;
}

.product-info-column {
  padding: 44px 30px 30px;
  background: #fff;
}

.info-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0;
}

.product-eyebrow {
  margin-bottom: 10px;
  color: #0d8fe8;
  font-size: 13px;
  font-weight: 900;
}

.product-title-compact {
  max-width: 620px;
  margin: 0 0 16px;
  color: #26384f;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.36;
}

.product-status-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.stock-badge-compact,
.sold-count-compact {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.stock-badge-compact.in-stock {
  color: #0e8051;
  background: #e8f8f1;
}

.sold-count-compact {
  color: #607188;
  background: #f3f6fa;
}

.product-features-horizontal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 600px;
  margin-bottom: 16px;
}

.feature-item-horizontal {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #e0edf8;
  border-radius: 10px;
  color: #31445c;
  background: #f8fbff;
  font-weight: 800;
  text-align: center;
}

.feature-item-horizontal i {
  color: var(--primary);
  font-style: normal;
  font-size: 22px;
}

.product-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  max-width: 590px;
  padding-top: 16px;
  border-top: 1px solid #edf2f7;
}

.product-quick-grid span {
  color: #6d7e92;
  font-size: 14px;
  line-height: 1.45;
}

.product-quick-grid strong {
  display: inline-block;
  min-width: 62px;
  margin-right: 6px;
  color: #30445c;
}

.product-specs-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  max-width: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
}

.product-specs-compact span {
  color: #6d7e92;
  font-size: 13px;
  line-height: 1.35;
}

.product-specs-compact strong {
  display: inline-block;
  margin-right: 6px;
  color: #2f435c;
}

.product-purchase-column {
  padding: 24px 16px;
  background: #fff;
}

.purchase-content,
.purchase-form {
  height: 100%;
}

.purchase-form {
  display: grid;
  align-content: start;
  gap: 10px;
}

.checkout-heading {
  display: grid;
  gap: 3px;
  margin-bottom: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e6eef6;
}

.checkout-heading strong {
  color: #1f3147;
  font-size: 18px;
  line-height: 1.2;
}

.checkout-heading span {
  color: #7a8a9c;
  font-size: 13px;
}

.form-row-compact {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.form-label-compact {
  color: #3d5067;
  font-weight: 800;
  line-height: 1.2;
}

.quantity-section-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.quantity-selector-compact {
  display: inline-grid;
  grid-template-columns: 38px 58px 38px;
  width: 134px;
  overflow: hidden;
  border: 1px solid #d9e5f1;
  border-radius: 8px;
  background: #fff;
}

.quantity-btn-compact {
  min-height: 38px;
  border: 0;
  color: #2f435c;
  background: #f2f7fc;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

.quantity-input-compact {
  width: 58px;
  min-height: 38px;
  border: 0;
  border-right: 1px solid #d9e5f1;
  border-left: 1px solid #d9e5f1;
  text-align: center;
  font-weight: 800;
  outline: none;
}

.price-section-compact {
  margin-left: auto;
}

.price-amount-compact {
  color: var(--danger);
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

.form-input-compact {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #d9e5f1;
  border-radius: 8px;
  outline: none;
}

.form-input-compact:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 143, 232, 0.12);
}

.pay-methods-compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pay-method-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 54px;
  padding: 7px 4px 6px;
  border: 1px solid #dce7f2;
  border-radius: 10px;
  color: #31445c;
  background: linear-gradient(180deg, #fff, #fbfdff);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.pay-method-item img {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 6px;
}

.pay-method-item span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-method-item:hover {
  border-color: #9fd3f5;
  box-shadow: 0 6px 14px rgba(13, 143, 232, 0.1);
  transform: translateY(-1px);
}

.pay-method-item.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #eef8ff;
  box-shadow: inset 0 0 0 1px rgba(13, 143, 232, 0.16), 0 8px 18px rgba(13, 143, 232, 0.12);
}

.btn-buy-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #1593e6, #0878ca);
  box-shadow: 0 12px 24px rgba(13, 143, 232, 0.25);
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
}

.order-query-hint {
  text-align: center;
  font-size: 14px;
}

.order-query-hint a {
  color: var(--primary);
  font-weight: 800;
}

.payment-interface-note,
.order-preview {
  display: none;
  padding: 10px 12px;
  border-radius: 8px;
  color: #52657c;
  background: #f4f8fc;
  font-size: 13px;
}

.order-preview.is-visible {
  display: grid;
  gap: 5px;
}

.order-preview strong {
  color: #178352;
}

.order-preview a {
  color: var(--primary);
  font-weight: 800;
}

.query-result-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d8e8f5;
  border-radius: 10px;
  background: #f8fbff;
}

.query-result-title {
  color: #1f3147;
  font-size: 16px;
  font-weight: 900;
}

.product-detail-content {
  margin-top: 24px;
  overflow: hidden;
}

.detail-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.detail-header h2 {
  margin: 0;
  color: #1f3147;
  font-size: 24px;
}

.detail-body {
  padding: 24px;
  color: #43566e;
}

.detail-body h2 {
  margin: 28px 0 12px;
  color: #1f3147;
  font-size: 23px;
}

.detail-body p {
  margin: 0 0 14px;
}

.detail-body li {
  margin-bottom: 8px;
}

.format-sample {
  padding: 12px 14px;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #f3f8fd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tutorial-hero {
  padding: 64px 0;
  color: #fff;
  background: linear-gradient(135deg, #0f9bed 0%, #0877ca 62%, #075ea8 100%);
}

.tutorial-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 390px;
  gap: 38px;
  align-items: center;
}

.tutorial-breadcrumb {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.tutorial-breadcrumb a {
  color: #fff;
}

.tutorial-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.tutorial-hero p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.8;
}

.tutorial-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
}

.tutorial-hero-panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 48px rgba(4, 62, 112, 0.24);
}

.hero-video-preview {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, #061d37, #0a355c);
}

.hero-video-preview img {
  width: 156px;
  height: auto;
}

.play-mark,
.video-thumb span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #0b7ed4;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  font-size: 18px;
  font-weight: 900;
}

.hero-video-preview .play-mark {
  position: absolute;
  right: 18px;
  bottom: 18px;
}

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

.hero-panel-grid span {
  padding: 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.hero-panel-grid strong {
  color: #fff;
  font-size: 22px;
}

.tutorial-section {
  padding: 56px 0;
  background: #fff;
}

.tutorial-section.muted-section {
  background: #f5f8fb;
}

.section-heading-row {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading-row.compact {
  margin-bottom: 16px;
}

.section-kicker {
  margin: 0 0 7px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.section-heading-row h2 {
  margin: 0;
  color: #1f3147;
  font-size: 30px;
  line-height: 1.2;
}

.section-link {
  color: var(--primary);
  font-weight: 900;
}

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

.video-lesson-card,
.lesson-row-card,
.sidebar-card {
  border: 1px solid #dfe8f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 45, 77, 0.07);
}

.video-lesson-card {
  overflow: hidden;
}

.video-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #edf8ff, #dff1ff);
}

.video-thumb img {
  width: 132px;
  height: auto;
}

.video-thumb span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
}

.video-card-body {
  padding: 18px;
}

.lesson-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #0b78c7;
  background: #edf8ff;
  font-size: 12px;
  font-weight: 900;
}

.video-card-body h3,
.lesson-row-card h3,
.sidebar-card h3 {
  margin: 10px 0 8px;
  color: #203246;
  line-height: 1.35;
}

.video-card-body p,
.lesson-row-card p,
.sidebar-card p,
.sidebar-card li {
  color: #607188;
  line-height: 1.65;
}

.video-card-body p,
.lesson-row-card p {
  margin: 0 0 14px;
}

.video-card-body a {
  color: var(--primary);
  font-weight: 900;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.article-lessons-list {
  display: grid;
  gap: 12px;
}

.lesson-row-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.lesson-row-card:hover h3 {
  color: var(--primary);
}

.lesson-row-card time {
  color: #75869a;
  font-weight: 800;
}

.lesson-row-card strong {
  color: var(--primary);
}

.tutorial-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}

.sidebar-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.sidebar-card h3 {
  margin: 0 0 4px;
}

.sidebar-card a:not(.btn) {
  color: #2f435c;
  font-weight: 800;
}

.sidebar-card a:not(.btn):hover {
  color: var(--primary);
}

.sidebar-card ul {
  margin: 0;
  padding-left: 18px;
}

.sidebar-card.accent {
  border-color: rgba(13, 143, 232, 0.22);
  background: linear-gradient(180deg, #fff, #f1f9ff);
}

.knowledge-page {
  background: #f5f8fb;
}

.knowledge-header {
  padding: 34px 0 28px;
  border-bottom: 1px solid #e2ebf4;
  background: #fff;
}

.knowledge-breadcrumb {
  margin: 0 0 20px;
  color: #728399;
  font-size: 14px;
  font-weight: 800;
}

.knowledge-breadcrumb a {
  color: var(--primary);
}

.knowledge-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: end;
}

.knowledge-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: #0d8fe8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.knowledge-title-block h1 {
  max-width: 760px;
  margin: 0 0 14px;
  color: #1f3147;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
}

.knowledge-title-block p {
  max-width: 760px;
  margin: 0;
  color: #5f7188;
  font-size: 17px;
  line-height: 1.8;
}

.knowledge-status-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #dfe8f2;
  border-radius: 10px;
  background: #f8fbff;
}

.knowledge-status-panel div {
  display: grid;
  gap: 4px;
  min-height: 90px;
  padding: 16px 12px;
  border-right: 1px solid #dfe8f2;
}

.knowledge-status-panel div:last-child {
  border-right: 0;
}

.knowledge-status-panel strong {
  color: #1f3147;
  font-size: 28px;
  line-height: 1;
}

.knowledge-status-panel span {
  color: #68798d;
  font-size: 13px;
  font-weight: 800;
}

.learning-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.learning-path a {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  background: #fff;
}

.learning-path a:hover {
  border-color: #9ed3f5;
  box-shadow: 0 10px 26px rgba(15, 45, 77, 0.08);
}

.learning-path span {
  color: #0d8fe8;
  font-size: 13px;
  font-weight: 900;
}

.learning-path strong {
  color: #203246;
  font-size: 17px;
}

.learning-path em {
  color: #6b7d92;
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}

.knowledge-content {
  padding: 28px 0 56px;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 22px;
  align-items: start;
}

.knowledge-main {
  display: grid;
  gap: 18px;
}

.knowledge-block,
.knowledge-side-card {
  border: 1px solid #dfe8f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 45, 77, 0.06);
}

.knowledge-block {
  padding: 22px;
}

.knowledge-section-head {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.knowledge-section-head span,
.knowledge-section-head small {
  color: #718299;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.knowledge-section-head h2 {
  margin: 5px 0 0;
  color: #203246;
  font-size: 24px;
}

.knowledge-section-head a {
  color: var(--primary);
  font-weight: 900;
}

.featured-lesson {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
}

.featured-copy {
  padding: 20px;
  border-radius: 8px;
  background: #f8fbff;
}

.featured-copy h3 {
  margin: 12px 0 10px;
  color: #1f3147;
  font-size: 26px;
  line-height: 1.28;
}

.featured-copy p {
  margin: 0;
  color: #61738a;
  line-height: 1.75;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn.ghost {
  color: var(--primary);
  background: #fff;
}

.featured-checklist {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid #dfe8f2;
  border-radius: 8px;
}

.featured-checklist strong {
  color: #203246;
  font-size: 18px;
}

.featured-checklist span {
  padding: 9px 10px;
  border-radius: 7px;
  color: #3b5069;
  background: #f3f7fb;
  font-weight: 800;
}

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

.pro-video-card {
  overflow: hidden;
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  background: #fff;
}

.pro-video-thumb {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 132px;
  padding: 14px;
  color: #fff;
  background: linear-gradient(135deg, #102033, #174e7c);
}

.pro-video-thumb span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #0b7ed4;
  background: #fff;
  font-weight: 900;
}

.pro-video-thumb strong {
  font-size: 15px;
}

.pro-video-card > div:last-child {
  padding: 15px;
}

.pro-video-card h3 {
  margin: 0 0 8px;
  color: #203246;
  font-size: 17px;
  line-height: 1.35;
}

.pro-video-card p {
  margin: 0 0 12px;
  color: #66788f;
  font-size: 14px;
  line-height: 1.6;
}

.pro-video-card a {
  color: var(--primary);
  font-weight: 900;
}

.article-table {
  display: grid;
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  overflow: hidden;
}

.article-table a {
  display: grid;
  grid-template-columns: 112px 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 14px 16px;
  border-bottom: 1px solid #dfe8f2;
  background: #fff;
}

.article-table a:last-child {
  border-bottom: 0;
}

.article-table a:hover {
  background: #f8fbff;
}

.article-table time,
.article-table span {
  color: #718299;
  font-size: 13px;
  font-weight: 800;
}

.article-table span {
  color: #0b78c7;
}

.article-table strong {
  color: #203246;
}

.article-table em {
  color: var(--primary);
  font-style: normal;
  font-weight: 900;
}

.knowledge-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}

.knowledge-side-card {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.knowledge-side-card h3 {
  margin: 0 0 4px;
  color: #203246;
  font-size: 18px;
}

.knowledge-side-card a:not(.btn) {
  color: #3a506b;
  font-weight: 800;
}

.knowledge-side-card a:not(.btn):hover {
  color: var(--primary);
}

.knowledge-side-card p,
.knowledge-side-card li {
  color: #66788f;
  line-height: 1.65;
}

.knowledge-side-card p,
.knowledge-side-card ul {
  margin: 0;
}

.knowledge-side-card ul {
  padding-left: 18px;
}

.knowledge-side-card.highlight {
  border-color: rgba(13, 143, 232, 0.24);
  background: linear-gradient(180deg, #fff, #f2f9ff);
}

.simple-knowledge-page {
  background: #f5f8fb;
}

.simple-knowledge-head {
  padding: 38px 0 30px;
  border-bottom: 1px solid #e1eaf3;
  background: #fff;
}

.simple-breadcrumb {
  margin: 0 0 16px;
  color: #718299;
  font-size: 14px;
  font-weight: 800;
}

.simple-breadcrumb a {
  color: var(--primary);
}

.simple-knowledge-head h1 {
  margin: 0;
  color: #1f3147;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.1;
}

.simple-knowledge-head p:last-child {
  max-width: 760px;
  margin: 0;
  color: #607188;
  font-size: 17px;
  line-height: 1.75;
}

.simple-knowledge-section {
  padding: 38px 0;
  background: #fff;
}

.simple-knowledge-section.simple-muted {
  background: #f5f8fb;
}

.simple-section-head {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.simple-section-head h2 {
  margin: 0;
  color: #1f3147;
  font-size: 28px;
  line-height: 1.2;
}

.simple-section-head p {
  max-width: 430px;
  margin: 0;
  color: #718299;
  line-height: 1.6;
}

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

.simple-video-card,
.simple-article-list a {
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 45, 77, 0.06);
}

.simple-video-card {
  overflow: hidden;
}

.simple-video-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #102033, #185585);
}

.simple-video-thumb span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #0b7ed4;
  background: #fff;
  font-weight: 900;
}

.simple-video-body {
  padding: 15px;
}

.simple-video-body span,
.simple-article-list span {
  display: inline-flex;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #0b78c7;
  background: #edf8ff;
  font-size: 12px;
  font-weight: 900;
}

.simple-video-body h3,
.simple-article-list h3 {
  margin: 10px 0 12px;
  color: #203246;
  font-size: 18px;
  line-height: 1.35;
}

.simple-video-body p,
.simple-article-list p {
  margin: 0 0 12px;
  color: #66788f;
  line-height: 1.6;
}

.simple-video-body a {
  color: var(--primary);
  font-weight: 900;
}

.simple-article-list {
  display: grid;
  gap: 12px;
}

.simple-article-list a {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}

.simple-article-list h3 {
  margin-top: 0;
}

.simple-article-list a:hover h3 {
  color: var(--primary);
}

.youtube-videos-list {
  display: grid;
  gap: 16px;
}

.youtube-feature-card {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  max-width: 980px;
  padding: 20px;
  border: 1px solid #dfe8f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 45, 77, 0.07);
}

.youtube-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #102033;
  aspect-ratio: 16 / 9;
}

.youtube-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-thumb span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #0b7ed4;
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  font-size: 20px;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.youtube-feature-body h2 {
  margin: 12px 0 10px;
  color: #203246;
  font-size: 24px;
  line-height: 1.35;
}

.youtube-feature-body p {
  margin: 0;
  color: #66788f;
  line-height: 1.7;
}

.youtube-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

@media (min-width: 992px) {
  .d-lg-block {
    display: block;
  }

  .d-lg-none {
    display: none;
  }
}

@media (max-width: 991px) {
  .header-container {
    flex-wrap: wrap;
  }

  .navbar-toggler,
  .menu-button {
    display: block;
  }

  .navbar-collapse {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    margin-left: 0;
    padding: 12px 0;
  }

  .navbar-collapse.is-open {
    display: block;
  }

  .navbar-nav {
    display: grid;
    gap: 4px;
  }

  .products-grid,
  .types-grid,
  .advantages-grid,
  .blog-grid,
  .contact-grid,
  .process-grid,
  .content-layout,
  .tutorial-hero-inner,
  .video-lessons-grid,
  .tutorial-layout,
  .knowledge-header-grid,
  .learning-path,
  .knowledge-grid,
  .featured-lesson,
  .pro-video-grid,
  .product-three-columns,
  .footer-row {
    grid-template-columns: 1fr;
  }

  .knowledge-sidebar {
    position: static;
  }

  .article-table a {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .tutorial-hero {
    padding: 44px 0;
  }

  .tutorial-hero-panel {
    max-width: 520px;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .lesson-row-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-three-columns::before,
  .product-three-columns::after {
    display: none;
  }

  .product-image-column {
    min-height: auto;
    padding: 24px 18px;
  }

  .product-info-column {
    border-right: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .product-features-horizontal {
    grid-template-columns: 1fr;
  }

  .product-specs-compact,
  .product-quick-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 52px 0 46px;
  }

  .product-list-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 16px;
  }

  .product-list-image img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
  }

  .product-list-title {
    min-height: 0;
    font-size: 15px;
  }

  .product-list-desc {
    display: none;
  }

  .product-list-meta {
    gap: 7px;
    margin-top: 9px;
    padding-top: 9px;
  }

  .product-list-action {
    width: 100%;
    margin-left: 0;
  }

  .btn-buy-now {
    width: 100%;
  }

  .product-image-column,
  .product-info-column,
  .product-purchase-column,
  .detail-body {
    padding: 18px;
  }

  .image-container {
    width: 150px;
    height: 150px;
    border-radius: 18px;
    box-shadow: inset 0 0 0 12px #eef8ff, 0 10px 24px rgba(13, 143, 232, 0.08);
  }

  .product-main-image {
    width: 88px;
    height: 88px;
  }

  .form-row-compact {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .quantity-section-compact {
    align-items: flex-start;
    flex-direction: column;
  }

  .price-section-compact {
    margin-left: 0;
  }

  .pay-methods-compact {
    grid-template-columns: 1fr;
  }

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

  .tutorial-section {
    padding: 40px 0;
  }

  .section-heading-row h2 {
    font-size: 24px;
  }

  .knowledge-title-block h1 {
    font-size: 34px;
  }

  .knowledge-status-panel {
    grid-template-columns: 1fr;
  }

  .knowledge-status-panel div {
    min-height: 76px;
    border-right: 0;
    border-bottom: 1px solid #dfe8f2;
  }

  .knowledge-status-panel div:last-child {
    border-bottom: 0;
  }

  .knowledge-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .simple-video-grid,
  .simple-article-list a,
  .youtube-feature-card {
    grid-template-columns: 1fr;
  }

  .simple-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .simple-knowledge-head {
    padding: 34px 0 28px;
  }

  .simple-knowledge-section {
    padding: 34px 0;
  }

.simple-section-head h2 {
    font-size: 24px;
  }
}

.admin-body {
  min-height: 100vh;
  background: #f3f7fb;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 14px max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid #dce7f2;
  background: #fff;
}

.admin-header > div {
  display: grid;
  gap: 2px;
  color: #73849a;
  font-size: 13px;
}

.admin-header strong {
  color: #1f3147;
  font-size: 18px;
}

.admin-home-link {
  margin-left: auto;
  color: var(--primary);
  font-weight: 800;
}

.admin-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.admin-panel,
.admin-toolbar,
.admin-order-card,
.admin-empty {
  border: 1px solid #dce7f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 49, 71, 0.06);
}

.admin-login-panel {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.admin-login-panel h1,
.admin-toolbar h1 {
  margin: 0 0 8px;
  color: #1f3147;
  font-size: 28px;
}

.admin-login-panel p,
.admin-toolbar p {
  margin: 0;
  color: #6e8096;
}

.admin-login-form,
.admin-filter {
  display: grid;
  gap: 10px;
}

.admin-login-form label,
.admin-order-card label {
  display: grid;
  gap: 6px;
  color: #31445c;
  font-weight: 800;
}

.admin-login-form input,
.admin-filter input,
.admin-filter select,
.admin-order-card select,
.admin-order-card textarea {
  width: 100%;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #1f3147;
  font: inherit;
}

.admin-login-form input,
.admin-filter input,
.admin-filter select,
.admin-order-card select {
  min-height: 40px;
  padding: 8px 10px;
}

.admin-login-form button,
.admin-filter button,
.admin-order-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #1da1f2, #0677cc);
  font-weight: 900;
  cursor: pointer;
}

.admin-muted {
  grid-column: 1 / -1;
  color: #8191a5 !important;
  font-size: 13px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(520px, 0.9fr);
  gap: 18px;
  align-items: end;
  padding: 22px;
}

.admin-filter {
  grid-template-columns: 1.2fr 1fr 1fr auto;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.admin-stats div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid #dce7f2;
  border-radius: 10px;
  background: #fff;
}

.admin-stats span {
  color: #73849a;
  font-size: 13px;
}

.admin-stats strong {
  color: #1f3147;
  font-size: 26px;
}

.admin-orders {
  display: grid;
  gap: 14px;
}

.admin-order-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.admin-order-head div:first-child {
  display: grid;
  gap: 4px;
}

.admin-order-head strong {
  color: #1f3147;
  font-size: 20px;
}

.admin-order-head span,
.admin-order-grid {
  color: #728399;
  font-size: 13px;
}

.admin-order-price {
  color: var(--danger);
  font-size: 24px;
  font-weight: 900;
}

.admin-order-product {
  color: #1f3147;
  font-weight: 900;
}

.admin-order-grid,
.admin-order-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

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

.admin-order-card textarea {
  min-height: 78px;
  padding: 10px;
  resize: vertical;
}

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

.admin-order-actions button {
  padding: 0 22px;
}

.admin-order-actions a {
  color: var(--primary);
  font-weight: 800;
}

.admin-empty {
  padding: 24px;
  color: #728399;
  text-align: center;
}

.admin-empty.compact {
  padding: 14px;
}

.admin-inventory-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 22px;
}

.admin-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-section-title h2 {
  margin: 0 0 6px;
  color: #1f3147;
  font-size: 24px;
}

.admin-section-title p {
  margin: 0;
  color: #728399;
}

.admin-section-title button,
.admin-inventory-form button,
.admin-order-actions button[data-auto-fulfill] {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #bcdaf2;
  border-radius: 8px;
  color: var(--primary);
  background: #eef8ff;
  font-weight: 900;
  cursor: pointer;
}

.admin-inventory-form {
  display: grid;
  grid-template-columns: 320px 1fr auto;
  gap: 12px;
  align-items: end;
}

.admin-inventory-form label {
  display: grid;
  gap: 6px;
  color: #31445c;
  font-weight: 800;
}

.admin-inventory-form select,
.admin-inventory-form textarea {
  width: 100%;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #1f3147;
  font: inherit;
}

.admin-inventory-form select {
  min-height: 42px;
  padding: 8px 10px;
}

.admin-inventory-form textarea {
  min-height: 96px;
  padding: 10px;
  resize: vertical;
}

.admin-inventory-form .admin-full {
  grid-column: auto;
}

.admin-inventory-form button {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #1da1f2, #0677cc);
}

.admin-inventory-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-inventory-stats div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #dce7f2;
  border-radius: 10px;
  background: #f8fbff;
}

.admin-inventory-stats strong {
  color: #1f3147;
}

.admin-inventory-stats span {
  color: #728399;
  font-size: 13px;
}

.admin-inventory-stats b {
  color: #178352;
}

@media (max-width: 991px) {
  .admin-login-panel,
  .admin-toolbar,
  .admin-filter,
  .admin-stats,
  .admin-inventory-form,
  .admin-inventory-stats,
  .admin-order-grid,
  .admin-order-controls {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-wrap: wrap;
  }
}

.ops-body {
  min-height: 100vh;
  color: #1f3147;
  background: #eef3f8;
}

.ops-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.ops-login-card {
  display: grid;
  gap: 22px;
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid #dce7f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(31, 49, 71, 0.12);
}

.ops-login-card img {
  width: 154px;
  height: auto;
}

.ops-login-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.ops-login-card p {
  margin: 0;
  color: #728399;
}

.ops-login-card form,
.ops-login-card label {
  display: grid;
  gap: 10px;
}

.ops-login-card input,
.ops-login-card button,
.ops-filter input,
.ops-filter select,
.ops-filter button,
.ops-inventory-form select,
.ops-inventory-form textarea,
.ops-inventory-form button,
.ops-drawer-panel select,
.ops-drawer-panel textarea,
.ops-drawer-panel button {
  font: inherit;
}

.ops-login-card input,
.ops-filter input,
.ops-filter select,
.ops-inventory-form select,
.ops-inventory-form textarea,
.ops-drawer-panel select,
.ops-drawer-panel textarea {
  width: 100%;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #1f3147;
}

.ops-login-card input,
.ops-filter input,
.ops-filter select,
.ops-inventory-form select,
.ops-drawer-panel select {
  min-height: 42px;
  padding: 8px 11px;
}

.ops-login-card button,
.ops-filter button,
.ops-inventory-form button,
.ops-drawer-actions button,
.ops-top-actions button,
.ops-panel-head button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: #0d8fe8;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.ops-help {
  color: #8191a5 !important;
  font-size: 13px;
}

.ops-app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.ops-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid #dce7f2;
  background: #fff;
}

.ops-brand {
  display: inline-flex;
  padding: 4px 6px 18px;
  border-bottom: 1px solid #e6eef7;
}

.ops-brand img {
  width: 150px;
  height: auto;
}

.ops-nav {
  display: grid;
  gap: 8px;
}

.ops-nav button {
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #51657c;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.ops-nav button.active,
.ops-nav button:hover {
  color: #0677cc;
  background: #edf7ff;
}

.ops-sidebar-foot {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 14px;
  border-radius: 10px;
  background: #f5f9fd;
  color: #728399;
  font-size: 13px;
}

.ops-sidebar-foot a {
  color: #0d8fe8;
  font-weight: 800;
}

.ops-main {
  min-width: 0;
  padding: 24px;
}

.ops-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.ops-topbar h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.ops-topbar p {
  margin: 0;
  color: #728399;
}

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

.ops-top-actions button,
.ops-panel-head button,
.ops-filter button[data-reset-filter],
.ops-drawer-actions button[data-drawer-fulfill] {
  border: 1px solid #cfe0ef;
  background: #fff;
  color: #31445c;
}

.ops-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ops-metrics div,
.ops-panel {
  border: 1px solid #dce7f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 49, 71, 0.06);
}

.ops-metrics div {
  display: grid;
  gap: 5px;
  min-height: 102px;
  padding: 17px;
}

.ops-metrics span,
.ops-metrics small,
.ops-panel-head p,
.ops-product-name + small,
.ops-stock-card span,
.ops-stock-card small {
  color: #728399;
}

.ops-metrics strong {
  font-size: 27px;
}

.ops-view {
  display: none;
}

.ops-view.active {
  display: block;
}

.ops-panel {
  overflow: hidden;
}

.ops-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e5edf5;
}

.ops-panel-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.ops-panel-head p {
  margin: 0;
}

.ops-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr) minmax(130px, 0.65fr) minmax(130px, 0.65fr) auto auto;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5edf5;
  background: #fbfdff;
}

.ops-filter button {
  padding: 0 18px;
}

.ops-table-wrap {
  overflow: auto;
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.ops-table th,
.ops-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: top;
}

.ops-table th {
  color: #728399;
  background: #fbfdff;
  font-size: 13px;
  font-weight: 900;
}

.ops-table td {
  color: #31445c;
}

.ops-table tr:hover td {
  background: #f8fbff;
}

.ops-product-name {
  display: block;
  max-width: 320px;
  color: #1f3147;
  font-weight: 800;
}

.ops-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.ops-badge.success {
  color: #117a4d;
  background: #e7f8ef;
}

.ops-badge.warning {
  color: #9b650c;
  background: #fff5df;
}

.ops-badge.danger {
  color: #bb2d3b;
  background: #fff0f0;
}

.ops-badge.info {
  color: #0677cc;
  background: #eaf6ff;
}

.ops-link-button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #bcdaf2;
  border-radius: 8px;
  color: #0d8fe8;
  background: #eef8ff;
  font-weight: 900;
  cursor: pointer;
}

.ops-empty {
  padding: 28px !important;
  color: #728399 !important;
  text-align: center !important;
}

.ops-empty.stock {
  border: 1px dashed #cfe0ef;
  border-radius: 10px;
  background: #fbfdff;
}

.ops-inventory-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) 1fr;
  gap: 16px;
}

.ops-products-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) 1fr;
  gap: 16px;
}

.ops-inventory-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.ops-inventory-form label,
.ops-product-form label,
.ops-drawer-panel label {
  display: grid;
  gap: 7px;
  color: #31445c;
  font-weight: 900;
}

.ops-inventory-form textarea,
.ops-product-form textarea,
.ops-drawer-panel textarea {
  min-height: 150px;
  padding: 11px;
  resize: vertical;
}

.ops-inventory-form button {
  width: fit-content;
  padding: 0 22px;
}

.ops-import-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ops-import-actions input {
  min-height: 40px;
  padding: 8px;
  border: 1px dashed #bdd3e8;
  border-radius: 8px;
  background: #fbfdff;
}

.ops-product-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 20px;
}

.ops-product-form input,
.ops-product-form select,
.ops-product-form textarea {
  width: 100%;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #1f3147;
  font: inherit;
}

.ops-product-form > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: #31445c;
  font-size: 14px;
  font-weight: 900;
}

.ops-product-form input {
  min-height: 42px;
  padding: 8px 11px;
}

.ops-product-form select {
  min-height: 42px;
  padding: 8px 11px;
}

.ops-product-form textarea {
  min-height: 110px;
  padding: 11px;
  resize: vertical;
}

.ops-product-form button {
  width: fit-content;
  min-height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #0d8fe8;
  font-weight: 900;
  cursor: pointer;
}

.ops-form-row {
  display: contents;
}

.ops-product-form > label:last-of-type {
  grid-column: 1 / -1;
}

.ops-product-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ops-product-actions button[data-product-cancel] {
  border: 1px solid #cfe0ef;
  color: #31445c;
  background: #fff;
}

.ops-form-row label {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  color: #31445c;
  font-size: 14px;
  font-weight: 900;
}

.ops-product-list {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.ops-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #dce7f2;
  border-radius: 10px;
  background: #fbfdff;
}

.ops-product-row > img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid #dce7f2;
  border-radius: 10px;
  background: #eef8ff;
}

.ops-product-row div {
  display: grid;
  gap: 5px;
}

.ops-product-row div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.ops-product-row span {
  color: #728399;
  font-size: 13px;
}

.ops-product-row b {
  color: #e8444f;
  font-size: 18px;
}

.ops-product-row a {
  color: #0d8fe8;
  font-weight: 800;
  text-align: right;
}

.ops-product-row button {
  min-height: 30px;
  border: 1px solid #bcdaf2;
  border-radius: 8px;
  color: #0d8fe8;
  background: #eef8ff;
  font-weight: 900;
  cursor: pointer;
}

.ops-image-preview {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px dashed #bdd3e8;
  border-radius: 10px;
  background: #fbfdff;
}

.ops-image-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid #dce7f2;
  border-radius: 12px;
  background: #eef8ff;
}

.ops-image-preview span {
  color: #728399;
  font-size: 13px;
}

.ops-stock-list {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.ops-stock-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid #dce7f2;
  border-radius: 10px;
  background: #fbfdff;
}

.ops-stock-card div:first-child {
  display: grid;
  gap: 4px;
}

.ops-stock-card b {
  color: #117a4d;
}

.ops-stock-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef6;
}

.ops-stock-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1da1f2, #17b26a);
}

.ops-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: flex-end;
  background: rgba(31, 49, 71, 0.34);
}

.ops-drawer.is-open {
  display: flex;
}

.ops-drawer-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  width: min(560px, 100%);
  height: 100%;
  padding: 22px;
  overflow: auto;
  background: #fff;
  box-shadow: -18px 0 42px rgba(31, 49, 71, 0.18);
}

.ops-drawer-head,
.ops-drawer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ops-drawer-head div {
  display: grid;
  gap: 4px;
}

.ops-drawer-head span {
  color: #728399;
  font-size: 13px;
}

.ops-drawer-head strong {
  font-size: 22px;
}

.ops-drawer-head button {
  border: 0;
  background: transparent;
  color: #728399;
  font-weight: 900;
  cursor: pointer;
}

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

.ops-drawer-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.ops-drawer-actions button,
.ops-drawer-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
}

.ops-drawer-actions a {
  color: #0d8fe8;
  background: #eef8ff;
}

.ops-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  background: #1f3147;
  box-shadow: 0 12px 32px rgba(31, 49, 71, 0.22);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .ops-app {
    grid-template-columns: 1fr;
  }

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

  .ops-metrics,
  .ops-inventory-grid,
  .ops-products-grid {
    grid-template-columns: 1fr;
  }

  .ops-filter {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .ops-main {
    padding: 16px;
  }

  .ops-topbar,
  .ops-panel-head,
  .ops-drawer-head {
    flex-direction: column;
  }

  .ops-filter,
  .ops-form-row,
  .ops-drawer-grid {
    grid-template-columns: 1fr;
  }
}
