/* CSS Full Pages Tiện ích: Giá Vàng & Thời Tiết Đà Nẵng */
:root {
  --up-primary: #003C47;
  --up-primary-dark: #002B33;
  --up-secondary: #FF9900;
  --up-secondary-hover: #E08700;
  --up-text: #1E293B;
  --up-muted: #64748B;
  --up-border: #E2E8F0;
  --up-bg-light: #F8FAFC;
  --up-teal-bg: #F0F9FA;
  --up-card-shadow: 0 4px 20px rgba(0, 60, 71, 0.07);
  --up-card-hover: 0 10px 30px rgba(0, 60, 71, 0.12);
}

html,
body {
  overflow-x: clip !important;
}

.utility-full-page {
  font-family: 'Roboto', sans-serif;
  color: var(--up-text);
  margin-top: 9rem;
  margin-bottom: 5rem;
}

.utility-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Breadcrumb */
.utility-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  color: var(--up-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.utility-breadcrumb a {
  color: var(--up-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.utility-breadcrumb a:hover {
  color: var(--up-secondary);
}

.utility-breadcrumb span {
  font-weight: 700;
  color: var(--up-text);
}

.utility-breadcrumb svg {
  width: 14px;
  height: 14px;
  stroke: var(--up-muted);
  stroke-width: 2.5;
}

/* Page Hero Redesigned */
.utility-page-hero {
  background: linear-gradient(135deg, #002B33 0%, #003C47 50%, #08434F 100%);
  border-radius: 24px;
  padding: 40px 44px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 16px 40px rgba(0, 43, 51, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.utility-page-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: 5%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 153, 0, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.utility-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.utility-hero-main {
  max-width: 720px;
}

.utility-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #FFD599;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.utility-hero-badge-text {
  letter-spacing: 0.2px;
}

.utility-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  animation: heroPulse 1.8s infinite;
}

@keyframes heroPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.utility-page-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

.utility-hero-desc {
  font-size: 1.55rem;
  line-height: 1.6;
  color: #E2E8F0;
  margin: 0 0 24px 0;
}

.utility-hero-meta-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.utility-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1.3rem;
  color: #CBD5E1;
}

.utility-meta-pill strong {
  color: #FFFFFF;
}

.pill-dot {
  font-size: 1.4rem;
}

/* Hero Spotlight Card */
.spotlight-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.spotlight-brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FDE68A;
  background: rgba(245, 158, 11, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.spotlight-tag {
  font-size: 1.2rem;
  color: #94A3B8;
}

.spotlight-price-box {
  margin-bottom: 16px;
}

.spotlight-price-label {
  font-size: 1.25rem;
  color: #CBD5E1;
  display: block;
  margin-bottom: 4px;
}

.spotlight-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.spotlight-price-main {
  font-size: 3.4rem;
  font-weight: 800;
  color: #FFB703;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.spotlight-change-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.spotlight-change-badge.up {
  color: #34D399;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.spotlight-change-badge.down {
  color: #F87171;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.spotlight-change-badge.flat {
  color: #94A3B8;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.spotlight-change-badge .change-icon {
  font-size: 1.05rem;
}

.spotlight-change-badge .change-percent {
  font-size: 1.15rem;
  opacity: 0.9;
}

.spotlight-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.spotlight-sub-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spotlight-sub-item .sub-label {
  font-size: 1.2rem;
  color: #94A3B8;
}

.spotlight-sub-item .sub-val {
  font-size: 1.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.spotlight-sub-item .sub-val.buy {
  color: #34D399;
}

.spotlight-sub-item .sub-val.diff {
  color: #FBBF24;
}

.weather-hero-spotlight-card {
  position: relative;
  overflow: hidden;

  .spotlight-brand {
    color: #FFFFFF;
    background: rgba(255, 153, 0, 0.25);
    border: 1px solid rgba(255, 153, 0, 0.5);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
  }

  .spotlight-weather-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 20px;
    min-height: 135px;
  }

  /* Khung đỏ bên trái: Badge ở trên, nhiệt độ ở đáy */
  .spotlight-weather-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-width: 0;

    .spotlight-brand {
      margin-bottom: 12px;
    }

    .spotlight-temp-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
  }

  .spotlight-weather-label {
    font-size: 1.35rem;
    color: #CBD5E1;
    font-weight: 500;
  }

  .spotlight-temp-main {
    font-size: 5.8rem;
    font-weight: 800;
    color: #FFB703;
    line-height: 0.95;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: flex-start;

    .spotlight-temp-unit {
      font-size: 2.8rem;
      font-weight: 700;
      color: #FFD166;
      margin-left: 4px;
      margin-top: 2px;
    }
  }

  /* Khung đỏ bên phải: Icon mây siêu to ở khoảng trống trên, dòng chữ ở đáy ngang bằng đáy nhiệt độ */
  .spotlight-weather-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    min-width: 0;
  }

  .spotlight-big-cloud-icon {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
    animation: cloudFloat 4s ease-in-out infinite;

    svg, img {
      width: 110px;
      height: 110px;
      max-width: 100%;
      object-fit: contain;
    }
  }

  .spotlight-condition-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFFFFF;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    line-height: 1;
    padding-bottom: 2px;
  }

  /* Overlay Loading Xoay Tròn */
  .spotlight-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 42, 50, 0.88);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 20;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  &:not(.is-loading) .spotlight-loader-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .spotlight-spinner {
    width: 40px;
    height: 40px;
    border: 3.5px solid rgba(255, 153, 0, 0.2);
    border-top-color: var(--up-secondary);
    border-radius: 50%;
    animation: spotlightSpin 0.75s linear infinite;
  }

  .spotlight-loader-text {
    font-size: 1.25rem;
    color: #CBD5E1;
    font-weight: 600;
    letter-spacing: 0.3px;
  }
}

@keyframes spotlightSpin {
  to { transform: rotate(360deg); }
}

@keyframes cloudFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Headings */
.utility-section-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--up-primary);
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.utility-section-subtitle {
  font-size: 1.45rem;
  color: var(--up-muted);
  margin: 0 0 24px 0;
}

.utility-sub-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--up-primary);
  margin: 0 0 16px 0;
  line-height: 1.35;
}

/* Đồng bộ tiêu đề khi nằm làm header của Box/Card Panel */
.utility-panel-card {
  .utility-section-header {
    margin-bottom: 20px;

    .utility-section-title {
      font-size: 1.85rem;
      margin-bottom: 6px;
    }
  }

  .utility-sub-title {
    font-size: 1.85rem;
  }
}

