/* ============================================================
   COMPONENTS2.CSS — Erweiterte UI-Elemente
   PWA CSS Library by CSTRSK
   ============================================================ */

/* ── ACCORDION ──────────────────────────────────────────────── */

.accordion {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.accordion__item {
  border-bottom: 1px solid var(--border-default);
}
.accordion__item:last-child { border-bottom: none; }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  background: var(--bg-surface);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-default);
  -webkit-tap-highlight-color: transparent;
  min-height: var(--tap-min);
  text-align: left;
}
.accordion__trigger:hover { background: var(--bg-subtle); }

.accordion__icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--icon-default);
  transition: transform var(--duration-normal) var(--ease-default);
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-default);
  background: var(--bg-surface);
}

.accordion__item.is-open .accordion__body {
  max-height: 600px;
}

.accordion__content {
  padding: 0 var(--space-5) var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* ── TABS ───────────────────────────────────────────────────── */

.tabs {
  display: flex;
  flex-direction: column;
}

.tabs__list {
  display: flex;
  border-bottom: 2px solid var(--border-default);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: 0;
}
.tabs__list::-webkit-scrollbar { display: none; }

.tabs__tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-default),
              border-color var(--duration-fast) var(--ease-default);
  -webkit-tap-highlight-color: transparent;
  min-height: var(--tap-min);
}

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

.tabs__tab.is-active {
  color: var(--interactive-primary);
  border-bottom-color: var(--interactive-primary);
}

.tabs__panel {
  display: none;
  padding: var(--space-5) 0;
}
.tabs__panel.is-active { display: block; }

/* Pill tabs variant */
.tabs--pills .tabs__list {
  border-bottom: none;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}

.tabs--pills .tabs__tab {
  border-bottom: none;
  border-radius: var(--radius-full);
  background: transparent;
  padding: var(--space-2) var(--space-4);
}

.tabs--pills .tabs__tab.is-active {
  background: var(--color-brand-100);
  color: var(--color-brand-700);
}

/* ── STEPPER ────────────────────────────────────────────────── */

.stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stepper__item {
  display: flex;
  gap: var(--space-4);
  position: relative;
}

/* Vertical connector line */
.stepper__item:not(:last-child) .stepper__connector {
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--border-default);
}

.stepper__item.is-done .stepper__connector {
  background: var(--interactive-primary);
}

.stepper__indicator {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-default);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-tertiary);
  transition: var(--transition-normal);
  z-index: 1;
  position: relative;
}

.stepper__item.is-done .stepper__indicator {
  background: var(--interactive-primary);
  border-color: var(--interactive-primary);
  color: white;
}

.stepper__item.is-active .stepper__indicator {
  border-color: var(--interactive-primary);
  color: var(--interactive-primary);
  box-shadow: var(--shadow-brand);
}

.stepper__body {
  flex: 1;
  padding-bottom: var(--space-6);
}

.stepper__title {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  line-height: var(--leading-tight);
  margin-top: var(--space-2);
  margin-bottom: var(--space-1);
}

.stepper__sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Horizontal stepper */
.stepper--horizontal {
  flex-direction: row;
  align-items: flex-start;
}

.stepper--horizontal .stepper__item {
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.stepper--horizontal .stepper__item:not(:last-child) .stepper__connector {
  position: absolute;
  top: 19px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  bottom: auto;
  width: auto;
  height: 2px;
}

.stepper--horizontal .stepper__body {
  text-align: center;
  padding-bottom: 0;
}

/* ── TIMELINE ───────────────────────────────────────────────── */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: var(--space-4);
}

.timeline__item {
  display: flex;
  gap: var(--space-4);
  position: relative;
  padding-bottom: var(--space-6);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--border-default);
}

.timeline__item:last-child::before { display: none; }

.timeline__dot {
  position: absolute;
  left: -5px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  border: 2px solid var(--bg-surface);
  flex-shrink: 0;
}

