/* ============================================================
   FutureBatao — service_tool.css
   The four standalone AI service pages (tarot / numerology /
   dream / palm reading). Dusk hero + gold, matching the report
   product pages and the horoscope sign pages.

   Loaded ONLY by service_tool.html — nothing here may be relied
   on by another page. (See the .cta-band lesson: home.css only
   loads on the homepage, so shared pieces belong in components.css.)
   ============================================================ */

/* ---------- Hero ---------- */
.svct-hero {
  position: relative; overflow: hidden;
  background: var(--g-dusk); color: #fff;
  padding-block: clamp(2rem, 5vw, 3.25rem) clamp(3.25rem, 7vw, 4.75rem);
}
.svct-hero__inner { position: relative; z-index: 2; }
.svct-hero h1 { color: #fff; margin: 0; font-size: var(--fs-3xl); }
.svct-hero__tag {
  color: rgba(255, 255, 255, .82); margin: .6rem 0 0; max-width: 54ch;
  font-size: var(--fs-lg);
}
.svct-hero .profile-back { color: var(--c-gold-400); }

/* Giant translucent glyph, same device as the zodiac watermark on sign pages.
   &#xFE0E; in the markup keeps it text, not an emoji sprite. */
.svct-hero__mark {
  position: absolute; right: -2rem; top: 50%; transform: translateY(-50%);
  font-size: clamp(9rem, 22vw, 16rem); line-height: 1;
  opacity: .09; pointer-events: none; user-select: none; z-index: 1;
}

/* Star field — two layered radial-gradient grids, no image request. */
.svct-hero__stars {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .5;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 26%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 18%, rgba(255,255,255,.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 62%, rgba(255,255,255,.65) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 54%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 32% 82%, rgba(255,255,255,.6) 50%, transparent 51%);
}

/* ---------- Body: cards float over the hero ---------- */
.svct-body { position: relative; z-index: 2; }
.svct-body > .container-fb > .row { margin-top: clamp(-3rem, -4vw, -2rem); }
.svct-card { padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--sh-md); }
.svct-card h2 { font-size: var(--fs-xl); margin: 0 0 var(--s-2); }
.svct-intro { margin-bottom: var(--s-5); }

