/* =========================================================
   PTK FORTUNE ORACLE - CLEAN LUXURY FULL FILE
   SAFE MODE CLEANUP
   - Premium dark / muted gold
   - No stacked borders
   - Use shadow, spacing, background depth instead of border
   - Fortune / Phone / Feng Shui / Face / Palm / History / Tarot
========================================================= */


/* =========================================================
   01) PAGE BACKGROUND
========================================================= */

body.ptk-fortune-horoscope-body {
  background-color: #050403;
}

body.ptk-fortune-horoscope-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at top, rgba(196,154,61,.16), rgba(0,0,0,.72) 38%, rgba(0,0,0,.94) 100%),
    var(--ptk-fortune-body-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .88;
}


/* =========================================================
   02) MAIN WRAPPER / PAGE LAYOUT
========================================================= */

.ptk-fortune-wrap {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 14px;
  color: #f7ead0;
}

.ptk-fortune-page {
  position: relative;
  margin: 0 auto;
  border-radius: 22px;
  overflow: visible;
  min-height: 520px;
}

.ptk-fortune-page::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(245,208,97,.055), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(255,255,255,.035), transparent 36%);
  filter: blur(34px);
  opacity: .85;
}

.ptk-fortune-page-overlay {
  position: relative;
  min-height: 520px;
  padding: 22px 0;
}

.ptk-fortune-page-inner {
  position: relative;
  z-index: 1;
  padding: 18px;
  border: 0;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(14,12,9,.82), rgba(5,4,3,.86));
  box-shadow:
    0 24px 70px rgba(0,0,0,.58),
    inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(10px);
}


/* =========================================================
   03) SHARED CARD BASE
========================================================= */

.ptk-fortune-hero,
.ptk-fortune-form,
.ptk-fortune-result-card,
.ptk-fortune-box,
.ptk-fortune-history-item,
.ptk-fortune-tab-panel,
.ptk-fortune-book-card {
  border: 0;
  border-radius: 18px;
  background:#212121;
}


/* =========================================================
   04) HERO
========================================================= */

.ptk-fortune-hero {
  padding: 28px 22px;
  margin-bottom: 16px;
  text-align: center;
}

.ptk-fortune-page-hero {
  background: transparent;
  box-shadow: none;
  border-radius: 18px;
  padding: 18px 12px 20px;
}

.ptk-fortune-hero h2 {
  margin: 12px 0 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .01em;
}

.ptk-fortune-hero p {
  margin: 0;
  color: rgba(232,218,190,.76);
}


/* =========================================================
   05) BADGE / EYEBROW
========================================================= */

.ptk-fortune-eyebrow,
.ptk-fortune-badge {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(196,154,61,.09);
  color: #dfbf72;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

.ptk-fortune-badge.is-soft {
  background: rgba(255,255,255,.055);
  color: #ead9b8;
}


/* =========================================================
   06) TABS
========================================================= */

.ptk-fortune-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.ptk-fortune-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: rgba(244,229,198,.78);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
  transition:
    background .42s cubic-bezier(.22,.61,.36,1),
    color .42s cubic-bezier(.22,.61,.36,1),
    transform .42s cubic-bezier(.22,.61,.36,1),
    box-shadow .42s cubic-bezier(.22,.61,.36,1);
}

.ptk-fortune-tab:hover,
.ptk-fortune-tab:focus {
  color: #fff6df;
  background: rgba(196,154,61,.10);
  transform: translateY(-1px);
}

.ptk-fortune-tab.is-active {
  color: #16110a;
  background: linear-gradient(135deg, #b88d32, #e7c76a);
  box-shadow: 0 10px 26px rgba(196,154,61,.16);
}

.ptk-fortune-tab-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 20px;
  filter: drop-shadow(0 0 8px rgba(245,208,97,.14));
}

.ptk-fortune-tab-emoji {
  flex: 0 0 auto;
  line-height: 1;
}

.ptk-fortune-tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* =========================================================
   07) TAB PANEL / FORM
========================================================= */

.ptk-fortune-tab-panel {
  padding: 18px;
}

.ptk-fortune-tab-panel .ptk-fortune-form {
  margin-bottom: 0;
}

.ptk-fortune-form,
.ptk-fortune-result-card,
.ptk-fortune-box {
  padding: 20px;
  margin-bottom: 18px;
}

.ptk-fortune-field {
  margin-bottom: 14px;
}

