/* BananaX Pro 300 Unified 4-Slide Decks Showcase (CSP-safe external stylesheet)
 * High-contrast styling for both Light Mode and html[data-bx-theme="dark"].
 */

.bx-pd-tab-btn {
  border-color: #d4a617 !important;
  background: linear-gradient(135deg, #fff9db 0%, #ffefab 100%) !important;
  color: #172b1f !important;
  font-weight: 800 !important;
}

.bx-pd-tab-btn:hover {
  border-color: #a87f09 !important;
  background: linear-gradient(135deg, #fff3b8 0%, #ffe680 100%) !important;
  color: #112117 !important;
}

.bx-pd-tab-btn.active {
  background: #173326 !important;
  border-color: #173326 !important;
  color: #ffe36e !important;
}

.bx-pd-tab-count {
  font-size: 11px;
  opacity: 0.82;
  margin-left: 3px;
}

/* ---------- Main Showcase Panel ---------- */

.bx-pd-view {
  box-sizing: border-box;
  width: 100%;
  margin: 12px 0 42px;
  font-family: 'Inter', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #14251d;
  line-height: 1.55;
}

.bx-pd-view[hidden],
.bx-pd-modal[hidden] {
  display: none !important;
}

.bx-pd-view *,
.bx-pd-view *::before,
.bx-pd-view *::after,
.bx-pd-modal *,
.bx-pd-modal *::before,
.bx-pd-modal *::after {
  box-sizing: border-box;
}

.bx-pd-hero {
  background-color: #142c21 !important;
  background-image: linear-gradient(135deg, #142c21 0%, #1e4332 100%) !important;
  color: #f6faf7 !important;
  border-radius: 16px;
  padding: 26px 28px;
  margin-bottom: 22px;
  border: 1px solid #2b5944;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.bx-pd-hero-copy {
  flex: 1 1 520px;
  min-width: 0;
}

.bx-pd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 227, 110, 0.2) !important;
  color: #ffe36e !important;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.bx-pd-hero-title {
  margin: 0 0 8px !important;
  font-size: clamp(20px, 2.6vw, 28px) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  color: #ffffff !important;
}

.bx-pd-hero-sub {
  margin: 0 !important;
  font-size: 14px !important;
  color: #dbece3 !important;
  max-width: 740px;
}

.bx-pd-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.bx-pd-hero-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f4faf6 !important;
  font-size: 12px;
  font-weight: 700;
}

.bx-pd-restore-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 10px;
  background: #ffe36e !important;
  color: #14261c !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.bx-pd-restore-link:hover {
  background: #ffd842 !important;
  color: #0e1c14 !important;
}

/* ---------- 3-Package Comparison Grid ---------- */

.bx-pd-sec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  margin: 0 0 14px;
}

.bx-pd-sec-title {
  margin: 0 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #14251d !important;
}

.bx-pd-sec-note {
  margin: 0 !important;
  font-size: 13px !important;
  color: #46574f !important;
}

.bx-pd-pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.bx-pd-pkg-card {
  background: #ffffff !important;
  color: #14251d !important;
  border: 1.5px solid #d9dfd9;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.bx-pd-pkg-card.is-recommended {
  background-color: #fffdf0 !important;
  background-image: linear-gradient(180deg, #fffdf0 0%, #ffffff 100%) !important;
  border-color: #c99912;
  box-shadow: 0 10px 26px rgba(20, 44, 33, 0.1);
}

.bx-pd-pkg-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
  background: #e7efe9 !important;
  color: #173326 !important;
}

.bx-pd-pkg-card.is-recommended .bx-pd-pkg-badge {
  background: #173326 !important;
  color: #ffe36e !important;
}

.bx-pd-pkg-name {
  margin: 0 0 4px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #14251d !important;
}

.bx-pd-pkg-tag {
  margin: 0 !important;
  font-size: 12.5px !important;
  color: #46574f !important;
}

.bx-pd-pkg-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.bx-pd-pkg-price strong {
  font-size: 27px;
  font-weight: 800;
  color: #12241b !important;
}

.bx-pd-pkg-old {
  font-size: 12.5px;
  color: #54645c !important;
  text-decoration: line-through;
}

.bx-pd-pkg-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: 12.5px;
  color: #263a31 !important;
}

