/* =============================================
   SkillMarket — UI Components
   ============================================= */

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--navbar-height);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
  gap: var(--space-6);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.navbar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), #7C6FF0);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  font-weight: 700;
  letter-spacing: -1px;
}

.navbar-logo .logo-text {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: -0.3px;
}

.navbar-logo .logo-beta {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-2);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
  font-weight: 600;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.nav-user:hover { background: var(--color-surface-3); }

.nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #7C6FF0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(91,79,232,.3);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(91,79,232,.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-primary-mid);
}

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

.btn-ghost {
  background: transparent;
  color: var(--color-text-2);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-surface-3);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-danger {
  background: var(--color-error-bg);
  color: var(--color-error);
  border-color: #FECACA;
}

.btn-danger:hover {
  background: var(--color-error);
  color: white;
}

.btn-success {
  background: var(--color-success);
  color: white;
  border-color: var(--color-success);
}

.btn-sm {
  padding: 6px 14px;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 13px 28px;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 15px 36px;
  font-size: var(--text-md);
  border-radius: var(--radius-lg);
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius-md);
}

.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

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

/* === SKILL CARD === */
.skill-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  border-color: var(--color-primary-mid);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.skill-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.skill-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.skill-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.35;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.skill-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: var(--space-4);
}

.skill-card-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}

.skill-card-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #7C6FF0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.skill-card-author-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-2);
}

.skill-card-author-spec {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.skill-card-metrics {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.metric-label {
  font-size: 10px;
  color: var(--color-text-xmuted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.metric-bar {
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), #7C6FF0);
  transition: width .4s ease;
}

.skill-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
}

.skill-card-price {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: -0.5px;
}

.skill-card-price span {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}

.skill-card-stats {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.skill-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.skill-stat svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* === 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: 600;
  line-height: 1.4;
  white-space: nowrap;
}

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

.badge-success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge-warning {
  background: var(--color-warning-bg);
  color: #B45309;
}

.badge-error {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.badge-neutral {
  background: var(--color-surface-3);
  color: var(--color-text-muted);
}

.badge-new {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
}

.badge-popular {
  background: linear-gradient(135deg, #FCE7F3, #FBCFE8);
  color: #9D174D;
}

.badge-ai {
  background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
  color: #5B21B6;
  gap: 3px;
}

.badge-category {
  color: white;
  font-size: 10px;
  padding: 3px 9px;
}

/* === 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: 600;
  color: var(--color-text-2);
}

.form-label span {
  color: var(--color-error);
  margin-left: 3px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91,79,232,.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-xmuted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: var(--leading-relaxed);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--color-error);
}

.input-group {
  position: relative;
}

.input-group .form-input {
  padding-right: 44px;
}

.input-addon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* === CARD === */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
}

.card-sm {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.card-section {
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-5);
  margin-top: var(--space-5);
}

/* === STATS / KPI TILES === */
.kpi-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}

.kpi-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #7C6FF0);
}

.kpi-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

.kpi-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: -1px;
  line-height: 1;
}

.kpi-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.kpi-change {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-2);
}

.kpi-change.up { color: var(--color-success); }
.kpi-change.down { color: var(--color-error); }

/* === PROGRESS BARS === */
.progress {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), #7C6FF0);
  transition: width .5s ease;
}

.progress-fill.success { background: var(--color-success); }
.progress-fill.warning { background: var(--color-warning); }

/* === TABS === */
.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-6);
}

.tab-btn {
  padding: 10px 18px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

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

.tab-btn.active {
  color: var(--color-primary);
  font-weight: 700;
  border-bottom-color: var(--color-primary);
}

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

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,30,48,.45);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  transition: opacity var(--transition);
}

.modal-overlay.visible { opacity: 1; }

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  transform: translateY(16px) scale(.97);
  transition: transform var(--transition-slow);
}

.modal-overlay.visible .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-secondary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-surface-3);
  color: var(--color-text);
}

/* === ALERTS / TOASTS === */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  min-width: 280px;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  animation: slideIn .25s ease;
  border-left: 3px solid var(--color-primary);
}

.toast.success { border-left-color: var(--color-success); }
.toast.error   { border-left-color: var(--color-error); }
.toast.warning { border-left-color: var(--color-warning); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-content { flex: 1; }
.toast-title { font-size: var(--text-sm); font-weight: 600; color: var(--color-secondary); }
.toast-message { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }

/* === TABLES === */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

thead th {
  padding: 13px 16px;
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}

tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}

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

