/* ================================================================
   SMART COLOR PALETTE GENERATOR — style.css  (v1.2)
================================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES — Light (default)
============================================================ */
:root {
  --bg:        #F5F3EF;
  --surface:   #FDFCF9;
  --surface-alt: #F0EDE8;
  --border:    #E4E0D8;
  --text-main: #1C1917;
  --text-sub:  #6B6560;
  --accent:    #C17A4A;
  --accent-lt: #F0E2D3;
  --accent2:   #D4A96A;
  --green:     #7BC67E;
  --red:       #E05454;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07), 0 2px 10px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.09), 0 1px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --transition:   200ms cubic-bezier(.4,0,.2,1);
  --transition-slow: 420ms cubic-bezier(.4,0,.2,1);
  --chip-bg-hex: transparent; /* used for copy overlay */
}

/* ============================================================
   DARK MODE
============================================================ */
[data-theme="dark"] {
  --bg:        #1A1A1E;
  --surface:   #24242A;
  --surface-alt: #2E2E35;
  --border:    #3A3A42;
  --text-main: #E8E6E1;
  --text-sub:  #9A978F;
  --accent:    #D4924A;
  --accent-lt: #3A2E20;
  --accent2:   #B8923E;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.25), 0 2px 10px rgba(0,0,0,.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.2);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.45);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  transition: background var(--transition-slow), color var(--transition-slow);
}

/* ============================================================
   LAYOUT SHELL
============================================================ */
.shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
  text-align: center;
  margin-bottom: 52px;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.site-header .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-lt);
  border-radius: 100px;
  padding: 4px 14px;
}
.site-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text-main);
  transition: color var(--transition-slow);
}
.site-header p {
  margin-top: 10px;
  color: var(--text-sub);
  font-weight: 300;
  font-size: 15px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  transition: color var(--transition-slow);
}

/* Dark mode toggle */
.dark-toggle {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  box-shadow: var(--shadow-sm);
}
.dark-toggle:hover {
  border-color: var(--accent);
  transform: scale(1.08);
}

/* ============================================================
   SECTION CARDS
============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.card-icon {
  width: 38px; height: 38px;
  background: var(--accent-lt);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: background var(--transition-slow);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.card-subtitle {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 300;
  transition: color var(--transition-slow);
}
.card-actions {
  margin-left: auto;
}
.btn-icon {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px; height: 34px;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition), opacity var(--transition);
}
.btn-icon:hover:not(:disabled) { border-color: var(--accent); }
.btn-icon:disabled { opacity: .35; cursor: default; }

/* ============================================================
   THEME PILLS
============================================================ */
.theme-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--bg);
  color: var(--text-sub);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition),
              color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
  user-select: none;
}
.pill:hover {
  border-color: var(--accent);
  color: var(--text-main);
  transform: translateY(-1px);
}
.pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(193,122,74,.28);
  font-weight: 500;
}

