/* =======================================================================
   CloneVN — Maintenance / Contact page
   Palette + tokens
   ======================================================================= */
:root {
  --accent-1: #7c6cff;
  --accent-2: #2bb6ff;
  --accent-3: #b06cff;

  --bg-0: #060814;
  --bg-1: #0b0f26;

  --text-hi: #f3f5ff;
  --text-mid: #a7afd6;
  --text-low: #6a7298;

  --card: rgba(255, 255, 255, 0.045);
  --card-brd: rgba(255, 255, 255, 0.10);

  --radius: 30px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text-hi);
  background: var(--bg-0);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vh, 18px);
  padding: clamp(10px, 2vh, 28px) clamp(14px, 4vw, 24px);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Dự phòng: nếu màn quá thấp vẫn không đủ chỗ -> canh trên cho cuộn */
@media (max-height: 600px) {
  body { justify-content: flex-start; }
}

/* ---------- Background layer (static) ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 640px at 12% -12%, rgba(124, 108, 255, 0.28), transparent 60%),
    radial-gradient(1100px 680px at 112% 8%, rgba(43, 182, 255, 0.20), transparent 58%),
    radial-gradient(1000px 760px at 50% 124%, rgba(176, 108, 255, 0.20), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
}
.bg-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 35%, #000, transparent 78%);
}

/* ---------- Card ---------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  /* mọi kích thước bên trong scale theo bề rộng thẻ (đơn vị cqi) */
  container-type: inline-size;
  padding: clamp(16px, 2.4vh, 30px) clamp(20px, 6cqi, 46px) clamp(18px, 2.4vh, 34px);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--card);
  border: 1px solid var(--card-brd);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow:
    0 40px 90px -28px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

