/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: var(--glow-accent-strong);
  transform: translateY(-1px);
  color: white;
}

.btn--secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}

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

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

.btn--icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn svg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--accent {
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge--success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge--popular {
  background: var(--accent-gradient);
  color: white;
  border: none;
}

/* Cards */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-2px);
}

.card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-light);
  margin-bottom: var(--space-lg);
}

.card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

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

/* Toggle switch */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
}

.toggle__track {
  position: relative;
  width: 3.5rem;
  height: 2rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-base);
}

.toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.375rem;
  height: 1.375rem;
  background: var(--text-primary);
  border-radius: 50%;
  transition: transform var(--transition-base);
}

.toggle--active .toggle__track {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle--active .toggle__thumb {
  transform: translateX(1.5rem);
}

.toggle__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.toggle__label--active {
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
}

.table {
  width: 100%;
  min-width: 600px;
  text-align: left;
}

.table th {
  padding: 1rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  background: var(--glass-bg-darker);
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}

.table td {
  padding: 0.875rem 1.25rem;
  font-size: var(--text-sm);
  border-bottom: 1px solid rgba(71, 85, 105, 0.15);
  color: var(--text-secondary);
}

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

.table tr:hover td {
  background: rgba(14, 165, 233, 0.03);
}

.table .col-highlight {
  background: rgba(14, 165, 233, 0.05);
}

.table .col-highlight-header {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-light);
}

/* Check/Cross icons in tables */
.check {
  color: var(--success);
  font-weight: var(--weight-bold);
}

.cross {
  color: var(--text-muted);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--glass-border);
  border: none;
  margin: var(--space-2xl) 0;
}

/* Input */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--glass-bg-darker);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

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