/* ============================================================
   SAMAEVENT – Composants UI
   ============================================================ */

/* ─────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 48px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  line-height: 1;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background var(--duration-base) var(--ease-soft),
              opacity var(--duration-fast);
  -webkit-user-select: none;
  user-select: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(224,98,42,.35);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(224,98,42,.45); transform: translateY(-1px); }

/* Secondary */
.btn-secondary {
  background: var(--color-secondary);
  color: white;
  box-shadow: 0 4px 16px rgba(26,60,110,.25);
}
.btn-secondary:hover { background: var(--color-secondary-dark); }

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary-soft); }

/* Ghost */
.btn-ghost {
  background: var(--color-bg-2);
  color: var(--color-text-2);
}
.btn-ghost:hover { background: var(--color-border); }

/* WhatsApp */
.btn-whatsapp {
  background: var(--color-whatsapp);
  color: white;
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); }

/* Sizes */
.btn-sm { height: 38px; padding: 0 var(--space-4); font-size: var(--text-sm); }
.btn-lg { height: 56px; padding: 0 var(--space-8); font-size: var(--text-md); }
.btn-xl { height: 60px; padding: 0 var(--space-10); font-size: var(--text-lg); border-radius: var(--radius-xl); }

/* Icon only */
.btn-icon {
  padding: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
}
.btn-icon.btn-sm { width: 38px; height: 38px; }
.btn-icon.btn-lg { width: 56px; height: 56px; }

/* Full width */
.btn-full { width: 100%; }

/* Loading state */
.btn.loading {
  pointer-events: none;
  position: relative;
  color: transparent;
}
.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: white;
  animation: spin .7s linear infinite;
}

/* ─────────────────────────────────────────
   INPUTS / FORMS
   ───────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-text-2);
}

.form-control {
  width: 100%;
  height: 52px;
  padding: 0 var(--space-4);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  -webkit-appearance: none;
}

.form-control::placeholder { color: var(--color-text-3); }
.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(224,98,42,.15);
}
.form-control.is-invalid { border-color: var(--color-error); }
.form-control.is-valid   { border-color: var(--color-success); }

textarea.form-control {
  height: auto;
  min-height: 100px;
  padding: var(--space-3) var(--space-4);
  resize: vertical;
  line-height: var(--leading-normal);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239C8877' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

/* Input with icon */
.input-group {
  position: relative;
}
.input-group .form-control {
  padding-left: 48px;
}
.input-group .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-3);
  pointer-events: none;
  line-height: 1;
}
.input-group .input-icon-right {
  left: auto;
  right: 16px;
  pointer-events: auto;
  cursor: pointer;
}
.input-group.icon-right .form-control {
  padding-left: var(--space-4);
  padding-right: 48px;
}

.form-hint  { font-size: var(--text-sm); color: var(--color-text-3); }
.form-error { font-size: var(--text-sm); color: var(--color-error); }

/* Floating search bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 52px;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  padding: 0 var(--space-5) 0 var(--space-4);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--color-border-light);
  transition: box-shadow var(--duration-fast), border-color var(--duration-fast);
}
.search-bar:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(224,98,42,.15);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: transparent;
}
.search-bar input::placeholder { color: var(--color-text-3); }
.search-bar .search-icon { color: var(--color-text-3); flex-none; }
.search-bar .search-btn {
  flex-none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--duration-fast);
}
.search-bar .search-btn:hover { background: var(--color-primary-dark); }

/* ─────────────────────────────────────────
   CHIPS / TAGS
   ───────────────────────────────────────── */
.chip-list {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-1);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chip-list::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 34px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-2);
  -webkit-user-select: none;
  user-select: none;
  flex-shrink: 0;
}
.chip:active { transform: scale(0.95); }
.chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.chip.chip-secondary.active {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}
.chip.chip-outline { background: transparent; }

