/* ═══════════════════════════════════════════════════════════════
   CellarStock – style.css
   Mobile-first, wine-themed design inspired by the iOS app
═══════════════════════════════════════════════════════════════ */

/* ── Reset & Custom Properties ──────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg:           #faf8f5;
  --surface:      #ffffff;
  --surface-2:    #f2f0ed;
  --primary:      #722f37;
  --primary-dark: #5a2329;
  --accent:       #c9a84c;
  --text:         #1c1c1e;
  --text-sec:     #6e6e73;
  --border:       #e5e5ea;
  --destructive:  #ff3b30;
  --success:      #34c759;
  --warning:      #ff9500;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 24px rgba(0,0,0,0.14);
  --transition:   0.22s ease;
}

html, body {
  height: 100%;
  background: var(--bg);
}

body {
  font-family: system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── App layout ─────────────────────────────────────────────── */
.app {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

/* ── Login ──────────────────────────────────────────────────── */
.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 24px;
  background: linear-gradient(160deg, var(--primary) 0%, #3a1218 100%);
}

.login-logo {
  font-size: 48px;
  margin-bottom: 8px;
}

.login-title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.login-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  margin-bottom: 40px;
}

.login-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-md);
}

.login-card .field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.login-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  margin-bottom: 16px;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}

.login-card input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform 0.1s;
  -webkit-appearance: none;
}

.btn-primary:hover  { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: default; }

.error-msg {
  color: var(--destructive);
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
}

/* ── Header ─────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-title {
  flex: 1;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.header-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-sec);
  margin-left: 4px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: var(--surface-2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  transition: background var(--transition), transform 0.1s;
  flex-shrink: 0;
}

.icon-btn:hover  { background: var(--border); }
.icon-btn:active { transform: scale(0.92); }

/* ── Search & Filters ───────────────────────────────────────── */
.search-bar {
  padding: 10px 16px 6px;
  background: var(--surface);
  position: sticky;
  top: 65px;
  z-index: 99;
  border-bottom: 1px solid var(--border);
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--text-sec);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

.search-input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  background: var(--surface-2);
  color: var(--text);
  -webkit-appearance: none;
  transition: border-color var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}

.filter-strip {
  padding: 8px 16px 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.filter-strip::-webkit-scrollbar { display: none; }

.filter-chip {
  white-space: nowrap;
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.filter-chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(114,47,55,0.06);
}

/* ── Wine List ──────────────────────────────────────────────── */
.wine-list {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 80px;
}

.wine-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  background: var(--surface);
  transition: background var(--transition);
  -webkit-user-select: none;
  user-select: none;
}

.wine-row:hover  { background: var(--surface-2); }
.wine-row:active { background: var(--border); }

.wine-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sec);
  font-size: 22px;
}

.wine-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

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

.wine-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wine-meta {
  font-size: 12px;
  color: var(--text-sec);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wine-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform 0.1s;
  font-weight: 400;
}