.ptk-fortune-field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  color: #dfbf72;
}

.ptk-fortune-field input,
.ptk-fortune-field select,
.ptk-fortune-field textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px;

  background: rgba(12,10,8,.92);
  color: #f3e6c8;

  box-sizing: border-box;
  outline: none;

  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.015);

  transition:
    background .42s cubic-bezier(.22,.61,.36,1),
    box-shadow .42s cubic-bezier(.22,.61,.36,1);
}

.ptk-fortune-field input:focus,
.ptk-fortune-field select:focus,
.ptk-fortune-field textarea:focus {

  background: rgba(16,14,11,.96);

  box-shadow:
    0 0 0 1px rgba(196,154,61,.12),
    0 0 18px rgba(196,154,61,.08);
}

.ptk-fortune-field small {
  display: block;
  margin-top: 6px;
  color: #b9aa8b;
}

.ptk-fortune-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}


/* =========================================================
   08) SELECT OPTION VISIBILITY FIX
========================================================= */

.ptk-fortune-field select,
.ptk-fortune-field select option,
.ptk-fortune-field select optgroup {
  background-color: #14120e;
  color: #f3e6c8;
}

.ptk-fortune-field select option:checked,
.ptk-fortune-field select option:hover {
  background-color: #241c11;
  color: #dfbf72;
}

/* =========================================================
   09) NOTICE / NOTE BOX
========================================================= */

.ptk-fortune-phone-note,
.ptk-fortune-notice {
  margin: 0 0 14px;
  padding: 13px 14px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  color: #ead9b8;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}


/* =========================================================
   10) BUTTON
========================================================= */

.ptk-fortune-submit {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  cursor: pointer;
  background: linear-gradient(135deg, #b8892f, #e2c364);
  color: #17120a;
  font-weight: 700;
  font-size: 16px;
  box-shadow:
    0 12px 30px rgba(196,154,61,.18),
    inset 0 1px 0 rgba(255,255,255,.22);
  transition:
    transform .42s cubic-bezier(.22,.61,.36,1),
    box-shadow .42s cubic-bezier(.22,.61,.36,1),
    filter .42s cubic-bezier(.22,.61,.36,1);
}

.ptk-fortune-submit:hover,
.ptk-fortune-submit:focus {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 16px 34px rgba(196,154,61,.22),
    inset 0 1px 0 rgba(255,255,255,.3);
}


/* =========================================================
   11) RESULT CARD
========================================================= */

.ptk-fortune-result-card {
  margin-top: 18px;
}

.ptk-fortune-result-head {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ptk-fortune-result-card h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 22px;
}

.ptk-fortune-content {
  color: rgba(239,226,200,.86);
  line-height: 1.9;
}

.ptk-fortune-lucky-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.ptk-fortune-lucky-grid > div {
  padding: 13px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.ptk-fortune-lucky-grid strong {
  display: block;
  color: #dfbf72;
  margin-bottom: 5px;
}

.ptk-fortune-lucky-grid span {
  color: #fff;
}

/* =========================================================
   12) HISTORY
========================================================= */

.ptk-fortune-history-head {
  margin: 0 0 16px;
  padding: 4px 2px 2px;
}

.ptk-fortune-history-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 22px;
}

.ptk-fortune-history-head p {
  margin: 0;
  color: #b9aa8b;
  font-size: 14px;
}

.ptk-fortune-history-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.ptk-fortune-history-main {
  min-width: 0;
}

.ptk-fortune-history-item strong {
  display: block;
  color: #dfbf72;
  line-height: 1.45;
}

.ptk-fortune-history-item small {
  display: block;
  color: #b9aa8b;
  margin: 6px 0 10px;
}

.ptk-fortune-history-item p {
  margin: 0;
  color: rgba(239,226,200,.86);
  line-height: 1.75;
}

.ptk-fortune-history-delete {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #f1c7b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background .32s ease, color .32s ease;
}

.ptk-fortune-history-delete:hover,
.ptk-fortune-history-delete:focus {
  background: rgba(255,70,70,.16);
  color: #fff;
}


/* =========================================================
   13) HISTORY TOOLBAR / BULK DELETE
========================================================= */

.ptk-fortune-history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.ptk-fortune-history-check-all,
.ptk-fortune-history-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ead9b8;
  font-size: 13px;
  font-weight: 700;
}

.ptk-fortune-history-check-all input,
.ptk-fortune-history-select input {
  width: 16px;
  height: 16px;
  accent-color: #dfbf72;
}

.ptk-fortune-history-select {
  flex: 0 0 auto;
  padding-top: 2px;
}

.ptk-fortune-history-bulk-delete {
  border: 0;
  border-radius: 999px;
  min-height: 36px;
  padding: 8px 14px;
  cursor: pointer;
  background: rgba(255,70,70,.16);
  color: #fff;
  font-weight: 800;
}

.ptk-fortune-history-bulk-delete:disabled {
  cursor: not-allowed;
  opacity: .42;
  background: rgba(255,255,255,.08);
  color: #b9aa8b;
}


/* =========================================================
   14) HISTORY READ FULL
========================================================= */

.ptk-fortune-history-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 10px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(196,154,61,.12);
  color: #dfbf72;
  font-size: 13px;
  font-weight: 700;
  transition: background .32s ease, color .32s ease;
}