/* Stat Cards Grid */
.utility-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--up-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--up-card-hover);
  border-color: rgba(0, 60, 71, 0.2);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-brand-badge {
  font-size: 1.3rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.stat-brand-badge.sjc { background: #FEF3C7; color: #B45309; }
.stat-brand-badge.pnj { background: #E0E7FF; color: #4338CA; }
.stat-brand-badge.doji { background: #FEE2E2; color: #B91C1C; }
.stat-brand-badge.diff { background: #D1FAE5; color: #065F46; }

.stat-card-label {
  font-size: 1.3rem;
  color: var(--up-muted);
}

.stat-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
}

.stat-price-val {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--up-primary);
  font-variant-numeric: tabular-nums;
}

.stat-price-val.sell {
  color: #DC2626;
}

.stat-price-val.buy {
  color: #059669;
}

.stat-price-unit {
  font-size: 1.25rem;
  color: var(--up-muted);
  margin-left: 4px;
}

/* Content Layout (Main + Sidebar) */
.utility-main-layout {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 40px;
}

.utility-main-col {
  min-width: 0;
}

/* Card Wrappers */
/* Gold Price Line Chart Card - Styled strictly as reference photo */
/* Gold Price Line Chart Card - Redesigned Clean & Balanced */
.gold-chart-card {
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  border-radius: 20px;
  padding: 30px 36px;
  box-shadow: var(--up-card-shadow);
  margin-bottom: 36px;
}

.gold-chart-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.gold-chart-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.gold-chart-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--up-primary);
  margin: 0;
}

.gold-chart-unit-badge {
  font-size: 1.25rem;
  color: var(--up-muted);
  background: var(--up-bg-light);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--up-border);
}

.gold-chart-preset-group {
  display: inline-flex;
  align-items: center;
  background: var(--up-bg-light);
  border: 1px solid var(--up-border);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.gold-preset-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--up-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gold-preset-btn:hover {
  color: var(--up-primary);
  background: rgba(0, 60, 71, 0.05);
}

.gold-preset-btn.active {
  background: #FFFFFF;
  color: #D97706;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.gold-chart-head-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 18px;
  background: #FAFBFD;
  border: 1px solid var(--up-border);
  border-radius: 12px;
  margin-bottom: 20px;
}

.gold-chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.gold-chart-legend-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1E293B;
}

.gold-chart-legend-symbol {
  color: #D97706;
  font-size: 1.6rem;
  line-height: 1;
}

.gold-chart-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #D97706;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  background-color: #D97706;
  border-radius: 50%;
  animation: liveGoldPulse 1.8s infinite;
}

@keyframes liveGoldPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* Time Navigation Group: Next / Prev buttons */
.gold-chart-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gold-chart-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  color: var(--up-primary);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.gold-chart-nav-btn:hover:not(.disabled) {
  background: var(--up-primary);
  color: #FFFFFF;
  border-color: var(--up-primary);
  transform: translateY(-1px);
}

.gold-chart-nav-btn.disabled,
.gold-chart-nav-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--up-bg-light);
  border-color: var(--up-border);
}

.gold-chart-nav-btn svg {
  stroke: currentColor;
}

.gold-chart-period-badge {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--up-primary);
  background: var(--up-bg-light);
  border: 1px solid var(--up-border);
  padding: 6px 14px;
  border-radius: 8px;
  min-width: 140px;
  text-align: center;
}

.gold-chart-canvas-container {
  position: relative;
  width: 100%;
  height: 420px;
  background: #FFFFFF;
  cursor: grab;
  user-select: none;
}

.gold-chart-canvas-container:active {
  cursor: grabbing;
}

/* Today Live Pulse Marker on Gold Chart */
.gold-today-pulse-marker {
  position: absolute;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
}

.gold-today-pulse-marker.active {
  display: flex;
}

.pulse-inner-core {
  width: 9px;
  height: 9px;
  background: #FF9900;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(217, 119, 6, 0.9);
  position: relative;
  z-index: 2;
}

.pulse-halo-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #D97706;
  transform: translate(-50%, -50%);
  animation: radarWavePulse 2.4s infinite ease-out;
  pointer-events: none;
}

.pulse-halo-wave.wave-2 {
  animation-delay: 1.2s;
}

@keyframes radarWavePulse {
  0% {
    width: 8px;
    height: 8px;
    opacity: 0.95;
    border-color: #FF9900;
  }
  100% {
    width: 42px;
    height: 42px;
    opacity: 0;
    border-color: #D97706;
  }
}

/* Custom HTML Tooltip for Gold Chart: Gray titles, Green buy, Red sell, No spread */
.gold-custom-tooltip {
  position: absolute;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border: 1.5px solid #D97706;
  border-radius: 10px;
  padding: 10px 14px;
  pointer-events: none;
  z-index: 25;
  transform: translate(-50%, -125%);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  min-width: 160px;
  font-family: 'Roboto', sans-serif;
  opacity: 0;
  visibility: hidden;
}

.gold-custom-tooltip.tip-down {
  transform: translate(-50%, 15px);
}

.gold-custom-tooltip .tip-date {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.gold-custom-tooltip .tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.3rem;
  margin-top: 5px;
}

.gold-custom-tooltip .tip-label {
  color: #94A3B8; /* Màu xám trung tính cho 2 title Mua vào / Bán ra */
  font-weight: 500;
  font-size: 1.25rem;
}

.gold-custom-tooltip .tip-val {
  font-weight: 800;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.gold-custom-tooltip .tip-val.tip-sell {
  color: #EF4444; /* Màu đỏ cho Bán ra */
}

.gold-custom-tooltip .tip-val.tip-buy {
  color: #10B981; /* Màu xanh lá cho Mua vào */
}

/* Tab Switcher for Gold Tables - Prevents Line Wrapping */
.gold-table-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.gold-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid var(--up-border);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--up-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.gold-tab-btn:hover {
  border-color: var(--up-primary);
  color: var(--up-primary);
  background: var(--up-bg-light);
}

.gold-tab-btn.active {
  background: var(--up-primary);
  border-color: var(--up-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 60, 71, 0.18);
}

.gold-tab-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.gold-tab-badge {
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.gold-tab-btn.active .gold-tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Tab Panels */
.gold-tab-panel {
  display: none;
}

.gold-tab-panel.active {
  display: block;
}

/* Enhanced Card Wrappers */
.utility-panel-card {
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--up-card-shadow);
  margin-bottom: 30px;
  transition: box-shadow 0.2s ease;
}

.utility-panel-card:hover {
  box-shadow: var(--up-card-hover);
}

.utility-panel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.utility-panel-badge-count {
  background: var(--up-bg-light);
  color: var(--up-muted);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--up-border);
}

