/**
 * Flymodem & Fynode Official Visual Identity System (VIS) Compliance
 * Standard Color: Flymodem 活力蓝 (R:20 G:120 B:250 / #1478FA)
 * Secondary Colors: 
 *   - 天空蓝 (R:0 G:173 B:255 / #00ADFF - PANTONE 2995C)
 *   - 荧光绿 (R:30 G:255 B:30 / #1EFF1E - PANTONE 802C)
 *   - 标志黑 (R:35 G:24 B:21 / #231815)
 *   - 活力黄 (R:255 G:215 B:0 / #FFD700 - PANTONE YELLOW 012C)
 * Typography: HarmonyOS Sans SC / Clean Sans-Serif
 */

:root {
  /* Flymodem Brand Colors from VIS Manual */
  --fm-blue: #1478fa;             /* 品牌标准色: Flymodem 活力蓝 R:20 G:120 B:250 */
  --fm-blue-hover: #0c62d4;
  --fm-cyan: #00adff;             /* 标志辅助色: PANTONE 2995C R:0 G:173 B:255 */
  --fm-green: #1eff1e;            /* 电商升级版荧光绿: PANTONE 802C R:30 G:255 B:30 */
  --fm-green-badge: #10b981;
  --fm-dark: #231815;             /* 标志标准字黑: R:35 G:24 B:21 */
  --fm-yellow: #ffd700;           /* 辅助黄: PANTONE YELLOW 012C R:255 G:215 B:0 */
  --fm-orange: #ff6a00;           /* 电商促销橙 (<10%原则) */

  /* Neutral tones */
  --fn-black: var(--fm-dark);
  --fn-dark-gray: #2d2624;
  --fn-gray: #4b5563;
  --fn-light-gray: #9ca3af;
  --fn-border-color: #f1f5f9;
  --fn-card-border: #e2e8f0;
  --fn-bg-warm: #f8fafc;
  --fn-white: #ffffff;
  --fn-primary-blue: var(--fm-blue);
  --fn-radius-hero: 36px;
  --fn-radius-card: 16px;
  --fn-radius-pill: 999px;
  --fn-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography Compliance with VIS (HarmonyOS Sans SC) */
body {
  font-family: "HarmonyOS Sans SC", "HarmonyOS Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fn-black);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.fn-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.fn-container-fluid {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ==================== 1. Top Announcement Bar ==================== */
.fn-topbar-minimal {
  background-color: #0b0d10;
  color: #d1d5db;
  font-size: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.fn-topbar-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fn-topbar-left-links {
  display: flex;
  gap: 20px;
}
.fn-topbar-left-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: var(--fn-transition);
}
.fn-topbar-left-links a:hover {
  color: #ffffff;
}

.fn-topbar-center-ticker,
.fn-topbar-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
}
.fn-topbar-social-link {
  color: #94a3b8;
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.fn-topbar-social-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.fn-topbar-social-link.yt:hover { color: #ff0000; background: rgba(255, 0, 0, 0.18); }
.fn-topbar-social-link.ig:hover { color: #e1306c; background: rgba(225, 48, 108, 0.18); }
.fn-topbar-social-link.x:hover { color: #ffffff; background: rgba(255, 255, 255, 0.3); }
.fn-topbar-social-link.thread:hover { color: #ffffff; background: rgba(255, 255, 255, 0.3); }
.fn-topbar-social-link.fb:hover { color: #1877f2; background: rgba(24, 119, 242, 0.18); }

.fn-ticker-arrow {
  color: #9ca3af;
  cursor: pointer;
  font-size: 14px;
}
.fn-ticker-link {
  color: #ffffff;
  text-decoration: underline;
  margin-left: 4px;
  font-weight: 500;
}

.fn-topbar-right-controls {
  display: flex;
  gap: 16px;
}
.fn-dropdown-select {
  cursor: pointer;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
}
.fn-dropdown-select:hover {
  color: #ffffff;
}

.fn-topbar-mobile {
  display: none;
  text-align: center;
  color: #ffffff;
  font-size: 12px;
}
.fn-topbar-mobile .fn-topbar-social-links {
  gap: 12px;
}

/* ==================== 2. Main Navigation Header ==================== */
.fn-header-minimal {
  background: #ffffff;
  border-bottom: 1px solid #f0f2f5;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.fn-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Mobile Menu Toggle Button: Hidden on desktop until bottom nav breakpoint <= 1024px */
.fn-mobile-menu-toggle {
  display: none !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--fn-black);
}

@media (max-width: 1024px) {
  .fn-mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* Fynode Logo */
.fn-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--fn-black);
}
.fn-logo-mark {
  flex-shrink: 0;
}
.fn-logo-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--fn-black);
  text-transform: lowercase;
}

/* Desktop Navigation Menu */
.fn-desktop-nav {
  display: flex;
}
.fn-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
  align-items: center;
}
.fn-nav-menu li a {
  text-decoration: none;
  color: #1f2937;
  font-size: 14.5px;
  font-weight: 600;
  transition: var(--fn-transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.fn-nav-menu li a:hover {
  color: #000000;
}
.nav-caret {
  font-size: 11px;
  color: #9ca3af;
}
.fn-nav-badge-link {
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--fn-primary-blue) !important;
}

/* Header Action Icons */
.fn-header-actions-minimal {
  display: flex;
  align-items: center;
  gap: 18px;
}
.fn-hdr-action-btn {
  color: var(--fn-black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: var(--fn-transition);
}
.fn-hdr-action-btn:hover {
  opacity: 0.75;
}
.fn-account-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fn-black);
}
.fn-badge-pill {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--fn-black);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Collapsed Mobile Header Action Icon */
.fn-hdr-mobile-collapse-btn {
  display: none !important;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
  color: var(--fn-black);
  transition: background 0.15s ease;
  line-height: 1;
}
#fn-hdr-mobile-drawer-btn {
  display: none !important;
}
.fn-hdr-mobile-collapse-btn:active {
  background: rgba(0, 0, 0, 0.06);
}

/* User & Cart Sliding Drawer (Right-side Offcanvas) */
#fn-user-cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999999;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#fn-user-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 88vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 28px rgba(0, 0, 0, 0.15);
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==================== 3. Giant Rounded Hero Banner ==================== */
.fn-hero-rounded-wrapper {
  padding: 16px 24px 0;
  box-sizing: border-box;
}
.fn-hero-card {
  max-width: 1380px;
  margin: 0 auto;
  border-radius: var(--fn-radius-hero);
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 42vw, 540px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  /* Flymodem Official 5G Hardware & Global Network Banner */
  background: 
    linear-gradient(90deg, rgba(5, 18, 54, 0.94) 0%, rgba(5, 18, 54, 0.78) 42%, rgba(5, 18, 54, 0.15) 75%, transparent 100%),
    url('/assets/img/hero-banner-vietnam-5g.png') right center / cover no-repeat;
  background-color: #06143c;
}
.fn-hero-slide-video {
  min-height: clamp(340px, 42vw, 540px);
}
.fn-hero-slide-video iframe {
  width: 100% !important;
  height: 100% !important;
}

.fn-hero-content-center {

  text-align: left;
  color: #ffffff;
  padding: 48px 56px;
  max-width: 640px;
  z-index: 2;
}
.fn-hero-sub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.fn-hero-headline {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -1.2px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.fn-hero-tagline {
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 540px;
}
.fn-btn-pill-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 34px;
  border-radius: var(--fn-radius-pill);
  text-decoration: none;
  transition: var(--fn-transition);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.fn-btn-pill-white:hover {
  background: #1478FA;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 120, 250, 0.4);
}

/* Right Navigation Slider Arrow */
.fn-hero-next-arrow {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: var(--fn-transition);
  z-index: 3;
}
.fn-hero-next-arrow:hover {
  background: #f9fafb;
  transform: translateY(-50%) scale(1.06);
}

/* ==================== 4. Brand Logos Strip ==================== */
.fn-brands-strip {
  padding: 44px 0 24px;
}
.fn-brands-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 36px;
}
.fn-brand-logo-item {
  display: flex;
  align-items: center;
}
.fn-brand-txt {
  font-size: 24px;
  font-weight: 900;
  color: #111827;
  letter-spacing: 1px;
}
.fn-brand-txt.bose {
  font-style: italic;
  letter-spacing: 2px;
}
.fn-brand-txt.urbanista {
  font-weight: 700;
  letter-spacing: -0.5px;
}
.fn-brand-txt.sennheiser {
  letter-spacing: 1.5px;
  font-size: 20px;
}
.fn-brand-txt.sony {
  font-family: serif;
  letter-spacing: 4px;
  font-size: 26px;
}

/* ==================== 5. Capture Every Detail Section ==================== */
.fn-section-capture {
  padding: 40px 0 60px;
}
.fn-capture-header {
  margin-bottom: 32px;
}
.fn-capture-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--fn-black);
  letter-spacing: -0.5px;
}
.fn-capture-desc {
  font-size: 15px;
  color: var(--fn-gray);
  margin: 0;
}

