/* ==========================================================================
   Destiny Hub — Ritual Magic & SEO Suite (Inspired by privorot.club mechanics)
   Includes:
   1. Hold-to-Charge ("Удерживайте — и думайте о желании") 3-Card 3D Reveal
   2. 4-Step Verdict Scale & Editorial Book-Style Typography
   3. 4 Animated 3D-Tilting SVG Day Widgets (Card, Rune, Number, Magic Gift)
   4. Split Horoscope ("Если вы в паре" / "Если вы в поиске") + 4s Bars
   5. 6-in-1 Compatibility Altar + Floating Medallions + Sparkler Canvas
   6. Live Wish Candles Canvas Altar ("Свечи на желание")
   7. Natal Sky Wheel & Magic Gift Index ("Есть ли у вас магический дар?")
   ========================================================================== */

:root {
  --dh-serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --dh-sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --dh-gold: #e2b853;
  --dh-gold-soft: rgba(226, 184, 83, 0.24);
  --dh-crimson: #f43f5e;
  --dh-violet: #a855f7;
  --dh-cyan: #38bdf8;
  --dh-emerald: #10b981;
  --dh-bg-deep: #0b0914;
  --dh-bg-card: rgba(18, 14, 32, 0.92);
}

/* ── Global Section Wrapper ── */
.dh-magic-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 28px auto;
  box-sizing: border-box;
}

.dh-magic-card {
  position: relative;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(168, 85, 247, 0.14), transparent 68%),
    radial-gradient(ellipse 65% 50% at 85% 100%, rgba(226, 184, 83, 0.10), transparent 65%),
    linear-gradient(165deg, rgba(19, 15, 35, 0.96) 0%, rgba(10, 8, 20, 0.98) 100%);
  border: 1px solid rgba(226, 184, 83, 0.32);
  border-radius: 26px;
  padding: 28px 30px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  color: #f8fafc;
}

.dh-magic-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(226, 184, 83, 0.14);
  border: 1px solid rgba(226, 184, 83, 0.38);
  color: var(--dh-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.dh-magic-h2 {
  font-family: var(--dh-serif);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: -0.01em;
}

.dh-magic-sub {
  font-size: 0.96rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0 0 20px;
  max-width: 780px;
}

/* Soft glowing underline link (from privorot.club) */
.dh-glow-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dh-gold);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  padding-bottom: 3px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.dh-glow-link::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.55;
  transition: left 0.3s ease, right 0.3s ease, opacity 0.3s ease;
}
.dh-glow-link:hover {
  color: #fde68a;
  transform: translateY(-1px);
}
.dh-glow-link:hover::after {
  left: 0;
  right: 0;
  opacity: 1;
}

/* ==========================================================================
   1. HOLD-TO-CHARGE 3-CARD TAROT SPREAD ("Удерживайте — и думайте о желании")
   ========================================================================== */
.dh-tr-box {
  --q: 0;
  position: relative;
}

.dh-tr-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.dh-tr-who-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dh-tr-sex-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dh-tr-sex-btn.is-on {
  background: linear-gradient(135deg, rgba(226, 184, 83, 0.22), rgba(168, 85, 247, 0.22));
  border-color: var(--dh-gold);
  color: #fff;
  box-shadow: 0 0 16px rgba(226, 184, 83, 0.22);
}

.dh-tr-name-inp {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 15px;
  color: #fff;
  font-size: 0.82rem;
  min-width: 195px;
  width: auto;
  outline: none;
  transition: border-color 0.2s;
}
.dh-tr-name-inp:focus {
  border-color: var(--dh-gold);
}

/* Prevent floating Quick-Check popup from auto-covering content unless user clicks bubble */
#qc-widget:not(.is-user-opened) {
  display: none !important;
}
#qc-bubble {
  bottom: 14px !important;
  right: 14px !important;
  transform: scale(0.86);
  opacity: 0.88;
}

