/* Game Station — shared red/white shop theme */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-elev: #ffffff;
  --panel: #ffffff;
  --panel-2: #f3f4f6;
  --panel-3: #eef0f3;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #e11d2e;
  --accent-strong: #ff2d3f;
  --accent-deep: #b9101f;
  --accent-soft: rgba(225, 29, 46, 0.08);
  --accent-ring: rgba(225, 29, 46, 0.16);
  --line: rgba(225, 29, 46, 0.12);
  --panel-glow: rgba(225, 29, 46, 0.06);
  --shadow-soft: 0 12px 32px rgba(17, 24, 39, 0.08);
  --shadow-pixel: 0 4px 14px rgba(17, 24, 39, 0.08);
  --ok: #ecfdf5;
  --oktext: #047857;
  --warn: #fffbeb;
  --warntext: #b45309;
  --bad: #fef2f2;
  --badtext: #b91c1c;
  --red: var(--accent);
  --cyan: var(--accent);
  --radius: 10px;
  --nav-h: 72px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { background: var(--bg); }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(225, 29, 46, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(225, 29, 46, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
  color: var(--text);
  min-height: 100vh;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

/* ── NAV ── */
.nav {
  height: var(--nav-h);
  background: linear-gradient(180deg, #e11d2e 0%, #dd0105 55%, #c40004 100%);
  border-bottom: 1px solid #a80003;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(196, 0, 4, 0.28);
  backdrop-filter: none;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}
.logo,
.logo-wrap,
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark,
.logo-badge,
.header-logo .badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.logo-mark img,
.logo-badge img,
.header-logo .badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.logo-text,
.header-logo .name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
}
.logo-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.logo-slogan {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}
.logo-text span,
.header-logo .name em,
.logo-text em {
  color: var(--accent);
  font-style: normal;
}
.nav .logo-text,
.nav .header-logo .name {
  color: #fff;
}
.nav .logo-text span,
.nav .logo-text em,
.nav .header-logo .name em {
  color: #fff;
  font-style: normal;
}
.nav-gap,
.sp { flex: 1; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}
.nav-pill,
.nav-back,
.hbtn {
  background: #fff;
  color: #dd0105;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: filter 0.18s, transform 0.18s;
}
.nav-back:hover,
.hbtn:hover,
.nav-pill:hover { filter: brightness(0.97); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.nav-toggle svg { width: 18px; height: 18px; display: block; }

/* ── BUTTONS ── */
.btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: #d1d5db;
}
.btn-accent,
.btn-secondary {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  border-color: var(--accent-deep);
  color: #fff;
}
.btn-accent:hover,
.btn-secondary:hover {
  filter: brightness(1.05);
  color: #fff;
  box-shadow: 0 8px 22px rgba(225, 29, 46, 0.22);
}
.btn-danger {
  background: var(--bad);
  color: var(--badtext);
  border: 1px solid rgba(185, 28, 28, 0.25);
}
.btn-danger:hover {
  background: #fee2e2;
  border-color: rgba(185, 28, 28, 0.4);
}
.btn-link {
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13px;
  border: 1px solid var(--border);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-link:hover { background: var(--accent-soft); color: var(--accent); }

/* ── FOOTER (legacy simple) ── */
.footer {
  background: #111827;
  color: #9ca3af;
  padding: 40px 28px;
  font-size: 15px;
  line-height: 1.6;
  border-top: 3px solid var(--accent);
  position: relative;
  z-index: 1;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.ft-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ft-copy { font-weight: 800; color: #fff; font-size: 16px; letter-spacing: 0.02em; }
.ft-links { display: flex; gap: 20px; flex-wrap: wrap; }
.ft-links a { color: #d1d5db; text-decoration: none; font-weight: 600; transition: color 0.2s; }
.ft-links a:hover { color: var(--accent-strong); }
.ft-bot p { margin-bottom: 4px; font-weight: 500; }

/* ── FOOTER shop (GameStation demo) ── */
.footer.footer--shop {
  margin-top: 40px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  border-top: 0;
  padding: 0;
}
.footer--shop .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.ft-newsletter {
  background: #222;
  color: #fff;
  padding: 14px 0;
}
.ft-newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.ft-social {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ft-social a {
  display: flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  align-items: center;
  justify-content: center;
  transition: transform .15s;
}
.ft-social a:hover { transform: translateY(-2px); }
.ft-social img { display: block; width: 32px; height: 32px; }
.ft-subscribe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  flex: 1 1 320px;
  justify-content: flex-end;
}
.ft-mail-icon { flex-shrink: 0; }
.ft-subscribe-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}
.ft-subscribe-form {
  display: flex;
  align-items: stretch;
  max-width: 420px;
  width: 100%;
  flex: 1 1 280px;
  position: relative;
}
.ft-subscribe-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  border-radius: 4px 0 0 4px;
  padding: 0 12px;
  font-size: 13px;
  font-family: inherit;
  color: #222;
  background: #fff;
  outline: none;
}
.ft-subscribe-form button {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: #f5c518;
  color: #111;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.ft-subscribe-form button:hover { filter: brightness(0.96); }

.ft-main {
  background: #fff;
  padding: 36px 0 20px;
  border-top: 1px solid #eee;
}
.ft-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 28px 24px;
}
.ft-col h4 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}
.ft-desc {
  margin: 0 0 12px;
  color: #555;
  font-size: 13.5px;
}
.ft-contact {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
  color: #444;
  font-size: 13.5px;
}
.ft-contact svg { flex-shrink: 0; margin-top: 3px; color: #333; }
.ft-contact a { color: #333; text-decoration: none; }
.ft-contact a:hover { color: var(--accent); }
.ft-bct { display: inline-block; margin-top: 12px; }
.ft-bct img { display: block; height: 40px; width: auto; }
.ft-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ft-menu li { margin-bottom: 8px; }
.ft-menu a {
  color: #444;
  text-decoration: none;
  font-size: 13.5px;
}
.ft-menu a:hover { color: var(--accent); }
.ft-col-hotline p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: #444;
}
.ft-col-hotline span { color: #666; }
.ft-phone {
  color: #2f80ed;
  font-weight: 700;
  text-decoration: none;
}
.ft-phone:hover { text-decoration: underline; }
.ft-pay-title { margin-top: 18px !important; }
.ft-pay img { display: block; max-width: 100%; height: auto; }

.ft-bottom {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 14px 0 18px;
  font-size: 13px;
  color: #666;
}
.ft-bottom a { color: #333; text-decoration: none; font-weight: 600; }
.ft-bottom a:hover { color: var(--accent); }

@media (max-width: 992px) {
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .ft-subscribe { justify-content: flex-start; }
  .ft-subscribe-text { white-space: normal; }
}
@media (max-width: 640px) {
  .ft-grid { grid-template-columns: 1fr; gap: 22px; }
  .ft-newsletter-inner { flex-direction: column; align-items: flex-start; }
  .ft-subscribe { width: 100%; }
  .ft-subscribe-form { max-width: none; }
}

/* ── FAB ── */
.fab {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fab a,
.fab button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #fff;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.2);
  padding: 0;
}
.fab a.btn-top,
.fab button.btn-top,
.fab a.btn-call { background: #e11d2e; }
.fab a.btn-zalo { background: #0068ff; }
.fab a:hover,
.fab button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(17, 24, 39, 0.22); }

/* ── ADMIN / TOOL HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 24px;
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
  backdrop-filter: blur(14px);
}
.header-left { display: flex; align-items: center; gap: 10px; }
.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-title { font-size: 15px; font-weight: 600; color: var(--muted); }
.header-sub {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-left: 8px;
  background: var(--bg-soft);
}
.time {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

/* ── FORMS ── */
input[type="text"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* ── NOTICE ── */
.notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
}
.notice-err,
.notice.notice-err { background: var(--bad); color: var(--badtext); border-color: rgba(185, 28, 28, 0.25); }
.notice-warn,
.notice.notice-warn { background: var(--warn); color: var(--warntext); border-color: rgba(180, 83, 9, 0.25); }
.notice-success,
.notice.notice-success { background: var(--ok); color: var(--oktext); border-color: rgba(4, 120, 87, 0.25); }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.6; }
}

@media (max-width: 820px) {
  .nav-inner { padding: 0 14px; gap: 8px; }
  .logo-copy { display: none; }
  .logo-mark { width: 40px; height: 40px; }
}

@media (max-width: 600px) {
  .fab { right: 14px; bottom: 18px; }
  .fab a { width: 46px; height: 46px; }
  .header {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 8px;
  }
}
