/* ==========================================================================
   F3KF3K.COM × TAir Global Site Shell, Mega Model Navigator, Multi-Currency,
   Standalone Cart, Dual-Mode Checkout & WeChat User Center Styles (v10.0)
   Follows 96/4 Serene Sky & CarboLine Restraint Design System
   ========================================================================== */

:root {
  --shell-bg: rgba(216, 226, 238, 0.96);
  --shell-card: #e5ecf4;
  --shell-subtle: #d7e1ee;
  --shell-subtle-2: #c9d5e6;
  --shell-border: #b6c5da;
  --shell-ink-900: #16202e;
  --shell-ink-700: #334357;
  --shell-ink-500: #55677f;
  --shell-accent: #1d5bbf;
  --shell-accent-hover: #164899;
  --shell-accent-soft: rgba(29, 91, 191, 0.12);
  --shell-accent-border: rgba(29, 91, 191, 0.30);
  --shell-green: #1b7f37;
  --shell-green-soft: rgba(27, 127, 55, 0.12);
  --shell-amber: #a14b08;
  --shell-amber-soft: rgba(217, 119, 6, 0.14);
  --shell-shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.20);
  --shell-shadow-md: 0 10px 26px rgba(15, 23, 42, 0.10);

  /* Refined Mega Menu Palette (Harmonized Slate-Mist in Light Mode) */
  --mega-panel-bg: linear-gradient(180deg, #dae4f0 0%, #e3ebf5 100%);
  --mega-sidebar-bg: #cfdbe9;
  --mega-card-bg: #ebf0f7;
  --mega-card-hover-bg: #f1f5fb;
  --mega-border: #b2c2d8;
  --mega-top-accent: #2b6cb0;
}

html.theme-dark-root body,
body.theme-dark {
  --shell-bg: rgba(17, 24, 35, 0.96);
  --shell-card: #16202e;
  --shell-subtle: #1d293b;
  --shell-subtle-2: #25344b;
  --shell-border: #2c3d56;
  --shell-ink-900: #e9eff7;
  --shell-ink-700: #c5d1e1;
  --shell-ink-500: #899bb3;
  --shell-accent: #58a6ff;
  --shell-accent-hover: #3b82f6;
  --shell-accent-soft: rgba(88, 166, 255, 0.15);
  --shell-accent-border: rgba(88, 166, 255, 0.36);
  --shell-green: #4ade80;
  --shell-green-soft: rgba(74, 222, 128, 0.15);
  --shell-amber: #fbbf24;
  --shell-amber-soft: rgba(251, 191, 36, 0.16);
  --shell-shadow-lg: 0 28px 68px rgba(0, 0, 0, 0.65);
  --shell-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);

  /* Refined Mega Menu Palette (Deep Carbon-Slate in Dark Mode) */
  --mega-panel-bg: linear-gradient(180deg, #131d2b 0%, #182436 100%);
  --mega-sidebar-bg: #0f1723;
  --mega-card-bg: #1d2a3d;
  --mega-card-hover-bg: #233349;
  --mega-border: #2b3e58;
  --mega-top-accent: #58a6ff;
}

.f3k-ico {
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
}

/* 1. Top Global Horizon & Spacious Main Navigation Bar */
.f3k-global-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--shell-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--shell-border);
  transition: background 0.2s, border-color 0.2s;
}

.f3k-horizon-hairline {
  height: 2.5px;
  width: 100%;
  background: linear-gradient(90deg, #d02c27 0%, #ec6830 18%, #e9bf2c 36%, #3ea049 54%, #2765a1 74%, #534e8e 100%);
}

.f3k-header-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 10px 18px;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.f3k-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.f3k-brand-home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--shell-ink-900);
  flex-shrink: 0;
  padding: 4px 6px 4px 2px;
  border-radius: 10px;
}

.f3k-brand-home .f3k-emblem-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.f3k-brand-home .tair-wordmark-icon {
  height: 25px;
  width: auto;
}

.f3k-brand-divider {
  width: 1px;
  height: 18px;
  background: var(--shell-border);
}

.f3k-brand-domain {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--shell-ink-900);
}

/* Primary Nav Triggers */
.f3k-primary-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.f3k-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1.5px solid var(--shell-accent-border);
  background: var(--shell-accent-soft);
  color: var(--shell-ink-900);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.f3k-mega-trigger:hover,
.f3k-mega-trigger.is-open {
  background: var(--shell-accent);
  border-color: var(--shell-accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(26, 115, 232, 0.24);
}

.f3k-mega-trigger .cur-model-pill {
  font-size: 14px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--shell-card);
  color: var(--shell-accent);
  border: 1px solid var(--shell-accent-border);
}

.f3k-mega-trigger:hover .cur-model-pill,
.f3k-mega-trigger.is-open .cur-model-pill {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.f3k-mega-trigger .chev {
  transition: transform 0.2s ease;
}

.f3k-mega-trigger.is-open .chev {
  transform: rotate(180deg);
}

.f3k-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--shell-ink-700);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.f3k-nav-link:hover {
  background: var(--shell-subtle);
  color: var(--shell-ink-900);
}

.f3k-nav-link.active {
  background: var(--shell-subtle);
  border-color: var(--shell-border);
  color: var(--shell-ink-900);
  font-weight: 700;
}

/* Right Actions: Currency, Cart, WeChat User, Theme, Lang, Admin */
.f3k-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.f3k-currency-seg {
  display: inline-flex;
  align-items: center;
  background: var(--shell-subtle);
  border: 1px solid var(--shell-border);
  border-radius: 10px;
  padding: 2px;
  gap: 1px;
}

.f3k-curr-btn {
  border: none;
  background: transparent;
  color: var(--shell-ink-700);
  font-size: 13.5px;
  font-weight: 700;
  padding: 5px 7px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.f3k-curr-btn:hover {
  color: var(--shell-ink-900);
}

.f3k-curr-btn.active {
  background: var(--shell-card);
  color: var(--shell-accent);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.f3k-shell-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--shell-border);
  background: var(--shell-card);
  color: var(--shell-ink-700);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s;
}

.f3k-shell-btn:hover {
  background: var(--shell-subtle);
  color: var(--shell-ink-900);
  border-color: var(--shell-ink-500);
}

.f3k-shell-btn.user-btn.logged-in {
  border-color: var(--shell-accent-border);
  background: var(--shell-accent-soft);
  color: var(--shell-ink-900);
}

.f3k-user-avatar-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--shell-accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.f3k-user-avatar-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.f3k-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--shell-accent);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
}

@media (max-width: 1580px) {
  .f3k-header-inner {
    padding: 9px 14px;
    gap: 8px;
  }
  .f3k-brand-divider,
  .f3k-brand-domain {
    display: none;
  }
  .f3k-primary-nav {
    gap: 3px;
  }
  .f3k-nav-link {
    padding: 0 8px;
    font-size: 14.5px;
    height: 36px;
  }
  .f3k-mega-trigger {
    padding: 0 11px;
    height: 38px;
    font-size: 14.5px;
    gap: 6px;
  }
  .f3k-curr-btn {
    padding: 4px 6px;
    font-size: 13px;
  }
  .f3k-shell-btn {
    padding: 0 9px;
    height: 36px;
    font-size: 13.5px;
    gap: 5px;
  }
}

/* ==========================================================================
   2. Full-Width Mega Model Comparison Panel (Categorized + Real Photos)
   ========================================================================== */
.f3k-mega-backdrop {
  position: fixed;
  inset: 0;
  top: 68px;
  z-index: 115;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(3px);
  display: none;
}

.f3k-mega-backdrop.open {
  display: block;
}

.f3k-mega-panel {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--shell-card);
  border: 1px solid var(--shell-border);
  border-top: none;
  border-radius: 0 0 22px 22px;
  box-shadow: var(--shell-shadow-lg);
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  padding: 18px 24px 24px;
}

.f3k-mega-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--shell-border);
  flex-wrap: wrap;
}

.f3k-mega-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.f3k-mega-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--shell-border);
  background: var(--shell-subtle);
  color: var(--shell-ink-700);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s;
}

.f3k-mega-cat-tab:hover {
  color: var(--shell-ink-900);
  border-color: var(--shell-ink-500);
}

.f3k-mega-cat-tab.active {
  background: var(--shell-accent);
  border-color: var(--shell-accent);
  color: #ffffff;
}

.f3k-mega-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--shell-ink-500);
}

.f3k-mega-section {
  margin-bottom: 22px;
}

.f3k-mega-section:last-child {
  margin-bottom: 0;
}

.f3k-mega-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 11px;
  gap: 10px;
}

.f3k-mega-sec-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--shell-ink-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.f3k-mega-sec-sub {
  font-size: 14px;
  color: var(--shell-ink-500);
}

.f3k-mega-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}

.f3k-mega-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.f3k-mega-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.f3k-model-card {
  display: flex;
  flex-direction: column;
  background: var(--shell-card);
  border: 1.5px solid var(--shell-border);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.f3k-model-card:hover {
  transform: translateY(-2px);
  border-color: var(--shell-accent);
  box-shadow: var(--shell-shadow-md);
}

.f3k-model-card.is-current {
  border-color: var(--shell-accent);
  box-shadow: 0 0 0 2px var(--shell-accent-soft);
}

.f3k-mc-media {
  position: relative;
  aspect-ratio: 16 / 9.2;
  background: #0f172a;
  overflow: hidden;
}

.f3k-mc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.f3k-model-card:hover .f3k-mc-media img {
  transform: scale(1.04);
}

.f3k-mc-badge-top {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.f3k-mc-badge-top.is-2p {
  background: rgba(26, 115, 232, 0.9);
}

.f3k-mc-badge-top.is-rudderless {
  background: rgba(180, 83, 9, 0.9);
}

.f3k-mc-price-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.f3k-mc-body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.f3k-mc-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.f3k-mc-name {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--shell-ink-900);
}

.f3k-mc-tag {
  font-size: 13.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--shell-subtle);
  color: var(--shell-ink-700);
}

.f3k-mc-diff {
  font-size: 14px;
  color: var(--shell-ink-700);
  line-height: 1.45;
  min-height: 34px;
}

.f3k-mc-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}

.f3k-mc-spec-chip {
  font-size: 13.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--shell-subtle);
  color: var(--shell-ink-700);
  border: 1px solid var(--shell-border);
}

.f3k-mc-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--shell-border);
}

.f3k-mc-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.f3k-mc-btn.primary {
  background: var(--shell-accent);
  color: #ffffff;
}

.f3k-mc-btn.primary:hover {
  background: var(--shell-accent-hover);
}

.f3k-mc-btn.ghost {
  background: var(--shell-subtle);
  color: var(--shell-ink-700);
  border-color: var(--shell-border);
  flex: 0 0 auto;
}

.f3k-mc-btn.ghost:hover {
  color: var(--shell-ink-900);
  border-color: var(--shell-ink-500);
}

/* ==========================================================================
   3. Slide-Over Drawers & Unified Modals (GPU-Accelerated, Zero SVG Blur Stall)
   ========================================================================== */
