/*
 * Tarot Matrix Plugin CSS
 * Compatible with Mysta WordPress Theme
 * Uses CSS custom properties that inherit from Mysta where possible
 */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --tm-gold:        #c9a84c;
  --tm-gold-light:  #e8cc7a;
  --tm-deep:        #0a0812;
  --tm-card:        #14102a;
  --tm-card2:       #1a1530;
  --tm-purple:      #6b46a3;
  --tm-text:        #d4c5a9;
  --tm-text-dim:    rgba(212,197,169,0.5);
  --tm-pink:        #e040a0;
  --tm-pink-light:  #f472c8;
  --tm-border:      rgba(201,168,76,0.18);
  --tm-border-bright: rgba(201,168,76,0.4);
  --tm-green:       #4ade80;
}

/* ── Wrap ──────────────────────────────────────────────────────────────────── */
.tarot-calculator-wrap,
.tarot-cabinet,
.tarot-pricing-wrap {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: var(--tm-text);
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 0 60px;
}

/* ── Input card ────────────────────────────────────────────────────────────── */
.tarot-input-card {
  background: linear-gradient(135deg, var(--tm-card2), rgba(107,70,163,0.15));
  border: 1px solid var(--tm-border);
  border-radius: 4px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}
.tarot-input-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--tm-gold), transparent);
}
.tarot-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.tarot-input-group { display: flex; flex-direction: column; }
.tarot-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tm-gold);
  margin-bottom: 10px;
}
.tarot-input, .tarot-date {
  width: 100%;
  background: rgba(10,8,18,0.6);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 3px;
  padding: 14px 18px;
  color: var(--tm-text);
  font-family: inherit;
  font-size: 1.2rem;
  text-align: center;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.tarot-input:focus, .tarot-date:focus {
  border-color: var(--tm-gold);
  box-shadow: 0 0 18px rgba(201,168,76,0.13);
}
.tarot-input::placeholder { color: rgba(212,197,169,0.25); font-style: italic; }
.tarot-date::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(1) saturate(2) hue-rotate(15deg);
  cursor: pointer;
}
.tarot-calc-btn {
  width: 100%;
  padding: 17px;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.28));
  border: 1px solid var(--tm-gold);
  color: var(--tm-gold-light);
  font-family: 'Cinzel Decorative', 'Georgia', serif;
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s;
}
.tarot-calc-btn:hover {
  background: linear-gradient(135deg, rgba(201,168,76,0.28), rgba(201,168,76,0.42));
  box-shadow: 0 0 28px rgba(201,168,76,0.18);
  transform: translateY(-1px);
}

/* ── Divider ───────────────────────────────────────────────────────────────── */
.tarot-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
  opacity: 0.35;
}
.tarot-divider::before,
.tarot-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--tm-gold), transparent);
}
.tarot-divider span { color: var(--tm-gold); font-size: 1.1rem; }

/* ── Result header ─────────────────────────────────────────────────────────── */
.tarot-result-header { text-align: center; margin-bottom: 22px; }
.tarot-result-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--tm-gold-light);
  margin-bottom: 6px;
}
.tarot-result-person { font-size: 1rem; color: var(--tm-text-dim); font-style: italic; }

/* ── PDF button ────────────────────────────────────────────────────────────── */
.tarot-pdf-wrap { display: flex; justify-content: center; margin-bottom: 24px; }
.tarot-pdf-locked-wrap { position: relative; display: inline-block; }
.tarot-pdf-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 3px;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid rgba(201,168,76,0.2);
}
.tarot-pdf-locked {
  background: rgba(20,16,36,0.9);
  color: rgba(212,197,169,0.35);
  cursor: default;
}
.tarot-pdf-unlocked {
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.28));
  color: var(--tm-gold-light);
  border-color: var(--tm-gold);
}
.tarot-pdf-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1a1530, rgba(107,70,163,0.4));
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 4px;
  padding: 14px 18px;
  width: 260px;
  text-align: center;
  z-index: 100;
  font-size: 0.9rem;
  color: var(--tm-text);
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
  line-height: 1.5;
}
.tarot-pdf-locked-wrap:hover .tarot-pdf-tooltip { display: block; }
.tarot-pdf-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(201,168,76,0.35);
}
.tarot-tt-title { color: var(--tm-gold); font-family: 'Cinzel Decorative', serif; font-size: 0.75rem; margin-bottom: 6px; }
.tarot-tt-price { color: var(--tm-pink-light); font-size: 1.1rem; font-weight: 600; margin: 8px 0 10px; }
.tarot-tt-btn {
  display: block;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(224,64,160,0.25), rgba(224,64,160,0.42));
  border: 1px solid var(--tm-pink);
  color: var(--tm-pink-light);
  border-radius: 3px;
  text-decoration: none;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  transition: all 0.25s;
}
.tarot-tt-btn:hover { background: linear-gradient(135deg, rgba(224,64,160,0.4), rgba(224,64,160,0.58)); }