/* 12 Topic Pills */
.dh-tr-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}
.dh-tr-topic {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
  color: #e2e8f0;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dh-tr-topic:hover {
  border-color: rgba(226, 184, 83, 0.5);
  color: #fff;
}
.dh-tr-topic.is-on {
  background: linear-gradient(135deg, #e2b853, #f59e0b);
  border-color: #e2b853;
  color: #0b0914;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(226, 184, 83, 0.32);
}

/* 3-Slot Altar Table + 22-Card Interactive Fan + Animated Mystic Hand */
.dh-tr-stage-wrap {
  position: relative;
  margin: 10px auto 18px;
  padding: 18px 14px 20px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 75% 55% at 50% 35%, rgba(168, 85, 247, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 85%, rgba(226, 184, 83, 0.11), transparent 70%),
    linear-gradient(180deg, rgba(13, 10, 26, 0.92) 0%, rgba(8, 6, 16, 0.96) 100%);
  border: 1px solid rgba(226, 184, 83, 0.28);
  box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.dh-tr-step-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  text-align: center;
}

.dh-tr-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(226, 184, 83, 0.14);
  border: 1px solid rgba(226, 184, 83, 0.48);
  color: #fde68a;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 0 20px rgba(226, 184, 83, 0.18);
}

.dh-tr-cards-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 195px));
  justify-content: center;
  gap: 22px;
  margin: 4px auto 18px;
  perspective: 1100px;
  position: relative;
  z-index: 2;
}

.dh-tr-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.dh-tr-slot-pos {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c4b5fd;
  margin-bottom: 8px;
  min-height: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  line-height: 1.25;
}

.dh-tr-slot.is-active-target .dh-tr-slot-pos {
  color: #fde68a;
  text-shadow: 0 0 12px rgba(226, 184, 83, 0.55);
}

.dh-tr-slot-frame {
  position: relative;
  width: 100%;
  max-width: 184px;
  aspect-ratio: 200 / 310;
  border-radius: 16px;
  border: 1.5px dashed rgba(226, 184, 83, 0.35);
  background:
    radial-gradient(circle at 50% 50%, rgba(226, 184, 83, 0.08), rgba(15, 11, 28, 0.72) 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.dh-tr-slot.is-active-target .dh-tr-slot-frame {
  border-color: rgba(226, 184, 83, 0.82);
  box-shadow:
    0 0 26px rgba(226, 184, 83, 0.25),
    inset 0 0 22px rgba(226, 184, 83, 0.14);
}

.dh-tr-slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  color: rgba(226, 184, 83, 0.65);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.dh-tr-slot.is-dealt .dh-tr-slot-placeholder {
  opacity: 0;
}

.dh-tr-slot.is-dealt .dh-tr-slot-frame {
  border-style: solid;
  border-color: rgba(226, 184, 83, 0.65);
}

.dh-tr-card3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  user-select: none;
  -webkit-user-select: none;
  transform-style: preserve-3d;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.22, 0.85, 0.3, 1), opacity 0.25s ease, filter 0.3s ease;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.6));
}

.dh-tr-slot.is-dealt .dh-tr-card3d {
  opacity: 1;
  transform: scale(1) rotateY(0deg);
  pointer-events: auto;
  cursor: pointer;
}

.dh-tr-card-back,
.dh-tr-card-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.dh-tr-card-back {
  background: #120d22;
  border: 1.5px solid rgba(226, 184, 83, 0.72);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.65);
  transform: rotateY(0deg);
  transition: transform 0.52s cubic-bezier(0.22, 0.85, 0.3, 1), opacity 0.28s ease;
}

.dh-tr-card-back-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.06) saturate(1.08);
}

.dh-tr-card-back::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 11px;
  border: 1px solid rgba(253, 230, 138, 0.38);
  pointer-events: none;
}

