/* ============================================================================
   DQ SHOPS — 3-TIER NEUTRAL LIGHT LAYOUT & DYNAMIC SOFTWARE SHOWCASE
   Palette: Neutral Light (#F5F7FA canvas, #FFFFFF cards, #E5E7EB borders)
   ============================================================================ */

html,
body.home-3tier-page,
body.dq-shared-page {
  background: #F8FAFC !important;
  color: #0F172A;
}

body.webgl-fallback-bg {
  background:
    radial-gradient(circle at 18% 22%, rgba(224, 242, 254, 0.88) 0%, transparent 48%),
    radial-gradient(circle at 82% 36%, rgba(186, 230, 253, 0.72) 0%, transparent 52%),
    radial-gradient(circle at 46% 78%, rgba(219, 234, 254, 0.85) 0%, transparent 55%),
    linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 48%, #FFFFFF 100%) !important;
  background-attachment: fixed !important;
}

#dq-page-silk-bg {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  display: block !important;
}

.home-3tier-page .page,
.dq-shared-page .page {
  position: relative;
  z-index: 1;
  background: transparent !important;
  min-height: 100dvh;
}

/* ===== STICKY HEADER & DESKTOP NAVIGATION (FROSTED GLASS + SLIDING PILL) ===== */
.home-3tier-page .header,
.dq-shared-page .header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
  height: 66px !important;
  padding: 0 24px !important;
  gap: 16px;
}

.dq-shared-page .header .logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.dq-shared-page .header .logo img {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block;
}

.dq-shared-page .header .header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dq-shared-page .header .header-actions .user-info {
  color: #0F172A !important;
}

.desktop-header-nav {
  display: none;
  position: relative;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  padding: 4px;
  border-radius: 12px;
}

.desktop-nav-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: 10px;
  background: #EFF6FF;
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  will-change: transform, width;
}

.desktop-nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  background: transparent;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.desktop-nav-link svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.desktop-nav-link:hover {
  color: #0F172A;
}

.desktop-nav-link.active {
  color: #2563EB;
  font-weight: 700;
}

.desktop-contact-btn {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.desktop-contact-btn:hover {
  color: #1D4ED8;
}

.desktop-contact-avatar {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1px solid #CBD5E1;
  display: block;
  flex-shrink: 0;
}

/* Balance Contact Popup Grid: 2x3 Mobile, 3x2 Desktop */
.contact-popup-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 992px) {
  .contact-popup-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 992px) {
  .desktop-header-nav {
    display: flex;
  }

  /* Hide floating bottom dock on Desktop so it never blocks prices/buy buttons */
  .home-3tier-page .bottom-nav {
    display: none !important;
  }

  .home-3tier-page .content-wrap {
    padding-bottom: 48px !important;
  }
}

