/* ==========================================================================
   CoolCards.in - Luxury Physical NFC Smart Card Generator
   9 Metallic & Tactile Finishes, EMV Chip Circuitry, Multi-Font System
   ========================================================================== */

.bc-studio {
  display: grid;
  grid-template-columns: 460px 1fr;
  min-height: calc(100vh - var(--cc-header-h, 70px));
  background: var(--cc-bg, #0b1110);
}

.bc-sidebar {
  background: linear-gradient(180deg, #101915 0%, #0c1410 100%);
  border-right: 1px solid var(--cc-border, rgba(255, 255, 255, 0.08));
  height: calc(100vh - var(--cc-header-h, 70px));
  position: sticky;
  top: var(--cc-header-h, 70px);
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bc-viewport {
  background: radial-gradient(circle at 50% 25%, rgba(197, 245, 138, 0.05) 0%, transparent 70%), #080d0c;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--cc-header-h, 70px));
  position: relative;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Top Card Side Controls (Segmented Front / Back Pills - Tweet Generator Parity)
   -------------------------------------------------------------------------- */
.bc-top-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  z-index: 10;
}

.bc-top-controls .control-pill-wrapper {
  display: flex;
  align-items: center;
}

.bc-top-controls .control-pill-label {
  display: none;
}

.bc-top-controls .segmented-pill-bar {
  display: flex;
  background: rgba(13, 20, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--cc-border, rgba(197, 245, 138, 0.14));
  border-radius: 99px;
  padding: 4px;
  gap: 3px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.bc-top-controls .pill-item {
  background: transparent;
  border: 1px solid transparent;
  color: var(--cc-muted, #728a7c);
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 650;
  font-family: inherit;
  border-radius: 99px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.bc-top-controls .pill-item i {
  font-size: 13px;
}

.bc-top-controls .pill-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.bc-top-controls .pill-item.active {
  background: var(--cc-mint, #c5f58a) !important;
  color: #0b1110 !important;
  border-color: var(--cc-mint, #c5f58a) !important;
  font-weight: 750 !important;
  box-shadow: 0 2px 12px rgba(197, 245, 138, 0.3) !important;
}

/* --------------------------------------------------------------------------
   3D Card Stage & Realistic Credit Card Geometry (CR80 Standard Ratio 1.586:1)
   -------------------------------------------------------------------------- */
.bc-stage {
  perspective: 1400px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
  width: 100%;
}

.bc-card-flipper {
  width: min(530px, calc(100vw - 36px));
  aspect-ratio: 1.586 / 1;
  height: auto;
  position: relative;
  transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.bc-card-flipper.flipped {
  transform: rotateY(180deg);
}

.bc-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.75),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.22),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  font-family: 'Outfit', sans-serif;
  box-sizing: border-box;
}

/* Light Sheen Reflection Layer Across the Card */
.bc-card-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.16) 48%, rgba(255, 255, 255, 0.02) 54%, transparent 100%);
  pointer-events: none;
  border-radius: 18px;
  z-index: 2;
}

.bc-card-flipper:hover .bc-card-face {
  box-shadow: 
    0 35px 70px -15px rgba(0, 0, 0, 0.9),
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.7),
    0 0 0 1.5px var(--bc-accent-glow, rgba(197, 245, 138, 0.4));
}

.bc-card-back {
  transform: rotateY(180deg);
}

/* --------------------------------------------------------------------------
   EXECUTIVE FONT SYSTEM (Reactive Typefaces)
   -------------------------------------------------------------------------- */
.bc-stage.font-outfit .bc-card-face { font-family: 'Outfit', -apple-system, sans-serif; }
.bc-stage.font-poppins .bc-card-face { font-family: 'Poppins', -apple-system, sans-serif; }
.bc-stage.font-plus-jakarta .bc-card-face { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.bc-stage.font-montserrat .bc-card-face { font-family: 'Montserrat', sans-serif; }
.bc-stage.font-cinzel .bc-card-face { font-family: 'Cinzel', serif; }
.bc-stage.font-playfair .bc-card-face { font-family: 'Playfair Display', serif; }
.bc-stage.font-inter .bc-card-face { font-family: 'Inter', system-ui, sans-serif; }
.bc-stage.font-space-grotesk .bc-card-face { font-family: 'Space Grotesk', monospace, sans-serif; }
.bc-stage.font-syne .bc-card-face { font-family: 'Syne', sans-serif; }

.bc-stage.font-poppins .bc-person-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bc-stage.font-poppins .bc-person-title {
  font-weight: 500;
}
.bc-stage.font-poppins .bc-company-name {
  font-weight: 700;
}
.bc-stage.font-cinzel .bc-person-name,
.bc-stage.font-cinzel .bc-company-name {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bc-stage.font-montserrat .bc-person-name {
  letter-spacing: 0.02em;
  font-weight: 800;
}
.bc-stage.font-playfair .bc-person-name {
  font-style: italic;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   THEME 1: Metal Black (Brushed Steel Gunmetal)
   -------------------------------------------------------------------------- */
.theme-metal-black .bc-card-face {
  background: 
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 4px),
    linear-gradient(135deg, #22272c 0%, #13171a 45%, #1b2024 75%, #0e1113 100%);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  --bc-accent: #cbd5e1;
  --bc-accent-glow: rgba(203, 213, 225, 0.35);
  --bc-chip-bg: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 50%, #94a3b8 100%);
  --bc-chip-core: #cbd5e1;
  --bc-foil: #f8fafc;
}
.theme-metal-black .bc-accent { color: var(--bc-accent); }

/* --------------------------------------------------------------------------
   THEME 2: Premium Black (Stealth Velvet Obsidian Noir)
   -------------------------------------------------------------------------- */
.theme-premium-black .bc-card-face {
  background: 
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
    linear-gradient(145deg, #101413 0%, #070908 60%, #030403 100%);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  --bc-accent: #94a3b8;
  --bc-accent-glow: rgba(148, 163, 184, 0.3);
  --bc-chip-bg: linear-gradient(135deg, #334155 0%, #1e293b 50%, #0f172a 100%);
  --bc-chip-core: #475569;
  --bc-foil: #ffffff;
}
.theme-premium-black .bc-accent { color: var(--bc-accent); }

/* --------------------------------------------------------------------------
   THEME 3: 24K Golden (Brushed Heavy Bullion Gold)
   -------------------------------------------------------------------------- */
.theme-golden .bc-card-face {
  background: 
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 3px),
    linear-gradient(135deg, #e5c158 0%, #b8860b 25%, #fdf5a6 50%, #c59b27 75%, #8c6508 100%);
  color: #120e05;
  border: 1px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 25px 50px -12px rgba(184, 134, 11, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.4);
  --bc-accent: #241b08;
  --bc-accent-glow: rgba(229, 193, 88, 0.5);
  --bc-chip-bg: linear-gradient(135deg, #fff2a3 0%, #d4af37 50%, #996515 100%);
  --bc-chip-core: #b8860b;
  --bc-foil: #000000;
}
.theme-golden .bc-accent { color: var(--bc-accent); font-weight: 700; }
.theme-golden .bc-company-tagline { color: #3a2e12 !important; opacity: 0.9; }
.theme-golden .bc-smart-chip { border-color: rgba(0, 0, 0, 0.3); }

/* --------------------------------------------------------------------------
   THEME 4: Executive Black & Gold (Noir with 24K Gold Foil)
   -------------------------------------------------------------------------- */
.theme-black-gold .bc-card-face,
.theme-champagne-gold .bc-card-face {
  background: 
    radial-gradient(circle at 80% 20%, rgba(229, 193, 88, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, #161412 0%, #0b0a08 60%, #050403 100%);
  color: #faf6f0;
  border: 1px solid rgba(229, 193, 88, 0.28);
  --bc-accent: #e5c158;
  --bc-accent-glow: rgba(229, 193, 88, 0.4);
  --bc-chip-bg: linear-gradient(135deg, #fdf3a9 0%, #d4af37 50%, #8a5a00 100%);
  --bc-chip-core: #b8860b;
  --bc-foil: #f5d77f;
}
.theme-black-gold .bc-accent,
.theme-champagne-gold .bc-accent { color: var(--bc-accent); }

/* --------------------------------------------------------------------------
   THEME 5: Obsidian Mint (CoolCards Signature)
   -------------------------------------------------------------------------- */
.theme-obsidian-mint .bc-card-face,
.theme-cyber-glow .bc-card-face {
  background: 
    radial-gradient(circle at 85% 15%, rgba(197, 245, 138, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, #111d17 0%, #0a130f 60%, #050907 100%);
  color: #f3f7f5;
  border: 1px solid rgba(197, 245, 138, 0.22);
  --bc-accent: #c5f58a;
  --bc-accent-glow: rgba(197, 245, 138, 0.35);
  --bc-chip-bg: linear-gradient(135deg, #c5f58a 0%, #83be45 50%, #4a7522 100%);
  --bc-chip-core: #83be45;
  --bc-foil: #c5f58a;
}
.theme-obsidian-mint .bc-accent,
.theme-cyber-glow .bc-accent { color: var(--bc-accent); }

/* --------------------------------------------------------------------------
   THEME 6: Rose Gold (Brushed Luxury Copper)
   -------------------------------------------------------------------------- */
.theme-rose-gold .bc-card-face {
  background: 
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 3px),
    linear-gradient(135deg, #d88a70 0%, #b06550 30%, #ffd6ba 55%, #bd735c 80%, #7d3f2e 100%);
  color: #240d07;
  border: 1px solid rgba(255, 214, 186, 0.5);
  box-shadow: 0 25px 50px -12px rgba(176, 101, 80, 0.35);
  --bc-accent: #3d1c13;
  --bc-accent-glow: rgba(216, 138, 112, 0.4);
  --bc-chip-bg: linear-gradient(135deg, #ffe5d9 0%, #d88a70 50%, #8c422d 100%);
  --bc-chip-core: #a0503a;
  --bc-foil: #240d07;
}
.theme-rose-gold .bc-accent { color: var(--bc-accent); font-weight: 700; }
.theme-rose-gold .bc-company-tagline { color: #4a2116 !important; opacity: 0.9; }

/* --------------------------------------------------------------------------
   THEME 7: Space Titanium (Raw Aerospace Frosted Platinum)
   -------------------------------------------------------------------------- */
.theme-space-titanium .bc-card-face {
  background: 
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 3px),
    linear-gradient(135deg, #374151 0%, #1f2937 40%, #4b5563 70%, #111827 100%);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  --bc-accent: #38bdf8;
  --bc-accent-glow: rgba(56, 189, 248, 0.35);
  --bc-chip-bg: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #64748b 100%);
  --bc-chip-core: #94a3b8;
  --bc-foil: #ffffff;
}
.theme-space-titanium .bc-accent { color: var(--bc-accent); }

/* --------------------------------------------------------------------------
   THEME 8: Royal Emerald (Imperial Lacquer & Gold)
   -------------------------------------------------------------------------- */
.theme-royal-emerald .bc-card-face {
  background: 
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, #092619 0%, #04140d 60%, #020a06 100%);
  color: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.28);
  --bc-accent: #e5c158;
  --bc-accent-glow: rgba(16, 185, 129, 0.4);
  --bc-chip-bg: linear-gradient(135deg, #fdf3a9 0%, #d4af37 50%, #8a5a00 100%);
  --bc-chip-core: #b8860b;
  --bc-foil: #f5d77f;
}
.theme-royal-emerald .bc-accent { color: var(--bc-accent); }

/* --------------------------------------------------------------------------
   THEME 9: Ceramic Minimalist White (Matte Ceramic & Obsidian Engraving)
   -------------------------------------------------------------------------- */
.theme-stark-white .bc-card-face {
  background: 
    radial-gradient(circle at 10% 10%, rgba(0, 0, 0, 0.02) 0%, transparent 60%),
    linear-gradient(145deg, #ffffff 0%, #f4f6f5 60%, #e9ecea 100%);
  color: #0b1110;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), inset 0 1px 1px #ffffff;
  --bc-accent: #0b6e4f;
  --bc-accent-glow: rgba(11, 110, 79, 0.25);
  --bc-chip-bg: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 50%, #475569 100%);
  --bc-chip-core: #64748b;
  --bc-foil: #0b1110;
}
.theme-stark-white .bc-accent { color: var(--bc-accent); }
.theme-stark-white .bc-company-tagline { color: #52635d !important; opacity: 0.9; }

/* --------------------------------------------------------------------------
   Front Face Elements
   -------------------------------------------------------------------------- */
.bc-front-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 3;
}

.bc-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bc-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.bc-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bc-company-name {
  font-size: 14.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}

.bc-company-tagline {
  font-size: 10.5px;
  opacity: 0.75;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Realistic 3D EMV Smart Chip (Authentic Circuit Geometry)
   -------------------------------------------------------------------------- */
.bc-smart-chip {
  width: 48px;
  height: 36px;
  border-radius: 7px;
  position: relative;
  overflow: hidden;
  background: var(--bc-chip-bg, linear-gradient(135deg, #fdf3a9 0%, #d4af37 50%, #8a5a00 100%));
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    inset 0 -1px 1px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.bc-chip-circuit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bc-chip-line {
  position: absolute;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0.5px 0.5px rgba(255, 255, 255, 0.25);
}

.bc-chip-line.bc-l1 { width: 100%; height: 1px; top: 11px; }
.bc-chip-line.bc-l2 { width: 100%; height: 1px; bottom: 11px; }
.bc-chip-line.bc-l3 { width: 1px; height: 100%; }

.bc-chip-core-circle {
  width: 14px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: transparent;
  box-shadow: 0 0.5px 0.5px rgba(255, 255, 255, 0.25);
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Front Bottom: Person Name, Title & Universal Contactless Waves
   -------------------------------------------------------------------------- */
.bc-front-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 3;
}

.bc-person-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.bc-person-title {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Authentic Contactless Waves Icon */
.bc-nfc-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: 0.9;
}

.bc-nfc-waves {
  width: 15px;
  height: 18px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.bc-wave {
  position: absolute;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
}

.bc-wave:nth-child(1) { width: 6px; height: 6px; left: 0; }
.bc-wave:nth-child(2) { width: 11px; height: 11px; left: -1px; }
.bc-wave:nth-child(3) { width: 16px; height: 16px; left: -2px; }
.bc-wave:nth-child(4) { width: 21px; height: 21px; left: -3px; }

.bc-nfc-text {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Back Face Elements: Magnetic Stripe & Contact Grid
   -------------------------------------------------------------------------- */
.bc-magstripe {
  height: 38px;
  width: calc(100% + 68px);
  margin: -30px -34px 14px;
  background: linear-gradient(180deg, #101412 0%, #1c2621 50%, #0d1210 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 34px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.bc-magstripe-pattern {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 4px, rgba(255, 255, 255, 0.02) 4px, rgba(255, 255, 255, 0.02) 8px);
  opacity: 0.7;
}

.bc-card-serial {
  position: relative;
  z-index: 2;
  font-family: 'Space Grotesk', monospace;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}

.bc-back-grid {
  display: grid;
  grid-template-columns: 1fr 130px;
  height: calc(100% - 10px);
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.bc-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bc-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  text-decoration: none;
  color: inherit;
  font-weight: 550;
  letter-spacing: 0.01em;
  min-width: 0;
}

.bc-contact-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bc-contact-item i {
  width: 16px;
  text-align: center;
  font-size: 13px;
  flex-shrink: 0;
}

.bc-qr-card-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bc-qr-img-wrapper {
  width: 110px;
  height: 110px;
  min-width: 110px;
  min-height: 110px;
  max-width: 110px;
  max-height: 110px;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 12px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  overflow: hidden;
}

.bc-qr-img-wrapper canvas {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.bc-qr-img-wrapper img {
  width: 98px !important;
  height: 98px !important;
  max-width: 98px !important;
  max-height: 98px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

.bc-qr-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Luxury Themes Grid in Sidebar (Matches Tweet Studio & Business Card Studio)
   -------------------------------------------------------------------------- */
.bc-themes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.theme-card-box {
  border: 1.5px solid var(--cc-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
}

.theme-card-box:hover {
  border-color: rgba(197, 245, 138, 0.4);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.theme-card-box.active {
  border-color: var(--cc-mint, #c5f58a) !important;
  background: rgba(197, 245, 138, 0.07) !important;
  box-shadow: 0 0 14px var(--cc-mint-glow, rgba(197, 245, 138, 0.2)) !important;
}

.theme-mini-mockup {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.theme-title-text {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-card-box.active .theme-title-text {
  color: var(--cc-mint, #c5f58a);
}

.theme-hex-sub {
  font-size: 9.5px;
  font-weight: 500;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Floating Action Dock
   -------------------------------------------------------------------------- */
.bc-actions-dock {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 23, 19, 0.95);
  border: 1px solid var(--cc-border, rgba(255, 255, 255, 0.12));
  backdrop-filter: blur(14px);
  padding: 8px 16px;
  border-radius: 99px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  position: sticky;
  bottom: 20px;
  z-index: 100;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1050px) {
  .bc-studio {
    display: flex;
    flex-direction: column-reverse;
  }
  .bc-sidebar {
    height: auto;
    position: static;
    border-right: none;
    border-top: 1px solid var(--cc-border, rgba(255, 255, 255, 0.08));
    padding: 24px 16px;
  }
  .bc-viewport {
    padding: 30px 16px;
    min-height: auto;
    border-bottom: 1px solid var(--cc-border, rgba(255, 255, 255, 0.08));
  }
}

@media (max-width: 600px) {
  .bc-top-controls {
    margin-bottom: 16px;
  }
  .bc-top-controls .control-pill-wrapper {
    padding: 3px 4px 3px 12px;
    gap: 8px;
  }
  .bc-top-controls .pill-item {
    padding: 5px 12px;
    font-size: 11.5px;
  }
  .bc-viewport {
    padding: 20px 10px;
  }
  .bc-card-face {
    padding: clamp(16px, 4vw, 24px) clamp(16px, 4.5vw, 26px);
    border-radius: 14px;
  }
  .bc-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .bc-smart-chip {
    width: 40px;
    height: 30px;
  }
  .bc-person-name {
    font-size: clamp(17px, 4.5vw, 21px);
  }
  .bc-person-title {
    font-size: 10px;
  }
  .bc-magstripe {
    height: 32px;
    width: calc(100% + 50px);
    margin: -18px -25px 10px;
    padding: 0 25px;
  }
  .bc-back-grid {
    grid-template-columns: 1fr 90px;
    gap: 12px;
  }
  .bc-qr-img-wrapper {
    width: 82px;
    height: 82px;
    padding: 5px;
    border-radius: 9px;
  }
  .bc-qr-img-wrapper canvas {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  .bc-qr-img-wrapper img {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }
  .bc-contact-item {
    font-size: 10.5px;
    gap: 8px;
  }
  .bc-actions-dock {
    flex-wrap: wrap;
    justify-content: center;
    width: calc(100% - 16px);
    max-width: 440px;
    border-radius: 18px;
    padding: 10px;
    gap: 8px;
    bottom: 12px;
  }
  .bc-actions-dock .cc-hdr-btn {
    flex: 1 1 calc(50% - 6px);
    min-height: 38px;
    font-size: 11.5px;
    padding: 0 10px;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .bc-themes-grid {
    grid-template-columns: 1fr;
  }
  .bc-back-grid {
    grid-template-columns: 1fr 75px;
    gap: 8px;
  }
  .bc-qr-img-wrapper {
    width: 70px;
    height: 70px;
    padding: 4px;
  }
  .bc-qr-img-wrapper canvas {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  .bc-qr-img-wrapper img {
    width: 62px !important;
    height: 62px !important;
    max-width: 62px !important;
    max-height: 62px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }
  .bc-contact-item {
    font-size: 10px;
  }
  .bc-sidebar {
    padding: 16px 12px;
  }
  .bc-actions-dock .cc-hdr-btn {
    flex: 1 1 100%;
  }
}
