/* ════════════════════════════════════════════════════════════════════════
   STUDIO HORIZON — POKECARDMAKER ENGINE CSS (DOM OVERLAY ARCHITECTURE)
   ════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,700&family=Barlow:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Cinzel:wght@700;900&family=Inter:wght@400;500;600;700&family=Montserrat:ital,wght@0,600;0,700;0,800;0,900;1,700&family=Space+Grotesk:wght@600;700;800&display=swap');

:root {
  --sh-bg-dark: #080808;
  --sh-panel-bg: #0f0f0f;
  --sh-panel-border: rgba(255, 255, 255, 0.08);
  --sh-accent: #00c4a7;
  --sh-accent-glow: rgba(0, 196, 167, 0.35);
  --sh-gold: #F59E0B;
  --sh-text-main: #f5f5f3;
  --sh-text-muted: rgba(255, 255, 255, 0.55);
  --sh-card-base-w: 747px;
  --sh-card-base-h: 1038px;
  --tpx-cond: 'Barlow Condensed', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: transparent !important;
  background: transparent !important;
  color: var(--sh-text-main);
  font-family: 'Barlow', 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ════════════════════════════════════════════════════════════════════════
   BACKGROUND AMBIENT GLOW
   ════════════════════════════════════════════════════════════════════════ */
.sh-ambient {
  display: none !important;
}

.sh-ambient-orb-1 {
  position: absolute;
  top: -15%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 196, 167, 0.16) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
}

.sh-ambient-orb-2 {
  position: absolute;
  bottom: -20%;
  right: 15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(100px);
}

/* ════════════════════════════════════════════════════════════════════════
   APP LAYOUT
   ════════════════════════════════════════════════════════════════════════ */
.sh-app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1750px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

/* Header */
.sh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: var(--sh-panel-bg);
  border: 1px solid var(--sh-panel-border);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  margin-bottom: 1.25rem;
}

.sh-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sh-brand-badge {
  font-size: 1.5rem;
  color: #F59E0B;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.sh-brand-name {
  font-family: 'FuturaStdHeavy', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.sh-brand-name span {
  color: #00c4a7;
}

.sh-header-tag {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 196, 167, 0.12);
  border: 1px solid rgba(0, 196, 167, 0.3);
  border-radius: 20px;
  color: #00c4a7;
  font-weight: 600;
}

/* Main Grid */

.sh-grid {
  display: grid;
  grid-template-columns: 420px 1fr 380px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1440px) {
  .sh-grid {
    grid-template-columns: 390px 1fr 350px;
    gap: 1rem;
  }
}

@media (max-width: 1080px) {
  .sh-grid {
    grid-template-columns: 1fr;
  }
}

.sh-right-tuner-panel {
  width: 100% !important;
  max-width: 380px !important;
}


@media (max-width: 1024px) {
  
.sh-grid {
  display: grid;
  grid-template-columns: 420px 1fr 380px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1440px) {
  .sh-grid {
    grid-template-columns: 390px 1fr 350px;
    gap: 1rem;
  }
}

@media (max-width: 1080px) {
  .sh-grid {
    grid-template-columns: 1fr;
  }
}

.sh-right-tuner-panel {
  width: 100% !important;
  max-width: 380px !important;
}

}

/* ════════════════════════════════════════════════════════════════════════
   LEFT DOCK — CONTROL PANEL
   ════════════════════════════════════════════════════════════════════════ */
.sh-dock {
  background: var(--sh-panel-bg);
  border: 1px solid var(--sh-panel-border);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sh-dock::-webkit-scrollbar {
  width: 6px;
}
.sh-dock::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* Tabs Header */
.sh-tabs-bar {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sh-tabs-bar::-webkit-scrollbar {
  height: 4px;
}
.sh-tabs-bar::-webkit-scrollbar-thumb {
  background: var(--sh-accent);
  border-radius: 2px;
}

.sh-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--sh-text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sh-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
}

.sh-tab-btn.active {
  background: var(--sh-accent);
  border-color: #00a896;
  color: #FFF;
  box-shadow: 0 0 14px var(--sh-accent-glow);
}

/* Tab Panels */
.sh-tab-pane {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.sh-tab-pane.active {
  display: flex;
}

/* Form Groups */
.sh-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sh-form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #D1D5DB;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sh-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Controls */
.sh-input, .sh-select, .sh-textarea {
  background: #090909;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  color: #F9FAFB;
  font-size: 0.85rem;
  font-family: inherit;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sh-input:focus, .sh-select:focus, .sh-textarea:focus {
  border-color: #00c4a7;
  box-shadow: 0 0 0 3px rgba(0, 196, 167, 0.2);
}

.sh-textarea {
  min-height: 70px;
  resize: vertical;
}

/* Sliders */
.sh-range-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sh-range {
  flex: 1;
  accent-color: var(--sh-accent);
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
}

.sh-range-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sh-gold);
  min-width: 40px;
  text-align: right;
}

.sh-num-input {
  background: #0d0d0d;
  border: 1px solid rgba(0, 196, 167, 0.3);
  border-radius: 6px;
  color: var(--sh-gold);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: monospace, sans-serif;
  width: 65px;
  padding: 0.15rem 0.35rem;
  text-align: right;
  outline: none;
  transition: all 0.2s ease;
}

.sh-num-input:focus {
  border-color: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
  background: rgba(0, 0, 0, 0.95);
}

/* Hide number input spinners slightly for clean UI */
.sh-num-input::-webkit-inner-spin-button, 
.sh-num-input::-webkit-outer-spin-button { 
  opacity: 0.7;
}

/* Buttons */
.sh-btn {
  background: var(--sh-accent);
  color: #FFF;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px var(--sh-accent-glow);
}

.sh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 196, 167, 0.5);
}

