/* STB Collector Space — scoped to WooCommerce My Account. */
.stb-scope {
  --stb-ink: #151116;
  --stb-card: #211b23;
  --stb-card-alt: #29212b;
  --stb-crimson: #da343f;
  --stb-ivory: #f5eee8;
  --stb-muted: #c7b8c2;
  --stb-line: #51404e;
  --stb-pink: #e8929d;
}
.stb-scope .woocommerce,
.stb-scope .woocommerce-MyAccount-content {
  color: var(--stb-ivory);
}
.stb-scope .woocommerce-MyAccount-content a:not(.stb-collector-button) {
  color: var(--stb-pink);
}
.stb-scope .woocommerce-MyAccount-navigation {
  width: 245px !important;
  max-width: 100%;
  float: left !important;
  background: var(--stb-card);
  border: 1px solid var(--stb-line);
  border-radius: 12px;
  overflow: hidden;
}
.stb-scope .woocommerce-MyAccount-navigation ul { padding: 0; margin: 0; list-style: none; }
.stb-scope .woocommerce-MyAccount-navigation li { margin: 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.stb-scope .woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }
.stb-scope .woocommerce-MyAccount-navigation li a {
  color: var(--stb-muted); display: block; padding: 15px 18px;
  text-decoration: none; font-size: .95rem; font-weight: 550;
  line-height: 1.35; transition: background .15s ease,color .15s ease;
}
.stb-scope .woocommerce-MyAccount-navigation li.is-active a,
.stb-scope .woocommerce-MyAccount-navigation li a:hover {
  color: #fff; background: var(--stb-crimson);
}
.stb-scope .woocommerce-MyAccount-content {
  width: calc(100% - 274px) !important;
  float: right !important;
  min-width: 0;
  padding: 0 0 24px;
}
/* Replace only WooCommerce's stock dashboard intro paragraphs visually. */
.stb-collector-dashboard .woocommerce-MyAccount-content > p { display: none; }
.stb-collector-dashboard .woocommerce-MyAccount-content > p.woocommerce-notice { display: block; }