/* ---------- Form ---------- */
.svct-field { margin-bottom: var(--s-4); }
.svct-field > label {
  display: block; margin-bottom: 6px;
  font-weight: 600; font-size: var(--fs-sm); color: var(--c-plum-800);
}
.svct-req { color: var(--c-coral-500); }
.svct-field input[type="text"],
.svct-field input[type="date"],
.svct-field select,
.svct-field textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
  font: inherit; color: var(--c-ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.svct-field input:focus, .svct-field select:focus, .svct-field textarea:focus {
  outline: none; border-color: var(--c-yellow-400);
  box-shadow: 0 0 0 3px rgba(255, 180, 46, .18);
}
.svct-field textarea { resize: vertical; min-height: 84px; }
.svct-help { display: block; margin-top: 5px; color: var(--c-muted); font-size: var(--fs-xs); }

.svct-check { display: flex; align-items: center; gap: .55rem; cursor: pointer; font-weight: 500; }
.svct-check input { width: 18px; height: 18px; accent-color: var(--c-yellow-500); }

/* File drop zone — the label IS the target, so the native input can hide. */
.svct-drop {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: var(--s-6) var(--s-4); cursor: pointer; text-align: center;
  border: 2px dashed var(--c-line); border-radius: var(--r-md);
  background: var(--c-yellow-50); transition: border-color .15s ease, background .15s ease;
}
.svct-drop:hover { border-color: var(--c-yellow-400); background: var(--c-yellow-100); }
.svct-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.svct-drop__ic { font-size: 1.9rem; line-height: 1; }
.svct-drop__txt { font-size: var(--fs-sm); color: var(--c-ink-soft); font-weight: 600; word-break: break-all; }
.svct-drop__preview { max-width: 220px; max-height: 220px; border-radius: var(--r-sm); box-shadow: var(--sh-sm); }
.svct-drop.has-file { border-style: solid; border-color: var(--c-yellow-400); background: #fff; }

.svct-submit { width: 100%; margin-top: var(--s-2); }
.svct-submit:disabled { opacity: .6; cursor: not-allowed; }
.svct-cost { display: block; margin-top: .6rem; text-align: center; color: var(--c-muted); font-size: var(--fs-xs); }
.svct-error {
  margin: 0 0 var(--s-3); padding: 10px 14px; border-radius: var(--r-sm);
  background: #FDECEA; color: #a4231b; border: 1px solid #f5c6c2;
  font-size: var(--fs-sm);
}

/* ---------- Loading skeleton ---------- */
.svct-loading { margin-top: var(--s-4); }
.svct-sk {
  height: 14px; border-radius: 7px; margin-bottom: 12px;
  background: linear-gradient(90deg, #eee 25%, #f6f6f6 37%, #eee 63%);
  background-size: 400% 100%; animation: svct-shimmer 1.4s ease infinite;
}
.svct-sk--title { height: 22px; width: 45%; margin-bottom: 18px; }
.svct-sk--short { width: 70%; }
.svct-loading__note { margin: var(--s-3) 0 0; color: var(--c-muted); font-size: var(--fs-sm); text-align: center; }
@keyframes svct-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .svct-sk { animation: none; } }

/* ---------- Result ---------- */
.svct-result { margin-top: var(--s-4); }
.svct-result__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.svct-again {
  border: 1px solid var(--c-line); background: #fff; border-radius: var(--r-pill);
  padding: 6px 14px; font-size: var(--fs-xs); font-weight: 600;
  color: var(--c-ink-soft); cursor: pointer;
}
.svct-again:hover { border-color: var(--c-yellow-400); color: var(--c-plum-900); }
.svct-result h3 {
  font-size: var(--fs-lg); margin: var(--s-5) 0 var(--s-2); color: var(--c-plum-900);
  padding-bottom: .35rem; border-bottom: 2px solid var(--c-yellow-200);
}
.svct-result p { margin: 0 0 var(--s-3); line-height: 1.75; }
.svct-result ul, .svct-result ol { margin: 0 0 var(--s-3) 1.15rem; line-height: 1.7; }
.svct-result li { margin-bottom: .35rem; }

/* Tarot: the cards that were drawn, before the interpretation. */
.svct-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: var(--s-3); margin: var(--s-4) 0 var(--s-5);
}
.svct-tcard {
  display: flex; flex-direction: column; gap: 3px; padding: var(--s-3);
  border-radius: var(--r-md); color: #fff; background: var(--g-dusk);
  box-shadow: var(--sh-sm);
}
.svct-tcard.is-rev { background: linear-gradient(160deg, #3B2340 0%, #6B2E4F 55%, #A8465C 130%); }
.svct-tcard__pos { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--c-gold-400); }
.svct-tcard__name { font-weight: 700; font-size: var(--fs-md); }
.svct-tcard__rev { font-size: var(--fs-xs); color: rgba(255,255,255,.72); font-style: italic; }
.svct-tcard__kw { font-size: var(--fs-xs); color: rgba(255,255,255,.66); margin-top: 2px; }

/* Numerology: the core numbers as gold medallions. */
.svct-nums {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: var(--s-3); margin: var(--s-4) 0;
}
.svct-num {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: var(--s-3) var(--s-2); border-radius: var(--r-md);
  background: var(--c-yellow-50); border: 1px solid var(--c-yellow-200);
}
.svct-num b { font-size: 2rem; line-height: 1; color: var(--c-yellow-700); }
.svct-num span { font-size: var(--fs-xs); color: var(--c-ink-soft); text-align: center; }
.svct-lucky {
  display: grid; grid-template-columns: auto 1fr; gap: .4rem var(--s-4);
  margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-4);
  border-left: 3px solid var(--c-yellow-400); background: var(--c-yellow-50);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.svct-lucky dt { font-weight: 600; color: var(--c-ink-soft); font-size: var(--fs-sm); }
.svct-lucky dd { margin: 0; font-size: var(--fs-sm); }

/* ---------- Sidebar ---------- */
.svct-side { padding: clamp(1.2rem, 2.5vw, 1.6rem); }
.svct-side h2 { font-size: var(--fs-lg); margin: 0 0 var(--s-2); }
.svct-steps { margin: 0; padding-left: 1.15rem; line-height: 1.65; }
.svct-steps li { margin-bottom: .5rem; }
.svct-steps li::marker { color: var(--c-yellow-500); font-weight: 700; }

@media (max-width: 991px) {
  .svct-body > .container-fb > .row { margin-top: clamp(-2rem, -3vw, -1.25rem); }
}