.sh-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E5E7EB;
  box-shadow: none;
}

.sh-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.sh-btn-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #111827;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.sh-btn-gold:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

/* ════════════════════════════════════════════════════════════════════════
   RIGHT STAGE — CARD DISPLAY & PREVIEW
   ════════════════════════════════════════════════════════════════════════ */
.sh-stage-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: sticky;
  top: 1.25rem;
}

/* Control Toolbar above Card */
.sh-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 540px;
  background: var(--sh-panel-bg);
  border: 1px solid var(--sh-panel-border);
  backdrop-filter: blur(16px);
  padding: 0.6rem 1rem;
  border-radius: 14px;
}

.sh-toolbar-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sh-gold);
}

.sh-toolbar-actions {
  display: flex;
  gap: 0.5rem;
}

/* ════════════════════════════════════════════════════════════════════════
   CARD DISPLAY CONTAINER (PURE POKECARDMAKER DOM OVERLAY ENGINE)
   ════════════════════════════════════════════════════════════════════════ */
.sh-card-viewport {
  position: relative;
  width: 100%;
  max-width: 540px;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

/* `#card` / `#shCard` Node */
.sh-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 747 / 1038;
  border-radius: 28px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 196, 167, 0.16);
  user-select: none;
  /* Dynamic base font scaling: At 747px width, 1em = 16px */
  font-size: calc(var(--sh-card-w, 540px) * (var(--sh-font-ratio, 20) / 747));
  transition: box-shadow 0.3s ease;
}

/* 1. NameBar Block */
.sh-namebar {
  position: absolute;
  top: 3.3%;
  left: 6.5%;
  width: 65%;
  height: 5.5%;
  display: flex;
  align-items: center;
}

.sh-card.subtype-vstar .sh-namebar,
.sh-namebar.vstar {
  top: 3.4%;
  left: 17.8%;
  max-width: 52%;
  width: auto;
  height: 5.5%;
  display: flex;
  align-items: center;
  z-index: 10;
}

.sh-namebar.trainer, .sh-namebar.energy {
  top: 6.7%;
  left: 6.3%;
  width: 87.3%;
}

.sh-card-name {
  font-family: 'GillSansStdRegularBold', 'GillSans', sans-serif;
  font-weight: 700;
  font-size: 2.15em;
  letter-spacing: -0.04em;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
  -webkit-text-stroke: 3.5px #FFFFFF;
  paint-order: stroke fill;
}

/* 2. Hitpoints (HP) Block */
.sh-hp-wrapper {
  position: absolute;
  top: 2.5%;
  right: 13.8%;
  display: flex;
  align-items: baseline;
  gap: 0.12em;
  text-align: right;
}

.sh-hp-text {
  font-family: 'GillSansStdUltraBold', 'GillSans', sans-serif;
  font-weight: 900;
  font-size: 1.15em;
  letter-spacing: -0.035em;
  color: #000000;
  -webkit-text-stroke: 3px #FFFFFF;
  paint-order: stroke fill;
}

.sh-hp-amount {
  font-family: 'FuturaLTMediumBold', 'Futura', sans-serif;
  font-weight: 700;
  font-size: 2.8em;
  letter-spacing: -0.05em;
  color: #000000;
  line-height: 1;
  -webkit-text-stroke: 4px #FFFFFF;
  paint-order: stroke fill;
}

