/* ═══════════════════════════════════════════
   Greek Invoice Scanner — Premium Dark Theme
   ═══════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1424;
  --bg-card: rgba(15, 22, 42, 0.65);
  --bg-card-hover: rgba(20, 28, 52, 0.75);
  --bg-glass: rgba(15, 22, 42, 0.55);
  --border-subtle: rgba(148, 163, 184, 0.08);
  --border-glow: rgba(6, 166, 178, 0.25);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #06a6b2;

  /* Client brand palette */
  --brand-primary: #20617d;
  --brand-secondary: #06a6b2;
  --brand-active: #1a4d63;
  --brand-hover: #267597;
  --brand-positive: #21ba45;
  --brand-negative: #c10015;

  /* Accent gradients */
  --gradient-primary: linear-gradient(135deg, #06a6b2 0%, #20617d 100%);
  --gradient-accent: linear-gradient(135deg, #06a6b2 0%, #267597 50%, #1a4d63 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #c10015 100%);
  --gradient-cool: linear-gradient(135deg, #06a6b2 0%, #20617d 100%);

  /* Accent solids */
  --accent-green: #21ba45;
  --accent-cyan: #06a6b2;
  --accent-purple: #1a4d63;
  --accent-amber: #06a6b2;
  --accent-red: #c10015;
  --accent-positive: #21ba45;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(6, 166, 178, 0.12);

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Animated Background ──────────────────── */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(6, 166, 178, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(32, 97, 125, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(38, 117, 151, 0.03) 0%, transparent 60%);
  animation: meshFloat 20s ease-in-out infinite alternate;
}

@keyframes meshFloat {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.05) translate(-1%, 1%); }
  100% { transform: scale(1) translate(1%, -1%); }
}

/* ── Header ───────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 14, 26, 0.75);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(6, 166, 178, 0.35)); }
  50% { filter: drop-shadow(0 0 12px rgba(6, 166, 178, 0.55)); }
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.logo-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--gradient-primary);
  color: #0a0e1a;
}

/* ── Buttons ──────────────────────────────── */
.btn-ghost {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-glow);
  background: rgba(6, 166, 178, 0.06);
}