/* ─────────────────────────────────────────
   BADGES
   ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  line-height: 1;
}
.badge-primary   { background: var(--color-primary-soft);   color: var(--color-primary-dark); }
.badge-secondary { background: var(--color-secondary-soft); color: var(--color-secondary); }
.badge-success   { background: var(--color-success-soft);   color: var(--color-success); }
.badge-warning   { background: var(--color-warning-soft);   color: var(--color-warning); }
.badge-error     { background: var(--color-error-soft);     color: var(--color-error); }
.badge-accent    { background: var(--color-accent-soft);    color: var(--color-accent-dark); }
.badge-dark      { background: var(--color-text);           color: white; }

/* Badge vérifié */
.badge-verified {
  background: linear-gradient(135deg, #1DAB6A, #0D8A52);
  color: white;
  font-size: var(--text-xs);
  padding: 3px 8px;
}

/* ─────────────────────────────────────────
   AVATARS
   ───────────────────────────────────────── */
.avatar {
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  color: var(--color-text-2);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs  { width: 28px; height: 28px; font-size: var(--text-xs); }
.avatar-sm  { width: 36px; height: 36px; font-size: var(--text-sm); }
.avatar-md  { width: 48px; height: 48px; font-size: var(--text-base); }
.avatar-lg  { width: 64px; height: 64px; font-size: var(--text-xl); }
.avatar-xl  { width: 80px; height: 80px; font-size: var(--text-2xl); }
.avatar-xxl { width: 100px; height: 100px; font-size: var(--text-3xl); }
.avatar-square { border-radius: var(--radius-md); }
.avatar-rounded { border-radius: var(--radius-lg); }

/* ─────────────────────────────────────────
   STAR RATING
   ───────────────────────────────────────── */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  line-height: 1;
}
.star { color: var(--color-star-empty); font-size: 14px; }
.star.filled { color: var(--color-star); }
.star.half {
  background: linear-gradient(90deg, var(--color-star) 50%, var(--color-star-empty) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rating-text {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-text);
  margin-left: 4px;
}
.rating-count {
  font-size: var(--text-xs);
  color: var(--color-text-3);
  margin-left: 2px;
}

/* Interactive stars */
.stars-input { display: flex; flex-direction: row-reverse; gap: 4px; }
.stars-input input { display: none; }
.stars-input label {
  font-size: 28px;
  cursor: pointer;
  color: var(--color-star-empty);
  transition: color var(--duration-fast);
}
.stars-input label:hover,
.stars-input label:hover ~ label,
.stars-input input:checked ~ label {
  color: var(--color-star);
}

/* ─────────────────────────────────────────
   CARDS
   ───────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-soft),
              transform var(--duration-base) var(--ease-soft);
  position: relative;
}
.card:active { transform: scale(0.985); }

/* Provider Card (list view) */
.provider-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: box-shadow var(--duration-base), transform var(--duration-base);
}
.provider-card:active { transform: scale(0.98); box-shadow: var(--shadow-md); }

.provider-card__image {
  position: relative;
  height: 160px;
  background: var(--color-bg-2);
  overflow: hidden;
}
.provider-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow);
}
.provider-card:hover .provider-card__image img { transform: scale(1.04); }

.provider-card__cat-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(26,60,110,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.provider-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--duration-fast), background var(--duration-fast);
  font-size: 16px;
}
.provider-card__fav:active { transform: scale(1.2); }
.provider-card__fav.active { background: var(--color-error-soft); }