.dh-tr-card-front {
  background: #120d22;
  border: 1.5px solid rgba(226, 184, 83, 0.82);
  box-shadow: 0 0 28px rgba(226, 184, 83, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: rotateY(180deg);
  transition: transform 0.52s cubic-bezier(0.22, 0.85, 0.3, 1), opacity 0.25s ease;
}

.dh-tr-slot.is-flipped .dh-tr-card-back {
  transform: rotateY(-180deg);
  opacity: 0;
}

.dh-tr-slot.is-flipped .dh-tr-card-front {
  transform: rotateY(0deg);
  opacity: 1;
}

.dh-tr-card-front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dh-tr-card-front.is-rev img {
  transform: rotate(180deg);
}

.dh-tr-card-front-cap {
  position: relative;
  z-index: 2;
  background: linear-gradient(0deg, rgba(8, 6, 16, 0.96) 0%, rgba(8, 6, 16, 0.82) 70%, transparent 100%);
  padding: 26px 8px 10px;
  text-align: center;
}
.dh-tr-card-front-name {
  font-family: var(--dh-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.dh-tr-card-front-ori {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--dh-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.dh-tr-slot-mini {
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.38;
  color: #cbd5e1;
  max-width: 195px;
  min-height: 32px;
}

/* ── Interactive 22-Card Semi-Circle Fan (.dh-tr-fan) ── */
.dh-tr-fan-arena {
  position: relative;
  margin: 6px auto 8px;
  padding: 18px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}

.dh-tr-fan-hint {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fde68a;
  margin-bottom: 14px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.dh-tr-fan {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 168px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 24px 16px;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.dh-tr-fan-card {
  position: relative;
  width: 78px;
  height: 122px;
  margin-left: -46px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(226, 184, 83, 0.72);
  background: #140e28;
  box-shadow: -4px 6px 16px rgba(0, 0, 0, 0.68);
  cursor: pointer;
  flex-shrink: 0;
  transform-origin: 50% 125%;
  transform: rotate(var(--fan-rot, 0deg)) translateY(var(--fan-y, 0px));
  transition: transform 0.26s cubic-bezier(0.22, 0.85, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.dh-tr-fan-card:first-child {
  margin-left: 0;
}

.dh-tr-fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.dh-tr-fan-card::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 7px;
  border: 1px solid rgba(253, 230, 138, 0.35);
  pointer-events: none;
}

.dh-tr-fan-card:hover,
.dh-tr-fan-card.is-hovered {
  transform: rotate(calc(var(--fan-rot, 0deg) * 0.65)) translateY(calc(var(--fan-y, 0px) - 24px)) scale(1.1);
  border-color: #fef08a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 22px rgba(226, 184, 83, 0.65);
  z-index: 30 !important;
}

.dh-tr-fan-card.is-holding {
  opacity: 0.15;
  transform: rotate(var(--fan-rot, 0deg)) translateY(calc(var(--fan-y, 0px) - 12px)) scale(0.95);
}

.dh-tr-fan-card.is-picked {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-40px) scale(0.7);
}

/* ── Animated Mystic Hand & Flying Card Actor during 2.5s Hold ── */
.dh-tr-hand-actor {
  position: absolute;
  left: 0;
  top: 0;
  width: 156px;
  height: 242px;
  pointer-events: none;
  z-index: 80;
  opacity: 0;
  transform: translate3d(-9999px, -9999px, 0);
  will-change: transform, opacity;
}

.dh-tr-hand-actor.is-active {
  opacity: 1;
}

.dh-tr-actor-card3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  transform-style: preserve-3d;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.78),
    0 0 32px rgba(226, 184, 83, 0.65);
}

.dh-tr-actor-back,
.dh-tr-actor-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1.5px solid #fde68a;
  background: #120d22;
}

.dh-tr-actor-back img,
.dh-tr-actor-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dh-tr-actor-front {
  transform: rotateY(180deg);
}

.dh-tr-actor-front.is-rev img {
  transform: rotate(180deg);
}

/* Charge Ring around the held card */
.dh-tr-actor-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  margin-left: -66px;
  margin-top: -66px;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 0 12px rgba(226, 184, 83, 0.85));
}

.dh-tr-actor-badge {
  position: absolute;
  left: 50%;
  top: -32px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(12, 9, 24, 0.94);
  border: 1px solid #fde68a;
  color: #fde68a;
  font-size: 0.74rem;
  font-weight: 800;
  z-index: 6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
}

/* Ornate Mystic Tarot Reader Hand holding & flipping the card */
.dh-tr-mystic-hand {
  position: absolute;
  right: -76px;
  top: -12px;
  width: 196px;
  height: 174px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 18px rgba(226, 184, 83, 0.32));
  transform-origin: 25% 65%;
  transition: transform 0.12s linear;
}
.dh-tr-mystic-hand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.dh-day-rich-art-wrap {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(226, 184, 83, 0.82);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.65),
    0 0 22px rgba(226, 184, 83, 0.25);
  background: #0b0816;
}
.dh-day-rich-art-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dh-day-rich-art-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Hold-to-Charge Button */
.dh-tr-hold-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.dh-tr-hold-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 320px;
  max-width: 100%;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid rgba(226, 184, 83, 0.72);
  background: linear-gradient(135deg, rgba(34, 22, 62, 0.95), rgba(18, 12, 36, 0.98));
  color: #fff;
  font-family: var(--dh-sans);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 0 calc(16px + var(--q, 0) * 32px) rgba(226, 184, 83, calc(0.22 + var(--q, 0) * 0.55));
  transition: border-color 0.2s, transform 0.15s;
}
.dh-tr-hold-btn:hover {
  border-color: #fde68a;
}
.dh-tr-hold-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--q, 0) * 100%);
  background: linear-gradient(90deg, rgba(226, 184, 83, 0.42), rgba(244, 63, 94, 0.55), rgba(168, 85, 247, 0.52));
  pointer-events: none;
  transition: width 0.04s linear;
}
.dh-tr-hold-txt {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: scale(calc(1 + var(--q, 0) * 0.05));
  transition: transform 0.08s linear;
}