.fn-products-minimal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fn-minimal-card {
  background: #ffffff;
  border: 1px solid var(--fn-card-border);
  border-radius: var(--fn-radius-card);
  padding: 24px;
  position: relative;
  transition: var(--fn-transition);
  display: flex;
  flex-direction: column;
}
.fn-minimal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}
.fn-card-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #f3f4f6;
  color: var(--fn-black);
  padding: 4px 8px;
  border-radius: 4px;
}
.fn-card-tag.hot {
  background: #fee2e2;
  color: #ef4444;
}
.fn-card-img-box {
  height: 200px;
  background: var(--fn-bg-warm);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.fn-card-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--fn-light-gray);
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.fn-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
}
.fn-card-title a {
  color: var(--fn-black);
  text-decoration: none;
}
.fn-card-title a:hover {
  color: var(--fn-primary-blue);
}
.fn-card-pricing {
  margin-bottom: 18px;
}
.fn-current-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--fn-black);
}
.fn-old-price {
  font-size: 14px;
  color: var(--fn-light-gray);
  text-decoration: line-through;
  margin-left: 8px;
}
.fn-card-actions-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}
.fn-card-sn-link {
  font-size: 12px;
  color: var(--fn-primary-blue);
  text-decoration: none;
  font-weight: 600;
}
.fn-card-add-btn {
  background: var(--fn-black);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--fn-radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--fn-transition);
}
.fn-card-add-btn:hover {
  background: #374151;
}

