:root {
  --brand: #0033CC;
  --brand-light: #00AAFF;
  --brand-soft: #E8F4FF;
  --ink: #0B1B3A;
}

html { scroll-behavior: smooth; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Inline edit mode (admin logged-in) */
.edit-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(90deg, #001a66, #0033CC 55%, #00AAFF);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 51, 204, 0.25);
}
.edit-bar a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}
.edit-mode [data-text-edit] {
  outline: 1.5px dashed rgba(0, 170, 255, 0.55);
  outline-offset: 4px;
  cursor: text;
  border-radius: 4px;
  transition: outline-color .2s, background .2s;
}
.edit-mode [data-text-edit]:hover {
  outline-color: #00AAFF;
  background: rgba(0, 170, 255, 0.08);
}
.edit-mode [data-text-edit].is-text-editing {
  outline: 2px solid #0033CC;
  background: #fff;
  color: #0B1B3A !important;
  padding: 2px 4px;
  box-shadow: 0 0 0 4px rgba(0, 51, 204, 0.15);
}
.edit-mode [data-text-edit].is-text-saving {
  opacity: 0.65;
}
.inline-translate-bar {
  position: absolute;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 10px;
  background: #0b1b3a;
  box-shadow: 0 10px 28px rgba(11, 27, 58, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.inline-translate-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  color: #0033cc;
  font: inherit;
  font-weight: 700;
}
.inline-translate-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.inline-translate-hint {
  opacity: 0.75;
  white-space: nowrap;
  padding-right: 4px;
}
.inline-format-bar {
  position: absolute;
  z-index: 86;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(11, 27, 58, 0.96);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.inline-format-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  min-height: 28px;
  padding: 6px 8px;
  cursor: pointer;
}
.inline-format-btn:hover {
  background: rgba(0, 170, 255, 0.28);
  border-color: rgba(125, 211, 255, 0.8);
}
.inline-media-picker[hidden] { display: none !important; }
.inline-media-picker {
  position: fixed;
  inset: 0;
  z-index: 110;
}
.inline-media-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 28, 0.55);
}
.inline-media-picker__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100vw - 24px));
  max-height: min(80vh, 760px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d7e3f6;
  box-shadow: 0 18px 40px rgba(10, 25, 54, 0.32);
}
.inline-media-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #0b1b3a;
  color: #fff;
}
.inline-media-picker__close {
  border: 0;
  background: rgba(255,255,255,0.15);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.inline-media-picker__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5ecf8;
}
.inline-media-picker__btn {
  border: 1px solid rgba(0,51,204,0.24);
  background: #fff;
  color: #0033cc;
  border-radius: 9px;
  padding: 7px 11px;
  font-weight: 700;
  cursor: pointer;
}
.inline-media-picker__grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  overflow: auto;
}
.inline-media-item {
  border: 1px solid #d7e3f6;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #f5f9ff;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
.inline-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.inline-media-picker__hint {
  color: #5a6b85;
  font-size: 0.9rem;
}
.edit-mode [data-editable] {
  cursor: pointer;
  position: relative;
}
.edit-mode [data-editable]::after {
  content: 'Đổi ảnh';
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(0, 51, 204, 0.92);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.edit-mode [data-editable]:hover::after {
  opacity: 1;
}

.value-icon {
  width: 3.5rem;
  height: 3.5rem;
}
.value-icon-img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  display: block;
}
.value-icon--image {
  box-shadow: 0 8px 20px rgba(0, 51, 204, 0.08);
}

/* About page */
.about-hero-img {
  animation: aboutKenBurns 22s ease-in-out infinite alternate;
  transform-origin: center center;
}
@keyframes aboutKenBurns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.2%, -0.8%, 0); }
}
.about-visual-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 150px 150px;
  gap: 12px;
}
.about-visual-item {
  margin: 0;
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid rgba(0, 51, 204, 0.1);
  box-shadow: 0 14px 30px rgba(0, 51, 204, 0.1);
  background: #e8f4ff;
}
.about-visual-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.about-visual-item:hover img { transform: scale(1.06); }
.about-visual-item--1 {
  grid-row: 1 / span 2;
  min-height: 312px;
}
.about-quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 51, 204, 0.1);
  background: linear-gradient(180deg, #fff, #f7fbff);
  color: #0B1B3A;
  font-size: 0.86rem;
  font-weight: 700;
  transition: border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.about-quick-link:hover {
  border-color: rgba(0, 51, 204, 0.35);
  color: #0033CC;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 51, 204, 0.1);
}
.partner-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.partner-marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 6px 0 10px;
  animation: partner-marquee-scroll 42s linear infinite;
  will-change: transform;
}
.partner-marquee:hover .partner-marquee-track {
  animation-play-state: paused;
}
@keyframes partner-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.about-partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 168px;
  min-height: 96px;
  padding: 16px 18px;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 51, 204, 0.1);
  box-shadow: 0 10px 24px rgba(0, 51, 204, 0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.about-partner-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 51, 204, 0.28);
  box-shadow: 0 16px 32px rgba(0, 51, 204, 0.12);
}
.about-partner-tile a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.about-partner-tile img {
  max-height: 48px;
  max-width: 128px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(0.95);
  opacity: 0.78;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}
