:root {
  --bg: #1b2838;
  --bg-deep: #0e1319;
  --panel: #32404e;
  --text: #c7d5e0;
  --muted: #8f98a0;
  --blue: #66c0f4;
  --btn-a: #75b022;
  --btn-b: #588a1b;
  --error: #ff6f6f;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font: 14px/1.5 "Motiva Sans", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: #fff; }

/* Top bar */
.topbar { background: var(--bg-deep); border-bottom: 1px solid #000; }
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px 10px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; letter-spacing: 2px; font-size: 16px; }
.logo .reg { font-size: 9px; letter-spacing: 0; }
.topnav { display: flex; gap: 20px; font-size: 14px; flex: 1; }
.topnav a { color: #b8c4cf; }
.topnav a.active { color: #fff; border-bottom: 2px solid var(--blue); padding-bottom: 4px; }
.topbar-right { display: flex; align-items: center; gap: 16px; font-size: 12px; color: #9aa7b0; }
.install-btn {
  background: linear-gradient(to bottom, #75b022, #588a1b);
  color: #d2efa9;
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
}
.install-btn:hover { color: #fff; }

.subnav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px 14px;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  flex-wrap: wrap;
}
.subnav a { color: #8ea0b3; }
.search { margin-left: auto; display: flex; }
.search input {
  background: #32353c;
  border: none;
  color: #fff;
  padding: 7px 10px;
  width: 220px;
  border-radius: 2px 0 0 2px;
  font-size: 13px;
}
.search button {
  background: #1a9fff;
  border: none;
  padding: 0 12px;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(14,19,25,.55), rgba(14,19,25,.75)),
    repeating-linear-gradient(100deg, #2a3240, #2a3240 60px, #232b36 60px, #232b36 120px);
  padding: 50px 20px 70px;
}
.hero-content { max-width: 1200px; margin: 0 auto; }
.page-title { margin: 0 0 22px; font-size: 28px; font-weight: 400; color: #fff; }

.panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 560px;
  background: rgba(23, 26, 33, 0.92);
  border-radius: 3px;
  box-shadow: 0 2px 14px rgba(0,0,0,.5);
  overflow: hidden;
}
.col { padding: 26px 28px 28px; }
.col-qr {
  border-left: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.col h2 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Fields */
.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.field input {
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 2px;
  background: #32353c;
  color: #fff;
  font-size: 14px;
  outline: 2px solid transparent;
  transition: outline-color .15s, background .15s;
}
.field input:focus { outline-color: var(--blue); background: #3a3e46; }
.field input.invalid { outline-color: var(--error); }

.pw-wrap { position: relative; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  padding: 4px 6px;
}
.pw-toggle:hover { color: var(--blue); }

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 16px;
  cursor: pointer;
}
.remember input { accent-color: var(--blue); width: 15px; height: 15px; }

.form-error { margin: 0 0 14px; color: var(--error); font-size: 13px; }

.btn-primary {
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 2px;
  background: linear-gradient(to bottom, #4dc1f9, #1a6fc4);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary:hover { background: linear-gradient(to bottom, #6ad0ff, #2a85dd); }
.btn-primary:disabled { opacity: .6; cursor: default; }

.help { margin: 14px 0 0; font-size: 12px; text-align: center; }
.help a { text-decoration: underline; color: var(--text); }

.success { text-align: center; padding: 20px 0; }
.success h3 { margin: 14px 0 6px; color: #fff; font-size: 16px; font-weight: 700; }
.success p { margin: 0; color: var(--muted); font-size: 13px; }

/* QR */
.qr-box { display: inline-block; padding: 8px; background: #fff; border-radius: 3px; line-height: 0; }
#qr { display: block; width: 160px; height: 160px; }
.qr-copy { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.qr-copy strong { color: var(--text); }
.qr-copy a { text-decoration: underline; }
.qr-timer { display: block; margin-top: 8px; font-size: 11px; }
.qr-timer b { color: var(--blue); }

/* New to Steam band */
.newhere-band { background: #16202c; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.newhere-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.newhere-inner h3 { margin: 0 0 12px; color: #fff; font-size: 18px; }
.btn-create {
  display: inline-block;
  background: linear-gradient(to bottom, #4dc1f9, #1a6fc4);
  color: #fff;
  padding: 9px 16px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 13px;
}
.btn-create:hover { background: linear-gradient(to bottom, #6ad0ff, #2a85dd); color: #fff; }
.newhere-inner p { margin: 0; color: var(--muted); font-size: 13px; max-width: 460px; }
.newhere-inner p a { text-decoration: underline; }

/* Footer */
.footer { background: var(--bg-deep); padding: 40px 20px 30px; flex: 1; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer-logos { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-steam { color: #fff; font-weight: 700; letter-spacing: 2px; font-size: 15px; }
.footer-valve {
  border: 1px solid #556;
  color: #9aa7b0;
  font-size: 10px;
  padding: 2px 6px;
  letter-spacing: 2px;
}
.footer-brand p { color: #556772; font-size: 12px; max-width: 280px; margin: 0 0 14px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: #8ea0b3; font-size: 14px; }
.footer-col h4 { color: #8ea0b3; font-size: 12px; letter-spacing: .5px; margin: 0 0 12px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #6b8296; font-size: 13px; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn .3s ease-out;
}
.modal-overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: linear-gradient(135deg, #3b4b5a, #2e3d4b);
  border: 1px solid rgba(102,192,244,.3);
  border-radius: 6px;
  box-shadow: 0 0 40px rgba(0,0,0,.7);
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: slideUp .3s ease-out;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-body { padding: 0 32px; }
.modal-body h2 { margin: 0 0 14px; font-size: 22px; color: #fff; font-weight: 700; }
.gift-amount { margin: 0 0 8px; font-size: 28px; font-weight: 700; color: #75b022; }
.gift-desc { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.modal-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn-claim {
  padding: 11px 16px;
  border: none;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--btn-a) 5%, var(--btn-b) 95%);
  color: #d2efa9;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn-claim:hover { background: linear-gradient(to bottom, #8ed629 5%, #6aa81f 95%); color: #fff; }
.btn-skip {
  padding: 9px 16px;
  border: 1px solid #4d5f6f;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.btn-skip:hover { color: var(--text); border-color: #66c0f4; }

@media (max-width: 760px) {
  .panel { grid-template-columns: 1fr; max-width: 100%; }
  .col-qr { border-left: none; border-top: 1px solid rgba(255,255,255,.08); }
  .topbar-right { display: none; }
  .subnav { display: none; }
  .hero { padding: 28px 16px 40px; }
  .page-title { font-size: 22px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .newhere-inner { gap: 20px; }
  .modal { width: 90%; max-width: 320px; height: auto; padding: 28px 0; }
}