.qty-btn:hover  { background: var(--primary-dark); }
.qty-btn:active { transform: scale(0.9); }
.qty-btn:disabled { opacity: 0.35; cursor: default; }
.qty-btn.minus  { background: #e0e0e0; color: var(--text); }
.qty-btn.minus:hover { background: #c8c8c8; }

.qty-value {
  font-size: 16px;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  color: var(--text);
}

.pending-badge {
  font-size: 10px;
  color: var(--warning);
  display: flex;
  align-items: center;
  gap: 2px;
}

.empty-state {
  padding: 60px 24px;
  text-align: center;
  color: var(--text-sec);
  font-size: 15px;
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

/* ── Bottom Action Bar ──────────────────────────────────────── */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  gap: 12px;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.07);
}

.btn-action {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-action.add {
  background: var(--primary);
  color: #fff;
}

.btn-action.remove {
  background: var(--surface);
  color: var(--primary);
}

.btn-action:hover { opacity: 0.85; }
.btn-action:active { transform: scale(0.97); }

/* ── Modal Overlay ──────────────────────────────────────────── */
#modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#modal-overlay.hidden {
  display: none;
}

/* Sheet (bottom slide-up) */
.sheet {
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp var(--transition) forwards;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0.7; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Dialog (centered) */
.dialog {
  background: var(--surface);
  border-radius: 20px;
  margin: auto 16px;
  padding: 24px;
  animation: fadeScale 0.18s ease forwards;
  max-width: 380px;
  width: calc(100% - 32px);
  align-self: center;
}

@keyframes fadeScale {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Full-screen sheet */
.sheet-full {
  background: var(--surface);
  flex: 1;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  animation: slideUp var(--transition) forwards;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  max-height: 96vh;
  padding-bottom: env(safe-area-inset-bottom);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.sheet-header {
  display: flex;
  align-items: center;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  flex-shrink: 0;
}

.sheet-header h2 {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.sheet-header .btn-text {
  font-size: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--primary);
  font-weight: 500;
  min-width: 60px;
}

.sheet-header .btn-text.destructive { color: var(--destructive); }
.sheet-header .btn-text.dimmed      { color: var(--text-sec); }

.sheet-body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
}

/* ── Form Styles ────────────────────────────────────────────── */
.form-section {
  margin-bottom: 20px;
}

.form-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-sec);
  margin-bottom: 10px;
  padding-left: 4px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
  margin-bottom: 5px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  -webkit-appearance: none;
  transition: border-color var(--transition);
  font-family: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.field input:read-only {
  background: var(--surface-2);
  cursor: default;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field-row .field {
  flex: 1;
}

/* Rating field */
.rating-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-stars {
  display: flex;
  gap: 4px;
}

.star {
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #ddd;
  transition: color 0.1s;
  background: none;
  border: none;
  padding: 0;
}

.star.filled { color: var(--accent); }

/* Photo field */
.photo-field {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.photo-field:hover {
  border-color: var(--primary);
  background: rgba(114,47,55,0.03);
}

.photo-field img {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.photo-field .photo-label {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
}

.photo-field .photo-hint {
  color: var(--text-sec);
  font-size: 13px;
  margin-top: 4px;
}

/* ── Action Sheet (options list) ────────────────────────────── */
.action-sheet {
  padding: 8px 0 4px;
}

.action-sheet-title {
  text-align: center;
  font-size: 13px;
  color: var(--text-sec);
  padding: 8px 16px 12px;
  font-weight: 500;
}

.action-option {
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}

.action-option:hover  { background: var(--surface-2); }
.action-option:active { background: var(--border); }
.action-option.cancel { color: var(--text-sec); font-weight: 400; }
.action-option.destructive { color: var(--destructive); }

/* ── Wine Detail ────────────────────────────────────────────── */
.detail-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sec);
  font-size: 64px;
  overflow: hidden;
}

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

.detail-body {
  padding: 16px;
}

.detail-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.detail-appellation {
  font-size: 15px;
  color: var(--text-sec);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.detail-qty-label {
  font-size: 15px;
  font-weight: 500;
}

.detail-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-qty-val {
  font-size: 24px;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
}

.detail-section {
  margin-bottom: 20px;
}

.detail-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-sec);
  margin-bottom: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.detail-item {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.detail-item-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-sec);
  margin-bottom: 4px;
}

.detail-item-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.detail-comment {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

.btn-danger {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--destructive);
  background: rgba(255,59,48,0.08);
  transition: background var(--transition);
  margin-top: 8px;
}

.btn-danger:hover { background: rgba(255,59,48,0.14); }

/* ── OCR Review ─────────────────────────────────────────────── */
.ocr-photo-preview {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 12px;
}

.ocr-line-list {
  margin-top: 8px;
}

.ocr-line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.ocr-line-text {
  font-size: 14px;
  color: var(--text);
  flex: 1;
}

.ocr-assign-btn {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: none;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
}

.ocr-assign-btn:hover { background: rgba(114,47,55,0.06); }

.ocr-assign-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 300;
  min-width: 160px;
  overflow: hidden;
}

.ocr-assign-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: 14px;
  cursor: pointer;
  color: var(--primary);
  transition: background var(--transition);
}

.ocr-assign-menu button:hover { background: var(--surface-2); }

.ocr-field-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ocr-field-wrap input {
  flex: 1;
}

.ocr-clear-btn {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-sec);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

/* ── Barcode Scanner ────────────────────────────────────────── */
.scanner-wrap {
  padding: 0 16px 16px;
}

.scanner-mode-label {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 12px 0 16px;
}

#barcode-reader {
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

/* Override html5-qrcode styles */
#barcode-reader video { border-radius: var(--radius); }
#barcode-reader img  { display: none !important; }

.scanner-hint {
  text-align: center;
  color: var(--text-sec);
  font-size: 14px;
  margin-top: 12px;
}

.scanner-result {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--success);
  margin-top: 12px;
  padding: 10px;
  background: rgba(52,199,89,0.1);
  border-radius: var(--radius-sm);
}

/* ── Insights ───────────────────────────────────────────────── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px 16px 0;
}

.stat-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 14px;
}

.stat-card .value {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
}

.stat-card .label {
  font-size: 12px;
  color: var(--text-sec);
  margin-top: 2px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  padding: 16px 16px 10px;
}

.chart-container {
  padding: 0 16px 16px;
  max-height: 260px;
  position: relative;
}

.appellation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.appellation-row .count {
  font-weight: 700;
  color: var(--primary);
}

/* ── Wine Selection Dialog ──────────────────────────────────── */
.selection-list {
  padding: 0;
  max-height: 60vh;
  overflow-y: auto;
}

.selection-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}

.selection-item:hover  { background: var(--surface-2); }
.selection-item:active { background: var(--border); }

/* ── Filter Panel ───────────────────────────────────────────── */
.filter-panel {
  padding: 16px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-sec);
  margin-bottom: 10px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-option-btn {
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  color: var(--text-sec);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-option-btn.selected {
  border-color: var(--primary);
  background: rgba(114,47,55,0.07);
  color: var(--primary);
}

.filter-select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  -webkit-appearance: none;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ── Toast Notifications ────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 560px;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.toast {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.22s ease;
  max-width: 360px;
  text-align: center;
}

.toast.success  { background: var(--success); }
.toast.error    { background: var(--destructive); }
.toast.info     { background: #3a3a3c; }

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

/* ── Loading Spinner ────────────────────────────────────────── */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 24px;
  color: var(--text-sec);
  font-size: 14px;
}

/* ── Dropdown hint ──────────────────────────────────────────── */
.dropdown-rel {
  position: relative;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 600px) {
  .app { box-shadow: 0 0 40px rgba(0,0,0,0.12); }
  .bottom-bar { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}
