/**
 * Komponenten-Styles für Wunschliste:
 * Header & Hero, Filterleiste, Geschenkkarten & Grid, Modals, Toasts, Multi-Events & CSV-Import
 */

/* ==========================================================================
   1. HEADER & HERO
   ========================================================================== */

.app-header {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F9 60%, var(--bg-app) 100%);
  border-bottom: 1px solid var(--border-default);
  padding: 1.75rem 1.5rem 2.5rem 1.5rem;
  margin-bottom: 2.25rem;
}

.header-top-bar {
  max-width: 1240px;
  margin: 0 auto 2.25rem auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  user-select: none;
}

.brand-icon {
  font-size: 1.6rem;
  line-height: 1;
  display: inline-block;
  transition: transform var(--transition-spring);
}

.brand-badge:hover .brand-icon {
  transform: scale(1.15) rotate(-6deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Event Switcher Dropdown */
.event-switcher-wrapper {
  display: inline-flex;
  position: relative;
}

.event-select-dropdown {
  font-family: var(--font-family-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 2.25rem 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-primary-light);
  background-color: var(--color-primary-subtle);
  color: var(--color-primary-hover);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23BE123C'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px 14px;
  transition: all var(--transition-fast);
}

.event-select-dropdown:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
}

.event-select-dropdown:focus {
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.btn-share-link {
  border-color: var(--border-default);
  font-weight: 600;
}

.btn-share-link:hover {
  background-color: var(--color-primary-subtle);
  color: var(--color-primary-hover);
  border-color: var(--color-primary-light);
}

.action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-family-body);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.action-pill-btn:hover {
  background-color: var(--bg-surface-alt);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-light);
}

.server-online .status-dot {
  background-color: var(--color-success);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

.server-offline .status-dot {
  background-color: var(--color-danger);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
}

/* Header Hero Section */
.header-hero {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-icon-large {
  font-size: 2.25rem;
  line-height: 1;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.08);
  margin-bottom: 0.25rem;
}

.header-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.header-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.6;
}

.event-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--color-primary-subtle);
  border: 1px solid var(--color-primary-light);
  color: var(--color-primary-hover);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-top: 0.25rem;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 125px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-value {
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-value.stat-available {
  color: var(--color-success);
}

.stat-value.stat-reserved {
  color: var(--color-warning);
}

.stat-label {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background-color: var(--border-default);
}

/* Progress Container */
.progress-container {
  width: 100%;
  max-width: 480px;
  height: 6px;
  background-color: var(--border-default);
  border-radius: var(--radius-pill);
  margin: 1.5rem auto 0 auto;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #FB7185);
  border-radius: var(--radius-pill);
  transition: width 500ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* ==========================================================================
   2. FILTER & SEARCH BAR
   ========================================================================== */

.filter-bar-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.filter-main-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

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

.search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-light);
  pointer-events: none;
}

.search-input {
  width: 100%;
  font-family: var(--font-family-body);
  font-size: 0.925rem;
  padding: 0.65rem 2.25rem 0.65rem 2.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  background-color: var(--bg-surface);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.clear-search-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  border-radius: var(--radius-xs);
  transition: color var(--transition-fast);
}

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

.status-pills-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-family-display);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.status-pill:hover {
  background-color: var(--bg-surface-alt);
  border-color: var(--border-hover);
}

.status-pill.active {
  background-color: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.pill-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background-color: rgba(15, 23, 42, 0.08);
  color: inherit;
}

.status-pill.active .pill-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.pill-badge-green {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success-text);
}

.status-pill.active .pill-badge-green {
  background-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.pill-badge-amber {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--color-warning-text);
}

.status-pill.active .pill-badge-amber {
  background-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.filter-secondary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.selects-group {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.select-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.custom-select {
  font-family: var(--font-family-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 2.25rem 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 14px 14px;
  transition: all var(--transition-fast);
}

.custom-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.btn-reset-filters {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color var(--transition-fast);
}

.btn-reset-filters:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}


/* ==========================================================================
   3. GIFT CARDS & GRID
   ========================================================================== */

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.gift-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default);
  position: relative;
}

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.gift-card.is-priority-high {
  border-top: 3px solid var(--color-accent);
}

.gift-card.status-reserved {
  background-color: #FAFBFD;
}

.gift-card.status-bought {
  background-color: #F8FAFC;
  opacity: 0.9;
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 400ms ease;
}

.gift-card:hover .card-img {
  transform: scale(1.04);
}

.card-badges-overlay {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-family-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-xs);
}

.badge-priority {
  background-color: rgba(254, 243, 199, 0.95);
  color: #92400E;
  border: 1px solid rgba(253, 230, 138, 0.8);
}

