/* ==========================================================================
   UI Showcase Component Stylesheet (showcase.css)
   u-muu.com Design System compliant (Dark Minimalist / Swiss Style)
   ========================================================================== */

/* Page Container */
.showcase-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.showcase-hero {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  animation: fadeIn 0.4s ease-out;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--pulse-dot-bg);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--pulse-dot-bg);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.showcase-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.showcase-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.showcase-stats-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.showcase-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
}

.showcase-stat-item svg {
  color: var(--text-primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Filter & Search Toolbar
   -------------------------------------------------------------------------- */
.showcase-toolbar {
  position: sticky;
  top: 1rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(18, 18, 21, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-fast);
}

.toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-box svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem 0.55rem 2.3rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.search-shortcut-hint {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.category-nav {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }

.cat-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.cat-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.cat-btn.active {
  color: var(--accent-invert);
  background: var(--accent-solid);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Section & Grid Layout
   -------------------------------------------------------------------------- */
.component-section {
  margin-bottom: 4rem;
  scroll-margin-top: 100px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

.component-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.component-count {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .components-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Component Showcase Card
   -------------------------------------------------------------------------- */
.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.showcase-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 1rem 1.25rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Stage: The interactive live demo area */
.card-stage {
  padding: 1.5rem;
  background: var(--bg-surface);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 160px;
  position: relative;
  overflow: visible;
}

.stage-helper-text {
  font-size: 0.74rem;
  color: var(--text-tertiary);
  text-align: center;
  font-family: var(--font-mono);
}

/* ==========================================================================
   1. OVERLAYS, DIALOGS & NOTIFICATIONS
   ========================================================================== */

/* Universal Modal / Dialog Backdrop */
.sc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.sc-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sc-modal-card {
  background: #151518;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  transform: scale(0.94) translateY(8px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.sc-modal-overlay.open .sc-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Shake Animation for Confirm Dialog */
.shake-anim {
  animation: modalShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes modalShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.sc-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sc-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sc-modal-body {
  padding: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sc-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
}

/* Drawer / Slide-Over */
.sc-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.sc-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sc-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: #141417;
  border-left: 1px solid var(--border-strong);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
}

.sc-drawer-overlay.open ~ .sc-drawer-panel,
.sc-drawer-panel.open {
  transform: translateX(0);
}

.sc-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sc-drawer-content {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Toast Notification Container */
.sc-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
  pointer-events: none;
}

.sc-toast {
  pointer-events: auto;
  background: #18181b;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  min-width: 300px;
  max-width: 380px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.25s, opacity 0.25s;
}

.sc-toast.hiding {
  transform: translateX(100%);
  opacity: 0;
}

@keyframes toastIn {
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.sc-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--text-primary);
  width: 100%;
  transform-origin: left;
  animation: toastProgress linear forwards;
}

@keyframes toastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.sc-toast-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.sc-toast-text {
  flex: 1;
}

.sc-toast-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.sc-toast-msg {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.sc-toast-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 4px;
}
.sc-toast-close:hover { color: var(--text-primary); }

/* Tooltip */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.sc-tooltip {
  position: absolute;
  background: #27272a;
  color: #fafafa;
  font-size: 0.75rem;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid #3f3f46;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.sc-tooltip::after {
  content: '';
  position: absolute;
  border: 4px solid transparent;
}

/* Tooltip directions */
.tooltip-wrapper[data-dir="top"] .sc-tooltip {
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -4px) scale(0.96);
  margin-bottom: 8px;
}
.tooltip-wrapper[data-dir="top"] .sc-tooltip::after {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: #27272a;
}
.tooltip-wrapper[data-dir="top"]:hover .sc-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.tooltip-wrapper[data-dir="bottom"] .sc-tooltip {
  top: 100%;
  left: 50%;
  transform: translate(-50%, 4px) scale(0.96);
  margin-top: 8px;
}
.tooltip-wrapper[data-dir="bottom"] .sc-tooltip::after {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: #27272a;
}
.tooltip-wrapper[data-dir="bottom"]:hover .sc-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.tooltip-wrapper[data-dir="left"] .sc-tooltip {
  right: 100%;
  top: 50%;
  transform: translate(-4px, -50%) scale(0.96);
  margin-right: 8px;
}
.tooltip-wrapper[data-dir="left"] .sc-tooltip::after {
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-left-color: #27272a;
}
.tooltip-wrapper[data-dir="left"]:hover .sc-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%) scale(1);
}

.tooltip-wrapper[data-dir="right"] .sc-tooltip {
  left: 100%;
  top: 50%;
  transform: translate(4px, -50%) scale(0.96);
  margin-left: 8px;
}
.tooltip-wrapper[data-dir="right"] .sc-tooltip::after {
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-right-color: #27272a;
}
.tooltip-wrapper[data-dir="right"]:hover .sc-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%) scale(1);
}

/* Popover */
.popover-container {
  position: relative;
  display: inline-block;
}

.sc-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(0.97);
  background: #18181b;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  padding: 1rem;
  width: 260px;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-popover.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Lightbox */
.lightbox-thumb-grid {
  display: flex;
  gap: 0.75rem;
}

.lightbox-thumb {
  width: 90px;
  height: 65px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.lightbox-thumb:hover {
  transform: scale(1.05);
  border-color: var(--border-focus);
}

.lightbox-thumb:hover img {
  transform: scale(1.1);
}

.sc-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.sc-lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sc-lightbox-img-wrap {
  max-width: 90vw;
  max-height: 80vh;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-lightbox-overlay.open .sc-lightbox-img-wrap {
  transform: scale(1);
}

.sc-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   2. CONTEXT, COMMAND & MENUS
   ========================================================================== */

/* Command Palette */
.cmd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.cmd-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cmd-palette {
  background: #141417;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  transform: translateY(-15px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
  overflow: hidden;
}

.cmd-modal-overlay.open .cmd-palette {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cmd-header {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.75rem;
}

.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
}

.cmd-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 0.5rem;
  list-style: none;
}

.cmd-group-title {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  padding: 0.4rem 0.75rem;
  text-transform: uppercase;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cmd-item:hover, .cmd-item.selected {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.cmd-footer {
  padding: 0.65rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* Context Menu Area */
.context-area {
  width: 100%;
  height: 120px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: context-menu;
  user-select: none;
  transition: border-color 0.2s, background 0.2s;
}

.context-area:hover {
  border-color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.03);
}

.sc-context-menu {
  position: fixed;
  background: #18181b;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  padding: 0.35rem;
  min-width: 180px;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transform-origin: top left;
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.sc-context-menu.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.sc-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.12s;
}

.sc-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.sc-menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.3rem 0;
}

/* Dropdown Menu */
.dropdown-wrap {
  position: relative;
  display: inline-block;
}

.sc-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #18181b;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  padding: 0.35rem;
  min-width: 190px;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.96);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-dropdown-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   3. NAVIGATION & PROGRESS
   ========================================================================== */

/* Breadcrumb */
.sc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.sc-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}

.sc-breadcrumb a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-breadcrumb a:hover {
  color: var(--text-primary);
}

.sc-breadcrumb a:hover::after {
  width: 100%;
}

.sc-breadcrumb-sep {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

.sc-breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* Sliding Tabs */
.sc-tabs-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sc-tabs-nav {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  position: relative;
  user-select: none;
}

.sc-tab-btn {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.2s;
  font-family: inherit;
}

.sc-tab-btn.active {
  color: var(--accent-invert);
  font-weight: 600;
}

.sc-tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  background: var(--accent-solid);
  border-radius: var(--radius-full);
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sc-tab-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-height: 80px;
  animation: fadeIn 0.25s ease-out;
}

/* Accordion */
.sc-accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sc-accordion-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.sc-accordion-item.open {
  border-color: var(--border-strong);
}

.sc-accordion-header {
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  width: 100%;
  border: none;
  text-align: left;
  font-family: inherit;
}

.sc-accordion-arrow {
  color: var(--text-tertiary);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-accordion-item.open .sc-accordion-arrow {
  transform: rotate(180deg);
  color: var(--text-primary);
}

.sc-accordion-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-accordion-item.open .sc-accordion-collapse {
  grid-template-rows: 1fr;
}

.sc-accordion-inner {
  overflow: hidden;
  padding: 0 1rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.25s ease, padding 0.3s;
}

.sc-accordion-item.open .sc-accordion-inner {
  opacity: 1;
  padding: 0 1rem 1rem;
}

/* Pagination */
.sc-pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sc-page-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.sc-page-btn:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.sc-page-btn.active {
  background: var(--accent-solid);
  color: var(--accent-invert);
  border-color: var(--accent-solid);
  font-weight: 600;
  transform: scale(1.05);
}

.sc-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Stepper */
.sc-stepper {
  width: 100%;
}

.sc-stepper-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 1.25rem;
}

.sc-stepper-line {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}

.sc-stepper-progress {
  height: 100%;
  background: var(--text-primary);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.sc-step-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-step-item.active .sc-step-node {
  border-color: var(--accent-solid);
  color: var(--accent-invert);
  background: var(--accent-solid);
  font-weight: 700;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.sc-step-item.completed .sc-step-node {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--accent-invert);
}

.sc-step-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.sc-step-item.active .sc-step-label,
.sc-step-item.completed .sc-step-label {
  color: var(--text-primary);
}

/* Tree View */
.sc-tree {
  width: 100%;
  list-style: none;
  font-size: 0.82rem;
}

.sc-tree-node {
  margin: 2px 0;
}

.sc-tree-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.12s;
  user-select: none;
}

.sc-tree-label:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.sc-tree-arrow {
  transition: transform 0.2s;
  color: var(--text-tertiary);
}

.sc-tree-node.expanded > .sc-tree-label > .sc-tree-arrow {
  transform: rotate(90deg);
}

.sc-tree-children {
  list-style: none;
  padding-left: 1.25rem;
  display: none;
  border-left: 1px dashed var(--border-subtle);
  margin-left: 0.65rem;
}

.sc-tree-node.expanded > .sc-tree-children {
  display: block;
}

/* ==========================================================================
   4. DATA DISPLAY, LAYOUT & LOADING
   ========================================================================== */

/* Carousel */
.sc-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.sc-carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-carousel-slide {
  min-width: 100%;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 1.5rem;
  text-align: center;
}

.sc-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.sc-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}

