:root {
  --bg: #0d0d14;
  --surface: #16161f;
  --border: #2a2a3a;
  --accent: #f4a500;
  --accent2: #e05c5c;
  --text: #e8e8f0;
  --muted: #7878a0;
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Hind Siliguri', sans-serif;
  min-height: 100vh;
  padding: 24px 16px 60px;
  line-height: 1.6;
  transition: background var(--transition-normal);
}

/* Ad Banner Styles */
.top-ad-banner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #1a1a2e, #2d2d4a);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(244, 165, 0, 0.2);
}

.top-ad-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(244, 165, 0, 0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.top-ad-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-ad-banner a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 12px 24px;
  border-radius: 50px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(244, 165, 0, 0.4);
}

.top-ad-banner a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(244, 165, 0, 0.6);
}

.top-ad-banner .arrow {
  font-size: 1.5rem;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.bottom-ad-section {
  width: 100%;
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.bottom-ad-section h3 {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 16px;
}

/* SEO Article Section */
.seo-article {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
}

.seo-article h2 {
  font-family: 'Noto Serif Bengali', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f4a500, #e05c5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.seo-article p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.seo-article h3 {
  font-family: 'Noto Serif Bengali', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 12px;
}

.seo-article ul {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 24px;
}

.seo-article li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .seo-article {
    padding: 20px;
  }
  .seo-article h2 {
    font-size: 1.4rem;
  }
  .seo-article h3 {
    font-size: 1.1rem;
  }
  .seo-article ul li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Enhanced mobile responsiveness */
@media (max-width: 480px) {
  body {
    padding: 16px 12px 40px;
  }
  
  .top-ad-banner {
    margin-bottom: 16px;
    padding: 16px;
    min-height: 100px;
  }
  
  .top-ad-banner a {
    font-size: 1rem;
    padding: 10px 20px;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  .controls {
    padding: 20px;
    gap: 16px;
  }
  
  .design-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  
  .design-thumb span {
    font-size: 0.5rem;
    padding: 2px 1px;
  }
  
  .preview-wrap {
    position: relative;
    top: 0;
    gap: 12px;
  }
  
  .poster-outer {
    border-radius: 12px;
  }
  
  #poster {
    padding: 32px 24px;
  }
  
  .btn-download {
    font-size: 1rem;
    padding: 12px;
  }
  
  .field label {
    font-size: 0.75rem;
  }
  
  textarea, input[type="text"] {
    padding: 8px 12px;
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .design-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .controls {
    padding: 16px;
  }
  
  #poster {
    padding: 24px 20px;
  }
}

header {
  text-align: center;
  margin-bottom: 36px;
}

header h1 {
  font-family: 'Noto Serif Bengali', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  background: linear-gradient(135deg, #f4a500, #e05c5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

header p {
  color: var(--muted);
  font-size: 0.85rem;
}

.layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
    justify-content: center;
  }
  .controls, .preview-wrap {
    max-width: 100%;
  }
}

/* ── Controls ── */
.controls {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.controls:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.field:hover label {
  color: var(--accent);
}

textarea, input[type="text"] {
  width: 100%;
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 1rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  resize: vertical;
}

textarea { min-height: 100px; }

textarea:focus, input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 165, 0, 0.1);
  transform: translateY(-1px);
}

textarea:hover, input[type="text"]:hover {
  border-color: #3a3a4a;
}

/* Range slider styling */
input[type="range"] {
  width: 100%;
  height: 6px;
  background: #0d0d14;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #f4a500, #e05c5c);
  border-radius: 50%;
  cursor: pointer;
  transition: transform .15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #f4a500, #e05c5c);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Design picker */
.design-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.design-thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.design-thumb:hover { 
  transform: scale(1.05); 
  box-shadow: var(--shadow-md);
  border-color: rgba(244, 165, 0, 0.3);
}

.design-thumb.active { 
  border-color: var(--accent); 
  box-shadow: 0 0 0 3px rgba(244, 165, 0, 0.2);
}

.design-thumb span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.65);
  font-size: 0.55rem;
  text-align: center;
  padding: 3px 2px;
  font-weight: 600;
}