/* Enhanced Gold Tables: Strict Nowrap & Proportional Widths */
.utility-full-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.utility-full-table thead th {
  background: #F8FAFC;
  padding: 13px 16px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--up-primary);
  border-bottom: 2px solid var(--up-border);
  text-align: left;
  white-space: nowrap;
}

.utility-full-table thead th:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.utility-full-table thead th:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.utility-full-table thead th.text-end {
  text-align: right;
}

.utility-full-table tbody tr {
  transition: background-color 0.15s ease;
}

.utility-full-table tbody td {
  padding: 14px 16px;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--up-border);
  vertical-align: middle;
  white-space: nowrap;
}

.utility-full-table tbody tr:hover td {
  background-color: #F8FAFC;
}

.utility-full-table tbody tr:last-child td {
  border-bottom: none;
}

.utility-full-table tbody td.text-end {
  text-align: right;
}

/* Explicit column proportions preventing line drops */
.col-brand {
  width: 18%;
  white-space: nowrap;
}

.col-name {
  width: 32%;
  white-space: nowrap;
}

.col-price {
  width: 18%;
  white-space: nowrap;
}

.col-spread {
  width: 14%;
  white-space: nowrap;
}

.gold-item-name {
  font-weight: 600;
  color: #1E293B;
  font-size: 1.4rem;
}

/* Brand badges for Gold */
.brand-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-badge.sjc { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.brand-badge.pnj { background: #E0F2FE; color: #0369A1; border: 1px solid #BAE6FD; }
.brand-badge.doji { background: #FEE2E2; color: #B91C1C; border: 1px solid #FECACA; }
.brand-badge.btmc { background: #DCFCE7; color: #15803D; border: 1px solid #BBF7D0; }
.brand-badge.phuquy { background: #FFEDD5; color: #C2410C; border: 1px solid #FED7AA; }
.brand-badge.mihong { background: #F3E8FF; color: #7E22CE; border: 1px solid #E9D5FF; }
.brand-badge.ngoctham { background: #FCE7F3; color: #BE185D; border: 1px solid #FBCFE8; }

.price-box-buy {
  color: #059669;
  font-weight: 800;
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-box-sell {
  color: #DC2626;
  font-weight: 800;
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-box-spread {
  color: var(--up-primary);
  font-weight: 700;
  font-size: 1.35rem;
  background: var(--up-bg-light);
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--up-border);
  white-space: nowrap;
}

.stat-evaluation-stable {
  color: #059669;
  font-weight: 600;
}

.table-responsive-wrapper {
  overflow-x: auto;
  width: 100%;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.gold-table-brand-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Responsive Gold Display: Desktop Table vs Mobile Cards */
.gold-mobile-cards {
  display: none;
}

.gold-mobile-card {
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 60, 71, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;

  &:hover {
    box-shadow: 0 4px 16px rgba(0, 60, 71, 0.08);
  }

  .gold-m-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F1F5F9;

    .gold-m-name {
      font-size: 1.45rem;
      font-weight: 700;
      color: var(--up-primary);
      line-height: 1.3;
    }
  }

  .gold-m-pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }

  .gold-m-price-col {
    padding: 10px 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;

    &.buy {
      background: #ECFDF3;
      border: 1px solid #D1FADF;

      .gold-m-label {
        font-size: 1.15rem;
        font-weight: 700;
        color: #067647;
        text-transform: uppercase;
        letter-spacing: 0.3px;
      }

      .gold-m-value {
        font-size: 1.7rem;
        font-weight: 800;
        color: #067647;
        font-variant-numeric: tabular-nums;
        line-height: 1.2;
      }
    }

    &.sell {
      background: #FEF3F2;
      border: 1px solid #FEE4E2;

      .gold-m-label {
        font-size: 1.15rem;
        font-weight: 700;
        color: #B42318;
        text-transform: uppercase;
        letter-spacing: 0.3px;
      }

      .gold-m-value {
        font-size: 1.7rem;
        font-weight: 800;
        color: #B42318;
        font-variant-numeric: tabular-nums;
        line-height: 1.2;
      }
    }
  }

  .gold-m-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.25rem;
    color: var(--up-muted);
    padding-top: 2px;

    .gold-m-spread-label {
      font-weight: 500;
    }

    .gold-m-spread-val {
      font-weight: 700;
      color: var(--up-primary);
      background: var(--up-bg-light);
      padding: 3px 9px;
      border-radius: 8px;
      border: 1px solid var(--up-border);
      font-variant-numeric: tabular-nums;
    }
  }
}

/* Clean Theme-Aligned Financial Gold Converter */
.gold-converter-box {
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 28px;
  box-shadow: var(--up-card-shadow);

  .converter-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--up-border);
    flex-wrap: wrap;
  }

  .converter-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .converter-title-icon {
    width: 20px;
    height: 20px;
    stroke: var(--up-primary);
    flex-shrink: 0;
  }

  .converter-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--up-primary);
    margin: 0;
    line-height: 1.3;
  }

  .converter-rate-badge {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--up-primary);
    background: var(--up-teal-bg);
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 60, 71, 0.12);
  }

  /* Segmented Control Switcher (Không dùng icon emoji) */
  .converter-segmented-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #F1F5F9;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 18px;
  }

  .converter-segment-btn {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.2s ease;

    .segment-title {
      font-size: 1.45rem;
      font-weight: 700;
      color: var(--up-muted);
      transition: color 0.2s ease;
    }

    .segment-desc {
      font-size: 1.2rem;
      color: #94A3B8;
      transition: color 0.2s ease;
    }

    &:hover {
      background: rgba(255, 255, 255, 0.6);
    }

    &.active {
      background: #FFFFFF;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);

      .segment-title {
        color: var(--up-primary);
      }

      .segment-desc {
        color: #475467;
      }
    }
  }

  /* Form Input Grid */
  .converter-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  .converter-field {
    display: flex;
    flex-direction: column;
  }

  .converter-label {
    display: block;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--up-primary);
    margin-bottom: 6px;
  }

  .converter-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--up-border);
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--up-text);
    background: #FFFFFF;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;

    &:focus {
      border-color: var(--up-primary);
      box-shadow: 0 0 0 3px rgba(0, 60, 71, 0.08);
    }
  }

  /* Custom Select Dropdown thay thế select mặc định của browser */
  .converter-custom-select {
    position: relative;
    width: 100%;
  }

  .custom-select-trigger {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--up-border);
    border-radius: 8px;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--up-primary);
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;

    &:hover {
      border-color: #CBD5E1;
    }

    &:focus-visible {
      outline: none;
      border-color: var(--up-primary);
      box-shadow: 0 0 0 3px rgba(0, 60, 71, 0.08);
    }
  }

  .converter-custom-select.open .custom-select-trigger {
    border-color: var(--up-primary);
    box-shadow: 0 0 0 3px rgba(0, 60, 71, 0.08);

    .custom-select-arrow {
      transform: rotate(180deg);
    }
  }

  .custom-select-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .custom-select-arrow {
    width: 16px;
    height: 16px;
    stroke: var(--up-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
  }

  .custom-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 70;
    background: #FFFFFF;
    border: 1px solid var(--up-border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 60, 71, 0.14);
    padding: 6px;
    margin: 0;
    list-style: none;
    display: none;
    animation: fadeInSelectMenu 0.18s ease-out;
  }

  .converter-custom-select.open .custom-select-menu {
    display: block;
  }

  @keyframes fadeInSelectMenu {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .custom-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease;

    &:hover {
      background-color: var(--up-teal-bg);
    }

    &.active {
      background-color: #E6F4F6;

      .option-title {
        color: var(--up-primary);
        font-weight: 700;
      }

      .option-check-icon {
        display: block;
      }
    }

    .option-text-group {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .option-title {
      font-size: 1.35rem;
      font-weight: 600;
      color: #1E293B;
      line-height: 1.3;
    }

    .option-sub {
      font-size: 1.15rem;
      color: var(--up-muted);
      line-height: 1.2;
    }

    .option-check-icon {
      width: 16px;
      height: 16px;
      stroke: var(--up-secondary);
      display: none;
      flex-shrink: 0;
    }
  }

  /* Preset Pills */
  .converter-preset-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .converter-preset-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--up-muted);
  }

  .converter-preset-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .converter-preset-pill {
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--up-border);
    background: var(--up-bg-light);
    font-size: 1.25rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;

    &:hover {
      background: #FFFFFF;
      border-color: var(--up-primary);
      color: var(--up-primary);
    }

    &.active {
      background: var(--up-primary);
      border-color: var(--up-primary);
      color: #FFFFFF;
      font-weight: 600;
    }
  }

  /* Result Panel: Gọn gàng, tinh tế, chuẩn màu theme */
  .converter-result-panel {
    background: var(--up-bg-light);
    border: 1px solid var(--up-border);
    border-left: 4px solid var(--up-primary);
    border-radius: 10px;
    padding: 18px 20px;
  }

  .converter-result-lead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }

  .converter-result-label {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--up-muted);
  }

  .converter-result-formula {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--up-primary);
  }

  .converter-result-val-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
  }

  .converter-result-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--up-primary);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    letter-spacing: -0.5px;
  }

  .converter-result-unit {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--up-secondary);
  }

  .converter-result-note {
    font-size: 1.2rem;
    color: #94A3B8;
    line-height: 1.4;
  }
}

