/* ===================================
   QR Art Director – Design System
   Premium dark glassmorphism aesthetic
   =================================== */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Custom Properties --- */
:root {
  /* Base palette */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-elevated: #1a1a26;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);
  --bg-glass-active: rgba(255, 255, 255, 0.10);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.10);
  --border-accent: rgba(255, 255, 255, 0.15);

  /* Text */
  --text-primary: #f0f0f5;
  --text-secondary: #8b8b9e;
  --text-tertiary: #55556a;
  --text-accent: #c4b5fd;

  /* Accents */
  --accent-purple: #a78bfa;
  --accent-purple-dim: rgba(167, 139, 250, 0.15);
  --accent-blue: #60a5fa;
  --accent-pink: #f472b6;
  --accent-green: #34d399;
  --accent-orange: #fb923c;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #34d399 100%);
  --gradient-neon: linear-gradient(135deg, #06b6d4 0%, #a78bfa 50%, #f472b6 100%);
  --gradient-warm: linear-gradient(135deg, #fb923c 0%, #f472b6 50%, #a78bfa 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(167,139,250,0.1) 0%, rgba(96,165,250,0.05) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-purple: 0 0 40px rgba(167, 139, 250, 0.15);
  --shadow-glow-blue: 0 0 40px rgba(96, 165, 250, 0.15);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* 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);

  /* Glass */
  --glass-blur: 20px;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-glass: rgba(0, 0, 0, 0.03);
  --bg-glass-hover: rgba(0, 0, 0, 0.06);
  --bg-glass-active: rgba(0, 0, 0, 0.09);

  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-accent: rgba(0, 0, 0, 0.2);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-accent: #6d28d9;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  
  --shadow-glow-purple: 0 0 20px rgba(167, 139, 250, 0.4);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Ambient Background --- */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 600px 600px at 20% 20%, rgba(167, 139, 250, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 30%, rgba(96, 165, 250, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 60% 80%, rgba(244, 114, 182, 0.04) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: ambientDrift 20s ease-in-out infinite alternate;
}

@keyframes ambientDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(30px, -20px) rotate(3deg); }
}

/* --- Layout Container --- */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

/* --- Header --- */
.header {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-xl);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.header__icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-glow-purple);
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: var(--shadow-glow-purple); }
  50% { box-shadow: 0 0 60px rgba(167, 139, 250, 0.25); }
}

.header__title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- Main Grid --- */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* --- Glass Panel --- */
.panel {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.panel:hover {
  border-color: var(--border-medium);
}

.panel__title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.panel__title svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

/* --- Input Section --- */
.input-group {
  margin-bottom: var(--space-lg);
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.input-text {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
  resize: vertical;
  min-height: 48px;
}

.input-text:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--accent-purple-dim);
}

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

