/* Phone Smarts AI — Song Gift. Same palette and type as Connect (gold on warm black). */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  background:
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.10) 0%, transparent 55%),
    linear-gradient(180deg, #0a0a0c 0%, #1a1612 100%);
  color: #e8e6e3; min-height: 100vh; -webkit-font-smoothing: antialiased; line-height: 1.5;
}
a { color: #d4af37; text-decoration: none; } a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(10, 10, 12, 0.6); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10;
}
.app-header .brand { display: flex; align-items: center; gap: 0.6rem; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; letter-spacing: 0.5px; }
.app-header .brand img { height: 28px; width: 28px; border-radius: 6px; }
.app-header .brand strong { color: #d4af37; font-weight: 600; }
.brand-product { color: rgba(232,230,227,0.6); font-size: 0.95rem; }

main { max-width: 560px; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }
footer { margin-top: 2.5rem; text-align: center; font-size: 0.75rem; color: rgba(232,230,227,0.4); }

.stepper { list-style: none; display: flex; gap: 0.35rem; padding: 0; margin: 0 0 1.2rem; }
.stepper li { flex: 1; font-size: 0.72rem; color: rgba(232,230,227,0.45); display: flex; align-items: center; gap: 0.35rem; border-top: 2px solid rgba(212,175,55,0.15); padding-top: 0.45rem; }
.stepper li span { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; background: rgba(212,175,55,0.12); color: rgba(212,175,55,0.7); flex-shrink: 0; }
.stepper li.active { color: #f0ead6; border-top-color: #d4af37; }
.stepper li.active span { background: #d4af37; color: #1a1612; font-weight: 600; }
.stepper li.done { color: rgba(232,230,227,0.7); border-top-color: rgba(212,175,55,0.5); }

.section-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.7rem; margin: 0 0 0.3rem; color: #f0ead6; font-weight: 500; }
.section-sub { color: rgba(232,230,227,0.6); font-size: 0.92rem; margin: 0 0 1.1rem; }
.card { background: rgba(255,255,255,0.03); border: 1px solid rgba(212,175,55,0.18); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 0.9rem; }
.card.note { font-size: 0.88rem; color: rgba(232,230,227,0.72); }
.card.chosen { border-color: #d4af37; box-shadow: 0 0 0 1px rgba(212,175,55,0.4); }

label { display: block; font-size: 0.82rem; color: rgba(232,230,227,0.75); margin: 0.9rem 0 0.35rem; letter-spacing: 0.3px; }
label .hint { display: block; font-size: 0.76rem; color: rgba(232,230,227,0.45); margin-top: 0.1rem; font-weight: 300; }
input[type="text"], select, textarea {
  width: 100%; padding: 0.75rem 0.9rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(212,175,55,0.25);
  border-radius: 8px; color: #f0ead6; font-size: 1rem; font-family: inherit; -webkit-appearance: none; appearance: none;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #d4af37; background: rgba(255,255,255,0.06); }
textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (max-width: 420px) { .row-2 { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.3rem; }
.chip { border: 1px solid rgba(212,175,55,0.3); background: rgba(212,175,55,0.06); color: #f0ead6; border-radius: 999px; padding: 0.45rem 0.85rem; font-size: 0.88rem; }
.chip.on { background: linear-gradient(180deg, #d4af37, #b8932f); color: #1a1612; border-color: transparent; font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.75rem 1.1rem; border: 1px solid rgba(212,175,55,0.3); border-radius: 8px; background: rgba(212,175,55,0.08); color: #f0ead6; font-size: 0.95rem; font-weight: 500; text-decoration: none; transition: all 0.15s; -webkit-tap-highlight-color: transparent; }
.btn:hover, .btn:active { background: rgba(212,175,55,0.18); text-decoration: none; }
.btn.primary { background: linear-gradient(180deg, #d4af37, #b8932f); border-color: transparent; color: #1a1612; font-weight: 600; }
.btn.primary:hover { background: linear-gradient(180deg, #e6c247, #c89c33); }
.btn.full { width: 100%; } .btn.big { padding: 1rem 1.2rem; font-size: 1.05rem; } .btn.tiny { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
.btn.working { background: linear-gradient(180deg, #d4af37, #b8932f); color: #1a1612; border-color: transparent; opacity: 1; }
.btn:disabled { cursor: default; }
.btn.ghost { background: none; border-color: rgba(232,230,227,0.15); color: rgba(232,230,227,0.7); }
.actions { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.actions .btn { flex: 1; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(26,22,18,0.35); border-top-color: #1a1612; border-radius: 50%; display: inline-block; animation: spin 0.8s linear infinite; }
.spinner.light { border-color: rgba(212,175,55,0.3); border-top-color: #d4af37; }
@keyframes spin { to { transform: rotate(360deg); } }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 0.5rem; margin-top: 0.8rem; }
.media-grid .tile { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,0.05); border: 1px solid rgba(212,175,55,0.2); }
.media-grid img, .media-grid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-grid .rm { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.65); color: #fff; border: 0; border-radius: 50%; width: 22px; height: 22px; font-size: 0.8rem; line-height: 1; }
.media-grid .badge { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.65rem; padding: 1px 5px; border-radius: 4px; }
.drop { border: 1px dashed rgba(212,175,55,0.4); border-radius: 12px; padding: 1.4rem 1rem; text-align: center; color: rgba(232,230,227,0.7); font-size: 0.92rem; cursor: pointer; }
.drop input { display: none; }

.song { padding: 1.1rem 1.2rem; }
.song h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.45rem; margin: 0 0 0.15rem; color: #f0ead6; font-weight: 500; }
.song .angle { font-size: 0.85rem; color: rgba(232,230,227,0.6); margin: 0 0 0.7rem; }
.song audio { width: 100%; margin: 0.4rem 0 0.6rem; }
.song .status { font-size: 0.85rem; color: rgba(212,175,55,0.85); display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0; }
.song .status.err { color: #f5b8b8; }
.song .status.ok { color: #7fd99f; }
.song details { margin: 0.5rem 0 0.8rem; }
.song summary { cursor: pointer; font-size: 0.85rem; color: rgba(232,230,227,0.7); }
.song pre { white-space: pre-wrap; font-family: inherit; font-size: 0.95rem; line-height: 1.55; color: #f0ead6; background: rgba(0,0,0,0.25); border-radius: 8px; padding: 0.8rem 0.9rem; margin: 0.5rem 0 0; }
.song .pick { display: flex; gap: 0.5rem; }
.song .pick .btn { flex: 1; }
.meta { font-size: 0.78rem; color: rgba(232,230,227,0.5); }

.price-card { text-align: center; }
.video { margin-top: 0.9rem; }
.video video { width: 100%; max-height: 70vh; border-radius: 12px; background: #000; border: 1px solid rgba(212,175,55,0.3); }
.bar { height: 10px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; margin: 0.5rem 0 0.3rem; }
.bar .fill { height: 100%; background: linear-gradient(90deg, #b8932f, #d4af37); transition: width 0.6s; }
.price-card .big { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; color: #f0ead6; }
.toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); background: rgba(20,18,14,0.95); border: 1px solid rgba(212,175,55,0.4); color: #f0ead6; padding: 0.7rem 1rem; border-radius: 10px; font-size: 0.9rem; z-index: 50; max-width: 90vw; }