.dh-tr-hold-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: center;
}

/* ── 4-Step Verdict Scale & Editorial Reading Output ── */
.dh-tr-reading-panel {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(226, 184, 83, 0.22);
  animation: dh-fade-up 0.45s ease both;
}

@keyframes dh-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.dh-tr-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: 700px;
  margin: 0 auto 20px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(9, 7, 18, 0.82);
  border: 1px solid rgba(226, 184, 83, 0.24);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.55);
}

.dh-tr-scale-step {
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  transition: all 0.3s ease;
}
.dh-tr-scale-step.is-on::before {
  content: "● ";
  font-size: 0.7rem;
}
.dh-tr-scale-step.is-on[data-tone="good"] {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  color: #6ee7b7;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}
.dh-tr-scale-step.is-on[data-tone="soft"] {
  background: rgba(226, 184, 83, 0.2);
  border-color: #e2b853;
  color: #fde68a;
  box-shadow: 0 0 20px rgba(226, 184, 83, 0.25);
}
.dh-tr-scale-step.is-on[data-tone="warn"] {
  background: rgba(249, 115, 22, 0.2);
  border-color: #f97316;
  color: #fdba74;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.25);
}
.dh-tr-scale-step.is-on[data-tone="hard"] {
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
  color: #fda4af;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.25);
}

.dh-tr-verdict-box {
  background: linear-gradient(145deg, rgba(26, 19, 46, 0.88), rgba(14, 11, 26, 0.94));
  border: 1px solid rgba(226, 184, 83, 0.32);
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 18px;
}

.dh-tr-verdict-title {
  font-family: var(--dh-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dh-gold);
  margin: 0 0 8px;
}

.dh-tr-verdict-lead {
  font-family: var(--dh-serif);
  font-size: 1.14rem;
  line-height: 1.62;
  color: #f1f5f9;
  margin: 0;
}

.dh-tr-positions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.dh-tr-pos-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dh-tr-pos-card-lbl {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a78bfa;
  margin-bottom: 4px;
}
.dh-tr-pos-card-name {
  font-family: var(--dh-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.dh-tr-pos-card-txt {
  font-size: 0.9rem;
  line-height: 1.58;
  color: #cbd5e1;
  margin: 0 0 12px;
}

.dh-tr-seo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(226, 184, 83, 0.08);
  border: 1px solid rgba(226, 184, 83, 0.28);
}

/* ==========================================================================
   2. FOUR ANIMATED 3D-TILTING SVG DAY WIDGETS (Card, Rune, Number, Gift)
   ========================================================================== */
@keyframes dh-beat {
  0%, 100% { transform: scale(1); }
  18% { transform: scale(1.13); }
  34% { transform: scale(0.96); }
  52% { transform: scale(1.08); }
}
@keyframes dh-spin {
  to { transform: rotate(360deg); }
}
@keyframes dh-spin-rev {
  to { transform: rotate(-360deg); }
}
@keyframes dh-twinkle {
  0%, 100% { opacity: 0.32; transform: scale(0.86); }
  50% { opacity: 1; transform: scale(1.22); }
}
@keyframes dh-stone {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}
@keyframes dh-carve {
  0% { stroke-dashoffset: 1; opacity: 0.35; }
  45%, 80% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.85; }
}
@keyframes dh-draw {
  0% { stroke-dashoffset: 180; }
  50%, 100% { stroke-dashoffset: 0; }
}

.dh-day4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.dh-day-widget {
  --pc-tilt-x: 0deg;
  --pc-tilt-y: 0deg;
  position: relative;
  background:
    radial-gradient(circle at 50% 28%, rgba(226, 184, 83, 0.13), transparent 65%),
    linear-gradient(165deg, rgba(22, 17, 40, 0.94), rgba(11, 9, 22, 0.98));
  border: 1px solid rgba(226, 184, 83, 0.26);
  border-radius: 22px;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  perspective: 650px;
}
.dh-day-widget:hover {
  border-color: rgba(226, 184, 83, 0.68);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5), 0 0 26px rgba(226, 184, 83, 0.18);
  transform: translateY(-4px);
}

