:root {
  --bg-deep: #0a0f1c;
  --bg-deep-2: #121a2e;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.12);
  --gold: #e0ac54;
  --gold-soft: #f3cf8f;
  --teal: #35d0c0;
  --text: #f5f1ea;
  --text-dim: #b7bdc9;
  --text-dimmer: #8790a3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 15, 28, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
}
.brand span { color: var(--gold); }
.brand-icon {
  display: inline-flex;
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-ghost {
  color: var(--text);
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #241605;
  box-shadow: 0 8px 20px -8px rgba(224, 172, 84, 0.6);
}
.btn-primary:hover { box-shadow: 0 10px 26px -8px rgba(224, 172, 84, 0.75); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 88px;
  background: radial-gradient(120% 100% at 50% -10%, var(--bg-deep-2), var(--bg-deep) 60%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}
.hero-glow-a {
  width: 420px; height: 420px;
  background: var(--gold);
  top: -120px; right: -80px;
}
.hero-glow-b {
  width: 380px; height: 380px;
  background: var(--teal);
  bottom: -140px; left: -100px;
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 25px); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 420px; gap: 56px; }
}

.eyebrow {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.lede {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 24px;
}
.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--teal);
}

/* ===== Chat panel ===== */
.chat-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  height: 560px;
  max-height: 72vh;
  overflow: hidden;
}
.chat-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  color: #0a0f1c;
  flex-shrink: 0;
}
.chat-title { font-weight: 700; font-size: 0.95rem; }
.chat-status { font-size: 0.78rem; color: var(--text-dimmer); display: flex; align-items: center; gap: 6px; }
.chat-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #38e08a;
  box-shadow: 0 0 8px #38e08a;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.bubble {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  animation: bubbleIn 0.28s ease both;
  white-space: pre-line;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.bubble-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
}
.bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #241605;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}
.bubble code {
  background: rgba(0,0,0,0.35);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
}
.bubble-bot code { color: var(--gold-soft); }

.voucher-card {
  align-self: flex-start;
  max-width: 92%;
  background: linear-gradient(160deg, rgba(53,208,192,0.14), rgba(224,172,84,0.1));
  border: 1px solid rgba(53,208,192,0.35);
  border-radius: 14px;
  padding: 14px 16px;
  animation: bubbleIn 0.3s ease both;
}
.voucher-card .vc-row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.86rem; padding: 4px 0; color: var(--text-dim); }
.voucher-card .vc-row strong { color: var(--text); }
.voucher-code-box {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
  padding: 10px 12px;
}
.voucher-code-box code { font-size: 1.15rem; letter-spacing: 0.04em; flex: 1; }
.copy-btn {
  border: none; background: rgba(255,255,255,0.12); color: var(--text);
  border-radius: 8px; padding: 6px 10px; font-size: 0.78rem; cursor: pointer;
  font-weight: 600;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); }

.typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-dimmer);
  animation: typingBounce 1.1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-quickreplies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 16px;
}
.qr-btn {
  border: 1px solid rgba(224, 172, 84, 0.45);
  background: rgba(224, 172, 84, 0.08);
  color: var(--gold-soft);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  text-align: left;
}
.qr-btn:hover { background: rgba(224, 172, 84, 0.18); transform: translateY(-1px); }
.qr-btn small { display: block; color: var(--text-dimmer); font-weight: 500; font-size: 0.75rem; }
.qr-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-input-row[hidden] { display: none; }
.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.chat-input-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
}
.chat-input-row input:focus { border-color: var(--teal); }
.chat-input-row input::placeholder { color: var(--text-dimmer); }

/* ===== How it works ===== */
.how-it-works { padding: 72px 0; background: var(--bg-deep-2); }
.how-it-works h2, .plans-section h2, .locations-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 8px;
  text-align: center;
}
.section-sub { text-align: center; color: var(--text-dim); margin: 0 0 36px; }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  color: #0a0f1c;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* ===== Plans ===== */
.plans-section { padding: 72px 0; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}
@media (min-width: 640px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }
.plan-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.plan-card:hover { transform: translateY(-3px); border-color: rgba(224,172,84,0.5); background: rgba(224,172,84,0.06); }
.plan-card .pc-name { font-weight: 700; font-size: 1.02rem; margin-bottom: 4px; }
.plan-card .pc-price { color: var(--gold-soft); font-weight: 800; font-size: 1.2rem; }
.plan-card .pc-meta { color: var(--text-dimmer); font-size: 0.8rem; margin-top: 6px; }
.loading-note { color: var(--text-dimmer); }

/* ===== Locations ===== */
.locations-section { padding: 0 0 80px; }
.location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}
@media (min-width: 640px) { .location-grid { grid-template-columns: repeat(3, 1fr); } }
.location-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.location-card:hover { transform: translateY(-3px); border-color: rgba(53,208,192,0.5); }
.location-card small { display: block; font-weight: 500; color: var(--text-dimmer); margin-top: 4px; font-size: 0.76rem; }

/* ===== Footer ===== */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--bg-deep-2);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.footer-inner p { margin: 4px 0 0; }
.footer-contact a { color: var(--gold-soft); text-decoration: none; font-weight: 700; }

/* ===== Admin dashboard ===== */
.admin-body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 32px 20px 60px;
}
.admin-wrap { max-width: 980px; margin: 0 auto; }
.admin-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.admin-header h1 { font-size: 1.4rem; margin: 0; }
.admin-header button { background: none; border: 1px solid var(--panel-border); color: var(--text-dim); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 0.82rem; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 800px) { .admin-grid { grid-template-columns: 1fr 1fr; } }
.admin-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 20px;
}
.admin-card h2 { margin: 0 0 14px; font-size: 1rem; color: var(--gold-soft); }
.admin-card table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-card th, .admin-card td { text-align: left; padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.admin-card th { color: var(--text-dimmer); font-weight: 600; }
.badge { padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge.low { background: rgba(255,120,90,0.18); color: #ff9b7f; }
.badge.ok { background: rgba(56,224,138,0.18); color: #6df0ab; }
.badge.warn { background: rgba(255,196,80,0.18); color: #ffcf6b; }
.admin-empty { color: var(--text-dimmer); font-size: 0.88rem; }
.admin-form { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.admin-form input, .admin-form textarea, .admin-form select {
  background: rgba(255,255,255,0.07); border: 1px solid var(--panel-border); border-radius: 8px;
  color: var(--text); padding: 8px 10px; font-size: 0.85rem;
}
.admin-form textarea { width: 100%; min-height: 70px; }
.stat-row { display: flex; gap: 22px; margin-bottom: 8px; }
.stat { }
.stat .num { font-size: 1.5rem; font-weight: 800; color: var(--gold-soft); }
.stat .label { font-size: 0.76rem; color: var(--text-dimmer); }