.ptk-fortune-history-read:hover,
.ptk-fortune-history-read:focus {
  background: rgba(245,208,97,.18);
  color: #fff;
}

.ptk-fortune-history-full {
  margin-top: 14px;
  padding: 14px;
  border: 0;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.ptk-fortune-history-full[hidden] {
  display: none !important;
}

.ptk-fortune-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.ptk-fortune-history-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(196,154,61,.10);
  color: #dfbf72;
  font-size: 12px;
  font-weight: 700;
}

.ptk-fortune-history-full-content {
  color: rgba(239,226,200,.86);
  line-height: 1.9;
}

.ptk-fortune-history-full-content p {
  margin: 0 0 10px;
}

.ptk-fortune-history-full-content p:last-child {
  margin-bottom: 0;
}

.ptk-fortune-history-lucky {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ptk-fortune-history-lucky > div,
.ptk-fortune-history-input {
  padding: 11px 12px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.ptk-fortune-history-lucky strong,
.ptk-fortune-history-input strong {
  display: block;
  margin-bottom: 4px;
  color: #dfbf72;
}

.ptk-fortune-history-lucky span,
.ptk-fortune-history-input span {
  color: #fff;
  line-height: 1.7;
}

.ptk-fortune-history-input {
  margin-top: 10px;
}


/* =========================================================
   15) TAROT
========================================================= */

.ptk-tarot-form .ptk-tarot-control-grid {
  align-items: end;
}

.ptk-tarot-mini-box {
  min-height: 45px;
  display: flex;
  align-items: center;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  color: #ead9b8;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.ptk-tarot-result-card {
  overflow: hidden;
}

.ptk-tarot-question {
  margin: -4px 0 16px;
  color: #d8c9a9;
  line-height: 1.7;
}

.ptk-tarot-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.ptk-tarot-card-grid.count-1 {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}

.ptk-tarot-card-grid.count-10,
.ptk-tarot-card-grid.count-12,
.ptk-tarot-card-grid.spread-ten,
.ptk-tarot-card-grid.spread-twelve {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ptk-tarot-card-grid.spread-twelve {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ptk-tarot-card {
  position: relative;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(180deg,
    rgba(16,14,11,.78),
    rgba(5,5,5,.88));
  box-shadow:
    0 14px 42px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.025);
  min-height: 275px;

  perspective: 1200px;
  transform: translateY(14px) scale(.98);
  opacity: 0;

  transition:
    opacity .35s ease,
    transform .35s ease,
    box-shadow .25s ease;

  transition-delay: calc(var(--ptk-card-index, 0) * 90ms);
}

.ptk-tarot-result-card.is-revealed .ptk-tarot-card,
.ptk-tarot-result-card:not(.js-enabled) .ptk-tarot-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ptk-tarot-card:hover {
  box-shadow:
    0 22px 54px rgba(0,0,0,.42),
    0 0 28px rgba(245,208,97,.055);
}

.ptk-tarot-card.is-reversed .ptk-tarot-card-face {
  transform: rotate(180deg);
}

.ptk-tarot-position,
.ptk-tarot-orientation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.ptk-tarot-position {
  background: rgba(196,154,61,.10);
  color: #dfbf72;
  margin-bottom: 10px;
}

.ptk-tarot-orientation {
  background: rgba(255,255,255,.05);
  color: #d8c9a9;
  margin: 12px 0 8px;
}

/* =========================================================
   16) TAROT CARD FACE / INNER
========================================================= */

.ptk-tarot-card-inner {
  position: relative;
  min-height: 100%;
  transform-style: preserve-3d;
  transition: transform .72s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--ptk-card-index, 0) * 90ms);
}

.ptk-tarot-result-card.js-enabled .ptk-tarot-card-inner {
  transform: rotateY(180deg);
}

.ptk-tarot-result-card.js-enabled.is-revealed .ptk-tarot-card-inner {
  transform: rotateY(0deg);
}

.ptk-tarot-card-front,
.ptk-tarot-card-back {
  min-height: 247px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ptk-tarot-card-front {
  position: relative;
  z-index: 2;
}

.ptk-tarot-card-face {
  height: auto;
  min-height: 210px;
  padding: 12px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  border: 0;
  border-radius: 16px;

  background:
    linear-gradient(135deg, rgba(196,154,61,.12), rgba(245,208,97,.04)),
    rgba(0,0,0,.26);

  transition: transform .25s ease;
}

.ptk-tarot-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 6px;
}

.ptk-tarot-card-face strong {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
}

.ptk-tarot-card-face span {
  display: block;
  margin-top: 4px;
  color: #dfbf72;
  font-size: 13px;
  font-weight: 700;
}

.ptk-tarot-card p {
  margin: 0;
  color: rgba(239,226,200,.86);
  line-height: 1.8;
  font-size: 14px;
}


/* =========================================================
   17) TAROT CARD BACK
========================================================= */

.ptk-tarot-card-back {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  overflow: hidden;

  border: 0;
  border-radius: 16px;

  background:
    linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.52)),
    var(--ptk-tarot-back-image),
    radial-gradient(circle at top, rgba(245,208,97,.18), transparent 42%),
    linear-gradient(135deg, rgba(41,28,9,.98), rgba(4,4,4,.98));

  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;

  color: #dfbf72;
  transform: rotateY(180deg);
}