/* ── Arcana display ────────────────────────────────────────────────────────── */
.tarot-arcana-display {
  text-align: center;
  padding: 44px 28px;
  background: linear-gradient(160deg, rgba(107,70,163,0.18), rgba(10,8,18,0.8));
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}
.tarot-arcana-display::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--tm-gold), transparent);
}
.tarot-formula { font-size: 1rem; color: rgba(212,197,169,0.45); margin-bottom: 24px; letter-spacing: 0.05em; }
.tarot-formula span { color: var(--tm-gold); }
.tarot-arcana-number {
  font-family: 'Cinzel Decorative', serif;
  font-size: 4.5rem;
  color: var(--tm-gold);
  line-height: 1;
  text-shadow: 0 0 50px rgba(201,168,76,0.45);
  margin-bottom: 8px;
}
.tarot-arcana-symbol { font-size: 2.2rem; display: block; margin-bottom: 20px; }
.tarot-arcana-name { font-family: 'Cinzel Decorative', serif; font-size: 1.5rem; color: var(--tm-gold-light); margin-bottom: 6px; }
.tarot-desc-block {
  background: rgba(10,8,18,0.5);
  border-left: 2px solid rgba(201,168,76,0.4);
  padding: 20px 24px;
  text-align: left;
  border-radius: 0 3px 3px 0;
  margin-bottom: 20px;
}
.tarot-desc-title { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tm-gold); margin-bottom: 10px; }
.tarot-desc-text { font-size: 1.05rem; line-height: 1.8; font-weight: 300; font-style: italic; }
.tarot-keywords { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.tarot-keyword {
  border: 1px solid rgba(201,168,76,0.28);
  padding: 3px 12px;
  font-size: 0.82rem;
  color: var(--tm-gold-light);
  border-radius: 2px;
}

/* ── Matrix ────────────────────────────────────────────────────────────────── */
.tarot-matrix-wrap {
  background: linear-gradient(160deg, rgba(6,4,14,0.96), rgba(26,21,48,0.88));
  border: 1px solid var(--tm-border);
  border-radius: 4px;
  padding: 24px 16px 20px;
  margin: 8px 0;
  position: relative;
}
.tarot-matrix-wrap::before {
  content: '';
  position: absolute;
  top: -1px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--tm-gold), transparent);
}
.tarot-matrix-title {
  text-align: center;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.82rem;
  color: var(--tm-gold);
  letter-spacing: 0.22em;
  margin-bottom: 16px;
}
.tarot-matrix-canvas-box { display: flex; justify-content: center; }
#tarotMatrixCanvas { max-width: 100%; height: auto; display: block; }
.tarot-matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(201,168,76,0.1);
}
.tarot-legend-item { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: rgba(212,197,169,0.55); }
.tarot-legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ── Accordion ─────────────────────────────────────────────────────────────── */
.tarot-accordion { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.tarot-acc-item {
  border: 1px solid var(--tm-border);
  border-radius: 3px;
  overflow: hidden;
  background: rgba(26,21,48,0.7);
  transition: border-color 0.3s;
}
.tarot-acc-item.open { border-color: var(--tm-border-bright); }
.tarot-acc-ai { border-color: rgba(224,64,160,0.3); background: rgba(26,21,48,0.9); }
.tarot-acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tm-text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  transition: background 0.2s;
}
.tarot-acc-header:hover { background: rgba(201,168,76,0.05); }
.tarot-acc-ai .tarot-acc-header { background: linear-gradient(90deg, rgba(224,64,160,0.1), transparent); }
.tarot-acc-left { display: flex; align-items: center; gap: 10px; }
.tarot-acc-icon { font-size: 1rem; opacity: 0.8; }
.tarot-acc-arrow { color: var(--tm-gold); font-size: 0.9rem; transition: transform 0.3s; opacity: 0.7; }
.tarot-acc-arrow-lock { font-size: 0.9rem; opacity: 0.6; }
.tarot-acc-item.open .tarot-acc-arrow { transform: rotate(180deg); }
.tarot-acc-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.tarot-acc-item.open .tarot-acc-body { max-height: 1000px; }
.tarot-acc-content { padding: 4px 22px 22px; font-size: 1rem; line-height: 1.85; font-weight: 300; }
.tarot-acc-content p { margin-bottom: 12px; }
.tarot-ai-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--tm-pink), #9b59b6);
  color: #fff;
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 5px;
}