@keyframes f3kDialogIn {
  from { opacity: 0; transform: translate3d(0, 8px, 0) scale(0.988); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes f3kDrawerIn {
  from { opacity: 0.65; transform: translate3d(22px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.f3k-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  /* Pure translucent scrim without full-viewport backdrop-filter so heavy SVG <filter> canvases never stall GPU compositing */
  background: rgba(11, 18, 30, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.f3k-overlay.open {
  display: flex;
}

.f3k-drawer-overlay {
  justify-content: flex-end;
  padding: 0;
}

.f3k-drawer {
  width: 100%;
  max-width: 496px;
  height: 100vh;
  background: var(--shell-card);
  color: var(--shell-ink-900);
  border-left: 1px solid var(--shell-border);
  box-shadow: var(--shell-shadow-lg);
  display: flex;
  flex-direction: column;
  contain: layout style;
  will-change: transform, opacity;
}

.f3k-overlay.open .f3k-drawer {
  animation: f3kDrawerIn 0.135s cubic-bezier(0.16, 1, 0.3, 1);
}

.f3k-dialog {
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  background: var(--shell-card);
  color: var(--shell-ink-900);
  border: 1px solid var(--shell-border);
  border-radius: 20px;
  box-shadow: var(--shell-shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  contain: layout style;
  will-change: transform, opacity;
}

.f3k-overlay.open .f3k-dialog {
  animation: f3kDialogIn 0.13s cubic-bezier(0.16, 1, 0.3, 1);
}

.f3k-dialog.wide {
  max-width: 920px;
}

.f3k-dlg-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--shell-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.f3k-dlg-title {
  font-size: 18.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.f3k-dlg-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--shell-border);
  background: var(--shell-subtle);
  color: var(--shell-ink-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.f3k-dlg-body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
}

.f3k-dlg-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--shell-border);
  background: var(--shell-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Cart Items */
.f3k-cart-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--shell-ink-500);
}

.f3k-cart-item {
  border: 1px solid var(--shell-border);
  border-radius: 13px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--shell-card);
}

.f3k-ci-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.f3k-ci-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--shell-ink-900);
}

.f3k-ci-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  color: var(--shell-ink-500);
  margin-top: 4px;
  word-break: break-all;
}

.f3k-ci-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--shell-border);
}

/* Foreign Currency Tax + Express Notice Box */
.f3k-fx-bill-card {
  background: var(--shell-subtle);
  border: 1px solid var(--shell-border);
  border-radius: 14px;
  padding: 13px 16px;
  margin: 12px 0;
}

.f3k-fx-bill-card.is-foreign {
  border-color: var(--shell-accent-border);
  background: var(--shell-accent-soft);
}

.f3k-bill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--shell-ink-700);
  padding: 4px 0;
}

.f3k-bill-row.total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--shell-border);
  font-size: 18.5px;
  font-weight: 800;
  color: var(--shell-ink-900);
}

/* Checkout Contact & Address Form */
.f3k-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.f3k-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.f3k-field.full {
  grid-column: 1 / -1;
}

.f3k-field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--shell-ink-700);
  display: flex;
  align-items: center;
  gap: 5px;
}

.f3k-field label .req {
  color: #dc2626;
}

.f3k-input,
.f3k-textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--shell-border);
  background: var(--shell-card);
  color: var(--shell-ink-900);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.f3k-input:focus,
.f3k-textarea:focus {
  border-color: var(--shell-accent);
}

.f3k-input.invalid,
.f3k-textarea.invalid {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.04);
}

.f3k-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 11px;
  border: none;
  background: var(--shell-accent);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s;
}

.f3k-btn-primary:hover {
  background: var(--shell-accent-hover);
}

.f3k-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 11px;
  border: 1.5px solid var(--shell-accent-border);
  background: var(--shell-accent-soft);
  color: var(--shell-accent);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s;
}

.f3k-btn-outline:hover {
  background: var(--shell-accent);
  color: #ffffff;
}

/* WeChat Auto-Login Banner & User Center Tabs */
.f3k-wx-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 13px;
  background: var(--shell-green-soft);
  border: 1px solid rgba(30, 142, 62, 0.28);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.f3k-wx-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 10px;
  border: none;
  background: #1e8e3e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.f3k-uc-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--shell-border);
  padding-bottom: 10px;
}

.f3k-uc-tab {
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--shell-ink-700);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.f3k-uc-tab.active {
  background: var(--shell-accent-soft);
  border-color: var(--shell-accent-border);
  color: var(--shell-accent);
}

.f3k-order-card {
  border: 1px solid var(--shell-border);
  border-radius: 13px;
  padding: 13px 15px;
  margin-bottom: 11px;
  background: var(--shell-card);
}

.f3k-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.f3k-status-pill.unpaid {
  background: var(--shell-amber-soft);
  color: var(--shell-amber);
}

.f3k-status-pill.paid {
  background: var(--shell-green-soft);
  color: var(--shell-green);
}

/* Studio Quote Dock Dual Buttons */
.quote-cta-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.add-cart-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s;
}

.add-cart-cta:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1420px) {
  .f3k-nav-link.hide-tablet {
    display: none;
  }
}

@media (max-width: 1220px) {
  .f3k-header-inner {
    flex-wrap: wrap;
  }
  .f3k-mega-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .f3k-header-inner {
    padding: 8px 12px;
    flex-wrap: wrap;
  }
  .f3k-mega-grid,
  .f3k-mega-grid.cols-3,
  .f3k-mega-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .f3k-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .f3k-mega-grid,
  .f3k-mega-grid.cols-3,
  .f3k-mega-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

/* === v10.1 Clean Business Mega Dropdown & Chinese Typography Overrides === */
.f3k-header-inner {
  min-height: 70px;
  max-width: 1600px;
}
.f3k-mega-trigger {
  height: 44px;
  font-size: 15px;
  padding: 0 15px;
}
.f3k-mega-trigger .cur-model-pill {
  font-size: 13.5px;
  padding: 2px 9px;
}
.f3k-nav-link {
  height: 42px;
  font-size: 15px;
  padding: 0 12px;
}
.f3k-curr-btn {
  font-size: 13px;
  padding: 6px 9px;
}
.f3k-shell-btn {
  height: 40px;
  font-size: 14.5px;
  padding: 0 12px;
}

.f3k-mega-panel {
  max-width: 1380px;
  margin: 0 auto;
  padding: 22px 28px 26px;
  border-radius: 0 0 18px 18px;
  background: var(--shell-card);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}
.f3k-mega-section {
  margin-bottom: 18px;
}
.f3k-mega-section:last-child {
  margin-bottom: 0;
}
.f3k-mega-sec-head {
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--shell-border);
}
.f3k-mega-sec-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--shell-ink-500);
}
.f3k-mega-bottom-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  margin-top: 18px;
}
.f3k-mega-bottom-split .f3k-mega-section {
  margin-bottom: 0;
}
.f3k-mega-grid.cols-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.f3k-mega-grid.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.f3k-mega-grid.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.f3k-model-card {
  border: 1px solid var(--shell-border);
  border-radius: 12px;
  background: var(--shell-card);
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.f3k-model-card:hover {
  border-color: var(--shell-accent);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.f3k-model-card.is-current {
  border-color: var(--shell-accent);
  box-shadow: 0 0 0 2px var(--shell-accent-soft);
}
.f3k-mc-clean-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.f3k-mc-media {
  aspect-ratio: 16 / 10;
  background: var(--shell-subtle);
  overflow: hidden;
}
.f3k-mc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.f3k-model-card:hover .f3k-mc-media img {
  transform: scale(1.03);
}
.f3k-mc-body {
  padding: 10px 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.f3k-mc-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.f3k-mc-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--shell-ink-900);
}
.f3k-mc-price {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--shell-accent);
}
.f3k-mc-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.f3k-mc-brief {
  font-size: 13.5px;
  color: var(--shell-ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.f3k-mc-doc-hint {
  font-size: 13px;
  font-weight: 600;
  color: var(--shell-ink-700);
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--shell-subtle);
  flex-shrink: 0;
}
.f3k-mc-doc-hint:hover {
  color: var(--shell-accent);
  background: var(--shell-accent-soft);
}

.f3k-input, .f3k-textarea {
  font-size: 15.5px;
  padding: 10px 13px;
}
.f3k-field label {
  font-size: 14.5px;
}

@media (max-width: 1100px) {
  .f3k-mega-grid.cols-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .f3k-mega-bottom-split {
    grid-template-columns: 1fr;
  }
}

/* === v10.3 F3KF3K Portal Nav & Categorized Sidebar Mega Menu === */
.f3k-header-inner {
  min-height: 68px;
  max-width: 1580px;
  padding: 8px 20px;
  gap: 12px;
}
.f3k-header-left {
  gap: 14px;
}
.f3k-brand-domain {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--shell-ink-900);
}
.f3k-primary-nav {
  gap: 4px;
}
.f3k-nav-link {
  height: 40px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
}
.f3k-nav-link.active {
  background: var(--shell-accent-soft);
  border-color: var(--shell-accent-border);
  color: var(--shell-accent);
  font-weight: 700;
}
.f3k-mega-trigger {
  height: 40px;
  padding: 0 13px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid var(--shell-border);
  background: var(--shell-subtle);
  color: var(--shell-ink-900);
}
.f3k-mega-trigger.is-store-active {
  border-color: var(--shell-accent-border);
  background: var(--shell-accent-soft);
}
.f3k-mega-trigger:hover,
.f3k-mega-trigger.is-open {
  background: var(--shell-accent);
  border-color: var(--shell-accent);
  color: #ffffff;
}

.f3k-mega-panel {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 24px 24px;
  border-radius: 0 0 18px 18px;
}
.f3k-mega-split-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.f3k-mega-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 18px;
  border-right: 1px solid var(--shell-border);
}
.f3k-mega-side-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--shell-ink-700);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.f3k-mega-side-btn:hover {
  background: var(--shell-subtle);
  color: var(--shell-ink-900);
}
.f3k-mega-side-btn.active {
  background: var(--shell-accent);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.22);
}
.f3k-msb-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.f3k-msb-count {
  font-size: 12.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--shell-subtle-2);
  color: var(--shell-ink-700);
}
.f3k-mega-side-btn.active .f3k-msb-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.f3k-mega-side-divider {
  height: 1px;
  background: var(--shell-border);
  margin: 6px 0;
}
.f3k-mega-side-studio-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--shell-accent-soft);
  border: 1px solid var(--shell-accent-border);
  color: var(--shell-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.f3k-mega-side-studio-link:hover {
  background: var(--shell-accent);
  color: #ffffff;
}

.f3k-mega-stage {
  min-width: 0;
}
.f3k-mega-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--shell-border);
}
.f3k-mega-stage-title {
  margin: 0 0 3px;
  font-size: 17.5px;
  font-weight: 800;
  color: var(--shell-ink-900);
}
.f3k-mega-stage-desc {
  margin: 0;
  font-size: 14px;
  color: var(--shell-ink-500);
}
.f3k-mega-fx-tag {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--shell-subtle);
  color: var(--shell-ink-700);
  border: 1px solid var(--shell-border);
  white-space: nowrap;
}

.f3k-mega-grid.cols-3-neat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 290px));
  gap: 16px;
}
.f3k-mega-grid.cols-2-neat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  gap: 18px;
}

.f3k-mega-parts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.f3k-mega-part-card {
  border: 1px solid var(--shell-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--shell-card);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.f3k-mpc-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--shell-ink-900);
}
.f3k-mpc-spec {
  font-size: 13.5px;
  color: var(--shell-ink-500);
}
.f3k-mpc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}
.f3k-mpc-foot strong {
  font-size: 15.5px;
  color: var(--shell-accent);
}
.f3k-mega-parts-cta-bar {
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--shell-subtle);
  border: 1px solid var(--shell-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--shell-ink-700);
}