.ptk-tarot-back-symbol {
  width: 54px;
  height: 54px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 999px;

  background: rgba(0,0,0,.24);

  box-shadow:
    0 0 22px rgba(245,208,97,.08),
    inset 0 1px 0 rgba(255,255,255,.04);

  font-size: 24px;
}

.ptk-tarot-card-back span {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ead9b8;
}

.ptk-tarot-back-art {
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.ptk-tarot-card-back .ptk-tarot-back-symbol,
.ptk-tarot-card-back span {
  position: relative;
  z-index: 2;
}


/* =========================================================
   18) TAROT IMAGE
========================================================= */

.ptk-tarot-card-image {
  width: 100%;
  max-width: 118px;
  aspect-ratio: 2 / 3;

  object-fit: cover;
  display: block;

  margin: 0 auto 10px;

  border: 0;
  border-radius: 12px;

  background: #080604;

  box-shadow:
    0 14px 28px rgba(0,0,0,.38),
    0 0 18px rgba(245,208,97,.045);
}


/* =========================================================
   19) TAROT SUMMARY
========================================================= */

.ptk-tarot-summary {
  margin-top: 16px;
  padding: 16px;

  border: 0;
  border-radius: 16px;

  background: rgba(255,255,255,.03);

  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.ptk-tarot-summary strong {
  display: block;
  color: #dfbf72;
  margin-bottom: 6px;
}

.ptk-tarot-summary p {
  margin: 0;
  color: rgba(239,226,200,.86);
  line-height: 1.85;
}


/* =========================================================
   20) TAROT REVEAL EFFECT
========================================================= */

.ptk-tarot-result-card::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 220px;

  background:
    radial-gradient(circle,
    rgba(245,208,97,.10),
    transparent 62%);

  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
}

.ptk-tarot-result-card.is-revealed::before {
  animation: ptkTarotGlowSweep 1.2s ease forwards;
}

@keyframes ptkTarotGlowSweep {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  45% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

.ptk-tarot-form.is-opening .ptk-fortune-submit {
  pointer-events: none;
  opacity: .82;

  box-shadow:
    0 0 26px rgba(245,208,97,.12);
}

.ptk-tarot-form.is-opening .ptk-fortune-submit::after {
  content: ' ✦';
  animation: ptkTarotBlink .7s ease-in-out infinite alternate;
}

@keyframes ptkTarotBlink {
  from { opacity: .35; }
  to { opacity: 1; }
}


/* =========================================================
   21) SIAMSI
========================================================= */

.ptk-siamsi-shrine {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);

  gap: 18px;
  align-items: center;

  margin-bottom: 18px;
  padding: 16px;

  border-radius: 18px;

  background:
    radial-gradient(circle at 18% 12%, rgba(245,208,97,.10), transparent 44%),
    rgba(255,255,255,.025);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025);
}