/* ==================== 6. After-Sales Banner Card ==================== */
.fn-aftersales-banner-card {
  background: #111827;
  color: #ffffff;
  border-radius: var(--fn-radius-card);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.fn-as-banner-text h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 10px 0 8px;
}
.fn-as-banner-text p {
  color: #9ca3af;
  margin: 0;
  max-width: 680px;
  font-size: 14px;
  line-height: 1.6;
}
.fn-as-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.fn-btn-pill-dark {
  background: #ffffff;
  color: #111827;
  padding: 12px 28px;
  border-radius: var(--fn-radius-pill);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: var(--fn-transition);
  display: inline-block;
}
.fn-btn-pill-dark:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
}

/* ==================== 7. Minimal Footer ==================== */
.fn-minimal-footer {
  border-top: 1px solid #e5e7eb;
  padding: 48px 0 32px;
  background: #ffffff;
  font-size: 14px;
}
.fn-footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.fn-footer-cols h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
}
.fn-footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fn-footer-cols ul li {
  margin-bottom: 10px;
}
.fn-footer-cols a {
  color: #6b7280;
  text-decoration: none;
  transition: var(--fn-transition);
}
.fn-footer-cols a:hover {
  color: #111827;
}
.fn-footer-copy {
  border-top: 1px solid #f3f4f6;
  padding-top: 24px;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

/* ==================== 8. Mobile Bottom Sticky Navigation (Exact Match to Screenshot 1) ==================== */
.fn-mobile-bottom-bar {
  display: none; /* Hidden on Desktop */
}

@media (max-width: 1024px) {
  body {
    padding-bottom: 76px !important; /* Prevent content clipping on mobile */
  }

  /* Show Bottom Navigation on all mobile & tablet screens */
  .fn-mobile-bottom-bar {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
    z-index: 999999 !important;
    padding: 6px 0 !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
  }
  /* 手机屏幕底部导航出现时，隐藏悬浮聊天气泡，由底部导航的客服直达按钮承接 */
  #fn-chat-widget-wrap {
    display: none !important;
  }

  /* 底部导航栏显现时 (<= 1024px)：将顶部的“登录 注册 退出”及“购物车”三个入口彻底收缩为单个icon，点击呼出侧滑页面展开 */
  .fn-hdr-auth-wrap,
  .fn-header-auth-wrap,
  .fn-hdr-auth-wrapper,
  .fn-header-actions-minimal .fn-hdr-auth-wrap,
  .fn-header-actions-minimal .fn-header-auth-wrap,
  .fn-header-actions-minimal .fn-hdr-auth-wrapper,
  .fn-header-actions .fn-hdr-auth-wrap,
  .fn-header-actions .fn-header-auth-wrap,
  .fn-header-actions .fn-hdr-auth-wrapper,
  .fn-header-actions-minimal > a[href*="cart"],
  .fn-header-actions-minimal > a[title*="Cart"],
  .fn-header-actions-minimal > a[title*="cart"],
  .fn-header-actions > a[href*="cart"],
  .fn-header-actions > a[title*="Cart"],
  .fn-header-actions > a[title*="cart"],
  .fn-header-actions-minimal > .fn-hdr-action-btn:not(.fn-hdr-mobile-collapse-btn),
  .fn-hdr-cart-desktop {
    display: none !important;
  }
  .fn-header-actions-minimal .fn-hdr-mobile-collapse-btn,
  .fn-header-actions-minimal #fn-hdr-mobile-drawer-btn,
  .fn-header-actions .fn-hdr-mobile-collapse-btn,
  .fn-header-actions #fn-hdr-mobile-drawer-btn,
  #fn-hdr-mobile-drawer-btn {
    display: inline-flex !important;
  }
  .fn-hdr-mobile-collapse-btn {
    display: inline-flex !important;
  }
  .fn-bottom-bar-inner {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
  }
  .fn-bottom-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
    text-decoration: none !important;
    color: #4b5563 !important;
    transition: var(--fn-transition) !important;
    padding: 4px 8px !important;
    min-width: 50px !important;
  }
  .fn-bottom-item.active, .fn-bottom-item:hover {
    color: #111827 !important;
  }
  .fn-bottom-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .fn-bottom-label {
    font-size: 9.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
  }
}