.dh-day-svg-stage {
  width: 118px;
  height: 132px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateX(var(--pc-tilt-x)) rotateY(var(--pc-tilt-y));
  transition: transform 0.14s ease-out;
}
.dh-day-svg-stage svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dh-svg-beat {
  transform-box: fill-box;
  transform-origin: center;
  animation: dh-beat 2.6s ease-in-out infinite;
}
.dh-svg-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: dh-spin 26s linear infinite;
}
.dh-svg-spin-rev {
  transform-box: fill-box;
  transform-origin: center;
  animation: dh-spin-rev 20s linear infinite;
}
.dh-svg-twinkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: dh-twinkle 3.1s ease-in-out infinite;
}
.dh-svg-stone {
  transform-box: fill-box;
  transform-origin: center;
  animation: dh-stone 3.8s ease-in-out infinite;
}
.dh-svg-carve {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: dh-carve 4.8s ease-in-out infinite;
}
.dh-svg-draw {
  stroke-dasharray: 180;
  animation: dh-draw 5.5s ease-in-out infinite;
}

.dh-day-widget-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dh-gold);
  margin-bottom: 4px;
}
.dh-day-widget-title {
  font-family: var(--dh-serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.dh-day-widget-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0 0 12px;
  min-height: 36px;
}
.dh-day-widget-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(226, 184, 83, 0.14);
  border: 1px solid rgba(226, 184, 83, 0.38);
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 800;
  transition: all 0.2s;
}
.dh-day-widget:hover .dh-day-widget-cta {
  background: linear-gradient(135deg, #e2b853, #f59e0b);
  color: #0b0914;
}

/* Modal / Drawer for Instant Day Widget Reveal */
.dh-day-reveal-box {
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(24, 18, 44, 0.96), rgba(12, 9, 24, 0.98));
  border: 1px solid rgba(226, 184, 83, 0.42);
  display: none;
  animation: dh-fade-up 0.32s ease both;
}
.dh-day-reveal-box.is-open {
  display: block;
}