/* ============================================================
   FORMAT BAR — Copy format selector
============================================================ */
.format-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.format-label {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 400;
  letter-spacing: .03em;
  white-space: nowrap;
}
.format-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.fmt-pill {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-sub);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition),
              color var(--transition);
  text-transform: uppercase;
  letter-spacing: .04em;
  user-select: none;
}
.fmt-pill:hover {
  border-color: var(--accent);
  color: var(--text-main);
}
.fmt-pill.active {
  background: var(--accent-lt);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
/* ============================================================
   EVE ONLINE THEME SECTION
   ============================================================ */
.eve-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.eve-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.eve-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4466AA, #6688CC);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.eve-step-content {
  flex: 1;
  min-width: 0;
}
.eve-step-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 10px;
}
.eve-source-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.eve-src-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.eve-src-btn:hover:not(:disabled) {
  border-color: #5588CC;
  background: #2A3A55;
  color: #88BBFF;
}
.eve-src-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.eve-pickers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.eve-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.eve-pick label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-sub);
}
.eve-pick input[type="color"] {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  padding: 2px;
  background: var(--surface);
  -webkit-appearance: none;
  appearance: none;
}
.eve-pick input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.eve-pick input[type="color"]::-webkit-color-swatch { border-radius: 8px; border: none; }
.eve-pick input[type="color"]::-moz-color-swatch { border-radius: 8px; border: none; }
.eve-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.eve-chips {
  display: flex;
  gap: 6px;
}
.eve-chip {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  min-width: 0;
  transition: background 0.3s;
}
.eve-string-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.eve-string {
  flex: 1;
  padding: 10px 14px;
  background: var(--surface-alt, #f0f0f0);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: var(--text-main);
  overflow-x: auto;
  white-space: nowrap;
  word-break: keep-all;
  display: flex;
  align-items: center;
}
.eve-copy-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1.5px solid #4466AA;
  background: linear-gradient(135deg, #334466, #445577);
  color: #AADDFF;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.eve-copy-btn:hover {
  background: linear-gradient(135deg, #445577, #556688);
  border-color: #6699CC;
  color: #CCEEFF;
}
.eve-hint {
  font-size: 12px;
  color: var(--text-sub);
  padding: 8px 12px;
  background: rgba(68, 102, 170, 0.08);
  border: 1px solid rgba(68, 102, 170, 0.15);
  border-radius: 8px;
  line-height: 1.5;
}

/* ============================================================
   HARMONY MODE PILLS
============================================================ */
.harmony-modes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hm-pill {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-sub);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  user-select: none;
}
.hm-pill:hover {
  border-color: var(--accent);
  color: var(--text-main);
}
.hm-pill.active {
  background: var(--accent-lt);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   PALETTE OUTPUT — color chips
============================================================ */
.palette-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.palette-row.hidden { display: none; }

.color-chip {
  position: relative;
  flex: 1 1 80px;
  min-width: 70px;
  height: 96px;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition-slow);
  outline: none;
}
.color-chip:hover  { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.color-chip:active { transform: translateY(-1px); }
.color-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.color-chip.locked {
  border: 2px solid var(--accent);
}

/* Lock button */
.chip-lock {
  position: absolute;
  top: 5px; right: 5px;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,.65);
  border: none;
  font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  line-height: 1;
}
.color-chip:hover .chip-lock { opacity: 1; }
.color-chip.locked .chip-lock { opacity: 1; background: rgba(255,255,255,.85); }

.chip-hex {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.82);
  color: #1C1917;
  font-size: 10.5px;
  font-weight: 500;
  text-align: center;
  padding: 5px 4px;
  letter-spacing: .04em;
  transition: opacity var(--transition);
  border-top: 1px solid rgba(0,0,0,.06);
}
[data-theme="dark"] .chip-hex {
  background: rgba(30,30,30,.82);
  color: #E8E6E1;
  border-top-color: rgba(255,255,255,.08);
}

.chip-copied {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
  transition: opacity 180ms ease;
}
.chip-copied.show { opacity: 1; }

/* ============================================================
   DISTANCE WARNING
============================================================ */
.distance-warn {
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #FFF3E0;
  border: 1px solid #FFB74D;
  color: #E65100;
  font-size: 12px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity var(--transition);
}
.distance-warn.hidden { display: none; }
[data-theme="dark"] .distance-warn {
  background: #3A2A10;
  border-color: #7A5520;
  color: #FFB74D;
}
.distance-warn button {
  background: none;
  border: none;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: 12px;
}

/* ============================================================
   SECTION 1 — IMAGE UPLOAD & DROP ZONE
============================================================ */
.drop-zone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--bg);
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.drop-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-lt);
}
.drop-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0;
  cursor: pointer; width: 100%; height: 100%;
}
.drop-zone .dz-icon  { font-size: 32px; margin-bottom: 10px; }
.drop-zone .dz-label { font-size: 14px; color: var(--text-sub); }
.drop-zone .dz-label strong { color: var(--accent); font-weight: 500; cursor: pointer; }
.drop-zone .dz-hint  { font-size: 12px; color: var(--text-sub); opacity: .7; margin-top: 6px; }