/* ==========================================================================
   WEATHER UTILITY WIDGET STYLES (Đà Nẵng 247 Premium Theme)
   ========================================================================== */

/* Weather Spotlight Card: Thiết kế cao cấp, đường viền và bóng đổ mềm */
.weather-spotlight-card {
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: var(--up-card-shadow);
  position: relative;
  overflow: visible;
  transition: box-shadow 0.3s ease;

  &:hover {
    box-shadow: var(--up-card-hover);
  }

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--up-primary) 0%, var(--up-secondary) 100%);
    border-radius: 20px 20px 0 0;
  }
}

.weather-spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 60, 71, 0.08);
  flex-wrap: wrap;
}

.weather-status-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.weather-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weather-pulse-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  display: inline-block;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.weather-update-clock {
  font-size: 1.3rem;
  color: var(--up-muted);
  font-weight: 500;
}

/* Custom Select Dropdown cho Khu vực / Quận Huyện */
.weather-custom-select-box {
  position: relative;
  display: inline-block;
  min-width: 290px;
  z-index: 25;
}

.weather-custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #F8FAFC;
  border: 1.5px solid var(--up-border);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;

  &:hover {
    background: #FFFFFF;
    border-color: var(--up-primary);
    box-shadow: 0 2px 8px rgba(0, 60, 71, 0.06);
  }

  &.is-open {
    border-color: var(--up-secondary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);

    .select-trigger-arrow {
      transform: rotate(180deg);
    }
  }

  .select-trigger-icon {
    font-size: 1.6rem;
    line-height: 1;
  }

  .select-trigger-text {
    flex: 1;
    text-align: left;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--up-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .select-trigger-arrow {
    width: 18px;
    height: 18px;
    stroke: var(--up-primary);
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }
}

.weather-custom-select-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 60, 71, 0.12);
  padding: 8px 0;
  max-height: 340px;
  overflow-y: auto;
  display: none;
  z-index: 30;
  animation: dropdownFade 0.2s ease;

  &.show {
    display: block;
  }

  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
  }

  .select-dropdown-group-label {
    padding: 8px 16px 4px;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--up-muted);
    letter-spacing: 0.5px;
  }

  .select-dropdown-option {
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
    transition: background 0.15s ease;

    &:hover {
      background: var(--up-teal-bg);

      .opt-name {
        color: var(--up-primary);
      }
    }

    &.active {
      background: rgba(255, 153, 0, 0.08);

      .opt-name {
        color: var(--up-secondary);
        font-weight: 800;
      }

      &::after {
        content: "✓";
        position: absolute;
        right: 16px;
        color: var(--up-secondary);
        font-weight: 800;
      }
    }

    .opt-name {
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--up-text);
    }

    .opt-sub {
      font-size: 1.2rem;
      color: var(--up-muted);
    }
  }
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Thân thẻ Spotlight: Quỹ đạo Mặt trời (320px) và Chất lượng không khí AQI (1fr) không trùng lặp */
/* Thân thẻ Spotlight: Cân bằng hoàn hảo 50-50 (1fr 1fr) giữa Điều kiện ngoài trời và Chất lượng không khí */
.weather-spotlight-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 28px;
}

/* Widget Điều Kiện Khí Tượng Ngoài Trời & Đi Lại (Thoáng đãng, thông tin hữu ích) */
.weather-outdoor-condition-card {
  background: #F8FAFC;
  border: 1px solid var(--up-border);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}

.outdoor-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--up-primary);

  .outdoor-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;

    svg {
      width: 20px;
      height: 20px;
      stroke: var(--up-secondary);
      flex-shrink: 0;
    }
  }

  .outdoor-status-tag {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--up-muted);
    background: #FFFFFF;
    border: 1px solid var(--up-border);
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
  }
}

.outdoor-facts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.outdoor-fact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  border-radius: 14px;
  padding: 10px 14px;
  transition: all 0.2s ease;

  &:hover {
    border-color: var(--up-secondary);
    box-shadow: 0 4px 12px rgba(0, 60, 71, 0.05);
  }

  .fact-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    background: #F1F5F9;
  }

  .fact-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;

    .fact-label {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--up-primary);
    }

    .fact-detail {
      font-size: 1.25rem;
      color: #475569;
      line-height: 1.45;
    }
  }
}

