/* MIDAS SOLAR - custom styles bổ sung cho Tailwind CDN */

body {
  font-family: 'Be Vietnam Pro', sans-serif;
}

.hero-gradient {
  background: linear-gradient(120deg, #0B3D91 0%, #0B5FFF 55%, #1E88E5 100%);
}

.sun-gradient-text {
  background: linear-gradient(90deg, #F5A623, #FFCC33);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -12px rgba(11, 61, 145, 0.25);
}

.section-label {
  letter-spacing: 0.12em;
}

/* Mobile nav toggle */
#mobile-menu.hidden {
  display: none;
}

/* Simple fade-in for calculator result */
.result-fade {
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Midas Monitor - dashboard mo phong o hero (chuyen tu ban web moi) ===== */
/* chan grid blowout: khong cho noi dung dashboard keo gian cot hero qua khung */
.hero-gradient .grid > div { min-width: 0; }
.dash {
  min-width: 0;
  max-width: 100%;
  background: rgba(6, 10, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  color: #fff;
}
.dash__head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px; min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; color: #9aa4b8;
}
.dash__live {
  display: inline-flex; align-items: center; gap: 6px;
  color: #4ade80; font-weight: 600; letter-spacing: 0.1em;
}
.dash__live i {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 10px #4ade80; animation: dash-pulse 1.6s infinite;
}
@keyframes dash-pulse { 50% { opacity: 0.35; } }
.dash__title { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash__main { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: center; }
.dash__gauge { position: relative; }
.dash__gauge-val { position: absolute; inset: auto 0 6px; text-align: center; }
.dash__gauge-val b { font-size: 32px; display: block; line-height: 1; font-weight: 800; }
.dash__gauge-val span {
  font-size: 11px; color: #9aa4b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dash__cells { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dcell {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; padding: 10px 14px;
}
.dcell span {
  font-size: 11px; color: #9aa4b8; display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dcell b { font-size: 19px; font-weight: 800; }
.dcell b i { font-style: normal; font-size: 11px; color: #9aa4b8; }
.dcell-gold { color: #F5A623; }
.dcell-cyan { color: #22d3ee; }
.dash__spark { margin-top: 16px; }
.dash__spark canvas { width: 100%; max-width: 100%; height: 90px; display: block; }
.dash__spark-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px; color: #9aa4b8; margin-top: 8px; text-align: right;
}
/* Bang live: 1 bang lon + day nut cong trinh ben duoi, bam nut nao xem nha do */
.dash-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.dash-thumb {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 8px; border-radius: 14px; cursor: pointer;
  background: rgba(6, 10, 20, 0.62); color: #cbd5e1;
  border: 2px solid rgba(255, 255, 255, 0.14);
  font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.2;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s, transform 0.2s, color 0.2s, background 0.2s;
}
.dash-thumb:hover { transform: translateY(-2px); color: #fff; }
.dash-thumb.is-active {
  border-color: #F5A623; color: #fff;
  background: rgba(6, 10, 20, 0.85);
  box-shadow: 0 8px 26px rgba(245, 166, 35, 0.25);
}
.dash-thumb__icon { font-size: 20px; line-height: 1; }
.dash-thumb__sub { font-size: 10.5px; font-weight: 500; color: #94a3b8; }
.dash-thumb.is-active .dash-thumb__sub { color: #cbd5e1; }

.hero__chip {
  position: absolute; padding: 10px 16px;
  font-size: 13.5px; font-weight: 600; border-radius: 100px;
  background: rgba(6, 10, 20, 0.82); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  animation: dash-float 5s ease-in-out infinite;
}
.chip-a { top: -18px; right: 8%; animation-delay: 0s; }
.chip-b { bottom: 86px; left: -10px; animation-delay: 2.2s; }
@keyframes dash-float { 50% { transform: translateY(-9px); } }
/* Hang card keo ngang (he tieu bieu + goi combo) */
.hscroll { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; -webkit-overflow-scrolling: touch; }
.hscroll::-webkit-scrollbar { height: 8px; }
.hscroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.hscroll::-webkit-scrollbar-track { background: transparent; }

/* ===== Nut noi goc phai (Tinh toan + Zalo + FB + TikTok) - chuyen tu ban web moi ===== */
.fab {
  position: fixed; right: 18px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.fab__btn {
  display: flex; align-items: center; gap: 0;
  height: 52px; min-width: 52px; border-radius: 100px;
  padding: 0 13px; color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative; overflow: hidden;
}
.fab__btn svg { width: 26px; height: 26px; flex: 0 0 auto; }
.fab__btn span {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  font-weight: 600; font-size: 14px;
  transition: max-width 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
}
.fab__btn:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55); }
.fab__btn:hover span { max-width: 130px; opacity: 1; margin-left: 9px; }
.fab__btn--calc { background: linear-gradient(135deg, #ffd166, #ff9f1c); color: #221500; animation: fab-ring 2.6s ease-in-out infinite; padding: 0 18px 0 14px; }
/* Nut tinh toan: luon no to hien chu san + nam rieng goc TRAI duoi */
.fab__btn--calc { position: fixed; left: 18px; bottom: 20px; }
.fab__btn--calc span { max-width: 130px; opacity: 1; margin-left: 9px; }
.fab__btn--zalo { background: #0068ff; }
.fab__btn--fb { background: #1877f2; }
.fab__btn--tiktok { background: #111; border: 1px solid rgba(255, 255, 255, 0.25); }
@keyframes fab-ring {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(255, 159, 28, 0.45); }
  50% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 12px rgba(255, 159, 28, 0); }
}
@media (max-width: 760px) {
  .fab { right: 12px; bottom: 14px; gap: 10px; }
  .fab__btn { height: 46px; min-width: 46px; padding: 0 10px; }
  .fab__btn svg { width: 23px; height: 23px; }
  .fab__btn:hover span { max-width: 0; opacity: 0; margin-left: 0; }
  .fab__btn--calc { left: 12px; bottom: 14px; }
}

@media (max-width: 760px) {
  .dash { padding: 18px 16px; }
  .dash__main { grid-template-columns: 1fr; }
  .dash__gauge { width: 100%; max-width: 240px; margin: 0 auto; }
  .dash__gauge-val b { font-size: 26px; }
  .dash-thumb { font-size: 11.5px; padding: 8px 6px; }
  .dash-thumb__icon { font-size: 17px; }
  .hero__chip { display: none; }
}