/* 3. Type Image Indicator */
.sh-type-img-wrapper {
  position: absolute;
  top: 2.4%;
  right: 4.55%;
  width: 8.5%;
  height: 7.5%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh-type-img-wrapper svg,
.sh-type-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 4. Prevolve Img & Name */
.sh-prevolve-img-wrapper {
  position: absolute;
  top: 7.9%;
  left: 4.6%;
  width: 11%;
  height: 8%;
  border-radius: 1.3em 0.45em 1.95em;
  overflow: hidden;
  z-index: 3.5;
  pointer-events: none;
}

.sh-prevolve-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sh-prevolve-name {
  position: absolute;
  top: 9.7%;
  left: 17.8%;
  width: 58%;
  font-family: 'FrutigerLT66BoldItalic', 'FuturaLTMedium', sans-serif;
  font-size: 0.95em;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  -webkit-text-stroke: 2.5px #FFFFFF;
  paint-order: stroke fill;
}

/* 5. VSTAR Power Ribbon Banner */
.sh-vstar-banner {
  position: absolute;
  top: 51.5%;
  left: 5%;
  width: 90%;
  height: 3.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.sh-vstar-banner-text {
  font-family: 'GillSansStdRegularBold', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1.4em;
  letter-spacing: 0.05em;
  color: #78350F;
  -webkit-text-stroke: 3px #FFFFFF;
  paint-order: stroke fill;
}

/* 6. Trainer & Energy Description Box */
.sh-card-description {
  position: absolute;
  top: 54%;
  left: 11.9%;
  width: 77%;
  height: 31.7%;
  font-family: 'GillSansStdRegular', sans-serif;
  font-size: 1.35em;
  line-height: 1.3em;
  color: #000000;
  text-align: justify;
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-text-stroke: 3px #FFFFFF;
  paint-order: stroke fill;
}

.sh-card-description.energy-desc {
  top: 65.6%;
  left: 8.9%;
  width: 83%;
  height: 25.1%;
  line-height: 1.4em;
}

.sh-trainer-rule {
  position: absolute;
  bottom: 5.5%;
  left: 7.5%;
  width: 85%;
  font-family: 'GillSansStdRegular', sans-serif;
  font-weight: 600;
  font-size: 0.95em;
  color: #000000;
  text-align: center;
  -webkit-text-stroke: 2.5px #FFFFFF;
  paint-order: stroke fill;
}

/* 7. Moves & Ability Wrapper Block (Pokémon) */
.sh-moves-wrapper {
  position: absolute;
  top: 54%;
  left: 5%;
  width: 90%;
  height: 30.5%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 0.4em;
}

.sh-card.subtype-vstar .sh-moves-wrapper {
  top: 57.5%;
  height: 27%;
}

/* Ability */
.sh-ability-block {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sh-ability-header {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.sh-ability-badge-img {
  height: 2.0em;
  object-fit: contain;
}

.sh-ability-name {
  font-family: 'GillSansStdBoldCondensed', 'GillSansCondensed', sans-serif;
  font-weight: 700;
  font-size: 2.2em;
  letter-spacing: -0.04em;
  color: #C00000;
  line-height: 1;
  -webkit-text-stroke: 3.5px #FFFFFF;
  paint-order: stroke fill;
}

.sh-ability-desc {
  font-family: 'GillSansStdRegularBold', 'GillSans', sans-serif;
  font-size: 1.35em;
  line-height: 1.15;
  color: #000000;
  margin-top: 0.1em;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-text-stroke: 3px #FFFFFF;
  paint-order: stroke fill;
}

/* Attack Move */
.sh-move-block {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sh-move-header {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.2em;
  position: relative;
}

.sh-move-energy-costs {
  display: flex;
  align-items: center;
  gap: 0.15em;
  margin-right: 0.4em;
  flex-shrink: 0;
}

.sh-move-energy-costs .sh-energy-icon {
  width: 2.2em;
  height: 2.2em;
}

.sh-move-name {
  font-family: 'GillSansStdBoldCondensed', 'GillSansCondensed', sans-serif;
  font-weight: 700;
  font-size: 2.3em;
  letter-spacing: -0.04em;
  color: #000000;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  -webkit-text-stroke: 4px #FFFFFF;
  paint-order: stroke fill;
}

.sh-move-damage {
  font-family: 'FuturaLTMediumBold', 'Futura', sans-serif;
  font-weight: 700;
  font-size: 2.6em;
  letter-spacing: -0.04em;
  color: #000000;
  margin-left: 0.4em;
  flex-shrink: 0;
  -webkit-text-stroke: 4px #FFFFFF;
  paint-order: stroke fill;
}

.sh-move-desc {
  font-family: 'GillSansStdRegularBold', 'GillSans', sans-serif;
  font-size: 1.35em;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #000000;
  margin-top: 0.1em;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-text-stroke: 3px #FFFFFF;
  paint-order: stroke fill;
}

/* 8. TypeBar Block (Weakness, Resistance, Retreat) */
.sh-typebar {
  position: absolute;
  bottom: 11.2%;
  left: 4.2%;
  width: 88.8%;
  height: 3%;
  display: flex;
  align-items: center;
  font-family: 'FuturaLTMediumBold', 'Futura', sans-serif;
  font-weight: 700;
  color: #000000;
}

.sh-weakness-wrapper {
  position: absolute;
  left: 13.3%;
  display: flex;
  align-items: center;
  gap: 0.2em;
  font-size: 1.0em;
  -webkit-text-stroke: 2.5px #FFFFFF;
  paint-order: stroke fill;
}

.sh-resistance-wrapper {
  position: absolute;
  left: 42.5%;
  display: flex;
  align-items: center;
  gap: 0.2em;
  font-size: 1.0em;
  -webkit-text-stroke: 2.5px #FFFFFF;
  paint-order: stroke fill;
}

.sh-retreat-wrapper {
  position: absolute;
  right: 0.3%;
  width: 23%;
  display: flex;
  gap: 0.15em;
  justify-content: flex-end;
}

.sh-modifier-text {
  font-size: 1.4em;
  font-weight: 700;
  color: #000000;
  line-height: 1;
  -webkit-text-stroke: 2.5px #FFFFFF;
  paint-order: stroke fill;
}

/* 9. Card Info / Footer Block */
.sh-card-info {
  position: absolute;
  bottom: 3.6%;
  left: 6.6%;
  width: 86.8%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: 'FuturaLTMediumBold', 'Futura', sans-serif;
  font-size: 0.88em;
  color: #000000;
  -webkit-text-stroke: 2.5px #FFFFFF;
  paint-order: stroke fill;
}

.sh-card-info-left {
  display: flex;
  align-items: flex-end;
  gap: 0.6em;
}

.sh-illustrator {
  font-style: italic;
  font-weight: 700;
}

.sh-card-number {
  font-style: italic;
  font-weight: 800;
}

.sh-card-info-right {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.sh-rotation-mark {
  background: #000000;
  color: #FFFFFF;
  font-weight: 800;
  padding: 0.05em 0.25em;
  border-radius: 0.15em;
  -webkit-text-stroke: 0px transparent !important;
}

.sh-rarity-symbol {
  font-size: 1.1em;
}

/* 8. TypeBar Block (Weakness, Resistance, Retreat) */
.sh-typebar {
  position: absolute;
  bottom: 11.2%;
  left: 4.2%;
  width: 88.8%;
  height: 3%;
  display: flex;
  align-items: center;
  font-family: 'FuturaLTMediumBold', 'Futura', sans-serif;
  font-weight: 700;
  color: #000;
}

.sh-weakness-wrapper {
  position: absolute;
  left: 13.3%;
  display: flex;
  align-items: center;
  gap: 0.2em;
  font-size: 0.85em;
}

.sh-resistance-wrapper {
  position: absolute;
  left: 42.5%;
  display: flex;
  align-items: center;
  gap: 0.2em;
  font-size: 0.85em;
}

.sh-retreat-wrapper {
  position: absolute;
  right: 0.3%;
  width: 23%;
  display: flex;
  gap: 0.15em;
  justify-content: flex-end;
}

.sh-modifier-text {
  font-size: 1.25em;
  font-weight: 700;
  color: #000000;
  line-height: 1;
}

/* 9. Card Info / Footer Block */
.sh-card-info {
  position: absolute;
  bottom: 3.6%;
  left: 6.6%;
  width: 86.8%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: 'FuturaLTMediumBold', 'Futura', sans-serif;
  font-size: 0.72em;
  color: #000000;
}

.sh-card-info-left {
  display: flex;
  align-items: flex-end;
  gap: 0.6em;
}

.sh-illustrator {
  font-style: italic;
  font-weight: 700;
}

.sh-card-number {
  font-style: italic;
  font-weight: 800;
}

.sh-card-info-right {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.sh-rotation-mark {
  background: #000000;
  color: #FFFFFF;
  font-weight: 800;
  padding: 0.05em 0.25em;
  border-radius: 0.15em;
}

.sh-rarity-symbol {
  font-size: 1.1em;
}

/* Preset Quick Toolbar */
.sh-preset-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sh-preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #D1D5DB;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sh-preset-chip:hover {
  background: rgba(0, 196, 167, 0.15);
  border-color: #00c4a7;
  color: #FFF;
}

.sh-ability-badge-img {
  height: 2.2em;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}
.sh-type-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ════════════════════════════════════════════════════════════════════════
   DYNAMIC ARCHETYPE & SUPERTYPE OVERRIDES (Matching Pokecardmaker 1:1)
   ════════════════════════════════════════════════════════════════════════ */

/* TRAINER LAYOUT OVERRIDES */
.sh-card.supertype-trainer .sh-namebar {
  top: 6.7% !important;
  left: 6.3% !important;
  width: 87.3% !important;
}
.sh-card.supertype-trainer .sh-card-name {
  font-size: 2.8em !important;
  color: #000000 !important;
}
.sh-card.supertype-trainer .sh-hp-wrapper,
.sh-card.supertype-trainer .sh-type-img-wrapper,
.sh-card.supertype-trainer .sh-prevolve-img-wrapper,
.sh-card.supertype-trainer .sh-vstar-banner,
.sh-card.supertype-trainer .sh-moves-wrapper,
.sh-card.supertype-trainer .sh-typebar {
  display: none !important;
}
.sh-card.supertype-trainer .sh-card-description {
  display: block !important;
  top: 54% !important;
  left: 11.9% !important;
  width: 77% !important;
  height: 31.7% !important;
  font-family: 'FrutigerLT55Roman', 'GillSans', sans-serif !important;
  font-size: 1.6em !important;
  color: #000000 !important;
}
.sh-card.supertype-trainer .sh-trainer-rule {
  display: block !important;
  bottom: 5.5% !important;
  left: 7.5% !important;
  width: 85% !important;
  font-family: 'GillSansStdRegularBold', sans-serif !important;
  font-size: 0.9em !important;
  color: #000000 !important;
}

/* ENERGY LAYOUT OVERRIDES */
.sh-card.supertype-energy .sh-namebar {
  top: 6.7% !important;
  left: 6.3% !important;
  width: 87.3% !important;
}
.sh-card.supertype-energy .sh-card-name {
  font-size: 2.8em !important;
  color: #000000 !important;
}
.sh-card.supertype-energy .sh-hp-wrapper,
.sh-card.supertype-energy .sh-type-img-wrapper,
.sh-card.supertype-energy .sh-prevolve-img-wrapper,
.sh-card.supertype-energy .sh-vstar-banner,
.sh-card.supertype-energy .sh-moves-wrapper,
.sh-card.supertype-energy .sh-typebar,
.sh-card.supertype-energy .sh-trainer-rule {
  display: none !important;
}
.sh-card.supertype-energy .sh-card-description {
  display: block !important;
  top: 65.6% !important;
  left: 8.9% !important;
  width: 83% !important;
  height: 25.1% !important;
  font-family: 'FrutigerLT55Roman', 'GillSans', sans-serif !important;
  font-size: 1.6em !important;
  color: #000000 !important;
}




/* ════════════════════════════════════════════════════════════════════════
   POKECARDMAKER ACCORDION DOCK STYLING (Clean & Pixel-Perfect)
   ════════════════════════════════════════════════════════════════════════ */
.sh-dock.pokecardmaker-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
  width: 100%;
}

.sh-acc-card {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.sh-acc-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.sh-acc-header {
  padding: 0.85rem 1.15rem;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
}

.sh-acc-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sh-acc-icon {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
  color: #00c4a7;
}

.sh-acc-card.closed .sh-acc-icon {
  transform: rotate(0deg);
}

.sh-acc-card.open .sh-acc-icon {
  transform: rotate(180deg);
}

.sh-acc-body {
  padding: 1rem 1.15rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sh-acc-card.closed .sh-acc-body {
  display: none !important;
}

.sh-acc-card.open .sh-acc-body {
  display: flex !important;
}
/* ════════════════════════════════════════════════════════════════════════
   FLEX SCROLLING & ADD ATTACK MODAL DIALOG (Matching Screenshot 2)
   ════════════════════════════════════════════════════════════════════════ */

.sh-dock {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  padding: 0.85rem !important;
  height: 100% !important;
  max-height: calc(100vh - 80px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.sh-acc-card {
  flex-shrink: 0 !important;
  width: 100% !important;
  background: #0f0f0f !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

/* MODAL BACKDROP & DIALOG */
.sh-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.sh-modal-backdrop.open {
  display: flex !important;
}

.sh-modal-dialog {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  width: 480px;
  max-width: 92vw;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sh-modal-header {
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sh-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #FFF;
}

.sh-modal-close {
  background: transparent;
  border: none;
  color: #AAA;
  font-size: 1.2rem;
  cursor: pointer;
}
.sh-modal-close:hover { color: #FFF; }

.sh-modal-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem;
  margin: 1rem 1.25rem 0.5rem 1.25rem;
  border-radius: 10px;
  gap: 0.35rem;
}

.sh-modal-tab {
  flex: 1;
  padding: 0.6rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #AAA;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sh-modal-tab.active {
  background: #00c4a7;
  color: #FFF;
}

.sh-modal-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sh-btn-group {
  display: flex;
  gap: 0.25rem;
}

.sh-mod-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFF;
  padding: 0.55rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.sh-mod-btn.active {
  background: #00c4a7;
  border-color: #00c4a7;
}

.sh-energy-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.sh-energy-pick-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.sh-energy-pick-btn:hover {
  transform: scale(1.15);
}

.sh-energy-pick-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sh-energy-pick-btn.del-btn {
  width: auto;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.sh-energy-cost-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #AAA;
}

.sh-cost-icons-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.sh-cost-icons-list img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sh-modal-footer {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

/* PREVOLVE PILL & RANGE BADGE STYLING (Matching Screenshot 1:1) */
.sh-pill-btn {
  background: #00c4a7;
  color: #FFF;
  font-weight: 700;
  border-radius: 20px;
  padding: 0.65rem 1.1rem;
  border: none;
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.sh-pill-btn:hover {
  background: #00c4a7;
}

.sh-pill-remove {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}
.sh-pill-remove:hover {
  background: rgba(239, 68, 68, 0.8);
}

.sh-range-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sh-badge-val {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  min-width: 44px;
  text-align: center;
}

/* POKECARDMAKER DOCK MOVE CARDS & MODAL STYLES (Screenshot 1-5 1:1) */

.sh-dock-move-card {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.sh-move-card-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
}

.sh-move-drag-handle {
  color: #666;
  font-size: 1.1rem;
  cursor: grab;
  user-select: none;
}

.sh-move-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.sh-move-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sh-move-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFF;
}

.sh-move-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  color: #FFF;
}

.sh-move-badge.ability { background: #DC2626; }
.sh-move-badge.attack { background: #00c4a7; }

.sh-move-card-desc {
  font-size: 0.8rem;
  color: #AAA;
  line-height: 1.25em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sh-move-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
}

.sh-move-card-costs {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.sh-move-card-costs img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.sh-move-card-dmg {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #FFF;
}

.sh-move-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-left: 0.75rem;
}

.sh-move-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  color: #FFF;
  transition: transform 0.15s ease;
}

.sh-move-action-btn:hover { transform: scale(1.15); }
.sh-move-action-btn.edit { background: #00c4a7; }
.sh-move-action-btn.delete { background: #EF4444; }

/* TEXTMODIFIKATOREN TOOLBAR (Screenshot 2) */
.sh-text-mod-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.6rem;
  margin-bottom: 0.35rem;
}

.sh-mod-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #AAA;
  margin-bottom: 0.4rem;
  display: block;
}

.sh-mod-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.sh-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFF;
  border-radius: 14px;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sh-chip:hover {
  background: #00c4a7;
  border-color: #00c4a7;
}


/* Ultra-Crisp Proportional Outline Strokes & High Contrast Shadow */
.sh-card-name {
  -webkit-text-stroke: var(--sh-name-outline-width, calc(var(--sh-outline-width, 4.5px) * 0.9)) var(--sh-outline-color, #FFFFFF) !important;
  paint-order: stroke fill !important;
  filter: var(--sh-text-shadow-filter, drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.5))) !important;
}

.sh-hp-text,
.sh-hp-amount {
  -webkit-text-stroke: var(--sh-hp-outline-width, calc(var(--sh-outline-width, 4.5px) * 0.85)) var(--sh-outline-color, #FFFFFF) !important;
  paint-order: stroke fill !important;
  filter: var(--sh-text-shadow-filter, drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.5))) !important;
}

.sh-ability-name,
.sh-move-name,
.sh-move-damage {
  -webkit-text-stroke: var(--sh-move-title-outline-width, calc(var(--sh-outline-width, 4.5px) * 0.75)) var(--sh-outline-color, #FFFFFF) !important;
  paint-order: stroke fill !important;
  filter: var(--sh-text-shadow-filter, drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.5))) !important;
}

.sh-ability-desc,
.sh-move-desc {
  -webkit-text-stroke: var(--sh-move-desc-outline-width, calc(var(--sh-outline-width, 4.5px) * 0.45)) var(--sh-outline-color, #FFFFFF) !important;
  paint-order: stroke fill !important;
  filter: var(--sh-text-shadow-filter, drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.5))) !important;
}

.sh-card-description,
.sh-trainer-rule {
  -webkit-text-stroke: var(--sh-desc-outline-width, calc(var(--sh-outline-width, 4.5px) * 0.45)) var(--sh-outline-color, #FFFFFF) !important;
  paint-order: stroke fill !important;
  filter: var(--sh-text-shadow-filter, drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.5))) !important;
}

.sh-prevolve-name,
.sh-vstar-banner-text,
.sh-weakness-wrapper,
.sh-resistance-wrapper,
.sh-modifier-text,
.sh-card-info,
.sh-illustrator,
.sh-card-number {
  -webkit-text-stroke: var(--sh-info-outline-width, calc(var(--sh-outline-width, 4.5px) * 0.4)) var(--sh-outline-color, #FFFFFF) !important;
  paint-order: stroke fill !important;
  filter: var(--sh-text-shadow-filter, drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.5))) !important;
}


/* Prevent Native Browser Image Dragging Ghosting */
#shCard img,
#shCard span,
#shCard div,
#shCard svg {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}


/* ════════════════════════════════════════════════════════════════════════
   POKECARDMAKER CARD LAYERS (ROCK-SOLID ABSOLUTE CENTERING & STRETCH)
   ════════════════════════════════════════════════════════════════════════ */
.sh-card {
  position: relative !important;
  aspect-ratio: 747 / 1038 !important;
  width: 100% !important;
  max-width: 540px !important;
  margin: 0 auto !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: #FFFFFF !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 196, 167, 0.16) !important;
  user-select: none !important;
}

/* Layer 0: Card Background Img */
.sh-card-bg-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 1 !important;
}

/* Layer 1: Main Custom Pokemon Artwork (BEHIND FRAME PNG) */
.sh-card-art-container {
  position: absolute !important;
  top: 10.5% !important;
  left: 7.2% !important;
  width: 85.6% !important;
  height: 42.5% !important;
  overflow: hidden !important;
  z-index: 2 !important;
}

.sh-card-art-container.full-art {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.sh-card-art-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Layer 3.5: Pre-evolution Img Wrapper (IN FRONT OF FRAME PNG) */
.sh-prevolve-img-wrapper {
  position: absolute !important;
  top: 7.9% !important;
  left: 4.6% !important;
  width: 11% !important;
  height: 8% !important;
  border-radius: 0.6em 0.25em 0.9em !important;
  overflow: hidden !important;
  z-index: 5 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

.sh-prevolve-img-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Layer 3: Card Frame Overlay PNG (IN FRONT OF ARTWORK, BEHIND ALL TEXT & BADGES) */
.sh-card-frame-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  pointer-events: none !important;
  z-index: 4 !important;
  display: block !important;
}

/* Layer 4: Card Overlay Content (IN FRONT OF FRAME PNG: Text, Badges, Icons, Namebar, HP, Moves, Rulebox) */
.sh-card-content {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 10 !important;
}

.sh-card-content > * {
  z-index: 12 !important;
}


/* Official Card Name Symbol Badge (VSTAR, VMAX, V, ex, GX) */
.sh-name-symbol-badge {
  height: 1.15em !important;
  width: auto !important;
  vertical-align: -0.08em !important;
  margin-left: 0.25em !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)) !important;
  -webkit-user-drag: none !important;
}

/* Rule Box (VMAX, VSTAR, ex, etc.) */
.sh-rule-box {
  position: absolute !important;
  bottom: 2.8em !important;
  right: 1.8em !important;
  z-index: 25 !important;
  background: rgba(15, 15, 20, 0.92) !important;
  border: 1.5px solid #ffffff !important;
  border-radius: 20px !important;
  padding: 0.22em 0.75em !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5em !important;
  color: #fff !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 0.65em !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7) !important;
  pointer-events: auto !important;
  max-width: 80% !important;
}

.sh-rule-badge {
  font-weight: 900 !important;
  font-style: italic !important;
  font-family: 'Montserrat', sans-serif !important;
  text-transform: uppercase !important;
  background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%) !important;
  color: #000 !important;
  padding: 0.1em 0.45em !important;
  border-radius: 4px !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  font-size: 0.9em !important;
}

.sh-rule-text {
  font-weight: 600 !important;
  color: #f3f4f6 !important;
  font-size: 0.92em !important;
  line-height: 1.1 !important;
}

/* Sub-banner (Dynamax / Gigantamax under card name) */
.sh-sub-banner {
  position: absolute !important;
  top: 4.8em !important;
  left: 6.2em !important;
  z-index: 26 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-style: italic !important;
  font-size: 0.75em !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  background: linear-gradient(90deg, #ec4899, #f43f5e) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.9)) !important;
}

/* ════════════════════════════════════════════════════════════════════════
   RIGHT BUY PANEL — SHOPIFY CUSTOMER MODE (DEDICATED RIGHT COLUMN)
   ════════════════════════════════════════════════════════════════════════ */
.sh-right-buy-panel {
  background: var(--sh-panel-bg);
  border: 1px solid var(--sh-panel-border);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  width: 100% !important;
  max-width: 380px !important;
}

.sh-buy-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.sh-badge-pill {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.sh-product-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #F9FAFB;
  line-height: 1.25;
}

.sh-price-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sh-price-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sh-price-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  color: #10B981;
}

.sh-variant-select-lg {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: #1F2937;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #F9FAFB;
  outline: none;
  transition: all 0.2s;
  cursor: pointer;
}

.sh-variant-select-lg:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.sh-qty-picker-lg {
  display: flex;
  align-items: center;
  background: #1F2937;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  height: 46px;
  width: 100%;
}

.sh-qty-btn {
  width: 48px;
  height: 100%;
  background: transparent;
  border: none;
  color: #F9FAFB;
  font-weight: 800;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
}

.sh-qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sh-qty-input {
  flex: 1;
  text-align: center;
  background: transparent;
  border: none;
  color: #F9FAFB;
  font-weight: 800;
  font-size: 1.05rem;
  outline: none;
}

.sh-product-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sh-feature-item {
  font-size: 0.78rem;
  color: #D1D5DB;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sh-btn-cart-lg {
  width: 100%;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.sh-btn-cart-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.55);
}

/* ════════════════════════════════════════════════════════════════════════
   TRIOMI VISUAL VARIANT CARDS & SWATCHES
   ════════════════════════════════════════════════════════════════════════ */
.tpx-variant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.tpx-variant-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 82px;
}

.tpx-variant-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.tpx-variant-card.active {
  border-color: #00c4a7 !important;
  background: rgba(0, 196, 167, 0.12) !important;
  box-shadow: 0 0 18px rgba(0, 196, 167, 0.3) !important;
}

.tpx-variant-card.active::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.85rem;
  font-weight: 900;
  color: #00c4a7;
}