.sc-carousel-dot.active {
  width: 18px;
  border-radius: 4px;
  background: var(--text-primary);
}

.sc-carousel-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}
.sc-carousel-ctrl:hover { background: rgba(0, 0, 0, 0.9); }
.sc-carousel-ctrl.prev { left: 8px; }
.sc-carousel-ctrl.next { right: 8px; }

/* Interactive Data Table */
.sc-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.sc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.sc-table th, .sc-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sc-table th {
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.sc-table th:hover {
  color: var(--text-primary);
}

.sc-table tbody tr {
  transition: background 0.15s;
}

.sc-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.sc-table tbody tr.selected {
  background: rgba(255, 255, 255, 0.06);
}

.sc-sort-icon {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s;
}

/* Resizable Split Pane */
.sc-split-pane {
  width: 100%;
  height: 120px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  overflow: hidden;
  position: relative;
  user-select: none;
}

.sc-split-left, .sc-split-right {
  height: 100%;
  padding: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  overflow: auto;
}

.sc-split-divider {
  width: 6px;
  background: var(--border-subtle);
  cursor: col-resize;
  position: relative;
  transition: background 0.2s;
}

.sc-split-divider:hover, .sc-split-divider.dragging {
  background: var(--text-primary);
}

/* 3D Interactive Card */
.sc-card-3d-wrap {
  perspective: 800px;
}

.sc-card-3d {
  width: 220px;
  height: 130px;
  background: linear-gradient(135deg, #1c1c20 0%, #121215 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.sc-card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}

/* Badges & Chips */
.sc-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.sc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-family: var(--font-mono);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
}

.sc-badge.active-pulse {
  border-color: rgba(34, 197, 94, 0.4);
}

.sc-chip-del {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.75rem;
  transition: transform 0.2s, opacity 0.2s;
}

.sc-chip-del button {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
}
.sc-chip-del button:hover { color: #f87171; }

/* Avatar Group */
.sc-avatar-group {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

.sc-avatar-item {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
  margin-left: -10px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), margin 0.25s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.25s;
  position: relative;
  z-index: 1;
}

.sc-avatar-item:first-child { margin-left: 0; }

.sc-avatar-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-avatar-group:hover .sc-avatar-item {
  margin-left: -2px;
}

.sc-avatar-item:hover {
  transform: translateY(-4px) scale(1.15);
  z-index: 10;
  border-color: var(--text-primary);
}

/* Timeline */
.sc-timeline {
  position: relative;
  padding-left: 1.5rem;
  width: 100%;
}

.sc-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-subtle);
}

.sc-timeline-item {
  position: relative;
  margin-bottom: 1rem;
  transition: transform 0.2s;
}

.sc-timeline-item:last-child { margin-bottom: 0; }

.sc-timeline-item:hover {
  transform: translateX(4px);
}

.sc-timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--text-tertiary);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.sc-timeline-item:hover .sc-timeline-dot {
  border-color: var(--text-primary);
  background: var(--text-primary);
  transform: scale(1.2);
}