@media (max-width: 1360px) {
  .f3k-brand-domain,
  .f3k-brand-divider {
    display: none;
  }
}
@media (max-width: 960px) {
  .f3k-mega-split-layout {
    grid-template-columns: 1fr;
  }
  .f3k-mega-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--shell-border);
    padding-right: 0;
    padding-bottom: 12px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .f3k-mega-side-btn {
    width: auto;
  }
  .f3k-mega-parts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* === v12.1 Polish: Compact Currency Popover, Harmonized Mega Menu & Centered Key-Part Icons === */

/* 1. Compact Click-to-Popup 9-Currency Selector */
.f3k-curr-dropdown {
  position: relative;
  display: inline-flex;
}
.f3k-curr-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--shell-border);
  background: var(--shell-card);
  color: var(--shell-ink-900);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.f3k-curr-trigger:hover,
.f3k-curr-dropdown.open .f3k-curr-trigger {
  border-color: var(--shell-accent);
  background: var(--shell-accent-soft);
  color: var(--shell-accent);
}
.f3k-curr-dropdown.in-wp-utility .f3k-curr-trigger {
  height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
  font-size: 12.5px;
}
.f3k-curr-dropdown.in-wp-utility .f3k-curr-trigger:hover,
.f3k-curr-dropdown.in-wp-utility.open .f3k-curr-trigger {
  background: rgba(88, 166, 255, 0.22);
  border-color: #60a5fa;
  color: #ffffff;
}
.f3k-curr-chev {
  display: inline-flex;
  transition: transform 0.16s ease;
}
.f3k-curr-dropdown.open .f3k-curr-chev {
  transform: rotate(180deg);
}

.f3k-curr-popover {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 316px;
  padding: 12px;
  border-radius: 14px;
  background: var(--mega-card-bg);
  border: 1px solid var(--mega-border);
  box-shadow: var(--shell-shadow-lg);
  z-index: 260;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.f3k-curr-dropdown.open .f3k-curr-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.f3k-curr-pop-head {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--shell-ink-700);
  text-align: center;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--shell-border);
}
.f3k-curr-pop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.f3k-curr-opt {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid var(--shell-border);
  background: var(--shell-card);
  color: var(--shell-ink-900);
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}
.f3k-curr-opt:hover {
  border-color: var(--shell-accent);
  background: var(--shell-accent-soft);
}
.f3k-curr-opt.active {
  border-color: var(--shell-accent);
  background: var(--shell-accent);
  color: #ffffff;
}
.f3k-co-sym {
  width: 28px;
  height: 26px;
  border-radius: 6px;
  background: var(--shell-subtle);
  color: var(--shell-accent);
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.f3k-curr-opt.active .f3k-co-sym {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.f3k-co-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  flex: 1;
}
.f3k-co-info strong {
  font-size: 12.5px;
  font-weight: 800;
}
.f3k-co-info small {
  font-size: 11px;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.f3k-co-rate {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.85;
  flex-shrink: 0;
}
.f3k-curr-pop-note {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed var(--shell-border);
  font-size: 11.5px;
  color: var(--shell-ink-500);
  text-align: center;
}

/* 2. Harmonized Mega Menu Colors & Invisible Hover Bridge */
.f3k-mega-backdrop {
  background: rgba(10, 16, 26, 0.34);
  backdrop-filter: blur(2.5px);
}
.f3k-mega-panel {
  position: relative;
  background: var(--mega-panel-bg);
  border: 1px solid var(--mega-border);
  border-top: 2.5px solid var(--mega-top-accent);
  border-radius: 0 0 20px 20px;
  box-shadow: var(--shell-shadow-lg);
  padding: 20px 24px 24px;
}
.f3k-mega-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.f3k-mega-sidebar {
  background: var(--mega-sidebar-bg);
  border: 1px solid var(--mega-border);
  border-radius: 14px;
  padding: 10px;
  gap: 6px;
}
.f3k-mega-side-btn {
  color: var(--shell-ink-900);
  padding: 10px 12px;
  border-radius: 10px;
}
.f3k-mega-side-btn:hover {
  background: var(--mega-card-bg);
}
.f3k-mega-side-btn.active {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}
.f3k-msb-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--mega-card-bg);
  color: var(--shell-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.f3k-mega-side-btn.active .f3k-msb-ico {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.f3k-mega-side-studio-link {
  justify-content: center;
  text-align: center;
}

/* 3. Centered Stage Header, Centered Key-Part Emblems & Centered Focal Content */
.f3k-mega-stage-head.is-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--mega-border);
}
.f3k-mega-stage-emblem {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--shell-accent-soft);
  border: 1px solid var(--shell-accent-border);
  color: var(--shell-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.f3k-mega-fx-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 2px;
}

.f3k-mega-grid.cols-3-neat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 290px));
  justify-content: center;
  margin: 0 auto;
  gap: 16px;
}
.f3k-mega-grid.cols-2-neat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  margin: 0 auto;
  gap: 18px;
}

.f3k-model-card {
  background: var(--mega-card-bg);
  border: 1.5px solid var(--mega-border);
  border-radius: 14px;
}
.f3k-model-card:hover {
  background: var(--mega-card-hover-bg);
  border-color: var(--shell-accent);
}
.f3k-mc-media img {
  object-position: center center;
}
.f3k-mc-part-emblem {
  width: 32px;
  height: 32px;
  margin: -16px auto 0;
  position: relative;
  z-index: 2;
  border-radius: 999px;
  background: var(--mega-card-bg);
  border: 1.5px solid var(--shell-accent-border);
  color: var(--shell-accent);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.f3k-model-card:hover .f3k-mc-part-emblem {
  background: var(--shell-accent);
  border-color: var(--shell-accent);
  color: #ffffff;
}
.f3k-mc-body.is-centered {
  padding: 6px 12px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}
.f3k-mc-body.is-centered .f3k-mc-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--shell-ink-900);
}
.f3k-mc-brief-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--shell-subtle);
  color: var(--shell-ink-700);
  font-size: 12.5px;
  font-weight: 700;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.f3k-mc-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.f3k-mc-price small {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.82;
}

/* Centered Parts Cards inside Mega Menu & Quick-Shop Modal */
.f3k-mega-part-card,
.f3k-qp-card {
  border: 1px solid var(--mega-border);
  border-radius: 13px;
  padding: 14px;
  background: var(--mega-card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.f3k-mpc-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--shell-accent-soft);
  border: 1px solid var(--shell-accent-border);
  color: var(--shell-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.f3k-qp-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--shell-ink-900);
}
.f3k-qp-spec {
  font-size: 13.5px;
  color: var(--shell-ink-500);
}
.f3k-mpc-foot,
.f3k-qp-foot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--shell-border);
}
.f3k-qp-foot strong {
  font-size: 16px;
  color: var(--shell-accent);
}
.f3k-qp-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.f3k-mpc-add-btn {
  height: 30px;
  padding: 0 11px;
  font-size: 13px;
}
.f3k-mega-parts-cta-bar {
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  gap: 14px;
  background: var(--mega-card-bg);
  border-color: var(--mega-border);
}
.f3k-mega-open-tools-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--mega-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.f3k-mega-open-tools-row strong {
  color: var(--shell-ink-700);
}
.f3k-mega-open-tools-row a {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--mega-card-bg);
  border: 1px solid var(--mega-border);
  color: var(--shell-ink-900);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.14s ease;
}
.f3k-mega-open-tools-row a:hover {
  border-color: var(--shell-accent);
  color: var(--shell-accent);
}

.f3k-mega-split-layout { grid-template-columns: 254px minmax(0, 1fr); }
.f3k-msb-left { white-space: nowrap; }

