/* ============================================================
   CANVA-STYLE INVITATION STUDIO — ELEGANT INVITES
   ============================================================ */
.ei-canva-studio {
  --ei-rail-width: 72px;
  --ei-drawer-width: 330px;
  --ei-topbar-height: 56px;
  --ei-accent: #C9A84C;
  --ei-accent-dark: #A07C35;
  --ei-primary-bg: #1e1e24;
  --ei-panel-bg: #ffffff;
  --ei-border-color: #e5e5ea;
  --ei-text-main: #1f2937;
  --ei-text-muted: #6b7280;
  --ei-canvas-bg: #f3f4f6;

  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: var(--ei-text-main);
  background: #ffffff;
  border: 1px solid var(--ei-border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  height: 90vh;
  min-height: 680px;
  box-sizing: border-box;
}
.ei-canva-studio *, .ei-canva-studio *::before, .ei-canva-studio *::after { box-sizing: inherit; margin: 0; padding: 0; }
.ei-studio-header { height: var(--ei-topbar-height); background: #ffffff; border-bottom: 1px solid var(--ei-border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; flex-shrink: 0; z-index: 20; }
.ei-header-left { display: flex; align-items: center; gap: 14px; }
.ei-brand-badge { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; color: #111827; }
.ei-brand-icon { font-size: 1.1rem; }
.ei-doc-meta { display: flex; align-items: center; gap: 8px; }
.ei-doc-title-input { font-size: 0.85rem; font-weight: 600; color: #374151; border: 1px solid transparent; padding: 4px 8px; border-radius: 6px; background: transparent; transition: all 0.2s; max-width: 200px; }
.ei-doc-title-input:hover, .ei-doc-title-input:focus { background: #f3f4f6; border-color: #d1d5db; outline: none; }
.ei-badge-save { font-size: 0.7rem; font-weight: 600; color: #10b981; background: #ecfdf5; padding: 2px 8px; border-radius: 12px; }
.ei-header-center { display: flex; align-items: center; }
.ei-view-mode-tabs { display: flex; background: #f3f4f6; padding: 3px; border-radius: 8px; gap: 2px; }
.ei-vm-tab { border: none; background: transparent; padding: 6px 14px; font-size: 0.78rem; font-weight: 600; color: var(--ei-text-muted); border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 0.2s; }
.ei-vm-tab:hover { color: var(--ei-text-main); }
.ei-vm-tab.active { background: #ffffff; color: #111827; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.ei-header-actions { display: flex; align-items: center; gap: 8px; }
.ei-btn-pill { border: none; outline: none; font-family: inherit; font-size: 0.75rem; font-weight: 600; padding: 8px 16px; border-radius: 30px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; }
.ei-btn-secondary { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.ei-btn-secondary:hover { background: #e5e7eb; }
.ei-btn-cta { background: linear-gradient(135deg, #C9A84C, #A07C35); color: #ffffff; box-shadow: 0 2px 8px rgba(201,168,76,0.3); }
.ei-btn-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(201,168,76,0.4); }
.ei-studio-body { display: flex; flex: 1; overflow: hidden; position: relative; }
.ei-canva-rail { width: var(--ei-rail-width); background: #18191c; display: flex; flex-direction: column; align-items: center; padding: 8px 0; gap: 4px; flex-shrink: 0; z-index: 15; overflow-y: auto; }
.ei-rail-btn { width: 60px; height: 56px; border: none; background: transparent; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: #9ca3af; transition: all 0.2s; padding: 4px 0; }
.ei-rail-btn:hover { background: rgba(255,255,255,0.08); color: #ffffff; }
.ei-rail-btn.active { background: rgba(201,168,76,0.18); color: #e5c069; }
.ei-rail-icon { font-size: 1.25rem; line-height: 1; margin-bottom: 3px; }
.ei-rail-label { font-size: 9px; font-weight: 600; letter-spacing: 0.02em; }
.ei-flyout-drawer { width: var(--ei-drawer-width); background: #ffffff; border-right: 1px solid var(--ei-border-color); display: flex; flex-direction: column; flex-shrink: 0; overflow: hidden; z-index: 10; }
.ei-drawer-section { display: none; flex-direction: column; height: 100%; }
.ei-drawer-section.active { display: flex; }
.ei-drawer-header { padding: 16px; border-bottom: 1px solid #f3f4f6; flex-shrink: 0; }
.ei-drawer-header h3 { font-size: 0.95rem; font-weight: 700; color: #111827; }
.ei-sub-desc { font-size: 0.72rem; color: var(--ei-text-muted); display: block; margin-top: 3px; }
.ei-drawer-content { padding: 16px; overflow-y: auto; flex: 1; }
.ei-input-group { margin-bottom: 14px; }
.ei-input-group label, .ei-sub-label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #4b5563; margin-bottom: 5px; }
.ei-input-group input[type=text], .ei-input-group input[type=date], .ei-input-group input[type=time], .ei-input-group input[type=email], .ei-input-group input[type=password], .ei-input-group input[type=url], .ei-input-group select, .ei-input-group textarea { width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-family: inherit; font-size: 0.8rem; color: #111827; background: #ffffff; outline: none; transition: border-color 0.2s; }
.ei-input-group input:focus, .ei-input-group select:focus, .ei-input-group textarea:focus { border-color: var(--ei-accent); }
.ei-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ei-dropzone { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 20px; text-align: center; background: #f8fafc; transition: all 0.25s; }
.ei-asset-thumbs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.ei-asset-item { border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px; text-align: center; cursor: pointer; background: #fff; transition: all 0.2s; }
.ei-asset-item:hover, .ei-asset-item.active { border-color: var(--ei-accent); transform: scale(1.02); }
.ei-asset-img { height: 60px; border-radius: 4px; background-size: cover; background-position: center; margin-bottom: 4px; }
.ei-asset-item span { font-size: 9px; color: #64748b; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ei-canva-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ei-canva-card { border: 2px solid transparent; border-radius: 10px; cursor: pointer; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: all 0.2s; background: #fafafa; }
.ei-canva-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.ei-canva-card.selected { border-color: var(--ei-accent); }
.ei-card-preview { height: 110px; padding: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.ei-card-meta { padding: 8px 10px; background: #ffffff; display: flex; justify-content: space-between; align-items: center; }
.ei-card-meta strong { font-size: 0.75rem; color: #1f2937; }
.ei-tag-pill { font-size: 0.65rem; color: #6b7280; background: #f3f4f6; padding: 2px 6px; border-radius: 4px; }
.ei-studio-stage { flex: 1; background: var(--ei-canvas-bg); display: flex; flex-direction: column; overflow: hidden; }
.ei-stage-toolbar { height: 44px; background: #ffffff; border-bottom: 1px solid var(--ei-border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; flex-shrink: 0; }
.ei-viewport-pills { display: flex; gap: 4px; background: #f3f4f6; padding: 2px; border-radius: 6px; }
.ei-vp-btn { border: none; background: transparent; font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 4px; cursor: pointer; color: #4b5563; }
.ei-vp-btn.active { background: #ffffff; color: #111827; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.ei-btn-ghost { border: 1px solid #e5e7eb; background: #ffffff; font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; cursor: pointer; color: #374151; }
.ei-stage-dual-container { flex: 1; display: flex; overflow: hidden; position: relative; }
.ei-view-pane { display: none; flex: 1; height: 100%; overflow: auto; }
.ei-view-preview.active { display: flex; justify-content: center; align-items: flex-start; padding: 24px; }
.ei-canvas-wrapper { width: 100%; max-width: 440px; transition: max-width 0.3s ease; }
.ei-canvas-wrapper.mobile { max-width: 400px; }
.ei-canvas-wrapper.tablet { max-width: 600px; }
.ei-canvas-wrapper.desktop { max-width: 800px; }
.ei-view-code { flex-direction: column; background: #1e1e24; }
.ei-view-code.active { display: flex; }
.ei-code-toolbar { height: 40px; background: #141417; border-bottom: 1px solid #2d2d34; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.ei-code-badge { font-family: monospace; font-size: 0.72rem; font-weight: 600; color: #e5c069; background: rgba(229,192,105,0.12); padding: 2px 8px; border-radius: 4px; }
.ei-btn-micro { border: 1px solid #3f3f46; background: #27272a; color: #f4f4f5; font-size: 0.7rem; font-weight: 500; padding: 4px 10px; border-radius: 4px; cursor: pointer; }
.ei-code-editor-box { flex: 1; display: flex; }
#ei-raw-code-output { width: 100%; height: 100%; background: #18181b; color: #a1a1aa; font-family: monospace; font-size: 0.78rem; line-height: 1.6; padding: 16px; border: none; outline: none; resize: none; tab-size: 2; white-space: pre; }
.ei-stage-dual-container.mode-split .ei-view-preview, .ei-stage-dual-container.mode-split .ei-view-code { display: flex !important; flex: 1; border-right: 1px solid var(--ei-border-color); }
.ei-interactive-opener { position: relative; width: 100%; min-height: 520px; background: #4A1220; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; transition: opacity 0.5s, transform 0.5s; box-shadow: 0 15px 40px rgba(0,0,0,0.2); }

/* --- REFERENCE ROYAL WAX SEAL ENVELOPE OPENER --- */
:root {
  --ei-scallop: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpolygon%20points%3D%22100.00%2C50.00%2094.81%2C57.90%2096.98%2C67.10%2089.40%2C72.75%2088.30%2C82.14%2079.25%2C84.86%2075.00%2C93.30%2065.56%2C92.76%2058.68%2C99.24%2050.00%2C95.50%2041.32%2C99.24%2034.44%2C92.76%2025.00%2C93.30%2020.75%2C84.86%2011.70%2C82.14%2010.60%2C72.75%203.02%2C67.10%205.19%2C57.90%200.00%2C50.00%205.19%2C42.10%203.02%2C32.90%2010.60%2C27.25%2011.70%2C17.86%2020.75%2C15.14%2025.00%2C6.70%2034.44%2C7.24%2041.32%2C0.76%2050.00%2C4.50%2058.68%2C0.76%2065.56%2C7.24%2075.00%2C6.70%2079.25%2C15.14%2088.30%2C17.86%2089.40%2C27.25%2096.98%2C32.90%2094.81%2C42.10%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E");
}
.ei-opener-envelope { position: absolute; inset: 0; width: 100%; height: 100%; background: #4A1220; overflow: hidden; z-index: 50; cursor: pointer; }
.ei-env-damask { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ei-env-panels { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ei-env-filigree { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.ei-env-frame { position: absolute; inset: 12px; border: 1px solid rgba(233,199,103,0.38); pointer-events: none; }
.ei-env-core { position: absolute; left: 50%; top: 50%; width: 280px; height: 280px; margin: -140px 0 0 -140px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, #FFF6DA 8%, #FFE6A0 18%, rgba(255,196,84,0.65) 32%, rgba(246,166,52,0.35) 48%, rgba(228,140,38,0.15) 68%, rgba(228,140,38,0) 100%); opacity: 0; transform: scale(0.06); pointer-events: none; mix-blend-mode: screen; }
.ei-env-rays { position: absolute; left: 50%; top: 50%; width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax; opacity: 0; transform: scale(0.04); pointer-events: none; mix-blend-mode: screen; }
.ei-env-warm { position: absolute; inset: 0; background: radial-gradient(ellipse 120% 90% at 50% 52%, rgba(255,186,92,0.95) 0%, rgba(233,150,56,0.80) 34%, rgba(186,104,38,0.55) 62%, rgba(140,66,28,0.30) 100%); opacity: 0; pointer-events: none; mix-blend-mode: overlay; }
.ei-env-flash { position: absolute; inset: -20%; background: radial-gradient(circle at 50% 50%, rgba(255,250,232,0.95) 0%, rgba(255,232,178,0.6) 20%, rgba(252,204,126,0.32) 42%, rgba(244,182,96,0.1) 62%, rgba(244,182,96,0) 80%); opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.ei-env-title { position: absolute; left: 0; right: 0; top: 50%; margin-top: -95px; text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px; letter-spacing: 2px; color: #E9C767; opacity: 0.95; z-index: 5; pointer-events: none; }
.ei-env-seal-wrap { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; z-index: 8; cursor: pointer; border: none; background: transparent; padding: 0; }
.ei-env-seal { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #F0C6B2 0%, #D8A08C 42%, #B97B68 100%); box-shadow: 0 8px 24px rgba(0,0,0,0.45), inset 0 2px 5px rgba(255,255,255,0.45), inset 0 -4px 9px rgba(0,0,0,0.25); -webkit-mask-image: var(--ei-scallop); mask-image: var(--ei-scallop); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; z-index: 3; }
.ei-env-seal-ring { position: absolute; inset: 9px; border: 1.5px dashed rgba(74,18,32,0.45); border-radius: 50%; pointer-events: none; z-index: 4; }
.ei-env-mono { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 600; font-size: 26px; line-height: 1; color: #5A1A24; letter-spacing: 0.5px; text-shadow: 0 1px 0 rgba(255,255,255,0.4); display: block; }
.ei-env-sdate { margin-top: 4px; font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 8px; letter-spacing: 1.6px; color: #7A2A30; display: block; }
.ei-env-tap { position: absolute; left: 0; right: 0; top: 50%; margin-top: 76px; text-align: center; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 10px; letter-spacing: 4px; color: #E9C767; opacity: 0.85; animation: ei-pulse 2s ease-in-out infinite; z-index: 5; pointer-events: none; }

/* OPENER ACTIVE BURST KEYFRAMES (MATCHING EXACT REFERENCE) */
.ei-opening-burst { animation: eiCoverBurstOut 2.2s ease-in-out forwards !important; }
.ei-opening-burst .ei-env-core { animation: eiCoreBurst 2.2s ease-out forwards; }
.ei-opening-burst .ei-env-rays { animation: eiRaysBurst 2.2s cubic-bezier(0.16,0.8,0.3,1) forwards; }
.ei-opening-burst .ei-env-flash { animation: eiFlashBurst 2.2s ease-out forwards; }
.ei-opening-burst .ei-env-warm { animation: eiWarmBurst 2.2s ease-out forwards; }
.ei-opening-burst .ei-env-filigree { animation: eiFiliBurst 2.2s ease-out forwards; }
.ei-opening-burst .ei-env-seal-wrap { animation: eiSealPress 2.2s ease-in-out forwards; }
.ei-opening-burst .ei-env-title, .ei-opening-burst .ei-env-frame, .ei-opening-burst .ei-env-damask { animation: eiFadeLate 2.2s ease-in-out forwards; }
.ei-opening-burst .ei-env-tap { animation: eiFadeOut 0.3s ease-out forwards; }

@keyframes eiCoverBurstOut { 0%,70%{opacity:1;pointer-events:all;} 99%{opacity:0;} 100%{opacity:0;visibility:hidden;pointer-events:none;display:none;} }
@keyframes eiCoreBurst { 0%{opacity:0;transform:scale(0.06)} 22%{opacity:1;transform:scale(1)} 70%{opacity:1;transform:scale(1.4)} 100%{opacity:0;transform:scale(1.5)} }
@keyframes eiRaysBurst { 0%{opacity:0;transform:scale(0.04) rotate(0)} 30%{opacity:1;transform:scale(1.1) rotate(7deg)} 70%{opacity:0.75;transform:scale(1.35) rotate(13deg)} 100%{opacity:0;transform:scale(1.5) rotate(16deg)} }
@keyframes eiFlashBurst { 0%{opacity:0} 20%{opacity:1} 60%{opacity:0.35} 100%{opacity:0} }
@keyframes eiWarmBurst { 0%{opacity:0} 30%{opacity:0.95} 70%{opacity:0.9} 100%{opacity:0} }
@keyframes eiFiliBurst { 0%{opacity:0} 35%{opacity:1} 70%{opacity:1} 100%{opacity:0} }
@keyframes eiSealPress { 0%{transform:scale(1);opacity:1} 8%{transform:scale(0.92)} 20%{transform:scale(1)} 70%{transform:scale(1);opacity:1} 100%{transform:scale(0.82);opacity:0} }
@keyframes eiFadeLate { 0%,68%{opacity:1} 100%{opacity:0} }
@keyframes eiFadeOut { to{opacity:0} }
.ei-content-reveal { animation: eiContentFadeIn 0.9s ease-out forwards; }
@keyframes eiContentFadeIn { from{opacity:0.15;transform:scale(0.98);} to{opacity:1;transform:scale(1);} }

/* --- OTHER OPENERS: CURTAIN & DOORS --- */
.ei-opener-curtain .ei-curtain-panel { position: absolute; inset: 0; background: linear-gradient(90deg, #5B1626, #781c33); width: 100%; transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1); }
.ei-opener-curtain.ei-opening-active .ei-curtain-panel { transform: translateX(100%); }
.ei-curtain-badge { position: relative; z-index: 2; color: #FAF7F2; text-align: center; font-size: 1.2rem; font-weight: 700; border: 1.5px solid #C9A84C; padding: 16px 24px; border-radius: 12px; background: rgba(0,0,0,0.3); }
.ei-opener-doors .ei-door-left, .ei-opener-doors .ei-door-right { position: absolute; top: 0; bottom: 0; width: 50%; background: #450a0a; border: 2px solid #C9A84C; transition: transform 0.8s ease; }
.ei-opener-doors .ei-door-left { left: 0; }
.ei-opener-doors .ei-door-right { right: 0; }
.ei-opener-doors.ei-opening-active .ei-door-left { transform: translateX(-100%); }
.ei-opener-doors.ei-opening-active .ei-door-right { transform: translateX(100%); }
.ei-door-crest { position: relative; z-index: 2; background: #C9A84C; color: #1c1917; padding: 8px 18px; border-radius: 20px; font-weight: 700; font-size: 12px; }

/* --- AMBIENT FLOATING HEARTS & PARTICLES (USER REQUESTED) --- */
.ei-floating-hearts { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; z-index: 45; }
.ei-floating-heart { position: absolute; top: -35px; display: inline-block; will-change: transform; animation: eiHeartFall linear infinite; }
.ei-floating-heart svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12)); animation: eiHeartSway ease-in-out infinite alternate; }

@keyframes eiHeartFall {
  0% { transform: translateY(-35px); opacity: 0; }
  12% { opacity: 0.85; }
  88% { opacity: 0.85; }
  100% { transform: translateY(1150px); opacity: 0; }
}
@keyframes eiHeartSway {
  0% { transform: translateX(-24px) rotate(-26deg) scale(0.9); }
  50% { transform: translateX(24px) rotate(26deg) scale(1.1); }
  100% { transform: translateX(-24px) rotate(-26deg) scale(0.9); }
}

@keyframes ei-pulse { 0%,100%{opacity:0.55} 50%{opacity:1} }
.ei-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 999999; align-items: center; justify-content: center; padding: 16px; }
.ei-modal-box { background: #ffffff; border-radius: 14px; max-width: 480px; width: 100%; padding: 26px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.ei-modal-close { position: absolute; top: 14px; right: 14px; border: none; background: #f3f4f6; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
#ei-toast { position: fixed; bottom: 24px; right: 24px; background: #18181b; color: #ffffff; padding: 10px 18px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; box-shadow: 0 10px 25px rgba(0,0,0,0.2); transform: translateY(100px); opacity: 0; transition: all 0.3s; z-index: 100000; }
#ei-toast.show { transform: translateY(0); opacity: 1; }

/* ── VECTOR ORNAMENTS GRID VIEW (SVGS) ── */
.ei-svg-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.ei-svg-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 85px;
}
.ei-svg-item:hover {
  border-color: #C9A84C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201,168,76,0.15);
}
.ei-svg-item.active {
  border-color: #C9A84C;
  background: #fffdf5;
  box-shadow: 0 0 0 2px rgba(201,168,76,0.25);
}
.ei-svg-item svg {
  width: 32px;
  height: 32px;
  fill: #78350f;
  display: block;
}
.ei-svg-item span {
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  line-height: 1.2;
}

/* ── ANIMATION CARDS LUXURY UI ── */
.ei-anim-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}
.ei-anim-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  width: 100%;
  font-family: inherit;
}
.ei-anim-card:hover {
  border-color: #C9A84C;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.ei-anim-card.active {
  border-color: #C9A84C;
  background: #fffdf5;
  box-shadow: 0 0 0 2px rgba(201,168,76,0.3);
}
.ei-anim-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FAF7F2;
  border: 1px solid #e8d5b0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ei-anim-info {
  flex: 1;
}
.ei-anim-info strong {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: block;
  margin-bottom: 2px;
}
.ei-anim-info small {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  display: block;
}
.ei-anim-check {
  font-size: 10px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.ei-anim-card.active .ei-anim-check {
  opacity: 1;
}

/* ── AUDIO / MUSIC PLAYER IN MEDIA ── */
.ei-music-player-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
}
.ei-music-preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.ei-music-preset-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.ei-music-preset-card:hover, .ei-music-preset-card.active {
  border-color: #C9A84C;
  background: #fffdf5;
  color: #78350f;
}

/* ── UPLOADED TEMPLATES IN GALLERY ── */
.ei-uploaded-tpl-card {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: all 0.2s;
  background: #ffffff;
  position: relative;
}
.ei-uploaded-tpl-card:hover {
  border-color: #C9A84C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201,168,76,0.15);
}
.ei-uploaded-tpl-card.selected {
  border-color: #C9A84C;
  box-shadow: 0 0 0 2px rgba(201,168,76,0.3);
}

