/* ============================================
   TIÊN CÁC NHỎ AI — TU TIÊN EDITION
   Phong cách: Băng Tuyết + Linh Khí + Cổ Phong
   ============================================ */

:root {
  --bg-deep: #0a0e1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --ice-blue: #7dd3fc;
  --ice-light: #bae6fd;
  --ice-dark: #0369a1;
  --gold: #fbbf24;
  --gold-light: #fde68a;
  --gold-dark: #b45309;
  --purple: #a78bfa;
  --purple-light: #c4b5fd;
  --green: #34d399;
  --red: #f87171;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-mute: #64748b;
  --border: rgba(125, 211, 252, 0.15);
  --border-gold: rgba(251, 191, 36, 0.3);
  --shadow-ice: 0 0 30px rgba(125, 211, 252, 0.1);
  --shadow-gold: 0 0 30px rgba(251, 191, 36, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --font-main: 'Be Vietnam Pro', sans-serif;
  --font-display: 'Noto Serif Display', 'Playfair Display', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ===== HIỆU ỨNG TUYẾT RƠI ===== */
#snowContainer {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: rgba(186, 230, 253, 0.6);
  font-size: 12px;
  animation: snowfall linear infinite;
  text-shadow: 0 0 5px rgba(125, 211, 252, 0.5);
}

@keyframes snowfall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0.3; }
}

/* ===== HIỆU ỨNG LINH KHÍ ===== */
#auraContainer {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.aura-particle {
  position: absolute;
  width: 4px; height: 4px;
  background: radial-gradient(circle, var(--ice-blue), transparent);
  border-radius: 50%;
  animation: auraFloat ease-in-out infinite;
  box-shadow: 0 0 8px var(--ice-blue);
}

@keyframes auraFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0; }
  50% { transform: translateY(-80px) scale(1.5); opacity: 1; }
}

/* ===== THANH TU LUYỆN ===== */
#cultivationBar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(10,14,26,0.98), rgba(10,14,26,0.95));
  border-bottom: 1px solid var(--border-gold);
  padding: 8px 20px;
  backdrop-filter: blur(10px);
}

.cultivation-info {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 4px;
  font-size: 12px;
  font-weight: 600;
}

#realmName {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(251,191,36,0.5);
}

#cultivationPercent { color: var(--ice-blue); }

.cultivation-track {
  max-width: 1200px;
  margin: 0 auto;
  height: 6px;
  background: rgba(125,211,252,0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

#cultivationProgress {
  height: 100%;
  background: linear-gradient(90deg, var(--ice-dark), var(--ice-blue), var(--gold));
  border-radius: 3px;
  transition: width 0.8s ease;
  position: relative;
  width: 0%;
}

.cultivation-glow {
  position: absolute;
  top: 0; right: 0;
  width: 20px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251,191,36,0.8));
  animation: glowPulse 1.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

#cultivationHint {
  text-align: center;
  font-size: 10px;
  color: var(--text-mute);
  margin-top: 3px;
}

/* ===== TOPBAR ===== */
.topbar {
  margin-top: 52px;
  background: rgba(17, 24, 39, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 52px;
  z-index: 900;
}

.topbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.brand strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-light);
}

.live-badge {
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(52,211,153,0.3);
  animation: pulse 2s ease-in-out infinite;
}

.realm-badge {
  background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(167,139,250,0.2));
  color: var(--gold);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-gold);
  font-weight: 600;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

nav { display: flex; gap: 5px; flex-wrap: wrap; }

nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.3s;
}

nav a:hover {
  color: var(--ice-blue);
  background: rgba(125,211,252,0.1);
  text-shadow: 0 0 10px rgba(125,211,252,0.5);
}

/* ===== HERO ===== */
.hero {
  padding: 60px 0 80px;
  position: relative;
  background: radial-gradient(ellipse at 30% 20%, rgba(125,211,252,0.08), transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(167,139,250,0.06), transparent 50%);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(125,211,252,0.1));
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

