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

:root {
  --rose:             #ff85b3;
  --rose-mid:         #ffb3cc;
  --rose-light:       #ffd6e7;
  --rose-pale:        #fff0f6;
  --lavender:         #b87fff;
  --lavender-mid:     #d4b0ff;
  --lavender-light:   #e8dcff;
  --lavender-pale:    #f7f3ff;

  --bg:               #fff5fb;
  --text:             #4e2560;
  --text-soft:        #7a4a8c;
  --text-muted:       #b094c4;
  --border:           rgba(255, 185, 215, 0.55);

  --glass:            rgba(255, 255, 255, 0.72);
  --glass-border:     rgba(255, 255, 255, 0.88);
  --glass-shadow:     rgba(195, 110, 175, 0.14);

  --radius:           22px;
  --radius-sm:        14px;
  --radius-pill:      100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background:
    radial-gradient(ellipse 70% 60% at 10%  8%,  rgba(255, 200, 225, 0.70) 0%, transparent 60%),
    radial-gradient(ellipse 60% 55% at 90%  5%,  rgba(210, 175, 255, 0.60) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 75% 90%,  rgba(170, 220, 255, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at  5% 90%,  rgba(255, 215, 170, 0.50) 0%, transparent 50%),
    radial-gradient(ellipse 45% 40% at 50% 50%,  rgba(255, 190, 220, 0.28) 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.25rem 5rem;
  position: relative;
  overflow-x: hidden;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar              { width: 8px; }
::-webkit-scrollbar-track        { background: rgba(255, 200, 225, 0.2); }
::-webkit-scrollbar-thumb        {
  background: linear-gradient(to bottom, #ffb3cc, #d4b0ff);
  border-radius: var(--radius-pill);
}

/* ===== Bokeh Blobs ===== */
.blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: blobDrift 22s ease-in-out infinite alternate;
}

.blob-rose     { width: 700px; height: 700px; top: -220px; left: -200px;
                 background: radial-gradient(circle, #ffb3cc 0%, #ffd6e7 55%, transparent 100%);
                 animation-duration: 22s; }
.blob-lavender { width: 580px; height: 580px; top: 18%; right: -180px;
                 background: radial-gradient(circle, #d4b0ff 0%, #e8dcff 55%, transparent 100%);
                 animation-duration: 18s; animation-delay: -7s; }
.blob-sky      { width: 500px; height: 500px; bottom: 0; left: 10%;
                 background: radial-gradient(circle, #b3d9ff 0%, #daeeff 55%, transparent 100%);
                 animation-duration: 26s; animation-delay: -12s; }
.blob-peach    { width: 440px; height: 440px; top: 55%; right: 15%;
                 background: radial-gradient(circle, #ffd6b3 0%, #ffeacc 55%, transparent 100%);
                 animation-duration: 20s; animation-delay: -4s; }

@keyframes blobDrift {
  0%   { transform: translate(  0px,   0px) scale(1.00); }
  33%  { transform: translate( 28px, -18px) scale(1.05); }
  66%  { transform: translate(-18px,  26px) scale(0.97); }
  100% { transform: translate( 12px,  -8px) scale(1.03); }
}

/* ===== Floating Emoji Decorations ===== */
.bg-decoration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.bg-decoration span {
  position: absolute;
  font-size: 1.4rem;
  opacity: 0.18;
  animation: floatie 20s infinite linear;
}

.bg-decoration span:nth-child(1)  { left:  5%; animation-duration: 22s; animation-delay:   0s; font-size: 1.7rem; }
.bg-decoration span:nth-child(2)  { left: 15%; animation-duration: 18s; animation-delay:  -4s; }
.bg-decoration span:nth-child(3)  { left: 28%; animation-duration: 25s; animation-delay:  -8s; font-size: 1.2rem; }
.bg-decoration span:nth-child(4)  { left: 42%; animation-duration: 20s; animation-delay:  -2s; }
.bg-decoration span:nth-child(5)  { left: 55%; animation-duration: 16s; animation-delay:  -6s; font-size: 1rem; }
.bg-decoration span:nth-child(6)  { left: 65%; animation-duration: 23s; animation-delay:  -1s; font-size: 1.9rem; }
.bg-decoration span:nth-child(7)  { left: 75%; animation-duration: 19s; animation-delay:  -9s; }
.bg-decoration span:nth-child(8)  { left: 85%; animation-duration: 21s; animation-delay:  -3s; font-size: 1.1rem; }
.bg-decoration span:nth-child(9)  { left: 92%; animation-duration: 17s; animation-delay:  -5s; font-size: 1.4rem; }
.bg-decoration span:nth-child(10) { left: 48%; animation-duration: 24s; animation-delay:  -7s; font-size: 1.6rem; }

@keyframes floatie {
  from { transform: translateY(110vh) rotate(  0deg); opacity: 0; }
  10%  { opacity: 0.18; }
  90%  { opacity: 0.18; }
  to   { transform: translateY(-10vh)  rotate(360deg); opacity: 0; }
}

/* ===== Header ===== */
header {
  text-align: center;
  padding: 3.5rem 1rem 1.5rem;
  position: relative;
  z-index: 2;
  animation: headerEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes headerEntrance {
  from { opacity: 0; transform: translateY(-28px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0)      scale(1);    }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.logo-icon {
  font-size: 2.8rem;
  display: inline-block;
  animation: bowBounce 3.2s ease-in-out infinite;
}

@keyframes bowBounce {
  0%, 100% { transform: rotate(-10deg) scale(1.00); }
  50%       { transform: rotate( 10deg) scale(1.12); }
}

.logo-text {
  font-family: 'Pacifico', cursive;
  font-size: 3.2rem;
  background: linear-gradient(135deg, #ff6fa5 0%, #c77dff 50%, #ff9d6c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 10px rgba(255, 100, 160, 0.28));
}

.tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== Main Layout ===== */
main {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 2;
}

/* ===== Top Row: side-by-side ===== */
.top-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.input-card {
  flex: 1;
  min-width: 0;
}

.preview-card {
  width: 340px;
  flex-shrink: 0;
}

/* ===== Cards — Glassmorphism ===== */
.card {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--radius);
  padding: 1.85rem 1.75rem;
  border: 1.5px solid var(--glass-border);
  box-shadow:
    0 8px 32px var(--glass-shadow),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  animation: cardEntrance 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@supports not (backdrop-filter: blur(1px)) {
  .card { background: rgba(255, 255, 255, 0.96); }
}

.input-card   { animation-delay: 0.05s; }
.preview-card { animation-delay: 0.12s; }
.presets-card { animation-delay: 0.18s; }
.feedback-card { animation-delay: 0.24s; }

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

/* ===== URL Input ===== */
.field-label {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.input-row {
  display: flex;
}

.url-input {
  flex: 1;
  width: 100%;
  padding: 0.85rem 1.4rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 245, 250, 0.85);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

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

.url-input:focus {
  border-color: var(--rose);
  box-shadow:
    0 0 0 4px rgba(255, 133, 179, 0.18),
    0 2px 8px rgba(255, 133, 179, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.auto-hint {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== Buttons ===== */
.btn {
  padding: 0.82rem 1.6rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s ease,
    filter 0.18s ease;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn:active { transform: scale(0.93) !important; transition-duration: 0.1s !important; }

.btn-primary {
  background: linear-gradient(135deg, #ff7eb3 0%, #c97fff 100%);
  color: white;
  box-shadow:
    0 4px 18px rgba(255, 100, 160, 0.42),
    0 1px 4px rgba(0, 0, 0, 0.08);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  filter: brightness(1.08) saturate(1.1);
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 8px 28px rgba(255, 100, 160, 0.52),
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-sparkle {
  display: inline-block;
  animation: sparklePop 2.2s ease-in-out infinite;
}

@keyframes sparklePop {
  0%, 100% { transform: rotate( 0deg) scale(1.0); }
  25%       { transform: rotate(12deg) scale(1.25); }
  75%       { transform: rotate(-8deg) scale(0.88); }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--lavender);
  border: 2px solid var(--lavender-light);
  box-shadow: 0 2px 10px rgba(180, 130, 255, 0.16);
}

.btn-secondary:hover {
  background: var(--lavender-pale);
  border-color: var(--lavender-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(180, 130, 255, 0.26);
}

/* ===== Error Message ===== */
.error-msg {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #e0507a;
  min-height: 1.2rem;
  padding-left: 0.2rem;
}

/* ===== Section Title ===== */
.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, #ff6fa5, #c77dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

/* ===== Presets Grid ===== */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.preset-card {
  border: 2px solid rgba(220, 190, 238, 0.65);
  border-radius: 16px;
  padding: 1rem 0.4rem;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.2s,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s ease,
    background 0.2s;
  background: rgba(255, 255, 255, 0.62);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.preset-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.preset-card:hover {
  border-color: var(--rose-mid);
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 8px 22px rgba(200, 100, 165, 0.22);
  background: rgba(255, 245, 252, 0.85);
}

.preset-card.active {
  background:
    linear-gradient(rgba(255, 247, 252, 0.92), rgba(255, 247, 252, 0.92)) padding-box,
    linear-gradient(135deg, #ff85b3, #c77dff) border-box;
  border: 2.5px solid transparent;
  transform: scale(1.04);
  box-shadow:
    0 6px 20px rgba(200, 100, 165, 0.22),
    0 0 0 4px rgba(255, 133, 179, 0.10);
}

.preset-card.active .preset-name {
  background: linear-gradient(135deg, #ff6fa5, #c77dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.preset-swatch {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin: 0 auto 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.preset-card:hover .preset-swatch {
  transform: scale(1.15) rotate(6deg);
}

.preset-name {
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

/* ===== Preview ===== */
.preview-area {
  display: flex;
  justify-content: center;
  margin-bottom: 1.1rem;
  padding: 0.75rem 0.5rem 0.25rem;
  min-height: 280px;
  align-items: center;
}

/* ===== QR Placeholder ===== */
.qr-placeholder {
  width: 230px;
  height: 230px;
  border: 2.5px dashed rgba(255, 179, 204, 0.6);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
}

.placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.5;
  animation: placeholderPulse 2.2s ease-in-out infinite;
}

@keyframes placeholderPulse {
  0%, 100% { transform: scale(1.0); opacity: 0.5; }
  50%       { transform: scale(1.12); opacity: 0.75; }
}

.qr-frame-wrapper {
  display: inline-block;
  border-radius: 20px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 0;
  animation: qrReveal 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes qrReveal {
  from { opacity: 0; transform: scale(0.82) rotate(-4deg); }
  to   { opacity: 1; transform: scale(1)    rotate( 0deg); }
}

/* ===== Frame Styles ===== */

/* Frame: Bubbly */
.frame-bubbly {
  background: linear-gradient(135deg, #ffd6e7, #ffecd2);
  padding: 24px;
  border-radius: 32px;
  box-shadow: 0 12px 40px rgba(255, 107, 157, 0.28), 0 4px 12px rgba(0,0,0,0.06);
  position: relative;
}
.frame-bubbly::before,
.frame-bubbly::after { content: '🫧'; position: absolute; font-size: 1.4rem; opacity: 0.78; }
.frame-bubbly::before { top: 6px; left: 8px; }
.frame-bubbly::after  { bottom: 6px; right: 8px; transform: scaleX(-1); }

/* Frame: Retro */
.frame-retro {
  background: #fffef9;
  padding: 18px 18px 56px;
  border-radius: 4px;
  box-shadow: 6px 6px 22px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
}
.frame-retro::after {
  content: 'CuteQR';
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  text-align: center;
  font-family: 'Pacifico', cursive;
  font-size: 0.95rem;
  color: #8B5E3C;
}

/* Frame: Kawaii */
.frame-kawaii {
  background: linear-gradient(135deg, #f5f0ff, #fce4ff);
  padding: 26px;
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.22);
  position: relative;
}
.frame-kawaii::before { content: '⭐💜⭐'; position: absolute; top: 6px; left:0; right:0; text-align:center; font-size:0.85rem; opacity:0.88; }
.frame-kawaii::after  { content: '✨💕✨'; position: absolute; bottom: 6px; left:0; right:0; text-align:center; font-size:0.85rem; opacity:0.88; }

/* Frame: Minimal Cute */
.frame-minimal {
  background: #fff;
  padding: 20px;
  border-radius: 22px;
  border: 3px solid var(--rose-mid);
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.16);
  position: relative;
}
.frame-minimal::before {
  content: '💗';
  position: absolute;
  top: -15px; left: 50%; transform: translateX(-50%);
  font-size: 1.4rem;
}

/* Frame: Stamp */
.frame-stamp {
  background: #f0fdf4;
  padding: 20px;
  outline: 4px dashed #86efac;
  outline-offset: -4px;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.15);
  position: relative;
}
.frame-stamp::before {
  content: '📮 SCAN ME';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #059669;
  padding: 4px;
}

/* Frame: Neon Pop */
.frame-neon {
  background: #1e1b4b;
  padding: 22px;
  border-radius: 18px;
  box-shadow:
    0 0 0 2px #6366f1,
    0 0 24px rgba(99, 102, 241, 0.65),
    0 0 50px rgba(167, 139, 250, 0.30),
    inset 0 0 20px rgba(99, 102, 241, 0.12);
  position: relative;
}
.frame-neon::before { content: '✨'; position: absolute; top: 6px; left: 8px; font-size: 1rem; }
.frame-neon::after  { content: '✨'; position: absolute; bottom: 6px; right: 8px; font-size: 1rem; }

/* Frame: Cotton Candy */
.frame-cotton {
  background: linear-gradient(135deg, #ffc8e8, #c8e8ff);
  padding: 24px;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(255, 110, 199, 0.25);
  position: relative;
}
.frame-cotton::before { content: '🍭'; position: absolute; top: 6px; left: 8px; font-size: 1.3rem; opacity: 0.8; }
.frame-cotton::after  { content: '🍬'; position: absolute; bottom: 6px; right: 8px; font-size: 1.3rem; opacity: 0.8; }

/* Frame: Matcha */
.frame-matcha {
  background: linear-gradient(135deg, #d4edda, #f5f0e8);
  padding: 24px;
  border-radius: 20px;
  border: 2px solid #a5d6a7;
  box-shadow: 0 6px 24px rgba(58, 125, 68, 0.18);
  position: relative;
}
.frame-matcha::before {
  content: '🍵';
  position: absolute;
  top: 6px; right: 8px;
  font-size: 1.25rem;
  opacity: 0.85;
}

/* Frame: Galaxy */
.frame-galaxy {
  background: linear-gradient(135deg, #0d0d2b, #1a1a4e);
  padding: 22px;
  border-radius: 20px;
  box-shadow:
    0 0 0 1.5px #f0c040,
    0 0 20px rgba(240, 192, 64, 0.42),
    0 0 50px rgba(240, 192, 64, 0.15);
  position: relative;
}
.frame-galaxy::before { content: '✦'; position: absolute; top: 8px; left: 12px; color: #f0c040; font-size: 1rem; opacity: 0.9; }
.frame-galaxy::after  { content: '✦'; position: absolute; bottom: 8px; right: 12px; color: #f0c040; font-size: 1rem; opacity: 0.9; }

/* Frame: Sunrise */
.frame-sunrise {
  background: linear-gradient(160deg, #fff9c4, #ffe0b2, #ffccbc);
  padding: 22px;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(230, 81, 0, 0.2);
  position: relative;
}
.frame-sunrise::before {
  content: '🌅';
  position: absolute;
  bottom: 5px; left: 0; right: 0;
  text-align: center;
  font-size: 1rem;
  opacity: 0.85;
}

/* Frame: Ocean */
.frame-ocean {
  background: linear-gradient(160deg, #e0f7fa, #b2ebf2, #80deea);
  padding: 22px;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0, 131, 143, 0.2);
  position: relative;
}
.frame-ocean::before { content: '🌊'; position: absolute; top: 6px; left: 8px; font-size: 1.15rem; opacity: 0.8; }
.frame-ocean::after  { content: '🐚'; position: absolute; bottom: 6px; right: 8px; font-size: 1.15rem; opacity: 0.8; }

/* Frame: Sakura */
.frame-sakura {
  background: linear-gradient(135deg, #fce4ec, #fdf6f8);
  padding: 24px;
  border-radius: 30px;
  border: 2px solid #f8bbd0;
  box-shadow: 0 8px 32px rgba(194, 24, 91, 0.14);
  position: relative;
}
.frame-sakura::before { content: '🌸 🌸 🌸'; position: absolute; top: 4px; left:0; right:0; text-align:center; font-size:0.75rem; opacity:0.85; }
.frame-sakura::after  { content: '🌸 🌸 🌸'; position: absolute; bottom: 4px; left:0; right:0; text-align:center; font-size:0.75rem; opacity:0.85; }

/* Frame: Forest Moss */
.frame-forest {
  background: linear-gradient(135deg, #1b4332, #40916c);
  padding: 24px;
  border-radius: 28px;
  box-shadow: 0 10px 36px rgba(27, 67, 50, 0.45), 0 4px 12px rgba(0,0,0,0.12);
  position: relative;
}
.frame-forest::before { content: '🌿'; position: absolute; top: 6px; left: 8px; font-size: 1.3rem; opacity: .88; }
.frame-forest::after  { content: '🍄'; position: absolute; bottom: 6px; right: 8px; font-size: 1.3rem; opacity: .88; }

/* Frame: Rainbow Candy */
.frame-candy {
  background: linear-gradient(135deg, #fff0f3, #fff9f0);
  padding: 24px;
  border-radius: 32px;
  box-shadow: 0 0 0 3px #ff595e, 0 0 0 7px #ffca3a, 0 0 0 11px #8ac926, 0 0 20px rgba(255, 89, 94, 0.25);
  position: relative;
}
.frame-candy::before { content: '🌈'; position: absolute; top: 6px; left: 8px; font-size: 1.3rem; opacity: .85; }
.frame-candy::after  { content: '🍬'; position: absolute; bottom: 6px; right: 8px; font-size: 1.3rem; opacity: .85; }

/* Frame: Old Parchment */
.frame-parchment {
  background: linear-gradient(135deg, #e8d5a3, #f5e6c8);
  padding: 22px;
  border-radius: 6px;
  border: 3px solid #8b5a2b;
  box-shadow: inset 0 0 30px rgba(101, 67, 33, 0.15), 6px 6px 20px rgba(61, 31, 0, 0.25);
  position: relative;
}
.frame-parchment::before { content: '📜'; position: absolute; top: 6px; left: 8px; font-size: 1.2rem; opacity: .85; }
.frame-parchment::after  { content: '✦';  position: absolute; bottom: 8px; right: 10px; font-size: 1rem; color: #6b4226; opacity: .75; }

/* Frame: Arctic Frost */
.frame-arctic {
  background: linear-gradient(160deg, #e8f4f8, #b8dce8);
  padding: 22px;
  border-radius: 22px;
  border: 2px solid #7ec8e3;
  box-shadow: 0 6px 28px rgba(0, 95, 134, 0.18), inset 0 0 24px rgba(184, 220, 232, 0.35);
  position: relative;
}
.frame-arctic::before { content: '❄️'; position: absolute; top: 6px; left: 8px; font-size: 1.2rem; opacity: .85; }
.frame-arctic::after  { content: '❄️'; position: absolute; bottom: 6px; right: 8px; font-size: 1.2rem; opacity: .85; }

/* ===== Actions ===== */
.copy-success {
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #16a34a;
  margin-bottom: 0.75rem;
  animation: successPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  from { opacity: 0; transform: scale(0.75) translateY(6px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);   }
}

.action-row {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
}

.action-row .btn { flex: 1; }

/* ===== Feedback Card ===== */
.feedback-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.feedback-text {
  flex: 1;
  min-width: 180px;
}

.feedback-desc {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.65;
}

.btn-fb {
  background: #1877f2;
  color: white;
  border-radius: var(--radius-pill);
  padding: 0.78rem 1.5rem;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.38);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s, filter 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.btn-fb:hover {
  filter: brightness(1.1);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(24, 119, 242, 0.48);
}

.btn-fb:active { transform: scale(0.95); }

/* ===== Footer ===== */
footer {
  margin-top: 2.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  z-index: 2;
  letter-spacing: 0.02em;
}

.footer-link {
  color: var(--rose);
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6fa5, #c77dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter 0.2s, opacity 0.2s;
}

.footer-link:hover {
  filter: brightness(1.12);
  opacity: 0.85;
}

/* ===== Utility ===== */
.hidden { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .top-row        { flex-direction: column; }
  .preview-card   { width: 100%; }
  .input-card     { width: 100%; }
}

@media (max-width: 480px) {
  .logo-text      { font-size: 2.6rem; }
  .presets-grid   { grid-template-columns: repeat(3, 1fr); }
  .card           { padding: 1.4rem 1.25rem; }
  .url-input      { font-size: 1rem; }
  .btn            { padding: 0.8rem 1.1rem; font-size: 0.88rem; }
  .feedback-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