.sc-timeline-date {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
}

.sc-timeline-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Skeleton & Spinner & Progress */
.sc-skeleton-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sc-skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1c1c20 25%, #2a2a30 50%, #1c1c20 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.sc-progress-bar-wrap {
  width: 100%;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
  position: relative;
}

.sc-progress-bar-fill {
  height: 100%;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Spinner */
.sc-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   5. FORMS & INPUT CONTROLS
   ========================================================================== */

/* Custom Range Slider with Dynamic Tooltip */
.sc-range-wrap {
  width: 100%;
  position: relative;
  padding: 1.25rem 0 0.5rem;
}

.sc-range-input {
  width: 100%;
  -webkit-appearance: none;
  background: var(--bg-subtle);
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.sc-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s;
}

.sc-range-input::-webkit-slider-thumb:active {
  transform: scale(1.25);
  cursor: grabbing;
}

.sc-range-tooltip {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  pointer-events: none;
  transition: left 0.05s;
}

/* Toggle Switch */
.sc-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.sc-toggle-input {
  display: none;
}

.sc-toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--bg-subtle);
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}

.sc-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s;
}

.sc-toggle-input:checked + .sc-toggle-switch {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.sc-toggle-input:checked + .sc-toggle-switch::after {
  transform: translateX(20px);
  background: var(--accent-invert);
}

/* Animated Checkbox & Radio */
.sc-checkbox-label, .sc-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-primary);
  user-select: none;
}