/* === v12.2 Unified Brand Header, Concentric Image Corners & Micro-Spectrum Accents === */
.f3k-horizon-hairline {
  height: 2.5px;
  width: 100%;
  background: linear-gradient(90deg, #d02c27 0%, #d75c41 18%, #e9bf2c 36%, #3ea049 54%, #2765a1 76%, #652879 100%);
}

/* Subtle 4-Segment Logo Color Signature Bar (36px × 2.5px) */
.f3k-brand-4bar {
  display: inline-grid;
  grid-template-columns: repeat(4, 9px);
  gap: 3px;
  height: 2.5px;
  margin: 2px auto 3px;
}
.f3k-brand-4bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
}
.f3k-brand-4bar i:nth-child(1) { background: #d02c27; }
.f3k-brand-4bar i:nth-child(2) { background: #e9bf2c; }
.f3k-brand-4bar i:nth-child(3) { background: #3ea049; }
.f3k-brand-4bar i:nth-child(4) { background: #2765a1; }

/* Unified Brand Lockup (Used identically on Portal, Articles, Studio & Showcases) */
.f3k-unified-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  flex-shrink: 0;
}
.f3k-ub-mark {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  display: inline-flex;
  flex-shrink: 0;
}
.f3k-ub-mark .f3k-emblem-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.f3k-ub-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}
.f3k-ub-row1 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.f3k-ub-domain {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: 0.035em;
  color: #f8fafc;
}
.f3k-ub-dot {
  color: #4ade80;
  padding: 0 0.5px;
}
.f3k-ub-sep {
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, 0.24);
}
.f3k-ub-academy {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #dbeafe;
}
.f3k-ub-row2 {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #9fb0c7;
}

/* Unified Two-Tier Slate Masthead for Studio & Showcase Pages */
.f3k-unified-header-host {
  position: sticky;
  top: 0;
  z-index: 120;
  box-shadow: 0 4px 18px rgba(10, 16, 26, 0.22);
}
.f3k-uni-utility {
  background: #1c2633;
  color: #cbd5e1;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
body.theme-dark .f3k-uni-utility {
  background: #090e16;
}
.f3k-uni-utility-inner {
  max-width: 1580px;
  margin: 0 auto;
  padding: 0 22px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.f3k-uni-util-left, .f3k-uni-util-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.f3k-uni-util-link {
  color: #cbd5e1;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.f3k-uni-util-link:hover { color: #ffffff; }
.f3k-uni-util-div { opacity: 0.28; }
.f3k-uni-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 27px;
  padding: 0 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.f3k-uni-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.f3k-uni-masthead {
  background: #263445;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.theme-dark .f3k-uni-masthead {
  background: #111a27;
}
.f3k-uni-masthead-inner {
  max-width: 1580px;
  margin: 0 auto;
  padding: 0 22px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.f3k-uni-nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.f3k-uni-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  color: #e8eff8;
  font-size: 14.5px;
  font-weight: 700;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.f3k-uni-nav-link:hover,
.f3k-uni-nav-link.is-open,
.f3k-uni-nav-link.current {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.f3k-uni-nav-link.is-studio-cta {
  background: linear-gradient(135deg, #1d5bbf 0%, #2765a1 100%);
  border-color: rgba(255, 255, 255, 0.20);
  color: #ffffff;
  margin-left: 4px;
}
.f3k-uni-nav-link.is-studio-cta:hover,
.f3k-uni-nav-link.is-active-studio {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

/* Deep Image Corner Refactoring in Mega Menu (Crisp 8px Card, Zero Inner Radius Bleed!) */
.f3k-mega-panel {
  border-radius: 0 0 12px 12px;
  border-top: 2px solid #2765a1;
}
.f3k-model-card {
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--mega-border);
}
.f3k-mc-media {
  margin: 0 !important;
  border-radius: 0 !important;
  aspect-ratio: 16 / 10.2;
  overflow: hidden;
  border-bottom: 1px solid var(--mega-border);
  background: #101824;
}
.f3k-mc-media img {
  border-radius: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.f3k-mc-body.is-centered {
  padding: 10px 12px 12px;
  gap: 6px;
}
.f3k-mc-brief-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--shell-subtle);
  color: var(--shell-ink-700);
  font-size: 12px;
  font-weight: 700;
}
.f3k-mc-brief-pill svg {
  color: var(--shell-accent);
  opacity: 0.9;
}
.f3k-mpc-icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

/* ==========================================================================
   v12.4 RBAC VISIBILITY & DISTINCT STAFF-ONLY BUTTON DESIGN (.f3k-staff-only-btn)
   1. Fail-Closed Default: Public visitors NEVER see any [data-f3k-staff-only] element!
   2. When logged in as Admin/Supplier, internal buttons render in an unmistakable
      Amber-Gold Dashed Caution style with [🔒 仅后台] pill — 100% distinct from customer UI!
   ========================================================================== */
html:not(.f3k-staff-authorized) [data-f3k-staff-only] {
  display: none !important;
}
html.f3k-staff-supplier-only [data-f3k-staff-only="admin"] {
  display: none !important;
}

.f3k-staff-only-btn,
a.f3k-staff-only-btn,
button.f3k-staff-only-btn,
.wp-util-pill.f3k-staff-only-btn,
.f3k-uni-pill.f3k-staff-only-btn,
.wp-edit-link.f3k-staff-only-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 9px 3px 6px !important;
  border-radius: 7px !important;
  border: 1.5px dashed #d97706 !important;
  background: repeating-linear-gradient(
    -45deg,
    rgba(245, 158, 11, 0.14) 0px,
    rgba(245, 158, 11, 0.14) 6px,
    rgba(254, 243, 199, 0.72) 6px,
    rgba(254, 243, 199, 0.72) 12px
  ) !important;
  color: #92400e !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 4px rgba(217, 119, 6, 0.18) !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}

html:not(.f3k-staff-authorized) .f3k-staff-only-btn,
html.f3k-staff-supplier-only .f3k-staff-only-btn[data-f3k-staff-only="admin"] {
  display: none !important;
}

.f3k-staff-only-btn:hover {
  border-color: #b45309 !important;
  color: #78350f !important;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.28) !important;
  transform: translateY(-0.5px);
}

.f3k-staff-lock-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1.5px 5px;
  border-radius: 4px;
  background: #f59e0b;
  color: #111827 !important;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

/* Dark theme & dark site footers: luminous amber-gold dashed caution styling */
body.theme-dark .f3k-staff-only-btn,
html.theme-dark-root .f3k-staff-only-btn,
.f3k-uni-header .f3k-staff-only-btn,
.wp-util-bar .f3k-staff-only-btn,
.wp-site-footer .f3k-staff-only-btn,
.site-footer .f3k-staff-only-btn {
  border: 1.5px dashed #f59e0b !important;
  background: repeating-linear-gradient(
    -45deg,
    rgba(245, 158, 11, 0.20) 0px,
    rgba(245, 158, 11, 0.20) 6px,
    rgba(120, 53, 15, 0.42) 6px,
    rgba(120, 53, 15, 0.42) 12px
  ) !important;
  color: #fde68a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

body.theme-dark .f3k-staff-only-btn:hover,
html.theme-dark-root .f3k-staff-only-btn:hover,
.wp-site-footer .f3k-staff-only-btn:hover,
.site-footer .f3k-staff-only-btn:hover {
  border-color: #fbbf24 !important;
  color: #fef3c7 !important;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35) !important;
}

/* Local-Only Developer Role Switcher Pill (NEVER rendered on live f3kf3k.com!) */
.f3k-local-role-switcher {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 380;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px dashed rgba(245, 158, 11, 0.72);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.f3k-local-role-switcher .f3k-lrs-tag {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  padding: 0 4px;
  white-space: nowrap;
}
.f3k-local-role-switcher .f3k-lrs-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.85);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.f3k-local-role-switcher .f3k-lrs-btn.active.is-admin-view {
  background: #f59e0b;
  border-color: #fbbf24;
  color: #111827;
}
.f3k-local-role-switcher .f3k-lrs-btn.active.is-guest-view {
  background: #10b981;
  border-color: #34d399;
  color: #052e16;
}
@media (max-width: 768px) {
  .f3k-local-role-switcher {
    bottom: 78px;
    left: 10px;
    transform: scale(0.92);
    transform-origin: left bottom;
  }
}

.f3k-uni-header .f3k-staff-only-btn > span:not(.f3k-staff-lock-tag),
.wp-util-bar .f3k-staff-only-btn > span:not(.f3k-staff-lock-tag),
.wp-site-footer .f3k-staff-only-btn > span:not(.f3k-staff-lock-tag),
body.theme-dark .f3k-staff-only-btn > span:not(.f3k-staff-lock-tag),
html.theme-dark-root .f3k-staff-only-btn > span:not(.f3k-staff-lock-tag) {
  color: #fef3c7 !important;
}


/* ==========================================================================
   v12.7 Standalone Login / Register / Lost-Password & Frontend Member Center
   Replaces legacy `wpcom-member`, `woocommerce_my_account` & `xh_social` pages
   ========================================================================== */
.f3k-member-stage {
  max-width: 1240px;
  margin: 28px auto 52px;
  padding: 0 20px;
}

.f3k-auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--shell-border);
  background: var(--shell-card);
  box-shadow: var(--shell-shadow-md);
}

.f3k-auth-brand-col {
  position: relative;
  padding: 36px 32px;
  background: linear-gradient(155deg, #132033 0%, #1a2d47 58%, #101a28 100%);
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.f3k-auth-brand-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #d02c27 0%, #d75c41 25%, #e9bf2c 50%, #3ea049 75%, #2765a1 100%);
}

.f3k-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(88, 166, 255, 0.16);
  border: 1px solid rgba(88, 166, 255, 0.34);
  color: #93c5fd;
  width: fit-content;
}

.f3k-auth-brand-title {
  margin: 14px 0 8px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
}

.f3k-auth-brand-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.68;
  color: #cbd5e1;
}

.f3k-auth-perks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.f3k-auth-perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #dbeafe;
}

.f3k-auth-perk-dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(147, 197, 253, 0.28);
  color: #93c5fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.f3k-auth-brand-foot {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

.f3k-auth-form-col {
  padding: 34px 38px;
  background: var(--shell-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.f3k-auth-mode-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: var(--shell-subtle);
  border: 1px solid var(--shell-border);
  margin-bottom: 22px;
  width: fit-content;
  flex-wrap: wrap;
}

.f3k-auth-mode-btn {
  border: none;
  background: transparent;
  color: var(--shell-ink-700);
  font-size: 14.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.f3k-auth-mode-btn.active {
  background: var(--shell-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 91, 191, 0.24);
}

.f3k-wx-hero-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 11px;
  border: 1px solid #059669;
  background: linear-gradient(180deg, #09c968 0%, #07c160 100%);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(7, 193, 96, 0.22);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.f3k-wx-hero-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.f3k-auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--shell-ink-500);
  font-size: 13px;
  font-weight: 600;
}

.f3k-auth-or::before,
.f3k-auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--shell-border);
}

.f3k-auth-alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.55;
}

.f3k-auth-alert.is-err {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #dc2626;
}
body.theme-dark .f3k-auth-alert.is-err,
html.theme-dark-root .f3k-auth-alert.is-err {
  color: #fca5a5;
}

.f3k-auth-alert.is-ok {
  background: var(--shell-green-soft);
  border: 1px solid rgba(27, 127, 55, 0.35);
  color: var(--shell-green);
}

/* Full-Page Member Center Layout */
.f3k-mc-hero-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--shell-border);
  background: var(--shell-card);
  padding: 22px 26px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: var(--shell-shadow-md);
  overflow: hidden;
}

.f3k-mc-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d02c27 0%, #d75c41 25%, #e9bf2c 50%, #3ea049 75%, #2765a1 100%);
}

.f3k-mc-user-main {
  display: flex;
  align-items: center;
  gap: 15px;
}

.f3k-mc-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: linear-gradient(135deg, #1d5bbf, #2765a1);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
}
.f3k-mc-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.f3k-mc-workspace {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.f3k-mc-sidenav {
  border-radius: 15px;
  border: 1px solid var(--shell-border);
  background: var(--shell-card);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.f3k-mc-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--shell-ink-700);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.f3k-mc-nav-btn:hover {
  background: var(--shell-subtle);
  color: var(--shell-ink-900);
}

.f3k-mc-nav-btn.active {
  background: var(--shell-accent);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(29, 91, 191, 0.22);
}

.f3k-mc-nav-count {
  font-size: 12px;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--shell-subtle-2);
  color: var(--shell-ink-700);
}
.f3k-mc-nav-btn.active .f3k-mc-nav-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.f3k-mc-panel {
  border-radius: 16px;
  border: 1px solid var(--shell-border);
  background: var(--shell-card);
  padding: 24px 26px;
  min-width: 0;
}

.f3k-mc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.f3k-mc-kpi-box {
  padding: 15px 16px;
  border-radius: 13px;
  background: var(--shell-subtle);
  border: 1px solid var(--shell-border);
}

.f3k-mc-kpi-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--shell-ink-500);
}

.f3k-mc-kpi-val {
  margin-top: 6px;
  font-size: 23px;
  font-weight: 800;
  color: var(--shell-ink-900);
}

.f3k-mc-sec-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--shell-ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .f3k-auth-shell {
    grid-template-columns: 1fr;
  }
  .f3k-auth-brand-col {
    padding: 24px 22px;
  }
  .f3k-auth-form-col {
    padding: 24px 20px;
  }
  .f3k-mc-workspace {
    grid-template-columns: 1fr;
  }
  .f3k-mc-sidenav {
    flex-direction: row;
    overflow-x: auto;
  }
  .f3k-mc-nav-btn {
    white-space: nowrap;
    width: auto;
  }
  .f3k-mc-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ==========================================================================
   v12.8 F3K Smart Shield — Zero-CAPTCHA Invisible Guard + 0.2s 1-Tap / Slide
   ========================================================================== */
.f3k-hp-trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.f3k-shield-passive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 9px;
  background: var(--shell-subtle);
  border: 1px dashed var(--shell-border);
  font-size: 13px;
  color: var(--shell-ink-500);
}

.f3k-shield-passive-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.f3k-shield-dot-ok {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  flex-shrink: 0;
}

.f3k-shield-switch-link {
  border: none;
  background: none;
  color: var(--shell-ink-500);
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.f3k-shield-switch-link:hover {
  color: var(--shell-accent);
}

.f3k-shield-track {
  position: relative;
  height: 46px;
  border-radius: 11px;
  background: var(--shell-subtle);
  border: 1px solid var(--shell-border);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  display: flex;
  align-items: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.f3k-shield-track:hover:not(.is-verified) {
  border-color: var(--shell-accent-border);
}

.f3k-shield-track.is-nudge {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
  animation: f3kShieldShake 0.34s ease;
}

@keyframes f3kShieldShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.f3k-shield-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(29, 91, 191, 0.16), rgba(16, 185, 129, 0.22));
  pointer-events: none;
  transition: width 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.f3k-shield-track.is-dragging .f3k-shield-fill,
.f3k-shield-track.is-dragging .f3k-shield-thumb {
  transition: none !important;
}

.f3k-shield-label {
  width: 100%;
  text-align: center;
  padding: 0 48px 0 54px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--shell-ink-700);
  pointer-events: none;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.f3k-shield-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 44px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--shell-accent-border);
  background: var(--shell-accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(29, 91, 191, 0.28);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s, border-color 0.2s;
}