/* ── Loading spinner ───────────────────────────────────────────────────────── */
.tarot-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(212,197,169,0.45);
  font-style: italic;
  padding: 6px 0 10px;
}
.tarot-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(201,168,76,0.2);
  border-top-color: var(--tm-gold);
  border-radius: 50%;
  animation: tmSpin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes tmSpin { to { transform: rotate(360deg); } }

/* ── Save / Reset ──────────────────────────────────────────────────────────── */
.tarot-save-row { display: flex; justify-content: center; margin-top: 24px; }
.tarot-save-btn {
  padding: 13px 32px;
  background: linear-gradient(135deg, rgba(107,70,163,0.25), rgba(107,70,163,0.42));
  border: 1px solid var(--tm-purple);
  color: #c084fc;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s;
  text-decoration: none;
}
.tarot-save-btn:hover {
  background: linear-gradient(135deg, rgba(107,70,163,0.42), rgba(107,70,163,0.6));
  box-shadow: 0 0 22px rgba(107,70,163,0.28);
  color: #e9d5ff;
}
.tarot-reset-btn {
  display: block;
  margin: 20px auto 0;
  background: none;
  border: none;
  color: rgba(212,197,169,0.35);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.tarot-reset-btn:hover { color: var(--tm-gold); }

/* ── Corners ───────────────────────────────────────────────────────────────── */
.tarot-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(201,168,76,0.3);
  border-style: solid;
}
.tarot-corner.tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.tarot-corner.tr { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.tarot-corner.bl { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.tarot-corner.br { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

/* ── AI Modal ──────────────────────────────────────────────────────────────── */
.tarot-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,3,12,0.88);
  backdrop-filter: blur(8px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.tarot-modal-overlay.visible { display: flex; }
.tarot-modal-box {
  background: linear-gradient(160deg, #14102a, rgba(107,70,163,0.2));
  border: 1px solid rgba(224,64,160,0.4);
  border-radius: 8px;
  padding: 36px 28px 28px;
  max-width: 680px;
  width: 100%;
  text-align: center;
  position: relative;
}
.tarot-modal-box::before {
  content: '';
  position: absolute;
  top: -1px; left: 15%; right: 15%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--tm-pink), transparent);
}
.tarot-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  color: rgba(212,197,169,0.3);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
}
.tarot-modal-close:hover { color: rgba(212,197,169,0.7); }
.tarot-modal-icon { font-size: 2.4rem; margin-bottom: 10px; display: block; }
.tarot-modal-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.2rem;
  color: var(--tm-gold-light);
  margin-bottom: 6px;
}
.tarot-modal-sub { font-size: 0.95rem; color: var(--tm-text-dim); font-style: italic; margin-bottom: 20px; }
.tarot-modal-auth-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(201,168,76,0.32));
  border: 1px solid var(--tm-gold);
  color: var(--tm-gold-light);
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.3s;
}