@media (max-width: 991.98px) {
  .home-3tier-page .header {
    padding: 0 14px !important;
  }

  .home-3tier-page .desktop-header-nav {
    display: none !important;
  }

  .home-3tier-page .home-3tier-shell {
    padding: 14px 12px 116px !important;
    gap: 18px;
  }

  /* Tầng 2 (Kho Phần mềm): 1 cột gọn gàng trên Mobile */
  .sw-spotlight-card {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    gap: 16px !important;
  }

  .sw-spotlight-right {
    padding: 14px !important;
  }

  .sw-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .tier-section-header {
    margin-bottom: 12px;
    gap: 10px;
  }

  .tier-section-heading {
    font-size: 17.5px;
  }

  /* Tầng 3 (Game & MXH): chuyển cột danh mục dọc thành dải icon cuộn ngang phía trên */
  .home-3tier-page .tier3-content-wrap {
    flex-direction: column !important;
    gap: 12px !important;
    padding-bottom: 12px !important;
  }

  .home-3tier-page .tier3-content-wrap .left-rail {
    width: 100% !important;
    position: static !important;
    top: auto !important;
    padding-top: 0 !important;
  }

  .home-3tier-page .tier3-content-wrap .left-rail .pill-stack {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-3tier-page .tier3-content-wrap .left-rail .pill-stack::-webkit-scrollbar {
    display: none;
  }

  .home-3tier-page .tier3-content-wrap .left-rail .pill-item {
    flex: 0 0 auto !important;
    min-width: 66px;
  }

  .home-3tier-page .tier3-content-wrap .left-rail .pill {
    width: 48px !important;
    height: 48px !important;
  }

  .home-3tier-page .tier3-content-wrap .center-column {
    width: 100% !important;
  }

  .home-3tier-page .tier3-content-wrap .main-area {
    padding: 12px !important;
    min-height: auto !important;
  }

  .home-3tier-page .tier3-content-wrap .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* ===== MAIN SHELL CONTAINER ===== */
.home-3tier-shell {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 20px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (max-width: 991.98px) {
  .home-3tier-shell {
    padding: 14px 12px 96px;
    gap: 20px;
  }
}

/* ===== TẦNG 1: BANNER CHÍNH (70%) + TOP NẠP THẺ (30%) ===== */
.tier1-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
  gap: 18px;
  align-items: stretch;
}

.tier1-hero-row .hero {
  position: relative;
  height: 310px;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.tier1-hero-row .hero img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.25s ease-out;
  will-change: transform;
}

.dq-banner-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  display: block;
}

.tier1-leaderboard-col {
  width: 100% !important;
  min-width: 0;
  height: 310px;
  display: flex !important;
  flex-direction: column;
}

.tier1-leaderboard-col .leaderboard-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 14px 14px 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.tier1-leaderboard-col .leaderboard-header {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
  flex-shrink: 0;
}

.tier1-leaderboard-col .leaderboard-header h3 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  background: none !important;
  -webkit-text-fill-color: #0F172A !important;
  letter-spacing: 0.3px;
}

.tier1-leaderboard-col .rank-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.tier1-leaderboard-col .rank-list::-webkit-scrollbar {
  width: 5px;
}

.tier1-leaderboard-col .rank-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px;
}

.tier1-leaderboard-col .rank-item {
  padding: 7px 8px;
  gap: 10px;
}

.tier1-leaderboard-col .rank-item.top1 {
  margin-bottom: 6px;
}

@media (min-width: 1280px) {
  .tier1-hero-row .hero,
  .tier1-leaderboard-col {
    height: 336px;
  }
}

@media (max-width: 991.98px) {
  .tier1-hero-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tier1-hero-row .hero {
    height: 170px;
  }

  .tier1-leaderboard-col {
    display: none !important;
  }

  .home-3tier-page .mobile-rank-banner {
    display: flex !important;
    margin: 0 !important;
    width: 100% !important;
    border-radius: 12px !important;
  }
}

/* ===== SECTION HEADERS (TẦNG 2 & TẦNG 3 — FROSTED WHITE PILL + BRIGHT DYNAMIC GRADIENT) ===== */
.tier-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tier-section-title-group {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 7px 18px 7px 9px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tier-section-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(8, 145, 178, 0.14) 100%);
  border: 1px solid rgba(37, 99, 235, 0.24);
  color: #2563EB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

