/* ══════════════════════════════════════════════════════════════
   Book of Shadows — in-app codex overlay
   ══════════════════════════════════════════════════════════════ */

/* ── Overlay backdrop ── */
.bos-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(8, 5, 15, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bosIn 0.25s ease-out;
}
.bos-overlay.hide { display: none; }
@keyframes bosIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Confirm modal ── */
.bos-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(8, 5, 15, 0.82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bosIn 0.18s ease-out;
}
.bos-confirm-overlay.hide { display: none; }
.bos-confirm-box {
  background: #1a1228;
  border: 1px solid rgba(160, 100, 255, 0.30);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(80, 30, 160, 0.50), 0 2px 20px rgba(0,0,0,0.7);
  padding: 32px 28px 24px;
  width: min(90vw, 420px);
  text-align: center;
}
.bos-confirm-title {
  font-family: 'Platypi', serif;
  font-size: 1.5rem;
  color: #c8a8ff;
  margin: 0 0 14px;
}
.bos-confirm-msg {
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  color: #c0b0d8;
  line-height: 1.55;
  margin: 0 0 22px;
}
.bos-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.bos-confirm-danger {
  background: rgba(160, 40, 80, 0.25) !important;
  border-color: rgba(220, 80, 100, 0.45) !important;
  color: #f0a0b0 !important;
}
.bos-confirm-danger:hover {
  background: rgba(200, 50, 90, 0.40) !important;
  border-color: rgba(240, 100, 120, 0.70) !important;
  color: #ffc0cc !important;
}

/* ── Main book frame ── */
.bos-book {
  position: relative;
  display: flex;
  width: min(94vw, 980px);
  height: min(88vh, 680px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(80, 30, 160, 0.45), 0 2px 30px rgba(0,0,0,0.7);
  border: 1px solid rgba(160, 100, 255, 0.22);
}

/* ── Left page — index ── */
.bos-index {
  width: 220px;
  min-width: 180px;
  flex-shrink: 0;
  background: #140d22;
  border-right: 1px solid rgba(140, 90, 220, 0.18);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(130, 70, 200, 0.4) transparent;
}
.bos-index::-webkit-scrollbar { width: 5px; }
.bos-index::-webkit-scrollbar-thumb { background: rgba(130, 70, 200, 0.4); border-radius: 3px; }
.bos-index-title {
  font-family: 'Platypi', serif;
  font-size: 1.45rem;
  color: #c8a8ff;
  text-align: center;
  padding: 0 14px 12px;
  border-bottom: 1px solid rgba(140, 90, 220, 0.18);
  margin: 0 0 10px;
}
.bos-chapter-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: none;
  background: none;
  color: #b8a8d8;
  font-family: 'Raleway', sans-serif;
  font-size: 0.83rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
  line-height: 1.3;
}
.bos-chapter-btn:hover {
  background: rgba(130, 70, 220, 0.12);
  color: #ddd0ff;
}
.bos-chapter-btn.active {
  background: rgba(120, 60, 200, 0.22);
  color: #e8d8ff;
  border-left-color: #b080ff;
}
.bos-chapter-btn .bos-ch-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
.bos-close-book-btn {
  margin-top: auto;
  border-top: 1px solid rgba(140, 90, 220, 0.18);
  color: rgba(185, 155, 230, 0.6);
}
.bos-close-book-btn:hover {
  color: #ddd0ff;
  background: rgba(130, 70, 220, 0.10);
}