.timeline__dot--brand   { background: var(--interactive-primary); }
.timeline__dot--success { background: var(--color-success); }
.timeline__dot--error   { background: var(--color-error); }
.timeline__dot--warning { background: var(--color-warning); }

.timeline__body {
  padding-left: var(--space-6);
}

.timeline__time {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-1);
}

.timeline__title {
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.timeline__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── ALERT / CALLOUT ────────────────────────────────────────── */

.alert {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  border-left: 4px solid;
  font-size: var(--text-sm);
}

.alert__icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 1px;
}

.alert__body { flex: 1; }

.alert__title {
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.alert__text { line-height: var(--leading-relaxed); }

.alert--info {
  background: var(--color-info-bg);
  border-color: var(--color-info);
  color: var(--color-info);
}
.alert--info .alert__text { color: #1e40af; }

.alert--success {
  background: var(--color-success-bg);
  border-color: var(--color-success);
  color: var(--color-success);
}
.alert--success .alert__text { color: #166534; }

.alert--warning {
  background: var(--color-warning-bg);
  border-color: var(--color-warning);
  color: var(--color-warning);
}
.alert--warning .alert__text { color: #92400e; }

.alert--error {
  background: var(--color-error-bg);
  border-color: var(--color-error);
  color: var(--color-error);
}
.alert--error .alert__text { color: #991b1b; }

@media (prefers-color-scheme: dark) {
  .alert--info    .alert__text { color: #93c5fd; }
  .alert--success .alert__text { color: #86efac; }
  .alert--warning .alert__text { color: #fcd34d; }
  .alert--error   .alert__text { color: #fca5a5; }
}

/* ── RADIO GROUP (CARD STYLE) ───────────────────────────────── */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.radio-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-default),
              background  var(--duration-fast) var(--ease-default);
  -webkit-tap-highlight-color: transparent;
}

.radio-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.radio-card input[type="radio"] { display: none; }

.radio-card__dot {
  width: 20px; height: 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.radio-card__dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--interactive-primary);
  opacity: 0;
  transform: scale(0);
  transition: var(--transition-fast);
}

.radio-card.is-selected {
  border-color: var(--interactive-primary);
  background: var(--color-brand-50);
}

.radio-card.is-selected .radio-card__dot {
  border-color: var(--interactive-primary);
}

.radio-card.is-selected .radio-card__dot::after {
  opacity: 1;
  transform: scale(1);
}

.radio-card__body { flex: 1; }
.radio-card__label { font-weight: var(--font-weight-medium); color: var(--text-primary); }
.radio-card__sub   { font-size: var(--text-sm); color: var(--text-secondary); }
.radio-card__trail { color: var(--text-secondary); font-size: var(--text-sm); }

/* ── SEGMENTED CONTROL ──────────────────────────────────────── */

.segmented {
  display: inline-flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-1);
  gap: var(--space-1);
  border: 1px solid var(--border-default);
}

.segmented__btn {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

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

.segmented__btn.is-active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Full width */
.segmented--full { display: flex; width: 100%; }

/* ── SWIPEABLE CARDS (HORIZONTAL SCROLL) ────────────────────── */

.card-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  margin: 0 calc(-1 * var(--space-4));
}
.card-scroll::-webkit-scrollbar { display: none; }

.card-scroll > * {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 260px;
}

/* ── NOTIFICATION ITEM ──────────────────────────────────────── */

.notification {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  transition: background var(--duration-fast) var(--ease-default);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.notification:hover { background: var(--bg-subtle); }

.notification.is-unread {
  background: var(--color-brand-50);
}

@media (prefers-color-scheme: dark) {
  .notification.is-unread { background: rgba(99,102,241,.08); }
}

.notification.is-unread::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--interactive-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.notification__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.notification__body  { flex: 1; min-width: 0; }
.notification__title { font-weight: var(--font-weight-medium); color: var(--text-primary); font-size: var(--text-sm); margin-bottom: var(--space-0-5); }
.notification__text  { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-snug); }
.notification__time  { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: var(--space-1); }

/* ── SWIPE-TO-DELETE WRAPPER ─────────────────────────────────── */

.swipeable {
  position: relative;
  overflow: hidden;
}

.swipeable__actions {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  display: flex;
  align-items: stretch;
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-default);
}

.swipeable.is-swiped .swipeable__actions {
  transform: translateX(0);
}

.swipeable__action {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-5);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: white;
  cursor: pointer;
  gap: var(--space-1);
  flex-direction: column;
}

.swipeable__action--delete { background: var(--color-error); }
.swipeable__action--archive{ background: var(--color-neutral-500); }
.swipeable__action--flag   { background: var(--color-warning); }

/* ── SEARCH BAR ─────────────────────────────────────────────── */

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-subtle);
  border-radius: var(--radius-xl);
  border: 1.5px solid transparent;
  transition: var(--transition-fast);
}

.search-bar:focus-within {
  background: var(--bg-surface);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-brand);
}