.ptk-siamsi-deity-image {
  width: 100%;
  max-height: 260px;

  object-fit: cover;

  border: 0;
  border-radius: 16px;

  box-shadow:
    0 18px 36px rgba(0,0,0,.42),
    0 0 34px rgba(245,208,97,.08);
}

.ptk-siamsi-deity-placeholder {
  min-height: 220px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 16px;

  background:
    radial-gradient(circle at top, rgba(245,208,97,.12), transparent 48%),
    linear-gradient(180deg, rgba(26,20,10,.95), rgba(0,0,0,.88));

  color: #dfbf72;
  text-align: center;
  font-weight: 700;
}

.ptk-siamsi-shrine-text h3 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 22px;
}

.ptk-siamsi-shrine-text p {
  margin: 0;
  color: #d8c9a9;
  line-height: 1.75;
}

.ptk-siamsi-submit {
  position: relative;
  overflow: hidden;
}

.ptk-siamsi-submit::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 38%;
  transform: rotate(18deg);

  background:
    linear-gradient(90deg,
    transparent,
    rgba(255,255,255,.18),
    transparent);

  opacity: 0;
}

.ptk-siamsi-submit:hover::after {
  animation: ptkSiamsiButtonSweep .9s ease forwards;
}

@keyframes ptkSiamsiButtonSweep {
  from {
    left: -40%;
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  to {
    left: 115%;
    opacity: 0;
  }
}

.ptk-siamsi-result-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ptk-siamsi-number {
  width: 92px;
  height: 92px;

  margin: 2px auto 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  color: #17120a;

  background:
    linear-gradient(135deg,
    #b8892f,
    #e2c364);

  font-size: 38px;
  font-weight: 900;

  box-shadow:
    0 18px 42px rgba(0,0,0,.38),
    0 0 36px rgba(245,208,97,.12);
}


/* =========================================================
   22) AUSPICIOUS SCORE
========================================================= */

.ptk-auspicious-score {
  position: relative;
  height: 34px;

  border-radius: 999px;

  background: rgba(255,255,255,.07);

  overflow: hidden;
  margin: 12px 0 16px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025);
}

.ptk-auspicious-score span {
  position: absolute;
  inset: 0 auto 0 0;

  display: block;
  width: 0;

  background:
    linear-gradient(135deg,
    rgba(196,154,61,.95),
    rgba(245,208,97,.95));
}

.ptk-auspicious-score strong {
  position: relative;
  z-index: 1;

  display: flex;
  height: 100%;

  align-items: center;
  justify-content: center;

  color: #17120a;
  font-weight: 900;
}


/* =========================================================
   23) FACE / PALM BOOK
========================================================= */

.ptk-fortune-book-head {
  margin: 0 0 16px;
  padding: 4px 2px 2px;
}

.ptk-fortune-book-head h3 {
  margin: 10px 0 6px;
  color: #fff;
  font-size: 22px;
}

.ptk-fortune-book-head p {
  margin: 0;
  color: #d8c9a9;
  line-height: 1.7;
}

.ptk-fortune-book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ptk-fortune-book-card {
  overflow: hidden;
}

.ptk-fortune-book-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;

  background:
    radial-gradient(circle at top,
    rgba(245,208,97,.10),
    rgba(0,0,0,.65));

  overflow: hidden;
}

.ptk-fortune-book-image {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;

  transition:
    transform .28s ease,
    filter .28s ease;
}

.ptk-fortune-book-card:hover .ptk-fortune-book-image {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.ptk-fortune-book-body {
  padding: 16px;
}

.ptk-fortune-book-category {
  display: inline-flex;
  align-items: center;

  margin-bottom: 9px;
  padding: 5px 9px;

  border-radius: 999px;

  background: rgba(196,154,61,.10);
  color: #dfbf72;

  font-size: 12px;
  font-weight: 700;
}

.ptk-fortune-book-card h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.ptk-fortune-book-content {
  color: rgba(239,226,200,.86);
  line-height: 1.75;
  font-size: 14px;
}

.ptk-fortune-book-content p {
  margin: 0 0 8px;
}

.ptk-fortune-book-content p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   24) RESPONSIVE
========================================================= */