/* ── Chat ──────────────────────────────────────────────────────────────────── */
.tarot-chat-messages {
  min-height: 80px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 10px;
  text-align: left;
  margin-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.2) transparent;
}
.tarot-msg { padding: 11px 14px; border-radius: 3px; font-size: 0.97rem; line-height: 1.7; }
.tarot-msg-user {
  background: rgba(107,70,163,0.2);
  border: 1px solid rgba(107,70,163,0.3);
  align-self: flex-end;
  max-width: 85%;
  font-style: italic;
}
.tarot-msg-ai {
  background: rgba(10,8,18,0.6);
  border-left: 2px solid var(--tm-pink);
  max-width: 100%;
}
.tarot-msg-label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tm-pink-light); margin-bottom: 5px; }
.tarot-chat-row { display: flex; gap: 8px; }
.tarot-chat-input {
  flex: 1;
  background: rgba(10,8,18,0.6);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 3px;
  padding: 11px 14px;
  color: var(--tm-text);
  font-family: inherit;
  font-size: 0.97rem;
  outline: none;
  transition: border-color 0.3s;
}
.tarot-chat-input:focus { border-color: var(--tm-pink); }
.tarot-chat-input::placeholder { color: rgba(212,197,169,0.28); font-style: italic; }
.tarot-chat-send {
  padding: 11px 18px;
  background: linear-gradient(135deg, rgba(224,64,160,0.2), rgba(224,64,160,0.38));
  border: 1px solid var(--tm-pink);
  color: var(--tm-pink-light);
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.25s;
  white-space: nowrap;
}
.tarot-chat-send:hover { background: linear-gradient(135deg, rgba(224,64,160,0.38), rgba(224,64,160,0.55)); }
.tarot-chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Pricing Plans ─────────────────────────────────────────────────────────── */
.tarot-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.tarot-plan {
  background: rgba(10,8,18,0.7);
  border: 1px solid var(--tm-border);
  border-radius: 8px;
  padding: 18px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.tarot-plan-popular { border-color: rgba(107,70,163,0.5); background: rgba(107,70,163,0.08); }
.tarot-plan-premium { border-color: rgba(201,168,76,0.5); background: rgba(201,168,76,0.05); }
.tarot-plan-current { border-color: rgba(74,222,128,0.4); }
.tarot-current-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tm-green);
  color: #0a0812;
  font-size: 0.62rem;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.tarot-plan-tag { font-size: 0.68rem; color: rgba(212,197,169,0.5); letter-spacing: 0.06em; }
