.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}

.btn:active::after {
  background: rgba(255,255,255,0.1);
}

.btn--primary {
  background: var(--gradient-teal);
  color: white;
  box-shadow: var(--shadow-teal);
}

.btn--primary:active {
  transform: scale(0.97);
}

.btn--secondary {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.08);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal-light);
}

.btn--ghost {
  background: transparent;
  color: var(--teal-light);
}

.btn--full {
  width: 100%;
}

.btn--sm {
  padding: 10px 18px;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-md);
}

.btn--lg {
  padding: 18px 36px;
  font-size: var(--font-size-md);
}

.card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.card--glass {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

.card--interactive {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  cursor: pointer;
}

.card--interactive:active {
  transform: scale(0.97);
  border-color: rgba(20,184,166,0.2);
}

.card--teal {
  background: var(--gradient-teal);
  border: none;
}

.input-group {
  margin-bottom: var(--space-md);
}

.input-label {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  font-weight: var(--font-weight-medium);
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-field:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.input-field::placeholder {
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.badge--teal {
  background: var(--teal-ghost);
  color: var(--teal-light);
}

.badge--gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-light);
}

.badge--green {
  background: var(--green-soft);
  color: var(--green);
}

.badge--coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.avatar--sm { width: 36px; height: 36px; }
.avatar--lg { width: 64px; height: 64px; }
.avatar--xl { width: 80px; height: 80px; }

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box--teal {
  background: var(--teal-ghost);
  color: var(--teal-light);
}

.icon-box--gold {
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
}

.icon-box--accent {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
}

.list-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.list-item:active {
  background: rgba(13,115,119,0.06);
  transform: scale(0.99);
}

.list-item {
  cursor: pointer;
}

.list-item__content {
  flex: 1;
  min-width: 0;
}

.list-item__title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  margin-bottom: 2px;
}

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

.list-item__chevron {
  color: var(--text-muted);
  font-size: 12px;
  transform: rotate(180deg);
}

.divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: var(--space-sm) 0;
}

.chip-group {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  -webkit-overflow-scrolling: touch;
}

.chip-group::-webkit-scrollbar { display: none; }

.chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all var(--transition-fast);
}

.chip--active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  box-shadow: var(--shadow-teal);
}

.progress-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring__value {
  position: absolute;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
}

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

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

.toast {
  position: fixed;
  top: calc(var(--safe-top) + 16px);
  left: 16px;
  right: 16px;
  background: var(--surface-elevated);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: var(--z-toast);
  box-shadow: var(--shadow-lg);
  transform: translateY(-120%);
  transition: transform var(--transition-spring);
}

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

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
}

.empty-state__icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.empty-state__title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}

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