:root {
  --bg-page: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-surface-glass: rgba(17, 24, 39, 0.72);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.35);
  --primary-hover: #6366f1;
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.25);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.2);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-glass: rgba(255, 255, 255, 0.85);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.15);
  --primary-hover: #4338ca;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Background Atmosphere Glow */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-circle-1 {
  position: absolute;
  top: -150px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.65;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-circle-2 {
  position: absolute;
  top: 300px;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.5;
  animation: floatOrb 15s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(50px) scale(1.1); }
}

/* Header & Nav */
header.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 24px;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.back-to-hub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.back-to-hub:hover {
  color: var(--text-main);
  border-color: var(--primary);
  transform: translateX(-2px);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

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

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: var(--border-strong);
  transform: rotate(15deg);
}

/* Main Container */
main.main-content {
  position: relative;
  z-index: 10;
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* Hero Section */
.tool-hero {
  text-align: center;
  margin-bottom: 36px;
}

.tool-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 25px -5px var(--primary-glow);
}

.tool-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.tool-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 18px;
}

.feature-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.pill-item svg {
  color: var(--success);
}

/* Upload Dropzone */
.dropzone-container {
  margin-bottom: 32px;
}

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary-hover);
  background: rgba(79, 70, 229, 0.05);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.dropzone.dragover {
  border-style: solid;
  transform: scale(1.01);
}

.dropzone-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-hover);
  border: 1px solid var(--border-subtle);
}

.dropzone-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.dropzone-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.select-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.2s ease;
}

.select-file-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.file-input-hidden {
  display: none;
}

/* Compact Dropzone Mode when files are being converted/active */
.dropzone.compact {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  border-style: dashed;
  background: var(--bg-surface-glass);
}

.dropzone.compact .dropzone-content-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.dropzone.compact .dropzone-icon {
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 10px;
  flex-shrink: 0;
}

.dropzone.compact .dropzone-icon svg {
  width: 20px;
  height: 20px;
}

.dropzone.compact .dropzone-text-group {
  min-width: 0;
  flex: 1;
}

.dropzone.compact .dropzone-title {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropzone.compact .dropzone-desc {
  display: none;
}

.dropzone.compact .select-file-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .dropzone.compact {
    padding: 12px 14px;
    gap: 10px;
  }
  .dropzone.compact .dropzone-title {
    font-size: 0.875rem;
  }
  .dropzone.compact .select-file-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Status Indicator */
.engine-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin-bottom: 28px;
  font-size: 0.85rem;
}

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

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.status-dot.active {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.status-dot.loading {
  background: var(--warning);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Font Selection Card (Collapsible Details) */
details.font-selection-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-top: 18px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

details.font-selection-card:hover {
  border-color: var(--border-strong);
}

.font-selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 12px;
}

.font-selection-summary::-webkit-details-marker {
  display: none;
}

.font-selection-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  flex-wrap: wrap;
}

.font-selection-title svg {
  color: var(--primary);
  flex-shrink: 0;
}

.font-summary-badge {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-surface-elevated);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.font-summary-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.font-chevron {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-dim);
}

details.font-selection-card[open] .font-chevron {
  transform: rotate(180deg);
}

details.font-selection-card[open] .font-options-grid {
  margin-top: 16px;
}

.font-badge-tip {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.font-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.font-option-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.font-option-item:hover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.04);
  transform: translateY(-1px);
}

.font-option-item.active {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
  box-shadow: 0 0 0 1px var(--primary), 0 4px 12px rgba(79, 70, 229, 0.12);
}

.font-option-item input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--primary);
  cursor: pointer;
}

.font-option-body {
  flex: 1;
}

.font-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.font-option-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.font-pill-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.15);
  color: var(--primary);
  white-space: nowrap;
}

.font-pill-badge.secondary {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent);
}

.font-pill-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.font-option-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* File List & Progress Cards */
.conversion-section {
  display: none;
}

.conversion-section.active {
  display: block;
}

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

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.batch-actions {
  display: flex;
  gap: 10px;
}

.btn-secondary {
  padding: 6px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--border-subtle);
}

.file-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.file-card:hover {
  border-color: var(--border-strong);
}

.file-info-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.file-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-details {
  min-width: 0;
  flex: 1;
}

.file-name {
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.file-meta {
  font-size: 0.785rem;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
}

.file-state-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.state-tag {
  font-size: 0.775rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.state-pending {
  background: var(--bg-surface-elevated);
  color: var(--text-dim);
}

.state-converting {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.state-done {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.state-error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.btn-action {
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: none;
}

.btn-download {
  background: var(--success);
  color: #fff;
}

.btn-download:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-preview {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-preview:hover {
  background: var(--border-subtle);
}

.btn-pipe {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 6px 11px;
}

.btn-pipe svg {
  color: var(--primary);
}

.btn-pipe:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--text-main);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-remove {
  background: transparent;
  color: var(--text-dim);
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

/* Privacy Guarantee Card */
.privacy-card {
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.privacy-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-text h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.privacy-text p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Footer */
footer.app-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--bg-surface-glass);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--primary-hover);
}

/* Responsive */
@media (max-width: 640px) {
  .header-container {
    padding: 0 12px;
  }
  main.main-content {
    padding: 24px 14px 40px;
  }
  .tool-hero h1 {
    font-size: 1.6rem;
  }
  .file-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .file-state-group {
    width: 100%;
    justify-content: space-between;
  }
}

/* FAQ Section */
.faq-section {
  margin-top: 48px;
}

.faq-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

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

.faq-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
}

.faq-q {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-q-icon {
  color: var(--primary-hover);
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(99, 102, 241, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.faq-a {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Status divider & Font Badge */
.status-divider {
  color: var(--border-subtle);
  margin: 0 4px;
}

.font-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
}

/* Typography Tip Card */
.tip-card {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
}

.tip-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.tip-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.tip-content p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.tip-kbd {
  display: inline-block;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--primary-hover);
  margin: 2px 0;
}

/* Card Entry Animation & Pulse */
@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.file-card {
  animation: cardSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes successGlowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
    border-color: rgba(16, 185, 129, 0.9);
  }
  40% {
    box-shadow: 0 0 24px 6px rgba(16, 185, 129, 0.35);
    border-color: var(--success);
  }
  100% {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-subtle);
  }
}

.file-card.pulse-success {
  animation: successGlowPulse 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating Bottom Action Toast */
.floating-toast-container {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  width: 480px;
}

.floating-toast {
  pointer-events: auto;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: toastSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.floating-toast-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.floating-toast-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-toast-title {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.floating-toast-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.floating-toast-btn {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.floating-toast-btn.btn-dl {
  background: var(--success);
  color: #fff;
}

.floating-toast-btn.btn-dl:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.floating-toast-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.floating-toast-close:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}
