﻿@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&family=Noto+Sans+TC:wght@400;500;700;900&display=swap");

:root {
  color-scheme: dark;
  --bg: #030503;
  --bg-2: #070d08;
  --surface: rgba(9, 14, 10, 0.78);
  --surface-2: rgba(12, 19, 14, 0.74);
  --surface-3: rgba(17, 25, 18, 0.72);
  --line: rgba(57, 255, 20, 0.22);
  --line-strong: rgba(122, 255, 97, 0.42);
  --text: #ecffef;
  --muted: #aac7b0;
  --soft: #7fa38a;
  --blue: #39ff14;
  --cyan: #00ff99;
  --violet: #7dff5e;
  --green: #9dff6d;
  --amber: #ffd166;
  --danger: #fb7185;
  --shadow: 0 26px 64px rgba(0, 0, 0, 0.52);
  --glow: 0 0 0 1px rgba(57, 255, 20, 0.14), 0 0 54px rgba(0, 255, 153, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% -6%, rgba(57, 255, 20, 0.18), transparent 30rem),
    radial-gradient(circle at 86% 10%, rgba(0, 255, 153, 0.11), transparent 28rem),
    linear-gradient(145deg, #050905 0%, #030503 46%, #060b07 100%);
  color: var(--text);
  font: 15px/1.65 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(36rem 26rem at 12% 18%, rgba(57, 255, 20, 0.16), transparent 65%),
    radial-gradient(32rem 28rem at 78% 14%, rgba(0, 255, 153, 0.14), transparent 63%),
    radial-gradient(44rem 30rem at 48% 82%, rgba(60, 255, 120, 0.10), transparent 68%);
  transform-origin: center;
  animation: flow-glow 18s ease-in-out infinite alternate;
}

body::after {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 190px;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(57, 255, 20, 0.07) 0 1px, transparent 1px 86px),
    linear-gradient(180deg, transparent 0%, rgba(3, 10, 5, 0.34) 35%, rgba(3, 10, 5, 0.82) 100%);
  opacity: 0.42;
}

@keyframes flow-glow {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1.02);
    filter: blur(0px);
  }
  50% {
    transform: translate3d(2%, 1%, 0) scale(1.05);
    filter: blur(1px);
  }
  100% {
    transform: translate3d(-1%, 2%, 0) scale(1.03);
    filter: blur(0px);
  }
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(57, 255, 20, 0.30);
  border-radius: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.94), rgba(0, 255, 153, 0.88) 68%, rgba(157, 255, 116, 0.86));
  color: #071008;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(57, 255, 20, 0.18);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(57, 255, 20, 0.22);
}

button.secondary,
.button.secondary {
  border-color: rgba(57, 255, 20, 0.32);
  background: rgba(25, 37, 25, 0.52);
  color: var(--text);
  box-shadow: none;
}

button.ghost,
.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--cyan);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(5, 9, 6, 0.78);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.14);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--cyan);
  color: #06111f;
  font-weight: 900;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(57, 255, 20, 0.22);
  padding: 14px clamp(16px, 4vw, 34px);
  background: rgba(3, 8, 4, 0.82);
  backdrop-filter: blur(22px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}

.brand-logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 46px;
  border: 1px solid rgba(57, 255, 20, 0.42);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.14), inset 0 0 18px rgba(57, 255, 20, 0.08);
  overflow: hidden;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.36));
}

.brand-mark,
.glyph {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(57, 255, 20, 0.6);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.16), rgba(0, 255, 153, 0.14));
  color: #bbff9b;
  font-size: 13px;
  font-weight: 950;
  font-family: "Rajdhani", "Noto Sans TC", sans-serif;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(57, 255, 20, 0.14);
  color: #d6ffcb;
}

.header-cta {
  border-radius: 8px;
  padding: 9px 13px;
  background: rgba(57, 255, 20, 0.16);
  color: #ceffbd;
  font-weight: 900;
}

.icon-button {
  display: none;
  width: 42px;
  padding: 0;
}

.icon-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