#tier-marketplace .tier-section-icon,
.tier3-marketplace-section .tier-section-icon {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(6, 182, 212, 0.14) 100%);
  border: 1px solid rgba(37, 99, 235, 0.24);
  color: #2563EB !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.tier-section-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tier-section-heading {
  font-size: clamp(20px, 1.9vw, 23px);
  font-weight: 850;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
  display: inline-block;
  background: linear-gradient(135deg, #2563EB 0%, #0891B2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#tier-software .tier-section-heading,
.tier2-software-section .tier-section-heading {
  background: linear-gradient(135deg, #2563EB 0%, #0891B2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#tier-marketplace .tier-section-heading,
.tier3-marketplace-section .tier-section-heading {
  background: linear-gradient(135deg, #2563EB 0%, #0891B2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.tier-section-sub {
  display: none !important;
}

.tier-jump-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
}

.tier-jump-btn:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
  color: #0F172A;
  transform: translateY(1px);
}

.tier-jump-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

/* ===== TẦNG 2: KHO PHẦN MỀM ĐỘC QUYỀN (UNBOXED FLOATING FROSTED GLASS CARDS ON FULL-PAGE SILK) ===== */
#tier-software,
.tier2-software-section {
  position: relative !important;
  z-index: 1 !important;
  width: 100%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.tier2-software-section > .tier-section-header,
.tier2-software-section > #software-catalog-root {
  position: relative !important;
  z-index: 2 !important;
}

@media (max-width: 991.98px) {
  #tier-software,
  .tier2-software-section {
    padding: 6px 0 !important;
  }
}

.sw-loading-state {
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(124, 58, 237, 0.22);
  border-radius: 18px;
  padding: 36px 20px;
  text-align: center;
  color: #475569;
  font-size: 14px;
}

/* --- Spotlight Card (1 Software Product — Crisp White Frosted Glass Floating on Silk) --- */
.sw-spotlight-card {
  --sw-accent: #7C3AED;
  position: relative;
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1.5px solid rgba(124, 58, 237, 0.28) !important;
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow:
    0 14px 38px -10px rgba(109, 40, 217, 0.12),
    0 4px 14px rgba(15, 23, 42, 0.05) !important;
  transition: border-color 0.25s ease, box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 1fr);
  gap: 24px;
  align-items: center;
}

.sw-spotlight-card:hover {
  border-color: var(--sw-accent) !important;
  box-shadow:
    0 18px 44px -10px color-mix(in srgb, var(--sw-accent) 35%, rgba(6, 182, 212, 0.25)),
    0 0 24px -4px color-mix(in srgb, var(--sw-accent) 30%, rgba(236, 72, 153, 0.22)),
    0 0 0 1px color-mix(in srgb, var(--sw-accent) 45%, #FFFFFF) !important;
  transform: translateY(-5px);
}

@media (max-width: 920px) {
  .sw-spotlight-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }
}

.sw-identity-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.sw-logo-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.sw-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sw-title-meta {
  min-width: 0;
}

.sw-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sw-name,
.sw-name a {
  font-size: 22px;
  font-weight: 850 !important;
  margin: 0;
  letter-spacing: -0.02em;
  display: inline-block;
  background: none !important;
  -webkit-text-fill-color: #0F172A !important;
  color: #0F172A !important;
  text-decoration: none !important;
}

.sw-version-pill {
  font-size: 11.5px;
  font-weight: 800 !important;
  color: #0369A1 !important;
  -webkit-text-fill-color: #0369A1 !important;
  background: #E0F2FE !important;
  border: 1px solid #BAE6FD !important;
  padding: 2px 9px;
  border-radius: 999px;
}

.sw-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Strict SVG sizing guard: fixes shield/clock icon blowing up into black block */
.sw-status-pill svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  flex-shrink: 0 !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  display: inline-block !important;
}

.sw-status-pill.owned {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.sw-status-pill.coming-soon {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.sw-tagline {
  font-size: 14px;
  color: #475569;
  margin: 5px 0 0;
  line-height: 1.45;
}

.sw-highlights-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sw-highlights-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #1E293B !important;
  line-height: 1.45;
}

.sw-check-bullet {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: #10B981 !important;
  border: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.28);
}

