:root {
  /* Color Palette - Modern & Vibrant */
  --primary-hue: 250;
  /* Deep Purple/Blue */
  --secondary-hue: 330;
  /* Pink/Red */
  --accent-hue: 190;
  /* Cyan */

  --color-primary: hsl(var(--primary-hue), 80%, 65%);
  --color-primary-dark: hsl(var(--primary-hue), 80%, 55%);
  --color-secondary: hsl(var(--secondary-hue), 85%, 60%);
  --color-accent: hsl(var(--accent-hue), 90%, 60%);

  --bg-body: #0a0a0e;
  --bg-surface: rgba(30, 30, 40, 0.7);
  --bg-surface-light: rgba(255, 255, 255, 0.1);
  --bg-glass: rgba(20, 20, 30, 0.6);

  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-disabled: rgba(255, 255, 255, 0.4);

  --border-light: rgba(255, 255, 255, 0.1);
  --border-active: var(--color-primary);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  /* Layout */
  --nav-height: 64px;
  --header-height: 60px;
  --max-width: 600px;
  /* Mobile focused max width */

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(100, 100, 255, 0.15);

  /* ── 新增漸層系統 ── */
  --grad-primary:   linear-gradient(135deg, #7c3aed, #6446ff, #4f86ff);
  --grad-secondary: linear-gradient(135deg, #f43f5e, #ec4899, #a855f7);
  --grad-accent:    linear-gradient(135deg, #06b6d4, #3b82f6, #6446ff);
  --grad-warm:      linear-gradient(135deg, #f59e0b, #ef4444, #ec4899);
  --grad-success:   linear-gradient(135deg, #10b981, #06b6d4);
  --grad-text:      linear-gradient(135deg, #fff 0%, #c4b5fd 50%, #7c3aed 100%);
  --glow-primary:   rgba(100, 70, 255, 0.35);
  --glow-warm:      rgba(245, 158, 11, 0.30);
  --shadow-glow-primary: 0 0 24px var(--glow-primary), 0 4px 16px rgba(0,0,0,0.3);

  /* 追蹤光斑位置 */
  --mx: 50%;
  --my: 50%;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(244, 63, 94, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 60% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 20% 85%, rgba(245, 158, 11, 0.07) 0%, transparent 30%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: calc(var(--nav-height) + var(--space-lg));
  /* Safe area for bottom nav */
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle 400px at var(--mx) var(--my), rgba(100, 70, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.1s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-sm);
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-md);
  line-height: 1.5;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Layout Utilities */
.app-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md);
  position: relative;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

/* Glassmorphism Components */
.glass-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-top-color: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
}

.glass-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: none;
  cursor: pointer;
  gap: var(--space-sm);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--grad-primary);
  background-size: 200% auto;
  color: white;
  box-shadow: 0 4px 12px rgba(100, 70, 255, 0.35);
  animation: btn-shimmer 3s linear infinite;
}

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

.btn-danger {
  background: var(--grad-secondary);
  background-size: 200% auto;
  color: white;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
}

.btn-success {
  background: var(--grad-success);
  background-size: 200% auto;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* 雙入口上傳按鈕 */
.upload-btn-camera {
  background: var(--grad-warm);
  background-size: 200% auto;
  color: white;
  box-shadow: 0 4px 12px var(--glow-warm);
}

.upload-btn-gallery {
  background: var(--grad-primary);
  background-size: 200% auto;
  color: white;
  box-shadow: 0 4px 12px var(--glow-primary);
}

.btn-block {
  width: 100%;
}

/* Form Elements (Mobile Friendly) */
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(0, 0, 0, 0.3);
}

/* Range Slider */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  margin-top: -11px;
  box-shadow: 0 2px 8px rgba(100, 70, 255, 0.4);
  transition: box-shadow 0.2s;
}

input[type=range]::-webkit-slider-thumb:active {
  box-shadow: 0 0 0 6px rgba(100, 70, 255, 0.2);
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: var(--bg-surface-light);
  border-radius: 3px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  /* Fallback */
  height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: 0;
  /* Fallback */
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  gap: 4px;
  width: 100%;
  height: 100%;
  transition: color 0.2s;
}

.nav-item.active {
  color: var(--color-primary);
  position: relative;
}

.nav-item.active i {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px var(--glow-primary));
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--grad-primary);
}

.nav-item i {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px var(--glow-primary); }
  50%       { box-shadow: 0 0 20px var(--glow-primary), 0 0 40px rgba(100,70,255,0.2); }
}

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

@keyframes upload-ring-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%       { transform: scale(1.1); opacity: 1;   }
}

@keyframes loading-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes tool-active-glow {
  0%, 100% { box-shadow: 0 0 8px var(--glow-primary); }
  50%       { box-shadow: 0 0 18px var(--glow-primary), 0 0 32px rgba(100,70,255,0.3); }
}


/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.08);
  border-left-color: #7c3aed;
  border-top-color: #4f86ff;
  border-bottom-color: #06b6d4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--space-md);
}

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

/* 橫向進度條（頁面級處理用）*/
.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.loading-bar::after {
  content: '';
  display: block;
  width: 50%;
  height: 100%;
  background: var(--grad-primary);
  border-radius: 2px;
  animation: loading-slide 1.2s ease-in-out infinite;
}

/* Alert Notification */
.alert {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  z-index: 2001;
  transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  /* 漸層邊框效果 */
  position: fixed;
}

.alert::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}

.alert.active {
  top: 20px;
}

.alert-success {
  border-color: rgba(100, 255, 100, 0.3);
  color: #4ade80;
}