h1 {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, var(--ice-light), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 20px;
  color: var(--text-dim);
  font-style: italic;
}

.highlight-name {
  position: relative;
}

.highlight-name::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--ice-blue), var(--gold));
  border-radius: 2px;
}

.clock {
  color: var(--ice-blue);
  font-size: 14px;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.status-line { margin-bottom: 16px; }

.status-working {
  color: var(--green);
  text-shadow: 0 0 10px rgba(52,211,153,0.5);
}

.note {
  color: var(--text-mute);
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-main);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: #1a1000;
  box-shadow: 0 4px 15px rgba(251,191,36,0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(251,191,36,0.5);
}

.btn-glow {
  animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 4px 15px rgba(251,191,36,0.3); }
  50% { box-shadow: 0 4px 25px rgba(251,191,36,0.6); }
}

.btn-ghost {
  background: rgba(125,211,252,0.1);
  color: var(--ice-blue);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(125,211,252,0.2);
  border-color: var(--ice-blue);
}

/* ===== MASCOT CARD ===== */
.mascot-card {
  background: linear-gradient(145deg, rgba(17,24,39,0.95), rgba(10,14,26,0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-ice);
}

.mascot-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(125,211,252,0.03), transparent);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.mascot-aura {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(125,211,252,0.15), transparent 70%);
  border-radius: 50%;
  animation: auraPulse 3s ease-in-out infinite;
}

@keyframes auraPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.mascot {
  font-size: 80px;
  position: relative;
  z-index: 2;
  animation: mascotFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(125,211,252,0.5));
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mascot-level {
  display: inline-block;
  background: rgba(167,139,250,0.15);
  color: var(--purple-light);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 15px;
  margin: 10px 0;
  border: 1px solid rgba(167,139,250,0.3);
}

.mascot-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-light);
  margin: 10px 0;
}

.mascot-quote {
  color: var(--text-dim);
  font-style: italic;
  font-size: 14px;
  margin-bottom: 16px;
}

.mascot-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(125,211,252,0.05);
  border-radius: var(--radius-sm);
}

.mstat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mstat span {
  font-size: 11px;
  color: var(--text-mute);
}

.mstat b {
  font-size: 18px;
  color: var(--ice-blue);
}

/* ===== CHATBOX ===== */
.chatbox {
  background: rgba(10,14,26,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  height: 200px;
  overflow-y: auto;
  padding: 12px;
  text-align: left;
  font-size: 13px;
  margin-bottom: 10px;
}

.chatbox::-webkit-scrollbar { width: 6px; }
.chatbox::-webkit-scrollbar-track { background: transparent; }
.chatbox::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.chat-msg {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 85%;
  animation: msgSlide 0.3s ease;
}

@keyframes msgSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.mascot {
  background: rgba(125,211,252,0.1);
  border-left: 3px solid var(--ice-blue);
  font-size: 13px;
}

.chat-msg.user {
  background: rgba(251,191,36,0.1);
  border-right: 3px solid var(--gold);
  margin-left: auto;
  text-align: right;
  font-size: 13px;
}

.chat-msg .sender {
  font-size: 10px;
  color: var(--text-mute);
  display: block;
  margin-bottom: 2px;
}

.chat-form {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.chat-form input {
  flex: 1;
  background: rgba(125,211,252,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s;
}

.chat-form input:focus {
  border-color: var(--ice-blue);
  box-shadow: 0 0 10px rgba(125,211,252,0.2);
}

.chat-form input::placeholder { color: var(--text-mute); }

/* ===== SECTIONS ===== */
.section {
  padding: 60px 0;
  position: relative;
}

.section:nth-child(even) {
  background: rgba(17,24,39,0.3);
}

.section-header {
  margin-bottom: 30px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.section h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ice-blue);
  margin: 30px 0 15px;
}

.lead {
  color: var(--text-dim);
  font-size: 15px;
}

/* ===== DASHBOARD STATS ===== */
.dash {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.stat {
  background: linear-gradient(145deg, rgba(17,24,39,0.9), rgba(10,14,26,0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-ice);
}

.stat::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--ice-blue), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}

.stat:hover::after { opacity: 1; }

.stat-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

.stat b {
  font-size: 28px;
  font-weight: 800;
  display: block;
  font-variant-numeric: tabular-nums;
}

.stat-gold b { color: var(--gold); text-shadow: 0 0 20px rgba(251,191,36,0.3); }
.stat-blue b { color: var(--ice-blue); text-shadow: 0 0 20px rgba(125,211,252,0.3); }
.stat-purple b { color: var(--purple-light); text-shadow: 0 0 20px rgba(167,139,250,0.3); }
.stat-green b { color: var(--green); }

.stat-sub {
  font-size: 12px;
  color: var(--text-mute);
  display: block;
  margin-top: 4px;
}

.kpi-track {
  height: 8px;
  background: rgba(52,211,153,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

#kpiBar {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--ice-blue));
  border-radius: 4px;
  transition: width 0.8s ease;
  width: 0%;
  box-shadow: 0 0 10px rgba(52,211,153,0.5);
}

/* ===== CHART ===== */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 180px;
  padding: 20px;
  background: rgba(10,14,26,0.5);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--ice-blue), var(--ice-dark));
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: all 0.3s;
  min-width: 20px;
  cursor: pointer;
}