.f3k-shield-thumb:hover {
  filter: brightness(1.06);
}

.f3k-shield-track.is-verified {
  background: var(--shell-green-soft);
  border-color: rgba(16, 185, 129, 0.45);
}

.f3k-shield-track.is-verified .f3k-shield-fill {
  width: 100% !important;
  background: transparent;
}

.f3k-shield-track.is-verified .f3k-shield-label {
  color: var(--shell-green);
  padding: 0 52px 0 16px;
}

.f3k-shield-track.is-verified .f3k-shield-thumb {
  background: #10b981;
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
  cursor: default;
}

/* ==========================================================================
   v12.9 Google/Facebook OAuth UI, Softened Light Aircraft Selection & Brightened Dark Theme
   ========================================================================== */

/* 1. Social OAuth Buttons (Google + Facebook + WeChat) & Binding Cards */
.f3k-oauth-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.f3k-oauth-row.is-3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.f3k-oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1.5px solid var(--shell-border);
  background: var(--shell-subtle);
  color: var(--shell-ink-900);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.f3k-oauth-btn:hover {
  border-color: var(--shell-accent);
  background: var(--shell-accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.f3k-oauth-btn.is-wx {
  border-color: rgba(7, 193, 96, 0.45);
  background: rgba(7, 193, 96, 0.12);
}

.f3k-oauth-btn.is-wx:hover {
  border-color: #07c160;
  background: rgba(7, 193, 96, 0.2);
}

.f3k-oauth-bind-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.f3k-oauth-bind-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--shell-subtle);
  border: 1px solid var(--shell-border);
}

.f3k-obc-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--shell-ink-900);
}

@media (max-width: 720px) {
  .f3k-oauth-row.is-3col,
  .f3k-oauth-bind-grid {
    grid-template-columns: 1fr;
  }
}

/* 2. Light Mode: Soften Aircraft Selection Cards & Studio-White Product Photo Glare */
:root {
  --mega-panel-bg: linear-gradient(180deg, #d4dfec 0%, #dde6f1 100%);
  --mega-sidebar-bg: #cad7e7;
  --mega-card-bg: #dde6f1;
  --mega-card-hover-bg: #d4e0ef;
  --mega-border: #aebfd6;
}

html:not(.theme-dark-root) body:not(.theme-dark) .f3k-mc-media {
  background: #d3deec !important;
}

html:not(.theme-dark-root) body:not(.theme-dark) .f3k-mc-media img {
  filter: brightness(0.91) contrast(1.04);
}

/* 3. Dark Mode: Elevated Titanium-Slate Brightened Dark Palette (Noticeably Lighter & Breathable) */
html.theme-dark-root body,
body.theme-dark {
  --shell-bg: rgba(30, 41, 59, 0.96);
  --shell-card: #273549;
  --shell-subtle: #304158;
  --shell-subtle-2: #394d68;
  --shell-border: #425878;
  --shell-ink-900: #f3f7fc;
  --shell-ink-700: #dae4f2;
  --shell-ink-500: #a6b8d0;
  --shell-accent: #66b2ff;
  --shell-accent-hover: #4da3ff;
  --shell-accent-soft: rgba(102, 178, 255, 0.18);
  --shell-accent-border: rgba(102, 178, 255, 0.42);
  --shell-green: #4ade80;
  --shell-green-soft: rgba(74, 222, 128, 0.18);
  --shell-amber: #fbbf24;
  --shell-amber-soft: rgba(251, 191, 36, 0.18);
  --shell-shadow-lg: 0 24px 56px rgba(8, 13, 23, 0.48);
  --shell-shadow-md: 0 10px 28px rgba(8, 13, 23, 0.34);

  --mega-panel-bg: linear-gradient(180deg, #243246 0%, #2b3c53 100%);
  --mega-sidebar-bg: #1e2b3d;
  --mega-card-bg: #30425b;
  --mega-card-hover-bg: #384d69;
  --mega-border: #465e80;
  --mega-top-accent: #66b2ff;
}

body.theme-dark .f3k-uni-utility,
html.theme-dark-root .f3k-uni-utility {
  background: #182232;
}

body.theme-dark .f3k-uni-masthead,
html.theme-dark-root .f3k-uni-masthead {
  background: #223044;
}

body.theme-dark .f3k-auth-brand-col,
html.theme-dark-root .f3k-auth-brand-col {
  background: linear-gradient(155deg, #1f3048 0%, #273d5b 58%, #1b2a40 100%);
  border-right-color: rgba(255, 255, 255, 0.12);
}
/* === v13.0 UNIFIED HEADER, SILKY MOTION, COLOR ESSENCE, 1400PX GRID & GRAND FOOTER === */
:root {
  --f3k-grid-max: 1400px;
  --f3k-grid-pad: 24px;
  --f3k-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --f3k-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --f3k-c-red: #d02c27;
  --f3k-c-orange: #ec6830;
  --f3k-c-gold: #e9bf2c;
  --f3k-c-green: #3ea049;
  --f3k-c-sky: #38bdf8;
  --f3k-c-blue: #2765a1;
  --f3k-c-violet: #652879;
}

/* 1. Retire useless top-edge hairline completely */
.f3k-horizon-hairline,
.top-horizon-bar {
  display: none !important;
  height: 0 !important;
}

/* 2. Strict 1400px Plumb-Line Alignment Across All Site Containers */
.wp-top-utility-inner,
.wp-masthead-inner,
.f3k-uni-utility-inner,
.f3k-uni-masthead-inner,
.wp-portal-wrap,
.f3k-member-stage,
.studio-shell,
.f3k-gf-inner {
  max-width: var(--f3k-grid-max) !important;
  padding-left: var(--f3k-grid-pad) !important;
  padding-right: var(--f3k-grid-pad) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Showcase pages (.container inside bamf2, tair-5, tair-mini3, yoda) */
main.container,
body > .container,
section > .container {
  max-width: var(--f3k-grid-max) !important;
  padding-left: var(--f3k-grid-pad) !important;
  padding-right: var(--f3k-grid-pad) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 768px) {
  :root {
    --f3k-grid-pad: 14px;
  }
}

/* 3. Unified Two-Tier Satin Slate Header (Works identically with or without wp-theme/style.css) */
.wp-top-utility {
  background: linear-gradient(90deg, #152030 0%, #1b293d 50%, #152030 100%);
  color: #cbd8e8;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  position: relative;
  z-index: 122;
}

html.theme-dark-root .wp-top-utility,
body.theme-dark .wp-top-utility {
  background: linear-gradient(90deg, #121b29 0%, #172334 50%, #121b29 100%);
  border-bottom-color: rgba(148, 179, 218, 0.10);
}

.wp-top-utility-inner {
  height: 36px !important;
  min-height: 36px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wp-util-left,
.wp-util-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wp-util-div {
  opacity: 0.24;
  color: #94a3b8;
  user-select: none;
}

.wp-util-link {
  color: #cbd8e8;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 4px;
  border-radius: 6px;
  transition: color 0.2s var(--f3k-ease-soft), background 0.2s var(--f3k-ease-soft);
}

.wp-util-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.wp-util-link .f3k-util-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.65);
  flex-shrink: 0;
}

.wp-util-pill,
.f3k-curr-dropdown.in-wp-utility .f3k-curr-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 26px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #edf3fb !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s var(--f3k-ease-soft), border-color 0.22s var(--f3k-ease-soft), transform 0.22s var(--f3k-ease-soft), box-shadow 0.22s var(--f3k-ease-soft);
}

.wp-util-pill:hover,
.f3k-curr-dropdown.in-wp-utility .f3k-curr-trigger:hover,
.f3k-curr-dropdown.in-wp-utility.open .f3k-curr-trigger {
  background: rgba(255, 255, 255, 0.155) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

/* Zero-FOUC Pure-CSS Theme Button State */
#btnPageTheme .f3k-theme-when-dark {
  display: none;
  align-items: center;
  gap: 5px;
}
#btnPageTheme .f3k-theme-when-light {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
html.theme-dark-root #btnPageTheme .f3k-theme-when-light,
body.theme-dark #btnPageTheme .f3k-theme-when-light {
  display: none;
}
html.theme-dark-root #btnPageTheme .f3k-theme-when-dark,
body.theme-dark #btnPageTheme .f3k-theme-when-dark {
  display: inline-flex;
}

/* Sticky Satin Masthead */
.wp-masthead {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(32, 46, 66, 0.90);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.095);
  box-shadow: 0 10px 30px rgba(10, 18, 32, 0.16);
  transition: background 0.28s var(--f3k-ease-soft), box-shadow 0.28s var(--f3k-ease-soft);
}

html.theme-dark-root .wp-masthead,
body.theme-dark .wp-masthead {
  background: rgba(27, 39, 57, 0.90);
  border-bottom-color: rgba(148, 179, 218, 0.14);
  box-shadow: 0 12px 34px rgba(5, 10, 18, 0.36);
}

.wp-masthead-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Brand Lockup + 4-Segment Skewed Wing Quartet */
.wp-masthead .f3k-unified-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px 0;
  transition: transform 0.24s var(--f3k-ease-out);
}

.wp-masthead .f3k-unified-brand:hover {
  transform: translateY(-0.5px);
}

.f3k-wing-quartet {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  margin-left: 6px;
  vertical-align: middle;
}

.f3k-wing-quartet i {
  display: inline-block;
  width: 5px;
  height: 11px;
  border-radius: 1.5px;
  transform: skewX(-22deg);
  transition: transform 0.26s var(--f3k-ease-out);
}

.f3k-unified-brand:hover .f3k-wing-quartet i {
  transform: skewX(-22deg) scaleY(1.15);
}