#app {
  min-height: 70vh;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 48px 0;
}

.section-tight {
  padding: 28px 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

p {
  color: var(--muted);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 26px;
  align-items: center;
  padding: 66px 0 42px;
}

.hero::before,
.page-hero::before {
  position: absolute;
  inset: auto auto 18px 0;
  width: min(520px, 54vw);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(57, 255, 20, 0.72), rgba(0, 255, 153, 0.24), transparent);
}

.hero h1,
.page-hero h1 {
  background: linear-gradient(95deg, #f5fff5 0%, #d8ffd6 46%, #7dff5e 74%, #00ff99 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy .lead {
  max-width: 720px;
  margin-bottom: 22px;
  color: #d6ebd6;
  font-size: 18px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: center;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.guest-hint {
  margin: 10px 0 0;
  color: #c5ffc2;
  font-weight: 700;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(57, 255, 20, 0.08);
  color: #cfffd0;
  font-size: 12px;
  font-weight: 800;
}

.hero-visual,
.login-card,
.card,
.panel,
.stat-card,
.product-card,
.task-card,
.faq-item,
.seo-card,
.admin-card,
.wallet-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.066), rgba(255, 255, 255, 0.022)),
    var(--surface);
  box-shadow: var(--shadow), var(--glow);
  backdrop-filter: blur(16px);
}

.hero-visual {
  overflow: hidden;
  padding: 14px;
}

.login-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.login-card h2 {
  margin-bottom: 2px;
  font-size: clamp(24px, 4vw, 34px);
}

.login-card .auth-form {
  margin-top: 4px;
}

.dashboard-mock {
  border: 1px solid rgba(57, 255, 20, 0.20);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 16, 9, 0.94), rgba(4, 9, 5, 0.98)),
    #050a06;
  overflow: hidden;
}

.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.mock-lights {
  display: flex;
  gap: 6px;
}

.mock-lights span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.mock-lights span:nth-child(2) {
  background: var(--violet);
}

.mock-lights span:nth-child(3) {
  background: var(--cyan);
}

.mock-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.mock-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.mock-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.mock-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.32);
}

.mock-score {
  color: var(--green);
  font-weight: 950;
}

.grid,
.grid-2,
.grid-3,
.grid-4,
.grid-5 {
  display: grid;
  gap: 14px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head p {
  max-width: 680px;
  margin-bottom: 0;
}

.card,
.panel,
.stat-card,
.seo-card,
.admin-card {
  padding: 18px;
}

.step-card {
  position: relative;
  min-height: 160px;
}

.step-index {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(57, 255, 20, 0.14);
  color: var(--blue);
  font-weight: 950;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card strong {
  display: block;
  margin-top: 5px;
  font-size: 28px;
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.product-grid,
.task-grid,
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card,
.task-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.product-art {
  display: grid;
  place-items: center;
  min-height: 128px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(57, 255, 20, 0.16), rgba(0, 255, 153, 0.13) 56%, rgba(125, 255, 94, 0.12)),
    linear-gradient(180deg, rgba(6, 12, 7, 0.92), rgba(4, 10, 5, 0.92));
  color: var(--cyan);
  font-size: 34px;
  font-weight: 950;
}

.product-meta,
.task-meta,
.challenge-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.price {
  color: var(--cyan);
  font-weight: 950;
}

.muted {
  color: var(--muted);
}

.small {
  color: var(--soft);
  font-size: 12px;
  font-weight: 750;
}

.filters {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(150px, 0.5fr));
  gap: 10px;
  margin-bottom: 16px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-pills button {
  min-height: 34px;
  padding: 7px 10px;
}

.filter-pills button.active {
  background: var(--cyan);
  color: #06111f;
}

.task-card .status,
.wallet-status {
  width: fit-content;
  border-radius: 8px;
  padding: 4px 8px;
  background: rgba(57, 255, 20, 0.12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.status.review {
  background: rgba(255, 209, 102, 0.13);
  color: var(--amber);
}

.status.done,
.wallet-status.done {
  background: rgba(94, 225, 165, 0.13);
  color: var(--green);
}

.status.failed {
  background: rgba(251, 113, 133, 0.13);
  color: var(--danger);
}

.page-hero {
  position: relative;
  padding: 48px 0 20px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 760px;
  color: #cfe6d0;
  font-size: 17px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tabs button {
  min-height: 34px;
  padding: 7px 10px;
}

.tabs button.active {
  background: rgba(57, 255, 20, 0.16);
  color: var(--cyan);
  border-color: rgba(57, 255, 20, 0.5);
}

.wallet-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.7fr 0.8fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.bridge-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 16px;
  align-items: center;
}

.bridge-actions {
  display: grid;
  gap: 10px;
}

.launcher-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 14px;
  align-items: stretch;
}

.launcher-download {
  display: grid;
  gap: 14px;
}

.launcher-console {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 18, 10, 0.92), rgba(4, 10, 6, 0.96)),
    #050a06;
  box-shadow: var(--shadow), var(--glow);
}

.launcher-line {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 13px 14px;
  color: #d8f2d7;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.45);
}

.status-dot.cyan {
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 255, 153, 0.45);
}