/* gradient ring on top edge */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124,108,255,0.6), transparent 35%, transparent 65%, rgba(43,182,255,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

/* ---------- Status pill ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px clamp(13px, 3.4cqi, 17px) 8px 11px;
  border-radius: 999px;
  font-size: clamp(11.5px, 2.7cqi, 13.5px);
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #ffe3b0;
  background: rgba(255, 176, 70, 0.10);
  border: 1px solid rgba(255, 176, 70, 0.28);
  margin-bottom: clamp(8px, 1.6vh, 20px);
  max-width: 100%;
}
.status-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 16px; height: 16px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ffb046;
  box-shadow: 0 0 10px #ffb046;
}
/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: clamp(10px, 2.6cqi, 14px); margin-bottom: clamp(8px, 1.6vh, 16px); }
.logo {
  width: clamp(40px, 10cqi, 54px); height: clamp(40px, 10cqi, 54px);
  border-radius: clamp(12px, 3cqi, 16px);
  flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124,108,255,0.22), rgba(43,182,255,0.22));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px -8px rgba(124, 108, 255, 0.6);
}
.logo svg { width: 48%; height: 48%; }
.brand-name {
  font-size: clamp(22px, min(6.2cqi, 4vh), 33px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1;
  background: linear-gradient(100deg, #ffffff 30%, #c9d2ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 30px rgba(124, 108, 255, 0.25);
}
.brand-name span {
  -webkit-text-fill-color: initial;
  background: linear-gradient(100deg, var(--accent-2), var(--accent-3));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* ---------- Title ---------- */
.title {
  font-size: clamp(16px, min(7cqi, 4.4vh), 34px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 4px;
  white-space: nowrap;
}
.title .line { display: inline; }
.title .grad {
  background: linear-gradient(100deg, var(--accent-2), var(--accent-1) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.title-en {
  display: block;
  white-space: normal;
  font-size: clamp(13px, 3.5cqi, 17px);
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #aeb8e2;
  margin-top: clamp(4px, 1vh, 9px);
}

/* ---------- Lead ---------- */
.lead {
  color: var(--text-mid);
  font-size: clamp(13.5px, 3.3cqi, 16.5px);
  line-height: 1.6;
  margin: clamp(10px, 1.8vh, 18px) 0 0;
}
.lead b { color: var(--text-hi); font-weight: 600; }
.lead .safe { color: #bfe9cf; }
.lead .safe b { color: #d7f7e2; }
.lead-en {
  display: block;
  color: #9aa4cf;
  font-size: clamp(12.5px, 3cqi, 15px);
  line-height: 1.55;
  margin-top: clamp(5px, 1.2vh, 9px);
}

/* ---------- Feature list ---------- */
.chips {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.1vh, 9px);
  margin: clamp(12px, 2.2vh, 24px) 0 clamp(12px, 2.2vh, 26px);
}
.chip {
  display: flex;
  align-items: center;
  gap: clamp(11px, 2.8cqi, 13px);
  padding: clamp(9px, 1.5vh, 13px) clamp(13px, 3.4cqi, 15px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(43, 182, 255, 0.28);
}
.chip-ic {
  flex: 0 0 auto;
  width: clamp(32px, 8cqi, 38px); height: clamp(32px, 8cqi, 38px);
  border-radius: 11px;
  display: grid; place-items: center;
  color: var(--accent-2);
  background: rgba(43, 182, 255, 0.12);
  border: 1px solid rgba(43, 182, 255, 0.22);
}
.chip-ic svg { width: 50%; height: 50%; }
.chip-tx {
  font-size: clamp(12.5px, 3cqi, 15px); font-weight: 600; color: var(--text-hi);
  line-height: 1.35;
}
.chip-tx i { font-style: normal; font-weight: 500; color: #8b95c0; font-size: 0.86em; }

/* ---------- Contact ---------- */
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(11px, 3cqi, 14px);
  flex-wrap: wrap;
  padding: clamp(13px, 3.4cqi, 16px) clamp(14px, 3.8cqi, 18px);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(43,182,255,0.10), rgba(124,108,255,0.08));
  border: 1px solid rgba(43, 182, 255, 0.22);
  margin-bottom: clamp(10px, 1.6vh, 16px);
}
.contact-info { display: flex; align-items: center; gap: clamp(11px, 2.8cqi, 13px); min-width: 0; }
.tg-ic {
  flex: 0 0 auto;
  width: clamp(42px, 10cqi, 46px); height: clamp(42px, 10cqi, 46px);
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #2bb6ff, #1c8fe0);
  box-shadow: 0 10px 24px -8px rgba(43, 182, 255, 0.7);
}
.tg-ic svg { width: 52%; height: 52%; }
.contact-text { display: flex; flex-direction: column; min-width: 0; }
.contact-text small {
  font-size: clamp(10px, 2.4cqi, 11px); color: var(--text-low);
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}
.contact-text b { font-size: clamp(17px, 4.4cqi, 21px); font-weight: 700; color: #fff; word-break: break-all; }

.copy-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: clamp(10px, 2.6cqi, 11px) clamp(13px, 3.4cqi, 15px);
  border-radius: 11px;
  font: inherit; font-size: clamp(13px, 3cqi, 13.5px); font-weight: 600;
  color: var(--text-hi);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.13); transform: translateY(-1px); }
.copy-btn .ic-check { display: none; }
.copy-btn.copied { color: #7df0ac; border-color: rgba(125, 240, 172, 0.4); background: rgba(125, 240, 172, 0.12); }
.copy-btn.copied .ic-copy { display: none; }
.copy-btn.copied .ic-check { display: inline; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  padding: clamp(15px, 3.6cqi, 18px) clamp(18px, 5cqi, 24px);
  font-size: clamp(14px, 3.4cqi, 17px);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 18px 44px -14px rgba(124, 108, 255, 0.75);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 26px 56px -14px rgba(124, 108, 255, 0.9); }
.cta:active { transform: translateY(0); }
.cta-shine {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.4), transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.cta:hover .cta-shine { transform: translateX(120%); }
.cta svg { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); }

/* ---------- Note ---------- */
.note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  justify-content: center;
  text-align: center;
  color: var(--text-low);
  font-size: clamp(11.5px, 2.6cqi, 13px);
  line-height: 1.5;
  margin-top: clamp(12px, 2vh, 22px);
}
.note b { color: var(--text-mid); }
.note svg { color: #ffb046; flex: 0 0 auto; }
.note span { flex-basis: 100%; color: #8e98c2; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  color: var(--text-low);
  font-size: clamp(11px, 2.4vw, 12.5px);
  text-align: center;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(24px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 13px;
  font-size: 14px; font-weight: 600; color: #fff;
  background: rgba(18, 22, 44, 0.96);
  border: 1px solid var(--card-brd);
  box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none;
  transition: all 0.35s var(--ease);
  z-index: 50;
}
.toast svg { color: #7df0ac; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ----------
   Cỡ chữ & khoảng cách đã tự co giãn bằng clamp() ở trên,
   nên ở đây chỉ cần vài thay đổi về bố cục.                     */

/* Bo góc gọn lại trên màn hình nhỏ */
@media (max-width: 640px) {
  .card { border-radius: 22px; }
}

/* Điện thoại — khối liên hệ + nút Sao chép xếp dọc full chiều ngang */
@media (max-width: 480px) {
  .contact { flex-direction: column; align-items: stretch; }
  .contact-info { justify-content: flex-start; }
  .copy-btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-shine { display: none; }
}