.sc-check-input, .sc-radio-input {
  display: none;
}

.sc-custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border-strong);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sc-custom-checkbox svg {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-check-input:checked + .sc-custom-checkbox {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.sc-check-input:checked + .sc-custom-checkbox svg {
  stroke-dashoffset: 0;
  stroke: var(--accent-invert);
}

.sc-custom-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sc-custom-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-primary);
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-radio-input:checked + .sc-custom-radio {
  border-color: var(--text-primary);
}

.sc-radio-input:checked + .sc-custom-radio::after {
  transform: scale(1);
}

/* Floating Label Input */
.sc-float-group {
  position: relative;
  width: 100%;
}

.sc-float-input {
  width: 100%;
  padding: 1rem 0.85rem 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.sc-float-input:focus {
  border-color: var(--border-focus);
}

.sc-float-label {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-float-input:focus ~ .sc-float-label,
.sc-float-input:not(:placeholder-shown) ~ .sc-float-label {
  top: 0.5rem;
  transform: translateY(0) scale(0.78);
  transform-origin: left;
  color: var(--text-secondary);
}

/* Custom Select */
.sc-select-wrap {
  position: relative;
  width: 100%;
}

.sc-select-trigger {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.sc-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #18181b;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 50;
  padding: 0.3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s;
}

.sc-select-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sc-select-opt {
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sc-select-opt:hover, .sc-select-opt.selected {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* Tag Input */
.sc-tag-input-wrap {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  min-height: 42px;
}

.sc-tag-pill {
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-tag-pill-x {
  cursor: pointer;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
}
.sc-tag-pill-x:hover { color: #f87171; }

.sc-tag-field {
  flex: 1;
  min-width: 80px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
}

/* OTP / PIN Input */
.sc-otp-wrap {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.sc-otp-input {
  width: 40px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 1.25rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
}

.sc-otp-input:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Date Picker Calendar */
.sc-datepicker-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  width: 250px;
  font-size: 0.8rem;
}

.sc-dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.sc-dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.sc-dp-dayname {
  color: var(--text-tertiary);
  font-size: 0.7rem;
  padding: 4px 0;
}

.sc-dp-cell {
  padding: 6px 0;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.sc-dp-cell:hover:not(.empty) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.sc-dp-cell.selected {
  background: var(--accent-solid);
  color: var(--accent-invert);
  font-weight: 700;
  transform: scale(1.05);
}

/* Color Picker */
.sc-color-picker {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.sc-color-preview-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sc-color-swatch-big {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  transition: background 0.1s;
}

.sc-color-swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sc-color-swatch-sm {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.15s;
}
.sc-color-swatch-sm:hover { transform: scale(1.15); }

/* Star Rating */
.sc-rating {
  display: flex;
  gap: 0.35rem;
}

.sc-star {
  cursor: pointer;
  color: #3f3f46;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s;
}

.sc-star.hovered, .sc-star.active {
  color: #fbbf24;
}

.sc-star.popping {
  animation: starPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes starPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* File Dropzone */
.sc-dropzone {
  width: 100%;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.sc-dropzone.dragover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.02);
}

/* ==========================================================================
   6. BUTTONS & ACTIONS
   ========================================================================== */

.sc-buttons-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Ripple Button */
.btn-ripple {
  position: relative;
  overflow: hidden;
  padding: 0.65rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s;
  font-family: inherit;
}

.btn-ripple .sc-ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Slide Fill Button */
.btn-slide-fill {
  position: relative;
  overflow: hidden;
  padding: 0.65rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 1;
  font-family: inherit;
}

.btn-slide-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--text-primary);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn-slide-fill:hover {
  color: var(--accent-invert);
}

.btn-slide-fill:hover::before {
  transform: translateX(100%);
}

/* Morphing Loading Button */
.btn-morph-load {
  min-width: 130px;
  height: 38px;
  padding: 0 1.25rem;
  background: var(--accent-solid);
  color: var(--accent-invert);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.btn-morph-load.loading {
  min-width: 38px;
  width: 38px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: transparent;
}

.btn-morph-load.success {
  background: #22c55e;
  color: #fff;
}

/* Floating Action Button (FAB) */
.sc-fab-wrap {
  position: relative;
  display: inline-block;
}

.sc-fab-main {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-solid);
  color: var(--accent-invert);
  border: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  position: relative;
}

.sc-fab-wrap.open .sc-fab-main {
  transform: rotate(45deg);
}

.sc-fab-sub-actions {
  position: absolute;
  bottom: 54px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.sc-fab-wrap.open .sc-fab-sub-actions {
  pointer-events: auto;
}

.sc-fab-sub-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(15px) scale(0.7);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-fab-wrap.open .sc-fab-sub-btn:nth-child(1) {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition-delay: 0.05s;
}

.sc-fab-wrap.open .sc-fab-sub-btn:nth-child(2) {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition-delay: 0.1s;
}

.sc-fab-wrap.open .sc-fab-sub-btn:nth-child(3) {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition-delay: 0.15s;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   ADVANCED UPGRADE ADDITIONS:
   - Theme & Radius Customizer
   - Code Inspector & One-Click Copy Modal
   - Before/After Slider, Notification Center, Bottom Sheet, Shortcuts Cheat Sheet
   ========================================================================== */

/* 1. Theme Customizer Bar */
.theme-customizer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.customizer-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.customizer-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.accent-color-pills {
  display: flex;
  gap: 6px;
  align-items: center;
}

.accent-pill {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  padding: 0;
  outline: none;
}

.accent-pill:hover {
  transform: scale(1.2);
}

.accent-pill.active {
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 8px currentColor;
}

.radius-pills {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  padding: 2px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.radius-btn {
  background: transparent;
  border: none;
  font-size: 0.72rem;
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.radius-btn:hover {
  color: var(--text-primary);
}

.radius-btn.active {
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 600;
}

/* 2. Code Button on Cards */
.card-code-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--transition-fast);
}

.card-code-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}

/* Code Inspector Modal */
.code-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.code-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.code-modal-card {
  background: #141417;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.code-modal-overlay.open .code-modal-card {
  transform: scale(1) translateY(0);
}

.code-modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.code-modal-tabs {
  display: flex;
  gap: 0.5rem;
}

.code-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.code-tab-btn.active {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  font-weight: 600;
}

.code-pre-box {
  background: #0d0d10;
  padding: 1.25rem;
  max-height: 380px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #e4e4e7;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  border-bottom: 1px solid var(--border-subtle);
}

.code-modal-footer {
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
}

/* 3. New Component 37: Before / After Image Comparison Slider */
.sc-compare-slider {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  user-select: none;
  cursor: col-resize;
}

.sc-compare-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.sc-compare-before {
  z-index: 1;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  transition: clip-path 0.05s linear;
}

.sc-compare-after {
  z-index: 0;
}

.sc-compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff;
  z-index: 2;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.sc-compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.sc-compare-badge {
  position: absolute;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #ffffff;
  z-index: 3;
}
.sc-compare-badge.before { left: 8px; }
.sc-compare-badge.after { right: 8px; }

/* 4. New Component 38: Notification Center */
.sc-notif-wrap {
  position: relative;
  display: inline-block;
}

.sc-notif-bell-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sc-notif-bell-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.sc-notif-badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--bg-card);
  transition: transform 0.2s;
}

.sc-notif-badge-dot.hidden {
  transform: scale(0);
}

.sc-notif-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
  background: #18181b;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.sc-notif-popover.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.sc-notif-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
}

.sc-notif-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  transition: background 0.15s;
  cursor: pointer;
}

.sc-notif-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sc-notif-item.unread {
  background: rgba(56, 189, 248, 0.04);
}

.sc-notif-item.unread::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  margin-top: 6px;
  flex-shrink: 0;
}

/* 5. New Component 39: Mobile Bottom Sheet */
.sc-bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.sc-bottom-sheet-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sc-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 540px;
  margin: 0 auto;
  background: #18181b;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  z-index: 1101;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1rem 1.5rem 2rem;
}

.sc-bottom-sheet.open {
  transform: translateY(0);
}

.sc-sheet-handle-bar {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--text-tertiary);
  margin: 0 auto 1.25rem;
  cursor: grab;
}

/* 6. Keyboard Shortcuts Modal (Cheat sheet) */
.sc-kbd-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sc-kbd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.85rem;
}

.sc-kbd-keys {
  display: flex;
  gap: 4px;
}

.sc-kbd-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ==========================================================================
   V2 ENHANCEMENTS: Dual Range Slider, Slow Motion Mode, State Variations
   ========================================================================== */

/* Dual Range Slider */
.sc-dual-range-wrap {
  width: 100%;
  margin-top: 0.75rem;
}

.sc-dual-range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.sc-dual-slider {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
}

.sc-dual-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--bg-subtle);
  border-radius: 3px;
}