.status-dot.violet {
  background: var(--violet);
  box-shadow: 0 0 16px rgba(0, 255, 153, 0.45);
}

.status-dot.green {
  background: var(--green);
  box-shadow: 0 0 16px rgba(157, 255, 109, 0.45);
}

.atg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
  gap: 14px;
  align-items: start;
}

.atg-room-list {
  display: grid;
  gap: 10px;
}

.atg-room-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(57, 255, 20, 0.07), rgba(0, 255, 153, 0.08) 54%, rgba(125, 255, 94, 0.06)),
    rgba(7, 14, 8, 0.82);
  box-shadow: var(--glow);
}

.atg-room-card.active {
  border-color: rgba(57, 255, 20, 0.54);
  background:
    linear-gradient(135deg, rgba(57, 255, 20, 0.14), rgba(0, 255, 153, 0.11) 58%, rgba(125, 255, 94, 0.10)),
    rgba(9, 16, 10, 0.9);
}

.atg-room-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: normal;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  text-align: left;
}

.atg-room-main:hover {
  transform: none;
  box-shadow: none;
}

.atg-room-main strong,
.atg-room-main small {
  display: block;
}

.atg-room-main small {
  color: var(--muted);
  font-weight: 800;
}

.atg-rank {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 34px;
  border-radius: 8px;
  background: rgba(57, 255, 20, 0.10);
  color: var(--cyan);
  font-weight: 950;
}

.atg-room-meta,
.atg-room-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.atg-room-footer span {
  color: #d0ffd1;
  font-weight: 950;
}

.energy-bar {
  overflow: hidden;
  height: 12px;
  border: 1px solid rgba(57, 255, 20, 0.22);
  border-radius: 999px;
  background: rgba(17, 28, 18, 0.52);
}

.energy-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00ff99 0%, #39ff14 46%, #7dff5e 72%, #d9f99d 100%);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.34), 0 0 34px rgba(0, 255, 153, 0.20);
}

.atg-detail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.atg-detail h2 {
  margin-bottom: 0;
}

.atg-bridge-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: 18px;
  padding: clamp(16px, 3vw, 24px);
}

.atg-bridge-panel h2 {
  margin: 0 0 8px;
}

.atg-bridge-panel p {
  margin: 0;
  color: var(--muted);
}

.atg-bridge-status {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #6b7280;
  box-shadow: 0 0 16px rgba(107, 114, 128, 0.45);
}

.live-dot.online {
  background: #39ff14;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.68);
}

.atg-bridge-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 10px;
}

.atg-bridge-actions input {
  border: 1px solid rgba(57, 255, 20, 0.34);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.42);
  color: #c7f8d4;
}

.atg-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.mini-metric span,
.mini-metric strong {
  display: block;
}

.mini-metric span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.mini-metric strong {
  color: var(--text);
  font-size: 18px;
}

.section-head.compact {
  margin-bottom: 10px;
}