.search-bar__icon { color: var(--icon-default); flex-shrink: 0; }

.search-bar__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: var(--text-base);
  color: var(--text-primary);
}

.search-bar__input::placeholder { color: var(--text-tertiary); }

.search-bar__clear {
  flex-shrink: 0;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}
.search-bar__clear:hover { background: var(--bg-subtle); color: var(--text-secondary); }

/* ── PRICE TAG / PRICING CARD ────────────────────────────────── */

.pricing-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}

.pricing-card--featured {
  border-color: var(--interactive-primary);
  background: linear-gradient(135deg, var(--color-brand-50) 0%, var(--bg-surface) 60%);
}

@media (prefers-color-scheme: dark) {
  .pricing-card--featured {
    background: linear-gradient(135deg, rgba(99,102,241,.12) 0%, var(--bg-surface) 60%);
  }
}

.pricing-card__badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
}

.pricing-card__name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-brand);
}

.pricing-card__price {
  display: flex;
  align-items: flex-end;
  gap: var(--space-1);
  line-height: 1;
}

.pricing-card__currency {
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  padding-bottom: 4px;
}

.pricing-card__amount {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

.pricing-card__period {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  padding-bottom: 6px;
}

.pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2-5);
  flex: 1;
}

.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.pricing-card__feature--included { color: var(--text-primary); }

.pricing-card__check {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--color-success);
}

.pricing-card__cross {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--text-tertiary);
}

/* ── LOADING OVERLAY ────────────────────────────────────────── */

.loading-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  z-index: var(--z-overlay);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-default);
}

.loading-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.loading-overlay__spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: white;
  border-radius: var(--radius-full);
  animation: spin 0.7s linear infinite;
}

.loading-overlay__text {
  color: white;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

/* ── SLIDER / RANGE ─────────────────────────────────────────── */

.range-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.range-label { font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--text-primary); }
.range-value { font-size: var(--text-sm); font-weight: var(--font-weight-semibold); color: var(--text-brand); }

input[type="range"].range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  outline: none;
  cursor: pointer;
}

input[type="range"].range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: var(--radius-full);
  background: var(--interactive-primary);
  border: 3px solid var(--bg-surface);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring);
}

input[type="range"].range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"].range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: var(--radius-full);
  background: var(--interactive-primary);
  border: 3px solid var(--bg-surface);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

/* ── ONBOARDING / FEATURE HIGHLIGHT ─────────────────────────── */

.onboarding-card {
  background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-700));
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  color: white;
  position: relative;
  overflow: hidden;
}

.onboarding-card::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 60%; aspect-ratio: 1;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-full);
}

.onboarding-card__step {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: var(--space-3);
}

.onboarding-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: white;
  margin-bottom: var(--space-2);
  line-height: var(--leading-tight);
}

.onboarding-card__text {
  font-size: var(--text-sm);
  opacity: 0.85;
  color: white;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.onboarding-card__dots {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.onboarding-card__dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.35);
  transition: var(--transition-fast);
}

.onboarding-card__dot.is-active {
  background: white;
  width: 24px;
}

.onboarding-card__actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.onboarding-card__skip {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.65);
  cursor: pointer;
  padding: var(--space-2);
}