.chart-bar:hover {
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  box-shadow: 0 0 15px rgba(251,191,36,0.5);
}

.chart-bar .bar-value {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.chart-bar:hover .bar-value { opacity: 1; }

.chart-bar .bar-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-mute);
  white-space: nowrap;
}

/* ===== REALM ROADMAP ===== */
.realm-roadmap {
  background: rgba(10,14,26,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 30px;
}

.realm-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 20px;
}

.realm-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--border-gold), var(--border));
}

.realm-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.realm-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 8px;
  transition: all 0.3s;
}

.realm-step.active .realm-dot {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(251,191,36,0.5);
  animation: pulse 2s infinite;
}

.realm-step.completed .realm-dot {
  background: linear-gradient(135deg, var(--ice-dark), var(--ice-blue));
  border-color: var(--ice-blue);
}

.realm-step-name {
  font-size: 11px;
  color: var(--text-mute);
  text-align: center;
}

.realm-step.active .realm-step-name {
  color: var(--gold);
  font-weight: 600;
}

.realm-step.completed .realm-step-name {
  color: var(--ice-blue);
}

/* ===== TABLE ===== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead {
  background: rgba(125,211,252,0.08);
}

th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--ice-blue);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

tbody tr {
  transition: background 0.2s;
}

tbody tr:hover {
  background: rgba(125,211,252,0.05);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-success {
  background: rgba(52,211,153,0.15);
  color: var(--green);
  border: 1px solid rgba(52,211,153,0.3);
}

.status-pending {
  background: rgba(251,191,36,0.15);
  color: var(--gold);
  border: 1px solid rgba(251,191,36,0.3);
}

.status-failed {
  background: rgba(248,113,113,0.15);
  color: var(--red);
  border: 1px solid rgba(248,113,113,0.3);
}

/* ===== DIARY ===== */
.diary-list {
  list-style: none;
}

.diary-list li {
  background: rgba(17,24,39,0.6);
  border-left: 3px solid var(--ice-blue);
  padding: 14px 18px;
  margin-bottom: 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  transition: all 0.3s;
}

.diary-list li:hover {
  border-left-color: var(--gold);
  background: rgba(17,24,39,0.9);
  transform: translateX(5px);
}

