/* FeelCrystals Palm Reading page — everything is scoped under .fcp so the theme is untouched */
.fcp {
  --fcp-ink: #1d2030; --fcp-muted: #6b7084; --fcp-line: #e4e1ee; --fcp-bg: #faf8ff;
  --fcp-accent: #7a4bd1; --fcp-accent-soft: #efe8fb; --fcp-ok: #1f8a5b; --fcp-gold: #ffd782;
  max-width: 780px; margin: 0 auto 40px; color: var(--fcp-ink);
  font: 400 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0; text-align: left;
  min-width: 0; overflow-wrap: anywhere; /* never wider than the screen */
}
.fcp-palm-note, .fcp-concerns, .fcp-rc, .fcp-stone, .fcp-kit, .fcp-card { max-width: 100%; }
.fcp *, .fcp *::before, .fcp *::after { box-sizing: border-box; }
.fcp * { text-transform: none; letter-spacing: normal; }
.fcp h2, .fcp h3, .fcp h4 { font-family: inherit; color: var(--fcp-ink); letter-spacing: 0; text-transform: none; margin: 0; line-height: 1.3; }
.fcp h2 { font-size: 24px; font-weight: 700; }
.fcp h3 { font-size: 17px; font-weight: 700; }
.fcp h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.fcp p { margin: 0; }
.fcp a { color: var(--fcp-accent); }
#fc-palm button { font-family: inherit; letter-spacing: 0; text-transform: none; box-shadow: none; min-height: 0; }
.fcp-muted { color: var(--fcp-muted); font-weight: 400; }
.fcp-small { font-size: 13.5px; margin-top: 6px !important; }
.fcp-opt { color: var(--fcp-muted); font-weight: 400; font-size: 13px; }