.badge-shop {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.badge-active-event {
  background-color: var(--color-success-light);
  color: var(--color-success-text);
  border: 1px solid var(--color-success-border);
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
}

.shop-amazon { border-color: #FF9900; color: #111827; }
.shop-smyths { border-color: #E2001A; color: #E2001A; }
.shop-thalia { border-color: #990033; color: #990033; }

.card-ribbon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-family-display);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.ribbon-reserved {
  background-color: var(--color-warning-light);
  color: var(--color-warning-text);
  border: 1px solid var(--color-warning-border);
}

.ribbon-bought {
  background-color: var(--bg-surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-default);
}

.card-content {
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

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

.card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.card-price {
  font-family: var(--font-family-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}

.card-title-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.card-title-link:hover {
  color: var(--color-primary);
}

.card-description {
  font-size: 0.885rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-note-box {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  background-color: var(--color-primary-subtle);
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.825rem;
  color: var(--color-primary-hover);
}

.card-status-box {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-default);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.status-available {
  color: var(--color-success-text);
  font-weight: 600;
}

.status-reserved,
.status-bought {
  color: var(--text-secondary);
}

.status-details {
  display: flex;
  flex-direction: column;
}

.status-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.card-actions .btn {
  width: 100%;
}

.card-admin-bar {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-admin-action {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.btn-admin-action:hover {
  background-color: var(--border-hover);
  color: var(--text-primary);
}


/* ==========================================================================
   4. MODALS & FORMS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn 200ms ease forwards;
}

.modal-overlay.modal-leaving {
  animation: fadeOut 200ms ease forwards;
}

.modal-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleIn 250ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-admin-auth {
  max-width: 460px;
}

.modal-admin-dashboard {
  max-width: 740px;
}

.modal-config {
  max-width: 580px;
}

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

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

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-body-scrollable {
  overflow-y: auto;
}

.modal-intro {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-default);
  background-color: var(--bg-surface-alt);
  padding: 0.35rem 1rem 0 1rem;
  gap: 0.35rem;
  overflow-x: auto;
}

.tab-btn {
  font-family: var(--font-family-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 0.95rem;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

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

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background-color: var(--bg-surface);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

/* Event List Items */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.event-list-item:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-subtle);
}

.event-list-item.is-current {
  border-color: var(--color-primary);
  background-color: var(--color-primary-subtle);
}

.event-item-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.event-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.event-item-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.event-item-meta code {
  background-color: rgba(15, 23, 42, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.event-item-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.event-editor-card {
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.event-editor-card h4 {
  margin-bottom: 0.85rem;
}

/* CSV & JSON Dropzone & Import Section */
.import-header-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.file-dropzone {
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  background-color: var(--bg-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 1.25rem;
}

.file-dropzone:hover,
.file-dropzone.dragover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-subtle);
}

.dropzone-icon {
  font-size: 2.25rem;
  display: block;
  margin-bottom: 0.5rem;
}

.import-preview-box {
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
}

.import-preview-box h4 {
  margin-bottom: 0.75rem;
}

.table-responsive {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  margin-bottom: 1rem;
}

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

.preview-table th,
.preview-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.preview-table th {
  background-color: var(--bg-surface-alt);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}

.import-mode-selection {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.required-label::after {
  content: " *";
  color: var(--color-danger);
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-family-body);
  font-size: 0.925rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.form-hint {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 0.75rem;
}

.input-with-action {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-action .form-input {
  width: 100%;
  padding-right: 2.75rem;
}

.btn-input-action {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  font-size: 1rem;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  transition: color var(--transition-fast);
}

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

.modal-actions,
.modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Reserve Modal Specifics */
.reserve-product-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  border: 1px solid var(--border-default);
}

.reserve-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  padding: 0.25rem;
}

.reserve-product-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.reserve-product-price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.925rem;
}

.reserve-product-shop {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.radio-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.radio-option-card {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.85rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.radio-option-card:hover {
  border-color: var(--border-hover);
}

.radio-option-card.active {
  border-color: var(--color-primary);
  background-color: var(--color-primary-subtle);
}

.radio-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
}

.radio-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.reserved-info-box {
  background-color: var(--color-warning-light);
  border: 1px solid var(--color-warning-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: var(--color-warning-text);
}

.reserved-note-quote {
  font-style: italic;
  margin-top: 0.35rem;
  color: #78350F;
}

.divider {
  border: none;
  border-top: 1px solid var(--border-default);
  margin: 1.25rem 0;
}

/* Burkerserver Config & Status Modal */
.server-info-card {
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
}

.server-info-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.server-badge-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.server-info-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.server-info-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.server-features-list {
  margin-top: 1.25rem;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  font-size: 0.85rem;
}

.server-features-list h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.server-features-list ul {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.test-result-box {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 1rem 0;
  animation: fadeIn 200ms ease;
}

.test-result-box.info {
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

.test-result-box.success {
  background-color: #ECFDF5;
  border: 1px solid #10B981;
  color: #065F46;
}

.test-result-box.error {
  background-color: #FEF2F2;
  border: 1px solid #EF4444;
  color: #991B1B;
}

.sync-actions-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-default);
}


/* ==========================================================================
   5. TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 99999;
  max-width: 380px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: var(--text-primary);
  color: #FFFFFF;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-leaving {
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
}

.toast-icon {
  font-size: 1.15rem;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.toast-close:hover {
  color: #FFFFFF;
}

.toast-success {
  background-color: #064E3B;
  border: 1px solid #059669;
}

.toast-error {
  background-color: #7F1D1D;
  border: 1px solid #DC2626;
}

.toast-info {
  background-color: #0F172A;
  border: 1px solid #334155;
}


/* ==========================================================================
   6. EMPTY STATES & LOADERS
   ========================================================================== */

.empty-state-card {
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-xl);
  padding: 3.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.empty-icon {
  font-size: 3rem;
  line-height: 1;
}

.grid-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  gap: 1rem;
  color: var(--text-muted);
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-default);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

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

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

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
