@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --bg:           #07070f;
  --surface:      #0e0e1c;
  --border:       rgba(139, 92, 246, 0.2);
  --accent:       #8b5cf6;
  --accent-glow:  rgba(139, 92, 246, 0.3);
  --text:         #ede9fe;
  --muted:        #6b7280;
  --green:        #22c55e;
  --orange:       #f97316;
}

html, body {
  height: 100%;
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

@media (max-width: 600px) {
  html, body { overflow: auto; height: auto; }
}

/* ── Navbar ───────────────────────────────────── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 60px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .navbar { padding: 0 20px; height: 52px; }
}

.navbar-brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.brand-by {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.btn-nav {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}

.btn-nav:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ── Landing main ─────────────────────────────── */
.main {
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 40px 24px;
}

@media (max-width: 600px) {
  .main {
    height: auto;
    min-height: calc(100vh - 52px);
    padding: 32px 24px 40px;
    gap: 22px;
  }
}

/* ── Hero image ───────────────────────────────── */
.hero-img {
  max-height: 28vh;
  width: auto;
  max-width: min(620px, 100%);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 0 32px var(--accent-glow);
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .hero-img { max-height: none; width: 100%; }
}

/* ── Game status ──────────────────────────────── */
.game-status {
  display: flex;
  gap: 28px;
  align-items: center;
}

.game-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.green  { background: var(--green);  box-shadow: 0 0 7px var(--green); }
.dot.orange { background: var(--orange); box-shadow: 0 0 7px var(--orange); }

/* ── Features list ────────────────────────────── */
.features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: center;
}

.feature {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}

.feature::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--accent);
}

/* ── Buy button ───────────────────────────────── */
.btn-buy {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px 52px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 28px var(--accent-glow);
  transition: box-shadow 0.2s, transform 0.15s;
  font-family: 'Inter', sans-serif;
  margin-top: 14px;
}

@media (max-width: 600px) {
  .btn-buy { width: 100%; text-align: center; padding: 14px; margin-top: 8px; }
}

.btn-buy:hover {
  box-shadow: 0 0 44px rgba(124, 58, 237, 0.6);
  transform: translateY(-1px);
}

/* ── Modal ────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px 28px;
  width: 380px;
  max-width: 92vw;
  box-shadow: 0 0 48px rgba(0, 0, 0, 0.55);
  position: relative;
}

.modal h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}

.modal-close:hover { color: var(--text); }

.modal-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.modal-input:focus { border-color: var(--accent); }
.modal-input::placeholder { color: var(--muted); }

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s;
  letter-spacing: 0.03em;
}

.btn-submit:hover    { opacity: 0.9; }
.btn-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.modal-msg {
  font-size: 12px;
  margin-top: 10px;
  min-height: 16px;
}

.modal-msg.success { color: var(--green); }
.modal-msg.error   { color: #f87171; }

.modal-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  margin-top: -10px;
}

.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-cancel {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 11px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, color 0.2s;
}

.btn-cancel:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

/* ── Dashboard ────────────────────────────────── */
.dash-main {
  height: calc(100vh - 60px);
  padding: 32px 40px;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .dash-main { height: auto; padding: 24px 20px; }
  .cards-grid { grid-template-columns: 1fr; }
}

.dash-heading {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card:hover {
  border-color: rgba(124, 58, 237, 0.45);
}

.card-product {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.card-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-value {
  font-size: 11px;
  color: var(--text);
  font-family: 'Courier New', monospace;
  word-break: break-all;
  line-height: 1.5;
}

.btn-copy {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, color 0.2s;
  align-self: flex-start;
  margin-top: 2px;
}

.btn-copy:hover          { border-color: var(--accent); color: var(--text); }
.btn-copy.copied         { border-color: var(--green);  color: var(--green); }

.dash-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--muted);
  font-size: 13px;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.dash-state a {
  color: var(--accent);
  text-decoration: none;
}

.dash-state a:hover { text-decoration: underline; }