/* ==========================================================================
   3. SPLIT HOROSCOPE ("В паре" / "Если вы в поиске" + 4.0s Growing Bars)
   ========================================================================== */
.dh-horo-signs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.dh-horo-sign-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
  color: #e2e8f0;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.dh-horo-sign-btn svg {
  width: 18px;
  height: 18px;
}
.dh-horo-sign-btn.is-on {
  background: linear-gradient(135deg, rgba(226, 184, 83, 0.24), rgba(168, 85, 247, 0.24));
  border-color: var(--dh-gold);
  color: #fde68a;
  box-shadow: 0 0 18px rgba(226, 184, 83, 0.22);
}

.dh-horo-split {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 24px;
  align-items: stretch;
}

.dh-horo-left {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(226, 184, 83, 0.24);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dh-horo-time-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 10px 0 16px;
}

.dh-horo-meter {
  margin-bottom: 12px;
}
.dh-horo-meter-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
}
.dh-horo-meter-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.dh-horo-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2b853, #f43f5e);
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.dh-horo-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dh-horo-col {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 20px 22px;
}
.dh-horo-col-tag {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dh-gold);
  margin-bottom: 6px;
}
.dh-horo-col-title {
  font-family: var(--dh-serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.dh-horo-col-txt {
  font-family: var(--dh-serif);
  font-size: 1.06rem;
  line-height: 1.62;
  color: #e2e8f0;
  margin: 0;
}

/* ==========================================================================
   4. 6-IN-1 COMPATIBILITY ALTAR + MEDALLIONS + SPARKLER CANVAS
   ========================================================================== */
@keyframes dh-sv-run {
  0% { left: 8%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 88%; opacity: 0; }
}

.dh-sv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.dh-sv-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.dh-sv-tab.is-on {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  border-color: #f472b6;
  color: #fff;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.35);
}

.dh-sv-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: stretch;
}

.dh-sv-night {
  position: relative;
  background:
    radial-gradient(circle at 50% 35%, rgba(236, 72, 153, 0.18), transparent 68%),
    linear-gradient(180deg, #130d26 0%, #090714 100%);
  border: 1px solid rgba(226, 184, 83, 0.32);
  border-radius: 22px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  min-height: 330px;
}

.dh-sv-spark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.dh-sv-medallions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
  margin: 12px auto;
}

.dh-sv-med {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 96px;
}
.dh-sv-med-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(226, 184, 83, 0.24), rgba(15, 11, 29, 0.96));
  border: 1.5px solid rgba(226, 184, 83, 0.65);
  box-shadow: 0 0 24px rgba(226, 184, 83, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  color: #fde68a;
}
.dh-sv-med-lbl {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
}
.dh-sv-med-sub {
  font-size: 0.7rem;
  color: #94a3b8;
}

.dh-sv-bridge {
  position: relative;
  flex: 1;
  height: 2px;
  margin: 0 6px 22px;
  background: linear-gradient(90deg, rgba(226, 184, 83, 0.2), rgba(244, 63, 94, 0.75), rgba(226, 184, 83, 0.2));
}
.dh-sv-bridge-dot {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fde68a;
  box-shadow: 0 0 12px #fde68a, 0 0 20px #f43f5e;
  animation: dh-sv-run 2.4s ease-in-out infinite;
}

.dh-sv-ring-box {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 6px 0;
}
.dh-sv-pct-num {
  font-family: var(--dh-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--dh-gold);
  line-height: 1;
}
.dh-sv-pct-verdict {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 4px;
}

.dh-sv-other-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.dh-sv-other-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 11px 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.dh-sv-other-card:hover {
  border-color: var(--dh-gold);
  background: rgba(226, 184, 83, 0.08);
  transform: translateY(-2px);
}

/* ==========================================================================
   5. LIVE WISH CANDLES ALTAR ("🕯️ Свечи на желание")
   ========================================================================== */