.f3k-wing-quartet i:nth-child(1) { background: #ef4444; }
.f3k-wing-quartet i:nth-child(2) { background: #f59e0b; }
.f3k-wing-quartet i:nth-child(3) { background: #22c55e; }
.f3k-wing-quartet i:nth-child(4) { background: #38bdf8; }

/* Primary Navigation Menu & Semantic Color Glide Wings */
.wp-nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-nav-item {
  position: relative;
  --item-accent: #38bdf8;
}

.wp-nav-item[data-nav-key="home"] { --item-accent: #38bdf8; }
.wp-nav-item[data-nav-key="mega"] { --item-accent: #fb923c; }
.wp-nav-item[data-nav-key="contest"] { --item-accent: #f87171; }
.wp-nav-item[data-nav-key="tech"] { --item-accent: #4ade80; }
.wp-nav-item[data-nav-key="rules"] { --item-accent: #facc15; }

.wp-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 15px;
  border-radius: 10px;
  color: #e6eef8;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.24s var(--f3k-ease-soft), color 0.22s ease, border-color 0.24s var(--f3k-ease-soft), box-shadow 0.24s var(--f3k-ease-soft);
}

.wp-nav-link:not(.is-studio-cta)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background: var(--item-accent, #38bdf8);
  transform: skewX(-22deg) scaleX(0.2);
  opacity: 0;
  transition: transform 0.26s var(--f3k-ease-out), opacity 0.22s ease;
  pointer-events: none;
}

.wp-nav-link:not(.is-studio-cta):hover,
.wp-nav-item.is-sub-open > .wp-nav-link:not(.is-studio-cta),
.wp-nav-link.is-open {
  background: rgba(255, 255, 255, 0.105);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.wp-nav-link:not(.is-studio-cta):hover::after,
.wp-nav-link.current:not(.is-studio-cta)::after,
.wp-nav-item.is-sub-open > .wp-nav-link:not(.is-studio-cta)::after,
.wp-nav-link.is-open::after {
  transform: skewX(-22deg) scaleX(1);
  opacity: 1;
}

.wp-nav-link.current:not(.is-studio-cta) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.075);
}

.wp-nav-chev {
  display: inline-flex;
  align-items: center;
  opacity: 0.78;
  transition: transform 0.26s var(--f3k-ease-out), opacity 0.2s ease;
}

.wp-nav-link.is-open .wp-nav-chev,
.wp-nav-item.is-sub-open > .wp-nav-link .wp-nav-chev,
html:not(.f3k-js-nav) .wp-nav-item.has-sub:hover > .wp-nav-link .wp-nav-chev {
  transform: rotate(180deg);
  opacity: 1;
}

/* Custom Livery Studio CTA Button with 3-Color Wingtip Swatches */
.wp-nav-link.is-studio-cta {
  margin-left: 6px;
  padding: 0 16px;
  background: linear-gradient(135deg, #1d5bbf 0%, #2563eb 55%, #1e40af 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.20);
  gap: 8px;
}

.wp-nav-link.is-studio-cta:hover,
.wp-nav-link.is-studio-cta.is-active-studio {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 55%, #1d4ed8 100%);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-0.5px);
}

.f3k-cta-swatches {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  flex-shrink: 0;
}

.f3k-cta-swatches i {
  display: inline-block;
  width: 4.5px;
  height: 13px;
  border-radius: 1.5px;
  transform: skewX(-22deg);
  transition: transform 0.24s var(--f3k-ease-out);
}

.f3k-cta-swatches i:nth-child(1) { background: #ff5252; }
.f3k-cta-swatches i:nth-child(2) { background: #facc15; }
.f3k-cta-swatches i:nth-child(3) { background: #4ade80; }

.is-studio-cta:hover .f3k-cta-swatches i:nth-child(1),
.f3k-gf-btn-primary:hover .f3k-cta-swatches i:nth-child(1) {
  transform: skewX(-22deg) translateY(-1px);
}
.is-studio-cta:hover .f3k-cta-swatches i:nth-child(3),
.f3k-gf-btn-primary:hover .f3k-cta-swatches i:nth-child(3) {
  transform: skewX(-22deg) translateY(1px);
}

/* 4. Silky Dropdown Submenus (.wp-dropdown) + Hover-Intent Control */
.wp-nav-item.has-sub::after,
.wp-nav-item.is-mega-item::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: 100%;
  height: 14px;
}

.wp-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 244px;
  background: #e4ecf5;
  border: 1px solid #b8c9dd;
  border-top: none !important;
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(10, 18, 32, 0.22), 0 4px 12px rgba(10, 18, 32, 0.08);
  padding: 11px 8px 8px;
  list-style: none;
  margin: 0;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  transform: translate3d(-50%, 8px, 0) scale(0.982) !important;
  transform-origin: top center;
  transition: opacity 0.22s var(--f3k-ease-out), transform 0.26s var(--f3k-ease-out), visibility 0.22s !important;
  z-index: 125;
  overflow: hidden;
}

/* Top Colored Airfoil Ridge inside each Dropdown */
.wp-dropdown::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--item-accent, #38bdf8) 0%, var(--item-accent, #38bdf8) 68%, rgba(255, 255, 255, 0.35) 68%, rgba(255, 255, 255, 0.35) 71%, #38bdf8 71%, #38bdf8 100%);
}

html.theme-dark-root .wp-dropdown,
body.theme-dark .wp-dropdown {
  background: #263549;
  border-color: #425a7a;
  box-shadow: 0 22px 48px rgba(4, 9, 18, 0.48);
}

/* Open state controlled cleanly by JS Hover-Intent (.is-sub-open), with CSS fallback when JS isn't ready */
html:not(.f3k-js-nav) .wp-nav-item.has-sub:hover > .wp-dropdown,
.wp-nav-item.has-sub.is-sub-open > .wp-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate3d(-50%, 0, 0) scale(1) !important;
}

.wp-dropdown li a {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 9px;
  padding: 9.5px 14px;
  border-radius: 9px;
  color: #182334;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s var(--f3k-ease-soft), color 0.18s ease, padding-left 0.2s var(--f3k-ease-out);
}

.wp-dropdown li a::before {
  content: "";
  width: 4px;
  height: 11px;
  border-radius: 1px;
  background: var(--item-accent, #2563eb);
  transform: skewX(-20deg) scaleY(0.4);
  opacity: 0.35;
  transition: transform 0.2s var(--f3k-ease-out), opacity 0.2s ease;
  flex-shrink: 0;
}

.wp-dropdown li a:hover {
  background: rgba(37, 99, 235, 0.10);
  color: #174ea6;
  padding-left: 17px;
}

.wp-dropdown li a:hover::before {
  transform: skewX(-20deg) scaleY(1);
  opacity: 1;
}

html.theme-dark-root .wp-dropdown li a,
body.theme-dark .wp-dropdown li a {
  color: #e8eff8;
}

html.theme-dark-root .wp-dropdown li a:hover,
body.theme-dark .wp-dropdown li a:hover {
  background: rgba(102, 178, 255, 0.15);
  color: #7cc0ff;
}

/* Soft Currency Popover Transition */
.f3k-curr-popover {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 7px, 0) scale(0.985);
  transform-origin: top right;
  transition: opacity 0.2s var(--f3k-ease-out), transform 0.24s var(--f3k-ease-out), visibility 0.2s;
}

.f3k-curr-dropdown.open .f3k-curr-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

/* 5. Silky Persistent-DOM Mega Menu + Flush 1352px Outer Alignment + 6-Segment Color Spar */
.f3k-mega-backdrop {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(12, 20, 34, 0.30);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.24s var(--f3k-ease-soft), visibility 0.24s;
}

.f3k-mega-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.f3k-mega-panel {
  width: min(1352px, calc(100vw - 48px)) !important;
  max-width: 1352px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-top: none !important;
  border-radius: 0 0 20px 20px !important;
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(0.992);
  transform-origin: top center;
  transition: opacity 0.25s var(--f3k-ease-out), transform 0.28s var(--f3k-ease-out);
  overflow: hidden !important;
}

.f3k-mega-backdrop.open .f3k-mega-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 768px) {
  .f3k-mega-panel {
    width: calc(100vw - 28px) !important;
  }
}

.f3k-mega-spar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  height: 4px;
  background: rgba(15, 23, 42, 0.18);
}

.f3k-mega-spar i {
  display: block;
  height: 100%;
}
.f3k-mega-spar i:nth-child(1) { background: #d02c27; }
.f3k-mega-spar i:nth-child(2) { background: #ec6830; }
.f3k-mega-spar i:nth-child(3) { background: #e9bf2c; }
.f3k-mega-spar i:nth-child(4) { background: #3ea049; }
.f3k-mega-spar i:nth-child(5) { background: #2765a1; }
.f3k-mega-spar i:nth-child(6) { background: #652879; }

#f3kMegaSectionsHost {
  max-height: calc(100vh - 118px);
  overflow-y: auto;
}

/* Color-coded Left Category Tabs inside Mega Menu */
.f3k-mega-side-btn {
  position: relative;
  transition: background 0.2s var(--f3k-ease-soft), border-color 0.2s var(--f3k-ease-soft), color 0.2s ease, transform 0.2s var(--f3k-ease-out) !important;
}

.f3k-mega-side-btn[data-mcat="tair_15m"] { --mcat-col: #ef4444; }
.f3k-mega-side-btn[data-mcat="tair_mini"] { --mcat-col: #f97316; }
.f3k-mega-side-btn[data-mcat="agency_flagship"] { --mcat-col: #3b82f6; }
.f3k-mega-side-btn[data-mcat="parts_shop"] { --mcat-col: #22c55e; }

.f3k-mega-side-btn::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 22%;
  bottom: 22%;
  width: 3.5px;
  border-radius: 2px;
  background: var(--mcat-col, #3b82f6);
  transform: scaleY(0.35);
  opacity: 0.35;
  transition: transform 0.22s var(--f3k-ease-out), opacity 0.22s ease;
}

.f3k-mega-side-btn.active::before,
.f3k-mega-side-btn:hover::before {
  transform: scaleY(1);
  opacity: 1;
}

@keyframes f3kMegaStageSoftIn {
  from {
    opacity: 0.38;
    transform: translate3d(5px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.f3k-mega-stage.is-switching {
  animation: f3kMegaStageSoftIn 0.21s var(--f3k-ease-out);
}

/* Upgraded Skewed 4-Bar Airfoil Accent */
.f3k-brand-4bar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.f3k-brand-4bar i {
  width: 14px !important;
  height: 4px !important;
  border-radius: 1.5px !important;
  transform: skewX(-24deg);
}

/* 6. Key Focal-Point Color Accents Across Portal, Studio & Auth Cards */
#stageCard::before,
#quoteDock::before,
.f3k-auth-shell::before {
  content: "";
  display: block;
  height: 3.5px;
  width: 100%;
  background: linear-gradient(
    90deg,
    #d02c27 0%, #d02c27 16.2%,
    transparent 16.2%, transparent 16.8%,
    #ec6830 16.8%, #ec6830 33.0%,
    transparent 33.0%, transparent 33.6%,
    #e9bf2c 33.6%, #e9bf2c 49.8%,
    transparent 49.8%, transparent 50.4%,
    #3ea049 50.4%, #3ea049 66.6%,
    transparent 66.6%, transparent 67.2%,
    #2765a1 67.2%, #2765a1 83.4%,
    transparent 83.4%, transparent 84.0%,
    #652879 84.0%, #652879 100%
  );
}

#quoteDock {
  overflow: hidden;
}

.f3k-auth-shell {
  position: relative;
  max-width: 1160px !important;
  margin-left: auto;
  margin-right: auto;
}

.f3k-auth-shell::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

/* 7. Grand Imposing Site-Wide Aero Footer (.wp-site-footer.f3k-grand-footer) */
.wp-site-footer.f3k-grand-footer {
  position: relative;
  margin-top: 48px;
  background:
    radial-gradient(900px 260px at 18% 0%, rgba(208, 44, 39, 0.11), transparent 70%),
    radial-gradient(900px 280px at 52% 0%, rgba(56, 189, 248, 0.10), transparent 72%),
    radial-gradient(820px 260px at 86% 0%, rgba(62, 160, 73, 0.09), transparent 70%),
    linear-gradient(180deg, #101927 0%, #0b121d 65%, #080e17 100%) !important;
  color: #cbd5e1 !important;
  border-top: none !important;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 7-Segment Geometric Spectrum Crown Spar */
.f3k-gf-crown {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  height: 5px;
  background: #090f19;
}

.f3k-gf-crown i {
  display: block;
  height: 100%;
}
.f3k-gf-crown i:nth-child(1) { background: #d02c27; }
.f3k-gf-crown i:nth-child(2) { background: #ec6830; }
.f3k-gf-crown i:nth-child(3) { background: #e9bf2c; }
.f3k-gf-crown i:nth-child(4) { background: #3ea049; }
.f3k-gf-crown i:nth-child(5) { background: #38bdf8; }
.f3k-gf-crown i:nth-child(6) { background: #2765a1; }
.f3k-gf-crown i:nth-child(7) { background: #652879; }

/* Tier 1: Flagship Command Band (Strict Left/Right Flush on 1352px Grid) */
.f3k-gf-hero {
  padding: 34px 0 28px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.f3k-gf-brand-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 780px;
}

.f3k-gf-emblem {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.f3k-gf-emblem svg {
  width: 100%;
  height: 100%;
  display: block;
}

.f3k-gf-brand-copy h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.015em;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.f3k-gf-brand-copy p {
  margin: 5px 0 12px;
  font-size: 14px;
  color: #9fb2ca;
  line-height: 1.55;
}

.f3k-gf-pillars {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.f3k-gf-pillar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 12.5px;
  font-weight: 600;
  color: #dbe7f5;
}

.f3k-gf-pillar i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: skewX(-18deg);
  display: inline-block;
}

.f3k-gf-cta-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.f3k-gf-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1d5bbf 0%, #2563eb 55%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.34);
  transition: transform 0.22s var(--f3k-ease-out), box-shadow 0.22s var(--f3k-ease-out), border-color 0.22s ease;
}

.f3k-gf-btn-primary:hover {
  transform: translateY(-1.5px);
  border-color: rgba(255, 255, 255, 0.40);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.46);
}

.f3k-gf-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 18px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e8eff8 !important;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.22s var(--f3k-ease-soft), border-color 0.22s ease, transform 0.22s var(--f3k-ease-out);
}

.f3k-gf-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Tier 2: Strict Left-Aligned 4-Column Flagship Matrix */
.f3k-gf-matrix {
  padding: 32px 0 30px;
  display: grid;
  grid-template-columns: 1.02fr 1.02fr 1.24fr 1.18fr;
  gap: 32px;
  align-items: start;
}

.f3k-gf-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.f3k-gf-col-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.f3k-gf-col-wing {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  flex-shrink: 0;
}

.f3k-gf-col-wing i {
  display: inline-block;
  width: 5px;
  height: 14px;
  border-radius: 1.5px;
  transform: skewX(-22deg);
}

.f3k-gf-col.col-red .f3k-gf-col-wing i:nth-child(1) { background: #ef4444; }
.f3k-gf-col.col-red .f3k-gf-col-wing i:nth-child(2) { background: #fb923c; opacity: 0.75; }

.f3k-gf-col.col-green .f3k-gf-col-wing i:nth-child(1) { background: #22c55e; }
.f3k-gf-col.col-green .f3k-gf-col-wing i:nth-child(2) { background: #38bdf8; opacity: 0.75; }

.f3k-gf-col.col-blue .f3k-gf-col-wing i:nth-child(1) { background: #38bdf8; }
.f3k-gf-col.col-blue .f3k-gf-col-wing i:nth-child(2) { background: #6366f1; opacity: 0.75; }

.f3k-gf-col.col-gold .f3k-gf-col-wing i:nth-child(1) { background: #facc15; }
.f3k-gf-col.col-gold .f3k-gf-col-wing i:nth-child(2) { background: #f97316; opacity: 0.75; }

.f3k-gf-col-head h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f1f5f9;
}

.f3k-gf-links {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.f3k-gf-links li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.8px;
  font-weight: 600;
  color: #a8bbd2;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.2s var(--f3k-ease-out);
}

.f3k-gf-links li a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1.5px;
  background: rgba(148, 163, 184, 0.45);
  transform: rotate(45deg);
  transition: background 0.18s ease, transform 0.2s var(--f3k-ease-out);
  flex-shrink: 0;
}

.f3k-gf-links li a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.f3k-gf-col.col-red .f3k-gf-links li a:hover::before { background: #ef4444; }
.f3k-gf-col.col-green .f3k-gf-links li a:hover::before { background: #22c55e; }

/* Col 3: Uniform 2x2 Partner Plaques + Official WeChat/Alipay Settlement Badges */
.f3k-gf-sponsors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}

.f3k-gf-sponsor-card {
  height: 48px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
  transition: transform 0.2s var(--f3k-ease-out), box-shadow 0.2s ease;
}

.f3k-gf-sponsor-card:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

.f3k-gf-sponsor-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.f3k-gf-pay-box {
  width: 100%;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f3k-gf-pay-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.f3k-gf-pay-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
}

.f3k-gf-pay-chip img {
  height: 17px;
  width: auto;
  object-fit: contain;
  display: block;
}

.f3k-gf-pay-chip.is-wx {
  background: linear-gradient(135deg, #07c160 0%, #059a4c 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.24);
}

.f3k-gf-pay-chip.is-ali {
  background: linear-gradient(135deg, #1677ff 0%, #0d5bdb 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.26);
}

.f3k-gf-pay-chip.is-fx {
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.32);
  color: #fde68a;
  height: 32px;
}

.f3k-gf-pay-note {
  margin: 0;
  font-size: 12.5px;
  color: #8fa3bd;
  line-height: 1.5;
}

/* Col 4: Left-Aligned Horizontal WeChat QR Card & Direct Contact */
.f3k-gf-qr-card {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}

.f3k-gf-qr-img {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  background: #ffffff;
  padding: 4px;
  flex-shrink: 0;
}

.f3k-gf-qr-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.f3k-gf-qr-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 4px;
}

.f3k-gf-qr-info span {
  display: block;
  font-size: 12.5px;
  color: #94a7c0;
  line-height: 1.48;
}

.f3k-gf-mail-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #94a3b8;
}

.f3k-gf-mail-bar a {
  color: #7dd3fc;
  font-weight: 700;
  text-decoration: none;
}

.f3k-gf-mail-bar a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Tier 3: Flush Bottom Legal & RBAC Bar */
.f3k-gf-bottom {
  background: rgba(4, 8, 15, 0.55);
  border-top: 1px solid rgba(148, 163, 184, 0.11);
  padding: 15px 0;
  font-size: 13px;
  color: #8496ae;
}

.f3k-gf-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.f3k-gf-bottom-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.f3k-gf-bottom-links a {
  color: #a6b8cf;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease;
}

.f3k-gf-bottom-links a:hover {
  color: #ffffff;
}

@media (max-width: 1120px) {
  .f3k-gf-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .wp-nav-link {
    padding: 0 11px;
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .wp-masthead-inner {
    height: auto;
    min-height: 62px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    flex-wrap: wrap;
  }
  .wp-nav-menu {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .wp-nav-menu::-webkit-scrollbar {
    display: none;
  }
  .f3k-gf-hero {
    padding: 24px 0 20px;
  }
  .f3k-gf-matrix {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}


/* ==========================================================================
   v13.1 — SF Express ¥20, 1.5% Aircraft Insurance Card & Global Address Engine
   ========================================================================== */
.f3k-insure-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--shell-border);
  background: var(--shell-card);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.f3k-insure-card:hover:not(.is-disabled) {
  border-color: var(--shell-accent);
}

.f3k-insure-card.is-active {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.08);
}

body.theme-dark .f3k-insure-card.is-active {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.13);
}

.f3k-insure-card.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.f3k-insure-left {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.f3k-insure-chk {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #16a34a;
  cursor: inherit;
  flex-shrink: 0;
}

.f3k-insure-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--shell-ink-900);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.f3k-insure-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(26, 115, 232, 0.12);
  color: var(--shell-accent);
}

.f3k-insure-card.is-active .f3k-insure-badge {
  background: rgba(22, 163, 74, 0.18);
  color: #15803d;
}

body.theme-dark .f3k-insure-card.is-active .f3k-insure-badge {
  color: #4ade80;
}

.f3k-insure-sub {
  font-size: 12.5px;
  color: var(--shell-ink-500);
  margin-top: 2px;
  line-height: 1.4;
}

.f3k-insure-price {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--shell-ink-700);
}

.f3k-insure-card.is-active .f3k-insure-price {
  color: #15803d;
}

body.theme-dark .f3k-insure-card.is-active .f3k-insure-price {
  color: #4ade80;
}

.f3k-sf-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  background: #111827;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.f3k-sf-pill i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

body.theme-dark .f3k-sf-pill {
  background: #0f172a;
  border: 1px solid rgba(248, 113, 113, 0.45);
}

/* Global Address Cascading Widget (.f3k-ga-*) */
.f3k-ga-root {
  border: 1px solid var(--shell-border);
  border-radius: 12px;
  padding: 12px 13px;
  background: var(--shell-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.f3k-ga-lbl {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--shell-ink-700) !important;
  margin-bottom: 4px;
  display: block;
}

.f3k-ga-country-ctrl {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(175px, 1fr);
  gap: 8px;
}

.f3k-select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--shell-border);
  background: var(--shell-card);
  color: var(--shell-ink-900);
  font-size: 14.5px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.14s ease;
}

.f3k-select:focus {
  border-color: var(--shell-accent);
}

.f3k-select.invalid {
  border-color: #dc2626 !important;
}

.f3k-ga-quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.f3k-ga-quick-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.f3k-ga-chip {
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--shell-border);
  background: var(--shell-card);
  color: var(--shell-ink-700);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
}

.f3k-ga-chip:hover {
  border-color: var(--shell-accent);
  color: var(--shell-ink-900);
}

.f3k-ga-chip.active {
  background: var(--shell-accent);
  border-color: var(--shell-accent);
  color: #ffffff;
}

.f3k-ga-paste-toggle {
  height: 27px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px dashed var(--shell-accent);
  background: rgba(26, 115, 232, 0.08);
  color: var(--shell-accent);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.f3k-ga-paste-toggle:hover {
  background: rgba(26, 115, 232, 0.15);
}

.f3k-ga-paste-panel {
  padding: 10px;
  border-radius: 9px;
  border: 1px dashed var(--shell-border);
  background: var(--shell-card);
}

.f3k-ga-paste-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.f3k-ga-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.f3k-ga-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.f3k-ga-street-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 155px;
  gap: 8px;
}

.f3k-ga-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--shell-card);
  border: 1px solid var(--shell-border);
  font-size: 13px;
  color: var(--shell-ink-700);
}

.f3k-ga-ship-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.f3k-ga-ship-tag.is-sf {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

body.theme-dark .f3k-ga-ship-tag.is-sf {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.f3k-ga-ship-tag.is-intl {
  background: rgba(26, 115, 232, 0.14);
  color: var(--shell-accent);
}

.f3k-ga-prev-text {
  font-weight: 600;
  word-break: break-word;
}

@media (max-width: 680px) {
  .f3k-ga-country-ctrl,
  .f3k-ga-grid3,
  .f3k-ga-grid2,
  .f3k-ga-street-row {
    grid-template-columns: 1fr;
  }
}

#f3kUnifiedCheckoutModal .f3k-dialog.wide {
  max-width: 960px;
  max-height: 96vh;
}
#f3kUnifiedCheckoutModal .f3k-dlg-head { padding: 11px 20px; }
#f3kUnifiedCheckoutModal .f3k-dlg-body { padding: 12px 20px; }
#f3kUnifiedCheckoutModal .f3k-dlg-foot { padding: 10px 20px; }
#f3kUnifiedCheckoutModal .f3k-wx-card { padding: 7px 12px; margin-bottom: 8px; }
#f3kUnifiedCheckoutModal .f3k-fx-bill-card { padding: 9px 13px; margin-top: 6px; }
#f3kUnifiedCheckoutModal .f3k-insure-card { margin: 6px 0; padding: 8px 11px; }
#f3kUnifiedCheckoutModal .f3k-form-grid { gap: 7px 12px; margin-top: 6px; }
#f3kUnifiedCheckoutModal .f3k-input,
#f3kUnifiedCheckoutModal .f3k-select { height: 35px; }
#f3kUnifiedCheckoutModal .f3k-ga-root { padding: 10px 12px; gap: 8px; }


/* ==========================================================================
   v13.2 F3K Cinema Guard Anti-Download Video Player & Multi-Platform Embeds
   ========================================================================== */
body.f3k-vp-body-lock {
  overflow: hidden !important;
}

.f3k-vp-outer {
  margin: 22px 0;
}

.f3k-vp-root {
  position: relative;
  width: 100%;
  margin: 22px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0b111e;
  border: 1px solid var(--shell-border);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.f3k-vp-outer > .f3k-vp-root {
  margin: 0;
}

.f3k-vp-root:focus-visible {
  border-color: var(--shell-accent);
  box-shadow: 0 0 0 3px rgba(29, 91, 191, 0.28), 0 16px 38px rgba(15, 23, 42, 0.24);
}

.f3k-vp-root.is-theater-mode,
.f3k-embed-root.is-theater-mode {
  width: min(1160px, calc(100vw - 40px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
}

.f3k-vp-root.is-web-fullscreen,
.f3k-embed-root.is-web-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  left: 0 !important;
  transform: none !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 99999 !important;
  display: flex;
  flex-direction: column;
}

.f3k-vp-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 42%, #162238 0%, #070b14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.f3k-vp-root.is-portrait-media .f3k-vp-stage {
  aspect-ratio: auto;
  max-height: 76vh;
}

.f3k-vp-root.is-fullscreen .f3k-vp-stage,
.f3k-vp-root.is-web-fullscreen .f3k-vp-stage {
  flex: 1 1 auto;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
}

.f3k-vp-video {
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: contain;
  display: block;
  pointer-events: none;
  background: transparent;
}

.f3k-vp-root.is-object-cover .f3k-vp-video {
  object-fit: cover;
}

.f3k-vp-shield {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
  background: transparent;
}

.f3k-vp-root.is-ui-hidden .f3k-vp-shield {
  cursor: none;
}

/* Top Metadata & Copyright Protection Pill */
.f3k-vp-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px 26px;
  background: linear-gradient(180deg, rgba(6, 10, 20, 0.82) 0%, rgba(6, 10, 20, 0.36) 58%, rgba(6, 10, 20, 0) 100%);
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.f3k-vp-root.is-ui-hidden .f3k-vp-topbar {
  opacity: 0;
  transform: translateY(-6px);
}

.f3k-vp-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.f3k-vp-4dot {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.f3k-vp-4dot i {
  width: 4px;
  height: 13px;
  border-radius: 2px;
  transform: skewX(-16deg);
}
.f3k-vp-4dot i:nth-child(1) { background: #ef4444; }
.f3k-vp-4dot i:nth-child(2) { background: #f59e0b; }
.f3k-vp-4dot i:nth-child(3) { background: #22c55e; }
.f3k-vp-4dot i:nth-child(4) { background: #38bdf8; }

.f3k-vp-title {
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.f3k-vp-res-badge {
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.36);
  flex-shrink: 0;
}

.f3k-vp-guard-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(241, 245, 249, 0.92);
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.28);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.f3k-vp-guard-pill svg {
  width: 13px;
  height: 13px;
  color: #34d399;
}

/* Center Play Button & Spinner & HUD Toast */
.f3k-vp-center-play {
  position: absolute;
  z-index: 6;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(135deg, rgba(29, 91, 191, 0.90), rgba(15, 23, 42, 0.86));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, background 0.2s ease;
}

.f3k-vp-center-play svg {
  width: 28px;
  height: 28px;
  margin-left: 2px;
}

.f3k-vp-center-play:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.f3k-vp-root.is-playing .f3k-vp-center-play {
  opacity: 0;
  transform: scale(0.84);
  pointer-events: none;
}

.f3k-vp-spinner {
  position: absolute;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.f3k-vp-root.is-buffering .f3k-vp-spinner {
  display: flex;
}

.f3k-vp-spinner i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #38bdf8;
  animation: f3kVpSpin 0.78s linear infinite;
}

@keyframes f3kVpSpin {
  to { transform: rotate(360deg); }
}

.f3k-vp-hud-toast {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  z-index: 8;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(8px);
}

.f3k-vp-hud-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.f3k-vp-error {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: rgba(8, 13, 24, 0.86);
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  font-size: 13.5px;
}

.f3k-vp-error[hidden] {
  display: none !important;
}

/* Bottom Control Deck */
.f3k-vp-controls {
  position: relative;
  z-index: 7;
  padding: 8px 14px 10px;
  background: linear-gradient(180deg, #10192b 0%, #0b1220 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.f3k-vp-root.is-fullscreen .f3k-vp-controls,
.f3k-vp-root.is-web-fullscreen .f3k-vp-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.62) 72%, rgba(7, 11, 20, 0) 100%);
  border-top: none;
  padding: 18px 20px 14px;
}

.f3k-vp-root.is-fullscreen.is-ui-hidden .f3k-vp-controls,
.f3k-vp-root.is-web-fullscreen.is-ui-hidden .f3k-vp-controls {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* Scrubbable Progress Bar */
.f3k-vp-progress-wrap {
  position: relative;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 4px;
}

.f3k-vp-progress-rail {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
  overflow: visible;
  transition: height 0.15s ease;
}

.f3k-vp-progress-wrap:hover .f3k-vp-progress-rail,
.f3k-vp-root.is-scrubbing .f3k-vp-progress-rail {
  height: 7px;
}

.f3k-vp-progress-buf {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
  pointer-events: none;
}

.f3k-vp-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 72%, #22c55e 100%);
  pointer-events: none;
}

.f3k-vp-progress-thumb {
  position: absolute;
  right: -6px;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #38bdf8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transform: translateY(-50%) scale(0);
  transition: transform 0.15s ease;
}

.f3k-vp-progress-wrap:hover .f3k-vp-progress-thumb,
.f3k-vp-root.is-scrubbing .f3k-vp-progress-thumb {
  transform: translateY(-50%) scale(1);
}

.f3k-vp-scrub-tip {
  position: absolute;
  bottom: 20px;
  left: 0;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s ease;
  white-space: nowrap;
}

.f3k-vp-progress-wrap:hover .f3k-vp-scrub-tip {
  opacity: 1;
}

.f3k-vp-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.f3k-vp-bar-left,
.f3k-vp-bar-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.f3k-vp-btn {
  width: 34px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.f3k-vp-btn svg {
  width: 18px;
  height: 18px;
}

.f3k-vp-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.f3k-vp-vol-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.f3k-vp-vol-slider {
  width: 68px;
  height: 4px;
  accent-color: #38bdf8;
  cursor: pointer;
}

.f3k-vp-time {
  margin-left: 6px;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
  white-space: nowrap;
}

.f3k-vp-time b {
  color: #f8fafc;
  font-weight: 700;
}

.f3k-vp-time i {
  font-style: normal;
  margin: 0 2px;
  opacity: 0.6;
}

.f3k-vp-speed-wrap {
  position: relative;
}

.f3k-vp-chip-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.07);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.f3k-vp-chip-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
}

.f3k-vp-speed-menu {
  position: absolute;
  right: 0;
  bottom: 36px;
  min-width: 118px;
  padding: 5px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 20;
}

.f3k-vp-speed-menu[hidden] {
  display: none !important;
}

.f3k-vp-speed-menu button {
  padding: 6px 10px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.f3k-vp-speed-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.f3k-vp-speed-menu button.is-active {
  background: rgba(37, 99, 235, 0.34);
  color: #60a5fa;
  font-weight: 800;
}

/* Right-Click Anti-Download Copyright Guard Menu */
.f3k-vp-guard-menu {
  position: absolute;
  z-index: 30;
  width: 248px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.38);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.f3k-vpgm-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 2px;
}

.f3k-vpgm-head svg {
  width: 18px;
  height: 18px;
  color: #34d399;
  flex-shrink: 0;
  margin-top: 2px;
}

.f3k-vpgm-head strong {
  display: block;
  font-size: 12.5px;
  color: #ffffff;
}

.f3k-vpgm-head span {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.f3k-vp-guard-menu button {
  padding: 7px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.f3k-vp-guard-menu button:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #ffffff;
}

/* ==========================================================================
   Multi-Platform Inline Video Embed Window (`Bilibili`, `YouTube`, `QQ`, etc.)
   ========================================================================== */
.f3k-embed-root {
  margin: 22px 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--shell-card);
  border: 1.5px solid var(--shell-border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

.f3k-embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--shell-subtle);
  border-bottom: 1px solid var(--shell-border);
}

.f3k-embed-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 240px;
}

.f3k-embed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: var(--p-color, #00aeec);
  flex-shrink: 0;
}

.f3k-embed-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.f3k-embed-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--shell-ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.f3k-embed-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.f3k-embed-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--shell-border);
  background: var(--shell-card);
  color: var(--shell-ink-700);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.f3k-embed-tool svg {
  width: 14px;
  height: 14px;
}

.f3k-embed-tool:hover,
.f3k-embed-tool.is-on {
  border-color: var(--shell-accent);
  color: var(--shell-accent);
  background: var(--shell-accent-soft);
}

.f3k-embed-viewport {
  position: relative;
  width: 100%;
  background: #0a0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.f3k-embed-root.is-widescreen .f3k-embed-viewport {
  aspect-ratio: 16 / 9;
}

.f3k-embed-root.is-portrait .f3k-embed-viewport {
  padding: 14px 0;
  background: radial-gradient(circle at 50% 50%, #19263c 0%, #090e18 100%);
}

.f3k-embed-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.f3k-embed-root.is-widescreen .f3k-embed-iframe {
  position: absolute;
  inset: 0;
}

.f3k-embed-root.is-portrait .f3k-embed-iframe {
  width: min(430px, 92%);
  aspect-ratio: 9 / 16;
  height: auto;
  max-height: 76vh;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.f3k-embed-root.is-web-fullscreen .f3k-embed-viewport {
  flex: 1 1 auto;
  aspect-ratio: auto !important;
  height: calc(100vh - 50px);
  padding: 0;
}

.f3k-embed-root.is-web-fullscreen .f3k-embed-iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  border-radius: 0;
}

.f3k-embed-archive-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--shell-subtle);
  border: 1px dashed var(--shell-border);
  color: var(--shell-ink-700);
  font-size: 13.5px;
  font-weight: 600;
}

.f3k-embed-archive-note svg {
  width: 18px;
  height: 18px;
  color: var(--shell-accent);
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .f3k-vp-vol-slider,
  .f3k-vp-guard-pill span,
  .f3k-vp-btn.is-rew,
  .f3k-vp-btn.is-fwd,
  .f3k-vp-btn.is-theater {
    display: none;
  }
  .f3k-embed-head {
    padding: 8px 10px;
  }
}
