:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0d1b2d;
  --panel-2: #12243a;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6fbff;
  --muted: #a9bdd1;
  --blue: #00a2ff;
  --blue-2: #0877ff;
  --green: #23f28d;
  --purple: #8758ff;
  --pink: #ff4fd8;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 4%, rgba(0, 162, 255, 0.28), transparent 30rem),
    radial-gradient(circle at 94% 10%, rgba(135, 88, 255, 0.2), transparent 25rem),
    radial-gradient(circle at 72% 84%, rgba(35, 242, 141, 0.12), transparent 24rem),
    linear-gradient(145deg, #07111f 0%, #0b1424 54%, #050913 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  width: min(100%, 680px);
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 14px 14px 20px;
}

.topbar,
.section-title-row,
.panel-heading,
.scanner-top,
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar {
  min-height: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  position: relative;
  transform: rotate(8deg);
  background: linear-gradient(135deg, #ffffff, #d8e3ef);
  box-shadow: 0 0 0 6px rgba(0, 162, 255, 0.1), 0 12px 24px rgba(0, 0, 0, 0.3);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: #101827;
}

.pulse-chip,
.stock-pill,
.live-dot,
.message-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #dff4ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  backdrop-filter: blur(14px);
}

.pulse-chip span,
.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(35, 242, 141, 0.85);
}

.hero-grid {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 8px;
  color: #7fd7ff;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 12px;
  font-size: clamp(37px, 12vw, 64px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  max-width: 34rem;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
}

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

.primary-action,
.secondary-action,
.reveal-btn,
.input-row button,
.chat-form button,
.chat-modal-card button {
  border: 0;
  border-radius: 16px;
  min-height: 48px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 16px 32px rgba(0, 162, 255, 0.28);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
}

.secondary-action {
  color: #cdefff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  box-shadow: none;
}

.gift-stage {
  position: relative;
  min-height: 252px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 162, 255, 0.34), transparent 31%),
    radial-gradient(circle at 82% 22%, rgba(135, 88, 255, 0.24), transparent 30%),
    radial-gradient(circle at 64% 92%, rgba(35, 242, 141, 0.12), transparent 32%),
    linear-gradient(145deg, #122640, #0a1527 58%, #050b16);
  border: 1px solid rgba(127, 215, 255, 0.22);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.gift-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.42;
}

.hero-card-stack {
  position: absolute;
  left: 15px;
  right: 114px;
  bottom: 22px;
  height: 166px;
  filter: drop-shadow(0 24px 22px rgba(0, 0, 0, 0.34));
}

.hero-gift-card {
  position: absolute;
  width: 166px;
  height: 132px;
  padding: 13px;
  overflow: hidden;
  border-radius: 18px;
  color: #ffffff;
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.18), transparent 30%),
    radial-gradient(circle at 84% 22%, rgba(0, 162, 255, 0.25), transparent 34%),
    linear-gradient(145deg, #080b10, #151d2b 60%, #05070b);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.hero-gift-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(255, 255, 255, 0.08) 38% 43%, transparent 43% 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 9px, transparent 9px 33px);
  opacity: 0.32;
}

.hero-gift-card span,
.hero-gift-card b,
.hero-gift-card i,
.hero-gift-card em {
  position: relative;
  z-index: 1;
}