@media (max-width: 1024px) {

  .ptk-tarot-card-grid.count-10,
  .ptk-tarot-card-grid.count-12,
  .ptk-tarot-card-grid.spread-ten,
  .ptk-tarot-card-grid.spread-twelve {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) and (min-width: 641px) {

  .ptk-fortune-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ptk-fortune-tab {
    font-size: 14px;
    padding: 10px 8px;
  }
}

@media (max-width: 760px) {

  .ptk-tarot-card-grid,
  .ptk-tarot-card-grid.count-1,
  .ptk-tarot-card-grid.count-10,
  .ptk-tarot-card-grid.count-12,
  .ptk-tarot-card-grid.spread-ten,
  .ptk-tarot-card-grid.spread-twelve {
    grid-template-columns: 1fr;
  }

  .ptk-tarot-card {
    min-height: auto;
  }

  .ptk-tarot-control-grid {
    grid-template-columns: 1fr;
  }

  .ptk-tarot-card-front,
  .ptk-tarot-card-back {
    min-height: 230px;
  }

  .ptk-tarot-card-image {
    max-width: 132px;
  }

  .ptk-tarot-card-face {
    min-height: 230px;
  }

  .ptk-fortune-book-grid {
    grid-template-columns: 1fr;
  }

  .ptk-fortune-book-body {
    padding: 14px;
  }
}

@media (max-width: 640px) {

  .ptk-fortune-wrap {
    margin: 16px auto;
    padding: 0 10px;
  }

  .ptk-fortune-page {
    border-radius: 16px;
  }

  .ptk-fortune-page-overlay {
    padding: 10px 0;
  }

  .ptk-fortune-page-inner {
    padding: 14px;
    border-radius: 20px;
  }

  .ptk-fortune-grid-3,
  .ptk-fortune-lucky-grid,
  .ptk-fortune-history-lucky {
    grid-template-columns: 1fr;
  }

  .ptk-fortune-hero {
    padding: 24px 16px;
  }

  .ptk-fortune-hero h2 {
    font-size: 23px;
  }

  .ptk-fortune-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ptk-fortune-tab {
    min-height: 44px;
    font-size: 13px;
  }

  .ptk-fortune-tab-panel,
  .ptk-fortune-form,
  .ptk-fortune-result-card,
  .ptk-fortune-box {
    padding: 16px;
  }

  .ptk-fortune-history-item {
    display: block;
    padding: 16px;
  }

  .ptk-fortune-history-delete {
    margin-top: 12px;
  }

  .ptk-fortune-history-toolbar {
    display: block;
  }

  .ptk-fortune-history-bulk-delete {
    width: 100%;
    margin-top: 10px;
  }

  .ptk-fortune-history-select {
    margin: 0 0 10px;
  }

  .ptk-siamsi-shrine {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ptk-siamsi-deity-image,
  .ptk-siamsi-deity-placeholder {
    max-width: 260px;
    margin: 0 auto;
  }
}

/* =========================================================
   PTK TAB INLINE PERFECT ALIGN
========================================================= */

.ptk-fortune-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));

  gap: 10px;
  margin: 0 0 18px;

  align-items: stretch;
}

.ptk-fortune-tab {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  min-height: 48px;
  padding: 10px 14px;

  text-align: center;
  white-space: nowrap;
}

/* icon */
.ptk-fortune-tab-icon {
  width: 22px;
  height: 22px;

  flex: 0 0 22px;

  display: block;
  object-fit: contain;
}

/* text */
.ptk-fortune-tab-label {
  display: flex;
  align-items: center;

  line-height: 1;
  margin-top: 1px;
}

/* =========================================================
   PTK TAROT - HIDE DEFAULT ICONS
   SAFE MODE
========================================================= */

/* ซ่อนไอคอน placeholder เดิม */
.ptk-tarot-icon,
.ptk-tarot-back-symbol,
.ptk-tarot-placeholder-icon,
.ptk-tarot-default-icon,
.ptk-fortune-card-icon,
.ptk-fortune-placeholder svg,
.ptk-fortune-placeholder i {
    display: none !important;
}

/* ถ้ามีภาพไพ่แล้ว ไม่ต้องโชว์ icon */
.ptk-tarot-card-face .ptk-tarot-icon {
    display: none !important;
}