/* 桌面大屏 (> 1024px，底部导航栏不显现时)：单个折叠图标彻底隐藏，三大入口正常展开 */
@media (min-width: 1025px) {
  .fn-mobile-bottom-bar {
    display: none !important;
  }
  .fn-header-actions-minimal .fn-hdr-mobile-collapse-btn,
  .fn-header-actions-minimal #fn-hdr-mobile-drawer-btn,
  .fn-header-actions .fn-hdr-mobile-collapse-btn,
  .fn-header-actions #fn-hdr-mobile-drawer-btn,
  .fn-hdr-mobile-collapse-btn,
  #fn-hdr-mobile-drawer-btn {
    display: none !important;
  }
  .fn-hdr-auth-wrap,
  .fn-header-auth-wrap,
  .fn-hdr-auth-wrapper,
  .fn-header-actions-minimal .fn-hdr-auth-wrap,
  .fn-header-actions-minimal .fn-header-auth-wrap,
  .fn-header-actions .fn-hdr-auth-wrap,
  .fn-header-actions .fn-header-auth-wrap {
    display: inline-flex !important;
  }
  .fn-hdr-cart-desktop,
  .fn-header-actions-minimal > a[href*="cart"],
  .fn-header-actions-minimal > a[title*="Cart"],
  .fn-header-actions > a[href*="cart"],
  .fn-header-actions > a[title*="Cart"] {
    display: inline-flex !important;
  }
}

