:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-hover: #1e40af;
  --success: #16a34a;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(2, 6, 23, 0.07), 0 2px 6px rgba(2, 6, 23, 0.06);
}

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #e0e7ff33, transparent),
    radial-gradient(800px 400px at 90% 0%, #99f6e433, transparent), var(--bg);
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.container {
  width: min(960px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.title {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.2px;
}
.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.hint {
  color: var(--muted);
  margin: 12px 0 20px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.04s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-secondary {
  background: #f8fafc;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  background: #eef2f7;
}

.gift-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .gift-list {
    grid-template-columns: 1fr 1fr;
  }
}

.gift-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04);
  padding: 14px;
  transition:
    box-shadow 0.2s ease,
    transform 0.06s ease;
}
.gift-item:hover {
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.06);
  transform: translateY(-1px);
}
.gift-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.gift-item p {
  margin: 4px 0;
  font-size: 14px;
  color: var(--text);
}

.code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.code-badge {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    'Courier New', monospace;
  font-weight: 600;
  background: #eef2ff;
  color: #1e40af;
  padding: 6px 10px;
  border-radius: 8px;
  user-select: all;
}
.copy-btn {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f8fafc;
  cursor: pointer;
}
.copy-btn:hover {
  background: #eef2f7;
}
.copy-btn.copied {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: var(--success);
}

.hidden {
  display: none;
}