.bx-pd-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #173326 !important;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease;
}

.bx-pd-buy-btn:hover {
  background: #234d39 !important;
  color: #ffffff !important;
}

.bx-pd-pkg-card.is-recommended .bx-pd-buy-btn {
  background: #142c21 !important;
  color: #ffe36e !important;
}

.bx-pd-pkg-card.is-recommended .bx-pd-buy-btn:hover {
  background: #204634 !important;
  color: #ffea8a !important;
}

/* ---------- Filter Bar & 10-Deck Gallery ---------- */

.bx-pd-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 16px;
}

.bx-pd-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bx-pd-filter-btn {
  border: 1px solid #cbd3cd;
  background: #ffffff !important;
  color: #21342b !important;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.bx-pd-filter-btn.is-active {
  background: #173326 !important;
  border-color: #173326 !important;
  color: #ffffff !important;
}

.bx-pd-deck-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bx-pd-deck-card {
  background: #ffffff !important;
  color: #14251d !important;
  border: 1px solid #d9dfd9;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.bx-pd-deck-card:hover {
  border-color: #8ea597;
  box-shadow: 0 10px 26px rgba(20, 44, 33, 0.08);
}

.bx-pd-deck-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.bx-pd-deck-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.bx-pd-cat-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #e9f0ec !important;
  color: #173326 !important;
}

.bx-pd-sample-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #fff3b8 !important;
  color: #5c4300 !important;
  border: 1px solid #e0be3c;
}

.bx-pd-deck-num {
  font-size: 11.5px;
  font-weight: 800;
  color: #46574f !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.bx-pd-deck-title {
  margin: 0 !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
  color: #14251d !important;
  line-height: 1.35 !important;
}

.bx-pd-deck-sub {
  margin: 0 !important;
  font-size: 12.5px !important;
  color: #46574f !important;
}

.bx-pd-thumbs-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bx-pd-thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #dde3dd;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f5f2 !important;
  cursor: pointer;
  text-align: left;
}

.bx-pd-thumb-btn img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bx-pd-thumb-cap {
  display: block;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 700;
  color: #2f4238 !important;
  background: #f6f8f5 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bx-pd-deck-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.bx-pd-deck-aud {
  font-size: 12px;
  color: #46574f !important;
}

.bx-pd-open-btn {
  border: 0;
  border-radius: 9px;
  padding: 9px 14px;
  min-height: 38px;
  background: #173326 !important;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.bx-pd-open-btn:hover {
  background: #244e3b !important;
}

/* ---------- Accessible Detail Modal ---------- */