.provider-card__body {
  padding: var(--space-3) var(--space-4) var(--space-4);
}
.provider-card__name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  line-height: var(--leading-snug);
  margin-bottom: 4px;
}
.provider-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}
.provider-card__location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  color: var(--color-text-3);
}
.provider-card__price {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-primary);
}
.provider-card__actions {
  display: flex;
  gap: var(--space-2);
}
.provider-card__actions .btn { flex: 1; font-size: var(--text-xs); height: 36px; padding: 0 var(--space-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Provider Card horizontal */
.provider-card-h {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  align-items: center;
}
.provider-card-h__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-2);
}
.provider-card-h__thumb img { width: 100%; height: 100%; object-fit: cover; }
.provider-card-h__info { flex: 1; min-width: 0; }
.provider-card-h__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category Card */
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  border: 1.5px solid var(--color-border-light);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-align: center;
  aspect-ratio: 1;
}
.cat-card:active { transform: scale(0.93); box-shadow: none; }
.cat-card:hover  { border-color: var(--color-primary); box-shadow: var(--shadow-card); }

.cat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--color-primary-soft);
  transition: transform var(--duration-fast);
}
.cat-card:hover .cat-card__icon { transform: scale(1.1); }
.cat-card__name {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--color-text-2);
  line-height: var(--leading-snug);
}

/* Event type chip card */
.event-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border-light);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--duration-fast);
  flex-shrink: 0;
}
.event-chip span:first-child { font-size: 18px; }
.event-chip span:last-child  { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text-2); }
.event-chip.active { background: var(--color-secondary-soft); border-color: var(--color-secondary); }
.event-chip.active span:last-child { color: var(--color-secondary); }

/* ─────────────────────────────────────────
   SECTION HEADERS
   ───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding: 0 var(--page-pad);
}
.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}
.section-header__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-scroll {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: 0 var(--page-pad) var(--space-2);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.section-scroll::-webkit-scrollbar { display: none; }
.section-scroll > * { flex-shrink: 0; }

/* ─────────────────────────────────────────
   SKELETONS
   ───────────────────────────────────────── */
@keyframes skeleton-pulse {
  0%   { opacity: 1; }
  50%  { opacity: 0.5; }
  100% { opacity: 1; }
}

.skeleton {
  background: linear-gradient(90deg, var(--color-border) 25%, var(--color-border-light) 50%, var(--color-border) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton-text { height: 14px; border-radius: var(--radius-sm); }
.skeleton-text-lg { height: 20px; }
.skeleton-text-xl { height: 26px; }
.skeleton-image { border-radius: var(--radius-lg); }

.skeleton-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

/* ─────────────────────────────────────────
   EMPTY STATES
   ───────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  text-align: center;
  gap: var(--space-4);
}
.empty-state__icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: var(--space-2);
  opacity: .7;
}
.empty-state__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}
.empty-state__text {
  font-size: var(--text-sm);
  color: var(--color-text-3);
  max-width: 280px;
  line-height: var(--leading-loose);
}

/* ─────────────────────────────────────────
   TOASTS
   ───────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + var(--space-4));
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: calc(100% - var(--space-8));
  max-width: 420px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-xl);
  background: var(--color-text);
  color: white;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  box-shadow: var(--shadow-xl);
  pointer-events: auto;
  animation: toastIn var(--duration-slow) var(--ease-out) forwards;
}
.toast.toast-out { animation: toastOut var(--duration-base) var(--ease-in) forwards; }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-text { flex: 1; }
.toast-close {
  flex-shrink: 0;
  opacity: .6;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.toast-success { background: var(--color-success); }
.toast-error   { background: var(--color-error); }
.toast-warning { background: var(--color-warning); }
.toast-info    { background: var(--color-secondary); }

@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(20px); opacity: 0; }
}

/* ─────────────────────────────────────────
   BOTTOM SHEET
   ───────────────────────────────────────── */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,20,16,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-overlay);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-soft);
  pointer-events: none;
}
.bottom-sheet-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: var(--max-content);
  background: var(--color-surface);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  z-index: var(--z-modal);
  padding: var(--space-2) 0 calc(var(--safe-bottom) + var(--space-6));
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: transform var(--duration-slow) var(--ease-out);
}
.bottom-sheet.active {
  transform: translateX(-50%) translateY(0);
}