.tpx-variant-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #00c4a7;
  background: rgba(0, 196, 167, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
  width: fit-content;
  text-transform: uppercase;
}

.tpx-variant-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #F5F5F3;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.tpx-variant-card-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #00c4a7;
  margin-top: 4px;
}

/* TrioMi Primary Buy Button (Clip-path Polygon style) */
.tpx-btn-primary-atc {
  display: block;
  width: 100%;
  background: #00c4a7;
  color: #000000;
  border: none;
  padding: 1.05rem 1.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 196, 167, 0.4);
  margin-top: 0.8rem;
  text-align: center;
}

.tpx-btn-primary-atc:hover {
  background: #00a896;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 196, 167, 0.6);
}

/* ════════════════════════════════════════════════════════════════════════
   TRIOMI 3-OPTION VISUAL SWATCHES (CASE, BACK, ZERTIFIKAT)
   ════════════════════════════════════════════════════════════════════════ */
.tpx-opt-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.tpx-opt-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tpx-opt-label span.tpx-opt-val {
  color: #00c4a7;
  font-weight: 700;
}

.tpx-swatch-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tpx-swatch-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Swatch Card Pill */
.tpx-swatch-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tpx-swatch-pill:hover {
  border-color: rgba(0, 196, 167, 0.5);
  background: rgba(0, 196, 167, 0.08);
}