.bx-pd-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(12, 22, 17, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bx-pd-modal-dialog {
  width: min(920px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff !important;
  color: #14251d !important;
  border-radius: 16px;
  border: 1px solid #d2dad4;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.bx-pd-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.bx-pd-modal-title {
  margin: 0 0 4px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #14251d !important;
}

.bx-pd-modal-sub {
  margin: 0 !important;
  font-size: 13px !important;
  color: #46574f !important;
}

.bx-pd-modal-close {
  border: 1px solid #c7d1ca;
  background: #f5f7f5 !important;
  color: #14251d !important;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.bx-pd-stage {
  border: 1px solid #d9dfd9;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2ee !important;
  margin-bottom: 12px;
}

.bx-pd-stage img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bx-pd-slide-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.bx-pd-slide-tab {
  border: 1.5px solid #cbd3cd;
  background: #f7f9f7 !important;
  color: #1b2e24 !important;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.bx-pd-slide-tab.is-active {
  background: #173326 !important;
  border-color: #173326 !important;
  color: #ffffff !important;
}

.bx-pd-sample-box {
  background: #f4faf6 !important;
  border: 1.5px solid #86c7a7;
  border-radius: 12px;
  padding: 16px;
}

.bx-pd-sample-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bx-pd-sample-title {
  margin: 0 !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #123828 !important;
}

.bx-pd-copy-btn {
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  min-height: 36px;
  background: #173326 !important;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.bx-pd-sample-pre {
  margin: 0;
  padding: 12px;
  border-radius: 9px;
  background: #13211a !important;
  color: #eef6f1 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow: auto;
}

.bx-pd-locked-panel {
  background: #fffdf2 !important;
  border: 1.5px solid #d6b136;
  border-radius: 12px;
  padding: 18px;
}

.bx-pd-locked-title {
  margin: 0 0 6px !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #192d22 !important;
}

.bx-pd-locked-desc {
  margin: 0 0 14px !important;
  font-size: 13px !important;
  color: #3e4f46 !important;
}

.bx-pd-locked-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bx-pd-locked-actions .bx-pd-buy-btn {
  width: auto;
  flex: 1 1 220px;
}

.bx-pd-buy-btn--secondary {
  background: #ffffff !important;
  color: #173326 !important;
  border: 1.5px solid #173326 !important;
}

.bx-pd-buy-btn--secondary:hover {
  background: #ebf3ee !important;
  color: #10241b !important;
}

/* ---------- Dark Mode High-Contrast Overrides ---------- */

html[data-bx-theme="dark"] .bx-pd-view {
  color: #eef4f0 !important;
}

html[data-bx-theme="dark"] .bx-pd-sec-title {
  color: #f3f7f4 !important;
}

html[data-bx-theme="dark"] .bx-pd-sec-note {
  color: #c2d1c8 !important;
}

html[data-bx-theme="dark"] .bx-pd-pkg-card {
  background: #17231e !important;
  border-color: #2f433a;
  color: #eef4f0 !important;
}

html[data-bx-theme="dark"] .bx-pd-pkg-card.is-recommended {
  background-color: #1d2e26 !important;
  background-image: linear-gradient(180deg, #1d2e26 0%, #17231e 100%) !important;
  border-color: #e4bd46;
}

html[data-bx-theme="dark"] .bx-pd-pkg-name,
html[data-bx-theme="dark"] .bx-pd-pkg-price strong {
  color: #ffffff !important;
}

html[data-bx-theme="dark"] .bx-pd-pkg-tag,
html[data-bx-theme="dark"] .bx-pd-pkg-old,
html[data-bx-theme="dark"] .bx-pd-pkg-list {
  color: #d2dfd7 !important;
}

html[data-bx-theme="dark"] .bx-pd-pkg-badge {
  background: #273e33 !important;
  color: #e8f5ee !important;
}

html[data-bx-theme="dark"] .bx-pd-pkg-card.is-recommended .bx-pd-pkg-badge {
  background: #ffe36e !important;
  color: #15271e !important;
}

html[data-bx-theme="dark"] .bx-pd-buy-btn {
  background: #266b4e !important;
  color: #ffffff !important;
}

html[data-bx-theme="dark"] .bx-pd-pkg-card.is-recommended .bx-pd-buy-btn {
  background: #ffe36e !important;
  color: #14251d !important;
}

html[data-bx-theme="dark"] .bx-pd-filter-btn {
  background: #1a2822 !important;
  border-color: #344a40;
  color: #e4efe8 !important;
}

html[data-bx-theme="dark"] .bx-pd-filter-btn.is-active {
  background: #ffe36e !important;
  border-color: #ffe36e !important;
  color: #14251d !important;
}

html[data-bx-theme="dark"] .bx-pd-deck-card {
  background: #17231e !important;
  border-color: #2f433a;
  color: #eef4f0 !important;
}

html[data-bx-theme="dark"] .bx-pd-deck-title {
  color: #ffffff !important;
}

html[data-bx-theme="dark"] .bx-pd-deck-sub,
html[data-bx-theme="dark"] .bx-pd-deck-aud,
html[data-bx-theme="dark"] .bx-pd-deck-num {
  color: #c6d5cc !important;
}

html[data-bx-theme="dark"] .bx-pd-cat-pill {
  background: #273e33 !important;
  color: #e5f3eb !important;
}

html[data-bx-theme="dark"] .bx-pd-thumb-btn {
  border-color: #33483e;
  background: #101915 !important;
}

html[data-bx-theme="dark"] .bx-pd-thumb-cap {
  background: #1d2c25 !important;
  color: #dce9e1 !important;
}

html[data-bx-theme="dark"] .bx-pd-open-btn {
  background: #ffe36e !important;
  color: #14251d !important;
}

html[data-bx-theme="dark"] .bx-pd-modal-dialog {
  background: #17231e !important;
  border-color: #33483e;
  color: #eef4f0 !important;
}

html[data-bx-theme="dark"] .bx-pd-modal-title {
  color: #ffffff !important;
}

html[data-bx-theme="dark"] .bx-pd-modal-sub {
  color: #c8d7ce !important;
}

html[data-bx-theme="dark"] .bx-pd-modal-close {
  background: #253830 !important;
  border-color: #3a5247;
  color: #ffffff !important;
}

html[data-bx-theme="dark"] .bx-pd-slide-tab {
  background: #1f3028 !important;
  border-color: #364e43;
  color: #e6f0ea !important;
}

html[data-bx-theme="dark"] .bx-pd-slide-tab.is-active {
  background: #ffe36e !important;
  border-color: #ffe36e !important;
  color: #14251d !important;
}

html[data-bx-theme="dark"] .bx-pd-sample-box {
  background: #152b22 !important;
  border-color: #2f7d5b;
}

html[data-bx-theme="dark"] .bx-pd-sample-title {
  color: #dff7eb !important;
}

html[data-bx-theme="dark"] .bx-pd-copy-btn {
  background: #ffe36e !important;
  color: #14251d !important;
}

html[data-bx-theme="dark"] .bx-pd-locked-panel {
  background: #23281b !important;
  border-color: #caa42c;
}

html[data-bx-theme="dark"] .bx-pd-locked-title {
  color: #fff6d1 !important;
}

html[data-bx-theme="dark"] .bx-pd-locked-desc {
  color: #d7ded4 !important;
}

html[data-bx-theme="dark"] .bx-pd-buy-btn--secondary {
  background: #17231e !important;
  color: #ffe36e !important;
  border-color: #ffe36e !important;
}

/* ---------- Free Gallery Subtle Pro Touchpoints ---------- */

.bx-pd-new-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #173326 !important;
  color: #ffe36e !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  line-height: 1.5;
  vertical-align: middle;
}

.bx-pd-tab-btn.active .bx-pd-new-badge--tab {
  background: #ffe36e !important;
  color: #14251d !important;
}

.bx-pd-free-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 0 0 16px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #f2f7f3 !important;
  border: 1px solid #c4d8cb;
  color: #14251d !important;
  font-size: 12.5px;
  line-height: 1.45;
}

.bx-pd-free-strip[hidden] {
  display: none !important;
}

.bx-pd-free-strip__lead {
  font-weight: 700;
  color: #14251d !important;
}

.bx-pd-free-strip__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bx-pd-free-strip__cta {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 7px;
  background: #173326 !important;
  color: #ffe36e !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.bx-pd-free-strip__cta:hover {
  background: #234b39 !important;
}

.bx-pd-free-strip__close {
  border: 1px solid #bfd1c5;
  background: #ffffff !important;
  color: #35473e !important;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bx-pd-copy-tip {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #2f4339 !important;
  font-weight: 600;
}

.bx-pd-copy-tip[hidden] {
  display: none !important;
}

.bx-pd-copy-tip a {
  color: #0e654a !important;
  font-weight: 800;
  text-decoration: underline;
}

html[data-bx-theme="dark"] .bx-pd-new-badge {
  background: #ffe36e !important;
  color: #14251d !important;
}

html[data-bx-theme="dark"] .bx-pd-free-strip {
  background: #1a2a22 !important;
  border-color: #355043;
  color: #eef5f0 !important;
}

html[data-bx-theme="dark"] .bx-pd-free-strip__lead {
  color: #eef5f0 !important;
}

html[data-bx-theme="dark"] .bx-pd-free-strip__cta {
  background: #ffe36e !important;
  color: #14251d !important;
}

html[data-bx-theme="dark"] .bx-pd-free-strip__close {
  background: #24362d !important;
  border-color: #3e5b4c;
  color: #d7e4dc !important;
}

html[data-bx-theme="dark"] .bx-pd-copy-tip {
  color: #c8d8ce !important;
}

html[data-bx-theme="dark"] .bx-pd-copy-tip a {
  color: #ffe36e !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .bx-pd-pkg-grid {
    grid-template-columns: 1fr;
  }
  .bx-pd-deck-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bx-pd-hero {
    padding: 20px 18px;
  }
  .bx-pd-slide-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bx-pd-modal-dialog {
    padding: 16px;
  }
  .bx-pd-free-strip {
    padding: 8px 11px;
    font-size: 12px;
  }
}