/* --- Style Cards --- */
.style-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.style-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.style-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.style-card[data-style="neon"]::before {
  background: linear-gradient(90deg, #06b6d4, #a78bfa, #f472b6);
}

.style-card[data-style="pastel"]::before {
  background: linear-gradient(90deg, #fda4af, #c4b5fd, #93c5fd);
}

.style-card[data-style="gradient"]::before {
  background: linear-gradient(90deg, #fb923c, #f472b6, #a78bfa);
}

.style-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.style-card:hover::before {
  opacity: 1;
}

.style-card.active {
  border-color: var(--accent-purple);
  background: var(--accent-purple-dim);
  box-shadow: var(--shadow-glow-purple);
}

.style-card.active::before {
  opacity: 1;
}

.style-card__emoji {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.style-card__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.style-card__desc {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* --- Custom Controls --- */
.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.control-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.control-group select,
.control-group input[type="text"] {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
  cursor: pointer;
}

.control-group select:focus,
.control-group input[type="text"]:focus {
  border-color: var(--accent-purple);
}

.control-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Color input wrapper */
.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 4px 4px var(--space-md);
  transition: border-color var(--transition-fast);
}

.color-input-wrapper:focus-within {
  border-color: var(--accent-purple);
}

.color-input-wrapper input[type="text"] {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: 'Inter', monospace;
  font-size: 0.8rem;
  outline: none;
  min-width: 0;
  padding: var(--space-xs) 0;
}

.color-input-wrapper input[type="color"] {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: none;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch {
  border: 2px solid var(--border-medium);
  border-radius: 6px;
}

/* --- Logo Upload --- */
.logo-upload {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.logo-upload__dropzone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.logo-upload__dropzone:hover,
.logo-upload__dropzone.dragover {
  border-color: var(--accent-purple);
  background: var(--accent-purple-dim);
}

.logo-upload__dropzone svg {
  width: 24px;
  height: 24px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
}

.logo-upload__text {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.logo-upload__text span {
  color: var(--accent-purple);
  font-weight: 500;
}

.logo-upload__preview {
  display: none;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.logo-upload__preview.visible {
  display: flex;
}

.logo-upload__preview img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

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

.logo-upload__preview-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-upload__preview-size {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.logo-upload__remove {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  display: flex;
}

.logo-upload__remove:hover {
  color: #ef4444;
}

/* --- Preview Section --- */
.preview-panel {
  position: sticky;
  top: var(--space-xl);
}

.preview-canvas {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

/* Decorative glow behind QR */
.preview-canvas::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
  animation: previewGlow 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes previewGlow {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

.preview-canvas #qr-code {
  position: relative;
  z-index: 1;
}

.preview-canvas #qr-code canvas,
.preview-canvas #qr-code svg {
  border-radius: var(--radius-md);
  transition: transform var(--transition-slow);
}

.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-tertiary);
  text-align: center;
  position: relative;
  z-index: 1;
}

.preview-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.preview-placeholder p {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* --- Export Buttons --- */
.export-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #0a0a0f;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-glow-purple);
}

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

.btn--secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

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

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

/* --- Error Correction Badge --- */
.ec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent-green);
  margin-top: var(--space-md);
}

.ec-badge svg {
  width: 14px;
  height: 14px;
}

/* --- Gradient Toggle --- */
.gradient-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent-purple-dim);
  border-color: var(--accent-purple);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(16px);
  background: var(--accent-purple);
}

.gradient-toggle label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.gradient-color-row {
  display: none;
  margin-top: var(--space-sm);
}

.gradient-color-row.visible {
  display: block;
}

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-sm);
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

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

.tab-btn.active {
  color: var(--accent-purple);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: calc(-1 * var(--space-sm) - 1px);
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px 2px 0 0;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

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

/* --- Tilt & Preview Wrapper --- */
.preview-tilt-wrapper {
  transform-style: preserve-3d;
  width: 100%;
}

.preview-canvas {
  transform: translateZ(20px);
}

/* --- Export & Frame Wrapper --- */
.export-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent; /* Changed dynamically by frame style */
  border-radius: var(--radius-lg);
  padding: 0;
  transition: all var(--transition-base);
}

/* Base styles for the inner QR + Background image container */
.qr-bg-container {
  position: relative;
  display: inline-block;
  border-radius: var(--radius-md);
  overflow: hidden; /* Ensure background image stays within corners */
  padding: var(--space-md);
  background: transparent;
}

.qr-bg-container img#qr-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.qr-bg-container #qr-code {
  position: relative;
  z-index: 1;
}

/* Frame Styles */
.export-wrapper.frame-active {
  background: var(--bg-secondary);
  border: 4px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  padding: var(--space-md);
}

.export-wrapper.frame-bubble {
  border-bottom-left-radius: 4px;
}

.frame-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: 100%;
}

/* Bubble Tail */
.frame-bubble-tail {
  position: absolute;
  bottom: -20px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid var(--border-medium);
}
.frame-bubble-tail::after {
  content: '';
  position: absolute;
  top: -24px;
  left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 14px solid var(--bg-secondary);
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.footer a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--accent-blue);
}

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

  .preview-panel {
    position: static;
    order: -1;
  }

  .style-cards {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .header__title {
    font-size: 1.6rem;
  }
}

@media (max-width: 560px) {
  .app-container {
    padding: var(--space-md);
    gap: var(--space-lg);
  }

  .header {
    padding: var(--space-xl) 0 var(--space-md);
  }

  .header__title {
    font-size: 1.3rem;
  }

  .style-cards {
    grid-template-columns: 1fr;
  }

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

  .export-buttons {
    grid-template-columns: 1fr;
  }

  .preview-canvas {
    min-height: 280px;
    padding: var(--space-lg);
  }
}

/* --- Utility Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Staggered animation delays for cards */
.style-card:nth-child(1) { animation-delay: 0.1s; }
.style-card:nth-child(2) { animation-delay: 0.2s; }
.style-card:nth-child(3) { animation-delay: 0.3s; }

/* --- Toast notification --- */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  transition: all var(--transition-base);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

.toast svg {
  width: 18px;
  height: 18px;
  color: var(--accent-green);
}