.tarot-plan-title { font-size: 0.92rem; color: #fff; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.tarot-plan-q { font-family: 'Cinzel Decorative', serif; font-size: 1rem; color: var(--tm-gold-light); }
.tarot-plan-price { display: flex; align-items: baseline; gap: 5px; font-size: 0.9rem; color: rgba(212,197,169,0.4); }
.tarot-plan-price del { font-size: 0.82rem; }
.tarot-plan-price strong { font-family: 'Cinzel Decorative', serif; font-size: 1.55rem; color: #fff; }
.tarot-plan-price span { font-size: 0.8rem; color: rgba(212,197,169,0.5); }
.tarot-plan-btn, .tarot-btn-owned {
  display: block;
  padding: 10px 8px;
  background: rgba(107,70,163,0.3);
  border: 1px solid rgba(107,70,163,0.5);
  color: #c084fc;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.25s;
  text-align: center;
  text-decoration: none;
  margin-top: auto;
}
.tarot-plan-btn:hover { background: rgba(107,70,163,0.5); }
.tarot-plan-btn-pop { background: linear-gradient(135deg, rgba(107,70,163,0.45), rgba(139,92,246,0.6)); border-color: #8b5cf6; color: #e9d5ff; }
.tarot-plan-btn-pop:hover { box-shadow: 0 0 18px rgba(139,92,246,0.35); color: #fff; }
.tarot-plan-btn-gold { background: linear-gradient(135deg, #ca8a04, #f59e0b); border-color: #f59e0b; color: #1a1200; font-weight: 700; }
.tarot-plan-btn-gold:hover { background: linear-gradient(135deg, #d97706, #fbbf24); box-shadow: 0 0 20px rgba(245,158,11,0.35); }
.tarot-btn-owned { background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.3); color: var(--tm-green); cursor: default; }
.tarot-btn-owned:hover { background: rgba(74,222,128,0.1); box-shadow: none; }

/* ── Cabinet ───────────────────────────────────────────────────────────────── */
.tarot-cabinet { max-width: 900px; }

.tarot-cab-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.tarot-stat {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  padding: 18px 14px;
  text-align: center;
}
.tarot-stat-num {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.9rem;
  color: var(--tm-gold);
  margin-bottom: 4px;
}
.tarot-stat-label { font-size: 0.76rem; color: var(--tm-text-dim); }
.tarot-stat-pink .tarot-stat-num { color: var(--tm-pink-light); }

.tarot-tariff-banner {
  background: linear-gradient(135deg, rgba(107,70,163,0.18), rgba(201,168,76,0.07));
  border: 1px solid rgba(107,70,163,0.38);
  border-radius: 6px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.tarot-tariff-name { font-family: 'Cinzel Decorative', serif; font-size: 1rem; color: var(--tm-gold-light); margin-bottom: 3px; }
.tarot-tariff-sub { font-size: 0.82rem; color: var(--tm-text-dim); }
.tarot-tariff-q { display: flex; align-items: center; gap: 8px; }
.tarot-tariff-qnum { font-family: 'Cinzel Decorative', serif; font-size: 1.5rem; color: var(--tm-pink-light); }
.tarot-tariff-qlabel { font-size: 0.76rem; color: var(--tm-text-dim); line-height: 1.3; }
.tarot-tariff-upgrade {
  padding: 9px 18px;
  background: linear-gradient(135deg, rgba(201,168,76,0.14), rgba(201,168,76,0.26));
  border: 1px solid var(--tm-gold);
  color: var(--tm-gold-light);
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
}
.tarot-tariff-upgrade:hover { background: linear-gradient(135deg, rgba(201,168,76,0.26), rgba(201,168,76,0.4)); color: var(--tm-gold-light); }

.tarot-cab-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.tarot-cab-tab {
  padding: 9px 18px;
  background: rgba(10,8,18,0.55);
  border: 1px solid var(--tm-border);
  color: var(--tm-text-dim);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}
.tarot-cab-tab.active { background: rgba(201,168,76,0.1); border-color: var(--tm-gold); color: var(--tm-gold-light); }
.tarot-tab-badge {
  display: inline-block;
  background: rgba(224,64,160,0.3);
  color: var(--tm-pink-light);
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 20px;
  margin-left: 4px;
}
.tarot-cab-new-btn {
  margin-left: auto;
  padding: 9px 16px;
  background: linear-gradient(135deg, rgba(224,64,160,0.18), rgba(224,64,160,0.3));
  border: 1px solid var(--tm-pink);
  color: var(--tm-pink-light);
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.25s;
}
.tarot-cab-new-btn:hover { background: linear-gradient(135deg, rgba(224,64,160,0.3), rgba(224,64,160,0.46)); color: #fff; }

.tarot-cab-panel { display: none; }
.tarot-cab-panel.active { display: block; }

.tarot-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.tarot-calc-card {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
  position: relative;
}
.tarot-calc-card:hover { border-color: var(--tm-border-bright); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.tarot-calc-card-type {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 20px;
}
.tarot-type-personal { background: rgba(107,70,163,0.25); color: #c084fc; border: 1px solid rgba(107,70,163,0.3); }
.tarot-type-other    { background: rgba(224,64,160,0.2); color: var(--tm-pink-light); border: 1px solid rgba(224,64,160,0.3); }
.tarot-type-pair     { background: rgba(234,179,8,0.15); color: #fde047; border: 1px solid rgba(234,179,8,0.25); }
.tarot-calc-card-arc {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tm-purple), rgba(10,8,18,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem;
  color: var(--tm-gold);
  border: 1px solid rgba(201,168,76,0.28);
}
.tarot-calc-card-name { font-size: 1rem; color: var(--tm-text); font-weight: 600; }
.tarot-calc-card-dob { font-size: 0.8rem; color: var(--tm-text-dim); }
.tarot-calc-card-arcname { font-size: 0.82rem; color: var(--tm-gold-light); font-style: italic; }
.tarot-calc-card-date { font-size: 0.72rem; color: rgba(212,197,169,0.3); }
.tarot-calc-card-btns { display: flex; gap: 6px; margin-top: 4px; }
.tarot-card-btn {
  flex: 1;
  padding: 7px 6px;
  background: rgba(10,8,18,0.5);
  border: 1px solid var(--tm-border);
  color: var(--tm-text-dim);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
}
.tarot-card-btn:hover { border-color: var(--tm-gold); color: var(--tm-gold); }
.tarot-card-btn-pdf { border-color: rgba(224,64,160,0.25); color: var(--tm-pink-light); }
.tarot-card-btn-del { border-color: rgba(248,113,113,0.2); color: rgba(248,113,113,0.4); flex: 0; padding: 7px 10px; }
.tarot-card-btn-del:hover { border-color: rgba(248,113,113,0.5); color: #f87171; background: rgba(248,113,113,0.06); }
.tarot-add-card {
  border: 1px dashed rgba(201,168,76,0.22);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  min-height: 160px;
}
.tarot-add-card:hover { border-color: rgba(201,168,76,0.45); background: rgba(201,168,76,0.04); }
.tarot-add-icon { font-size: 1.8rem; opacity: 0.45; }
.tarot-add-text { font-size: 0.88rem; color: var(--tm-text-dim); font-style: italic; }

.tarot-ai-history { display: flex; flex-direction: column; gap: 16px; }
.tarot-ai-item { background: var(--tm-card); border: 1px solid var(--tm-border); border-radius: 5px; padding: 16px 18px; }
.tarot-ai-q { font-size: 0.97rem; color: var(--tm-text); margin-bottom: 10px; font-style: italic; }
.tarot-ai-a { font-size: 0.95rem; color: rgba(212,197,169,0.8); border-left: 2px solid var(--tm-pink); padding-left: 12px; line-height: 1.7; }
.tarot-ai-date { font-size: 0.72rem; color: rgba(212,197,169,0.3); margin-top: 8px; }

.tarot-plans-account { margin-top: 0; }
.tarot-pdf-upsell-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 6px;
  padding: 14px 20px;
  margin-top: 16px;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: rgba(212,197,169,0.8);
}
.tarot-pdf-upsell-price { font-family: 'Cinzel Decorative', serif; font-size: 1rem; color: var(--tm-gold-light); }

.tarot-empty { text-align: center; padding: 40px 20px; color: var(--tm-text-dim); }
.tarot-empty-icon { font-size: 2.8rem; margin-bottom: 12px; opacity: 0.4; }
.tarot-empty a { color: var(--tm-gold); }

/* ── Admin ─────────────────────────────────────────────────────────────────── */
.tarot-admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.tarot-admin-card { background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 20px; }
.tarot-admin-card h2 { margin-bottom: 10px; font-size: 1rem; }
.tarot-admin-card label { display: block; font-weight: 600; margin-bottom: 5px; margin-top: 10px; }
.tarot-admin-card.full { grid-column: 1 / -1; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .tarot-input-row       { grid-template-columns: 1fr; }
  .tarot-input-card      { padding: 24px 18px; }
  .tarot-arcana-number   { font-size: 3.2rem; }
  .tarot-chat-row        { flex-direction: column; }
  .tarot-plans-grid      { grid-template-columns: 1fr; }
  .tarot-cab-stats       { grid-template-columns: repeat(2, 1fr); }
  .tarot-calc-grid       { grid-template-columns: 1fr; }
  .tarot-tariff-banner   { flex-direction: column; text-align: center; }
  .tarot-cab-new-btn     { margin-left: 0; }
  .tarot-pdf-upsell-banner { flex-direction: column; text-align: center; }
}

/* ── Content gate ──────────────────────────────────────────────────────────── */
.tarot-gate-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(107,70,163,0.12);
  border: 1px solid rgba(107,70,163,0.3);
  border-radius: 4px;
  font-size: 0.95rem;
  color: rgba(212,197,169,0.8);
  flex-wrap: wrap;
}
.tarot-gate-btn {
  display: inline-block;
  padding: 7px 16px;
  background: linear-gradient(135deg,rgba(201,168,76,0.15),rgba(201,168,76,0.28));
  border: 1px solid var(--tm-gold);
  color: var(--tm-gold-light);
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.25s;
  margin-left: auto;
}
.tarot-gate-btn:hover { background: linear-gradient(135deg,rgba(201,168,76,0.28),rgba(201,168,76,0.42)); color: var(--tm-gold-light); }

@media print {
  .tarot-acc-content, .tarot-arcana-display, .tarot-matrix-wrap { display: none !important; }
  body::after {
    content: 'Цей контент захищено. Придбайте PDF-звіт на сайті.';
    display: block;
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #333;
  }
}

/* ── Payment / Pricing additions ───────────────────────────────────────────── */
.tarot-plan-badge {
  display: inline-block;
  background: rgba(107,70,163,0.4);
  color: #c084fc;
  font-size: .62rem;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: .08em;
}
.tarot-badge-gold { background: rgba(201,168,76,0.25); color: var(--tm-gold-light); }
.tarot-plan-price-row { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; }
.tarot-plan-old { font-size: .9rem; color: rgba(212,197,169,0.35); text-decoration: line-through; }
.tarot-plan-new { font-family: 'Cinzel Decorative', serif; font-size: 1.7rem; color: #fff; }
.tarot-plan-cur { font-size: .8rem; color: var(--tm-text-dim); }
.tarot-plan-economy { font-size: .72rem; color: #4ade80; margin-bottom: 10px; }
.tarot-plan-features { list-style: none; padding: 0; margin: 10px 0 16px; display: flex; flex-direction: column; gap: 5px; }
.tarot-plan-features li { font-size: .82rem; color: rgba(212,197,169,.78); padding-left: 18px; position: relative; line-height: 1.4; }
.tarot-plan-features li::before { content: '✓'; position: absolute; left: 0; color: #4ade80; }
.tarot-plan-features li.gift::before { content: '🎁'; }
.tarot-plan-q { font-family: 'Cinzel Decorative', serif; font-size: 1rem; color: var(--tm-gold-light); margin-bottom: 6px; }