/* Thumb previews */
.t1 { background: linear-gradient(135deg,#1a1a2e,#16213e,#0f3460); }
.t2 { background: linear-gradient(160deg,#0f2027,#203a43,#2c5364); }
.t3 { background: radial-gradient(circle at 30% 30%,#3a0647,#0d0014); }
.t4 { background: linear-gradient(135deg,#1c0000,#3d0000,#800000); }
.t5 { background: linear-gradient(145deg,#0d3b2e,#1a6b4a,#2d8a5e); }
.t6 { background: linear-gradient(135deg,#1a1a1a,#2d2d2d,#111); }
.t7 { background: linear-gradient(135deg,#2c1810,#5c3a21,#8b5a2b); }
.t8 { background: linear-gradient(135deg,#1a0a2e,#2d1a4a,#4a2a6a); }
.t9 { background: linear-gradient(135deg,#0a1a2a,#1a3a5a,#2a5a8a); }
.t10 { background: linear-gradient(135deg,#2a0a0a,#4a1a1a,#6a2a2a); }
.t11 { background: linear-gradient(135deg,#0a2a1a,#1a4a2a,#2a6a3a); }
.t12 { background: linear-gradient(135deg,#2a2a0a,#4a4a1a,#6a6a2a); }

.btn-download {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #f4a500, #e05c5c);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-normal);
  margin-top: 8px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left var(--transition-slow);
}

.btn-download:hover::before {
  left: 100%;
}

.btn-download:hover { 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #f5b520, #e26d6d);
}

.btn-download:active { 
  transform: translateY(0); 
  box-shadow: var(--shadow-sm);
}

.btn-download:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-download:disabled:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

/* ── Poster Preview ── */
.preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 20px;
  transition: transform var(--transition-normal);
}

.preview-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-label::before {
  content: '👁️';
  font-size: 1rem;
  animation: blink 3s ease-in-out infinite;
}

@keyframes blink {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0.3; }
}

.poster-outer {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.poster-outer:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(0,0,0,0.7);
}

.poster-outer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.03) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  pointer-events: none;
}

.poster-outer:hover::before {
  transform: translateX(100%);
}

/* ══════════════════════════════
    POSTER DESIGNS
══════════════════════════════ */
#poster {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 44px 38px;
  overflow: hidden;
  text-align: center;
}

/* Shared poster text */
.poster-quote {
  font-family: 'Noto Serif Bengali', serif;
  font-weight: 700;
  color: #fff;
  line-height: 1.55;
  position: relative;
  z-index: 2;
}

.poster-author {
  font-family: 'Hind Siliguri', sans-serif;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  position: relative;
  z-index: 2;
}

.poster-site {
  font-family: 'Hind Siliguri', sans-serif;
  font-weight: 400;
  color: rgba(255,255,255,.45);
  position: absolute;
  bottom: 16px;
  right: 18px;
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: .04em;
}

/* ── Design 1 : Deep Navy ── */
#poster.d1 {
  background: linear-gradient(160deg, #0d0d2b 0%, #1a2a6c 50%, #0d0d2b 100%);
}
#poster.d1::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,140,255,.18) 0%, transparent 70%);
  top: -60px; right: -60px;
}
#poster.d1::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,180,50,.12) 0%, transparent 70%);
  bottom: -40px; left: 20px;
}
#poster.d1 .poster-quote { font-size: clamp(1.15rem,2.8vw,1.55rem); }
#poster.d1 .poster-author { font-size: 0.88rem; margin-top: 18px; }
#poster.d1 .poster-author::before { content: '— '; }
#poster.d1 .divider {
  width: 50px; height: 2px;
  background: linear-gradient(90deg, #f4a500, #e05c5c);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ── Design 2 : Teal Depths ── */
#poster.d2 {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}
#poster.d2 .inner-border {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
}
#poster.d2 .corner { position: absolute; width: 16px; height: 16px; z-index: 2; }
#poster.d2 .c-tl { top: 18px; left: 18px; border-top: 2px solid #4ecdc4; border-left: 2px solid #4ecdc4; }
#poster.d2 .c-tr { top: 18px; right: 18px; border-top: 2px solid #4ecdc4; border-right: 2px solid #4ecdc4; }
#poster.d2 .c-bl { bottom: 18px; left: 18px; border-bottom: 2px solid #4ecdc4; border-left: 2px solid #4ecdc4; }
#poster.d2 .c-br { bottom: 18px; right: 18px; border-bottom: 2px solid #4ecdc4; border-right: 2px solid #4ecdc4; }
#poster.d2 .poster-quote { font-size: clamp(1.1rem,2.6vw,1.45rem); color: #f0fafa; }
#poster.d2 .poster-author { font-size: 0.85rem; margin-top: 16px; color: #4ecdc4; }
#poster.d2 .open-q { font-size: 3rem; color: rgba(78,205,196,.3); line-height: 1; margin-bottom: 8px; font-family: Georgia, serif; }

/* ── Design 3 : Violet Cosmos ── */
#poster.d3 {
  background: radial-gradient(ellipse at 20% 20%, #5b0e91 0%, #1a0030 40%, #000 100%);
}
#poster.d3 .stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 15%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 70%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,.4) 0%, transparent 100%);
}
#poster.d3 .poster-quote { font-size: clamp(1.1rem,2.6vw,1.45rem); }
#poster.d3 .poster-author { font-size: 0.85rem; margin-top: 18px; color: #d4a8ff; }
#poster.d3 .glow-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, #c084fc, transparent);
  margin: 14px auto;
}
#poster.d3 .top-icon { font-size: 2rem; margin-bottom: 10px; opacity: .7; }

/* ── Design 4 : Crimson Fire ── */
#poster.d4 {
  background: linear-gradient(145deg, #0a0000, #2d0000, #5c0a0a);
}
#poster.d4::before {
  content: '';
  position: absolute;
  bottom: -80px; left: 50%;
  transform: translateX(-50%);
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(200,40,0,.3) 0%, transparent 70%);
  border-radius: 50%;
}
#poster.d4 .h-line { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,80,0,.5), transparent); margin: 14px 0; }
#poster.d4 .poster-quote { font-size: clamp(1.1rem,2.6vw,1.45rem); color: #fff5f5; }
#poster.d4 .poster-author { font-size: 0.85rem; margin-top: 4px; color: #ff8060; }
#poster.d4 .fire-top { font-size: 2rem; margin-bottom: 6px; }

/* ── Design 5 : Forest Green ── */
#poster.d5 {
  background: linear-gradient(145deg, #0a2d1a, #1a5c3a, #2d8a5e);
}
#poster.d5::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(139,195,74,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139,195,74,0.1) 0%, transparent 40%);
}
#poster.d5 .leaf-bg {
  position: absolute; inset: 0; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0 Q80 40 40 80 Q0 40 40 0Z' fill='none' stroke='white' stroke-width='1'/%3E%3Cpath d='M40 10 Q70 40 40 70 Q10 40 40 10Z' fill='white' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}
#poster.d5 .gold-bar { width: 50px; height: 3px; background: linear-gradient(90deg, #8bc34a, #a8d656); border-radius: 2px; margin: 0 auto 20px; box-shadow: 0 0 10px rgba(139,195,74,0.5); }
#poster.d5 .poster-quote { font-size: clamp(1.1rem,2.6vw,1.45rem); color: #f0fff4; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
#poster.d5 .poster-author { font-size: 0.85rem; margin-top: 18px; color: #a8d656; font-weight: 600; }
#poster.d5 .gold-bar-bot { width: 50px; height: 3px; background: linear-gradient(90deg, #a8d656, #8bc34a); border-radius: 2px; margin: 16px auto 0; box-shadow: 0 0 10px rgba(139,195,74,0.5); }
#poster.d5 .leaf-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.8; }

/* ── Design 6 : Black Gold ── */
#poster.d6 {
  background: #0c0c0c;
}
#poster.d6::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0px, transparent 1px, transparent 28px);
}
#poster.d6 .gold-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(212,175,55,.35);
  pointer-events: none;
  z-index: 1;
}
#poster.d6 .gold-corner {
  position: absolute; width: 20px; height: 20px; z-index: 2;
}
#poster.d6 .gc-tl { top: 14px; left: 14px; border-top: 2px solid #d4af37; border-left: 2px solid #d4af37; }
#poster.d6 .gc-tr { top: 14px; right: 14px; border-top: 2px solid #d4af37; border-right: 2px solid #d4af37; }
#poster.d6 .gc-bl { bottom: 14px; left: 14px; border-bottom: 2px solid #d4af37; border-left: 2px solid #d4af37; }
#poster.d6 .gc-br { bottom: 14px; right: 14px; border-bottom: 2px solid #d4af37; border-right: 2px solid #d4af37; }
#poster.d6 .poster-quote { font-size: clamp(1.1rem,2.6vw,1.45rem); color: #f5f0e0; }
#poster.d6 .poster-author { font-size: 0.85rem; margin-top: 16px; color: #d4af37; letter-spacing: .05em; }
#poster.d6 .diamond { color: #d4af37; font-size: 1rem; margin: 12px 0; opacity: .8; }

/* ── Design 7 : Bronze Earth ── */
#poster.d7 {
  background: linear-gradient(145deg, #1a0f08, #3d2817, #5c4033);
}
#poster.d7::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(184,134,11,0.1) 0%, transparent 60%);
}
#poster.d7 .bronze-frame {
  position: absolute;
  inset: 16px;
  border: 2px solid rgba(184,134,11,0.4);
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}
#poster.d7 .poster-quote { font-size: clamp(1.1rem,2.6vw,1.45rem); color: #f5e6d3; }
#poster.d7 .poster-author { font-size: 0.85rem; margin-top: 16px; color: #cd853f; }
#poster.d7 .bronze-line { width: 60px; height: 2px; background: #cd853f; margin: 14px auto; }

/* ── Design 8 : Royal Purple ── */
#poster.d8 {
  background: linear-gradient(135deg, #1a0a2e, #2d1a4a, #4a2a6a);
}
#poster.d8::before {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(138,43,226,0.05) 10px, rgba(138,43,226,0.05) 20px);
}
#poster.d8 .crown { font-size: 2.2rem; margin-bottom: 8px; }
#poster.d8 .poster-quote { font-size: clamp(1.1rem,2.6vw,1.45rem); color: #e8d5f0; }
#poster.d8 .poster-author { font-size: 0.85rem; margin-top: 16px; color: #dda0dd; }
#poster.d8 .purple-line { width: 70px; height: 2px; background: linear-gradient(90deg, #9370db, #ba55d3); margin: 14px auto; }

/* ── Design 9 : Ocean Blue ── */
#poster.d9 {
  background: linear-gradient(160deg, #0a1a2a, #1a3a5a, #2a5a8a);
}
#poster.d9::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,100,150,0.2), transparent);
}
#poster.d9 .wave {
  position: absolute;
  bottom: 20px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #4682b4, transparent);
}
#poster.d9 .poster-quote { font-size: clamp(1.1rem,2.6vw,1.45rem); color: #e6f3ff; }
#poster.d9 .poster-author { font-size: 0.85rem; margin-top: 16px; color: #87ceeb; }
#poster.d9 .wave-icon { font-size: 2rem; margin-bottom: 10px; opacity: 0.7; }

/* ── Design 10 : Crimson Rose ── */
#poster.d10 {
  background: linear-gradient(135deg, #2a0a0a, #4a1a1a, #6a2a2a);
}
#poster.d10::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(220,20,60,0.3) 0%, transparent 70%);
}
#poster.d10 .rose-icon { font-size: 2.5rem; margin-bottom: 10px; }
#poster.d10 .poster-quote { font-size: clamp(1.1rem,2.6vw,1.45rem); color: #ffe4e1; }
#poster.d10 .poster-author { font-size: 0.85rem; margin-top: 16px; color: #db7093; }
#poster.d10 .rose-line { width: 55px; height: 2px; background: #dc143c; margin: 14px auto; }

/* ── Design 11 : Emerald Nature ── */
#poster.d11 {
  background: linear-gradient(145deg, #0a2a1a, #1a4a2a, #2a6a3a);
}
#poster.d11::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='2' fill='white' opacity='0.1'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}
#poster.d11 .nature-icon { font-size: 2.3rem; margin-bottom: 10px; }
#poster.d11 .poster-quote { font-size: clamp(1.1rem,2.6vw,1.45rem); color: #f0fff0; }
#poster.d11 .poster-author { font-size: 0.85rem; margin-top: 16px; color: #50c878; }
#poster.d11 .emerald-bar { width: 45px; height: 3px; background: #50c878; margin: 14px auto; border-radius: 2px; }

/* ── Design 12 : Amber Sunset ── */
#poster.d12 {
  background: linear-gradient(135deg, #2a2a0a, #4a4a1a, #6a6a2a);
}
#poster.d12::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,191,0,0.15), transparent);
}
#poster.d12 .sun-icon { font-size: 2.5rem; margin-bottom: 8px; }
#poster.d12 .poster-quote { font-size: clamp(1.1rem,2.6vw,1.45rem); color: #fffacd; }
#poster.d12 .poster-author { font-size: 0.85rem; margin-top: 16px; color: #ffd700; }
#poster.d12 .amber-line { width: 65px; height: 2px; background: linear-gradient(90deg, #daa520, #ffd700); margin: 14px auto; }

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  z-index: 1000;
  max-width: 300px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: linear-gradient(135deg, var(--success), #45a049);
}

.toast.error {
  background: linear-gradient(135deg, var(--error), #d32f2f);
}

.toast.warning {
  background: linear-gradient(135deg, var(--warning), #f57c00);
}

/* Icon button enhancements */
.icon-btn {
  transition: transform var(--transition-fast), background var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.icon-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.icon-btn:hover::after {
  opacity: 1;
}

.icon-btn:hover {
  transform: scale(1.1);
  background: var(--accent);
  color: #fff;
}

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

/* Success animation */
@keyframes success-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.success-animation {
  animation: success-pulse 0.6s ease-in-out;
}

/* Error shake animation */
@keyframes error-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.error-animation {
  animation: error-shake 0.3s ease-in-out;
}