.hero-gift-card span {
  position: absolute;
  top: 11px;
  right: 12px;
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-gift-card b {
  display: block;
  margin-top: 36px;
  max-width: 112px;
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.hero-gift-card i {
  position: absolute;
  right: 13px;
  bottom: 36px;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  transform: rotate(9deg);
  background: linear-gradient(135deg, #ffffff, #cbd9e8);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.36);
}

.hero-gift-card i::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 2px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: #050913;
}

.hero-gift-card em {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: #dff4ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.card-back {
  left: 0;
  bottom: 0;
  transform: rotate(-13deg);
  opacity: 0.78;
}

.card-mid {
  left: 54px;
  bottom: 18px;
  transform: rotate(-2deg);
  opacity: 0.9;
}

.card-front {
  left: 112px;
  bottom: 0;
  transform: rotate(9deg);
}

.hero-avatar {
  position: absolute;
  z-index: 3;
  right: -6px;
  bottom: -20px;
  width: min(42%, 178px);
  filter: drop-shadow(0 24px 22px rgba(0, 0, 0, 0.38));
  animation: floaty 5.2s ease-in-out infinite;
}

.gift-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.5;
}

.orbit-one {
  width: 210px;
  height: 210px;
  right: -74px;
  top: -74px;
}

.orbit-two {
  width: 146px;
  height: 146px;
  left: -54px;
  bottom: -50px;
}

.claim-panel,
.activity-section,
.community-section,
.seo-section {
  margin: 14px;
  padding: 16px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(13, 27, 45, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stock-pill {
  color: #ebfff5;
  background: rgba(35, 242, 141, 0.1);
  border-color: rgba(35, 242, 141, 0.28);
}

.card-showcase {
  position: relative;
  height: 210px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 79, 216, 0.22), transparent 29%),
    radial-gradient(circle at 18% 80%, rgba(0, 162, 255, 0.2), transparent 30%),
    linear-gradient(145deg, #10223a, #071321);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
}

.generated-card {
  position: relative;
  isolation: isolate;
  width: min(86%, 286px);
  min-height: 166px;
  overflow: hidden;
  border-radius: 24px;
  padding: 17px;
  color: #ffffff;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.2), transparent 34%),
    radial-gradient(circle at 78% 12%, rgba(0, 162, 255, 0.28), transparent 36%),
    linear-gradient(145deg, #080b10, #131b27 58%, #05070b);
  box-shadow: 0 28px 38px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: rotate(-2deg);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.generated-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border-radius: 20px;
  background: url("../assets/roblox-gift-card-trio.png") center / cover no-repeat;
  opacity: 0.2;
  mix-blend-mode: screen;
}

.generated-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent 56%, rgba(0, 0, 0, 0.72));
}

.generated-card[data-amount="10"] {
  filter: hue-rotate(-10deg);
}

.generated-card[data-amount="25"] {
  filter: hue-rotate(12deg) saturate(1.04);
}

.generated-card[data-amount="50"] {
  filter: hue-rotate(55deg) saturate(1.08);
}

.generated-card[data-amount="100"] {
  filter: hue-rotate(96deg) saturate(1.12);
}

.card-topline,
.card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-topline span {
  max-width: 72px;
  color: #eaf6ff;
  font-size: 10px;
  line-height: 1.12;
  font-weight: 950;
  text-transform: uppercase;
}

.card-topline strong {
  font-size: 33px;
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.card-logo {
  margin-top: 18px;
  max-width: 168px;
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-shadow: 0 14px 24px rgba(0, 0, 0, 0.42);
}

.card-tilt-logo {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  right: 18px;
  bottom: 46px;
  transform: rotate(10deg);
  background: linear-gradient(135deg, #ffffff, #c9d4e1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.card-tilt-logo::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: #060a10;
}

.card-footer {
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 15px;
  align-items: flex-end;
}

.card-footer span {
  font-size: 15px;
  font-weight: 950;
}

.card-footer b {
  color: #a8ffce;
  font-size: 11px;
  font-weight: 950;
  text-align: right;
}

.shine {
  position: absolute;
  inset: -40% auto auto -40%;
  width: 50%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: rotate(22deg);
  animation: shine 4s ease-in-out infinite;
}

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

.amount-card {
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: #d8edff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  font-size: 19px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.amount-card.is-selected {
  color: #ffffff;
  border-color: rgba(0, 162, 255, 0.65);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.28), transparent 48%),
    linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 16px 34px rgba(0, 162, 255, 0.25);
  transform: translateY(-2px);
}

.claim-form {
  margin-top: 16px;
}

.claim-form label {
  display: block;
  margin-bottom: 8px;
  color: #d8edff;
  font-size: 13px;
  font-weight: 950;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.input-row input {
  min-width: 0;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 17px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(4, 11, 21, 0.64);
  outline: none;
  font-weight: 850;
}

.input-row input:focus {
  border-color: rgba(0, 162, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 162, 255, 0.12);
}

.hint,
.result-card p,
.seo-section p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.scanner {
  margin-top: 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(4, 11, 21, 0.58);
  border: 1px solid var(--line);
}

.scanner-top span,
.scanner-top b {
  font-size: 13px;
  font-weight: 950;
}

.progress-track {
  height: 11px;
  margin: 12px 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

#progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--purple));
  transition: width 0.35s ease;
}

.scan-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.scan-step {
  min-height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #8ea6bc;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 950;
}

.scan-step.is-ready {
  color: #07111f;
  background: linear-gradient(135deg, var(--green), #a6ffcf);
}

.result-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(35, 242, 141, 0.18), transparent 28%),
    linear-gradient(145deg, #12243a, #081321);
  border: 1px solid rgba(35, 242, 141, 0.24);
  animation: pinCardPulse 3.6s ease-in-out infinite;
}

.pin-modal {
  position: fixed;
  z-index: 35;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 8, 16, 0.78);
  backdrop-filter: blur(16px);
}

.pin-modal[hidden] {
  display: none;
}

.pin-modal .result-card {
  width: min(100%, 460px);
  margin: 0;
  position: relative;
  padding: 62px 16px 16px;
  transform-origin: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(35, 242, 141, 0.12);
}

.pin-modal .result-header {
  margin-top: 14px;
}

.hold-note {
  margin: 14px 0 10px;
  color: #b9cde0;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 900;
}

.unlock-timer {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 18px;
  text-align: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(35, 242, 141, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(0, 162, 255, 0.13), rgba(8, 18, 31, 0.9));
  border: 2px solid rgba(35, 242, 141, 0.62);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22), 0 0 24px rgba(35, 242, 141, 0.12);
}