/* ── PULL-TO-REFRESH INDICATOR ──────────────────────────────── */

.ptr-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 0;
  overflow: hidden;
  transition: height var(--duration-normal) var(--ease-default);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.ptr-indicator.is-pulling { height: 56px; }
.ptr-indicator.is-refreshing { height: 56px; }

.ptr-indicator__spinner {
  width: 20px; height: 20px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: var(--radius-full);
  animation: spin 0.7s linear infinite;
}

/* ── DATA TABLE ─────────────────────────────────────────────── */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  overflow-x: auto;
  display: block;
}

.data-table thead {
  background: var(--bg-subtle);
}

.data-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-default);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--duration-fast) var(--ease-default);
}

.data-table tbody tr:hover {
  background: var(--bg-subtle);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Numeric column */
.data-table td.is-numeric { text-align: right; font-variant-numeric: tabular-nums; }

/* Sortable header */
.data-table th.is-sortable {
  cursor: pointer;
  user-select: none;
}
.data-table th.is-sortable:hover { color: var(--text-primary); }

/* Table wrapper with border */
.table-wrapper {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* ── QUANTITY STEPPER ────────────────────────────────────────── */

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-surface);
}

.qty-stepper__btn {
  width: var(--tap-min);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  transition: var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.qty-stepper__btn:hover { background: var(--bg-subtle); color: var(--text-primary); }
.qty-stepper__btn:active { background: var(--interactive-secondary-hover); }

.qty-stepper__value {
  min-width: 40px;
  text-align: center;
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-base);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* ── UPLOAD ZONE ─────────────────────────────────────────────── */

.upload-zone {
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
  background: var(--bg-surface);
}

.upload-zone:hover,
.upload-zone.is-dragover {
  border-color: var(--interactive-primary);
  background: var(--color-brand-50);
}

@media (prefers-color-scheme: dark) {
  .upload-zone:hover,
  .upload-zone.is-dragover {
    background: rgba(99,102,241,.08);
  }
}

.upload-zone__icon {
  width: 48px; height: 48px;
  color: var(--text-tertiary);
}

.upload-zone__title {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.upload-zone__sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.upload-zone__types {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ── KEYBOARD SHORTCUT BADGE ─────────────────────────────────── */

.kbd {
  display: inline-flex;
  align-items: center;
  gap: var(--space-0-5);
  padding: var(--space-0-5) var(--space-1-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

/* ── COLOR SWATCH ────────────────────────────────────────────── */

.swatch-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.swatch {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow  var(--duration-fast) var(--ease-default);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
  -webkit-tap-highlight-color: transparent;
}

.swatch:hover  { transform: scale(1.15); }
.swatch.is-selected {
  border-color: var(--bg-surface);
  box-shadow: 0 0 0 2px var(--interactive-primary), inset 0 0 0 1px rgba(0,0,0,.1);
}

/* ── FLOATING LABEL INPUT ────────────────────────────────────── */

.float-field {
  position: relative;
}

.float-field .input {
  padding-top: var(--space-5);
  padding-bottom: var(--space-1-5);
  height: 56px;
}

.float-field__label {
  position: absolute;
  top: 50%;
  left: var(--space-3);
  transform: translateY(-50%);
  font-size: var(--text-base);
  color: var(--text-tertiary);
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-default);
  transform-origin: left top;
  background: var(--bg-surface);
  padding: 0 var(--space-1);
}

.float-field .input:focus ~ .float-field__label,
.float-field .input:not(:placeholder-shown) ~ .float-field__label {
  top: var(--space-2-5);
  transform: translateY(0) scale(0.78);
  color: var(--interactive-primary);
}

/* ── STEPS / WIZARD FOOTER ───────────────────────────────────── */

.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-default);
  background: var(--bg-surface);
  gap: var(--space-3);
}

.wizard-footer__step {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  white-space: nowrap;
}

.wizard-footer__actions {
  display: flex;
  gap: var(--space-2);
}