@media (max-width: 768px) {
  .fn-topbar-desktop {
    display: none !important;
  }
  .fn-topbar-mobile {
    display: block !important;
  }
  .fn-mobile-menu-toggle {
    display: block !important;
  }
  .fn-desktop-nav {
    display: none !important;
  }
  .fn-hide-mobile {
    display: none !important;
  }
  /* Mobile Header Topbar & Logo Centering */
  .fn-header-flex {
    position: relative !important;
    justify-content: space-between !important;
  }
  .fn-brand-logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .fn-brand-logo .fn-logo-name {
    text-align: center !important;
  }
  /* Mobile Header: Hide all 3 entrances (Login/Register, Account/Logout, Cart) and show collapsed drawer button */
  .fn-hdr-auth-wrap,
  .fn-header-auth-wrap,
  .fn-hdr-auth-wrapper,
  .fn-hdr-cart-desktop,
  .fn-header-actions-minimal > a[href*="cart"],
  .fn-header-actions > a[href*="cart"],
  #fn-hdr-username,
  .fn-account-label,
  .fn-header-actions-minimal .fn-hdr-logout,
  .fn-header-actions .fn-hdr-logout,
  .fn-hdr-auth-wrap .fn-hdr-logout,
  .fn-hdr-action-btn.fn-auth-user {
    display: none !important;
  }
  .fn-hdr-mobile-collapse-btn,
  #fn-hdr-mobile-drawer-btn {
    display: inline-flex !important;
  }
  .fn-hero-rounded-wrapper {
    padding: 10px 12px 0;
  }
  .fn-hero-slide,
  .fn-hero-slide-first {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
  .fn-hero-card,
  .fn-hero-slide-first .fn-hero-card {
    min-height: clamp(320px, 72vw, 440px) !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    background: 
      linear-gradient(180deg, rgba(5, 18, 54, 0.9) 0%, rgba(5, 18, 54, 0.65) 55%, rgba(5, 18, 54, 0.95) 100%),
      url('/assets/img/hero-banner-vietnam-5g.png') center center / cover no-repeat;
  }
  .fn-hero-content-center {
    text-align: center !important;
    padding: 24px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  .fn-hero-sub-eyebrow {
    margin: 0 auto 14px auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .fn-hero-headline {
    font-size: clamp(20px, 5.5vw, 28px) !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    letter-spacing: -0.5px !important;
  }
  .fn-hero-tagline {
    font-size: 13px !important;
    text-align: center !important;
    margin: 0 auto 22px auto !important;
    max-width: 92% !important;
    width: 100% !important;
    line-height: 1.55 !important;
  }
  .fn-hero-cta-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .fn-hero-cta-wrap .fn-btn-pill-white {
    margin: 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .fn-hero-slide-video {
    min-height: clamp(220px, 56.25vw, 400px) !important;
  }
  .fn-hero-video-overlay {
    padding: 10px 14px 28px !important;
  }

  .fn-hero-next-arrow {
    right: 14px;
    width: 38px;
    height: 38px;
  }
  .fn-brands-flex {
    gap: 18px;
  }
  .fn-brand-txt {
    font-size: 18px;
  }
  .fn-products-minimal-grid {
    grid-template-columns: 1fr;
  }
  .fn-footer-cols {
    grid-template-columns: 1fr;
  }
}

/* ==================== 9. After-Sales Service Page Styles ==================== */
.fn-aftersales-wrap {
  padding: 40px 0 60px;
  background: #f9fafb;
  min-height: 70vh;
}
.fn-as-header-banner {
  background: transparent;
  color: #0f172a;
  padding: 12px 16px 24px;
  text-align: center;
  margin: 0 auto 24px;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
}
.fn-as-header-banner h1 {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}
.fn-as-header-banner p {
  color: #64748b;
  font-size: 14.5px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}
.fn-as-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto 30px;
}
.fn-as-tabs {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 24px;
}
.fn-as-tab-btn {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  padding: 10px 18px;
  border-bottom: 2px solid #111827;
  margin-bottom: -2px;
}
.fn-sn-input-group {
  margin-bottom: 18px;
}
.fn-sn-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.fn-sn-input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}
.fn-sn-input-wrapper:focus-within {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}
.fn-sn-input {
  flex: 1;
  border: none;
  padding: 13px 16px;
  font-size: 15px;
  font-family: monospace;
  font-weight: 700;
  outline: none;
}
.fn-sn-clear-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0 12px;
}
.fn-sn-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.fn-btn-scan-qr {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fn-btn-scan-qr:hover {
  background: #e5e7eb;
}
.fn-btn-query {
  flex: 1;
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.fn-btn-query:hover {
  background: #1f2937;
}

/* Demo quick pill */
.fn-demo-sn-pill {
  font-size: 13px;
  color: #6b7280;
  background: #f9fafb;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px dashed #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.fn-demo-sn-btn {
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Query Result Card */
.fn-result-card {
  background: #ffffff;
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}
.fn-res-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.fn-res-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.fn-res-badge {
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.fn-res-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.fn-res-item {
  background: #f9fafb;
  padding: 12px 14px;
  border-radius: 8px;
}
.fn-res-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}
.fn-res-val {
  font-size: 14px;
  font-weight: 700;
}
.fn-res-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.fn-btn-flymodem {
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fn-btn-service {
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Ticket Form Section */
.fn-ticket-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed #d1d5db;
}
.fn-ticket-section-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
}
.fn-ticket-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 18px;
}
.fn-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.fn-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fn-form-group.full-width {
  grid-column: span 2;
}
.fn-form-label {
  font-size: 13px;
  font-weight: 700;
}
.fn-form-control, .fn-form-select, .fn-form-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.fn-form-control:focus, .fn-form-select:focus, .fn-form-textarea:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}
.fn-form-textarea {
  min-height: 70px;
  resize: vertical;
}
.fn-btn-submit-ticket {
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}
.fn-btn-submit-ticket:hover {
  background: #1f2937;
}

/* Ticket success box */
.fn-ticket-success-box {
  display: none;
  background: #f0fdf4;
  border: 2px solid #22c55e;
  border-radius: 12px;
  padding: 20px;
  margin-top: 18px;
}
.fn-ticket-num {
  font-family: monospace;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Camera Scanner Modal */
.fn-scan-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.fn-scan-modal.active {
  display: flex;
}
.fn-scan-dialog {
  background: #111827;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  color: #fff;
  overflow: hidden;
}
.fn-scan-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.fn-scan-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.fn-scan-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 24px;
  cursor: pointer;
}
.fn-scan-body {
  position: relative;
  background: #000;
  height: 300px;
}
#fn-scan-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fn-scan-reticle {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border: 2px solid #3b82f6;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}
.fn-scan-footer {
  padding: 14px 20px;
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}
.fn-upload-qr-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  margin-top: 8px;
}