.outdoor-card-footer {
  font-size: 1.25rem;
  color: #334155;
  background: rgba(0, 60, 71, 0.04);
  border-radius: 10px;
  padding: 10px 14px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;

  .footer-icon {
    color: var(--up-secondary);
    font-weight: 700;
    font-size: 1.4rem;
    flex-shrink: 0;
  }
}

/* Thẻ Chất lượng không khí (AQI Meter) - Cân đối, đầy đủ thông số PM2.5/PM10 không bị trống */
.weather-aqi-card {
  background: #F8FAFC;
  border: 1px solid var(--up-border);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.aqi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--up-primary);

  .aqi-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;

    svg {
      width: 20px;
      height: 20px;
      stroke: var(--up-secondary);
      flex-shrink: 0;
    }
  }

  .aqi-standard-badge {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--up-muted);
    background: #FFFFFF;
    border: 1px solid var(--up-border);
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
  }
}

.aqi-meter-main {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  border-radius: 16px;
  padding: 18px 22px;
  transition: all 0.2s ease;

  &:hover {
    border-color: var(--up-secondary);
    box-shadow: 0 4px 14px rgba(0, 60, 71, 0.05);
  }
}

.aqi-circle-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
  border: 3px solid #10B981;
  flex-shrink: 0;
  transition: all 0.3s ease;

  .aqi-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: #059669;
  }

  .aqi-unit {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #059669;
    letter-spacing: 0.5px;
  }
}

.aqi-meter-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;

  .aqi-status-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--up-primary);
    white-space: nowrap;
  }

  .aqi-recommendation {
    font-size: 1.3rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
  }
}

/* Hàng chỉ số phụ Bụi Mịn PM2.5 & PM10: Mỗi chỉ số 1 hàng full width thoáng đãng */
.aqi-sub-metrics-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.aqi-sub-metric-pill {
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: all 0.2s ease;

  &:hover {
    border-color: var(--up-secondary);
    box-shadow: 0 4px 12px rgba(0, 60, 71, 0.05);
  }

  .sub-metric-name {
    font-size: 1.3rem;
    color: var(--up-primary);
    font-weight: 700;
  }

  .sub-metric-value-group {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .sub-metric-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--up-primary);
  }

  .sub-metric-tag {
    font-size: 1.15rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: #DCFCE7;
    color: #166534;
  }
}

/* Thang đo phân cấp 4 mức AQI: Đặt ngay dưới Meter trực quan */
.aqi-segmented-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.aqi-segment {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  background: rgba(0, 60, 71, 0.02);
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s ease;

  .seg-color-bar {
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: #E2E8F0;
    transition: all 0.3s ease;
  }

  .seg-label {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--up-muted);
    white-space: nowrap;
  }

  &.good .seg-color-bar { background: #10B981; }
  &.moderate .seg-color-bar { background: #F59E0B; }
  &.poor .seg-color-bar { background: #F97316; }
  &.bad .seg-color-bar { background: #EF4444; }

  &.is-active {
    background: #FFFFFF;
    border-color: var(--up-secondary);
    box-shadow: 0 4px 12px rgba(0, 60, 71, 0.08);

    .seg-label {
      color: var(--up-primary);
      font-weight: 800;
    }
    .seg-color-bar {
      height: 7px;
    }
  }
}

/* ==========================================================================
   6 WEATHER METRICS GRID (Màu sắc đa dạng, phân cấp rõ rệt)
   ========================================================================== */
.weather-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(0, 60, 71, 0.08);
  padding-top: 24px;
}

.weather-metric-item {
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s ease;

  &:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 60, 71, 0.08);
  }

  /* Theme từng thẻ theo loại thông số */
  &.metric-humidity {
    border-left: 4px solid #0284C7;
    .weather-metric-icon { background: #E0F2FE; color: #0284C7; }
  }

  &.metric-wind {
    border-left: 4px solid #0D9488;
    .weather-metric-icon { background: #CCFBF1; color: #0D9488; }
  }

  &.metric-uv {
    border-left: 4px solid #D97706;
    .weather-metric-icon { background: #FEF3C7; color: #D97706; }
  }

  &.metric-pressure {
    border-left: 4px solid #7C3AED;
    .weather-metric-icon { background: #EDE9FE; color: #7C3AED; }
  }

  &.metric-visibility {
    border-left: 4px solid #059669;
    .weather-metric-icon { background: #D1FAE5; color: #059669; }
  }

  &.metric-rain {
    border-left: 4px solid #2563EB;
    .weather-metric-icon { background: #DBEAFE; color: #2563EB; }
  }
}

.weather-metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  svg {
    width: 24px;
    height: 24px;
  }
}

.weather-metric-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.weather-metric-label {
  font-size: 1.25rem;
  color: var(--up-muted);
  font-weight: 600;
}

.weather-metric-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--up-primary);
  line-height: 1.2;
}

.weather-metric-note {
  font-size: 1.15rem;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   24-HOUR HOURLY TIMELINE (Masked Carousel Curve Effect)
   ========================================================================== */
.weather-hourly-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.hourly-slider-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hourly-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  color: var(--up-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.0rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    background: var(--up-teal-bg);
    border-color: var(--up-primary);
    transform: scale(1.05);
  }

  &:active {
    transform: scale(0.95);
  }
}

/* Container bọc ngoài có Mask Gradient tạo hiệu ứng cong mờ 2 rìa */
.weather-hourly-timeline-container {
  position: relative;
  overflow: hidden;
  padding: 4px 0;
  /* Hiệu ứng mờ dần 2 rìa kiểu carousel cong */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.weather-hourly-timeline {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 30px 18px;
  margin-bottom: 0;
  scroll-behavior: smooth;
  /* Ẩn hoàn toàn scrollbar thanh cuộn */
  scrollbar-width: none;
  -ms-overflow-style: none;

  &::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  /* Hỗ trợ kéo chuột ngang mượt mà */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x;

  &.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
  }
}

.hourly-pill {
  min-width: 92px;
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  flex-shrink: 0;
  transition: all 0.25s ease;
  position: relative;

  &:hover {
    transform: translateY(-4px);
    border-color: var(--up-secondary);
    box-shadow: 0 6px 14px rgba(0, 60, 71, 0.08);
  }

  /* Các mốc giờ đã qua trong ngày: nền mờ nhẹ như disable */
  &.is-past {
    opacity: 0.45;
    filter: grayscale(45%);
    background: #F1F5F9;
    border-color: #E2E8F0;

    &:hover {
      transform: none;
      box-shadow: none;
      border-color: #E2E8F0;
    }
  }

  /* Mốc giờ hiện tại ở giữa được làm nổi bật */
  &.is-now {
    background: #FFFFFF;
    border: 2px solid var(--up-secondary);
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.25);
    transform: translateY(-2px);
    z-index: 2;

    &::after {
      content: "HIỆN TẠI";
      position: absolute;
      top: -8px;
      background: var(--up-secondary);
      color: #FFFFFF;
      font-size: 0.95rem;
      font-weight: 800;
      padding: 1px 6px;
      border-radius: 6px;
      letter-spacing: 0.3px;
    }

    .hourly-time {
      color: var(--up-secondary);
      font-weight: 800;
    }
  }
}

.hourly-time {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--up-primary);
}

.hourly-icon {
  font-size: 2.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;

  svg, img {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
  }
}

.hourly-temp {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--up-primary);
}