.unlock-timer span {
  display: block;
  color: #cfeeff;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.unlock-timer strong {
  display: block;
  margin-top: 7px;
  color: #23f28d;
  font-size: clamp(34px, 10vw, 48px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-shadow: 0 0 18px rgba(35, 242, 141, 0.28);
}

.modal-card-header {
  position: relative;
  min-height: 104px;
  padding: 16px 70px 16px 17px;
  overflow: hidden;
  border-radius: 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 20%, rgba(0, 162, 255, 0.32), transparent 32%),
    radial-gradient(circle at 20% 86%, rgba(35, 242, 141, 0.12), transparent 30%),
    linear-gradient(145deg, #080b10, #162236 64%, #05080e);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 32px rgba(0, 0, 0, 0.26);
}

.modal-card-header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background:
    linear-gradient(135deg, transparent 0 36%, rgba(255, 255, 255, 0.08) 36% 42%, transparent 42% 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 9px, transparent 9px 34px);
}

.modal-card-header > div,
.modal-card-header i {
  position: relative;
  z-index: 1;
}

.modal-card-header span {
  display: block;
  color: #cfeeff;
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-card-header strong {
  display: block;
  margin-top: 8px;
  line-height: 1;
  white-space: nowrap;
  font-size: clamp(42px, 13vw, 58px);
  font-weight: 950;
  letter-spacing: -0.06em;
}

.modal-card-header i {
  position: absolute;
  right: 18px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  transform: rotate(9deg);
  background: linear-gradient(135deg, #ffffff, #c9d4e1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.36);
}

.modal-card-header i::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: #080d15;
}

.modal-close {
  position: absolute;
  z-index: 8;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
}

.result-header > span {
  color: #dff4ff;
  font-size: 13px;
  font-weight: 950;
}

.result-header > strong {
  font-size: 22px;
  font-weight: 950;
}

.pin-box {
  position: relative;
  overflow: hidden;
  margin: 12px 0;
  padding: 16px 14px;
  border-radius: 18px;
  color: #06111c;
  background: linear-gradient(180deg, #f4f9ff, #dceeff);
  font-size: clamp(16px, 5.4vw, 24px);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-align: center;
  overflow-wrap: anywhere;
}

.pin-box::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -40%;
  width: 42%;
  height: 190%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
  transform: rotate(22deg);
  animation: pinShine 2.8s ease-in-out infinite;
  pointer-events: none;
}

.reveal-btn {
  width: 100%;
}

.section-title-row {
  margin-bottom: 12px;
}

.activity-list {
  display: grid;
  gap: 9px;
  min-height: 165px;
}

.activity-item,
.chat-message {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(4, 11, 21, 0.45);
}

.activity-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.flag {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 20px;
  font-weight: 950;
}

.activity-name {
  min-width: 0;
  color: #f4fbff;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.activity-amount {
  color: #07111f;
  background: linear-gradient(135deg, var(--green), #b8ffd8);
  border-radius: 12px;
  padding: 8px 9px;
  font-size: 13px;
  font-weight: 950;
}

.chat-box {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 392px;
  overflow: hidden;
  justify-content: flex-end;
}

.chat-message {
  animation: slideIn 0.28s ease both;
}

.chat-message strong {
  color: #f4fbff;
  font-size: 13px;
  line-height: 1.2;
}

.chat-message span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
  font-weight: 750;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.chat-form input,
.chat-modal-card input {
  min-width: 0;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(4, 11, 21, 0.66);
  outline: none;
  font-weight: 850;
}

.chat-form input:focus,
.chat-modal-card input:focus {
  border-color: rgba(0, 162, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 162, 255, 0.12);
}

.chat-modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 8, 16, 0.72);
  backdrop-filter: blur(14px);
}