/* ==================== Maktub Philosophy: Text-Mode & Low-Bandwidth Adaptive Layout ==================== */
.fn-text-mode-btn {
  background: rgba(20, 120, 250, 0.08);
  border: 1px solid rgba(20, 120, 250, 0.25);
  color: #1478FA;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.fn-text-mode-btn:hover {
  background: #1478FA;
  color: #ffffff;
}
[data-text-mode="true"] .fn-hero-slider-track > div:not(:first-child),
[data-text-mode="true"] iframe,
[data-text-mode="true"] video,
[data-text-mode="true"] .fn-decorative-sticker,
[data-text-mode="true"] .fn-banner-carousel,
[data-text-mode="true"] .fn-card-img-box img,
[data-text-mode="true"] .fn-topbar-social-links {
  display: none !important;
}
[data-text-mode="true"] .fn-hero-card {
  background: #0f172a !important;
  min-height: 280px !important;
}
[data-text-mode="true"] .fn-hero-content-center {
  padding: 24px 28px !important;
}
[data-text-mode="true"] body {
  background: #fafafa !important;
  color: #0f172a !important;
  font-size: 16px !important;
}
[data-text-mode="true"] .fn-minimal-card {
  box-shadow: none !important;
  border: 1px solid #cbd5e1 !important;
}

/* ==================== 9. Collapsible Mobile Dock & Floating Action Circle ==================== */
.fn-dock-circle-fab {
  position: fixed !important;
  bottom: 24px !important;
  right: 18px !important;
  z-index: 9999999 !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.42), 0 0 0 3px rgba(20, 120, 250, 0.28) !important;
  background: #0f172a !important;
  animation: fnDockPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  overflow: hidden !important;
}
.fn-dock-circle-main {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 0.15s ease !important;
  padding: 0 !important;
}
.fn-dock-circle-main:active {
  transform: scale(0.92) !important;
}
.fn-dock-circle-icon {
  font-size: 19px !important;
  color: #38bdf8 !important;
}
.fn-dock-circle-text {
  font-size: 8px !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  margin-top: 1px !important;
  color: #ffffff !important;
}
.fn-dock-circle-quicktop {
  display: none !important;
}

.fn-mobile-bottom-bar {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.fn-mobile-bottom-bar.fn-dock-collapsed {
  transform: translateY(120%) !important;
  pointer-events: none !important;
}

.fn-dock-btn-action {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
}
.fn-collapse-icon-wrap {
  background: rgba(20, 120, 250, 0.12) !important;
  color: #1478FA !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ==================== 10. Universal Mobile Small Screen (< 480px) & Ultra-Compact (< 380px) UI Consistency ==================== */
@media (max-width: 480px) {
  .fn-container, .fn-container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .fn-minimal-card, .fn-card, .nt-card, #bind-device-panel, .fn-warranty-card {
    padding: 16px 12px !important;
    border-radius: 12px !important;
  }
  #customer-devices-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .fn-bottom-bar-inner {
    padding: 0 2px !important;
    gap: 1px !important;
  }
  .fn-bottom-item {
    min-width: 38px !important;
    padding: 3px 2px !important;
  }
  .fn-bottom-label {
    font-size: 8px !important;
    letter-spacing: 0 !important;
  }
  .fn-bottom-icon i {
    font-size: 15px !important;
  }
  .fn-btn-scan-qr {
    padding: 8px 12px !important;
    font-size: 12.5px !important;
  }
  table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (max-width: 380px) {
  .fn-bottom-label {
    display: none !important;
  }
  .fn-bottom-item {
    min-width: 32px !important;
    padding: 6px 2px !important;
  }
  .fn-bottom-icon i {
    font-size: 17px !important;
  }
}


