.agf-root {
  --agf-pink: #E30066;
  --agf-orange: #FF8C00;
  --agf-orange-2: #FF6600;
  --agf-gradient: linear-gradient(90deg, var(--agf-pink), var(--agf-orange));
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111827;
  box-sizing: border-box;
}
.agf-root *, .agf-root *::before, .agf-root *::after { box-sizing: border-box; }

.agf-center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; text-align: center; gap: 20px; }
.agf-start-badge { background: #fff7ed; color: var(--agf-orange-2); font-weight: 700; font-size: .85rem; padding: 8px 16px; border-radius: 999px; }
.agf-h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.agf-h1 span { background: var(--agf-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.agf-sub { font-size: 1.1rem; color: #4b5563; max-width: 640px; font-weight: 500; margin: 0; }

.agf-btn-primary {
  background: var(--agf-gradient);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(227,0,102,0.25);
  transition: opacity .15s, transform .15s;
}
.agf-btn-primary:hover { opacity: .93; transform: translateY(-1px); }
.agf-btn-primary:disabled { background: #d1d5db; cursor: not-allowed; box-shadow: none; transform: none; }

.agf-btn-secondary {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
}
.agf-btn-secondary:hover { border-color: var(--agf-orange-2); color: var(--agf-orange-2); }
.agf-wishlist-toggle:hover { border-color: var(--agf-pink); color: var(--agf-pink); }

.agf-link-btn { background: none; border: none; color: var(--agf-pink); font-weight: 700; font-size: .85rem; cursor: pointer; text-decoration: underline; }

.agf-progress-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.agf-progress-step { font-size: .8rem; font-weight: 700; color: #9ca3af; }
.agf-back-btn { background: none; border: none; color: var(--agf-pink); cursor: pointer; padding: 8px; border-radius: 999px; font-size: 1.1rem; }
.agf-progress-track { height: 8px; width: 100%; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.agf-progress-fill { height: 100%; background: var(--agf-gradient); border-radius: 999px; transition: width .3s ease; }

.agf-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid #f3f4f6;
  padding: 32px;
}
.agf-card h2 { font-size: 1.7rem; font-weight: 800; margin: 0 0 24px; letter-spacing: -0.01em; }

.agf-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.agf-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 480px) { .agf-grid-3 { grid-template-columns: repeat(2, 1fr); } }

.agf-choice-tile {
  padding: 16px 12px;
  border-radius: 16px;
  border: 2px solid #f3f4f6;
  background: #fff;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  color: #4b5563;
  transition: all .15s;
}
.agf-choice-tile:hover { border-color: #fed7aa; }
.agf-choice-tile.selected { border-color: var(--agf-orange-2); background: #fff7ed; color: var(--agf-pink); }
.agf-choice-wide { text-align: left; width: 100%; }
.agf-budget-col { display: flex; flex-direction: column; gap: 12px; }

.agf-pill {
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid #f3f4f6;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: #4b5563;
  display: inline-block;
  margin: 0 8px 8px 0;
}
.agf-pill:hover { border-color: #fed7aa; }
.agf-pill.selected { border-color: var(--agf-orange-2); background: #fff7ed; color: var(--agf-pink); }

.agf-pill-row { display: flex; flex-wrap: wrap; }

.agf-other-wrap { margin-top: 8px; }
.agf-other-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid #fed7aa;
  background: #fff7ed;
  font-family: inherit;
  font-size: .95rem;
}
.agf-other-input:focus { outline: none; border-color: var(--agf-orange-2); }

.agf-festival-wrap { margin-top: 18px; padding-top: 18px; border-top: 1px dashed #f3f4f6; }
.agf-hint-tight { margin-bottom: 10px; }

.agf-age-exact-label { font-size: .8rem; font-weight: 700; color: #9ca3af; margin: 20px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.agf-age-stepper { display: flex; align-items: center; justify-content: center; gap: 16px; }
.agf-step-btn {
  width: 48px; height: 48px; border-radius: 999px; border: 2px solid #f3f4f6; background: #fff;
  font-size: 1.4rem; font-weight: 700; color: var(--agf-pink); cursor: pointer; line-height: 1;
}
.agf-step-btn:hover { border-color: var(--agf-orange-2); background: #fff7ed; }
.agf-age-input {
  width: 110px; text-align: center; font-size: 1.8rem; font-weight: 800; color: #111827;
  border: 2px solid #f3f4f6; border-radius: 16px; padding: 10px 0;
  -moz-appearance: textfield;
}
.agf-age-input::-webkit-outer-spin-button, .agf-age-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.agf-age-input:focus { outline: none; border-color: var(--agf-orange-2); }

.agf-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid #f3f4f6;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}
.agf-textarea:focus { outline: none; border-color: var(--agf-orange-2); }
.agf-hint { color: #6b7280; margin: 0 0 12px; font-weight: 500; font-size: .9rem; }

.agf-nav-row { display: flex; justify-content: flex-end; margin-top: 24px; }

.agf-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 45vh; text-align: center; }
.agf-loading-icon { width: 90px; height: 90px; border-radius: 999px; background: #fff7ed; display: flex; align-items: center; justify-content: center; margin-bottom: 28px; font-size: 2.2rem; animation: agf-bounce 1.6s ease-in-out infinite; }
@keyframes agf-bounce { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(6deg); } }
.agf-loading h2 { font-size: 1.7rem; font-weight: 800; margin: 0 0 12px; }
.agf-loading p { color: #6b7280; font-weight: 500; max-width: 420px; margin: 0 auto; }

.agf-results-head { text-align: center; margin-bottom: 28px; }
.agf-results-head h2 { font-size: 2.2rem; font-weight: 800; margin: 0 0 12px; letter-spacing: -0.01em; }
.agf-results-head p { color: #4b5563; font-weight: 500; margin: 0 0 20px; }
.agf-results-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.agf-feedback-banner {
  background: #fff7ed; color: #9a3412; font-weight: 600; font-size: .88rem;
  border-radius: 12px; padding: 12px 18px; margin: 0 0 20px; text-align: center;
}
.agf-hidden-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #f9fafb; color: #6b7280; font-weight: 600; font-size: .85rem;
  border-radius: 12px; padding: 10px 16px; margin: 0 0 20px; text-align: center; flex-wrap: wrap;
}

.agf-gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .agf-gift-grid { grid-template-columns: 1fr; } }

.agf-gift-card { background: #fff; border-radius: 18px; border: 1px solid #f3f4f6; box-shadow: 0 2px 10px rgba(0,0,0,0.04); padding: 22px; display: flex; flex-direction: column; }
.agf-gift-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.agf-gift-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.agf-gift-icon-actions { display: flex; gap: 6px; }
.agf-gift-price { font-size: .85rem; font-weight: 700; color: var(--agf-orange-2); background: #fff7ed; padding: 5px 12px; border-radius: 999px; display: inline-block; margin-bottom: 10px; align-self: flex-start; }
.agf-save-btn, .agf-wa-btn { background: #f9fafb; border: none; border-radius: 999px; padding: 8px; cursor: pointer; font-size: 1rem; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.agf-save-btn.saved { color: var(--agf-pink); }
.agf-wa-btn { background: #f0fdf4; }
.agf-gift-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 8px; line-height: 1.3; }
.agf-gift-desc { color: #4b5563; font-size: .92rem; line-height: 1.5; flex-grow: 1; margin: 0 0 18px; }
.agf-gift-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid #f3f4f6; gap: 8px; }
.agf-feedback-btns { display: flex; gap: 8px; }
.agf-fb-btn { background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.agf-fb-btn.like.active { background: #f0fdf4; border-color: #bbf7d0; color: #16a34a; }
.agf-fb-btn.dislike.active { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
.agf-amazon-btn { background: var(--agf-gradient); color: #fff; border-radius: 10px; padding: 10px 18px; font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; }
.agf-amazon-btn:hover { opacity: .92; color: #fff; }

.agf-loadmore { display: flex; justify-content: center; padding: 32px 0; color: #6b7280; font-weight: 700; font-size: .9rem; }
.agf-end-msg { text-align: center; padding: 32px 0; color: #6b7280; font-style: italic; }
.agf-error { text-align: center; padding: 24px; color: #b91c1c; background: #fef2f2; border-radius: 12px; font-weight: 600; }