/* hero */
.fcp-hero { text-align: center; padding: 26px 18px 22px; margin-bottom: 16px; border-radius: 18px;
  background: linear-gradient(160deg, #1b1035, #3b1f6b); color: #f1e9ff; }
.fcp-hero h2 { color: #fff; margin: 6px 0 6px; }
.fcp-hero p { color: #d9c8ff; font-size: 15px; }
.fcp-hero-ico { font-size: 40px; line-height: 1; }

/* cards */
.fcp-card { background: #fff; border: 1px solid var(--fcp-line); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.fcp-card-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fcp-num { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--fcp-accent); color: #fff; font-size: 14px; font-weight: 700; }
.fcp-num.fcp-done { background: var(--fcp-ok); }
.fcp-num-soon { background: #ece9f3; color: #8a84a0; }
.fcp-badge { margin-left: auto; background: #fff4e0; color: #9a5b00; border: 1px solid #f0d49b; border-radius: 999px;
  font-size: 12px; font-weight: 700; padding: 3px 10px; white-space: nowrap; }
.fcp-badge-ok { background: #e3f6ec; color: var(--fcp-ok); border-color: #b9e6cd; }
.fcp-soon { background: var(--fcp-bg); }
.fcp-soon .fcp-muted { margin-top: 8px; font-size: 14px; }
.fcp-soon-btns { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
#fc-palm .fcp-soon-btns button { height: auto; flex: 1 1 180px; padding: 11px 14px; border-radius: 12px; border: 1.5px dashed #cfc6e4;
  background: #fff; color: #9a93ad; font-size: 14px; font-weight: 600; cursor: not-allowed; }

/* palm photo */
.fcp-scan-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.fcp-scan-btns[hidden], .fcp-shot[hidden], .fcp-saved[hidden], .fcp-palm-note[hidden] { display: none; }
#fc-palm .fcp-scan-btns .fcp-btn { font-size: 15.5px; padding: 13px 12px; }
.fcp-shot { margin-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fcp-shot img { width: 150px; height: 150px; object-fit: cover; border-radius: 14px; border: 1px solid var(--fcp-line); background: #f4f2f8; }
.fcp-shot-act { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
#fc-palm .fcp-link-del { color: #b4533a; }
.fcp-tips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fcp-tips span { background: var(--fcp-bg); border: 1px solid var(--fcp-line); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; color: var(--fcp-muted); }
.fcp-palm-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--fcp-accent-soft); color: #4b2f8a; font-size: 14px; }
.fcp-palm-note.fcp-warn { background: #fff8ec; color: #8a5a00; border: 1px solid #f3dfb4; }
.fcp-res-h + .fcp-tags + .fcp-palm-note { margin: 0 0 14px; }
.fcp-saved { margin-top: 12px; }
.fcp-palm-res { background: linear-gradient(135deg, #faf6ff, #fff); border-color: #e3d6fa; }
.fcp-palm-overall { font-size: 15px; color: var(--fcp-ink) !important; }
.fcp-palm-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 6px; }
.fcp-lbl2 { font-size: 12px; font-weight: 700; color: var(--fcp-accent); text-transform: uppercase !important; letter-spacing: .4px !important; }
.fcp-strengths { margin-top: 10px; }
.fcp-budget { margin-top: 12px; }

/* date of birth */
.fcp-dob { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 10px; margin-top: 14px; }
.fcp select, .fcp input[type="text"], .fcp input[type="tel"], .fcp textarea {
  width: 100%; height: auto; margin: 0; padding: 12px 12px; border: 1.5px solid var(--fcp-line); border-radius: 12px;
  background-color: #fff; color: var(--fcp-ink); font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.3;
  box-shadow: none; text-transform: none; letter-spacing: 0; }
.fcp select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a4bd1' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.fcp select:focus, .fcp input:focus, .fcp textarea:focus { outline: none; border-color: var(--fcp-accent); box-shadow: 0 0 0 3px rgba(122, 75, 209, .15); }

/* concerns accordion */
.fcp-acc { margin-top: 12px; }
.fcp-cat { border: 1px solid var(--fcp-line); border-radius: 12px; margin: 0 0 8px; background: #fff; overflow: hidden; }
.fcp-cat summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 13px 14px;
  font-weight: 600; font-size: 15px; color: var(--fcp-ink); }
.fcp-cat summary::-webkit-details-marker { display: none; }
.fcp-cat summary::after { content: ""; width: 9px; height: 9px; margin-left: auto; border-right: 2px solid var(--fcp-muted);
  border-bottom: 2px solid var(--fcp-muted); transform: rotate(45deg); transition: transform .2s; flex: none; }
.fcp-cat[open] summary::after { transform: rotate(-135deg); }
.fcp-cnt { display: none; background: var(--fcp-accent); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 8px; }
.fcp-cnt.fcp-on { display: inline-block; }
.fcp-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 14px; }
.fcp-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--fcp-line);
  border-radius: 10px; cursor: pointer; font-size: 14.5px; font-weight: 400; line-height: 1.4; color: var(--fcp-ink); }
.fcp-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--fcp-accent); }
.fcp-check:has(input:checked) { border-color: var(--fcp-accent); background: var(--fcp-accent-soft); }
.fcp-picked { color: var(--fcp-accent); font-weight: 600; font-size: 14px; }

/* buttons */
#fc-palm .fcp-btn { height: auto; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 18px; border-radius: 14px;
  border: 0; font-size: 17px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none !important; cursor: pointer; transition: transform .1s, opacity .2s; }
#fc-palm .fcp-btn:active { transform: scale(.99); }
#fc-palm .fcp-btn-main { background: var(--fcp-accent) !important; color: #fff !important; }
#fc-palm .fcp-btn-main:hover { background: #6a3dc0 !important; }
#fc-palm .fcp-btn-main:disabled { opacity: .45; cursor: not-allowed; }
#fc-palm .fcp-btn-alt { background: #fff !important; color: var(--fcp-accent) !important; border: 1.5px solid var(--fcp-accent); font-size: 15.5px; padding: 13px 16px; }
#fc-palm .fcp-btn-alt:hover { background: var(--fcp-accent-soft) !important; }
.fcp-need { text-align: center; color: var(--fcp-muted); font-size: 13.5px; margin-top: 8px !important; min-height: 20px; }
.fcp-privacy { text-align: center; color: var(--fcp-muted); font-size: 13px; margin-top: 6px !important; }
#fc-palm .fcp-link { background: none !important; height: auto; border: 0; padding: 4px 0; color: var(--fcp-accent); font-size: 14px; font-weight: 600; cursor: pointer; }

/* loader */
.fcp-load { background: linear-gradient(160deg, #1b1035, #3b1f6b); border-radius: 18px; padding: 26px 22px 20px; color: #f1e9ff;
  display: flex; flex-direction: column; gap: 16px; }
.fcp-zwrap { position: relative; display: grid; place-items: center; height: 200px; }
.fcp-wheel { position: relative; width: 190px; height: 190px; border-radius: 50%; border: 1.5px solid rgba(255, 215, 130, .5);
  animation: fcp-spin 12s linear infinite; }
.fcp-wheel.fcp-stop { animation-play-state: paused; }
.fcp-wheel::before { content: ""; position: absolute; inset: 34px; border-radius: 50%; border: 1px dashed rgba(255, 215, 130, .35); }
.fcp-wheel span { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; display: grid; place-items: center;
  font-size: 19px; color: var(--fcp-gold); font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", sans-serif; transition: color .3s, text-shadow .3s; }
.fcp-wheel span.fcp-hit { color: #fff; text-shadow: 0 0 12px var(--fcp-gold), 0 0 4px #fff; }
.fcp-zc { position: absolute; width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle, #ffe7a8, #c08a2e);
  box-shadow: 0 0 26px rgba(255, 215, 130, .7); display: grid; place-items: center; font-size: 32px; color: #3b1f6b;
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", sans-serif; animation: fcp-pulse 2s ease-in-out infinite; }
.fcp-log { background: rgba(10, 4, 28, .45); border: 1px solid rgba(201, 170, 255, .25); border-radius: 12px; padding: 12px 14px;
  min-height: 176px; font: 13px/1.75 Consolas, "Courier New", monospace; color: #f1e9ff; }
.fcp-log div { animation: fcp-in .3s; }
.fcp-ok { color: #9dffb0; }
.fcp-val { color: var(--fcp-gold); }
.fcp-cur { color: #d9c8ff; }
.fcp-cur::after { content: "▋"; margin-left: 3px; color: #c79bff; animation: fcp-blink 1s steps(1) infinite; }
.fcp-bar { height: 7px; background: rgba(255, 255, 255, .12); border-radius: 9px; overflow: hidden; }
.fcp-bar b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8e5bd6, var(--fcp-gold)); transition: width .6s; }
.fcp-pct { display: flex; justify-content: space-between; gap: 10px; font: 13px Consolas, monospace; color: #cbb8f0; }
@keyframes fcp-spin { to { transform: rotate(360deg); } }
@keyframes fcp-pulse { 50% { transform: scale(1.08); } }
@keyframes fcp-blink { 50% { opacity: 0; } }
@keyframes fcp-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* result */
.fcp-res-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fcp-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.fcp-tag { background: var(--fcp-accent-soft); color: var(--fcp-accent); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; font-weight: 600; }
.fcp-concerns { background: var(--fcp-bg); border: 1px solid #e6dcf8; border-radius: 14px; padding: 12px 16px; font-size: 14.5px; }
.fcp-concerns ul { margin: 6px 0 0; padding-left: 20px; }
.fcp-concerns li { margin: 3px 0; }
.fcp-sec { margin: 24px 0 12px !important; font-size: 19px !important; }
.fcp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fcp-rc { background: #fff; border: 1px solid var(--fcp-line); border-radius: 14px; padding: 16px; font-size: 14.5px; }
.fcp-rc p { color: #3a3e50; margin-bottom: 8px; }
.fcp-rc p:last-child { margin-bottom: 0; }
.fcp-full { grid-column: 1 / -1; }
.fcp-todo { list-style: none; margin: 0; padding: 0; }
.fcp-todo li { position: relative; padding: 6px 0 6px 26px; border-bottom: 1px dashed var(--fcp-line); color: #3a3e50; }
.fcp-todo li:last-child { border-bottom: 0; }
.fcp-todo li::before { content: "✓"; position: absolute; left: 4px; color: var(--fcp-ok); font-weight: 700; }
.fcp-todo li.fcp-no::before { content: "✕"; color: #c0392b; }
.fcp-lucky { display: flex; flex-wrap: wrap; gap: 8px; }
.fcp-lucky span { background: #fff4e0; border: 1px solid #f0d49b; border-radius: 10px; padding: 7px 12px; font-size: 14px; }

/* stones + products */
.fcp-stone { background: #fff; border: 1px solid var(--fcp-line); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.fcp-stone-h { display: flex; align-items: center; gap: 12px; }
.fcp-stone-h b { display: block; font-size: 16.5px; }
.fcp-dot { flex: none; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset -5px -5px 10px rgba(0, 0, 0, .15); }
.fcp-match { font-size: 12.5px; color: var(--fcp-ok); font-weight: 700; }
.fcp-why { font-size: 14px; color: var(--fcp-muted); margin: 8px 0 12px !important; }
.fcp-why b { color: var(--fcp-ink); }
.fcp-prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fcp-prod { display: flex; flex-direction: column; gap: 4px; text-decoration: none !important; color: var(--fcp-ink) !important; }
.fcp-img { display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #f4f2f8; border: 1px solid var(--fcp-line); }
.fcp-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.fcp-prod:hover img { transform: scale(1.04); }
.fcp-pn { font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.fcp-pr { font-size: 14px; font-weight: 700; }
.fcp-pr s { color: var(--fcp-muted); font-weight: 400; font-size: 12.5px; }
.fcp-more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; text-decoration: none !important; }

/* kit */
.fcp-kit { margin: 18px 0 14px; padding: 18px; border-radius: 16px; border: 1px solid #e3d6fa; background: linear-gradient(135deg, #f3ecff, #fff7e8); }
.fcp-kit-h { display: flex; align-items: center; gap: 10px; }
.fcp-kit-list { list-style: none; margin: 12px 0; padding: 0; }
.fcp-kit-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(122, 75, 209, .12); font-size: 14px; }
.fcp-kit-list img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: #fff; }
.fcp-kit-list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcp-kit-list b { flex: none; }
.fcp-kit-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 15px; }
.fcp-kit-total b { font-size: 20px; color: var(--fcp-ok); }
.fcp-kit-total s { color: var(--fcp-muted); margin-left: 6px; }
.fcp-kit-msg { text-align: center; font-size: 14px; margin-top: 8px !important; min-height: 20px; }
.fcp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* customize */
.fcp-cust { margin-top: 14px; padding: 18px; border: 1.5px dashed #cdb8f3; border-radius: 16px; background: var(--fcp-bg); scroll-margin-top: 110px; }
.fcp-cust[hidden] { display: none; }
.fcp-lbl { display: block; font-size: 13.5px; font-weight: 700; margin: 14px 0 6px !important; color: var(--fcp-ink); }
.fcp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
#fc-palm .fcp-pill { height: auto; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--fcp-line); background: #fff; color: var(--fcp-ink);
  font-size: 14px; font-weight: 500; cursor: pointer; line-height: 1.2; }
#fc-palm .fcp-pill.fcp-on { border-color: var(--fcp-accent); background: var(--fcp-accent-soft); color: var(--fcp-accent); font-weight: 600; }
.fcp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.fcp-cust textarea { resize: vertical; min-height: 100px; }
.fcp-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.fcp-sent { text-align: center; padding: 18px; font-size: 15.5px; color: var(--fcp-ok); }
.fcp-disc { font-size: 12.5px; color: var(--fcp-muted); margin-top: 16px !important; text-align: center; }

/* ---------- tablet & mobile ---------- */
@media (max-width: 680px) {
  .fcp-grid, .fcp-actions, .fcp-row { grid-template-columns: 1fr; }
  .fcp-items { grid-template-columns: 1fr; }
  .fcp-palm-lines { grid-template-columns: 1fr; }
  /* products: one swipeable row instead of a tall grid */
  .fcp-prods { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 14px; margin: 0 -14px; padding: 0 14px 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .fcp-prods::-webkit-scrollbar { display: none; }
  .fcp-prod { flex: 0 0 42%; scroll-snap-align: start; }
}
@media (max-width: 480px) {
  .fcp { font-size: 15px; }
  .fcp h2 { font-size: 21px; }
  .fcp-hero { padding: 22px 14px 18px; border-radius: 16px; }
  .fcp-card, .fcp-stone, .fcp-kit, .fcp-cust, .fcp-rc { padding: 14px; }
  .fcp-dob { grid-template-columns: 1fr 1.7fr; }
  .fcp-dob select:nth-child(3) { grid-column: 1 / -1; }
  .fcp-load { padding: 20px 14px 16px; }
  .fcp-log { font-size: 12px; min-height: 190px; }
  .fcp-badge { margin-left: 0; }
  .fcp-scan-btns { grid-template-columns: 1fr; }
  .fcp-shot img { width: 120px; height: 120px; }
}