.tpx-swatch-pill.active {
  border-color: #00c4a7 !important;
  background: rgba(0, 196, 167, 0.16) !important;
  box-shadow: 0 0 14px rgba(0, 196, 167, 0.3) !important;
}

.tpx-swatch-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.tpx-swatch-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #F5F5F3;
}

/* Card Back Swatches with Visual Preview Images */
.tpx-back-swatch {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tpx-back-swatch:hover {
  border-color: #00c4a7;
  background: rgba(0, 196, 167, 0.08);
}

.tpx-back-swatch.active {
  border-color: #00c4a7 !important;
  background: rgba(0, 196, 167, 0.16) !important;
  box-shadow: 0 0 14px rgba(0, 196, 167, 0.3) !important;
}

.tpx-back-preview {
  width: 100%;
  height: 48px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.tpx-back-preview.dunkel {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
  color: #00c4a7;
  border-color: rgba(0, 196, 167, 0.4);
}

.tpx-back-preview.hell {
  background: linear-gradient(135deg, #f4f0e6 0%, #ffffff 100%);
  color: #1a1208;
  border-color: #c9a227;
}

.tpx-back-preview.nonbrand {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #9ca3af;
  border-color: rgba(255,255,255,0.2);
}

/* Visual Image Swatches for Case and Back Options */
.tpx-img-swatch {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 8px 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tpx-img-swatch:hover {
  border-color: #00c4a7;
  background: rgba(0, 196, 167, 0.08);
  transform: translateY(-2px);
}

.tpx-img-swatch.active {
  border-color: #00c4a7 !important;
  background: rgba(0, 196, 167, 0.16) !important;
  box-shadow: 0 0 16px rgba(0, 196, 167, 0.35) !important;
}

.tpx-swatch-img-box {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  overflow: hidden;
}

.tpx-swatch-svg {
  width: 100%;
  height: 100%;
  max-height: 56px;
  object-fit: contain;
}

/* Full Width & Seamless Integration */
.studio-card-creator-section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* ════════════════════════════════════════════════════════════════════════
   CLEAN CARD FLIP ANIMATION SYSTEM
   ════════════════════════════════════════════════════════════════════════ */
.sh-btn-flip {
  width: 100%;
  max-width: 540px;
  margin: 0.85rem auto 0 auto;
  padding: 0.75rem 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, rgba(0, 196, 167, 0.25) 0%, rgba(124, 58, 237, 0.25) 100%);
  border: 1px solid #00c4a7;
  border-radius: 12px;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 196, 167, 0.25);
}

.sh-btn-flip:hover {
  background: linear-gradient(135deg, rgba(0, 196, 167, 0.45) 0%, rgba(124, 58, 237, 0.45) 100%);
  box-shadow: 0 6px 20px rgba(0, 196, 167, 0.45);
  transform: translateY(-2px);
}

.tpx-swatch-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* Bottom Padding & Clipping Protections */
.sh-buy-panel-inner {
  padding-bottom: 3.5rem !important;
}

.sh-stage-wrapper {
  padding-bottom: 2.5rem !important;
}

.sh-dock {
  padding-bottom: 3.5rem !important;
}

.sh-grid {
  padding-bottom: 3rem !important;
}




