.bc-master-panel,.bc-master-dialog,.bc-master-lightbox{background:var(--bc-panel,#fff);color:var(--bc-white,#251534);border:2px solid var(--bc-purple,#7023a7);border-radius:16px;padding:24px}
.bc-master-panel{max-width:760px;margin:24px auto}
.bc-master-panel button,.bc-master-panel a,.bc-master-dialog button,.bc-master-gallery button,.bc-master-lightbox button{display:inline-block;margin:8px;padding:14px 20px;border:2px solid #7023a7;border-radius:10px;background:#fff;color:#35134d;font-weight:700;cursor:pointer}
.bc-master-dialog{position:fixed;inset:24px 0;max-width:860px;width:calc(100% - 32px);max-height:calc(100dvh - 48px);overflow:auto;overflow-x:hidden;box-sizing:border-box;padding:40px 28px 24px;background:linear-gradient(135deg,#fff,#f2edff);color:#241038;border-color:#d6aa31;box-shadow:0 0 30px #7127b044;margin:auto}
.bc-master-dialog h2{font-size:clamp(1.3rem,3vw,2.2rem);line-height:1.2;letter-spacing:normal;overflow-wrap:anywhere;margin:0 0 16px}
.bc-master-dialog>p{font-size:1rem;line-height:1.5}
.bc-master-dialog::backdrop,.bc-master-lightbox::backdrop{background:rgba(0,0,0,.8)}
.bc-master-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:32px 0}
.bc-master-gallery-card{padding:20px;background:var(--bc-panel,#fff);border:1px solid var(--bc-purple,#7023a7);border-radius:16px}
.bc-master-gallery-card img{width:100%;height:200px;object-fit:contain;padding:12px;box-sizing:border-box;background:radial-gradient(ellipse,#fff 55%,#f1edf4 100%)}
.bc-master-gallery-card{display:flex;flex-direction:column;min-width:0}
.bc-gallery-empty{max-width:none!important;width:100%!important}
.bc-gallery-empty .bc-master-gallery{width:100%}
.bc-master-gallery-card h2{font-size:clamp(1rem,1.5vw,1.35rem);line-height:1.3;overflow-wrap:anywhere;min-height:3em}
.bc-master-gallery-card button{font-size:.85rem;margin:5px 0}
.bc-gallery-brand{text-align:center;padding:28px 16px 20px;border-bottom:1px solid #ceb36b}
.bc-gallery-brand img{width:120px;height:120px;object-fit:contain;border-radius:12px;background:#08050b}
.bc-gallery-brand h2{font-size:clamp(1.7rem,4vw,2.8rem);color:#291039;line-height:1.15;margin:18px 0 12px}
.bc-gallery-brand p{font-size:1rem;color:#594465;max-width:660px;margin:auto}
.bc-gallery-category>h2{font-size:1.1rem;letter-spacing:.12em;color:#4c206d;text-align:left;margin:30px 0 0;padding-bottom:12px;border-bottom:1px solid #d5bd7e}
.bc-master-gallery-card{background:linear-gradient(150deg,#fff,#f5f1fa);border:1px solid #d2b46d;box-shadow:0 6px 22px #44265b12;padding:16px;color:#291039;text-align:left}
.bc-master-gallery-card h3{font-size:1.15rem;line-height:1.3;overflow-wrap:anywhere;margin:16px 0 8px;min-height:3em}
.bc-master-gallery-card img{height:250px;border-radius:10px;background:#f3f0f5}
.bc-gallery-summary{font: .9rem/1.5 system-ui;color:#594465;min-height:5em;margin:0 0 16px}
.bc-master-gallery-card button:last-of-type{background:linear-gradient(125deg,#61209a,#8b36c4);color:white;border-color:#6d2ba1}
.bc-master-gallery-card>div{font-size:.9rem;line-height:1.5;padding:12px;border-top:1px solid #d2b46d}
html[data-bc-theme="dark"] .bc-gallery-brand h2,html[data-bc-theme="dark"] .bc-gallery-category>h2{color:#f0d786}
html[data-bc-theme="dark"] .bc-gallery-brand p{color:#e5d9f0}
.bc-master-panel,.bc-master-dialog{box-shadow:0 12px 40px #4f25632a;border:1px solid #d0b168}
.bc-master-panel{padding:32px;background:linear-gradient(140deg,#fff,#f6f1fc)}
.bc-master-panel>button{background:linear-gradient(125deg,#61209a,#8b36c4);color:#fff}
.bc-master-lightbox{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;box-sizing:border-box;border:0;border-radius:0;padding:64px 20px 16px;background:#171021;color:#fff;overflow:hidden}
.bc-master-lightbox[open]{display:flex;flex-direction:column;align-items:center}
.bc-master-lightbox h2{font-size:clamp(1rem,2vw,1.5rem);margin:0 0 12px;text-align:center}
.bc-master-lightbox img{display:block;max-width:100%;width:100%;height:0;flex:1;min-height:0;object-fit:contain;padding:12px;box-sizing:border-box;background:#fff}
.bc-zoom-viewport{flex:1;min-height:0;width:100%;overflow:hidden;background:#fff;touch-action:none;position:relative}
.bc-master-lightbox .bc-zoom-viewport img{height:100%;width:100%;padding:12px;transform-origin:center;user-select:none;pointer-events:none}
.bc-lightbox-description{font:1rem/1.5 system-ui;max-height:100px;overflow:auto;margin:12px 0;max-width:900px}
.bc-master-lightbox>div:last-of-type{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.bc-master-gallery-card img{transition:opacity .18s ease}
.bc-master-gallery-card>div strong{display:block;color:#4c206d;font-size:.85rem;letter-spacing:.08em;margin-top:12px}
.bc-master-gallery-card>div p{margin:6px 0 12px}
.bc-modal-x{position:fixed;top:12px;right:12px;z-index:2147483647!important;min-width:44px;min-height:44px;margin:0!important;box-shadow:0 0 0 3px #d6aa31}
.bc-location-reassurance{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}
.bc-location-reassurance section{padding:16px;border:1px solid #ab83d4;border-radius:12px;background:#fff}
.bc-location-reassurance strong{color:#321052;font-size:1rem}
.bc-location-reassurance p{font-size:.95rem;line-height:1.5;margin:8px 0 0}
.bc-master-dialog>button:not(.bc-modal-x){width:calc(100% - 16px)}
.bc-master-dialog>button:nth-last-of-type(2){background:#ffde73;color:#291039;border-color:#bc8c21}
.bc-master-panel{background:linear-gradient(135deg,#fff,#eee6ff);color:#241038;border-color:#d6aa31;box-sizing:border-box;width:calc(100% - 24px)}
.bc-master-panel h2{font-size:clamp(1.2rem,3vw,2rem)}
.bc-reward-code{display:block;font-size:clamp(1.3rem,5vw,2.7rem);overflow-wrap:anywhere;padding:18px;border:2px solid #b591df;border-radius:12px;background:#fff;color:#291039}
.bc-reward-security{font-weight:700;font-size:1rem}
.bc-reward-order{display:block!important}

@media(max-width:1000px){.bc-master-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.bc-master-gallery{grid-template-columns:1fr}}

/* Cards stay light in both themes: do not inherit pale global paragraph colours. */
html[data-bc-theme] .bc-gallery-empty .bc-master-gallery-card h3,
html[data-bc-theme] .bc-gallery-empty .bc-master-gallery-card p{color:#352341}
html[data-bc-theme] .bc-gallery-empty .bc-master-gallery-card>div,
html[data-bc-theme] .bc-gallery-empty .bc-master-gallery-card>div strong{color:#43205d}
html[data-bc-theme] .bc-master-gallery-card button:not(:last-of-type){background:#fff;color:#35134d}