.hourly-rain {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0284C7;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* ==========================================================================
   7-DAY EXTENDED FORECAST (Badge giọt nước tinh tế)
   ========================================================================== */
.forecast-7day-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.forecast-day-row {
  display: grid;
  grid-template-columns: 140px 50px 1fr 220px;
  align-items: center;
  gap: 16px;
  background: #F8FAFC;
  border: 1px solid var(--up-border);
  border-radius: 14px;
  padding: 14px 20px;
  transition: all 0.2s ease;

  &:hover {
    background: #FFFFFF;
    border-color: var(--up-secondary);
    box-shadow: 0 4px 15px rgba(0, 60, 71, 0.06);
  }
}

.forecast-day-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--up-primary);
  display: flex;
  flex-direction: column;

  .forecast-date-sub {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--up-muted);
  }
}

.forecast-day-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 auto;
  line-height: 1;

  svg, img {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
  }
}

.weather-webp-icon {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
}

.forecast-day-status-col {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.forecast-day-desc {
  font-size: 1.4rem;
  color: var(--up-text);
  font-weight: 600;
}

.forecast-rain-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #E0F2FE;
  color: #0369A1;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;

  &.low {
    background: #F1F5F9;
    color: #64748B;
  }
}

.forecast-temp-range-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.forecast-min-temp {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--up-muted);
  width: 32px;
  text-align: right;
}

.forecast-range-bar {
  flex: 1;
  max-width: 110px;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, #38BDF8 0%, #FBBF24 50%, #FB923C 100%);
  opacity: 0.85;
}

.forecast-max-temp {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--up-primary);
  width: 32px;
  text-align: left;
}

/* ==========================================================================
   BỘ 4 CHỈ SỐ KHÍ TƯỢNG ỨNG DỤNG THỰC TẾ (Weather Action Indices Grid)
   Thiết kế 4 thẻ tinh gọn, trực quan, điểm số rõ ràng, không rối mắt
   ========================================================================== */
.weather-action-indices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 24px;
}

.action-index-card {
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;

  &:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 60, 71, 0.08);
    border-color: rgba(0, 60, 71, 0.2);
  }
}

.action-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-card-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.action-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  background: #F8FAFC;
  border: 1px solid var(--up-border);
}

.action-card-headings {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;

  .action-task-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--up-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .action-task-scope {
    font-size: 1.2rem;
    color: var(--up-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Giữ đúng 1 hàng duy nhất cho các badge thông số, cho phép vuốt/kéo ngang mượt mà */
.action-metrics-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0 4px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;

  &::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  &.is-dragging {
    cursor: grabbing;
  }
}

.action-metric-pill {
  font-size: 1.2rem;
  font-weight: 600;
  color: #475569;
  background: #F8FAFC;
  border: 1px solid var(--up-border);
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;

  strong {
    color: var(--up-primary);
  }
}

.action-card-desc {
  font-size: 1.3rem;
  color: #334155;
  line-height: 1.55;
  margin: 0;
}

/* Khối tóm tắt mùa khí hậu Đà Nẵng */
.weather-season-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.season-summary-card {
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;

  &.dry-season {
    border-top: 3px solid #F59E0B;
  }

  &.rainy-season {
    border-top: 3px solid #0284C7;
  }

  .season-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--up-primary);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .season-desc {
    font-size: 1.3rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
  }
}

/* Trạm quan trắc sidebar widget */
.radar-station-box {
  background: #F8FAFC;
  border: 1px solid var(--up-border);
  border-radius: 14px;
  padding: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radar-station-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--up-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.radar-station-desc {
  font-size: 1.3rem;
  color: var(--up-muted);
  line-height: 1.6;
  margin: 0;
}

.radar-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.25rem;
  padding-top: 6px;
  border-top: 1px dashed var(--up-border);
  color: #475569;

  strong {
    color: var(--up-primary);
  }
}

.utility-sidebar-sub-title {
  margin-top: 24px;
}

/* Guide content */
.utility-guide-content {
  line-height: 1.8;
  font-size: 1.55rem;
  color: #334155;
}

.utility-guide-content p {
  margin-bottom: 14px;
}

.utility-guide-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.utility-guide-content li {
  margin-bottom: 8px;
}

/* Quick Tools Sidebar & Sticky Related Utilities */
.utility-sidebar {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.sidebar-sticky-box {
  position: -webkit-sticky;
  position: sticky;
  top: 9.5rem;
  align-self: flex-start;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card-box {
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--up-card-shadow);
  transition: box-shadow 0.2s ease;
}

.sidebar-card-box:hover {
  box-shadow: var(--up-card-hover);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--up-secondary);
}

.sidebar-header-icon {
  width: 20px;
  height: 20px;
  stroke: var(--up-secondary);
  flex-shrink: 0;
}

.sidebar-header-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--up-primary);
  margin: 0;
}

.utility-sidebar-tools {
  background: #FFFFFF;
  border: 1px solid var(--up-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--up-card-shadow);
  position: sticky;
  top: 9.5rem;
}

.utility-sidebar-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--up-primary);
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--up-secondary);
}

.utility-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.utility-link-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--up-bg-light);
  border: 1px solid var(--up-border);
  color: var(--up-primary);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.utility-link-item a:hover {
  background: var(--up-teal-bg);
  color: var(--up-primary);
  border-color: var(--up-primary);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 60, 71, 0.08);
}

.utility-link-arrow {
  color: var(--up-secondary);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.utility-link-item a:hover .utility-link-arrow {
  transform: translateX(3px);
}

.gold-branch-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.3rem;
  color: #475569;
  line-height: 1.5;
}

.gold-branch-list li {
  padding-left: 14px;
  position: relative;
}

.gold-branch-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--up-secondary);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
  top: 1px;
}