.sw-highlights-list li svg {
  width: 11px !important;
  height: 11px !important;
  margin-top: 0;
  flex-shrink: 0;
  stroke: #FFFFFF !important;
  fill: none;
  stroke-width: 3 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sw-spotlight-right {
  background: rgba(248, 250, 252, 0.92) !important;
  border: 1px solid color-mix(in srgb, var(--sw-accent, #7C3AED) 22%, #E2E8F0) !important;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 1 !important;
  filter: none !important;
}

.sw-price-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px;
}

.sw-mini-plan,
.sw-mini-plan.featured {
  background: #FFFFFF !important;
  border: 1px solid color-mix(in srgb, var(--sw-accent, #7C3AED) 22%, #E2E8F0) !important;
  border-radius: 13px;
  padding: 13px 16px;
  box-shadow: 0 2px 10px -2px rgba(109, 40, 217, 0.06);
  opacity: 1 !important;
  filter: none !important;
}

.sw-mini-plan-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155 !important;
  margin-bottom: 4px;
}

/* Regular (non-sale) price: sharp solid brand accent */
#tier-software .sw-mini-plan-price,
.sw-spotlight-card .sw-mini-plan-price,
.sw-mini-plan.featured .sw-mini-plan-price,
.sw-mini-plan-price,
.sw-mini-plan-price.is-regular {
  display: inline-block !important;
  width: fit-content !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  color: var(--sw-accent, #7C3AED) !important;
  -webkit-text-fill-color: var(--sw-accent, #7C3AED) !important;
  background: none !important;
  opacity: 1 !important;
  filter: none !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

/* Discounted Sale Price (original_price > price): Vivid Rose-Red -> Pink -> Purple Gradient */
#tier-software .sw-mini-plan-price.is-sale,
.sw-spotlight-card .sw-mini-plan-price.is-sale,
.sw-mini-plan.featured .sw-mini-plan-price.is-sale,
.sw-mini-plan-price.is-sale {
  display: inline-block !important;
  width: fit-content !important;
  font-size: 29px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  opacity: 1 !important;
  filter: none !important;
  color: #E11D48 !important;
  background: linear-gradient(135deg, #E11D48 0%, #DB2777 65%, #7C3AED 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Original strikethrough price & Red-Orange -XX% discount badge */
.sw-price-orig-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.sw-price-orig-row.compact {
  justify-content: flex-start;
  margin-bottom: 3px;
}

.sw-price-strike {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #64748B !important;
  -webkit-text-fill-color: #64748B !important;
  text-decoration: line-through !important;
  opacity: 1 !important;
}

.sw-discount-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #EF4444 0%, #F97316 100%) !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35) !important;
  opacity: 1 !important;
}

.sw-mini-plan-note {
  font-size: 11.5px;
  color: #64748B;
  margin-top: 3px;
}

.sw-cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: stretch;
}

@media (max-width: 991.98px) {
  .sw-cta-row {
    flex-wrap: wrap;
  }
}

.sw-btn-primary,
.sw-btn-primary.open-app {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 10px;
  border: none !important;
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%) !important;
  background-color: #2563EB !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-size: 13.5px;
  font-weight: 700 !important;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.42) !important;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.sw-btn-primary::after,
.sw-btn-primary.open-app::after {
  display: none !important;
  content: none !important;
}

.sw-btn-primary:hover,
.sw-btn-primary.open-app:hover {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -4px rgba(6, 182, 212, 0.52) !important;
}

.sw-btn-primary.disabled {
  background: #CBD5E1 !important;
  color: #64748B !important;
  -webkit-text-fill-color: #64748B !important;
  box-shadow: none !important;
  cursor: not-allowed;
  pointer-events: none;
}

.sw-unlock-download-note {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  text-align: center;
  margin-top: -4px;
  line-height: 1.35;
}

.sw-btn-secondary {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  color: #1E293B;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.18s ease;
}

.sw-btn-secondary:hover {
  border-color: var(--sw-accent);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.sw-btn-primary svg,
.sw-btn-secondary svg {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2.1 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Circular sharp arrow badge inside CTA buttons */
.sw-arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #0F172A;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sw-arrow-circle svg {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
}

.sw-arrow-circle.light {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.sw-btn-secondary:hover .sw-arrow-circle {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  transform: translate(1px, -1px);
}

/* Interactive Force-Fill Button (--mx, --my vivid liquid cursor expansion, zero graying when idle) */
.dq-fx-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.dq-fx-btn > * {
  position: relative;
  z-index: 1;
}

.dq-fx-btn::before {
  content: '';
  position: absolute;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  pointer-events: none;
  z-index: 0;
  opacity: 0 !important;
}

.sw-btn-primary.dq-fx-btn::before,
.sw-card-link-btn.dq-fx-btn::before {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(165, 243, 252, 0.22) 45%,
    transparent 72%
  ) !important;
}

.sw-btn-secondary.dq-fx-btn::before {
  background: radial-gradient(
    circle,
    #2563EB 0%,
    #06B6D4 100%
  ) !important;
}

.dq-fx-btn:hover::before {
  transform: translate(-50%, -50%) scale(2.4);
  opacity: 1 !important;
}

/* --- 3-Column Grid (2+ Software Products) --- */
.sw-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1080px) {
  .sw-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .sw-grid-3 {
    grid-template-columns: 1fr;
  }
}

.sw-card {
  --sw-accent: #7C3AED;
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1.5px solid rgba(124, 58, 237, 0.28) !important;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow:
    0 12px 34px -10px rgba(109, 40, 217, 0.11),
    0 4px 12px rgba(15, 23, 42, 0.04) !important;
  transition: border-color 0.25s ease, box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.sw-card:hover {
  border-color: var(--sw-accent) !important;
  box-shadow:
    0 18px 40px -10px color-mix(in srgb, var(--sw-accent) 35%, rgba(6, 182, 212, 0.22)),
    0 0 22px -4px color-mix(in srgb, var(--sw-accent) 28%, rgba(236, 72, 153, 0.2)),
    0 0 0 1px color-mix(in srgb, var(--sw-accent) 45%, #FFFFFF) !important;
  transform: translateY(-5px);
}

.sw-card.coming-soon {
  opacity: 0.9;
}

.sw-card-link-btn,
.sw-card-link-btn.open-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%) !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.42);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.sw-card-link-btn:hover {
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.sw-card-link-btn.secondary {
  background: #F1F5F9 !important;
  color: #1E293B !important;
  -webkit-text-fill-color: #1E293B !important;
  box-shadow: none !important;
}

.sw-card-link-btn.secondary:hover {
  color: #0F172A !important;
}

.sw-card-link-btn.disabled {
  background: #E2E8F0 !important;
  color: #64748B !important;
  -webkit-text-fill-color: #64748B !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

.sw-card .sw-logo-box {
  width: 52px;
  height: 52px;
  border-radius: 13px;
}

.sw-card .sw-name {
  font-size: 17px;
}

.sw-card .sw-tagline {
  font-size: 13px;
}

.sw-card-footer {
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sw-card-price-block {
  display: flex;
  flex-direction: column;
}

.sw-card-price-main,
.sw-card-price-main.is-regular {
  display: inline-block !important;
  width: fit-content !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  color: var(--sw-accent, #7C3AED) !important;
  -webkit-text-fill-color: var(--sw-accent, #7C3AED) !important;
  background: none !important;
  opacity: 1 !important;
  filter: none !important;
}

.sw-card-price-main.is-sale {
  display: inline-block !important;
  width: fit-content !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  opacity: 1 !important;
  filter: none !important;
  color: #E11D48 !important;
  background: linear-gradient(135deg, #E11D48 0%, #DB2777 65%, #7C3AED 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.sw-card-price-sub {
  font-size: 11.5px;
  color: #64748B;
}

/* ===== TẦNG 3: TÀI KHOẢN GAME & DỊCH VỤ MXH (STICKY LEFT RAIL ONLY IN TIER 3) ===== */
.tier3-marketplace-section {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 8px;
  border-top: none;
}

.home-3tier-page .tier3-content-wrap {
  padding: 0 !important;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.home-3tier-page .tier3-content-wrap .left-rail {
  padding-top: 0 !important;
  align-self: flex-start;
  position: sticky;
  top: 80px;
}

.home-3tier-page .tier3-content-wrap .left-rail .pill-stack {
  position: static;
}

.home-3tier-page .tier3-content-wrap .center-column {
  flex: 1;
  min-width: 0;
}

.home-3tier-page .tier3-content-wrap .main-area {
  background: rgba(255, 255, 255, 0.84) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.06) !important;
  padding: 18px;
}

/* Tier 3: Static neutral light canvas — soft card shadows + subtle thumbnail zoom only */
.home-3tier-page .tier3-content-wrap .product-card {
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px -4px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.home-3tier-page .tier3-content-wrap .product-card:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.09);
  border-color: #CBD5E1;
  transform: translateY(-2px);
}

.home-3tier-page .tier3-content-wrap .product-card .product-image {
  overflow: hidden;
  display: block;
}

.home-3tier-page .tier3-content-wrap .product-card .product-image img {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.home-3tier-page .tier3-content-wrap .product-card:hover .product-image img {
  transform: scale(1.03);
}

/* Tier 3 Theme B Color Sync: Tabs, CTA Buttons, Prices & Sold States */
.home-3tier-page .tier3-content-wrap .tabs {
  gap: 10px;
  padding: 6px 4px 12px;
  margin-bottom: 16px;
}

.home-3tier-page .tier3-content-wrap .tab-btn {
  --tab-color: #2563EB !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid #E2E8F0 !important;
  color: #475569 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
}

.home-3tier-page .tier3-content-wrap .tab-btn::before {
  opacity: 0 !important;
}

.home-3tier-page .tier3-content-wrap .tab-btn:hover {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
  transform: translateY(-1px);
}

.home-3tier-page .tier3-content-wrap .tab-btn.active {
  background: linear-gradient(135deg, #EFF6FF 0%, #ECFEFF 100%) !important;
  border: 1.5px solid #2563EB !important;
  color: #1D4ED8 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16) !important;
  text-shadow: none !important;
}

.home-3tier-page .tier3-content-wrap .tab-btn.active::after {
  opacity: 0.4;
}

.home-3tier-page .tier3-content-wrap .btn-view,
.home-3tier-page .tier3-content-wrap .btn-card-action,
.home-3tier-page .tier3-content-wrap .btn-buy-horizontal,
.home-3tier-page .tier3-content-wrap .btn-buy-large {
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.35) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.home-3tier-page .tier3-content-wrap .btn-view:hover,
.home-3tier-page .tier3-content-wrap .btn-card-action:hover,
.home-3tier-page .tier3-content-wrap .btn-buy-horizontal:hover,
.home-3tier-page .tier3-content-wrap .btn-buy-large:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #0891B2 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -4px rgba(37, 99, 235, 0.45) !important;
  color: #FFFFFF !important;
}

.home-3tier-page .tier3-content-wrap .btn-view.sold,
.home-3tier-page .tier3-content-wrap .product-card.is-sold .btn-view,
.home-3tier-page .tier3-content-wrap .btn-card-action.sold {
  background: #E2E8F0 !important;
  color: #64748B !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: not-allowed !important;
}

.home-3tier-page .tier3-content-wrap .product-price-current,
.home-3tier-page .tier3-content-wrap .item-price,
.home-3tier-page .tier3-content-wrap .price-value {
  color: #1D4ED8 !important;
  font-weight: 800 !important;
}

.home-3tier-page .tier3-content-wrap .product-price-new {
  color: #DC2626 !important;
  font-weight: 800 !important;
}

.home-3tier-page .tier3-content-wrap .product-card.is-sold .product-price-current,
.home-3tier-page .tier3-content-wrap .product-card.is-sold .product-price-new {
  color: #64748B !important;
}

.home-3tier-page .tier3-content-wrap .item-quantity-badge {
  color: #0284C7 !important;
}

/* Account Filter Toolbar ("Ẩn acc đã bán") */
.account-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  flex-wrap: wrap;
}

.account-filter-stats {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
}

.hide-sold-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.hide-sold-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.hide-sold-track {
  width: 38px;
  height: 21px;
  border-radius: 999px;
  background: #CBD5E1;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.hide-sold-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.hide-sold-toggle input:checked + .hide-sold-track {
  background: #2563EB;
}

.hide-sold-toggle input:checked + .hide-sold-track::after {
  transform: translateX(17px);
}

/* ===== PURCHASE MODAL (CLEAN LIGHT SURFACE) ===== */
.dq-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.dq-modal-card {
  --sw-accent: #7C3AED;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  padding: 24px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25);
  color: #0F172A;
  position: relative;
  animation: dqModalPop 0.2s ease;
}

@keyframes dqModalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.dq-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #F1F5F9;
  border: none;
  color: #475569;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dq-modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.dq-pkg-select {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.dq-pkg-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid #E5E7EB;
  background: #F8FAFC;
  cursor: pointer;
  transition: all 0.16s ease;
}

.dq-pkg-option.selected {
  border-color: var(--sw-accent);
  background: color-mix(in srgb, var(--sw-accent) 6%, #FFFFFF);
}

.dq-balance-check {
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}

.dq-balance-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #475569;
}

.dq-balance-row:last-child {
  margin-bottom: 0;
  padding-top: 7px;
  border-top: 1px dashed #CBD5E1;
}

/* ===== VOUCHER CHECKOUT BOX (FROSTED BLUE-CYAN THEME) ===== */
.dq-voucher-box {
  background: rgba(240, 249, 255, 0.72);
  border: 1px solid #BAE6FD;
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 14px;
}

.dq-voucher-label {
  font-size: 12px;
  font-weight: 700;
  color: #0369A1;
  margin-bottom: 6px;
}

.dq-voucher-row {
  display: flex;
  gap: 7px;
  align-items: center;
}

.dq-voucher-input {
  flex: 1;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  font-family: monospace;
  text-transform: uppercase;
  color: #0F172A;
  outline: none;
  letter-spacing: 0.4px;
}

.dq-voucher-input:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.dq-voucher-btn {
  padding: 8px 14px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.dq-voucher-btn:hover {
  transform: translateY(-1px);
}

.dq-voucher-error {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #DC2626;
}

.dq-voucher-applied-pill {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.4;
}

.dq-voucher-remove {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #FEE2E2;
  color: #DC2626;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================================
   SHARED FRAME FOR SECONDARY PAGES (TaiKhoan, CongDong, TinNhan) — THEME B
   - Desktop & Landscape Tablet (>= 769px): Full Desktop Header, Hide Bottom Dock
   - Mobile (<= 768px): Bottom Dock with centered avatar & safe bottom padding
   ============================================================================ */
.dq-shared-page .header-actions .user-info img.current-user-avatar-display,
.dq-shared-page #header-actions .user-info > img.current-user-avatar-display {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Prevent global 36px rule in trangchu.css from breaking non-header avatars */
.dq-shared-page .bottom-nav .nav-avatar {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 4px solid #ffffff !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22) !important;
  background: #EFF6FF !important;
}

.dq-shared-page .bottom-nav .nav-avatar img,
.dq-shared-page .bottom-nav .nav-avatar img.current-user-avatar-display {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Theme B Mobile Bottom Dock Styling */
.dq-shared-page .bottom-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(191, 219, 254, 0.85);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.dq-shared-page .bottom-nav .nav-item {
  color: #64748B;
}

.dq-shared-page .bottom-nav .nav-item.active {
  color: #2563EB;
}

.dq-shared-page .bottom-nav .nav-item.active svg {
  fill: #2563EB;
}

/* PC / Landscape Tablet (>= 769px): Show Desktop Nav, Completely Hide Bottom Dock */
@media (min-width: 769px) {
  .dq-shared-page .desktop-header-nav {
    display: flex !important;
  }

  .dq-shared-page .bottom-nav {
    display: none !important;
  }
}

/* Compact Desktop Nav for Tablet Landscape (769px - 1080px) */
@media (min-width: 769px) and (max-width: 1080px) {
  .dq-shared-page .header {
    padding: 0 14px !important;
    gap: 8px;
  }

  .dq-shared-page .desktop-header-nav {
    margin-left: 6px;
    gap: 2px;
  }

  .dq-shared-page .desktop-nav-link {
    padding: 7px 9px;
    font-size: 12.5px;
    gap: 5px;
  }
}

/* Mobile (<= 768px): Hide Desktop Nav, Show Bottom Dock, Keep Safe Bottom Padding */
@media (max-width: 768px) {
  .dq-shared-page .header {
    padding: 0 12px !important;
    height: 60px !important;
  }

  .dq-shared-page .desktop-header-nav {
    display: none !important;
  }

  .dq-shared-page .bottom-nav {
    display: flex !important;
    bottom: 12px;
    padding: 10px 14px;
  }

  .dq-shared-page .bottom-nav .nav-avatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    margin-top: -28px !important;
  }

  .dq-shared-page .community-container,
  .dq-shared-page .messenger-container {
    padding-bottom: 112px !important;
  }
}

/* Theme B Silk Glass Harmony for CongDong & TinNhan */
.dq-shared-page.page-congdong .community-container {
  background: transparent !important;
  padding-top: 16px;
  min-height: calc(100dvh - 66px);
}

.dq-shared-page.page-congdong .create-post-card,
.dq-shared-page.page-congdong .post-card,
.dq-shared-page.page-congdong .widget-reviews,
.dq-shared-page.page-congdong .news-card,
.dq-shared-page.page-congdong .review-card {
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 28px -12px rgba(15, 23, 42, 0.08);
}

.dq-shared-page.page-congdong .create-post-header .current-user-avatar-display {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

/* TinNhan uses dedicated 2-column Theme B layout in tinnhan.css */

/* ============================================================================
   UNIFIED LUCIDE-STYLE SVG VECTOR ICON SYSTEM (js/dq-icons.js)
   ============================================================================ */
.dq-svg-icon {
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
}

[data-dq-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.dq-voucher-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dq-icon-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dq-star-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #F59E0B;
}

.dq-star-row .is-empty {
  color: #CBD5E1;
}