.about-partner-tile:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}
.about-partner-fallback {
  font-weight: 800;
  color: rgba(0, 51, 204, 0.7);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.25;
}
@media (max-width: 640px) {
  .about-visual-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 120px 120px;
  }
  .about-visual-item--1 {
    grid-row: 1 / span 2;
    min-height: 252px;
  }
  .partner-marquee-track { gap: 10px; animation-duration: 32s; }
  .about-partner-tile { width: 140px; min-height: 82px; padding: 12px 14px; }
  .about-partner-tile img { max-height: 40px; max-width: 108px; }
}
@media (prefers-reduced-motion: reduce) {
  .partner-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    justify-content: center;
    padding-inline: 1rem;
  }
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Header dropdown menu */
.nav-dd { position: relative; }
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 210px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 51, 204, 0.12);
  box-shadow: 0 18px 40px rgba(0, 51, 204, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav-dd-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #0B1B3A;
  font-weight: 600;
  font-size: 0.86rem;
  white-space: nowrap;
}
.nav-dd-panel a:hover,
.nav-dd-panel a.is-active {
  background: #E8F4FF;
  color: #0033CC;
}
.nav-dd:hover .nav-dd-panel,
.nav-dd:focus-within .nav-dd-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.rss-panel ul { list-style: none; margin: 0; padding: 0; }