.sc-dual-fill {
  position: absolute;
  height: 6px;
  background: var(--accent-solid);
  border-radius: 3px;
  left: 20%;
  right: 25%;
}

.sc-dual-input {
  position: absolute;
  width: 100%;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  margin: 0;
  height: 24px;
}

.sc-dual-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-solid);
  border: 2px solid var(--bg-surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  cursor: grab;
  transition: transform 0.15s;
}

.sc-dual-input::-webkit-slider-thumb:active {
  transform: scale(1.25);
  cursor: grabbing;
}

.sc-dual-input::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-solid);
  border: 2px solid var(--bg-surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  cursor: grab;
}

/* Slow Motion Animation Observation Mode */
html[data-anim-speed="0.5"] .card-stage *,
html[data-anim-speed="0.5"] .sc-modal-overlay,
html[data-anim-speed="0.5"] .sc-modal-overlay *,
html[data-anim-speed="0.5"] .sc-drawer-overlay,
html[data-anim-speed="0.5"] .sc-drawer-panel,
html[data-anim-speed="0.5"] .sc-bottom-sheet,
html[data-anim-speed="0.5"] .sc-toast {
  transition-duration: 0.7s !important;
  animation-duration: 1.2s !important;
}

html[data-anim-speed="0.25"] .card-stage *,
html[data-anim-speed="0.25"] .sc-modal-overlay,
html[data-anim-speed="0.25"] .sc-modal-overlay *,
html[data-anim-speed="0.25"] .sc-drawer-overlay,
html[data-anim-speed="0.25"] .sc-drawer-panel,
html[data-anim-speed="0.25"] .sc-bottom-sheet,
html[data-anim-speed="0.25"] .sc-toast {
  transition-duration: 1.4s !important;
  animation-duration: 2.4s !important;
}

