/* =========================================================
   ORDER.INDUCLOC.COM — Unified Dark/Light Theme + 5-Lang Bar
   ========================================================= */

html,
body {
  overflow-x: clip;
}

/* Suppress Google Translate top banner & layout shift */
html.translated-ltr body,
html.translated-rtl body,
body {
  top: 0 !important;
}
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
#ouc-gt-mount {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Header Inline Controls */
.ouc-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 60;
  flex-shrink: 0;
}

.ouc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line, #e4dfd3);
  background: var(--white, #ffffff);
  color: var(--ink, #14213d);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.ouc-btn:hover,
.ouc-btn:focus-visible {
  border-color: var(--gold, #e3a008);
  outline: none;
}

.ouc-btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.ouc-lang-wrap {
  position: relative;
  display: inline-flex;
}

.ouc-lang-chevron {
  width: 12px !important;
  height: 12px !important;
  opacity: 0.7;
}

.ouc-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 176px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line, #e4dfd3);
  background: var(--white, #ffffff);
  box-shadow: 0 18px 42px -12px rgba(11, 21, 38, 0.28);
  display: grid;
  gap: 3px;
  z-index: 200;
}

.ouc-lang-menu[hidden] {
  display: none !important;
}

.ouc-lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #14213d;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.ouc-lang-opt:hover {
  background: #f1f5f9;
}

.ouc-lang-opt.is-active {
  background: #14213d;
  color: #ffffff;
}

.ouc-lang-code {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.78;
}

/* Dark Header Variant (when mounted inside dark .site-header on subpages) */
.site-header .ouc-btn {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  height: 40px;
}
.site-header .ouc-btn:hover {
  border-color: var(--gold, #e3a008);
  background: rgba(255, 255, 255, 0.14);
}

/* Compact & Mobile Controls */
@media (max-width: 1160px) {
  .ouc-theme-label {
    display: none;
  }
  .ouc-btn--theme {
    width: 34px;
    padding: 0;
  }
}
@media (max-width: 760px) {
  .ouc-btn--theme {
    width: 36px;
    padding: 0;
  }
  .ouc-btn {
    padding: 0 9px;
    height: 34px;
    font-size: 12px;
  }
}

.ouc-mobile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, #e4dfd3);
}

/* Dark theme control button appearance */
html[data-theme="dark"] .ouc-btn {
  background: #1d2d47;
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}
html[data-theme="dark"] .ouc-btn:hover {
  background: #273c5d;
  border-color: var(--gold, #e3a008);
}
html[data-theme="dark"] .ouc-lang-menu {
  background: #162338;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}
html[data-theme="dark"] .ouc-lang-opt {
  color: #e2e8f0;
}
html[data-theme="dark"] .ouc-lang-opt:hover {
  background: #223450;
}
html[data-theme="dark"] .ouc-lang-opt.is-active {
  background: var(--gold, #e3a008);
  color: #0b1526;
}

/* =========================================================
   DARK MODE — HOMEPAGE (order.inducloc.com/) & ORDER TICKET
   ========================================================= */
html[data-theme="dark"] body.page-home {
  --ink: #f1f5f9;
  --ink-dark: #070e1a;
  --ink-tint: #1d2d47;
  --gold: #f5b31a;
  --gold-dark: #fbbf24;
  --paper: #0b1526;
  --paper-alt: #111c30;
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --line: rgba(255, 255, 255, 0.14);
  --white: #162338;
  background: var(--paper);
  color: var(--text);
}

html[data-theme="dark"] body.page-home .topbar {
  background: #060c17;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] body.page-home .topbar a:hover {
  color: #fbbf24;
}

html[data-theme="dark"] body.page-home header.main {
  background: rgba(11, 21, 38, 0.94);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] body.page-home .btn-primary {
  background: var(--gold, #f5b31a);
  color: #0b1526;
  border-color: var(--gold, #f5b31a);
}
html[data-theme="dark"] body.page-home .btn-primary:hover {
  background: #ffd15c;
  color: #0b1526;
}

html[data-theme="dark"] body.page-home .btn-ghost {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.28);
}
html[data-theme="dark"] body.page-home .btn-ghost:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

html[data-theme="dark"] body.page-home .car-nav {
  background: #1b2a42;
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}
html[data-theme="dark"] body.page-home .car-nav:hover {
  border-color: #fbbf24;
  background: #233654;
}

/* Hero Overlay, Stats Band & Floating Contact Dark Contrast */
html[data-theme="dark"] body.page-home .hero-overlay::before {
  background: linear-gradient(90deg, rgba(11, 21, 38, 0.94) 0%, rgba(11, 21, 38, 0.78) 44%, rgba(11, 21, 38, 0.1) 72%);
}
html[data-theme="dark"] body.page-home .hero h1,
html[data-theme="dark"] body.page-home .hero .trust-item {
  color: #f8fafc;
}
html[data-theme="dark"] body.page-home .hero p.lead {
  color: #e2e8f0;
}
html[data-theme="dark"] body.page-home .hero-slider {
  background: #111c30;
}
html[data-theme="dark"] body.page-home .stats-band .wrap {
  background: #162338;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
html[data-theme="dark"] body.page-home .stat-num {
  color: #f8fafc;
}
html[data-theme="dark"] body.page-home .stat-label {
  color: #cbd5e1;
}
html[data-theme="dark"] .idl-float-btn--call {
  background: #162338 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}
html[data-theme="dark"] .idl-float-btn--call:hover {
  background: #1e3150 !important;
  border-color: var(--gold, #f5b31a) !important;
}
html[data-theme="dark"] .idl-mobile-sticky-bar {
  background: #0b1526 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .idl-mobile-price-label {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .idl-mobile-price-val {
  color: #fde68a !important;
}

html[data-theme="dark"] body.page-home .cat-card,
html[data-theme="dark"] body.page-home .prod-card,
html[data-theme="dark"] body.page-home .sale-card,
html[data-theme="dark"] body.page-home .ind-card,
html[data-theme="dark"] body.page-home .know-card,
html[data-theme="dark"] body.page-home .ai-tool-card,
html[data-theme="dark"] body.page-home .machine-card,
html[data-theme="dark"] body.page-home .location-card,
html[data-theme="dark"] body.page-home .fanpage-feed-note {
  background: #162338;
  border-color: rgba(255, 255, 255, 0.14);
}
html[data-theme="dark"] body.page-home .prod-card:hover .prod-body h3 {
  color: #fbbf24;
}
html[data-theme="dark"] body.page-home .social-link {
  background: #1d2d47;
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}
html[data-theme="dark"] body.page-home .proof-frame {
  background: #111c30;
  border-color: rgba(255, 255, 255, 0.2);
}
html[data-theme="dark"] body.page-home .cd-unit {
  background: #1d2d47;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
html[data-theme="dark"] body.page-home .faq-section {
  background: #0e1829;
}
html[data-theme="dark"] body.page-home .faq-item summary h3 {
  color: #f8fafc;
}
html[data-theme="dark"] body.page-home .faq-a strong {
  color: #ffffff;
}
html[data-theme="dark"] body.page-home footer {
  background: #060c17;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] body.page-home .foot-logo,
html[data-theme="dark"] body.page-home footer h4 {
  color: #ffffff;
}

/* Order Ticket Form Dark Mode (#dat-in-online) */
html[data-theme="dark"] .ot-card,
html[data-theme="dark"] .ot-box,
html[data-theme="dark"] .ot-review-dialog,
html[data-theme="dark"] .ot-success-card {
  background: #162338;
  border-color: rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
}
html[data-theme="dark"] .ot-card-head,
html[data-theme="dark"] .ot-finish-head,
html[data-theme="dark"] .ot-steps-bar {
  background: #111c30;
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] .ot-num {
  background: var(--gold, #f5b31a);
  color: #0b1526;
}
html[data-theme="dark"] .ot-field label {
  color: #e2e8f0;
}
html[data-theme="dark"] .ot-field input,
html[data-theme="dark"] .ot-field select,
html[data-theme="dark"] .ot-field textarea {
  background: #0d1728;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.22);
}
html[data-theme="dark"] .ot-field input::placeholder,
html[data-theme="dark"] .ot-field textarea::placeholder {
  color: #94a3b8;
}
html[data-theme="dark"] .ot-quick,
html[data-theme="dark"] .ot-chip,
html[data-theme="dark"] .ot-choice,
html[data-theme="dark"] .ot-finish-pill,
html[data-theme="dark"] .ot-action {
  background: #1d2d47;
  border-color: rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
}
html[data-theme="dark"] .ot-quick.is-active,
html[data-theme="dark"] .ot-chip.is-active,
html[data-theme="dark"] .ot-choice:has(input:checked),
html[data-theme="dark"] .ot-steps-bar .is-done span {
  background: var(--gold, #f5b31a);
  border-color: var(--gold, #f5b31a);
  color: #0b1526;
}
html[data-theme="dark"] .ot-design-callout,
html[data-theme="dark"] .ot-flash-box {
  background: #2a2415 !important;
  border-color: #926d18 !important;
  color: #fde68a !important;
}
html[data-theme="dark"] .ot-summary {
  background: #111c30;
  border-color: rgba(255, 255, 255, 0.16);
}
html[data-theme="dark"] .ot-submit {
  background: var(--gold, #f5b31a);
  color: #0b1526;
}
html[data-theme="dark"] .ot-submit:hover {
  background: #ffd15c;
}
html[data-theme="dark"] .ot-login {
  color: #fde68a;
  border-color: rgba(253, 230, 138, 0.35);
}

/* Quote Drawer Dark Mode */
html[data-theme="dark"] .quote-drawer {
  background: #162338;
  color: #f1f5f9;
}
html[data-theme="dark"] .quote-drawer-head,
html[data-theme="dark"] .quote-drawer-progress,
html[data-theme="dark"] .quote-drawer-footer,
html[data-theme="dark"] .qd-section {
  background: #111c30;
  border-color: rgba(255, 255, 255, 0.14);
}
html[data-theme="dark"] .qd-field input,
html[data-theme="dark"] .qd-field select,
html[data-theme="dark"] .qd-field textarea,
html[data-theme="dark"] .qd-search input,
html[data-theme="dark"] .qd-search-results,
html[data-theme="dark"] .qd-search-results button,
html[data-theme="dark"] .qd-action {
  background: #0d1728;
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}
html[data-theme="dark"] .qd-item {
  background: #1a2a42;
  border-color: rgba(255, 255, 255, 0.16);
}
html[data-theme="dark"] .qd-estimate {
  background: #102b24;
  border-color: #1f5e4d;
  color: #d1fae5;
}
html[data-theme="dark"] .qd-product-picked .qd-product-name {
  color: #fde68a !important;
}

/* =========================================================
   DARK MODE — LOOKUP (/tra-cuu-don-hang) & PORTAL (/dang-nhap)
   ========================================================= */
html[data-theme="dark"] body:has(.portal-shell) {
  --ink: #f1f5f9;
  --muted: #cbd5e1;
  --line: rgba(255, 255, 255, 0.14);
  --paper: #0b1526;
  --white: #162338;
  --accent: #f5b31a;
  background: #0b1526;
  color: #f1f5f9;
}
html[data-theme="dark"] .portal-header {
  background: #111c30;
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
html[data-theme="dark"] .brand-mark {
  background: #f5b31a;
  color: #0b1526;
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .list-row,
html[data-theme="dark"] .wq-card,
html[data-theme="dark"] .guest-order,
html[data-theme="dark"] .member-prompt,
html[data-theme="dark"] .action-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .filter-tab,
html[data-theme="dark"] .portal-nav a.active,
html[data-theme="dark"] .portal-nav a:hover {
  background: #162338;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
}
html[data-theme="dark"] .portal-shell .auth {
  background-color: #162338;
}
html[data-theme="dark"] .portal-shell .field input,
html[data-theme="dark"] .portal-shell .field select,
html[data-theme="dark"] .order-request-form textarea {
  background: #0d1728;
  border-color: rgba(255, 255, 255, 0.22);
  color: #f8fafc;
}
html[data-theme="dark"] .portal-shell .btn-primary,
html[data-theme="dark"] .portal-nav a.nav-primary {
  background: #f5b31a;
  color: #0b1526;
}
html[data-theme="dark"] .portal-shell .btn-secondary,
html[data-theme="dark"] .portal-shell .google-action {
  background: #1d2d47;
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}
html[data-theme="dark"] .portal-shell .step-number {
  background: #233554;
  color: #fde68a;
}
html[data-theme="dark"] .portal-shell .notice {
  background: #2b2414;
  border-color: #8a6b19;
  color: #fde68a;
}
html[data-theme="dark"] .portal-shell .badge.neutral {
  background: #223450;
  color: #cbd5e1;
}
html[data-theme="dark"] .portal-shell .guest-status {
  background: #123828;
  color: #86efac;
}

/* =========================================================
   DARK MODE — ORDER CONFIRMATION (/xac-nhan-don)
   ========================================================= */
html[data-theme="dark"] body:has(.confirm-shell) {
  --navy: #f8fafc;
  --ink: #f1f5f9;
  --muted: #cbd5e1;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #f5b31a;
  --cream: #162338;
  background: #0b1526;
  color: #f1f5f9;
}
html[data-theme="dark"] .confirm-card,
html[data-theme="dark"] .brand-bar,
html[data-theme="dark"] .customer-strip div {
  background: #162338;
  border-color: rgba(255, 255, 255, 0.14);
}
html[data-theme="dark"] .confirm-shell .brand-mark {
  background: #f5b31a;
  color: #0b1526;
}
html[data-theme="dark"] .confirm-shell .order-code,
html[data-theme="dark"] .confirm-shell .confirm-form,
html[data-theme="dark"] .confirm-shell .price-card,
html[data-theme="dark"] .confirm-shell .notice,
html[data-theme="dark"] .confirm-shell .change-form,
html[data-theme="dark"] .confirm-shell .success-next {
  background: #111c30;
  border-color: rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}
html[data-theme="dark"] .confirm-shell input,
html[data-theme="dark"] .confirm-shell textarea,
html[data-theme="dark"] .confirm-shell .outline-button {
  background: #0d1728;
  border-color: rgba(255, 255, 255, 0.22);
  color: #f8fafc;
}
html[data-theme="dark"] .confirm-shell .primary-button,
html[data-theme="dark"] .confirm-shell .dark-button {
  background: #f5b31a;
  color: #0b1526;
}
html[data-theme="dark"] .confirm-shell .term-line span {
  color: #cbd5e1;
}