.btn-ghost-sm {
  padding: 4px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-ghost-sm:hover {
  color: var(--accent-red);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-outline:hover {
  border-color: var(--brand-secondary);
  color: var(--brand-secondary);
  background: rgba(6, 166, 178, 0.07);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: #0a0e1a;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 20px rgba(6, 166, 178, 0.35);
}

/* ── Main ─────────────────────────────────── */
.main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── Upload Section ───────────────────────── */
.upload-section {
  display: flex;
  justify-content: center;
  padding-top: 60px;
}

.upload-zone {
  position: relative;
  width: 100%;
  max-width: 600px;
  cursor: pointer;
  transition: var(--transition-base);
}

.upload-zone:hover {
  transform: translateY(-2px);
}

.upload-zone-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 40px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.upload-zone-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 2px dashed var(--border-subtle);
  transition: var(--transition-base);
  pointer-events: none;
}

.upload-zone:hover .upload-zone-border,
.upload-zone.dragover .upload-zone-border {
  border-color: var(--accent-green);
  box-shadow: var(--shadow-glow);
}

.upload-zone.dragover {
  transform: translateY(-4px) scale(1.01);
}

.upload-zone.dragover .upload-zone-inner {
  background: rgba(6, 166, 178, 0.05);
}

.upload-icon {
  margin-bottom: 24px;
  opacity: 0.9;
  transition: var(--transition-base);
}

.upload-zone:hover .upload-icon {
  transform: translateY(-4px);
  opacity: 1;
}

.upload-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.upload-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.upload-formats {
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

/* ── Processing Section ───────────────────── */
.processing-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.preview-file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
}

.preview-image-wrap {
  padding: 16px;
}

.preview-image-wrap img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

.preview-image-wrap .pdf-iframe {
  width: 100%;
  height: 480px;
  border: none;
  border-radius: var(--radius-sm);
  display: block;
  background: #1e293b;
}

.processing-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.processing-status h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.processing-status p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Spinner */
.processing-spinner {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.spinner-ring:nth-child(1) {
  border-top-color: var(--brand-secondary);
  animation: spinRing 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
  inset: 6px;
  border-right-color: var(--brand-hover);
  animation: spinRing 1.6s linear infinite reverse;
}

.spinner-ring:nth-child(3) {
  inset: 12px;
  border-bottom-color: var(--brand-primary);
  animation: spinRing 2s linear infinite;
}

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

/* Processing steps */
.processing-steps {
  display: flex;
  gap: 32px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: var(--transition-base);
}

.step.active {
  color: var(--brand-secondary);
}

.step.done {
  color: var(--text-secondary);
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition-base);
}

.step.active .step-dot {
  background: var(--brand-secondary);
  box-shadow: 0 0 8px var(--brand-secondary);
  animation: dotPulse 1.5s ease-in-out infinite;
}

.step.done .step-dot {
  background: var(--brand-positive);
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* ── Results Section ──────────────────────── */
.results-section {
  animation: fadeInUp 0.5s ease-out;
}

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

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.results-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.results-title-row h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.results-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(33, 186, 69, 0.12);
  color: var(--brand-positive);
  font-size: 0.72rem;
  font-weight: 600;
}

.results-actions {
  display: flex;
  gap: 8px;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}

.result-image-card {
  position: sticky;
  top: 88px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.result-image-card .card-header {
  border-bottom: 1px solid var(--border-subtle);
}

.result-image-wrap {
  padding: 12px;
}

.result-image-wrap img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

.result-image-wrap .pdf-iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: var(--radius-sm);
  display: block;
  background: #1e293b;
}

/* Data Cards */
.data-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  margin-bottom: 16px;
  transition: var(--transition-base);
  animation: cardReveal 0.4s ease-out backwards;
}

.data-card:nth-child(1) { animation-delay: 0.05s; }
.data-card:nth-child(2) { animation-delay: 0.1s; }
.data-card:nth-child(3) { animation-delay: 0.15s; }
.data-card:nth-child(4) { animation-delay: 0.2s; }
.data-card:nth-child(5) { animation-delay: 0.25s; }
.data-card:nth-child(6) { animation-delay: 0.3s; }
.data-card:nth-child(7) { animation-delay: 0.35s; }

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.data-card:hover {
  border-color: rgba(148, 163, 184, 0.12);
  background: var(--bg-card-hover);
}

.highlight-card {
  border-color: rgba(6, 166, 178, 0.18);
  background: rgba(6, 166, 178, 0.04);
}

.highlight-card:hover {
  border-color: rgba(6, 166, 178, 0.28);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
}

.card-header h3 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.invoice-icon { background: rgba(6, 166, 178, 0.12); color: var(--brand-secondary); }
.seller-icon { background: rgba(32, 97, 125, 0.18); color: var(--brand-hover); }
.buyer-icon { background: rgba(26, 77, 99, 0.2); color: var(--brand-secondary); }
.items-icon { background: rgba(32, 97, 125, 0.15); color: var(--brand-primary); }
.financial-icon { background: rgba(33, 186, 69, 0.12); color: var(--brand-positive); }
.extra-icon { background: rgba(100, 116, 139, 0.1); color: var(--text-muted); }
.raw-icon { background: rgba(100, 116, 139, 0.1); color: var(--text-muted); }
.yeti-icon { background: rgba(6, 166, 178, 0.15); color: var(--brand-secondary); }

.card-body {
  padding: 4px 18px 18px;
}

/* Data field rows */
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.04);
}

.data-row:last-child {
  border-bottom: none;
}

.data-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 120px;
  flex-shrink: 0;
}

.data-value {
  font-size: 0.85rem;
  color: var(--text-primary);
  text-align: right;
  word-break: break-word;
  font-weight: 500;
}