tbody tr:hover {
  background: var(--color-surface-2);
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
}

.empty-state h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}

.empty-state p {
  color: var(--color-text-muted);
  max-width: 360px;
  margin: 0 auto var(--space-6);
}

/* === PAGINATION === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-2);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.page-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* === SIDEBAR === */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-2);
  transition: all var(--transition-fast);
}

.sidebar-link:hover {
  background: var(--color-surface-3);
  color: var(--color-text);
}

.sidebar-link.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
}

.sidebar-link .icon {
  font-size: 18px;
  width: 22px;
  flex-shrink: 0;
}

.sidebar-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-text-xmuted);
  padding: var(--space-4) 14px var(--space-2);
}

/* === RATING STARS === */
.stars {
  display: flex;
  gap: 2px;
}

.star {
  width: 16px;
  height: 16px;
  color: var(--color-warning);
}

.star.empty { color: var(--color-border); }

/* === LOADER === */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
}

.loader-dots {
  display: flex;
  gap: 6px;
}

.loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: bounce .8s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: .15s; }
.loader-dot:nth-child(3) { animation-delay: .3s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(.8); opacity: .5; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* === STEPPER === */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-8);
}

.step {
  display: flex;
  align-items: center;
  flex: 1;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: all var(--transition);
  z-index: 1;
}

.step.active .step-circle {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

.step.done .step-circle {
  border-color: var(--color-success);
  background: var(--color-success);
  color: white;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  transition: background var(--transition);
}

.step.done + .step .step-line,
.step.done .step-line {
  background: var(--color-success);
}

.step-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  text-align: center;
}

.step.active .step-label { color: var(--color-primary); }
.step.done .step-label { color: var(--color-success); }

/* === CHIP INPUT === */
.chips-input {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 8px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  min-height: 44px;
  cursor: text;
  transition: border-color var(--transition-fast);
  background: var(--color-surface);
}

.chips-input:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91,79,232,.12);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.chip-remove {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  transition: background var(--transition-fast);
}

.chip-remove:hover {
  background: rgba(91,79,232,.2);
}

.chip-input-field {
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--text-sm);
  color: var(--color-text);
  min-width: 80px;
  flex: 1;
}

/* === DROPDOWN === */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  padding: var(--space-2);
  display: none;
}

.dropdown-menu.open { display: block; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-2);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--color-surface-3);
  color: var(--color-text);
}

.dropdown-item.danger { color: var(--color-error); }
.dropdown-item.danger:hover { background: var(--color-error-bg); }

.dropdown-divider {
  height: 1px;
  background: var(--color-border-light);
  margin: var(--space-2) 0;
}

/* === VOICE RECORDER === */
.voice-recorder {
  background: var(--color-surface-2);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
  transition: all var(--transition);
}

.voice-recorder.recording {
  border-color: var(--color-error);
  background: var(--color-error-bg);
}

.record-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #7C6FF0);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: 28px;
  cursor: pointer;
  transition: all var(--transition-spring);
  box-shadow: 0 6px 20px rgba(91,79,232,.4);
}

.record-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(91,79,232,.5);
}

.record-btn.active {
  background: linear-gradient(135deg, var(--color-error), #F87171);
  box-shadow: 0 6px 20px rgba(239,68,68,.4);
  animation: pulse-record 1.5s ease-in-out infinite;
}

@keyframes pulse-record {
  0%, 100% { box-shadow: 0 6px 20px rgba(239,68,68,.4); }
  50% { box-shadow: 0 6px 30px rgba(239,68,68,.7), 0 0 0 12px rgba(239,68,68,.1); }
}

/* === SKELETON === */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface-3) 25%, var(--color-border-light) 50%, var(--color-surface-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-md);
}

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

/* === HERO SECTION === */
.hero {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #2D2670 50%, #1A1A2E 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(91,79,232,.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(124,111,240,.15) 0%, transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: var(--space-20) 0;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  padding: 5px 16px;
  font-size: var(--text-xs);
  color: rgba(255,255,255,.85);
  font-weight: 500;
  margin-bottom: var(--space-5);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.12;
  letter-spacing: -1.5px;
  max-width: 720px;
  margin-bottom: var(--space-5);
}

.hero h1 .accent {
  background: linear-gradient(90deg, #A78BFA, #7DD3FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.7);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,.1);
}

.hero-stat-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}