.flip-wrap {
  min-height: 520px;
  background: linear-gradient(180deg, #e8f4ff, #fff);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0,51,204,.12);
}
.catalog-flip--page {
  min-height: min(72vh, 740px);
  border: 0;
  border-radius: .75rem;
  background: transparent;
}
.catalog-flip .df-container,
.catalog-flip ._df_book,
.catalog-flip .df-ui-wrapper {
  max-width: 100%;
}

/* DearFlip toolbar — force visible SVG icons (themify font often looks blank) */
@font-face {
  font-family: 'themify';
  src: url('../dflip/fonts/themify.woff') format('woff'),
       url('../dflip/fonts/themify.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
.catalog-flip .df-ui-controls,
.flip-wrap .df-ui-controls {
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 51, 204, 0.18) !important;
  border: 1px solid rgba(0, 51, 204, 0.12);
  border-radius: 12px !important;
  overflow: visible !important;
  height: 44px !important;
  padding: 0 4px !important;
  gap: 0;
}
.catalog-flip .df-ui-btn,
.flip-wrap .df-ui-btn {
  color: #0033CC !important;
  background: transparent !important;
  width: 40px !important;
  height: 44px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 auto;
}
.catalog-flip .df-ui-btn.df-ui-page,
.flip-wrap .df-ui-btn.df-ui-page {
  width: auto !important;
  min-width: 56px !important;
  color: #0B1B3A !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  background: rgba(0, 51, 204, 0.06) !important;
  border-radius: 8px !important;
  margin: 4px 2px !important;
  height: 36px !important;
}
.catalog-flip .df-ui-btn:hover,
.flip-wrap .df-ui-btn:hover {
  color: #00AAFF !important;
  background: rgba(0, 170, 255, 0.1) !important;
  border-radius: 8px;
}
.catalog-flip .df-ui-btn.disabled,
.flip-wrap .df-ui-btn.disabled {
  color: #a8b4c8 !important;
  opacity: .55;
}
/* Hide font-glyph ::before; draw crisp SVG masks instead */
.catalog-flip .df-ui-btn[class*="ti-"]:before,
.flip-wrap .df-ui-btn[class*="ti-"]:before {
  content: "" !important;
  font-size: 0 !important;
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  background-color: currentColor !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
}
.catalog-flip .df-ui-controls > .df-ui-btn span,
.flip-wrap .df-ui-controls > .df-ui-btn span {
  display: none !important;
}
.catalog-flip .df-ui-btn.df-ui-page {
  max-width: 72px !important;
}
.catalog-flip .df-ui-btn.df-ui-page input {
  max-width: 48px !important;
}
.catalog-flip .df-ui-btn.ti-angle-left:before,
.flip-wrap .df-ui-btn.ti-angle-left:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.catalog-flip .df-ui-btn.ti-angle-right:before,
.flip-wrap .df-ui-btn.ti-angle-right:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.catalog-flip .df-ui-btn.df-ui-thumbnail:before,
.flip-wrap .df-ui-btn.df-ui-thumbnail:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.catalog-flip .df-ui-btn.df-ui-zoomin:before,
.flip-wrap .df-ui-btn.df-ui-zoomin:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.catalog-flip .df-ui-btn.df-ui-zoomout:before,
.flip-wrap .df-ui-btn.df-ui-zoomout:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.catalog-flip .df-ui-btn.df-ui-fullscreen:before,
.flip-wrap .df-ui-btn.df-ui-fullscreen:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cpolyline points='9 21 3 21 3 15'/%3E%3Cline x1='21' y1='3' x2='14' y2='10'/%3E%3Cline x1='3' y1='21' x2='10' y2='14'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cpolyline points='9 21 3 21 3 15'/%3E%3Cline x1='21' y1='3' x2='14' y2='10'/%3E%3Cline x1='3' y1='21' x2='10' y2='14'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.catalog-flip .df-ui-btn.df-ui-download:before,
.flip-wrap .df-ui-btn.df-ui-download:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.catalog-flip .df-ui-btn.df-ui-download,
.flip-wrap .df-ui-btn.df-ui-download {
  display: none !important;
}
.catalog-flip .df-ui-btn.df-ui-sound:before,
.flip-wrap .df-ui-btn.df-ui-sound:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14'/%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14'/%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.catalog-flip .df-ui-btn.df-ui-more:before,
.flip-wrap .df-ui-btn.df-ui-more:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='12' r='1.6'/%3E%3Ccircle cx='12' cy='12' r='1.6'/%3E%3Ccircle cx='19' cy='12' r='1.6'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='12' r='1.6'/%3E%3Ccircle cx='12' cy='12' r='1.6'/%3E%3Ccircle cx='19' cy='12' r='1.6'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.catalog-flip .df-ui-btn.df-ui-share:before,
.flip-wrap .df-ui-btn.df-ui-share:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'/%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'/%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.catalog-flip .df-ui-btn.df-ui-outline:before,
.flip-wrap .df-ui-btn.df-ui-outline:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='6' x2='20' y2='6'/%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cline x1='4' y1='18' x2='14' y2='18'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='6' x2='20' y2='6'/%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cline x1='4' y1='18' x2='14' y2='18'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.catalog-flip .df-ui-btn.df-ui-pagemode:before,
.flip-wrap .df-ui-btn.df-ui-pagemode:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.catalog-flip .df-ui-btn.ti-angle-double-left:before,
.flip-wrap .df-ui-btn.ti-angle-double-left:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='11 17 6 12 11 7'/%3E%3Cpolyline points='18 17 13 12 18 7'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='11 17 6 12 11 7'/%3E%3Cpolyline points='18 17 13 12 18 7'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.catalog-flip .df-ui-btn.ti-angle-double-right:before,
.flip-wrap .df-ui-btn.ti-angle-double-right:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='13 17 18 12 13 7'/%3E%3Cpolyline points='6 17 11 12 6 7'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='13 17 18 12 13 7'/%3E%3Cpolyline points='6 17 11 12 6 7'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
/* Side page arrows */
.catalog-flip .df-container > .df-ui-next:before,
.catalog-flip .df-container > .df-ui-prev:before,
.flip-wrap .df-container > .df-ui-next:before,
.flip-wrap .df-container > .df-ui-prev:before {
  content: "" !important;
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  background-color: currentColor !important;
}
.catalog-flip .df-container > .df-ui-prev:before,
.flip-wrap .df-container > .df-ui-prev:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.catalog-flip .df-container > .df-ui-next:before,
.flip-wrap .df-container > .df-ui-next:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.catalog-flip .df-container > .df-ui-next,
.catalog-flip .df-container > .df-ui-prev,
.flip-wrap .df-container > .df-ui-next,
.flip-wrap .df-container > .df-ui-prev {
  color: #0033CC !important;
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(0, 51, 204, 0.2);
}

@media (max-width: 768px) {
  .catalog-flip--page { min-height: 420px; }
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}
.specs-table th,
.specs-table td {
  text-align: left;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(0,51,204,.1);
}
@media (max-width: 640px) {
  .specs-table th,
  .specs-table td { padding: .65rem .75rem; font-size: .9rem; }
  .specs-table th { width: 38%; }
}
.specs-table th {
  width: 40%;
  color: var(--brand);
  font-weight: 700;
  background: rgba(232,244,255,.6);
}

.prose-euchem {
  line-height: 1.75;
  color: rgba(11,27,58,.85);
}
.prose-euchem h2, .prose-euchem h3 {
  color: var(--brand);
  font-weight: 700;
  margin: 1.25rem 0 .5rem;
}
.prose-euchem p { margin: .75rem 0; }
.prose-euchem ul, .prose-euchem ol { padding-left: 1.25rem; margin: .75rem 0; }
.prose-euchem ul { list-style: disc; }
.prose-euchem ol { list-style: decimal; }
.prose-euchem img { max-width: 100%; border-radius: .75rem; height: auto; }
.prose-euchem table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.prose-euchem .table-scroll,
.product-prose {
  overflow-wrap: anywhere;
}
.prose-euchem th,
.prose-euchem td {
  border: 1px solid rgba(0,51,204,.12);
  padding: .65rem .85rem;
  text-align: left;
  vertical-align: top;
}
.prose-euchem th {
  width: 34%;
  background: rgba(232,244,255,.65);
  color: var(--brand);
  font-weight: 700;
}
@media (max-width: 640px) {
  .prose-euchem { font-size: .95rem; }
  .prose-euchem table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: .88rem;
  }
  .prose-euchem th,
  .prose-euchem td { padding: .55rem .65rem; }
}

/* Product detail */
.product-detail {
  background: linear-gradient(180deg, #f7faff 0%, #fff 28%, #fff 100%);
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.product-chip {
  display: inline-flex;
  align-items: center;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  color: #0033CC;
  background: #e8f0ff;
}
.product-chip--muted {
  color: #5a6b85;
  background: #f1f5f9;
}
.product-quick-card {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,51,204,.12);
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.product-quick-card:hover {
  border-color: rgba(0,51,204,.35);
  box-shadow: 0 12px 28px rgba(0,51,204,.08);
  transform: translateY(-1px);
}
.product-quick-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #00AAFF;
  margin-bottom: 4px;
}
.product-quick-card strong {
  color: #0b1b3a;
  font-size: .95rem;
}
.product-gallery-thumbs .product-thumb {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #e8f4ff;
  cursor: pointer;
  aspect-ratio: 1;
}
.product-gallery-thumbs .product-thumb.is-active {
  border-color: #0033CC;
}
.product-gallery-thumbs .product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-thumb--add {
  display: grid;
  place-items: center;
  border: 2px dashed rgba(0,51,204,.35) !important;
  background: #f4f8ff !important;
  color: #0033CC;
  font-size: 1.5rem;
  font-weight: 700;
}
.product-slideshow { position: relative; }
.product-slideshow-stage { position: relative; }
.product-slideshow-track { position: relative; }
.product-slide {
  display: none;
  margin: 0;
}
.product-slide.is-active { display: block; }
.product-slide img { display: block; width: 100%; }
.product-slide-nav {
  appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #0033CC;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,51,204,.18);
}
.product-slide-nav--prev { left: 12px; }
.product-slide-nav--next { right: 12px; }
.product-slide-dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.product-slide-dot {
  appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}
.product-slide-dot.is-active { background: #0033CC; width: 18px; }
.product-specs-aside {
  border: 1px solid rgba(0,51,204,.12);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,51,204,.05);
}
.product-specs-aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 8px;
  background: linear-gradient(180deg, #f4f8ff, #fff);
  border-bottom: 1px solid rgba(0,51,204,.08);
}
.product-specs-aside-link {
  font-size: .8rem;
  font-weight: 700;
  color: #0033CC;
  white-space: nowrap;
}
.product-specs-aside-body {
  padding: 10px 12px 14px;
  max-height: min(420px, 55vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.product-specs-preview {
  font-size: .9rem;
}
.product-specs-preview table { margin: 0; font-size: .88rem; }
.product-specs-preview img { max-height: 120px; }
@media (max-width: 640px) {
  .product-slide-nav { width: 34px; height: 34px; font-size: 1.25rem; }
  .product-slide-nav--prev { left: 8px; }
  .product-slide-nav--next { right: 8px; }
  .product-specs-aside-body { max-height: min(260px, 38vh); }
}
.product-tabs-wrap {
  border: 1px solid rgba(0,51,204,.1);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,51,204,.06);
  overflow: hidden;
}
.product-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border-bottom: 1px solid rgba(0,51,204,.1);
  background: linear-gradient(180deg, #f4f8ff, #fff);
  padding: 0 .35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-tabs::-webkit-scrollbar { display: none; }
.product-tab {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: .9rem 1rem;
  font: inherit;
  font-weight: 700;
  font-size: .88rem;
  color: rgba(11,27,58,.55);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
  flex: 0 0 auto;
}
.product-tab:hover { color: #0033CC; }
.product-tab.is-active {
  color: #0033CC;
  border-bottom-color: #0033CC;
}
.product-tab--add {
  color: #00AAFF !important;
  border-bottom-color: transparent !important;
  margin-left: auto;
}
.product-tab-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(0,51,204,.15);
}
.product-tab-title-edit {
  color: #0033CC;
  font-size: 1.05rem;
}
.product-tab-delete {
  appearance: none;
  border: 1px solid rgba(190,18,60,.25);
  background: #fff;
  color: #be123c;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}
.product-tab-panels { padding: 1.15rem 1rem 1.4rem; }
@media (min-width: 768px) {
  .product-tabs { padding: 0 .5rem; flex-wrap: wrap; overflow: visible; }
  .product-tab { padding: 1rem 1.15rem; font-size: .92rem; }
  .product-tab-panels { padding: 1.75rem 1.75rem 2rem; }
}
.product-tab-panel[hidden] { display: none !important; }
.product-prose { max-width: 52rem; }
.product-prose--soft {
  background: linear-gradient(180deg, #f4f8ff, #fff);
  border: 1px solid rgba(0,51,204,.08);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}
@media (min-width: 768px) {
  .product-prose--soft { padding: 1.25rem 1.35rem; }
}
.product-detail-summary .inline-flex { min-height: 44px; }
@media (max-width: 640px) {
  .product-detail-hero { gap: 1.25rem; }
  .product-gallery-main { border-radius: 1.25rem; }
  .product-tabs-wrap { border-radius: 1rem; }
  .product-breadcrumb { font-size: .8rem; }
  .product-detail-summary h1 { font-size: 1.65rem; }
  .product-detail-summary .mt-7.flex { width: 100%; }
  .product-detail-summary .mt-7.flex > a,
  .product-detail-summary .mt-7.flex > button { flex: 1 1 auto; min-width: min(100%, 140px); }
}
.policy-prose h2 {
  margin-top: 1.75rem;
  margin-bottom: .65rem;
  font-size: 1.15rem;
  color: #0033CC;
}
.policy-prose p { text-align: justify; }
.policy-prose a { color: #0033CC; font-weight: 600; }

/* Featured products: keep cards centered when last row is short */
.featured-products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.featured-products-grid__item {
  width: 100%;
  max-width: 360px;
}
@media (min-width: 640px) {
  .featured-products-grid__item {
    flex: 0 1 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
  }
}
@media (min-width: 1024px) {
  .featured-products-grid__item {
    flex: 0 1 calc(25% - 1.125rem);
    max-width: calc(25% - 1.125rem);
  }
}

/* Core values — giữ đủ thẻ, hàng cuối căn giữa; nội dung trong box căn giữa */
.values-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem;
}
.values-grid > * {
  /* flex-grow: 0 — tránh thẻ cuối giãn lệch trái */
  flex: 0 1 100%;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.values-grid > * .value-icon {
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 0;
}
.values-grid > * h3,
.values-grid > * p {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  text-align: center;
  width: 100%;
}
@media (min-width: 640px) {
  .values-grid > * {
    flex: 0 1 calc(50% - 0.625rem);
    max-width: calc(50% - 0.625rem);
    width: calc(50% - 0.625rem);
  }
}
@media (min-width: 1024px) {
  .values-grid > * {
    flex: 0 1 calc(33.333% - 0.834rem);
    max-width: calc(33.333% - 0.834rem);
    width: calc(33.333% - 0.834rem);
  }
}
/* Mobile thật: 1 cột — đủ thẻ, chữ đọc được */
@media (max-width: 639px) {
  .values-grid {
    gap: 1rem;
  }
  .values-grid > * {
    flex: 0 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 1.25rem 1.35rem !important;
  }
  .values-grid > * h3 {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }
  .values-grid > * p {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
  }
}

/* Category section */
.cat-section { background: linear-gradient(180deg, #fff 0%, #f4f8ff 48%, #fff 100%); }
.cat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0033CC, #00AAFF);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,51,204,.22);
}
.cat-icon svg { width: 1.35rem; height: 1.35rem; }
.cat-icon--sm {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .85rem;
  box-shadow: 0 6px 14px rgba(0,51,204,.16);
}
.cat-icon--sm svg { width: 1.05rem; height: 1.05rem; }
.cat-icon--light {
  background: rgba(255,255,255,.18);
  box-shadow: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
}
.cat-card .cat-icon { transition: transform .25s ease; }
.cat-card:hover .cat-icon { transform: translateY(-2px) scale(1.05); }
@media (max-width: 640px) {
  .cat-icon { width: 2.6rem; height: 2.6rem; border-radius: .9rem; }
  .cat-icon svg { width: 1.15rem; height: 1.15rem; }
}

.compare-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  background: #0033CC;
  color: #fff;
  transform: translateY(110%);
  transition: transform .3s ease;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.compare-bar.show { transform: none; }
.compare-bar-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.compare-bar-label { font-size: .9rem; font-weight: 600; }
.compare-bar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.compare-bar-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
}
.compare-bar-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.compare-bar-btn--solid {
  background: #fff;
  color: #0033CC;
}
body.has-compare-bar {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
body.has-compare-bar .fixed.bottom-5 {
  bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

body.compare-modal-open { overflow: hidden; }
.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 768px) {
  .compare-modal {
    align-items: center;
    padding: 16px;
  }
}
.compare-modal[hidden] { display: none !important; }
.compare-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 27, 58, 0.55);
  backdrop-filter: blur(4px);
}
.compare-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(94vh, 100%);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 30px 80px rgba(0, 26, 102, 0.35);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (min-width: 768px) {
  .compare-modal-dialog {
    width: min(1080px, 100%);
    max-height: min(92vh, 900px);
    border-radius: 20px;
    padding-bottom: 0;
  }
}
.compare-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(0,51,204,.1);
  background: linear-gradient(180deg, #f4f8ff, #fff);
  position: sticky;
  top: 0;
  z-index: 2;
}
@media (min-width: 768px) {
  .compare-modal-head { padding: 18px 20px 14px; gap: 16px; }
}
.compare-modal-kicker {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #00AAFF;
  margin: 0 0 4px;
}
.compare-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #0033CC;
  font-weight: 800;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .compare-modal-head h2 { font-size: 1.35rem; }
}
.compare-modal-sub {
  margin: 6px 0 0;
  color: #5a6b85;
  font-size: .84rem;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .compare-modal-sub { display: none; }
}
.compare-modal-close {
  appearance: none;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e8f0ff;
  color: #0033CC;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.compare-modal-body { padding: 12px 14px 18px; }
@media (min-width: 768px) {
  .compare-modal-body { padding: 16px 20px 22px; }
}
.compare-selected {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
@media (min-width: 640px) {
  .compare-selected { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .compare-selected { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.compare-card {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  padding-right: 36px;
  border: 1px solid rgba(0,51,204,.12);
  border-radius: 14px;
  background: #f8fbff;
}
.compare-card img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  background: #e8f4ff;
  flex-shrink: 0;
}
.compare-card-body { min-width: 0; }
.compare-card-body strong {
  display: block;
  color: #0b1b3a;
  font-size: .9rem;
  line-height: 1.3;
}
.compare-card-body span {
  display: block;
  margin-top: 2px;
  color: #5a6b85;
  font-size: .78rem;
}
.compare-card-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #be123c;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.compare-picker {
  border: 1px solid rgba(0,51,204,.1);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  margin-bottom: 14px;
}
@media (min-width: 768px) {
  .compare-picker { padding: 12px; }
}
.compare-picker-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
@media (min-width: 640px) {
  .compare-picker-head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}
.compare-picker-head input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d6e4f5;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
}
@media (min-width: 640px) {
  .compare-picker-head input {
    flex: 1;
    min-width: 180px;
    width: auto;
    font-size: inherit;
  }
}
.compare-picker-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: min(38vh, 260px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) {
  .compare-picker-list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    max-height: 220px;
  }
}
.compare-pick-item {
  appearance: none;
  border: 1px solid #d6e4f5;
  border-radius: 12px;
  background: #fff;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  min-height: 56px;
}
.compare-pick-item:hover { border-color: #0033CC; }
.compare-pick-item.is-on {
  border-color: #0033CC;
  background: #eef4ff;
}
.compare-pick-item:disabled { opacity: .45; cursor: not-allowed; }
.compare-pick-item img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.compare-pick-meta { flex: 1; min-width: 0; }
.compare-pick-meta strong {
  display: block;
  font-size: .85rem;
  color: #0b1b3a;
  line-height: 1.25;
}
.compare-pick-meta small {
  color: #7a8ba5;
  font-size: .72rem;
}
.compare-pick-action {
  font-size: .75rem;
  font-weight: 800;
  color: #0033CC;
  flex-shrink: 0;
}
.compare-hint { color: #7a8ba5; font-size: .9rem; margin: 0; }
.compare-empty {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: #f4f8ff;
  color: #5a6b85;
  text-align: center;
  font-size: .9rem;
}
.compare-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding-bottom: 4px;
}
.compare-live-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .82rem;
  border: 1px solid rgba(0,51,204,.12);
  border-radius: 12px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .compare-live-table {
    min-width: 640px;
    font-size: .88rem;
  }
}
.compare-live-table th,
.compare-live-table td {
  border-top: 1px solid rgba(0,51,204,.1);
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
}
@media (min-width: 768px) {
  .compare-live-table th,
  .compare-live-table td { padding: 10px 12px; }
}
.compare-live-table thead th {
  background: #0033CC;
  color: #fff;
  font-weight: 700;
}
.compare-live-table thead th a { color: #fff; text-decoration: underline; }
.compare-live-table tbody td:first-child,
.compare-live-table tbody th {
  background: rgba(232,244,255,.65);
  font-weight: 700;
  color: #0033CC;
  width: 110px;
  position: sticky;
  left: 0;
  z-index: 1;
}
@media (min-width: 768px) {
  .compare-live-table tbody td:first-child { width: 140px; }
}
.compare-td-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}
@media (min-width: 768px) {
  .compare-td-img { width: 72px; height: 72px; }
}
.compare-td-specs {
  white-space: pre-wrap;
  line-height: 1.45;
  color: rgba(11,27,58,.8);
}
[data-compare-id].is-compare-on {
  background: #e8f0ff !important;
}
@media (max-width: 640px) {
  .compare-bar-inner { padding: 8px 12px; }
  .compare-bar-label { font-size: .82rem; }
  .compare-bar-btn { padding: 7px 10px; font-size: .8rem; }
}

/* Careers page */
.careers-hero-img {
  animation: careersKenBurns 18s ease-in-out infinite alternate;
}
@keyframes careersKenBurns {
  from { transform: scale(1.05) translate3d(0,0,0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
.career-card {
  transform: translateY(10px);
  opacity: 0;
  animation: careerRise .7s ease forwards;
}
.career-job {
  transform: translateY(12px);
  opacity: 0;
  animation: careerRise .65s ease forwards;
}
@keyframes careerRise {
  to { transform: none; opacity: 1; }
}
.content-card {
  opacity: 0;
  transform: translateY(14px);
  animation: careerRise .65s ease forwards;
}
@media (max-width: 640px) {
  .edit-bar { font-size: 0.78rem; gap: 8px; }
  .flip-wrap { min-height: 360px; }
  footer { margin-top: 3rem; }
}
