:root {
  --bg: #fdf6ec;
  --bg-card: #ffffff;
  --text: #2d2a26;
  --text-secondary: #6b6560;
  --accent: #e8913a;
  --accent-hover: #d17e2e;
  --border: #e8e0d6;
  --input-bg: #faf7f2;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

[data-theme="dark"] {
  --bg: #1a1714;
  --bg-card: #2a2520;
  --text: #f0ebe4;
  --text-secondary: #a39a90;
  --accent: #e8913a;
  --accent-hover: #f0a050;
  --border: #3d3630;
  --input-bg: #332e28;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.container {
  width: 100%;
  max-width: 440px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  border: 1px solid var(--border);
}

.profile {
  text-align: center;
  margin-bottom: 32px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  background: var(--input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar .default-icon {
  font-size: 40px;
  line-height: 1;
}

.profile h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.profile p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.presets {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.preset-btn {
  flex: 1;
  min-width: 60px;
  padding: 12px 8px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.preset-btn:hover {
  border-color: var(--accent);
  background: var(--bg-card);
}

.preset-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.custom-amount {
  margin-bottom: 24px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .currency {
  position: absolute;
  left: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-wrapper input {
  width: 100%;
  padding: 12px 14px 12px 28px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease;
}

.input-wrapper input:focus {
  border-color: var(--accent);
}

.input-wrapper input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.message-input {
  margin-bottom: 24px;
}

.message-input textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 15px;
  outline: none;
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.message-input textarea:focus {
  border-color: var(--accent);
}

.message-input textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.checkout-btn {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkout-btn:hover {
  background: var(--accent-hover);
}

.checkout-btn:active {
  transform: scale(0.98);
}

.checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkout-btn .bagel-icon {
  font-size: 20px;
}

.github-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.github-link:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

.powered-by {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.7;
}

.powered-by a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

.powered-by a:hover {
  color: var(--accent);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.socials a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.socials a:hover {
  color: var(--accent);
}

.chain-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--input-bg);
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 8px;
  border: 1px solid var(--border);
}

.non-custodial-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
  opacity: 0.8;
}

.status-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  text-align: center;
}

.status-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
}

.status-icon.pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.92); }
}

.status-text {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.status-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.reset-btn {
  margin-top: 20px;
  padding: 10px 24px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.reset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .card {
    padding: 28px 20px;
  }

  .preset-btn {
    padding: 10px 6px;
    font-size: 15px;
  }
}