#img-preview-wrap {
  display: none;
  margin-top: 20px;
  position: relative;
}
#img-preview-wrap img {
  width: 100%; max-height: 240px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.btn-clear-img {
  position: absolute; top: 8px; right: 8px;
  background: rgba(28,25,23,.65);
  color: #fff;
  border: none; border-radius: 50%;
  width: 28px; height: 28px;
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background var(--transition);
}
.btn-clear-img:hover { background: #1C1917; }

/* Bridge button */
.btn-bridge {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px 18px;
  background: var(--bg);
  border: 1.5px dashed var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-bridge:hover {
  background: var(--accent-lt);
}

/* ============================================================
   SECTION 2 — TRI-COLOR HARMONY
============================================================ */
.pickers-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.picker-group {
  display: flex; flex-direction: column; gap: 6px; flex: 1 1 80px;
}
.picker-group label {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.picker-group input[type="color"] {
  width: 100%; height: 54px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--transition);
}
.picker-group input[type="color"]:hover { border-color: var(--accent); }

.btn-generate {
  padding: 0 26px;
  height: 54px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: .02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(193,122,74,.28);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-generate:hover {
  background: #A8632E;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(193,122,74,.36);
}
.btn-generate:active { transform: translateY(0); }

.btn-reset-harmony {
  padding: 0 18px;
  height: 54px;
  background: transparent;
  color: var(--text-sub);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-reset-harmony:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lt);
}
.btn-reset-harmony.hidden { display: none; }

/* ============================================================
   SECTION 3 — SURPRISE ME
============================================================ */
.surprise-body {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.surprise-text { flex: 1 1 220px; }
.surprise-text p { font-size: 14px; color: var(--text-sub); font-weight: 300; }

.season-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-lt);
  color: var(--accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  margin-bottom: 8px;
  letter-spacing: .03em;
}

.btn-surprise {
  padding: 14px 30px;
  background: var(--text-main);
  color: var(--surface);
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: .02em;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.btn-surprise:hover  { background: #3D3835; transform: translateY(-1px); }
.btn-surprise:active { transform: translateY(0); }

/* ============================================================
   PLACEHOLDER / SHIMMER
============================================================ */
.palette-placeholder {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.chip-placeholder {
  flex: 1 1 70px; height: 96px;
  border-radius: 12px;
  background: var(--border);
  animation: placeholderPulse 1.6s infinite ease-in-out;
}
.chip-placeholder:nth-child(2) { animation-delay: .1s; }
.chip-placeholder:nth-child(3) { animation-delay: .2s; }
.chip-placeholder:nth-child(4) { animation-delay: .3s; }
.chip-placeholder:nth-child(5) { animation-delay: .4s; }

@keyframes placeholderPulse {
  0%, 100% { opacity: .5; }
  50%       { opacity: 1; }
}

/* ============================================================
   EXPORT MODAL
============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 24px;
  backdrop-filter: blur(4px);
  transition: opacity 200ms ease;
}
.modal-overlay.hidden { display: none; }

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.modal-close {
  background: none; border: none;
  font-size: 18px; cursor: pointer;
  color: var(--text-sub);
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--bg); }

.modal-body {
  padding: 20px 24px 24px;
}
.export-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.export-chip-preview {
  flex: 1;
  height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.06);
}
.export-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.export-tab {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-sub);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.export-tab:hover { border-color: var(--accent); color: var(--text-main); }
.export-tab.active {
  background: var(--accent-lt);
  border-color: var(--accent);
  color: var(--accent);
}
.export-code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-main);
  overflow-x: auto;
  white-space: pre;
  max-height: 260px;
  margin-bottom: 14px;
}
.export-actions {
  display: flex;
  gap: 10px;
}
.btn-copy-export, .btn-download-export {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-copy-export {
  background: var(--accent);
  color: #fff;
}
.btn-copy-export:hover { background: #A8632E; }
.btn-download-export {
  background: var(--text-main);
  color: var(--surface);
}
.btn-download-export:hover { background: #3D3835; }

/* ============================================================
   COPYRIGHT FOOTER
============================================================ */
.footer {
  margin-top: 60px;
  text-align: center;
}
.footer-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.footer-crown {
  font-size: 14px;
  display: inline-block;
  animation: crownBob 2.4s ease-in-out infinite;
}
.footer-crown:last-child { animation-direction: reverse; }
@keyframes crownBob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-2px) rotate(5deg); }
}
.footer-text {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 50%, var(--green) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ============================================================
   RESPONSIVE — Mobile
============================================================ */
@media (max-width: 520px) {
  .shell { padding: 32px 16px 60px; }
  .card  { padding: 22px 18px; }
  .theme-pills { gap: 8px; }
  .pill { padding: 8px 14px; font-size: 12px; }
  .format-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .harmony-modes { gap: 6px; }
  .hm-pill { padding: 5px 10px; font-size: 11px; }
  .pickers-row { gap: 10px; }
  .btn-generate { width: 100%; flex-shrink: unset; }
  .btn-reset-harmony { width: 100%; height: 44px; }
  .surprise-body { flex-direction: column; align-items: flex-start; }
  .btn-surprise  { width: 100%; text-align: center; }
  .palette-row   { gap: 7px; }
  .color-chip    { height: 82px; }
  .footer-inner  { padding: 7px 16px; }
  .export-tabs { gap: 4px; }
  .export-tab { padding: 5px 10px; font-size: 11px; }
  /* EVE section mobile */
  .eve-step { gap: 10px; }
  .eve-step-num { width: 28px; height: 28px; font-size: 12px; }
  .eve-source-btns { gap: 6px; }
  .eve-src-btn { padding: 6px 10px; font-size: 11px; }
  .eve-pickers { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .eve-pick input[type="color"] { width: 56px; height: 56px; }
  .eve-chips { gap: 4px; }
  .eve-chip { height: 32px; }
  .eve-string { font-size: 11px; padding: 8px 10px; }
  .eve-copy-btn { padding: 8px 12px; font-size: 11px; }
}
