/* ===== Share Story Buttons ===== */
.ssb-bar {
  width:100%; max-width:100%; flex-basis:100%; box-sizing:border-box;
  margin:28px 0 0; padding:20px 0 4px;
  border-top:1px solid #e6e6e6;
  clear:both;
}
.ssb-bar .ssb-label {
  margin:0 0 12px; padding:0;
  font:600 13px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing:.06em; text-transform:uppercase; color:#777;
}
.ssb-buttons { display:flex; flex-wrap:wrap; gap:10px; }

.ssb-bar button {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:44px; margin:0; padding:0 18px;
  border:0; border-radius:999px; cursor:pointer;
  font:600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color:#fff !important; text-transform:none; letter-spacing:0; white-space:nowrap;
  box-shadow:0 2px 6px rgba(0,0,0,.12);
  transition:transform .15s, box-shadow .15s, filter .15s;
}
.ssb-bar button[hidden] { display:none !important; }
.ssb-bar button:hover,
.ssb-bar button:focus-visible { transform:translateY(-2px); box-shadow:0 6px 14px rgba(0,0,0,.18); filter:brightness(1.05); outline:none; }
.ssb-bar button:disabled { opacity:.6; cursor:wait; transform:none; }

.ssb-bar svg, .ssb-modal svg { width:18px; height:18px; flex-shrink:0; fill:currentColor; }
.ssb-bar svg.ssb-stroke, .ssb-modal svg.ssb-stroke { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ssb-bar svg.ssb-stroke .ssb-dot, .ssb-modal svg.ssb-stroke .ssb-dot { fill:currentColor; stroke:none; }

.ssb-bar [data-share="copy"]     { background:#3a3f44; }
.ssb-bar [data-share="wa"]       { background:#25D366; }
.ssb-bar [data-share="igstory"]  { background:linear-gradient(45deg,#F58529 0%,#DD2A7B 50%,#8134AF 80%,#515BD4 100%); }
.ssb-bar [data-share="facebook"] { background:#1877F2; }
.ssb-bar [data-share="x"]        { background:#000; }
.ssb-bar [data-share="telegram"] { background:#229ED9; }
.ssb-bar [data-share="linkedin"] { background:#0A66C2; }
.ssb-bar [data-share="email"]    { background:#6B7280; }
.ssb-bar [data-share="more"]     { background:#fff; color:#333 !important; box-shadow:inset 0 0 0 1px #d0d0d0; }

/* HP: grid 3 kolom, lebar rata */
@media (max-width:600px) {
  .ssb-buttons { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
  .ssb-bar button { padding:0 6px; font-size:13px; gap:6px; }
  .ssb-bar svg { width:16px; height:16px; }
}

/* ===== Toast ===== */
.ssb-toast {
  position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(20px);
  background:#111; color:#fff; padding:12px 18px; border-radius:10px;
  font:14px/1.4 system-ui, sans-serif; opacity:0; pointer-events:none;
  transition:opacity .25s, transform .25s; z-index:100000; max-width:90vw; text-align:center;
}
.ssb-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ===== Modal petunjuk Story IG ===== */
.ssb-modal { position:fixed; inset:0; background:rgba(0,0,0,.6); display:none;
  align-items:center; justify-content:center; z-index:99999; padding:16px; }
.ssb-modal.show { display:flex; }
.ssb-modal-box {
  background:#fff; border-radius:18px; padding:22px 20px 18px; max-width:380px; width:100%;
  max-height:92vh; overflow:auto; box-sizing:border-box;
  font:14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color:#222; text-align:center;
}
.ssb-modal-box h3 { margin:0 0 12px; font-size:17px; font-weight:700; color:#111; }
.ssb-modal-box .ssb-preview { width:34%; aspect-ratio:9/16; object-fit:cover; border-radius:10px;
  box-shadow:0 4px 16px rgba(0,0,0,.2); background:#eee; }
.ssb-modal-box .ssb-ok { display:inline-flex; align-items:center; gap:6px; margin:14px 0 4px;
  padding:6px 12px; border-radius:999px; background:#E8F7EE; color:#137A3A; font-weight:600; font-size:13px; }
.ssb-modal-box ol { text-align:left; margin:10px 0 16px; padding-left:22px; }
.ssb-modal-box li { margin:6px 0; }
.ssb-modal-box .ssb-chip { display:inline-block; padding:1px 8px; border-radius:6px; background:#f1f1f1;
  font-weight:700; font-size:12px; letter-spacing:.03em; }
.ssb-modal-actions { display:flex; flex-direction:column; gap:8px; }
.ssb-modal-actions button {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:46px; border:0; border-radius:999px; cursor:pointer;
  font:600 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.ssb-modal-actions .ssb-go { color:#fff; background:linear-gradient(45deg,#F58529 0%,#DD2A7B 50%,#8134AF 80%,#515BD4 100%); }
.ssb-modal-actions .ssb-go:disabled { opacity:.6; cursor:wait; }
.ssb-modal-actions .ssb-cancel { background:transparent; color:#666; height:38px; }