.gold-branch-list li strong {
  color: var(--up-primary);
}

/* Responsive */
@media (max-width: 991px) {
  .utility-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .spotlight-card {
    max-width: 100%;
  }
  .utility-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .utility-main-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-sticky-box {
    position: static;
  }
  .gold-chart-head-top,
  .gold-chart-head-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .weather-params-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .utility-page-hero {
    padding: 30px 24px;
  }
  .utility-page-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 767px) {
  /* Khoảng cách đỉnh trang và breadcrumb trên mobile: giảm xuống 2.8rem */
  .utility-full-page {
    margin-top: 2.8rem;
    margin-bottom: 3.5rem;
  }

  .utility-breadcrumb {
    margin-top: 2px;
    margin-bottom: 12px;
  }

  /* Hero Section trên mobile */
  .utility-page-hero {
    padding: 20px 16px;
    margin-bottom: 18px;
    border-radius: 16px;
  }

  /* Ẩn utility-hero-meta-pills ở mobile */
  .utility-hero-meta-pills {
    display: none !important;
  }

  /* Tiêu đề Hero Trang Tiện Ích */
  .utility-page-title {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
  }

  .utility-hero-desc {
    font-size: 1.35rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  /* Ẩn điều hướng timeline 24h trên mobile (đã vuốt chạm ngang tiện lợi) */
  .hourly-slider-controls {
    display: none !important;
  }

  /* Tiêu đề phân mục H2 trên mobile */
  .utility-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .utility-section-subtitle {
    font-size: 1.3rem;
    line-height: 1.45;
    margin-bottom: 16px;
  }

  /* Đồng bộ kích thước tiêu đề của TẤT CẢ các Box/Card Panel trên mobile */
  .utility-panel-card .utility-sub-title,
  .utility-panel-card .utility-section-title,
  .utility-sub-title,
  .utility-sidebar-title {
    font-size: 1.6rem !important;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  /* Ẩn hậu tố thương hiệu trong badge hero trên mobile */
  .badge-brand-suffix {
    display: none;
  }

  /* Biểu đồ giá vàng SJC: thu gọn padding và tiêu đề trên mobile */
  .gold-chart-card {
    padding: 16px 14px;
    margin-bottom: 20px;
    border-radius: 16px;
  }

  .gold-chart-head-top {
    gap: 10px;
    margin-bottom: 12px;
  }

  .gold-chart-title {
    font-size: 1.65rem;
    line-height: 1.3;
  }

  .gold-chart-title-sub {
    display: none;
  }

  /* Toolbar biểu đồ: căn giữa truyền tải thông tin và cụm điều hướng */
  .gold-chart-head-toolbar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 12px;
    margin-bottom: 14px;
    gap: 10px;
  }

  .gold-chart-legend {
    justify-content: center;
    width: 100%;
  }

  .gold-chart-live-indicator {
    display: none !important;
  }

  /* Cụm điều hướng kỳ thời gian: căn chính giữa cân xứng */
  .gold-chart-nav-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .gold-chart-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;

    .nav-btn-text {
      display: none;
    }

    svg {
      margin: 0 auto;
    }
  }

  .gold-chart-period-badge {
    min-width: 120px;
    text-align: center;
    padding: 6px 12px;
    font-size: 1.3rem;
  }

  /* Bảng giá vàng: Ẩn table truyền thống, hiển thị danh sách thẻ card hiện đại */
  .table-responsive-wrapper {
    display: none !important;
  }
  .gold-mobile-cards {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }

  /* Công cụ quy đổi vàng trên mobile */
  .gold-converter-box {
    padding: 18px 16px;

    .converter-box-head {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }

    .converter-segmented-tabs {
      grid-template-columns: 1fr;
      gap: 4px;
    }

    .converter-input-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .converter-result-panel {
      padding: 14px 16px;

      .converter-result-lead {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
      }

      .converter-result-val-row .converter-result-number {
        font-size: 2.5rem;
      }
    }
  }

  /* Biểu đồ trên mobile: căn chỉnh chiều cao và padding */
  .gold-chart-canvas-container {
    height: 320px;
  }
}

