*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
}

body.modal-open {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

.top-bar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 24px));
  height: 56px;
  background: rgba(43, 47, 56, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  z-index: 10;
  padding-right: 78px;
}

.top-menu {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 56px;
  height: 36px;
  background: #d2c5b2;
  border-radius: 10px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 6px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  border: none;
  cursor: pointer;
}

.top-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background: #2b2f38;
  border-radius: 999px;
}

.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 20;
}

.panel-overlay.open {
  display: flex;
}

.panel-modal {
  width: min(320px, 100%);
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.36);
  position: relative;
}

.panel-close {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.panel-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
}

.panel-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.panel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
}

.panel-sub {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.panel-link {
  padding: 8px 10px;
  background: #22c55e;
  color: #0b1811;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.82rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.panel-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(34, 197, 94, 0.24);
}

.panel-modal .panel-row + .panel-row {
  margin-top: 10px;
}

.panel-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #eef2ff;
  margin: 8px 0 6px;
}

.panel-preview-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-preview-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: #1d4ed8;
  display: grid;
  place-items: center;
}

.panel-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-preview-name {
  font-weight: 800;
  color: #0f172a;
}

.panel-preview-sub {
  font-size: 0.86rem;
  color: #475569;
}

.panel-toggle-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.panel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-list[hidden] {
  display: none !important;
}

.background-texture {
  position: fixed;
  inset: 0;
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #111111;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  padding: 96px 16px 32px;
  transform: none;
}

.avatar-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b8cfb, #12d6ff);
  padding: 4px;
  box-shadow: 0 10px 40px rgba(17, 134, 255, 0.35);
  margin-top: 0;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1b8cfb, #12d6ff);
  border: 4px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.handle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.name {
  background: linear-gradient(120deg, #c89b3c, #f4e3b0, #b67b1d);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: shine 3.2s ease-in-out infinite;
  text-shadow:
    0 0 12px rgba(200, 155, 60, 0.35),
    0 0 22px rgba(182, 123, 29, 0.32),
    0 4px 10px rgba(0, 0, 0, 0.14);
}

.subtitle {
  margin: 10px 0 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #222222;
  text-transform: uppercase;
  text-align: center;
}

.tagline {
  margin: 2px 0 0;
  max-width: 360px;
  font-size: 0.92rem;
  color: #333333;
  line-height: 1.45;
  text-align: center;
  animation: none;
  overflow: hidden;
}

.app-link {
  margin-top: 10px;
  color: #1d4ed8;
  text-decoration: underline;
  font-size: 0.95rem;
  text-transform: lowercase;
}

.appstore-plain {
  margin-top: 44px;
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dns-card {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dns-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dns-title div {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  align-items: flex-start;
}

.dns-title img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.dns-title h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.dns-sub {
  margin: 2px 0 0;
  color: #6b7280;
  font-size: 0.92rem;
}

.dns-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.2;
  animation: alertPulse 2.8s ease-in-out infinite;
  text-align: center;
}

.dns-alert svg {
  display: none;
}

.warning-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.dns-download-block h4 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
}

.dns-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dns-download svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  fill: none;
}

.dns-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.app-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 4px;
}

.appstore-plain h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
}

.app-sub {
  font-size: 0.92rem;
  color: #6b7280;
}

.app-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.25);
  overflow: hidden;
}

.app-icon span {
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.dns-line {
  grid-template-columns: 1fr auto;
  gap: 12px;
  border-radius: 16px;
  align-items: center;
}

.dns-line .app-action {
  justify-content: center;
}

.dns-line .app-download {
  justify-content: center;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-meta h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.app-meta p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #4b5563;
}

.app-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.app-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: #0f172a;
  background: #e0e7ff;
  border: 1px solid #cbd5ff;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.app-download svg {
  width: 20px;
  height: 20px;
}

.app-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.tagline .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: charWave 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.06s);
}

.handle-block {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  background: #2d8cff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(45, 140, 255, 0.45);
  animation: pulse 1.6s ease-in-out infinite;
}

.check {
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-top: -1px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(45, 140, 255, 0.45);
  }
  60% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(45, 140, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(45, 140, 255, 0);
  }
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes charWave {
  0% { opacity: 0; transform: translateY(8px); }
  15% { opacity: 1; transform: translateY(0); }
  60% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes alertPulse {
  0% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.25); }
  50% { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(185, 28, 28, 0.16); }
  100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.1); }
}

/* Tắt toàn bộ hiệu ứng động */
*,
*::before,
*::after {
  animation: none !important;
  transition: none !important;
}

/* Re-enable shine effect for the main APPSTACK.BLOG name */
.name {
  animation: shine 3.2s ease-in-out infinite !important;
  transition: initial;
}