.faq-list,
.record-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  padding: 16px;
}

.faq-item summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.faq-item p {
  margin: 10px 0 0;
}

.legal-block {
  display: grid;
  gap: 12px;
}

.notice {
  border: 1px solid rgba(57, 255, 20, 0.36);
  border-radius: 8px;
  padding: 14px;
  background: rgba(57, 255, 20, 0.10);
  color: #d3ffd5;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: 28px clamp(16px, 4vw, 34px);
  background: rgba(6, 12, 7, 0.9);
}

.site-footer p {
  max-width: 760px;
  margin: 6px 0 0;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.site-footer a {
  color: var(--muted);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 32px));
  transform: translateY(20px);
  opacity: 0;
  border: 1px solid rgba(57, 255, 20, 0.42);
  border-radius: 8px;
  padding: 12px 14px;
  background: #0a120b;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.62);
}

.modal {
  width: min(480px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 20px;
  background: #0a120b;
  box-shadow: var(--shadow);
}

.modal-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 18px;
}

.admin-table {
  display: grid;
  gap: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.seo-table {
  display: grid;
  gap: 12px;
}

.seo-card {
  display: grid;
  gap: 8px;
}

.data-table {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(130px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 28, 48, 0.86);
  box-shadow: var(--shadow);
}

.data-table strong,
.data-table span {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px;
  word-break: break-word;
}

.data-table strong {
  background: rgba(57, 255, 20, 0.12);
  color: var(--text);
}

.data-table span {
  color: var(--muted);
}

.admin-nav {
  margin-bottom: 0;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .icon-button {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    justify-self: end;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  body.menu-open .site-nav {
    position: fixed;
    inset: 68px 16px auto 16px;
    display: grid;
    justify-content: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #0a120b;
    box-shadow: var(--shadow);
  }

  body.menu-open .site-nav a {
    padding: 12px;
  }

  .hero,
  .auth-panel,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .product-grid,
  .task-grid,
  .challenge-grid,
  .stats-strip,
  .bridge-panel,
  .launcher-grid,
  .atg-layout {
    grid-template-columns: 1fr 1fr;
  }

  .atg-detail {
    position: static;
  }

  .atg-bridge-panel,
  .atg-bridge-actions {
    grid-template-columns: 1fr;
  }

  .atg-bridge-status {
    justify-items: start;
  }

  .hero {
    padding-top: 40px;
  }

  .filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .hero,
  .auth-panel,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .product-grid,
  .task-grid,
  .challenge-grid,
  .stats-strip,
  .bridge-panel,
  .launcher-grid,
  .atg-layout,
  .atg-metric-grid,
  .wallet-row,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: start;
  }

  .section {
    padding: 34px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mock-card {
    grid-template-columns: auto 1fr;
  }

  .mock-score {
    grid-column: 1 / -1;
  }

  .data-table {
    display: block;
  }

  .data-table strong,
  .data-table span {
    display: block;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .site-header {
    gap: 10px;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo-shell {
    width: 112px;
    height: 38px;
  }

  .brand-mark,
  .glyph {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 34px 0 26px;
  }

  .hero-copy .lead {
    font-size: 16px;
  }

  .button-row .button,
  .button-row button,
  .hero-actions .button,
  .hero-actions button {
    width: 100%;
  }
}

/* Obsidian AI black-green theme layer */
:root {
  --gold: #39ff14;
  --gold-2: #d7ffd0;
  --royal: #00ff99;
  --purple: #7dff5e;
  --casino-bg: #030604;
  --casino-panel: rgba(6, 12, 8, 0.82);
  --line: rgba(57, 255, 20, 0.34);
  --line-strong: rgba(125, 255, 94, 0.64);
  --cyan: #00ff99;
  --blue: #39ff14;
  --violet: #7dff5e;
  --green: #9dffb4;
  --glow: 0 0 0 1px rgba(57, 255, 20, 0.18), 0 0 34px rgba(0, 255, 153, 0.16), 0 0 58px rgba(125, 255, 94, 0.10);
}

body {
  background:
    linear-gradient(180deg, rgba(6, 4, 7, 0.72), rgba(6, 4, 7, 0.98)),
    url("./assets/dealer-card.png"),
    radial-gradient(circle at 22% 0%, rgba(57, 255, 20, 0.16), transparent 32rem),
    radial-gradient(circle at 82% 14%, rgba(0, 255, 153, 0.13), transparent 30rem),
    linear-gradient(145deg, #030503 0%, #050805 58%, #07110a 100%);
  background-attachment: fixed;
  background-size: cover, min(980px, 88vw) auto, auto, auto, auto;
  background-position: center, right top, center, center, center;
}

body::before {
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(57, 255, 20, 0.12) 28%, transparent 38% 55%, rgba(0, 255, 153, 0.10) 66%, transparent 76%),
    radial-gradient(34rem 24rem at 18% 12%, rgba(57, 255, 20, 0.16), transparent 66%),
    radial-gradient(34rem 26rem at 80% 20%, rgba(0, 255, 153, 0.12), transparent 64%);
}

body.auth-only {
  background:
    linear-gradient(90deg, rgba(5, 3, 6, 0.92) 0%, rgba(5, 3, 6, 0.58) 48%, rgba(5, 3, 6, 0.72) 100%),
    url("./assets/dealer-hero.png");
  background-size: cover;
  background-position: center;
}

body.auth-only .site-header,
body.auth-only .site-footer,
body.auth-only .skip-link {
  display: none;
}

body.auth-only #app {
  min-height: 100vh;
}

.login-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 460px) minmax(220px, 360px);
  gap: clamp(18px, 4vw, 46px);
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(22px, 5vw, 72px);
}

.login-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 24%, rgba(57, 255, 20, 0.18) 36%, transparent 48% 62%, rgba(0, 255, 153, 0.14) 72%, transparent 84%),
    radial-gradient(circle at 48% 52%, rgba(125, 255, 94, 0.14), transparent 28rem);
  animation: flow-glow 14s ease-in-out infinite alternate;
}

