:root{
  --c-ink:#0A0A1A;
  --c-pearl:#FAF9F7;
  --c-gold:#FCD34D;
  --c-emerald:#10B981;
  --c-rose:#F43F5E;
  --c-aurora-purple:#8B5CF6;
  --c-aurora-pink:#EC4899;
  --c-aurora-amber:#F59E0B;
  --aurora-gradient:linear-gradient(135deg,#8B5CF6 0%,#EC4899 50%,#F59E0B 100%);
  --aurora-gradient-soft:linear-gradient(135deg,rgba(139,92,246,0.18) 0%,rgba(236,72,153,0.18) 50%,rgba(245,158,11,0.18) 100%);
  --shadow-luxury:0 20px 60px -20px rgba(139,92,246,0.35);
  --shadow-luxury-hover:0 32px 80px -24px rgba(139,92,246,0.45);
  --shadow-soft:0 8px 30px -12px rgba(10,10,26,0.15);
  --shadow-gold:0 8px 30px -10px rgba(252,211,77,0.45);
  --shadow-emerald:0 8px 30px -10px rgba(16,185,129,0.4);
  --shadow-rose:0 8px 30px -10px rgba(244,63,94,0.4);
  --radius-card:18px;
  --radius-btn:14px;
  --radius-sm:10px;
  --radius-xs:6px;
  --radius-full:9999px;
  --ease-lux:cubic-bezier(0.22,1,0.36,1);
  --ease-spring:cubic-bezier(0.34,1.56,0.64,1);
  --duration-fast:0.2s;
  --duration-base:0.35s;
  --duration-slow:0.6s;
  --font-display:"Playfair Display",serif;
  --font-sans:"Inter Tight",system-ui,sans-serif;
  --font-mono:"Space Mono",monospace;
  --text-ink:rgba(10,10,26,0.92);
  --text-muted:rgba(10,10,26,0.65);
  --text-dim:rgba(10,10,26,0.45);
  --text-pearl:rgba(250,249,247,0.96);
  --text-pearl-muted:rgba(250,249,247,0.72);
  --text-pearl-dim:rgba(250,249,247,0.5);
  --border-subtle:rgba(10,10,26,0.08);
  --border-strong:rgba(10,10,26,0.14);
  --border-pearl:rgba(250,249,247,0.15);
  --border-pearl-strong:rgba(250,249,247,0.28);
  --glass-bg-1:rgba(255,255,255,0.06);
  --glass-bg-2:rgba(255,255,255,0.10);
  --glass-bg-3:rgba(255,255,255,0.16);
  --space-xs:4px;
  --space-sm:8px;
  --space-md:16px;
  --space-lg:24px;
  --space-xl:32px;
  --space-2xl:48px;
  --space-3xl:64px;
  --space-4xl:96px;
  --container-max:1280px;
  --z-dropdown:1000;
  --z-sticky:1100;
  --z-modal:1300;
  --z-toast:1400;
  --noise-opacity:0.035;
  --grid-line:rgba(255,255,255,0.04);
  --step-done:linear-gradient(135deg,#FCD34D,#F59E0B);
  --step-active:linear-gradient(135deg,#8B5CF6,#EC4899);
  --step-todo:rgba(250,249,247,0.18);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
body{font-family:var(--font-sans);color:var(--c-pearl);background:var(--c-ink);line-height:1.55;min-height:100vh;position:relative;overflow-x:hidden}
body::before{content:"";position:fixed;inset:0;background-image:radial-gradient(circle at 20% 10%,rgba(139,92,246,0.12),transparent 40%),radial-gradient(circle at 80% 60%,rgba(236,72,153,0.08),transparent 45%),radial-gradient(circle at 50% 100%,rgba(245,158,11,0.06),transparent 50%);pointer-events:none;z-index:0}
body::after{content:"";position:fixed;inset:0;opacity:var(--noise-opacity);background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");pointer-events:none;z-index:0;mix-blend-mode:overlay}

#app{position:relative;z-index:1;min-height:100vh}

.glass-1{background:var(--glass-bg-1);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--border-pearl)}
.glass-2{background:var(--glass-bg-2);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--border-pearl)}
.glass-3{background:var(--glass-bg-3);backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);border:1px solid var(--border-pearl-strong)}

.btn-primary,.btn-secondary,.btn-ghost{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 22px;border-radius:var(--radius-btn);font-family:var(--font-sans);font-weight:600;font-size:15px;letter-spacing:0.01em;cursor:pointer;transition:all var(--duration-base) var(--ease-lux);position:relative;overflow:hidden;border:none;outline:none;text-decoration:none;user-select:none;-webkit-tap-highlight-color:transparent;min-width:44px;min-height:44px}
.btn-primary{background:var(--aurora-gradient);color:var(--c-ink);box-shadow:0 10px 30px -10px rgba(139,92,246,0.6)}
.btn-primary::before{content:"";position:absolute;inset:-1px;border-radius:inherit;background:linear-gradient(12deg,rgba(255,255,255,0.55) 0%,rgba(255,255,255,0) 45%);transform-origin:0 0;transform:rotate(12deg) scale(1.4);opacity:0;transition:opacity var(--duration-base) var(--ease-lux)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 16px 44px -12px rgba(236,72,153,0.7)}
.btn-primary:hover::before{opacity:1}
.btn-primary:active{transform:translateY(0)}
.btn-secondary{background:var(--glass-bg-2);color:var(--text-pearl);border:1px solid var(--border-pearl);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.btn-secondary::before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(135deg,rgba(139,92,246,0.18),rgba(236,72,153,0.18));opacity:0;transition:opacity var(--duration-base) var(--ease-lux)}
.btn-secondary:hover{transform:translateY(-2px);border-color:var(--border-pearl-strong);box-shadow:var(--shadow-soft)}
.btn-secondary:hover::before{opacity:1}
.btn-ghost{background:transparent;color:var(--text-pearl-muted);border:1px solid transparent}
.btn-ghost:hover{color:var(--text-pearl);background:rgba(250,249,247,0.06)}

.card-luxury{background:var(--glass-bg-2);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--border-pearl);border-radius:var(--radius-card);box-shadow:var(--shadow-luxury);transition:all var(--duration-base) var(--ease-lux);padding:24px;position:relative;overflow:hidden}
.card-luxury:hover{transform:translateY(-4px);box-shadow:var(--shadow-luxury-hover);border-color:var(--border-pearl-strong)}
.card-luxury::before{content:"";position:absolute;inset:0;background:var(--aurora-gradient-soft);opacity:0;transition:opacity var(--duration-base) var(--ease-lux);pointer-events:none;border-radius:inherit}
.card-luxury:hover::before{opacity:1}

.aurora-bg{position:relative;overflow:hidden;border-radius:28px;padding:64px 48px;margin-bottom:64px}
.aurora-bg::before{content:"";position:absolute;inset:-30%;background:radial-gradient(circle at 20% 30%,rgba(139,92,246,0.55) 0%,transparent 55%),radial-gradient(circle at 80% 20%,rgba(236,72,153,0.5) 0%,transparent 55%),radial-gradient(circle at 50% 80%,rgba(245,158,11,0.45) 0%,transparent 55%);filter:blur(60px);animation:auroraBreathe 8s ease-in-out infinite alternate;pointer-events:none}
.aurora-bg>*{position:relative;z-index:1}

@keyframes auroraBreathe{0%{transform:scale(1) rotate(0deg);opacity:0.9}100%{transform:scale(1.08) rotate(2deg);opacity:1}}

.pb-step-indicator{display:flex;align-items:center;gap:4px;background:var(--glass-bg-1);backdrop-filter:blur(16px);padding:8px;border-radius:var(--radius-full);border:1px solid var(--border-pearl)}
.pb-step-indicator .pb-step{flex:1;min-width:0;padding:10px 18px;border-radius:var(--radius-full);display:flex;align-items:center;gap:10px;transition:all var(--duration-base) var(--ease-lux);cursor:default;position:relative}
.pb-step-indicator .pb-step-num{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:var(--font-mono);font-weight:700;font-size:13px;flex-shrink:0;transition:all var(--duration-base) var(--ease-lux)}
.pb-step-indicator .pb-step-label{font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:all var(--duration-base) var(--ease-lux)}
.pb-step-indicator .pb-step.done{color:var(--c-ink)}
.pb-step-indicator .pb-step.done .pb-step-num{background:var(--step-done);color:var(--c-ink);box-shadow:var(--shadow-gold)}
.pb-step-indicator .pb-step.done .pb-step-label{color:var(--c-gold);font-weight:600}
.pb-step-indicator .pb-step.active{color:var(--text-pearl)}
.pb-step-indicator .pb-step.active .pb-step-num{background:var(--step-active);color:#fff;box-shadow:0 0 0 4px rgba(139,92,246,0.18),0 0 30px rgba(236,72,153,0.5);animation:stepGlow 2.4s ease-in-out infinite}
.pb-step-indicator .pb-step.active .pb-step-label{font-weight:600}
.pb-step-indicator .pb-step.todo{color:var(--text-pearl-dim)}
.pb-step-indicator .pb-step.todo .pb-step-num{background:var(--step-todo);color:var(--text-pearl-muted)}
@keyframes stepGlow{0%,100%{box-shadow:0 0 0 4px rgba(139,92,246,0.18),0 0 20px rgba(236,72,153,0.4)}50%{box-shadow:0 0 0 6px rgba(139,92,246,0.28),0 0 40px rgba(236,72,153,0.7)}}

@keyframes envelopeFlipOpen{0%{transform:perspective(1200px) rotateX(0deg);transform-origin:top}100%{transform:perspective(1200px) rotateX(-180deg);transform-origin:top}}
@keyframes cardSlideOut{0%{transform:translateY(0);opacity:0}60%{transform:translateY(-30px);opacity:1}100%{transform:translateY(-80px);opacity:1}}
@keyframes confettiFall{0%{transform:translateY(-20vh) rotate(0deg);opacity:1}100%{transform:translateY(120vh) rotate(720deg);opacity:0}}
@keyframes successCircleScale{0%{transform:scale(0);opacity:0}60%{transform:scale(1.1);opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes successPulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(16,185,129,0.6)}50%{transform:scale(1.05);box-shadow:0 0 0 24px rgba(16,185,129,0)}}
@keyframes marqueeLeft{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
@keyframes shimmer{0%{background-position:-1000px 0}100%{background-position:1000px 0}}
@keyframes floatY{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes revealUp{0%{opacity:0;transform:translateY(24px)}100%{opacity:1;transform:translateY(0)}}

.lock-premium{position:relative;filter:grayscale(1) saturate(0);opacity:0.7;transition:all var(--duration-base) var(--ease-lux);cursor:not-allowed}
.lock-premium::after{content:"";position:absolute;inset:0;border-radius:inherit;background:rgba(10,10,26,0.35);opacity:0;transition:opacity var(--duration-base) var(--ease-lux);pointer-events:none;display:flex;align-items:center;justify-content:center}
.lock-premium:hover{contentattr(data-lock-tooltip);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2;opacity:0;transition:opacity var(--duration-base) var(--ease-lux);pointer-events:none}
.lock-premium:hover{filter:grayscale(0.5);opacity:0.85}
.lock-premium:hover::after{opacity:1}
.lock-premium:hover .lock-tooltip{opacity:1}
.lock-tooltip{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);background:var(--c-ink);border:1px solid var(--border-pearl-strong);padding:8px 14px;border-radius:10px;font-size:13px;font-weight:500;color:var(--text-pearl);white-space:nowrap;box-shadow:var(--shadow-luxury);z-index:10}
.lock-tooltip::after{content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);border:6px solid transparent;border-top-color:var(--border-pearl-strong)}
.lock-premium:hover .lock-tooltip{opacity:1}

.progressive-img{position:relative;overflow:hidden;background:var(--glass-bg-1)}
.progressive-img img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity var(--duration-slow) var(--ease-lux);will-change:opacity,filter}
.progressive-img .img-placeholder{position:absolute;inset:0;filter:blur(24px) saturate(1.2);transform:scale(1.1);opacity:1;transition:opacity var(--duration-slow) var(--ease-lux)}
.progressive-img.loaded .img-placeholder{opacity:0}
.progressive-img:not(.loaded) img.img-real{opacity:0}
.progressive-img.loaded img.img-real{opacity:1}

.container{max-width:var(--container-max);margin:0 auto;padding:0 24px;width:100%}
.section{padding:var(--space-3xl) 0}
.section-title{font-family:var(--font-display);font-weight:700;font-size:clamp(28px,4vw,44px);line-height:1.15;margin:0 0 12px 0;color:var(--text-pearl)}
.section-subtitle{font-size:clamp(15px,1.6vw,18px);color:var(--text-pearl-muted);max-width:640px;margin:0 auto 48px auto;line-height:1.65}
.aurora-text{background:var(--aurora-gradient);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}

.editor-left-panel{display:flex;flex-direction:column;min-height:0;scrollbar-width:thin;scrollbar-color:rgba(250,249,247,0.12) transparent}
.editor-left-panel::-webkit-scrollbar{width:6px}.editor-left-panel::-webkit-scrollbar-thumb{background:rgba(250,249,247,0.1);border-radius:3px}
.asset-tabs{display:flex;flex-wrap:wrap;background:rgba(255,255,255,0.02)}
.asset-tab{flex:1;min-width:0;padding:8px 6px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--text-pearl-dim);font-family:var(--font-sans);transition:all var(--duration-base) var(--ease-lux);border:none;background:transparent;cursor:pointer;white-space:nowrap}
.asset-tab:hover{background:rgba(250,249,247,0.06);color:var(--text-pearl-muted)}
.asset-tab.active{background:var(--aurora-gradient-soft);color:var(--text-pearl);box-shadow:inset 0 0 0 1px rgba(139,92,246,0.25)}
.asset-tab-content{padding:2px}
.sticker-cat{margin-bottom:10px}
.sticker-cat-title{font-weight:600}
.sticker-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
.sticker-btn{width:100%;aspect-ratio:1;border-radius:10px;background:rgba(255,255,255,0.04);border:1px solid transparent;font-size:20px;cursor:pointer;transition:all var(--duration-base) var(--ease-lux);display:flex;align-items:center;justify-content:center}
.sticker-btn:hover{background:rgba(139,92,246,0.12);border-color:rgba(139,92,246,0.25);transform:scale(1.08)}
.env-option{width:100%;padding:10px;border-radius:14px;background:rgba(255,255,255,0.03);border:1px solid transparent;cursor:pointer;transition:all var(--duration-base) var(--ease-lux);margin-bottom:6px;display:flex;flex-direction:column;align-items:center;gap:4px}
.env-option:hover{background:rgba(250,249,247,0.06)}
.env-option.selected{border-color:var(--border-pearl-strong);background:var(--aurora-gradient-soft);box-shadow:0 0 0 2px rgba(139,92,246,0.15)}
.env-preview{width:100%;height:70px;border-radius:10px;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.06)}
.env-name{font-weight:500}
.bgm-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,0.03);border:1px solid transparent;transition:all var(--duration-base) var(--ease-lux);cursor:pointer;margin-bottom:6px}
.bgm-row:hover{background:rgba(250,249,247,0.07);border-color:var(--border-pearl)}
.upload-zone{border:2px dashed rgba(139,92,246,0.25);border-radius:18px;padding:28px 16px;background:rgba(139,92,246,0.04);transition:all var(--duration-base) var(--ease-lux)}
.upload-zone:hover{border-color:rgba(139,92,246,0.5);background:rgba(139,92,246,0.08)}
.upload-inner{text-align:center}