/* ── Right page — content area ── */
.bos-content {
  flex: 1;
  background: #1a1228;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(80, 30, 140, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(60, 20, 120, 0.10) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Top bar ── */
.bos-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  border-bottom: 1px solid rgba(130, 70, 200, 0.15);
  flex-shrink: 0;
}
.bos-breadcrumb {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  color: rgba(180, 150, 240, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bos-close-btn {
  background: none;
  border: none;
  color: rgba(220, 200, 255, 0.85);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}
.bos-close-btn:hover {
  color: #c8a8ff;
  background: rgba(180, 100, 255, 0.12);
}

/* ── Scrollable page body ── */
.bos-page-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 24px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(130, 70, 200, 0.4) transparent;
}
.bos-page-body::-webkit-scrollbar { width: 5px; }
.bos-page-body::-webkit-scrollbar-thumb { background: rgba(130, 70, 200, 0.4); border-radius: 3px; }

/* ── Chapter / page header ── */
.bos-page-chapter {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  color: rgba(180, 140, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 4px;
}
.bos-page-title {
  font-family: 'Platypi', serif;
  font-size: 1.55rem;
  color: #ddd0ff;
  margin: 0 0 18px;
  line-height: 1.2;
}
.bos-divider {
  border: none;
  border-top: 1px solid rgba(130, 70, 200, 0.22);
  margin: 0 0 18px;
}

/* ── Body text ── */
.bos-text {
  font-family: 'Raleway', sans-serif;
  font-size: 0.92rem;
  color: #ccc0e8;
  line-height: 1.7;
}
.bos-text p         { margin: 0 0 12px; }
.bos-text h3        { font-size: 0.98rem; color: #e0d0ff; margin: 18px 0 7px; }
.bos-text ul        { margin: 0 0 12px; padding-left: 1.4em; }
.bos-text li        { margin-bottom: 6px; }
.bos-text strong    { color: #ece4ff; }
.bos-text em        { color: #b0a0d8; }
.bos-text a         { color: #b080ff; text-decoration: none; }
.bos-text a:hover   { text-decoration: underline; color: #d0a0ff; }
/* in-app chapter navigation links */
.bos-inapp-link {
  color: #d0b0ff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(180, 100, 255, 0.5);
  font-weight: 600;
  transition: color 0.15s, border-color 0.15s;
}
.bos-inapp-link:hover { color: #f0d8ff; border-color: #c080ff; }
/* inline external links inside body text */
.bos-ext-link { color: #b080ff; text-decoration: none; }
.bos-ext-link:hover { color: #d0a0ff; text-decoration: underline; }
.bos-text .bos-callout {
  background: rgba(100, 50, 180, 0.15);
  border-left: 3px solid #9060d0;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin: 12px 0;
  font-style: italic;
  color: #d0c0f0;
}

/* ── Link list ── */
.bos-link-list {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: rgba(80, 30, 140, 0.12);
  border-radius: 10px;
  border: 1px solid rgba(120, 60, 200, 0.18);
}
.bos-link-list-title {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(180, 140, 255, 0.55);
  margin: 0 0 10px;
}
.bos-link-list a {
  display: block;
  color: #b080ff;
  font-family: 'Raleway', sans-serif;
  font-size: 0.87rem;
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px solid rgba(120, 60, 200, 0.12);
  transition: color 0.15s, padding-left 0.15s;
}
.bos-link-list a:last-child { border-bottom: none; }
.bos-link-list a:hover { color: #d0a8ff; padding-left: 6px; }

/* ── Bottom page nav ── */
.bos-page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 10px;
  border-top: 1px solid rgba(130, 70, 200, 0.13);
  flex-shrink: 0;
}
.bos-nav-btn {
  background: rgba(100, 50, 180, 0.18);
  border: 1px solid rgba(140, 80, 220, 0.32);
  color: #c0a8e8;
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.bos-nav-btn:hover:not(:disabled) {
  background: rgba(120, 60, 210, 0.32);
  color: #e0d0ff;
}
.bos-nav-btn:disabled { opacity: 0.3; cursor: default; }
.bos-page-counter {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  color: rgba(180, 140, 255, 0.45);
}

/* ── Home / welcome spread ── */
.bos-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.bos-home-card {
  background: rgba(80, 30, 140, 0.10);
  border: 1px solid rgba(120, 60, 200, 0.18);
  border-radius: 10px;
  padding: 14px 16px;
}
.bos-home-card-icon { font-size: 1.5rem; margin-bottom: 6px; }
.bos-home-card-title {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ddd0ff;
  margin: 0 0 4px;
}
.bos-home-card-text {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  color: #a898c8;
  line-height: 1.5;
  cursor: pointer;
}
.bos-home-card:hover { background: rgba(100, 40, 160, 0.18); }

/* ── Mobile hamburger button ── */
.bos-hamburger-btn { display: none; }
@media (max-width: 640px) {
  .bos-hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(100, 50, 180, 0.25);
    border: 1px solid rgba(160, 100, 255, 0.42);
    border-radius: 8px;
    color: #c8a8ff;
    font-size: 18px;
    cursor: pointer;
    margin-right: 8px;
    transition: background 0.2s, color 0.2s;
  }
  .bos-hamburger-btn:hover,
  .bos-hamburger-btn[aria-expanded="true"] {
    background: rgba(130, 60, 210, 0.45);
    color: #f0e0ff;
  }
}

/* ── Mobile chapter flyout menu ── */
.bos-mobile-menu {
  display: none;
  background: #140d22;
  border-bottom: 1px solid rgba(140, 80, 220, 0.22);
  max-height: 50vh;
  overflow-y: auto;
  flex-shrink: 0;
}
.bos-mobile-menu.open { display: block; }
.bos-mobile-menu .bos-chapter-btn {
  width: 100%;
  font-size: 0.9rem;
  padding: 12px 18px;
  border-left-width: 0;
  border-bottom: 1px solid rgba(130, 70, 200, 0.10);
}
.bos-mobile-menu .bos-chapter-btn:last-child { border-bottom: none; }

/* ── First-visit hint arrow ── */
.bos-menu-hint {
  position: absolute;
  top: 48px;
  left: calc(50% + 20px);
  right: auto;
  transform: translateX(-50%);
  background: #7030c8;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
  animation: bosHintFade 3.5s ease-out forwards;
}
.bos-menu-hint::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #7030c8;
}
@keyframes bosHintFade {
  0%, 60% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100%     { opacity: 0; transform: translateX(-50%) translateY(3px); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .bos-index { display: none; }
  .bos-book  { width: 98vw; height: 92vh; }
  .bos-page-title { font-size: 1.2rem; }
  .bos-text { font-size: 0.88rem; }
  .bos-home-grid { grid-template-columns: 1fr; }
}

/* ── Page header (icon + title row) ── */
.bos-page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(140, 90, 220, 0.18);
}
.bos-page-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Visible state (animation reset on re-open) ── */
.bos-overlay.bos-visible {
  animation: bosIn 0.22s ease-out;
}

/* ── Seasonal spotlight card ── */
.bos-seasonal-card {
  background: rgba(50, 20, 80, 0.35);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.bos-seasonal-card h3 {
  font-family: 'Platypi', serif;
  font-size: 1.05rem;
  color: #e8d8ff;
  margin: 0 0 8px;
}
.bos-seasonal-card p {
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  color: #c0aee8;
  margin: 0 0 8px;
}
.bos-seasonal-card ul {
  margin: 0 0 10px;
  padding-left: 18px;
}
.bos-seasonal-card li {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  color: #b09ad8;
  margin-bottom: 4px;
}
.bos-seasonal-card a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  color: #b080ff;
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════
   Tablet Video Panel
   ══════════════════════════════════════════════════════════════ */

.tablet-overlay {
  position: fixed;
  inset: 0;
  z-index: 5100;
  background: rgba(6, 3, 12, 0.92);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bosIn 0.25s ease-out;
}
.tablet-overlay.hide { display: none; }

/* ── Main frame ── */
.tablet-frame {
  position: relative;
  display: flex;
  width: min(96vw, 1100px);
  height: min(90vh, 720px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 70px rgba(60, 20, 140, 0.55), 0 4px 40px rgba(0,0,0,0.8);
  border: 1px solid rgba(140, 80, 255, 0.25);
}

/* ── Left sidebar — playlist nav ── */
.tablet-nav {
  width: 210px;
  min-width: 170px;
  flex-shrink: 0;
  background: #0e0818;
  border-right: 1px solid rgba(120, 60, 220, 0.2);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 60, 200, 0.4) transparent;
}
.tablet-nav::-webkit-scrollbar { width: 4px; }
.tablet-nav::-webkit-scrollbar-thumb { background: rgba(120, 60, 200, 0.4); border-radius: 3px; }
.tablet-nav-title {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(180, 140, 255, 0.55);
  text-align: center;
  padding: 0 14px 12px;
  border-bottom: 1px solid rgba(120, 70, 220, 0.18);
  margin: 0 0 10px;
}
.tablet-playlist-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: none;
  background: none;
  color: #c8b8e8;
  font-family: 'Raleway', sans-serif;
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
  line-height: 1.3;
  flex: 1 1 auto;
  min-width: 0;
}
.tablet-playlist-btn:hover {
  background: rgba(130, 70, 230, 0.22);
  color: #ece4ff;
}
.tablet-pl-section.active .tablet-playlist-btn {
  background: rgba(120, 60, 210, 0.32);
  color: #fff;
  border-left-color: #b88aff;
}
.tablet-pl-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
/* ── Expandable playlist sections ── */
.tablet-pl-section { display: block; }
.tablet-pl-head {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.tablet-pl-toggle {
  flex-shrink: 0;
  width: 32px;
  background: none;
  border: none;
  color: rgba(180, 140, 255, 0.55);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 8px;
  transition: color 0.15s, background 0.15s;
}
.tablet-pl-toggle:hover {
  background: rgba(110, 50, 210, 0.14);
  color: #d0b0ff;
}
.tablet-pl-videos {
  display: none;
  background: rgba(8, 4, 16, 0.65);
  border-bottom: 1px solid rgba(120, 70, 220, 0.12);
}
.tablet-pl-videos.open { display: block; }
.tablet-video-btn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: none;
  background: none;
  color: rgba(190, 170, 230, 0.82);
  font-family: 'Raleway', sans-serif;
  font-size: 0.74rem;
  text-align: left;
  cursor: pointer;
  line-height: 1.35;
  transition: background 0.12s, color 0.12s;
}
.tablet-video-btn:hover {
  background: rgba(110, 50, 210, 0.18);
  color: #ece4ff;
}
.tablet-video-num {
  flex-shrink: 0;
  color: rgba(160, 120, 220, 0.7);
  font-variant-numeric: tabular-nums;
  min-width: 22px;
}
.tablet-video-title {
  flex: 1 1 auto;
  word-break: break-word;
}
.tablet-pl-status {
  padding: 8px 14px 10px 36px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.74rem;
  color: rgba(170, 140, 220, 0.6);
  font-style: italic;
}

/* ── Right area — video player ── */
.tablet-content {
  flex: 1;
  background: #0a0614;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tablet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 9px;
  border-bottom: 1px solid rgba(110, 60, 200, 0.18);
  flex-shrink: 0;
}
.tablet-playlist-name {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  color: rgba(200, 170, 255, 0.65);
  letter-spacing: 0.03em;
}
.tablet-yt-link {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  color: rgba(160, 120, 255, 0.7);
  text-decoration: none;
  border: 1px solid rgba(140, 90, 220, 0.28);
  border-radius: 6px;
  padding: 3px 10px;
  margin-left: auto;
  margin-right: 10px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.tablet-yt-link:hover {
  color: #d0b0ff;
  border-color: rgba(180, 120, 255, 0.55);
  background: rgba(120, 60, 200, 0.12);
}
.tablet-close-btn {
  background: none;
  border: 1px solid rgba(200, 160, 255, 0.35);
  color: rgba(230, 210, 255, 0.85);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  line-height: 1;
  font-weight: 600;
}
.tablet-close-btn:hover {
  color: #fff;
  background: rgba(180, 80, 255, 0.25);
  border-color: rgba(200, 140, 255, 0.7);
}
.tablet-player-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.tablet-iframe {
  display: block;
  border: none;
  width: 100%;
  /* Maintain 16:9 so YouTube's internal layout never crops horizontally.
     max-height keeps it from overflowing when the panel is very tall. */
  aspect-ratio: 16 / 9;
  max-height: 100%;
}

/* ── Mobile hamburger button (shown only on narrow screens) ── */
.tablet-hamburger-btn { display: none; }

/* ── Narrow screens: hide sidebar by default, show via hamburger ── */
@media (max-width: 900px) {
  .tablet-frame { position: relative; }
  .tablet-nav {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    z-index: 5;
    width: 260px;
    max-width: 80vw;
    transform: translateX(-105%);
    transition: transform 0.22s ease-out;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }
  .tablet-nav.mobile-open { transform: translateX(0); }
  .tablet-hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(130, 70, 210, 0.45);
    border: 1.5px solid rgba(190, 140, 255, 0.65);
    border-radius: 8px;
    color: #e8d8ff;
    font-size: 18px;
    cursor: pointer;
    margin-right: 10px;
    padding: 0;
    transition: background 0.2s, color 0.2s;
  }
  .tablet-hamburger-btn:hover,
  .tablet-hamburger-btn[aria-expanded="true"] {
    background: rgba(160, 80, 240, 0.65);
    color: #fff;
  }
}
@media (max-width: 640px) {
  .tablet-frame { width: 100vw; height: 100dvh; border-radius: 0; }
  .tablet-playlist-name { font-size: 0.74rem; }
  .tablet-yt-link { font-size: 0.68rem; padding: 2px 7px; }
}

/* ══════════════════════════════════════════════════════════════
   Spell Presets
   ══════════════════════════════════════════════════════════════ */

/* ── Preset clear confirmation modal ── */
.bos-preset-clear-modal {
  background: rgba(18, 12, 34, 0.97);
  border: 1px solid rgba(180, 130, 255, 0.35);
  border-radius: 14px;
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.7);
  width: 320px;
  max-width: 92vw;
  font-family: 'Raleway', sans-serif;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 0 20px;
}
.bos-preset-clear-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(180, 130, 255, 0.18);
}
.bos-preset-clear-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e0d0ff;
}
.bos-preset-clear-msg {
  font-size: 14px;
  color: #ddd0ff;
  text-align: center;
  line-height: 1.5;
  margin: 16px 20px 6px;
}
.bos-preset-clear-sub {
  font-size: 12px;
  color: rgba(190, 170, 220, 0.72);
  text-align: center;
  line-height: 1.5;
  margin: 0 20px 18px;
}
.bos-preset-clear-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 0 20px;
}
.bos-preset-clear-actions .bos-preset-btn {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
}

/* ── Welcome card ── */
.bos-welcome-preset-card {
  border: 1px solid rgba(220, 190, 255, 0.36);
  border-radius: 10px;
  background: rgba(70, 30, 110, 0.38);
  padding: 16px 20px;
  margin: 14px 0 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.bos-welcome-preset-card h3 {
  margin: 0 0 8px;
  color: #ecd4ff;
  font-size: 1rem;
}
.bos-welcome-preset-card p {
  margin: 0 0 12px;
  font-size: 0.87rem;
  color: #cbbbe8;
}

/* ── Preset grid ── */
.bos-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.bos-preset-card {
  border: 1px solid rgba(190, 150, 255, 0.28);
  border-radius: 10px;
  background: rgba(50, 20, 85, 0.50);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bos-preset-icon {
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 4px;
}
.bos-preset-card h3 {
  margin: 0 0 4px;
  color: #f2e8ff;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* ── Meta / tags / items text ── */
.bos-preset-meta,
.bos-preset-tags,
.bos-preset-items {
  color: #cbbbe8;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 4px;
}
.bos-tag {
  display: inline-block;
  background: rgba(130, 70, 200, 0.30);
  border: 1px solid rgba(180, 130, 255, 0.30);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.75rem;
  color: #d4b8ff;
  margin-right: 3px;
  margin-bottom: 3px;
}

/* ── Preset action buttons ── */
.bos-preset-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.bos-preset-btn {
  border: 1px solid rgba(180, 130, 255, 0.45);
  border-radius: 6px;
  background: rgba(80, 40, 140, 0.38);
  color: #e0d0ff;
  cursor: pointer;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-family: inherit;
  transition: background 0.15s;
  line-height: 1.2;
}
.bos-preset-btn:hover {
  background: rgba(150, 90, 230, 0.34);
}
.bos-preset-primary {
  background: rgba(170, 105, 245, 0.40);
  border-color: rgba(225, 200, 255, 0.60);
  color: #f0e6ff;
}
.bos-preset-primary:hover {
  background: rgba(190, 120, 255, 0.50);
}
.bos-preset-mirror {
  background: rgba(180, 80, 120, 0.28);
  border-color: rgba(255, 180, 210, 0.45);
  color: #f7d0e8;
}
.bos-preset-mirror:hover {
  background: rgba(210, 90, 140, 0.38);
}

/* ── Item checklist on detail page ── */
.bos-item-checklist {
  columns: 2;
  column-gap: 24px;
  padding-left: 18px;
  margin: 8px 0 14px;
}
.bos-item-checklist li {
  break-inside: avoid;
  margin-bottom: 5px;
  font-size: 0.87rem;
  color: #d5c8ee;
  text-transform: capitalize;
}

/* ── Spell steps ── */
.bos-spell-steps {
  padding-left: 20px;
  margin: 8px 0 14px;
}
.bos-spell-steps li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #e8deff;
}

/* ── Action hints row ── */
.bos-action-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 14px;
}
.bos-action-hint {
  display: inline-flex;
  align-items: center;
  background: rgba(100, 55, 170, 0.35);
  border: 1px solid rgba(170, 130, 240, 0.35);
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 0.8rem;
  color: #d8c8f8;
}

/* ── Safety note ── */
.bos-safety-note {
  background: rgba(40, 25, 70, 0.55);
  border-left: 3px solid rgba(180, 140, 255, 0.45);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #c5b5e0;
  margin: 10px 0 6px;
  line-height: 1.45;
}

/* ── Inline status message ── */
.bos-preset-status {
  border: 1px solid rgba(180, 230, 190, 0.45);
  border-radius: 6px;
  background: rgba(30, 80, 45, 0.45);
  padding: 9px 14px;
  margin: 12px 0 4px;
  font-size: 0.87rem;
  color: #efffed;
  line-height: 1.4;
}

/* ── Mobile overrides ── */
@media (max-width: 640px) {
  .bos-preset-grid {
    grid-template-columns: 1fr;
  }
  .bos-item-checklist {
    columns: 1;
  }
  .bos-preset-actions {
    flex-direction: column;
  }
  .bos-preset-btn {
    width: 100%;
    text-align: center;
  }
}