.alert-error {
  border-color: rgba(255, 100, 100, 0.3);
  color: #f87171;
}

/* ------------------------------------------------------------------ */
/* Shared Modal & Edit Tools (Moved from remove_bg.html)              */
/* ------------------------------------------------------------------ */

/* Touch Magnifier / Loupe */
.touch-magnifier {
  position: fixed;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  pointer-events: none;
  z-index: 2100;
  /* Higher than modal */
  display: none;
  background: repeating-conic-gradient(#404040 0% 25%, #303030 0% 50%) 50% / 10px 10px;
}

.touch-magnifier.active {
  display: block;
}

.touch-magnifier-content {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.touch-magnifier-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.touch-magnifier-crosshair::before,
.touch-magnifier-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
}

.touch-magnifier-crosshair::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.touch-magnifier-crosshair::after {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

/* Edit Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: rgba(15, 15, 20, 0.95);
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  margin: 0;
  font-size: 1rem;
}

.modal-canvas-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: repeating-conic-gradient(#303030 0% 25%, #202020 0% 50%) 50% / 20px 20px;
}

.modal-canvas-area canvas {
  max-width: 100%;
  max-height: 100%;
  transform-origin: 0 0;
}

.modal-toolbar {
  padding: var(--space-md);
  background: rgba(15, 15, 20, 0.95);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
}

.modal-toolbar-row {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.modal-toolbar .mode-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.modal-toolbar .mode-btn:disabled {
  opacity: 0.4;
}

.modal-toolbar .mode-btn.active {
  background: var(--color-primary);
  color: white;
}

.modal-toolbar .slider-group {
  flex: 1;
}

.modal-toolbar .slider-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

/* Header Buttons */
.icon-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.2rem;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.icon-btn:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.1);
}

.text-btn {
  background: none;
  border: none;
  font-size: 1rem;
  padding: 8px 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.text-btn:hover {
  opacity: 0.8;
}

/* Vertical Toolbar Buttons (iPhone style) */
.modal-toolbar .mode-btn {
  flex: 1;
  padding: 8px 4px;
  /* Reduced horizontal padding */
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  /* Remove default background to look cleaner */
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  /* Smaller text */
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  /* Vertical layout */
  align-items: center;
  gap: 4px;
  /* Gap between icon and text */
}

.modal-toolbar .mode-btn i {
  font-size: 1.25rem;
  /* Larger icon */
  margin-bottom: 2px;
  background: rgba(255, 255, 255, 0.1);
  /* Circle background for icon */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-toolbar .mode-btn:hover i {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.modal-toolbar .mode-btn.active {
  background: transparent;
  /* Keep button background transparent */
  color: var(--color-primary);
  /* Active text color */
}

.modal-toolbar .mode-btn.active i {
  background: var(--grad-primary);
  color: white;
  animation: tool-active-glow 2s ease-in-out infinite;
}

/* 觸控目標放大 */
.modal-toolbar .mode-btn i {
  font-size: 1.25rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}

.icon-btn {
  min-width: 44px;
  min-height: 44px;
}

/* ── 上傳區樣式 ── */
.upload-zone {
  position: relative;
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  border: 2px dashed var(--border-light);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  cursor: pointer;
}

.upload-zone.drag-over {
  border-color: var(--color-primary);
  background: rgba(100, 70, 255, 0.06);
  transform: scale(1.01);
}

.upload-zone.has-file {
  border-color: #10b981;
  border-style: solid;
}

.upload-zone.error {
  border-color: #f43f5e;
}

.upload-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.upload-icon-ring {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(100, 70, 255, 0.4);
  animation: upload-ring-pulse 2s ease-in-out infinite;
}

.upload-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* 桌機拖放提示只在桌機顯示 */
.upload-drag-hint {
  display: none;
}
@media (hover: hover) {
  .upload-drag-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-disabled);
    margin-top: var(--space-sm);
  }
}

/* ── 即時縮圖預覽 ── */
.upload-preview {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  animation: fadeInUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.upload-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  background: repeating-conic-gradient(#303030 0% 25%, #202020 0% 50%) 50% / 16px 16px;
  display: block;
}

.upload-preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-light);
}

.upload-preview-actions button {
  background: var(--bg-surface);
  border: none;
  padding: 10px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.upload-preview-actions button:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-main);
}

/* ── Toggle Switch 統一 ── */
.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.15);
  transition: 0.3s;
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background: var(--grad-primary);
  box-shadow: 0 0 8px var(--glow-primary);
}

input:checked + .slider:before {
  transform: translateX(14px);
}

/* ── resultActions 動畫切換 ── */
#resultActions {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#resultActions.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Split Card 進場動畫 ── */
.split-card {
  animation: fadeInUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

/* ── Tool Panel 彈性進場 + 拖曳把手 ── */
.tool-panel {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              visibility 0.3s,
              opacity 0.3s;
}

.tool-panel::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: var(--space-sm) auto 0;
}

/* ── FAB 懸浮按鈕 ── */
.fab {
  position: fixed;
  right: var(--space-lg);
  bottom: calc(var(--nav-height) + var(--space-lg));
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-primary);
  z-index: 90;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--glow-primary);
}

.fab:active {
  transform: scale(0.92);
}

/* ── 首頁漸層文字 ── */
.hero-title-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── 功能卡片左側 Accent 條 ── */
.feature-card-accent {
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 2px;
}

/* ── watermark batch-item 統一 Glass 風格 ── */
.batch-item-glass {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-top-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.batch-item-status-done {
  color: #10b981;
}

.batch-item-status-error {
  color: #f43f5e;
}