/* ปรับ card image ให้เด่นขึ้น */
.ptk-tarot-card-image {
    max-width: 160px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(245,208,97,.22) !important;

    box-shadow:
        0 18px 36px rgba(0,0,0,.42),
        0 0 30px rgba(245,208,97,.10) !important;
}

/* ซ่อนข้อความหลังไพ่ */
.ptk-tarot-card-back span {
    display: none !important;
}

/* ถ้าใช้ภาพหลังไพ่ ไม่ต้องใช้ symbol */
.ptk-tarot-card-back .ptk-tarot-back-symbol {
    display: none !important;
}

/* =========================================================
   PTK TAROT PREMIUM TOUCH / HOVER EFFECT
   SAFE MODE - ADD ONLY
========================================================= */

/* ตัวการ์ดไพ่ */
.ptk-tarot-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(196,154,61,.22);
  transition:
    transform .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    background .28s ease;
}

/* แสงทองวิ่งบาง ๆ */
.ptk-tarot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(245,208,97,.08) 35%,
      rgba(245,208,97,.28) 50%,
      rgba(245,208,97,.08) 65%,
      transparent 100%
    );
  transform: translateX(-120%);
  transition: opacity .25s ease;
  z-index: 1;
}

/* กรอบทองด้านใน */
.ptk-tarot-card::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 14px;
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(245,208,97,.48);
  box-shadow:
    inset 0 0 18px rgba(245,208,97,.10),
    0 0 22px rgba(245,208,97,.12);
  transition: opacity .25s ease;
  z-index: 2;
}

/* ตอน hover / focus / แตะ */
.ptk-tarot-card:hover,
.ptk-tarot-card:focus-within,
.ptk-tarot-card:active {
  transform: translateY(-4px);
  border-color: rgba(245,208,97,.72);
  box-shadow:
    0 22px 48px rgba(0,0,0,.44),
    0 0 0 1px rgba(245,208,97,.22),
    0 0 34px rgba(245,208,97,.18);
}

/* เปิดแสงวิ่ง */
.ptk-tarot-card:hover::before,
.ptk-tarot-card:focus-within::before,
.ptk-tarot-card:active::before {
  opacity: 1;
  animation: ptkTarotGoldSweep 1.25s ease forwards;
}

/* เปิดกรอบทอง */
.ptk-tarot-card:hover::after,
.ptk-tarot-card:focus-within::after,
.ptk-tarot-card:active::after {
  opacity: 1;
}

/* ภาพไพ่ตอนแตะ */
.ptk-tarot-card:hover .ptk-tarot-card-image,
.ptk-tarot-card:focus-within .ptk-tarot-card-image,
.ptk-tarot-card:active .ptk-tarot-card-image {
  transform: scale(1.025);
  border-color: rgba(245,208,97,.55);
  box-shadow:
    0 18px 36px rgba(0,0,0,.42),
    0 0 28px rgba(245,208,97,.18);
}

/* ให้ภาพเคลื่อนไหวนุ่ม */
.ptk-tarot-card-image {
  transition:
    transform .28s ease,
    border-color .28s ease,
    box-shadow .28s ease;
}

/* กันเนื้อหาถูกแสงทับ */
.ptk-tarot-card-inner,
.ptk-tarot-card-front,
.ptk-tarot-card-face,
.ptk-tarot-card p,
.ptk-tarot-position,
.ptk-tarot-orientation {
  position: relative;
  z-index: 3;
}

/* แสงทองวิ่ง */
@keyframes ptkTarotGoldSweep {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

/* มือถือ: ลดแรงยกนิดนึง */
@media (max-width: 640px) {
  .ptk-tarot-card:hover,
  .ptk-tarot-card:focus-within,
  .ptk-tarot-card:active {
    transform: translateY(-2px);
  }
}

/* =========================================================
   PTK FACE / PALM BOOK BODY SEPARATE
   SAFE MODE - ADD ONLY
========================================================= */

.ptk-fortune-book-card {
  overflow: hidden;
  border-radius: 18px;
}

/* ส่วนรูป */
.ptk-fortune-book-image-wrap {
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

/* ส่วนข้อความ */
.ptk-fortune-book-body {
  position: relative;

  background:
    linear-gradient(
      180deg,
      rgba(18,16,13,.96),
      rgba(10,9,7,.98)
    );

  border-radius: 0 0 18px 18px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025);
}