@media (max-width: 991px) {
  .weather-spotlight-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .matrix-task-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .matrix-task-col-status {
    align-items: flex-start;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .utility-panel-card {
    padding: 20px 16px;
    border-radius: 18px;
    margin-bottom: 20px;
    max-width: 100%;
    overflow: hidden;
  }

  .weather-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .forecast-day-row {
    grid-template-columns: 100px 36px 1fr auto;
    gap: 8px;
    padding: 12px 12px;
  }

  .forecast-day-desc {
    display: none;
  }

  .forecast-range-bar {
    max-width: 50px;
  }

  .weather-action-indices-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .weather-season-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  /* Bảo vệ toàn bộ layout không tràn ngang trên mobile */
  .utility-full-page {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Thu nhỏ tiêu đề trên màn hình nhỏ tránh rớt hàng */
  .utility-page-title {
    font-size: 1.95rem;
    line-height: 1.3;
  }

  .utility-section-title {
    font-size: 1.65rem;
    line-height: 1.35;
  }

  /* Đồng bộ tiêu đề tất cả các Box/Card Panel trên màn hình nhỏ */
  .utility-panel-card .utility-sub-title,
  .utility-panel-card .utility-section-title,
  .utility-sub-title,
  .utility-sidebar-title {
    font-size: 1.5rem !important;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  .utility-main-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .utility-main-col,
  .utility-sidebar-col {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .utility-panel-card {
    padding: 16px 12px;
    border-radius: 16px;
    margin-bottom: 16px;
    max-width: 100%;
    overflow: hidden;
  }

  .utility-stats-grid {
    grid-template-columns: 1fr;
  }

  .gold-table-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  .gold-tab-btn {
    justify-content: center;
  }
  .gold-chart-preset-group {
    flex-wrap: wrap;
    width: 100%;
  }
  .gold-preset-btn {
    flex: 1 1 auto;
    text-align: center;
  }
  .gold-chart-date-picker-form {
    width: 100%;
  }
  .gold-date-input {
    width: 100%;
  }

  /* Weather Hero Spotlight Card Mobile */
  .weather-hero-spotlight-card {
    max-width: 100%;
    overflow: hidden;

    .spotlight-weather-body {
      gap: 12px;
      margin-bottom: 14px;
      min-height: auto;
    }

    .spotlight-weather-left {
      min-width: 0;
    }

    .spotlight-brand {
      font-size: 1.05rem;
      padding: 3px 8px;
      margin-bottom: 8px;
    }

    .spotlight-weather-label {
      font-size: 1.2rem;
    }

    .spotlight-temp-main {
      font-size: 4.4rem;
      letter-spacing: -1.5px;

      .spotlight-temp-unit {
        font-size: 2.2rem;
      }
    }

    .spotlight-weather-right {
      min-width: 0;
    }

    .spotlight-big-cloud-icon {
      min-height: 70px;
      width: 76px;
      height: 76px;

      svg {
        width: 72px;
        height: 72px;
      }
    }

    .spotlight-condition-text {
      font-size: 1.3rem;
      white-space: normal;
      word-break: break-word;
      line-height: 1.2;
    }

    .spotlight-sub-grid {
      gap: 10px;
      padding-top: 12px;
    }

    .spotlight-sub-item {
      .sub-label {
        font-size: 1.15rem;
      }
      .sub-val {
        font-size: 1.35rem;
      }
    }
  }

  /* Weather Spotlight Card Mobile */
  .weather-spotlight-card {
    padding: 16px 12px;
    border-radius: 16px;
    max-width: 100%;
    overflow: hidden;
  }

  .weather-spotlight-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .weather-status-badges {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .weather-custom-select-box {
    width: 100%;
    min-width: 100%;
  }

  .weather-custom-select-trigger {
    padding: 10px 12px;
  }

  .select-trigger-text {
    font-size: 1.35rem;
  }

  .weather-spotlight-body {
    gap: 16px;
    margin-bottom: 16px;
  }

  /* Khối Điều Kiện Ngoài Trời Trên Mobile - Không Tràn Mép */
  .weather-outdoor-condition-card {
    padding: 16px 14px;
    border-radius: 14px;
    max-width: 100%;
    overflow: hidden;
  }

  .outdoor-card-header {
    flex-wrap: wrap;
    gap: 8px;

    .outdoor-title-wrap {
      white-space: normal;
      font-size: 1.45rem;
      line-height: 1.3;
    }

    .outdoor-status-tag {
      font-size: 1.1rem;
      padding: 2px 8px;
    }
  }

  .outdoor-facts-list {
    gap: 8px;
  }

  .outdoor-fact-item {
    padding: 10px 10px;
    gap: 10px;

    .fact-icon-badge {
      width: 34px;
      height: 34px;
      font-size: 1.6rem;
      border-radius: 8px;
    }

    .fact-body {
      .fact-label {
        font-size: 1.25rem;
      }
      .fact-detail {
        font-size: 1.2rem;
        word-break: break-word;
        line-height: 1.4;
      }
    }
  }

  .outdoor-card-footer {
    padding: 8px 10px;
    font-size: 1.2rem;
    line-height: 1.45;
  }

  /* Khối Chất Lượng Không Khí Trên Mobile - Cân Xứng, Không Lệch */
  .weather-aqi-card {
    padding: 16px 14px;
    border-radius: 14px;
    max-width: 100%;
    overflow: hidden;
    gap: 12px;
  }

  .aqi-card-header {
    .aqi-title-left {
      font-size: 1.45rem;
    }
  }

  .aqi-meter-main {
    padding: 14px 12px;
    gap: 12px;
    border-radius: 14px;
  }

  .aqi-circle-badge {
    width: 60px;
    height: 60px;
    flex-shrink: 0;

    .aqi-number {
      font-size: 2.3rem;
    }
    .aqi-unit {
      font-size: 0.95rem;
    }
  }

  .aqi-meter-text {
    .aqi-status-title {
      font-size: 1.55rem;
      white-space: normal;
      line-height: 1.25;
    }
    .aqi-recommendation {
      font-size: 1.2rem;
      line-height: 1.4;
    }
  }

  .aqi-segmented-bar {
    gap: 4px;
  }

  .aqi-segment {
    padding: 6px 2px;
    border-radius: 8px;

    .seg-label {
      font-size: 0.95rem;
      white-space: normal;
      line-height: 1.15;
      letter-spacing: -0.2px;
    }
  }

  .aqi-sub-metrics-row {
    gap: 6px;
  }

  .aqi-sub-metric-pill {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 6px;

    .sub-metric-name {
      font-size: 1.2rem;
    }
    .sub-metric-value-group {
      gap: 8px;
    }
    .sub-metric-val {
      font-size: 1.25rem;
    }
    .sub-metric-tag {
      font-size: 1.05rem;
      padding: 1px 6px;
    }
  }

  /* 6 Metrics Grid Mobile */
  .weather-metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 18px;
  }

  .weather-metric-item {
    padding: 12px 14px;
  }

  /* Timeline 24 Giờ Mobile */
  .weather-hourly-panel-head {
    .utility-sub-title {
      font-size: 1.5rem;
    }
  }

  .weather-hourly-timeline {
    padding: 10px 16px 16px;
    gap: 10px;
  }

  .hourly-pill {
    min-width: 82px;
    padding: 12px 8px;
    gap: 6px;

    .hourly-time {
      font-size: 1.2rem;
    }
    .hourly-icon {
      font-size: 2.2rem;
    }
    .hourly-temp {
      font-size: 1.55rem;
    }
    .hourly-rain {
      font-size: 1.1rem;
    }
  }

  /* Dự Báo 7 Ngày Mobile */
  .forecast-day-row {
    grid-template-columns: 82px 30px 1fr auto;
    gap: 6px;
    padding: 10px 8px;
    font-size: 1.2rem;
  }

  .forecast-day-name {
    font-size: 1.25rem;
    .forecast-date-sub {
      font-size: 1.05rem;
    }
  }

  .forecast-day-icon {
    width: 32px;
    height: 32px;

    svg {
      width: 26px;
      height: 26px;
    }
  }

  .forecast-day-desc {
    display: none;
  }

  .forecast-range-bar {
    display: none;
  }

  .forecast-rain-pill {
    font-size: 1.05rem;
    padding: 2px 6px;
  }

  .forecast-temp-range-bar-wrap {
    gap: 4px;
    font-size: 1.25rem;
  }

  /* Cẩm Nang Thời Tiết Mobile */
  .action-index-card {
    padding: 16px 14px;
    border-radius: 14px;
    max-width: 100%;
    overflow: hidden;
  }

  .action-card-headings {
    .action-task-title {
      font-size: 1.35rem;
      white-space: normal;
      line-height: 1.3;
    }
    .action-task-scope {
      font-size: 1.15rem;
      white-space: normal;
      line-height: 1.3;
    }
  }

  .action-card-desc {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  .season-summary-card {
    padding: 14px;
    .season-title {
      font-size: 1.3rem;
    }
    .season-desc {
      font-size: 1.25rem;
    }
  }

  .radar-station-box {
    padding: 14px;
    .radar-station-title {
      font-size: 1.3rem;
    }
    .radar-station-desc {
      font-size: 1.2rem;
    }
  }
}