.dh-candles-stage {
  position: relative;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 75% 60% at 50% 75%, rgba(245, 158, 11, 0.14), transparent 70%),
    linear-gradient(180deg, #090712 0%, #120d1e 72%, #1b1328 100%);
  border: 1px solid rgba(226, 184, 83, 0.32);
  overflow: hidden;
  padding: 16px 16px 14px;
}

.dh-candles-canvas-wrap {
  position: relative;
  width: 100%;
  height: 250px;
}
.dh-candles-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.dh-candles-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.dh-candle-wish-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(226, 184, 83, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

/* ==========================================================================
   6. MAGIC GIFT NATAL WHEEL ("☽ Есть ли у вас магический дар?")
   ========================================================================== */
.dh-dar-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: center;
}

.dh-dar-wheel-box {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.18), rgba(10, 8, 20, 0.96) 72%);
  border: 1px solid rgba(226, 184, 83, 0.32);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dh-dar-bars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile 390px & Tablet)
   ========================================================================== */
@media (max-width: 980px) {
  .dh-day4-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dh-horo-split,
  .dh-sv-layout,
  .dh-dar-layout {
    grid-template-columns: 1fr;
  }
  .dh-sv-other-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dh-tr-positions-grid {
    grid-template-columns: 1fr;
  }
}

/* Rich 3-Card Miniature Artwork Fan inside 'Карта дня' Widget */
.dh-day-card-fan-art {
  position: relative;
  width: 112px;
  height: 122px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dh-day-mini-card {
  position: absolute;
  width: 56px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #e2b853;
  background: #120d24;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.65);
  transition: transform 0.32s cubic-bezier(0.22, 0.85, 0.3, 1);
}
.dh-day-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dh-day-mini-card.c-left {
  transform: translateX(-20px) translateY(6px) rotate(-15deg) scale(0.92);
  opacity: 0.88;
}
.dh-day-mini-card.c-right {
  transform: translateX(20px) translateY(6px) rotate(15deg) scale(0.92);
  opacity: 0.88;
}
.dh-day-mini-card.c-center {
  width: 62px;
  height: 96px;
  z-index: 3;
  border-color: #fef08a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.78), 0 0 18px rgba(226, 184, 83, 0.45);
  transform: translateY(-2px);
}
.dh-day-widget:hover .dh-day-mini-card.c-left {
  transform: translateX(-26px) translateY(4px) rotate(-21deg) scale(0.95);
}
.dh-day-widget:hover .dh-day-mini-card.c-right {
  transform: translateX(26px) translateY(4px) rotate(21deg) scale(0.95);
}
.dh-day-widget:hover .dh-day-mini-card.c-center {
  transform: translateY(-7px) scale(1.05);
}

@media (max-width: 640px) {
  .dh-magic-card {
    padding: 18px 14px;
    border-radius: 20px;
  }
  .dh-tr-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    overflow: visible;
  }
  .dh-tr-topic {
    font-size: 0.74rem;
    padding: 6px 10px;
  }
  .dh-tr-cards-stage {
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    gap: 10px;
  }
  .dh-tr-slot-pos {
    font-size: 0.64rem;
    min-height: 30px;
  }
  .dh-tr-fan {
    height: 132px;
    padding: 8px 8px 12px;
  }
  .dh-tr-fan-card {
    width: 56px;
    height: 88px;
    margin-left: -38px;
  }
  .dh-tr-hand-actor {
    width: 112px;
    height: 174px;
  }
  .dh-tr-mystic-hand {
    width: 142px;
    height: 126px;
    right: -54px;
    top: -8px;
  }
  .dh-tr-hold-btn {
    min-width: 0;
    width: 100%;
    padding: 14px 18px;
    font-size: 0.88rem;
  }
  .dh-tr-scale {
    grid-template-columns: repeat(2, 1fr);
  }
  .dh-day4-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .dh-day-widget {
    padding: 14px 10px;
  }
  .dh-day-svg-stage {
    width: 96px;
    height: 106px;
  }
  .dh-horo-right,
  .dh-dar-bars {
    grid-template-columns: 1fr;
  }
  .dh-sv-other-grid {
    grid-template-columns: 1fr;
  }
}