.data-value.accent {
  color: var(--brand-secondary);
  font-weight: 700;
  font-size: 1rem;
}

.data-value.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
}

/* Items table */
.items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.items-table thead {
  border-bottom: 1px solid var(--border-subtle);
}

.items-table th {
  text-align: left;
  padding: 8px 8px;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.items-table td {
  padding: 10px 8px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(148, 163, 184, 0.04);
}

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

.items-table .item-num {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.items-table .item-total {
  font-weight: 600;
  color: var(--brand-secondary);
  font-family: 'JetBrains Mono', monospace;
}

/* Raw text */
.raw-card .card-header.clickable {
  cursor: pointer;
  user-select: none;
}

.raw-card .card-header.clickable:hover {
  background: rgba(255, 255, 255, 0.02);
}

.chevron {
  margin-left: auto;
  transition: var(--transition-fast);
}

.chevron.open {
  transform: rotate(180deg);
}

.card-body.collapsed {
  max-height: 0;
  padding: 0 18px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.card-body.expanded {
  max-height: 2000px;
  padding: 4px 18px 18px;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.raw-text-content {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  border-radius: var(--radius-sm);
  max-height: 400px;
  overflow-y: auto;
}

/* Usage bar */
.usage-bar {
  margin-top: 24px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
}

/* ── History Panel ────────────────────────── */
.history-panel {
  position: fixed;
  top: 64px;
  right: 0;
  width: 380px;
  height: calc(100vh - 64px);
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  backdrop-filter: blur(20px);
}

.history-panel.visible {
  transform: translateX(0);
}

.history-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.history-panel-header h3 {
  font-size: 0.92rem;
  font-weight: 600;
}

.history-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.history-item {
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  margin-bottom: 4px;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.history-item-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.history-item-amount {
  font-size: 0.75rem;
  color: var(--brand-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

/* ── PDF Placeholder ──────────────────────── */
.pdf-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-subtle);
}

/* ── Toast ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(193, 0, 21, 0.15);
  border: 1px solid rgba(193, 0, 21, 0.3);
  border-radius: var(--radius-md);
  color: #f87171;
  font-size: 0.85rem;
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: transform 0.3s ease;
}

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

.toast-icon {
  flex-shrink: 0;
  color: var(--accent-red);
}

/* ── Utility ──────────────────────────────── */
.hidden {
  display: none !important;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
  .processing-section {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .result-image-card {
    position: static;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-panel {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .main {
    padding: 20px 16px 60px;
  }

  .upload-section {
    padding-top: 32px;
  }

  .upload-zone-inner {
    padding: 40px 24px;
  }

  .upload-title {
    font-size: 1.1rem;
  }

  .results-title-row h2 {
    font-size: 1.15rem;
  }

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

  .data-row {
    flex-direction: column;
    gap: 2px;
  }

  .data-value {
    text-align: left;
  }
}

/* ── Yeti CRM Button ──────────────────────── */
.btn-yeti {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn-yeti:hover {
  filter: brightness(1.12);
  box-shadow: 0 4px 20px rgba(6, 166, 178, 0.4);
}

.btn-yeti:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
}

.btn-yeti .yeti-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinRing 0.8s linear infinite;
  flex-shrink: 0;
}

/* Yeti status card */
.yeti-status-card {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 0.83rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: fadeInUp 0.3s ease-out;
}

.yeti-status-card.success {
  background: rgba(33, 186, 69, 0.1);
  border: 1px solid rgba(33, 186, 69, 0.25);
  color: #6ee28a;
}

.yeti-status-card.error {
  background: rgba(193, 0, 21, 0.1);
  border: 1px solid rgba(193, 0, 21, 0.28);
  color: #f87171;
}

.yeti-status-card.warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.yeti-status-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.yeti-status-body strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.yeti-status-body ul {
  margin: 6px 0 0 16px;
  font-size: 0.78rem;
  opacity: 0.85;
}

/* ── Scrollbar ────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.25);
}