/* Stage State Variations (Disabled & Size Variants) */
.card-stage.is-disabled-sim {
  opacity: 0.52;
  filter: grayscale(40%);
}

.card-stage.is-disabled-sim button,
.card-stage.is-disabled-sim input,
.card-stage.is-disabled-sim select,
.card-stage.is-disabled-sim .sc-toggle-label,
.card-stage.is-disabled-sim .sc-checkbox-label,
.card-stage.is-disabled-sim .sc-radio-label,
.card-stage.is-disabled-sim .sc-select-trigger,
.card-stage.is-disabled-sim .sc-star,
.card-stage.is-disabled-sim .sc-dp-cell {
  pointer-events: none;
  cursor: not-allowed;
}

html[data-ui-size="sm"] .card-stage .btn-ripple,
html[data-ui-size="sm"] .card-stage .btn-slide-fill,
html[data-ui-size="sm"] .card-stage .btn-morph-load,
html[data-ui-size="sm"] .card-stage .sc-select-trigger,
html[data-ui-size="sm"] .card-stage .sc-tab-btn {
  font-size: 0.74rem;
  padding: 0.35rem 0.7rem;
}

html[data-ui-size="sm"] .card-stage .sc-float-input {
  font-size: 0.8rem;
  padding: 0.85rem 0.7rem 0.3rem;
}

html[data-ui-size="lg"] .card-stage .btn-ripple,
html[data-ui-size="lg"] .card-stage .btn-slide-fill,
html[data-ui-size="lg"] .card-stage .btn-morph-load,
html[data-ui-size="lg"] .card-stage .sc-select-trigger,
html[data-ui-size="lg"] .card-stage .sc-tab-btn {
  font-size: 0.95rem;
  padding: 0.8rem 1.45rem;
}

html[data-ui-size="lg"] .card-stage .sc-float-input {
  font-size: 1rem;
  padding: 1.15rem 1rem 0.5rem;
}

/* Customizer Sub-controls */
.customizer-pill-group {
  display: flex;
  gap: 3px;
  background: var(--bg-card);
  padding: 2px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.customizer-opt-btn {
  background: transparent;
  border: none;
  font-size: 0.72rem;
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.customizer-opt-btn:hover {
  color: var(--text-primary);
}

.customizer-opt-btn.active {
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 600;
}