.stb-collector-kicker {
  color: var(--stb-pink); display: block; letter-spacing: .14em;
  font-size: .69rem; font-weight: 750; line-height: 1.5; text-transform: uppercase;
}
.stb-scope h2, .stb-scope h3,
.stb-scope h4 { color: var(--stb-ivory); }
.stb-collector-dashboard-shell,
.stb-collector-collection { display: grid; gap: 25px; }
.stb-collector-hero {
  position: relative; overflow: hidden;
  padding: clamp(25px, 4vw, 42px);
  background: radial-gradient(circle at right top, rgba(218,52,63,.20), transparent 51%),
              linear-gradient(135deg,#251b28,#171318 74%);
  border: 1px solid #64404c; border-radius: 15px;
}
.stb-collector-hero::after {
  content: ''; position: absolute; height: 170px; width: 170px;
  border: 1px solid rgba(218,52,63,.25); transform: rotate(-16deg);
  right: -95px; top: -85px; pointer-events: none;
}
.stb-collector-hero h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 750;
  line-height: 1.14; margin: 10px 0 15px;
}
.stb-collector-hero p { color: var(--stb-muted); max-width: 55ch; margin: 0 0 22px; }
.stb-collector-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.stb-collector-button,
.stb-scope a.stb-collector-button {
  appearance: none; display: inline-flex; justify-content: center; align-items: center;
  padding: 12px 18px; color: #fff !important; background: var(--stb-crimson);
  text-decoration: none; font-weight: 700; font-size: .9rem;
  line-height: 1.25; border-radius: 6px; border: 1px solid var(--stb-crimson);
  transition: background .16s ease, transform .16s ease;
}
.stb-collector-button:hover,
.stb-scope a.stb-collector-button:hover {
  color: #fff !important; background: #bf2934; transform: translateY(-1px);
}
.stb-scope a.stb-collector-button--quiet {
  background: transparent; border-color: #a46470; color: var(--stb-ivory) !important;
}
.stb-scope a.stb-collector-button--quiet:hover {
  background: rgba(218,52,63,.14);
}
.stb-scope a.stb-collector-text-link,
.stb-scope a.stb-collector-order-link {
  font-weight: 600; color: var(--stb-pink); text-decoration: none;
  text-underline-offset: 4px;
}
.stb-scope a.stb-collector-text-link:hover,
.stb-scope a.stb-collector-order-link:hover { text-decoration: underline; }
.stb-collector-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.stb-collector-section-head h3 { margin: 4px 0 0; font-size: 1.6rem; line-height: 1.2; }
.stb-collector-dashboard-preview { padding: 0 1px; }
.stb-collector-gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.stb-collector-card {
  min-width: 0; overflow: hidden; background: var(--stb-card);
  border: 1px solid var(--stb-line); border-radius: 11px;
}
.stb-collector-card-art { background: #141116; aspect-ratio: 3 / 4; overflow: hidden; }
.stb-collector-card-art img.stb-collector-card-image {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.stb-collector-card-placeholder {
  display: grid; place-items: center; height: 100%; min-height: 140px;
  background: radial-gradient(circle at 48% 36%,#492834,#181419 72%);
}
.stb-collector-card-placeholder span {
  color: #a45e69; font-size: 2.5rem; font-weight: 900;
  letter-spacing: -.05em; transform: rotate(-9deg);
}
.stb-collector-card-content { padding: 15px 15px 18px; }
.stb-collector-status {
  display: inline-block; padding: 4px 8px; background: #372b38;
  color: #f0b1b9; border: 1px solid #644550; border-radius: 30px;
  font-size: .7rem; letter-spacing: .01em; font-weight: 650; margin-bottom: 10px;
}
.stb-collector-card h4 {
  font-size: 1rem; line-height: 1.35; font-weight: 680;
  overflow-wrap: anywhere; margin: 0 0 6px;
}
.stb-collector-card p.stb-collector-format,
.stb-collector-card p.stb-collector-meta {
  color: var(--stb-muted); margin: 0 0 7px; font-size: .78rem; line-height: 1.5;
}
.stb-collector-card .stb-collector-order-link { display: inline-block; margin-top: 7px; font-size: .8rem; }
.stb-collector-note,
.stb-collector-discover,
.stb-collector-circle {
  padding: clamp(20px, 3vw, 28px);
  border-radius: 12px; border: 1px solid var(--stb-line);
  background: #211b24;
}
.stb-collector-note { border-left: 3px solid var(--stb-crimson); }
.stb-collector-note-body { margin-top: 11px; color: #e3d5dd; font-size: .97rem; line-height: 1.7; }
.stb-collector-note-body p:last-child { margin-bottom: 0; }
.stb-collector-discover { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.stb-collector-discover h3,
.stb-collector-circle h3 { font-size: 1.35rem; margin: 6px 0 7px; }
.stb-collector-discover p,
.stb-collector-circle p { color: var(--stb-muted); margin: 0; font-size: .92rem; line-height: 1.65; }
.stb-collector-discover .stb-collector-button { white-space: nowrap; }
.stb-collector-circle { background: #261c28; border-style: dashed; }
.stb-collector-collection-heading {
  border-bottom: 1px solid var(--stb-line); padding: 5px 0 23px;
}
.stb-collector-collection-heading h2 {
  margin: 5px 0 12px; font-size: clamp(1.7rem,3vw,2.5rem); line-height: 1.15;
}
.stb-collector-collection-heading p { color: var(--stb-muted); margin: 0; line-height: 1.65; }
.stb-collector-empty { text-align: center; padding: 36px 20px; background: var(--stb-card); border: 1px dashed #74505f; border-radius: 13px; }
.stb-collector-empty-symbol { display: block; font-size: 2rem; color: var(--stb-pink); margin-bottom: 12px; }
.stb-collector-empty h4 { font-size: 1.3rem; margin: 0 0 10px; }
.stb-collector-empty p { color: var(--stb-muted); max-width: 45ch; margin: 0 auto 20px; }
.stb-collector-privacy { color: #a99caa; font-size: .77rem; line-height: 1.6; margin: 0; }
.stb-collector-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }
.stb-collector-pagination a { font-weight: 650; }
.stb-collector-pagination span { color: var(--stb-muted); }

/* Customer sign-in: restyles native WooCommerce forms, not wp-login.php. */
.stb-collector-login-hero {
  text-align: center; max-width: 690px; margin: 0 auto 24px;
  padding: clamp(22px, 4vw, 36px) 20px 10px;
}
.stb-collector-login-hero h2 {
  font-size: clamp(1.65rem,3.2vw,2.55rem);
  margin: 8px 0 12px; line-height: 1.16;
}
.stb-collector-login-hero p { color: var(--stb-muted); font-size: 1rem; line-height: 1.65; margin: 0; }
.stb-collector-login-page .woocommerce-form-login,
.stb-collector-login-page .woocommerce-form-register {
  background: var(--stb-card); border: 1px solid var(--stb-line) !important;
  border-radius: 12px; padding: clamp(20px,4vw,30px) !important;
  max-width: 570px; margin: 0 auto 28px !important; color: var(--stb-ivory);
}
.stb-collector-login-page .woocommerce-form-login label,
.stb-collector-login-page .woocommerce-form-register label { color: var(--stb-ivory); font-weight: 600; }
.stb-collector-login-page .woocommerce-form-login input:not([type="checkbox"]),
.stb-collector-login-page .woocommerce-form-register input:not([type="checkbox"]) {
  width: 100%; box-sizing: border-box; background: #141116;
  color: #fff; border: 1px solid #725b6a; border-radius: 6px;
  min-height: 44px; padding: 10px 13px;
}
.stb-collector-login-page .woocommerce-form-login button,
.stb-collector-login-page .woocommerce-form-register button {
  background: var(--stb-crimson); border: 1px solid var(--stb-crimson); color: #fff;
  border-radius: 6px; font-weight: 700; padding: 11px 22px;
}
.stb-collector-login-page .woocommerce-form-login button:hover,
.stb-collector-login-page .woocommerce-form-register button:hover { background: #bd2933; }
.stb-collector-login-page #customer_login h2 { color: var(--stb-ivory); font-size: 1.35rem; }
.stb-collector-login-page .woocommerce-LostPassword a { color: var(--stb-pink); }
.stb-collector-login-page .woocommerce-privacy-policy-text { color: var(--stb-muted); }
.stb-collector-login-page .woocommerce-error,
.stb-collector-login-page .woocommerce-message,
.stb-collector-login-page .woocommerce-info { border-radius: 6px; }

/* Keep native account forms usable with site theme controls. */
.stb-scope .woocommerce-MyAccount-content input:not([type="checkbox"]):not([type="radio"]),
.stb-scope .woocommerce-MyAccount-content select,
.stb-scope .woocommerce-MyAccount-content textarea {
  max-width: 100%; box-sizing: border-box;
}
.stb-scope a:focus-visible,
.stb-scope button:focus-visible,
.stb-scope input:focus-visible {
  outline: 2px solid #f6a3ad; outline-offset: 3px;
}
@media (max-width: 980px) {
  .stb-scope .woocommerce-MyAccount-navigation { width: 210px !important; }
  .stb-scope .woocommerce-MyAccount-content { width: calc(100% - 230px) !important; }
  .stb-collector-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 740px) {
  .stb-scope .woocommerce-MyAccount-navigation,
  .stb-scope .woocommerce-MyAccount-content { width: 100% !important; float: none !important; }
  .stb-scope .woocommerce-MyAccount-navigation { margin-bottom: 22px; }
  .stb-scope .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; }
  .stb-scope .woocommerce-MyAccount-navigation li { flex: 1 1 44%; border-bottom: 1px solid rgba(255,255,255,.055); }
  .stb-scope .woocommerce-MyAccount-navigation li a { font-size: .84rem; padding: 12px; text-align: center; }
  .stb-collector-discover { flex-direction: column; align-items: flex-start; }
  .stb-collector-discover .stb-collector-button { white-space: normal; }
  .stb-collector-login-page .u-columns.col2-set .u-column1,
  .stb-collector-login-page .u-columns.col2-set .u-column2 { float: none; width: 100%; }
}
@media (max-width: 480px) {
  .stb-collector-gallery { gap: 11px; }
  .stb-collector-card-content { padding: 12px; }
  .stb-collector-card h4 { font-size: .88rem; }
  .stb-collector-hero { padding: 23px 20px; }
  .stb-collector-section-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 395px) {
  .stb-collector-gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .stb-scope * { transition-duration: 0s !important; }
}

/* v1.5.3 - Accessible register/sign-in entrypoints using WooCommerce forms. */
.stb-collector-auth-switch{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:22px 0 2px}
.stb-collector-auth-switch a{display:inline-flex;align-items:center;justify-content:center;padding:11px 18px;min-height:44px;border:1px solid #9c727f;border-radius:7px;color:#f5eee8;text-decoration:none;font-weight:700;background:#281d28}
.stb-collector-auth-switch .stb-collector-auth-switch--primary{background:var(--stb-crimson);border-color:var(--stb-crimson);color:#fff}
.stb-collector-auth-switch a:hover{background:#ab293a;color:#fff}
.stb-collector-auth-anchor{display:block;position:relative;top:-95px;visibility:hidden;height:0;scroll-margin-top:105px}
.stb-collector-account-other{font-size:.88rem;line-height:1.5;color:var(--stb-muted);margin:15px 0 0}
.stb-collector-account-other a{color:var(--stb-pink);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.stb-collector-auth-switch a:focus-visible,.stb-collector-account-other a:focus-visible{outline:3px solid #f5a7b1;outline-offset:3px}

/* v1.5.5 account navigation and dedicated redemption screen */
.stb-collection-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}
.stb-collection-actions a,.stb-collection-actions button,.stb-redeem-info button{background:#ab2843;border:1px solid #cb576a;border-radius:9px;color:#fff!important;padding:10px 14px;min-height:42px;font:700 13px system-ui,sans-serif;text-decoration:none!important;cursor:pointer}
.stb-collection-actions button,.stb-redeem-info button{background:#31222e}
.stb-redeem-hub{color:#f4e9ee;display:grid;gap:16px}
.stb-redeem-hub .stb-collector-collection-heading{border-radius:16px;padding:20px;background:#221a25;border:1px solid #633d4d}
.stb-redeem-hub .stb-collector-collection-heading h2{color:#fff;font-size:clamp(26px,3.7vw,38px);margin:8px 0}
.stb-redeem-hub .stb-collector-collection-heading p{color:#dcc4d0;margin:0;font-size:14px;line-height:1.6}
.stb-redeem-hub .stb-wallet{margin:0}
.stb-redeem-info{background:#261b2b;border:1px solid #614454;border-radius:14px;padding:20px}
.stb-redeem-info h3{margin:0 0 10px}.stb-redeem-info p{color:#dcc9d3;line-height:1.65}
@media(max-width:768px){.stb-scope .woocommerce-MyAccount-navigation{width:100%!important;float:none!important;margin-bottom:16px}.stb-scope .woocommerce-MyAccount-navigation ul{display:flex;flex-wrap:wrap}.stb-scope .woocommerce-MyAccount-navigation li{flex:1 0 auto;border-right:1px solid #4c3242}.stb-scope .woocommerce-MyAccount-navigation li a{padding:12px 11px;font-size:13px;text-align:center}.stb-scope .woocommerce-MyAccount-content{width:100%!important;float:none!important;padding:0}.stb-redeem-info{padding:15px}.stb-redeem-hub .stb-collector-collection-heading{padding:16px}}

/* v1.5.6: customer-accessible rules, linked from the dice miss screen. */
.stb-rules-page{margin:12px auto 32px;max-width:950px;color:#efe2e9}
.stb-rules-header{background:linear-gradient(125deg,#2b1829,#120e17);border:1px solid #744155;border-radius:13px;padding:clamp(18px,4vw,30px)}
.stb-rules-header h2{font-size:clamp(25px,5vw,38px);color:#fff;margin:5px 0 9px}
.stb-rules-header p{margin:0;color:#eed4dd;font-size:15px}
.stb-rules-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:15px 0}
.stb-rules-status>div{border:1px solid #61384a;border-radius:10px;background:#211924;padding:16px}
.stb-rules-status span{display:block;color:#d5a9b9;font-size:11px;font-weight:800;letter-spacing:1.6px}
.stb-rules-status strong{display:block;margin:3px 0;color:#fff;font-size:22px}
.stb-rules-status small{color:#e1cfda;font-size:12px}
.stb-rules-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.stb-rules-grid article{border:1px solid #693950;background:#1e1723;border-radius:12px;padding:19px}
.stb-rules-grid h3{color:#fff;margin:5px 0 10px;font-size:19px}
.stb-rules-grid p{color:#ebdfe6;font-size:14px;line-height:1.65}
.stb-rules-grid a,.stb-rules-actions a{color:#fff!important}
.stb-rules-step{color:#f57b93;font-size:11px;font-weight:900;letter-spacing:2px}
.stb-rules-fineprint{margin:15px 2px;color:#dbcbd5;font-size:12px;line-height:1.65}
.stb-rules-actions{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}
.stb-rules-actions a{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:8px;border:1px solid #795065;background:#2a2030;text-decoration:none!important;font-weight:800}
.stb-rules-actions .stb-rules-primary{background:#b9284b;border-color:#eb6885}
@media(max-width:600px){.stb-rules-grid{grid-template-columns:1fr}.stb-rules-grid article{padding:16px}.stb-rules-actions a{flex:1 1 160px}}

/* v1.10 badges under My Account */
.stb-badges-panel{margin:18px 0}
.stb-badges-grid{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}
.stb-badges-grid li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:12px 8px;border:1px solid rgba(128,128,128,.3);border-radius:12px}
.stb-badges-grid li.is-locked{opacity:.55}
.stb-badges-grid .stb-badge-art{display:grid;place-items:center;width:64px;height:64px;font-size:28px}
.stb-badges-grid .stb-badge-art img{width:64px;height:64px;object-fit:contain}
.stb-badges-grid small{font-size:11px;opacity:.8}