.chat-modal[hidden] {
  display: none;
}

.chat-modal-card {
  width: min(100%, 380px);
  padding: 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 162, 255, 0.22), transparent 34%),
    linear-gradient(145deg, #12243a, #071321);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.chat-modal-card h2 {
  margin-bottom: 14px;
}

.chat-modal-card button {
  width: 100%;
  margin-top: 10px;
}

.seo-section {
  margin-bottom: 28px;
}

.seo-section h2 {
  margin-bottom: 12px;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 14px;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  padding: 14px 16px;
  border-radius: 18px;
  color: #06111c;
  background: linear-gradient(135deg, #ffffff, #dff3ff);
  box-shadow: var(--shadow);
  font-weight: 950;
  text-align: center;
}

@media (min-width: 720px) {
  .page-shell {
    width: min(100%, 1120px);
  }

  .hero {
    padding: 24px 24px 18px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
    align-items: center;
    min-height: 560px;
    gap: 28px;
  }

  h1 {
    font-size: 76px;
  }

  .gift-stage {
    min-height: 430px;
  }

  .hero-card-stack {
    left: 34px;
    right: 220px;
    bottom: 56px;
    height: 246px;
  }

  .hero-gift-card {
    width: 244px;
    height: 190px;
    border-radius: 25px;
    padding: 18px;
  }

  .hero-gift-card span {
    font-size: 34px;
    top: 17px;
    right: 18px;
  }

  .hero-gift-card b {
    margin-top: 58px;
    max-width: 160px;
    font-size: 34px;
  }

  .hero-gift-card i {
    width: 50px;
    height: 50px;
    right: 18px;
    bottom: 52px;
  }

  .hero-gift-card i::after {
    width: 18px;
    height: 18px;
  }

  .hero-gift-card em {
    left: 20px;
    bottom: 18px;
    font-size: 14px;
  }

  .card-mid {
    left: 88px;
    bottom: 26px;
  }

  .card-front {
    left: 184px;
  }

  .hero-avatar {
    width: min(38%, 260px);
    right: 10px;
    bottom: -28px;
  }

  main {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 0.92fr);
    align-items: start;
    gap: 18px;
    padding: 0 10px 26px;
  }

  .claim-panel {
    grid-column: 1;
    grid-row: 2;
  }

  .activity-section {
    grid-column: 1;
    grid-row: 1;
  }

  .community-section {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .seo-section {
    grid-column: 1 / -1;
  }

  .card-showcase {
    height: 250px;
  }

  .generated-card {
    width: min(78%, 340px);
    min-height: 198px;
  }

  .card-logo {
    max-width: 214px;
    font-size: 44px;
  }

  .card-topline strong {
    font-size: 40px;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-40%) rotate(22deg);
    opacity: 0;
  }
  38% {
    opacity: 0;
  }
  55% {
    opacity: 1;
  }
  100% {
    transform: translateX(380%) rotate(22deg);
    opacity: 0;
  }
}

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

@keyframes pinCardPulse {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    box-shadow: none;
  }
  8% {
    transform: translate3d(-1px, 0, 0) rotate(-0.12deg);
  }
  16% {
    transform: translate3d(1px, 0, 0) rotate(0.12deg);
  }
  24% {
    transform: translate3d(-0.5px, 0, 0);
  }
  32% {
    transform: translate3d(0, 0, 0);
    box-shadow: 0 0 0 1px rgba(35, 242, 141, 0.14), 0 18px 44px rgba(35, 242, 141, 0.08);
  }
}

@keyframes pinShine {
  0% {
    transform: translateX(-30%) rotate(22deg);
    opacity: 0;
  }
  34% {
    opacity: 0;
  }
  52% {
    opacity: 0.85;
  }
  100% {
    transform: translateX(430%) rotate(22deg);
    opacity: 0;
  }
}