.bottom-sheet__handle {
  width: 40px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  margin: var(--space-2) auto var(--space-4);
}
.bottom-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad) var(--space-4);
}
.bottom-sheet__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}
.bottom-sheet__close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--color-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--color-text-2);
}
.bottom-sheet__body { padding: 0 var(--page-pad); }

/* ─────────────────────────────────────────
   MODAL
   ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,20,16,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: var(--z-overlay);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
  transform: translateY(30px) scale(0.97);
  transition: transform var(--duration-slow) var(--ease-out);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

/* ─────────────────────────────────────────
   LOADERS
   ───────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

.loader-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.loader-spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.loader-spinner-lg { width: 36px; height: 36px; border-width: 4px; }

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
  z-index: 9999;
}
.page-loader__logo {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  color: var(--color-primary);
}

/* Dots loader */
.loader-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: dotBounce .8s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: .15s; }
.loader-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(.7); opacity: .6; }
  40%           { transform: scale(1.1); opacity: 1; }
}

/* ─────────────────────────────────────────
   DIVIDERS
   ───────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--color-border-light);
  margin: var(--space-4) 0;
}
.divider-thick {
  height: 8px;
  background: var(--color-bg-2);
  margin: var(--space-6) 0;
}

/* ─────────────────────────────────────────
   LIST ITEMS
   ───────────────────────────────────────── */
.list-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: background var(--duration-fast);
}
.list-item:last-child { border-bottom: none; }
.list-item:active { background: var(--color-bg-2); }
.list-item__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.list-item__content { flex: 1; min-width: 0; }
.list-item__title {
  font-weight: var(--weight-semi);
  font-size: var(--text-base);
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-item__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-3);
  margin-top: 2px;
}
.list-item__arrow { color: var(--color-text-3); font-size: 18px; }

/* ─────────────────────────────────────────
   PROGRESS BAR
   ───────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-out);
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
}
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  transition: all var(--duration-base) var(--ease-out);
}
.step-dot.active {
  background: var(--color-primary);
  width: 24px;
}
.step-dot.done { background: var(--color-success); }

/* ─────────────────────────────────────────
   TOGGLE / SWITCH
   ───────────────────────────────────────── */
.toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--duration-base);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out);
}
.toggle input:checked + .toggle-slider { background: var(--color-primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ─────────────────────────────────────────
   ALERTS
   ───────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}
.alert-success { background: var(--color-success-soft); color: #0d7a50; }
.alert-error   { background: var(--color-error-soft);   color: #c0281f; }
.alert-warning { background: var(--color-warning-soft); color: #b57d1a; }
.alert-info    { background: var(--color-info-soft);    color: #1e4bb8; }
.alert-icon { font-size: 18px; flex-shrink: 0; line-height: 1.3; }
.alert-dismissible { cursor: pointer; }

/* ─────────────────────────────────────────
   PRICE TAG
   ───────────────────────────────────────── */
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.price-tag__amount {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: var(--color-primary);
}
.price-tag__currency {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-primary);
  opacity: .8;
}
.price-tag__from {
  font-size: var(--text-xs);
  color: var(--color-text-3);
  margin-right: 4px;
}

/* ─────────────────────────────────────────
   CTA STICKY
   ───────────────────────────────────────── */
.cta-sticky {
  position: sticky;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + var(--space-3));
  left: 0;
  right: 0;
  padding: 0 var(--page-pad);
  z-index: var(--z-sticky);
  pointer-events: none;
}
.cta-sticky > * { pointer-events: auto; }

/* ─────────────────────────────────────────
   FAB (Floating Action Button)
   ───────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + var(--space-4));
  right: var(--space-4);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  box-shadow: 0 6px 24px rgba(224,98,42,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: var(--z-sticky);
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast);
}
.fab:active { transform: scale(0.9); }
.fab:hover  { box-shadow: 0 8px 28px rgba(224,98,42,.5); }