.diary-date {
  color: var(--ice-blue);
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

/* ===== PRODUCT & SERVICE GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: linear-gradient(145deg, rgba(17,24,39,0.9), rgba(10,14,26,0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(125,211,252,0.05), transparent);
  transition: left 0.5s;
}

.card:hover::before { left: 100%; }

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.card-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}

.card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.card p {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.card-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 12px;
  text-shadow: 0 0 15px rgba(251,191,36,0.3);
}

.card-features {
  list-style: none;
  margin-bottom: 16px;
}

.card-features li {
  font-size: 12px;
  color: var(--text-dim);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.card-features li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--ice-blue);
}

.card .btn {
  width: 100%;
  justify-content: center;
}

.card-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a1000;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
  text-transform: uppercase;
}

/* ===== ORDER FORM ===== */
.order-form {
  background: rgba(17,24,39,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 600px;
}

.order-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
}

.order-form input,
.order-form textarea {
  width: 100%;
  margin-top: 6px;
  background: rgba(10,14,26,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
  font-family: var(--font-main);
  resize: vertical;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--ice-blue);
  box-shadow: 0 0 15px rgba(125,211,252,0.15);
}

.order-form input::placeholder,
.order-form textarea::placeholder {
  color: var(--text-mute);
}

.form-msg {
  margin-top: 12px;
  font-size: 13px;
  min-height: 20px;
}

.form-msg.success { color: var(--green); }
.form-msg.error { color: var(--red); }

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: rgba(17,24,39,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
  user-select: none;
}

.faq-q:hover { background: rgba(125,211,252,0.05); }

.faq-q .arrow {
  transition: transform 0.3s;
  color: var(--ice-blue);
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  padding: 0 20px;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 20px 16px;
}

.faq-a p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
  background: rgba(10,14,26,0.8);
}

/* ===== TOAST ===== */
#toastContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: linear-gradient(135deg, rgba(17,24,39,0.98), rgba(10,14,26,0.98));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: toastSlide 0.3s ease;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-icon {
  font-size: 20px;
}

.toast.gold { border-color: var(--border-gold); }
.toast.gold .toast-icon { color: var(--gold); }

.toast.ice { border-color: var(--border); }
.toast.ice .toast-icon { color: var(--ice-blue); }

@keyframes toastSlide {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.hide {
  animation: toastHide 0.3s ease forwards;
}

@keyframes toastHide {
  to { opacity: 0; transform: translateX(50px); }
}

/* ===== BREAKTHROUGH OVERLAY ===== */
#breakthroughOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10,14,26,0.95);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

#breakthroughOverlay.show {
  display: flex;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.breakthrough-content {
  padding: 40px;
}

.breakthrough-content h2 {
  font-family: var(--font-display);
  font-size: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  animation: breakthroughGlow 1s ease-in-out infinite alternate;
}

@keyframes breakthroughGlow {
  from { filter: drop-shadow(0 0 20px rgba(251,191,36,0.5)); }
  to { filter: drop-shadow(0 0 40px rgba(251,191,36,0.8)); }
}

.breakthrough-content p {
  color: var(--text-dim);
  font-size: 18px;
  margin-bottom: 30px;
}

.breakthrough-light {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(251,191,36,0.2), transparent 70%);
  border-radius: 50%;
  animation: breakthroughLight 2s ease-in-out infinite;
}

@keyframes breakthroughLight {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
  .realm-steps { flex-wrap: wrap; gap: 15px; }
  .realm-steps::before { display: none; }
  .topbar .container { flex-direction: column; }
  nav { justify-content: center; }
}

@media (max-width: 600px) {
  h1 { font-size: 26px; }
  .dash { grid-template-columns: 1fr; }
  .mascot-stats { flex-direction: column; gap: 10px; }
  .chart { height: 140px; padding: 10px; }
}

/* ===== BỔ SUNG KHỚP APP.JS (không đổi thiết kế gốc) ===== */
/* Tránh bong bóng chat .chat-msg.mascot bị ăn animation bay của emoji .mascot */
.chat-msg.mascot { animation: none; filter: none; }
/* Thẻ sản phẩm/dịch vụ do app.js render dùng .card h4 + .card-price đã có trong CSS gốc */
.card .card-price s { font-size: 14px; color: var(--text-mute); font-weight: 400; }