.editor-canvas-wrap{position:relative;min-height:680px;display:flex;align-items:center;justify-content:center;background:repeating-conic-gradient(rgba(255,255,255,0.02) 0% 25%,transparent 0% 50%) 50%/24px 24px}
.editor-canvas{position:relative;width:700px;max-width:100%;aspect-ratio:700/989;box-shadow:0 40px 100px -30px rgba(0,0,0,0.5),0 0 0 1px rgba(255,255,255,0.06);border-radius:4px;overflow:hidden;transition:box-shadow var(--duration-base) var(--ease-lux)}
.editor-canvas:hover{box-shadow:0 50px 120px -30px rgba(139,92,246,0.3),0 0 0 1px rgba(139,92,246,0.15)}

.editor-node{user-select:none;cursor:grab;will-change:transform;transition:box-shadow var(--duration-fast) var(--ease-lux)}
.editor-node:active{cursor:grabbing}
.editor-node[contenteditable="true"]{cursor:text;outline:none}
.editor-node.node-type-image img{user-select:none;-webkit-user-drag:none}

.selected-outline{z-index:50}
.selected-outline::before{content:"";position:absolute;inset:-3px;border:1.5px dashed #8B5CF6;border-radius:3px;animation:outlineDash 1.2s linear infinite;pointer-events:none}
@keyframes outlineDash{to{background-position:20px 0}}
.selected-outline::after{content:"";position:absolute;inset:-1px;box-shadow:0 0 0 3px rgba(139,92,246,0.15);border-radius:3px;pointer-events:none}

.node-controls{position:absolute;inset:0;pointer-events:none;z-index:100}
.node-delete-btn{position:absolute;top:-14px;right:-14px;width:24px;height:24px;border-radius:50%;background:#F43F5E;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;border:none;pointer-events:auto;box-shadow:0 4px 12px rgba(244,63,94,0.4);transition:transform var(--duration-fast) var(--ease-spring)}
.node-delete-btn:hover{transform:scale(1.15) rotate(90deg);background:#E11D48}
.resize-handle{position:absolute;width:10px;height:10px;background:#fff;border:1.5px solid #8B5CF6;border-radius:3px;pointer-events:auto;cursor:se-resize;box-shadow:0 2px 8px rgba(139,92,246,0.35);transition:transform var(--duration-fast) var(--ease-spring)}
.resize-handle:hover{transform:scale(1.4);background:#8B5CF6}
.resize-handle.handle-nw{top:-5px;left:-5px;cursor:nwse-resize}
.resize-handle.handle-n{top:-5px;left:50%;transform:translateX(-50%);cursor:ns-resize}
.resize-handle.handle-ne{top:-5px;right:-5px;cursor:nesw-resize}
.resize-handle.handle-e{right:-5px;top:50%;transform:translateY(-50%);cursor:ew-resize}
.resize-handle.handle-se{bottom:-5px;right:-5px;cursor:nwse-resize}
.resize-handle.handle-s{bottom:-5px;left:50%;transform:translateX(-50%);cursor:ns-resize}
.resize-handle.handle-sw{bottom:-5px;left:-5px;cursor:nesw-resize}
.resize-handle.handle-w{left:-5px;top:50%;transform:translateY(-50%);cursor:ew-resize}
.resize-handle.handle-n:hover{transform:translateX(-50%) scale(1.4)}
.resize-handle.handle-s:hover{transform:translateX(-50%) scale(1.4)}
.resize-handle.handle-e:hover{transform:translateY(-50%) scale(1.4)}
.resize-handle.handle-w:hover{transform:translateY(-50%) scale(1.4)}

.property-section{padding:2px 0}
.property-title{font-size:12px;font-weight:600;color:var(--text-pearl-muted);letter-spacing:0.04em;text-transform:uppercase;margin:0 0 12px 0;font-family:var(--font-mono)}
.property-row{margin-bottom:12px}
.property-label{display:block;font-size:11px;color:var(--text-pearl-dim);margin-bottom:6px;font-weight:500;font-family:var(--font-mono);letter-spacing:0.03em;text-transform:uppercase}
.property-select,.property-input{width:100%;padding:9px 11px;border-radius:10px;background:rgba(255,255,255,0.04);border:1px solid var(--border-pearl);color:var(--text-pearl);font-size:13px;font-family:var(--font-sans);outline:none;transition:all var(--duration-base) var(--ease-lux);-webkit-appearance:none;appearance:none}
.property-select:focus,.property-input:focus{border-color:rgba(139,92,246,0.5);background:rgba(139,92,246,0.06);box-shadow:0 0 0 3px rgba(139,92,246,0.1)}
.color-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.color-swatch{width:26px;height:26px;border-radius:8px;border:2px solid transparent;cursor:pointer;transition:all var(--duration-fast) var(--ease-spring);padding:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.1)}
.color-swatch:hover{transform:scale(1.15)}
.color-swatch.active{border-color:var(--c-aurora-purple);box-shadow:0 0 0 2px rgba(139,92,246,0.2),inset 0 0 0 1px rgba(0,0,0,0.1)}
.color-picker{width:32px;height:26px;border-radius:8px;border:1px solid var(--border-pearl);background:transparent;cursor:pointer;padding:0}
.btn-row{display:flex;gap:4px;flex-wrap:wrap}
.prop-btn{padding:8px 10px;border-radius:8px;background:rgba(255,255,255,0.04);border:1px solid transparent;color:var(--text-pearl-muted);font-family:var(--font-sans);font-weight:600;font-size:13px;cursor:pointer;transition:all var(--duration-base) var(--ease-lux);min-width:36px;display:inline-flex;align-items:center;justify-content:center}
.prop-btn.italic{font-style:italic}
.prop-btn:hover{background:rgba(250,249,247,0.08);color:var(--text-pearl);border-color:var(--border-pearl)}
.prop-btn.active{background:var(--aurora-gradient);color:var(--c-ink);box-shadow:0 4px 14px -2px rgba(139,92,246,0.4)}

.layer-row{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:11px;background:rgba(255,255,255,0.03);border:1px solid transparent;cursor:pointer;transition:all var(--duration-base) var(--ease-lux)}
.layer-row:hover{background:rgba(250,249,247,0.06);border-color:var(--border-pearl)}
.layer-row.active{background:var(--aurora-gradient-soft);border-color:rgba(139,92,246,0.3)}
.layer-icon{font-size:16px;flex-shrink:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:rgba(255,255,255,0.06)}
.layer-meta{min-width:0}
.layer-name{font-size:13px;font-weight:500;color:var(--text-pearl);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.layer-type{font-size:10px;color:var(--text-pearl-dim);font-family:var(--font-mono);margin-top:2px}
.layer-del{width:28px;height:28px;border-radius:8px;border:none;background:transparent;color:var(--text-pearl-dim);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--duration-fast) var(--ease-lux);flex-shrink:0}
.layer-del:hover{background:rgba(244,63,94,0.12);color:#F43F5E}

.export-drawer{position:fixed;right:24px;bottom:24px;z-index:800;width:380px;max-width:calc(100vw - 48px);pointer-events:auto;transition:transform var(--duration-base) var(--ease-lux)}
.export-drawer:not(.open){transform:translateX(calc(100% - 44px))}
.export-drawer-toggle{position:absolute;left:-40px;top:14px;width:36px;height:36px;border-radius:12px;background:var(--glass-bg-3);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--border-pearl-strong);color:var(--text-pearl);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--duration-base) var(--ease-lux);box-shadow:var(--shadow-luxury)}
.export-drawer-toggle:hover{background:var(--aurora-gradient-soft);transform:scale(1.1)}
.export-drawer-toggle .rot-180{transform:rotate(180deg);display:inline-block}
.export-drawer-inner{background:var(--glass-bg-3);backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);border:1px solid var(--border-pearl-strong);border-radius:22px;box-shadow:0 40px 100px -20px rgba(0,0,0,0.5);padding:18px;overflow:hidden;position:relative}
.export-drawer-inner::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(139,92,246,0.06) 0%,transparent 50%);pointer-events:none}
.export-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px;position:relative;z-index:1}
.export-aurora-dot{width:40px;height:40px;border-radius:50%;background:conic-gradient(from 0deg,#8B5CF6,#EC4899,#F59E0B,#8B5CF6);filter:blur(2px);animation:auroraRotate 6s linear infinite;box-shadow:0 0 30px rgba(139,92,246,0.4)}
@keyframes auroraRotate{to{transform:rotate(360deg)}}
.export-grid{display:grid;grid-template-columns:1fr;gap:10px;max-height:56vh;overflow-y:auto;padding-right:2px;position:relative;z-index:1;scrollbar-width:thin;scrollbar-color:rgba(250,249,247,0.15) transparent}
.export-grid::-webkit-scrollbar{width:5px}.export-grid::-webkit-scrollbar-thumb{background:rgba(250,249,247,0.12);border-radius:3px}
.export-card{padding:14px;border-radius:16px;background:rgba(255,255,255,0.04);border:1px solid var(--border-pearl);transition:all var(--duration-base) var(--ease-lux);position:relative;overflow:hidden}
.export-card:hover{background:rgba(255,255,255,0.07);border-color:var(--border-pearl-strong);transform:translateY(-1px)}
.export-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.export-card-title{display:flex;align-items:center;gap:8px}
.export-icon{font-size:18px}
.plan-badge{padding:3px 8px;border-radius:999px;font-size:10px;font-weight:700;font-family:var(--font-mono);letter-spacing:0.04em;text-transform:uppercase}
.plan-badge.plan-free{background:rgba(16,185,129,0.15);color:#34D399;border:1px solid rgba(16,185,129,0.25)}
.plan-badge.plan-starter{background:rgba(139,92,246,0.15);color:#C4B5FD;border:1px solid rgba(139,92,246,0.3)}
.plan-badge.plan-standard{background:rgba(236,72,153,0.15);color:#F9A8D4;border:1px solid rgba(236,72,153,0.3)}
.plan-badge.plan-premium{background:rgba(252,211,77,0.15);color:#FCD34D;border:1px solid rgba(252,211,77,0.3)}
.export-options{display:flex;gap:5px;flex-wrap:wrap}
.export-chip{padding:6px 10px;border-radius:9px;background:rgba(255,255,255,0.04);border:1px solid transparent;color:var(--text-pearl-muted);font-size:11px;font-weight:600;font-family:var(--font-mono);cursor:pointer;transition:all var(--duration-base) var(--ease-lux);position:relative;display:inline-flex;align-items:center;gap:4px}
.export-chip:hover{background:rgba(250,249,247,0.08);border-color:var(--border-pearl);color:var(--text-pearl)}
.export-chip.active{background:var(--aurora-gradient);color:var(--c-ink);box-shadow:0 3px 12px -1px rgba(139,92,246,0.4);border-color:transparent}
.export-chip.lock-premium::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:2}
.chip-lock{font-size:10px;line-height:1}
.export-options-label{font-weight:600;display:block}
.export-options-stack{display:flex;flex-direction:column}
.export-worker-desc{margin-bottom:8px}
.export-progress-wrap{margin-bottom:14px;position:relative;z-index:1}
.export-progress-bar{height:8px;border-radius:999px;background:rgba(255,255,255,0.06);overflow:hidden;position:relative;border:1px solid var(--border-pearl)}
.export-progress-fill{height:100%;border-radius:inherit;transition:width 0.4s var(--ease-lux);animation:shimmer 2s linear infinite;background-size:200% 100%}
.export-progress-fill.done{animation:none}
.export-progress-meta{display:flex;align-items:center;gap:8px;margin-top:7px;font-size:11px;color:var(--text-pearl-muted);font-family:var(--font-mono)}
.export-spinner{width:12px;height:12px;border-radius:50%;border:2px solid var(--border-pearl-strong);border-top-color:#EC4899;border-right-color:#8B5CF6;animation:spin 0.7s linear infinite;display:inline-block;flex-shrink:0}
@keyframes spin{to{transform:rotate(360deg)}}
.export-check{width:14px;height:14px;border-radius:50%;background:linear-gradient(135deg,#10B981,#34D399);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;flex-shrink:0;box-shadow:0 3px 10px rgba(16,185,129,0.4)}
.export-pct{font-weight:600;color:var(--text-pearl)}
.export-size{opacity:0.8}

@media(max-width:1279px){.export-drawer{width:340px}.editor-canvas{width:100%}}
@media(max-width:768px){.export-drawer{right:12px;bottom:12px;left:12px;width:auto;max-width:none}.export-drawer:not(.open){transform:translateY(calc(100% - 56px));}.export-drawer-toggle{left:50%;top:-18px;transform:translateX(-50%) rotate(-90deg)}.export-drawer:not(.open) .export-drawer-toggle .rot-180{transform:rotate(90deg)}}

/* =========================================================
   LUXURY ENTRANCE ANIMATIONS — revealUp, revealFade, stagger
   ========================================================= */
@keyframes revealUp {
  0% { opacity: 0; transform: translateY(24px) scale(0.98); filter: blur(6px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes revealFade {
  0% { opacity: 0; transform: scale(0.995); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes revealLeft {
  0% { opacity: 0; transform: translateX(-32px); filter: blur(4px); }
  100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}
@keyframes revealRight {
  0% { opacity: 0; transform: translateX(32px); filter: blur(4px); }
  100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}
@keyframes revealScale {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}
.animate-reveal-up { animation: revealUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-reveal-fade { animation: revealFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-reveal-left { animation: revealLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-reveal-right { animation: revealRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-reveal-scale { animation: revealScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 80ms; }
.stagger > *:nth-child(3) { animation-delay: 160ms; }
.stagger > *:nth-child(4) { animation-delay: 240ms; }
.stagger > *:nth-child(5) { animation-delay: 320ms; }
.stagger > *:nth-child(6) { animation-delay: 400ms; }
.stagger > *:nth-child(7) { animation-delay: 480ms; }
.stagger > *:nth-child(8) { animation-delay: 560ms; }
.stagger > *:nth-child(n+9) { animation-delay: 640ms; }

/* =========================================================
   PRIMARY BUTTON — hover tilt 12° + sweep highlight
   ========================================================= */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 45%, #F59E0B 100%);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: #0A0A1A;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  box-shadow: 0 10px 28px -10px rgba(139, 92, 246, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: perspective(600px) rotateX(0) rotateY(0) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              background-position 0.6s ease;
  overflow: hidden;
  will-change: transform;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.0) 20%,
    rgba(255, 255, 255, 0.55) 45%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.55) 55%,
    rgba(255, 255, 255, 0.0) 80%,
    transparent 100%);
  transform: skewX(-20deg);
  filter: blur(0.5px);
  pointer-events: none;
  z-index: 2;
  transition: left 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary:hover:not(:disabled) {
  transform: perspective(600px) rotateX(-3deg) rotateY(12deg) translateZ(0) translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 18px 44px -14px rgba(236, 72, 153, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.btn-primary:hover:not(:disabled)::before { left: 160%; }
.btn-primary:active:not(:disabled) { transform: perspective(600px) rotateX(0) rotateY(3deg) translateY(0) scale(0.985); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.25); }
.btn-primary > * { position: relative; z-index: 3; }

.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 14px;
  background: rgba(250, 249, 247, 0.04);
  border: 1px solid rgba(250, 249, 247, 0.15);
  color: rgba(250, 249, 247, 0.9);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-ghost:hover { background: rgba(250, 249, 247, 0.085); border-color: rgba(250, 249, 247, 0.28); transform: translateY(-1px); }

/* =========================================================
   MARQUEE — seamless scroll, hover pause
   ========================================================= */
@keyframes marqueeLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marqueeRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeLeft 25s linear infinite;
}
.marquee-track.marquee-slow { animation-duration: 40s; }
.marquee-track.marquee-fast { animation-duration: 15s; }
.marquee-track.marquee-reverse { animation-name: marqueeRight; animation-direction: normal; }
.marquee-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}
.marquee-wrap:hover .marquee-track,
.marquee-track:hover { animation-play-state: paused !important; }
.marquee-card {
  flex-shrink: 0;
  margin: 0 10px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.marquee-card:hover { transform: translateY(-4px) scale(1.02); z-index: 2; }

/* =========================================================
   LOCK PREMIUM — corner badge + tooltip
   ========================================================= */
.lock-premium {
  position: relative;
  overflow: hidden;
}
.lock-premium > * { pointer-events: auto; }
.lock-premium::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(10, 10, 26, 0) 55%, rgba(10, 10, 26, 0.55) 100%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.lock-premium:hover::after { opacity: 1; }
.lock-premium-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(139, 92, 246, 0.7);
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.lock-premium:hover .lock-premium-badge { transform: scale(1) rotate(-4deg); }
.lock-premium-tip {
  position: absolute;
  top: calc(10px + 38px);
  left: 10px;
  z-index: 6;
  padding: 7px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.98), rgba(236, 72, 153, 0.98));
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  box-shadow: 0 10px 24px -8px rgba(139, 92, 246, 0.65);
}
.lock-premium-tip::before {
  content: "";
  position: absolute;
  top: -5px; left: 12px;
  width: 10px; height: 10px;
  background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%);
  transform: rotate(45deg);
}
.lock-premium:hover .lock-premium-tip {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   CATEGORY GRID — luxury aurora border hover
   ========================================================= */
.category-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
@media (max-width: 1279px) { .category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 479px)  { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card-luxury {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(250, 249, 247, 0.10);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 40px -20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.4s ease,
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.4s ease;
  overflow: hidden;
}
.card-luxury::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(135deg, transparent 40%, rgba(139, 92, 246, 0) 40%, rgba(139, 92, 246, 0) 60%, transparent 60%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
          mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  transition: background 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.card-luxury:hover {
  border-color: rgba(236, 72, 153, 0.35);
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 22px 56px -24px rgba(139, 92, 246, 0.55),
    0 0 0 1px rgba(139, 92, 246, 0.12) inset;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}
.card-luxury:hover::before {
  background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 38%, #F59E0B 68%, transparent 100%);
  opacity: 1;
}
.card-luxury.category-card {
  padding: 18px 16px;
  min-height: 108px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.card-luxury.category-card .cat-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.18));
  font-size: 20px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease, filter 0.4s ease;
}
.card-luxury.category-card:hover .cat-icon {
  transform: scale(1.12) rotate(-6deg);
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  filter: drop-shadow(0 4px 10px rgba(139, 92, 246, 0.5));
}
.card-luxury.category-card .cat-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  color: rgba(250, 249, 247, 0.92);
  line-height: 1.3;
}
.card-luxury.category-card .cat-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(250, 249, 247, 0.48);
  letter-spacing: 0.02em;
}
.card-luxury.category-card:hover .cat-count { color: rgba(236, 72, 153, 0.85); }

/* =========================================================
   AURORA TEXT — gradient + animated shimmer
   ========================================================= */
.aurora-text {
  background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 42%, #F59E0B 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: auroraShift 5.5s ease-in-out infinite;
}
@keyframes auroraShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* =========================================================
   PROGRESSIVE IMG — 3-stage fade transitions
   ========================================================= */
.prog-img-wrap { position: relative; overflow: hidden; background: #14141F; }
.prog-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.prog-placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%;
  filter: blur(8px) saturate(1.1);
  transform: scale(1.1);
  opacity: 1;
  transition: opacity 0.6s ease, filter 0.8s ease;
  will-change: opacity, filter;
}
.prog-preview {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0;
  filter: blur(3px) saturate(1.02);
  transition: opacity 0.4s ease, filter 0.6s ease;
  will-change: opacity;
}
.prog-original {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0;
  filter: blur(0);
  transition: opacity 0.55s ease, filter 0.7s ease;
  will-change: opacity;
}
.prog-img-wrap.preview-loaded .prog-placeholder { opacity: 0.25; filter: blur(14px); }
.prog-img-wrap.preview-loaded .prog-preview { opacity: 1; filter: blur(0); }
.prog-img-wrap.original-loaded .prog-preview { opacity: 0; filter: blur(4px); }
.prog-img-wrap.original-loaded .prog-placeholder { opacity: 0; }
.prog-img-wrap.original-loaded .prog-original { opacity: 1; filter: blur(0); }

/* =========================================================
   SAVE RIBBON — for annual pricing
   ========================================================= */
.save-ribbon {
  position: absolute;
  top: -3px; right: -3px;
  padding: 6px 12px 6px 16px;
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  color: #062618;
  font-size: 10.5px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 20px;
  box-shadow: 0 6px 18px -6px rgba(16, 185, 129, 0.7);
  z-index: 4;
  animation: ribbonBounce 3.5s ease-in-out infinite;
}
@keyframes ribbonBounce {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  45%      { transform: translate(-1px, 1.5px) rotate(-1.2deg); }
  55%      { transform: translate(1px, -1px) rotate(1.2deg); }
}

/* =========================================================
   UPGRADE MODAL — entrance slide
   ========================================================= */
@keyframes modalIn {
  0%   { opacity: 0; transform: translateY(24px) scale(0.97); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes overlayIn {
  0%   { opacity: 0; backdrop-filter: blur(0); }
  100% { opacity: 1; backdrop-filter: blur(14px); }
}
.upgrade-overlay { animation: overlayIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
.upgrade-modal   { animation: modalIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes confettiFall {
  0%   { transform: translateY(-120%) rotate(0deg); opacity: 1; }
  100% { transform: translateY(120vh) rotate(720deg); opacity: 0.2; }
}
.confetti-piece {
  position: fixed;
  width: 8px; height: 10px;
  top: -20px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
  z-index: 9999;
  pointer-events: none;
  will-change: transform, opacity;
}

/* =========================================================
   SUCCESS CIRCLE — payment success pulse
   ========================================================= */
@keyframes successPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55), 0 0 0 0 rgba(16, 185, 129, 0.25); transform: scale(1); }
  50%  { box-shadow: 0 0 0 22px rgba(16, 185, 129, 0),  0 0 0 40px rgba(16, 185, 129, 0); transform: scale(1.04); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0),      0 0 0 0 rgba(16, 185, 129, 0); transform: scale(1); }
}
@keyframes successCircleScale {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.success-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  animation: successCircleScale 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.success-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: successPulse 2.6s ease-out 0.4s infinite;
  pointer-events: none;
}
.success-circle svg { filter: drop-shadow(0 4px 8px rgba(6, 38, 24, 0.35)); }

/* =========================================================
   INPUT CAPSULE BILLING TOGGLE
   ========================================================= */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(250, 249, 247, 0.12);
  position: relative;
}
.billing-toggle button {
  position: relative;
  z-index: 2;
  padding: 8px 18px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: rgba(250, 249, 247, 0.65);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.billing-toggle button.active { color: #0A0A1A; }
.billing-toggle-thumb {
  position: absolute;
  z-index: 1;
  top: 4px;
  bottom: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #F59E0B 100%);
  background-size: 200% 200%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 8px 22px -6px rgba(139, 92, 246, 0.55);
  animation: auroraShift 6s ease-in-out infinite;
}
.billing-toggle.annual .billing-toggle-thumb { transform: translateX(calc(100% + 4px)); }

/* =========================================================
   AURORA BACKGROUND DELUXE
   ========================================================= */
.aurora-bg-deluxe {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background: #0A0A1A;
}
.aurora-bg-deluxe .aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
  transition: transform 0.18s linear;
}
.aurora-bg-deluxe .aurora-blob.blob-purple {
  width: 680px; height: 680px;
  top: -220px; left: -180px;
  background: radial-gradient(circle at 30% 30%, #7C3AED 0%, #6D28D9 38%, transparent 72%);
}
.aurora-bg-deluxe .aurora-blob.blob-pink {
  width: 580px; height: 580px;
  top: -100px; right: -140px;
  background: radial-gradient(circle at 70% 40%, #DB2777 0%, #BE185D 35%, transparent 70%);
}
.aurora-bg-deluxe .aurora-blob.blob-amber {
  width: 720px; height: 720px;
  bottom: -280px; left: 30%;
  background: radial-gradient(circle at 50% 60%, #D97706 0%, #B45309 32%, transparent 72%);
  opacity: 0.4;
}
.aurora-bg-deluxe canvas.aurora-noise {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  animation: noiseBreath 5.5s ease-in-out infinite;
}
@keyframes noiseBreath {
  0%, 100% { opacity: 0.05; }
  50%      { opacity: 0.095; }
}

