:root {
  --bg-main: #0b0914;
  --bg-card: #131022;
  --bg-card-hover: #19152e;
  --bg-input: #1a162b;
  --border-color: rgba(147, 51, 234, 0.18);
  --border-focus: rgba(168, 85, 247, 0.5);
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-glow: rgba(139, 92, 246, 0.35);
  --accent-purple: #c084fc;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --mono-color: #8b5cf6;
  --donatello-color: #38bdf8;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* App Container */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.logo-icon .bar {
  width: 3.5px;
  background: #fff;
  border-radius: 999px;
}

.logo-icon .bar-1 { height: 10px; }
.logo-icon .bar-2 { height: 20px; }
.logo-icon .bar-3 { height: 14px; }

.logo-text h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-subtitle {
  font-size: 11px;
  color: var(--accent-purple);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 18px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-online {
  background-color: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.dot-waiting {
  background-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tabs */
.nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: var(--bg-card);
  color: #fff;
  border-color: var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Tab Contents */
.tab-content {
  display: none;
}

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

/* Now Playing Card */
.now-playing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card-glow {
  position: absolute;
  top: -50px;
  left: 20%;
  width: 300px;
  height: 150px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.card-inner {
  display: flex;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.thumbnail-wrapper {
  position: relative;
  width: 220px;
  height: 140px;
  min-width: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.track-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  background: rgba(18, 16, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.source-pill.badge-monobank { color: #c084fc; border-color: rgba(192, 132, 252, 0.3); }
.source-pill.badge-manual { color: #a78bfa; border-color: rgba(167, 139, 250, 0.3); }

.np-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.np-donor-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

.donor-label {
  color: var(--text-dim);
}

.amount-pill {
  background: rgba(91, 33, 182, 0.4);
  color: var(--accent-purple);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.np-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-author {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.np-comment {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Timeline */
.timeline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.time-label {
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
}

.seek-bar-wrapper {
  flex: 1;
}

/* Sliders */
.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  box-shadow: 0 0 6px var(--primary-glow);
  transition: transform 0.1s;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* Controls */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.playback-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctrl-btn {
  background: var(--bg-input);
  color: #fff;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.ctrl-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.ctrl-btn-main {
  width: 46px;
  height: 46px;
  background: var(--primary);
  border-color: var(--primary);
  font-size: 18px;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.ctrl-btn-main:hover {
  background: var(--primary-hover);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.vol-icon {
  font-size: 15px;
  color: var(--text-muted);
}

.volume-val {
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
}

/* Quick Tests Bar */
.quick-tests-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 16px;
}

/* Queue Section */
.queue-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title h3 {
  font-size: 18px;
  font-weight: 700;
}

.counter-badge {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* Queue Items */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.queue-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: transform 0.15s ease, background-color 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  cursor: grab;
  user-select: none;
}

.queue-item:active {
  cursor: grabbing;
}

.queue-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(147, 51, 234, 0.35);
}

.queue-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 28px;
  font-size: 16px;
  color: var(--text-dim);
  cursor: grab;
  border-radius: 4px;
  transition: color 0.2s, transform 0.15s;
  letter-spacing: -1px;
}

.queue-item:hover .queue-drag-handle {
  color: var(--accent-purple);
  transform: scale(1.1);
}

.queue-item.dragging {
  opacity: 0.35;
  background: rgba(139, 92, 246, 0.12);
  border: 1px dashed var(--primary);
  transform: scale(0.98);
}

.queue-item.drag-over-top {
  border-top: 2px solid var(--accent-purple) !important;
  box-shadow: 0 -4px 12px rgba(168, 85, 247, 0.35);
}

.queue-item.drag-over-bottom {
  border-bottom: 2px solid var(--accent-purple) !important;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

.queue-item-index {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  width: 20px;
}

.queue-thumb {
  width: 60px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #000;
}

.queue-item-info {
  flex: 1;
  min-width: 0;
}

.queue-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.queue-item-donor {
  font-weight: 600;
  color: #e2e8f0;
}

.queue-item-amount {
  color: var(--accent-purple);
  font-weight: 700;
}

.queue-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* History List */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--bg-input);
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

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

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 11px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.btn-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Cards & Forms */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-header {
  margin-bottom: 20px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-with-button {
  display: flex;
  gap: 8px;
}

.input-with-button input {
  flex: 1;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Video Preview Box */
.preview-box {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
}

.preview-box.hidden {
  display: none;
}

.preview-thumb {
  width: 90px;
  height: 55px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.preview-meta h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.preview-meta p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}

.empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.empty-state h4 {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.empty-state p {
  font-size: 13px;
}

/* Settings Layout */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.settings-card .card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.header-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.header-icon-box.mono-color {
  background: rgba(139, 92, 246, 0.2);
}

.header-icon-box.donatello-color {
  background: rgba(56, 189, 248, 0.2);
}

.header-icon-box.obs-color {
  background: rgba(16, 185, 129, 0.2);
}

.help-link {
  font-size: 11px;
  color: var(--accent-purple);
  text-decoration: none;
  margin-left: 6px;
}

.copy-input-group {
  display: flex;
  gap: 6px;
}

.copy-input-group input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  font-family: monospace;
  font-size: 12px;
}

.hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.label-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #fff;
  font-weight: 500;
}

.obs-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.step-item code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-purple);
  font-size: 12px;
}

.step-num {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-save-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.save-status {
  font-size: 13px;
  color: var(--success);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Auth header and User Button styling */
.auth-header-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

#clerk-user-button,
.clerk-user-button-mount {
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cl-userButtonAvatarBox {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4) !important;
}

.logged-out-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0 80px;
}

/* Fullscreen Auth Modal with Backdrop Blur */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 9, 20, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal-backdrop.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-container.is-blurred {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
}

.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 490px;
  background: linear-gradient(150deg, rgba(23, 18, 42, 0.96), rgba(13, 10, 26, 0.98));
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.8), 0 0 50px rgba(139, 92, 246, 0.22);
  border-radius: 24px;
  padding: 38px 32px 34px;
  text-align: center;
  overflow: hidden;
  animation: modalPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from {
    transform: scale(0.92) translateY(18px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.auth-modal-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #c084fc, #38bdf8);
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  font-size: 12.5px;
  font-weight: 700;
  margin: 10px 0 12px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.auth-modal-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.auth-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  text-align: left;
}

.auth-feature-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.15);
  padding: 11px 14px;
  border-radius: var(--radius-md);
  transition: border-color 0.2s, background-color 0.2s;
}

.auth-feature-row:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.35);
}

.af-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.af-text {
  display: flex;
  flex-direction: column;
}

.af-text strong {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 600;
}

.af-text small {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

.btn-auth-large {
  width: 100%;
  padding: 15px 24px;
  font-size: 15.5px;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}

.btn-auth-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(139, 92, 246, 0.6);
}

.btn-auth-large:active {
  transform: translateY(0);
}

.btn-auth-large:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.auth-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.spinner-ring {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(139, 92, 246, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

.hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .card-inner {
    flex-direction: column;
  }
  .thumbnail-wrapper {
    width: 100%;
    height: 180px;
  }
  .form-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