.standalone-login {
  z-index: 1;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(180deg, rgba(18, 14, 21, 0.88), rgba(8, 6, 11, 0.9)),
    rgba(6, 4, 7, 0.88);
}

.login-brand {
  display: grid;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.login-logo {
  width: min(100%, 420px);
  height: auto;
  max-height: 150px;
  border: 2px solid rgba(57, 255, 20, 0.34);
  border-radius: 16px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.58);
  box-shadow: 0 0 42px rgba(57, 255, 20, 0.18), inset 0 0 28px rgba(0, 255, 153, 0.08);
  object-fit: contain;
}

.login-brand h1 {
  margin: 0;
  font-family: "Rajdhani", "Noto Sans TC", sans-serif;
  font-size: clamp(34px, 6vw, 56px);
}

.login-copy,
.auth-status {
  color: #dfffe8;
}

.login-note {
  margin: 14px 0 0;
  border-left: 3px solid rgba(57, 255, 20, 0.72);
  border-radius: 8px;
  padding: 10px 12px;
  color: #bfffd0;
  background: rgba(57, 255, 20, 0.08);
  box-shadow: inset 0 0 24px rgba(0, 255, 153, 0.08);
  line-height: 1.75;
}

.line-login {
  width: 100%;
  margin-top: 10px;
  border-color: rgba(6, 199, 85, 0.78);
  background: linear-gradient(135deg, #06c755, #00b84c);
  color: #041007;
}

.line-login span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 24px;
  border-radius: 4px;
  background: #fff;
  color: #06c755;
  font-family: "Rajdhani", sans-serif;
  font-weight: 900;
}

.dealer-showcase {
  z-index: 1;
  overflow: hidden;
  min-height: min(78vh, 720px);
  border-radius: 8px;
  background: rgba(8, 6, 11, 0.72);
}

.dealer-showcase img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.permission-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 18px auto 0;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(10, 7, 12, 0.78);
  box-shadow: var(--glow);
  backdrop-filter: blur(14px);
}

