.phstory-root {
  --phstory-green:#002b1d;
  --phstory-deep:#00170f;
  --phstory-gold:#d99a2f;
  --phstory-gold-soft:#f0c96a;
  --phstory-cream:#fff8ea;
  --phstory-text:#10221b;
  display:block;
  font-family:"Segoe UI",system-ui,-apple-system,Arial,sans-serif;
  color:var(--phstory-text);
}
.phstory-root *,
.phstory-root *::before,
.phstory-root *::after { box-sizing:border-box; }
.phstory-section {
  position:relative;
  margin:0;
  padding:42px 0 36px;
  overflow:hidden;
  background:
    radial-gradient(620px 260px at 18% 0%,rgba(217,154,47,.16),transparent 66%),
    radial-gradient(640px 300px at 88% 12%,rgba(0,71,46,.16),transparent 62%),
    linear-gradient(180deg,#fff9ed 0%,#f7eddd 100%);
  border-top:1px solid rgba(217,154,47,.24);
  border-bottom:1px solid rgba(217,154,47,.2);
}
.phstory-bg-orb {
  position:absolute;
  border-radius:50%;
  pointer-events:none;
  filter:blur(.2px);
  opacity:.55;
}
.phstory-bg-orb-one {
  width:260px;
  height:260px;
  left:-85px;
  top:-120px;
  background:radial-gradient(circle,rgba(217,154,47,.22),transparent 70%);
}
.phstory-bg-orb-two {
  width:340px;
  height:340px;
  right:-110px;
  bottom:-170px;
  background:radial-gradient(circle,rgba(0,54,37,.18),transparent 70%);
}
.phstory-container {
  position:relative;
  z-index:1;
  width:min(1420px,93.5vw);
  margin:0 auto;
}
.premium-story-title {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:22px;
  margin:0 0 22px;
}
.phstory-kicker {
  grid-column:1 / -1;
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:max-content;
  margin:0 0 -6px;
  color:#a96d1d;
  font-size:13px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.phstory-kicker i { color:var(--phstory-gold); }
.premium-story-title h3 {
  margin:0;
  color:#071f17;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(34px,3.8vw,58px);
  line-height:.96;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.premium-story-title span {
  display:block;
  max-width:680px;
  margin-top:8px;
  color:#23362e;
  font-size:16px;
  line-height:1.55;
}
.phstory-title-cta {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:48px;
  padding:13px 24px;
  border-radius:999px;
  color:#111;
  background:linear-gradient(135deg,#f3ca73,#d99a2f);
  box-shadow:0 14px 28px rgba(79,49,7,.17);
  font-size:13px;
  font-weight:950;
  text-decoration:none;
  text-transform:uppercase;
  white-space:nowrap;
  transition:transform .22s ease,box-shadow .22s ease;
}
.phstory-title-cta:hover {
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(79,49,7,.22);
}
.phstory-row-wrap {
  position:relative;
  padding:14px 56px;
  border:1px solid rgba(217,154,47,.34);
  border-radius:26px;
  background:
    linear-gradient(135deg,rgba(0,54,37,.94),rgba(0,23,15,.97)),
    var(--phstory-deep);
  box-shadow:0 26px 60px rgba(35,21,3,.16), inset 0 1px 0 rgba(255,255,255,.08);
  overflow:hidden;
}
.phstory-row-wrap::before {
  content:"";
  position:absolute;
  inset:-40% auto auto 50%;
  width:480px;
  height:480px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(217,154,47,.18),transparent 64%);
  transform:translateX(-50%);
  pointer-events:none;
}
.phstory-row {
  position:relative;
  z-index:1;
  display:flex;
  gap:18px;
  overflow-x:auto;
  padding:9px 2px 14px;
  scroll-behavior:smooth;
  scrollbar-width:none;
}
.phstory-row::-webkit-scrollbar { display:none; }
.phstory-scroll-btn {
  position:absolute;
  top:50%;
  z-index:2;
  width:38px;
  height:38px;
  border:1px solid rgba(217,154,47,.58);
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#f3ca73;
  background:rgba(0,20,13,.72);
  box-shadow:0 10px 22px rgba(0,0,0,.22);
  transform:translateY(-50%);
  cursor:pointer;
  transition:background .2s ease,transform .2s ease,color .2s ease;
}
.phstory-scroll-btn:hover {
  color:#061d14;
  background:#e0a335;
  transform:translateY(-50%) scale(1.04);
}
.phstory-scroll-left { left:13px; }
.phstory-scroll-right { right:13px; }
.phstory-bubble {
  flex:0 0 clamp(132px,13vw,188px);
  display:block;
  border:0;
  background:transparent;
  cursor:pointer;
  padding:0;
  color:#fff;
  text-align:left;
}
.phstory-avatar {
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:9 / 16;
  border-radius:24px;
  padding:3px;
  background:linear-gradient(145deg,#f0c96a,#d99a2f 44%,#003625 100%);
  box-shadow:0 18px 34px rgba(0,0,0,.27);
  overflow:hidden;
  transition:transform .25s ease,box-shadow .25s ease;
}
.phstory-avatar::before {
  content:"";
  position:absolute;
  inset:-35%;
  z-index:1;
  background:conic-gradient(from 140deg,transparent,rgba(255,255,255,.58),transparent 32%);
  animation:phstorySpin 4.5s linear infinite;
  opacity:.65;
}
.phstory-avatar::after {
  content:"";
  position:absolute;
  inset:8px;
  z-index:3;
  border:1px solid rgba(255,255,255,.52);
  border-radius:18px;
  pointer-events:none;
}
.phstory-avatar img {
  position:relative;
  z-index:2;
  display:block;
  width:100%;
  height:100%;
  border-radius:20px;
  object-fit:cover;
  border:2px solid rgba(255,248,230,.85);
  filter:saturate(1.04) contrast(1.02);
  transition:transform .35s ease,filter .35s ease;
}
.phstory-bubble:hover .phstory-avatar {
  transform:translateY(-4px);
  box-shadow:0 24px 42px rgba(0,0,0,.34);
}
.phstory-bubble:hover .phstory-avatar img {
  transform:scale(1.045);
}
.phstory-label {
  display:block;
  margin:11px 2px 0;
  color:#fff8e8;
  font-size:13px;
  line-height:1.35;
  font-weight:800;
  text-shadow:0 2px 10px rgba(0,0,0,.4);
}
.phstory-sub {
  display:block;
  margin:3px 2px 0;
  color:#f0c96a;
  font-size:11px;
  font-weight:750;
}
.phstory-ig-badge {
  position:absolute;
  top:11px;
  right:11px;
  z-index:4;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 8px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(0,20,13,.72);
  color:#fff;
  font-size:11px;
  font-weight:850;
  line-height:1;
  backdrop-filter:blur(5px);
}
.phstory-mini-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin:16px 0 0;
  border:1px solid rgba(217,154,47,.36);
  border-radius:16px;
  background:rgba(255,255,255,.72);
  overflow:hidden;
}
.phstory-mini-grid span {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:54px;
  padding:10px 14px;
  border-right:1px solid rgba(217,154,47,.25);
  color:#0b2018;
  font-size:13px;
  font-weight:850;
  text-align:center;
}
.phstory-mini-grid span:last-child { border-right:0; }
.phstory-mini-grid i {
  color:#c88427;
  font-size:21px;
}
.phstory-viewer {
  display:none;
  position:fixed;
  inset:0;
  z-index:2147483647;
  justify-content:center;
  align-items:center;
  padding:16px;
  background:
    radial-gradient(760px 520px at 50% 10%,rgba(217,154,47,.16),transparent 60%),
    rgba(0,0,0,.86);
  backdrop-filter:blur(7px);
}
.phstory-viewer.is-open { display:flex; }
.phstory-frame {
  position:relative;
  width:min(430px,100%);
  height:min(780px,94vh);
  border:1px solid rgba(217,154,47,.56);
  border-radius:26px;
  background:#000;
  overflow:hidden;
  box-shadow:0 28px 90px rgba(0,0,0,.58),0 0 0 10px rgba(217,154,47,.08);
}
body.phstory-open #header,
body.phstory-open .header,
body.phstory-open .sv-header,
body.phstory-open .sbgx-header,
body.phstory-open #navmenu.navmenu,
body.phstory-open .sv-menu-overlay,
body.phstory-open .sbgx-overlay,
body.phstory-open .sbgx-drawer,
body.phstory-open .x9qfco_wrap {
  display:none !important;
  pointer-events:none !important;
}
body.phstory-open .main { padding-top:0 !important; }
.phstory-content {
  position:relative;
  width:100%;
  height:100%;
}
.phstory-progress {
  position:absolute;
  left:14px;
  right:14px;
  top:14px;
  z-index:5;
  height:3px;
  border-radius:999px;
  background:rgba(255,255,255,.22);
  overflow:hidden;
}
.phstory-progress-fill {
  height:100%;
  width:0%;
  border-radius:inherit;
  background:linear-gradient(90deg,#f0c96a,#fff5bd);
  transition:width .18s linear;
}
.phstory-controls {
  position:absolute;
  top:27px;
  right:14px;
  z-index:6;
  display:flex;
  gap:9px;
}
.phstory-controls button {
  width:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff;
  background:rgba(0,0,0,.38);
  cursor:pointer;
  backdrop-filter:blur(5px);
}
.phstory-name {
  position:absolute;
  top:34px;
  left:16px;
  right:112px;
  z-index:6;
  color:#fff;
  font-weight:850;
  font-size:14px;
  text-shadow:0 2px 8px rgba(0,0,0,.55);
}
.phstory-name-wrap {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.phstory-name-badge {
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(240,201,106,.35);
  background:rgba(0,0,0,.48);
  color:#f0c96a;
  font-size:11px;
  font-weight:850;
}
[data-phstory-media] {
  position:absolute;
  inset:0;
}
[data-phstory-media] img,
[data-phstory-media] video {
  width:100%;
  height:100%;
  object-fit:cover;
  background:#000;
}
[data-phstory-media]::after {
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(0,0,0,.58) 0%,transparent 28%,transparent 58%,rgba(0,0,0,.78) 100%),
    radial-gradient(420px 280px at 50% 100%,rgba(217,154,47,.14),transparent 70%);
  pointer-events:none;
}
.phstory-cta {
  position:absolute;
  left:50%;
  bottom:18px;
  z-index:6;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:210px;
  min-height:44px;
  padding:11px 20px;
  border:1px solid rgba(255,245,189,.55);
  border-radius:999px;
  color:#111;
  background:linear-gradient(135deg,#f4cf78,#d99a2f);
  box-shadow:0 12px 28px rgba(0,0,0,.3);
  text-decoration:none;
  font-size:13px;
  font-weight:950;
  text-transform:uppercase;
  transform:translateX(-50%);
}
.phstory-actions {
  position:absolute;
  left:14px;
  right:14px;
  bottom:75px;
  z-index:6;
  display:flex;
  justify-content:center;
  gap:8px;
}
.phstory-action-btn {
  min-width:76px;
  border:1px solid rgba(255,255,255,.32);
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:8px 12px;
  color:#fff;
  background:rgba(0,0,0,.42);
  font-size:12px;
  font-weight:850;
  cursor:pointer;
  backdrop-filter:blur(5px);
}
.phstory-action-btn.is-active {
  color:#10130f;
  background:linear-gradient(135deg,#f4cf78,#d99a2f);
  border-color:rgba(255,245,189,.5);
}
.phstory-tap {
  position:absolute;
  top:0;
  bottom:0;
  z-index:3;
  width:50%;
  border:0;
  background:transparent;
  cursor:pointer;
}
.phstory-left { left:0; }
.phstory-right { right:0; }
.phstory-bubble[data-story-theme="0"] .phstory-avatar { background:linear-gradient(145deg,#f0c96a,#d99a2f 48%,#003625); }
.phstory-bubble[data-story-theme="1"] .phstory-avatar { background:linear-gradient(145deg,#d99a2f,#0f7a55 55%,#002b1d); }
.phstory-bubble[data-story-theme="2"] .phstory-avatar { background:linear-gradient(145deg,#fff0a8,#c88427 48%,#00170f); }
.phstory-bubble[data-story-theme="3"] .phstory-avatar { background:linear-gradient(145deg,#2d7b5a,#d99a2f 52%,#00170f); }
.phstory-bubble[data-story-theme="4"] .phstory-avatar { background:linear-gradient(145deg,#f0c96a,#8e5f1c 50%,#002b1d); }
.phstory-bubble[data-story-theme="5"] .phstory-avatar { background:linear-gradient(145deg,#d99a2f,#004b32 46%,#00170f); }
@keyframes phstorySpin {
  to { transform:rotate(360deg); }
}
@media (max-width: 900px) {
  .phstory-section { padding:34px 0 30px; }
  .premium-story-title {
    grid-template-columns:1fr;
    gap:14px;
  }
  .phstory-title-cta {
    width:max-content;
  }
  .phstory-row-wrap {
    padding:12px 44px;
    border-radius:22px;
  }
  .phstory-bubble {
    flex-basis:150px;
  }
  .phstory-mini-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .phstory-mini-grid span:nth-child(2n) { border-right:0; }
  .phstory-mini-grid span:nth-child(-n+2) { border-bottom:1px solid rgba(217,154,47,.25); }
}
@media (max-width: 576px) {
  .phstory-section {
    padding:28px 0 26px;
  }
  .phstory-container {
    width:min(94vw,430px);
  }
  .premium-story-title h3 {
    font-size:30px;
  }
  .premium-story-title span {
    font-size:13px;
  }
  .phstory-title-cta {
    min-height:42px;
    padding:11px 18px;
    font-size:12px;
  }
  .phstory-row-wrap {
    padding:11px 12px 12px;
    border-radius:18px;
  }
  .phstory-scroll-btn {
    display:none;
  }
  .phstory-row {
    gap:12px;
    padding-bottom:8px;
  }
  .phstory-bubble {
    flex-basis:132px;
  }
  .phstory-avatar {
    border-radius:18px;
  }
  .phstory-avatar img {
    border-radius:15px;
  }
  .phstory-avatar::after {
    border-radius:14px;
  }
  .phstory-label {
    font-size:12px;
  }
  .phstory-sub {
    font-size:10px;
  }
  .phstory-mini-grid {
    grid-template-columns:1fr 1fr;
  }
  .phstory-mini-grid span {
    min-height:48px;
    font-size:11px;
    padding:9px 8px;
  }
  .phstory-frame {
    width:100%;
    height:92vh;
    border-radius:18px;
  }
  .phstory-actions {
    bottom:72px;
  }
  .phstory-action-btn {
    min-width:66px;
    padding:7px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .phstory-avatar::before,
  .phstory-avatar,
  .phstory-avatar img,
  .phstory-title-cta,
  .phstory-scroll-btn {
    animation:none!important;
    transition:none!important;
  }
}