.permission-user {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.permission-user img,
.permission-user span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(57, 255, 20, 0.12);
}

.permission-role strong {
  color: var(--gold-2);
}

.permission-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.permission-scope span {
  border: 1px solid rgba(0, 255, 153, 0.42);
  border-radius: 999px;
  padding: 4px 8px;
  color: #dfffe8;
  font-size: 12px;
  font-weight: 800;
}

.obsidian-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.82fr);
  gap: clamp(22px, 5vw, 54px);
  align-items: center;
  padding-top: clamp(34px, 7vw, 84px);
  padding-bottom: clamp(28px, 6vw, 72px);
}

.obsidian-copy {
  position: relative;
  z-index: 1;
}

.obsidian-copy h1 {
  max-width: 780px;
  margin: 0 0 18px;
  color: #f1fff4;
  text-shadow: 0 0 30px rgba(57, 255, 20, 0.22);
}

.obsidian-copy .lead {
  max-width: 640px;
  color: #c7f8d4;
}

.hero-logo {
  width: min(100%, 520px);
  max-height: 160px;
  margin: 0 0 20px;
  border: 2px solid rgba(57, 255, 20, 0.32);
  border-radius: 18px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 48px rgba(57, 255, 20, 0.18), inset 0 0 26px rgba(0, 255, 153, 0.08);
  object-fit: contain;
}

.obsidian-media {
  min-height: clamp(340px, 44vw, 560px);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48), 0 0 58px rgba(57, 255, 20, 0.16);
}

.obsidian-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.04) contrast(1.05);
}

.energy-border,
.hero-visual,
.login-card,
.card,
.panel,
.stat-card,
.product-card,
.task-card,
.faq-item,
.seo-card,
.admin-card,
.wallet-row,
.data-table,
.modal {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(57, 255, 20, 0.42);
  background:
    linear-gradient(180deg, rgba(9, 18, 11, 0.84), rgba(4, 8, 5, 0.9)),
    var(--casino-panel);
}

.energy-border::before,
.hero-visual::before,
.login-card::before,
.card::before,
.panel::before,
.stat-card::before,
.product-card::before,
.task-card::before,
.faq-item::before,
.seo-card::before,
.admin-card::before,
.wallet-row::before,
.data-table::before,
.modal::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  content: "";
  background: linear-gradient(115deg, var(--gold), var(--royal), var(--purple), var(--gold));
  background-size: 280% 280%;
  opacity: 0.75;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-flow 6s linear infinite;
}

.energy-border > *,
.hero-visual > *,
.login-card > *,
.card > *,
.panel > *,
.stat-card > *,
.product-card > *,
.task-card > *,
.faq-item > *,
.seo-card > *,
.admin-card > *,
.wallet-row > *,
.data-table > *,
.modal > * {
  position: relative;
  z-index: 1;
}

@keyframes border-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 280% 50%;
  }
}

button,
.button {
  border-width: 2px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, #12b800);
  color: #031107;
}

button.secondary,
.button.secondary {
  border-width: 2px;
  border-color: rgba(0, 255, 153, 0.62);
  background: linear-gradient(135deg, rgba(0, 255, 153, 0.18), rgba(57, 255, 20, 0.12));
}

.hero,
.page-hero {
  isolation: isolate;
}

.hero::after,
.page-hero::after {
  position: absolute;
  inset: 18px 0 auto auto;
  z-index: -1;
  width: min(360px, 38vw);
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 4, 7, 0.18), rgba(6, 4, 7, 0.78)),
    url("./assets/dealer-card.png") center / cover;
  box-shadow: var(--glow);
  opacity: 0.56;
}

@media (max-width: 760px) {
  .login-scene {
    grid-template-columns: 1fr;
  }

  .dealer-showcase {
    display: none;
  }

  .permission-bar {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 24px, var(--max));
  }

  .obsidian-hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .obsidian-media {
    min-height: 320px;
  }

  .hero::after,
  .page-hero::after {
    display: none;
  }
}

