/* ═══════════════════════════════════════════════════════════════════
   SUPERSUITE SSV26.1 — OFFICIAL LAUNCH STYLESHEET
   Complete UI: Landing · Builder · Modals · Collab · Projects
═══════════════════════════════════════════════════════════════════ */

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

:root{
  --ui-bg:#0f0f13;
  --ui-surface:#16161e;
  --ui-surface2:#1e1e28;
  --ui-surface3:#252530;
  --ui-border:#2a2a38;
  --ui-border2:#33334a;
  --ui-text:#f0f0fa;
  --ui-text2:#9090b0;
  --ui-accent:#ff6b35;
  --ui-accent2:#ff8c5a;
  --ui-accent-glow:rgba(255,107,53,0.3);
  --ui-success:#22c55e;
  --ui-warning:#f59e0b;
  --ui-danger:#ef4444;
  --ui-blue:#3b82f6;
  --ui-purple:#8b5cf6;
  --sidebar-w:290px;
  --rp-w:300px;
  --nav-h:60px;
  --r-sm:6px;
  --r-md:10px;
  --r-lg:16px;
  --r-xl:24px;
  --sh-sm:0 2px 8px rgba(0,0,0,.3);
  --sh-md:0 8px 24px rgba(0,0,0,.4);
  --sh-lg:0 16px 48px rgba(0,0,0,.5);
  --sh-accent:0 8px 32px rgba(255,107,53,.4);
  --t:all .2s cubic-bezier(.4,0,.2,1);
  --t-slow:all .4s cubic-bezier(.4,0,.2,1);
  --t-spring:all .3s cubic-bezier(.34,1.56,.64,1);
}

html{scroll-behavior:smooth}
body{font-family:'DM Sans',system-ui,sans-serif;background:var(--ui-bg);color:var(--ui-text);-webkit-font-smoothing:antialiased}
body.lp-active{overflow:auto;height:auto}
body.builder-active{overflow:hidden;height:100vh}
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:var(--ui-surface)}
::-webkit-scrollbar-thumb{background:var(--ui-border2);border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:var(--ui-accent)}

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════════════════════════════ */
.lp-root{font-family:'DM Sans',system-ui,sans-serif;background:var(--ui-bg);color:var(--ui-text);overflow-x:hidden}

/* Nav */
.lp-nav{position:sticky;top:0;z-index:200;background:rgba(15,15,19,.9);backdrop-filter:blur(16px);border-bottom:1px solid var(--ui-border)}
.lp-nav-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;padding:0 24px;height:64px;gap:24px}
.lp-nav-logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
.lp-logo-mark{width:36px;height:36px;background:linear-gradient(135deg,var(--ui-accent),#ff3d00);border-radius:10px;display:flex;align-items:center;justify-content:center;font-family:'Syne',sans-serif;font-weight:800;font-size:13px;color:white;box-shadow:var(--sh-accent);flex-shrink:0}
.lp-logo-text{font-family:'Syne',sans-serif;font-weight:800;font-size:20px;color:var(--ui-text);letter-spacing:-.3px}
.lp-version-tag{font-size:10px;font-weight:700;letter-spacing:.3px;background:rgba(255,107,53,.12);border:1px solid rgba(255,107,53,.28);color:var(--ui-accent);padding:2px 7px;border-radius:20px}
.lp-nav-links{display:flex;align-items:center;gap:28px;flex:1}
.lp-nav-links a{color:var(--ui-text2);font-size:14px;font-weight:500;text-decoration:none;transition:var(--t)}
.lp-nav-links a:hover{color:var(--ui-text)}
.lp-nav-cta{background:linear-gradient(135deg,var(--ui-accent),#ff3d00);border:none;border-radius:var(--r-md);padding:9px 20px;color:white;font-size:14px;font-weight:700;font-family:'DM Sans',sans-serif;cursor:pointer;transition:var(--t-spring);box-shadow:var(--sh-accent);white-space:nowrap;flex-shrink:0}
.lp-nav-cta:hover{transform:translateY(-2px);box-shadow:0 12px 36px rgba(255,107,53,.5)}
.lp-hamburger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:6px;margin-left:auto}
.lp-hamburger span{display:block;width:22px;height:2px;background:var(--ui-text);border-radius:2px;transition:var(--t)}
.lp-nav-mobile{display:none;flex-direction:column;border-top:1px solid var(--ui-border);background:var(--ui-surface);padding:12px 24px 20px}
.lp-nav-mobile.open{display:flex}
.lp-nav-mobile a{color:var(--ui-text2);font-size:15px;font-weight:500;text-decoration:none;padding:11px 0;border-bottom:1px solid var(--ui-border);display:block}
.lp-nav-mobile a:hover{color:var(--ui-text)}

/* Hero */
.lp-hero{position:relative;overflow:hidden;padding:100px 24px 80px;text-align:center}
.lp-hero-orb{position:absolute;border-radius:50%;pointer-events:none;filter:blur(60px)}
.lp-orb-1{width:600px;height:600px;background:radial-gradient(circle,rgba(255,107,53,.12),transparent 70%);top:-150px;left:50%;transform:translateX(-50%)}
.lp-orb-2{width:400px;height:400px;background:radial-gradient(circle,rgba(139,92,246,.1),transparent 70%);top:80px;right:-100px}
.lp-orb-3{width:300px;height:300px;background:radial-gradient(circle,rgba(59,130,246,.08),transparent 70%);bottom:0;left:-80px}
.lp-hero-inner{position:relative;z-index:1;max-width:840px;margin:0 auto}
.lp-hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,107,53,.1);border:1px solid rgba(255,107,53,.25);border-radius:50px;padding:6px 16px;font-size:13px;font-weight:600;color:var(--ui-accent);margin-bottom:28px}
.lp-hero-heading{font-family:'Syne',sans-serif;font-size:clamp(36px,6vw,72px);font-weight:800;line-height:1.1;letter-spacing:-2px;margin-bottom:20px;color:var(--ui-text)}
.lp-hero-accent{background:linear-gradient(135deg,var(--ui-accent),#ff3d00,#a78bfa);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.lp-hero-sub{font-size:clamp(16px,2vw,19px);color:var(--ui-text2);line-height:1.7;max-width:640px;margin:0 auto 36px}
.lp-hero-ctas{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin-bottom:48px}
.lp-btn-primary{background:linear-gradient(135deg,var(--ui-accent),#ff3d00);border:none;border-radius:var(--r-md);padding:14px 32px;font-size:16px;font-weight:700;color:white;cursor:pointer;font-family:'DM Sans',sans-serif;transition:var(--t-spring);box-shadow:var(--sh-accent)}
.lp-btn-primary:hover{transform:translateY(-3px);box-shadow:0 16px 48px rgba(255,107,53,.5)}
.lp-btn-ghost{background:rgba(255,255,255,.05);border:1px solid var(--ui-border2);border-radius:var(--r-md);padding:14px 28px;font-size:16px;font-weight:600;color:var(--ui-text2);text-decoration:none;display:inline-flex;align-items:center;transition:var(--t)}
.lp-btn-ghost:hover{background:rgba(255,255,255,.08);color:var(--ui-text)}
.lp-hero-stats{display:flex;align-items:center;justify-content:center;gap:32px;margin-bottom:56px;flex-wrap:wrap}
.lp-stat{display:flex;flex-direction:column;align-items:center;gap:3px}
.lp-stat-num{font-family:'Syne',sans-serif;font-size:32px;font-weight:800;color:var(--ui-text);letter-spacing:-1px}
.lp-stat-label{font-size:12px;color:var(--ui-text2);font-weight:500}
.lp-stat-divider{width:1px;height:40px;background:var(--ui-border2)}

/* Demo mockup */
.lp-demo-preview{background:var(--ui-surface);border:1px solid var(--ui-border2);border-radius:var(--r-lg);overflow:hidden;box-shadow:0 32px 80px rgba(0,0,0,.6);max-width:840px;margin:0 auto}
.lp-demo-chrome{background:var(--ui-surface2);border-bottom:1px solid var(--ui-border);display:flex;align-items:center;gap:10px;padding:10px 16px}
.lp-demo-dots{display:flex;gap:5px}
.lp-demo-dots span{width:10px;height:10px;border-radius:50%}
.lp-demo-dots span:nth-child(1){background:#ff5f57}
.lp-demo-dots span:nth-child(2){background:#febc2e}
.lp-demo-dots span:nth-child(3){background:#28c840}
.lp-demo-url{flex:1;text-align:center;font-size:12px;color:var(--ui-text2);background:var(--ui-surface3);border-radius:6px;padding:4px 12px;max-width:260px;margin:0 auto}
.lp-demo-screen{display:flex;height:280px}
.lp-demo-sidebar{width:130px;flex-shrink:0;background:var(--ui-surface2);border-right:1px solid var(--ui-border);padding:10px 8px;display:flex;flex-direction:column;gap:6px}
.lp-ds-item{height:36px;background:var(--ui-surface3);border-radius:6px;border:1px solid var(--ui-border)}
.lp-demo-canvas{flex:1;display:flex;flex-direction:column;gap:6px;padding:10px;background:#1a1a2e;overflow:hidden}
.lp-demo-block{border-radius:6px;flex-shrink:0}
.lp-db-hero{height:90px;background:linear-gradient(135deg,#1a1a2e,#16213e);border:1px solid rgba(255,107,53,.3);padding:12px;display:flex;flex-direction:column;gap:6px;justify-content:center}
.lp-db-hero-line{height:10px;width:60%;background:rgba(255,255,255,.5);border-radius:4px}
.lp-db-hero-sub{height:6px;width:80%;background:rgba(255,255,255,.2);border-radius:3px}
.lp-db-hero-btn{height:8px;width:30%;background:var(--ui-accent);border-radius:4px;margin-top:2px}
.lp-db-feat{height:60px;background:rgba(255,255,255,.03);border:1px solid var(--ui-border);padding:8px}
.lp-db-feat-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;height:100%}
.lp-db-feat-grid div{background:rgba(255,255,255,.06);border-radius:3px}
.lp-db-price{height:72px;background:rgba(255,107,53,.06);border:1px solid rgba(255,107,53,.2);padding:8px}
.lp-db-price-cards{display:flex;gap:4px;align-items:flex-end;height:100%}
.lp-db-price-cards div{flex:1;background:rgba(255,255,255,.08);border-radius:3px}
.lp-db-pc-featured{background:var(--ui-accent)!important;height:80%!important}
.lp-demo-right{width:90px;flex-shrink:0;background:var(--ui-surface2);border-left:1px solid var(--ui-border);padding:10px 8px;display:flex;flex-direction:column;gap:6px}
.lp-dr-item{height:20px;background:var(--ui-surface3);border-radius:4px;border:1px solid var(--ui-border)}
.lp-dr-color{background:rgba(255,107,53,.2);border-color:rgba(255,107,53,.3);height:14px}

/* Section commons */
.lp-section-inner{max-width:1200px;margin:0 auto;padding:0 24px}
.lp-section-label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:1.2px;color:var(--ui-accent);margin-bottom:12px}
.lp-section-title{font-family:'Syne',sans-serif;font-size:clamp(28px,4vw,48px);font-weight:800;letter-spacing:-1.5px;color:var(--ui-text);margin-bottom:12px;line-height:1.1}
.lp-title-light{color:#fff}
.lp-section-sub{font-size:17px;color:var(--ui-text2);line-height:1.7;max-width:560px;margin-bottom:56px}
.lp-sub-light{color:rgba(255,255,255,.6)}

/* Features */
.lp-features{padding:96px 0;border-top:1px solid var(--ui-border)}
.lp-features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.lp-feat-card{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:var(--r-lg);padding:28px;transition:var(--t)}
.lp-feat-card:hover{border-color:var(--ui-accent);transform:translateY(-3px);box-shadow:0 12px 40px rgba(0,0,0,.3)}
.lp-feat-icon{font-size:24px;margin-bottom:14px;width:52px;height:52px;background:rgba(255,107,53,.08);border-radius:12px;border:1px solid rgba(255,107,53,.15);display:flex;align-items:center;justify-content:center}
.lp-feat-card h3{font-family:'Syne',sans-serif;font-size:16px;font-weight:700;color:var(--ui-text);margin-bottom:8px}
.lp-feat-card p{font-size:14px;color:var(--ui-text2);line-height:1.7}

/* Pricing */
.lp-pricing{padding:96px 0;background:var(--ui-surface);border-top:1px solid var(--ui-border);border-bottom:1px solid var(--ui-border)}
.lp-pricing-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;align-items:start}
.lp-plan-card{background:rgba(255,255,255,.03);border:1px solid var(--ui-border2);border-radius:var(--r-lg);padding:28px 22px;position:relative;transition:var(--t)}
.lp-plan-card:hover{border-color:rgba(255,107,53,.3);transform:translateY(-3px)}
.lp-plan-featured{background:rgba(255,107,53,.07);border-color:var(--ui-accent);box-shadow:0 0 0 1px var(--ui-accent)}
.lp-plan-badge{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:var(--ui-accent);color:white;font-size:11px;font-weight:700;padding:4px 14px;border-radius:20px;white-space:nowrap}
.lp-plan-name{font-size:12px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--ui-text2);margin-bottom:10px}
.lp-plan-price{font-family:'Syne',sans-serif;font-size:44px;font-weight:800;color:var(--ui-text);letter-spacing:-2px;line-height:1;margin-bottom:8px}
.lp-plan-price span{font-size:16px;font-weight:500;color:var(--ui-text2);letter-spacing:0}
.lp-plan-desc{font-size:13px;color:var(--ui-text2);margin-bottom:20px;line-height:1.5}
.lp-plan-features{list-style:none;display:flex;flex-direction:column;gap:8px;margin-bottom:24px}
.lp-plan-features li{font-size:13px;color:rgba(255,255,255,.8);line-height:1.4}
.lp-feat-off{color:var(--ui-text2)!important;opacity:.5}
.lp-plan-btn{width:100%;background:var(--ui-surface2);border:1px solid var(--ui-border2);border-radius:var(--r-md);padding:11px 16px;color:var(--ui-text);font-size:13px;font-weight:600;font-family:'DM Sans',sans-serif;cursor:pointer;transition:var(--t-spring)}
.lp-plan-btn:hover{border-color:var(--ui-accent);color:var(--ui-accent)}
.lp-plan-btn-featured{background:linear-gradient(135deg,var(--ui-accent),#ff3d00);border-color:transparent;color:white;box-shadow:var(--sh-accent)}
.lp-plan-btn-featured:hover{transform:translateY(-2px);box-shadow:0 12px 36px rgba(255,107,53,.5);color:white}
.lp-pricing-note{text-align:center;margin-top:32px;font-size:13px;color:var(--ui-text2)}

/* FAQ */
.lp-faq{padding:96px 0;border-top:1px solid var(--ui-border)}
.lp-faq-list{display:flex;flex-direction:column;gap:2px;max-width:760px}
.lp-faq-item{border-bottom:1px solid var(--ui-border)}
.lp-faq-q{width:100%;background:none;border:none;display:flex;align-items:center;justify-content:space-between;padding:18px 0;color:var(--ui-text);font-size:15px;font-weight:600;font-family:'DM Sans',sans-serif;cursor:pointer;text-align:left;gap:12px;transition:var(--t)}
.lp-faq-q:hover{color:var(--ui-accent)}
.lp-faq-arrow{font-size:16px;flex-shrink:0;transition:transform .25s ease}
.lp-faq-q.open .lp-faq-arrow{transform:rotate(180deg)}
.lp-faq-a{font-size:14px;color:var(--ui-text2);line-height:1.8;padding-bottom:18px;display:none}
.lp-faq-a.open{display:block}
.lp-faq-a strong{color:var(--ui-text)}

/* Landing Footer */
.lp-footer{border-top:1px solid var(--ui-border);background:var(--ui-surface);padding:28px 0}
.lp-footer-inner{max-width:1200px;margin:0 auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.lp-footer-brand{display:flex;align-items:center;gap:10px}
.lp-footer-copy{font-size:13px;color:var(--ui-text2)}
.lp-footer-copy a{color:var(--ui-text2);text-decoration:none;transition:var(--t)}
.lp-footer-copy a:hover{color:var(--ui-accent)}

/* ═══════════════════════════════════════════════════════════════
   LOGIN MODAL
═══════════════════════════════════════════════════════════════ */
.login-modal-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.75);backdrop-filter:blur(6px);animation:fadeIn .2s ease}
.login-modal-card{background:rgba(22,22,30,.97);border:1px solid rgba(255,107,53,.22);border-radius:var(--r-xl);padding:44px 40px;width:460px;max-width:calc(100vw - 32px);box-shadow:0 32px 96px rgba(0,0,0,.65),inset 0 1px 0 rgba(255,255,255,.04);backdrop-filter:blur(24px);position:relative;animation:slideUp .4s cubic-bezier(.34,1.56,.64,1) both}
.login-modal-close{position:absolute;top:16px;right:16px;background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:var(--r-sm);width:28px;height:28px;color:var(--ui-text2);font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:var(--t)}
.login-modal-close:hover{border-color:var(--ui-danger);color:var(--ui-danger)}
.login-modal-title{font-family:'Syne',sans-serif;font-weight:700;font-size:20px;color:var(--ui-text);margin-bottom:6px}
.login-modal-sub{font-size:13px;color:var(--ui-text2);margin-bottom:4px}
.login-modal-sub a{color:var(--ui-accent);text-decoration:none}
.login-tier-hint{display:flex;align-items:center;gap:8px;background:rgba(255,107,53,.08);border:1px solid rgba(255,107,53,.2);border-radius:var(--r-sm);padding:8px 12px;margin-top:8px;font-size:13px;color:var(--ui-accent)}
.login-modal-tiers{margin-top:20px;display:flex;flex-direction:column;gap:6px}

@keyframes slideUp{from{opacity:0;transform:translateY(40px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}

/* Gate styles */
.gate-logo{display:flex;align-items:center;gap:12px;margin-bottom:28px}
.gate-logo-mark{width:48px;height:48px;background:linear-gradient(135deg,var(--ui-accent),#ff3d00);border-radius:14px;display:flex;align-items:center;justify-content:center;font-family:'Syne',sans-serif;font-weight:800;font-size:18px;color:white;box-shadow:var(--sh-accent);letter-spacing:-1px;flex-shrink:0}
.gate-logo-text{font-family:'Syne',sans-serif;font-weight:800;font-size:28px;background:linear-gradient(135deg,#fff,#a0a0c0);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;letter-spacing:-.5px}
.gate-input-wrap{display:flex;gap:8px;width:100%}
.gate-input-wrap input{flex:1;background:rgba(255,255,255,.05);border:1px solid var(--ui-border2);border-radius:var(--r-md);padding:12px 16px;color:var(--ui-text);font-size:15px;font-family:'DM Sans',sans-serif;outline:none;transition:var(--t)}
.gate-input-wrap input:focus{border-color:var(--ui-accent);background:rgba(255,107,53,.05);box-shadow:0 0 0 3px var(--ui-accent-glow)}
.gate-input-wrap button{background:linear-gradient(135deg,var(--ui-accent),#ff3d00);border:none;border-radius:var(--r-md);padding:12px 20px;color:white;font-weight:600;font-size:14px;cursor:pointer;transition:var(--t-spring);font-family:'DM Sans',sans-serif;white-space:nowrap;box-shadow:var(--sh-accent)}
.gate-input-wrap button:hover{transform:translateY(-2px);box-shadow:0 12px 40px rgba(255,107,53,.5)}
.gate-error{color:var(--ui-danger);font-size:13px;min-height:20px;margin-top:8px;margin-bottom:4px}
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}
.gate-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--ui-text2);background:rgba(255,255,255,.03);border:1px solid var(--ui-border);border-radius:20px;padding:6px 12px}

/* Tier refs */
.lmt-row{display:flex;align-items:center;gap:10px;padding:7px 10px;background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:var(--r-sm)}
.lmt-code{font-family:'Courier New',monospace;font-size:12px;color:var(--ui-text);background:var(--ui-surface3);border:1px solid var(--ui-border2);padding:2px 7px;border-radius:4px;min-width:82px;text-align:center}
.lmt-tier{font-size:11px;font-weight:700;padding:2px 8px;border-radius:20px;letter-spacing:.3px;white-space:nowrap}
.lmt-free{background:rgba(144,144,176,.15);color:var(--ui-text2);border:1px solid var(--ui-border2)}
.lmt-basic{background:rgba(59,130,246,.15);color:#60a5fa;border:1px solid rgba(59,130,246,.3)}
.lmt-pro{background:rgba(255,107,53,.15);color:var(--ui-accent);border:1px solid rgba(255,107,53,.3)}
.lmt-agency{background:rgba(139,92,246,.15);color:#a78bfa;border:1px solid rgba(139,92,246,.3)}
.lmt-limit{font-size:11px;color:var(--ui-text2);margin-left:auto;white-space:nowrap}

/* ═══════════════════════════════════════════════════════════════
   BUILDER APP SHELL
═══════════════════════════════════════════════════════════════ */
.app-shell{display:flex;flex-direction:column;height:100vh;width:100vw;overflow:hidden;animation:fadeIn .4s ease both}

/* Top Nav */
.top-nav{height:var(--nav-h);flex-shrink:0;background:var(--ui-surface);border-bottom:1px solid var(--ui-border);display:flex;align-items:center;padding:0 14px;gap:10px;z-index:100}
.nav-left{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.nav-center{display:flex;align-items:center;justify-content:center;flex:1}
.nav-right{display:flex;align-items:center;gap:8px;flex:1;justify-content:flex-end}
.nav-logo{display:flex;align-items:center;gap:8px;flex-shrink:0}
.nav-logo-mark{width:32px;height:32px;background:linear-gradient(135deg,var(--ui-accent),#ff3d00);border-radius:8px;display:flex;align-items:center;justify-content:center;font-family:'Syne',sans-serif;font-weight:800;font-size:12px;color:white;letter-spacing:-.5px;flex-shrink:0}
.nav-logo-text{font-family:'Syne',sans-serif;font-weight:800;font-size:16px;color:var(--ui-text);letter-spacing:-.3px}
.nav-site-name input{background:rgba(255,255,255,.04);border:1px solid var(--ui-border);border-radius:var(--r-sm);padding:6px 12px;color:var(--ui-text);font-size:13px;font-family:'DM Sans',sans-serif;outline:none;width:180px;transition:var(--t)}
.nav-site-name input:focus{border-color:var(--ui-accent);background:rgba(255,107,53,.05)}
.device-switcher{display:flex;align-items:center;gap:2px;background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:var(--r-md);padding:4px}
.device-btn{width:36px;height:32px;background:none;border:none;border-radius:6px;color:var(--ui-text2);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:var(--t)}
.device-btn svg{width:16px;height:16px}
.device-btn:hover{background:var(--ui-surface3);color:var(--ui-text)}
.device-btn.active{background:var(--ui-accent);color:white}
.nav-session-info{display:flex;align-items:center;gap:8px;background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:var(--r-md);padding:5px 12px;cursor:default;transition:var(--t);flex-shrink:0}
.nav-session-info:hover{border-color:var(--ui-accent)}
.nav-tier-badge{font-size:11px;font-weight:700;letter-spacing:.3px;padding:2px 8px;border-radius:20px;background:rgba(144,144,176,.1);color:var(--ui-text2);border:1px solid var(--ui-border2)}
.nav-tier-badge.free{background:rgba(144,144,176,.1);color:var(--ui-text2);border-color:var(--ui-border2)}
.nav-tier-badge.basic{background:rgba(59,130,246,.15);color:#60a5fa;border-color:rgba(59,130,246,.3)}
.nav-tier-badge.pro{background:rgba(255,107,53,.15);color:var(--ui-accent);border-color:rgba(255,107,53,.3)}
.nav-tier-badge.agency{background:rgba(139,92,246,.15);color:#a78bfa;border-color:rgba(139,92,246,.3)}
.nav-timer{font-family:'Courier New',monospace;font-size:12px;color:var(--ui-text2);min-width:38px}
.nav-timer.warning{color:var(--ui-warning)}
.nav-timer.danger{color:var(--ui-danger)}


.btn-preview{display:flex;align-items:center;gap:6px;background:var(--ui-surface2);border:1px solid var(--ui-border2);border-radius:var(--r-md);padding:8px 14px;color:var(--ui-text);font-size:13px;font-weight:500;font-family:'DM Sans',sans-serif;cursor:pointer;transition:var(--t);white-space:nowrap}
.btn-preview svg{width:14px;height:14px}
.btn-preview:hover{border-color:var(--ui-accent);color:var(--ui-accent)}
.btn-export{background:linear-gradient(135deg,var(--ui-accent),#ff3d00);border:none;border-radius:var(--r-md);padding:8px 18px;color:white;font-size:13px;font-family:'Syne',sans-serif;font-weight:700;cursor:pointer;transition:var(--t-spring);box-shadow:var(--sh-accent);white-space:nowrap}
.btn-export:hover{transform:translateY(-2px);box-shadow:0 12px 40px rgba(255,107,53,.5)}

/* Builder Layout */
.builder-layout{display:flex;flex:1;overflow:hidden}

/* Sidebar */
.sidebar{width:var(--sidebar-w);flex-shrink:0;background:var(--ui-surface);border-right:1px solid var(--ui-border);display:flex;flex-direction:column;overflow:hidden}
.sidebar-tabs{display:flex;border-bottom:1px solid var(--ui-border);flex-shrink:0;padding:6px 6px 0;gap:2px;overflow-x:auto}
.stab{flex:1;min-width:48px;display:flex;flex-direction:column;align-items:center;gap:3px;background:none;border:none;border-radius:var(--r-sm) var(--r-sm) 0 0;border-bottom:2px solid transparent;padding:8px 4px;color:var(--ui-text2);font-size:9px;font-family:'DM Sans',sans-serif;font-weight:500;cursor:pointer;transition:var(--t);white-space:nowrap}
.stab svg{width:13px;height:13px}
.stab:hover{background:var(--ui-surface2);color:var(--ui-text)}
.stab.active{background:var(--ui-surface2);color:var(--ui-accent);border-bottom-color:var(--ui-accent)}
.tab-content{display:none;flex-direction:column;flex:1;overflow-y:auto}
.tab-content.active{display:flex}
.tab-header{padding:14px 14px 10px;border-bottom:1px solid var(--ui-border);flex-shrink:0;position:relative}
.tab-header h3{font-family:'Syne',sans-serif;font-weight:700;font-size:13px;color:var(--ui-text);margin-bottom:2px}
.tab-header p{font-size:11px;color:var(--ui-text2)}
.tab-header-action{position:absolute;top:12px;right:10px;background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:var(--r-sm);padding:3px 8px;color:var(--ui-text2);font-size:11px;font-weight:600;font-family:'DM Sans',sans-serif;cursor:pointer;transition:var(--t)}
.tab-header-action:hover{border-color:var(--ui-accent);color:var(--ui-accent);background:rgba(255,107,53,.06)}

/* Block Library */
.block-library{padding:8px 6px;display:flex;flex-direction:column;gap:4px}
.block-card{background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:var(--r-md);overflow:hidden;cursor:pointer;transition:var(--t)}
.block-card:hover{border-color:var(--ui-accent);box-shadow:0 0 0 1px var(--ui-accent),var(--sh-sm);transform:translateY(-1px)}
.block-card-preview{height:48px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;letter-spacing:.5px;position:relative;overflow:hidden}
.hero-preview{background:linear-gradient(135deg,#1a1a2e,#16213e);color:rgba(255,255,255,.6);flex-direction:column;gap:3px}
.bcp-title{font-size:11px;font-weight:800;color:rgba(255,255,255,.8)}
.bcp-sub{font-size:9px;color:rgba(255,255,255,.4)}
.form-preview{background:linear-gradient(135deg,#0f2027,#203a43);padding:0 12px}
.bcp-form-lines{display:flex;flex-direction:column;gap:4px;width:100%}
.bcp-form-lines div{height:6px;background:rgba(255,255,255,.15);border-radius:3px}
.bcp-form-lines div:nth-child(2){width:70%}
.bcp-btn-mini{height:8px!important;width:40%!important;background:var(--ui-accent)!important;border-radius:4px!important}
.test-preview{background:linear-gradient(135deg,#1a1a2e,#2d1b69);flex-direction:column;gap:4px}
.bcp-stars{color:#ffd700;font-size:10px}
.bcp-quote-lines{display:flex;flex-direction:column;gap:3px;width:80%}
.bcp-quote-lines div{height:4px;background:rgba(255,255,255,.2);border-radius:2px}
.pricing-preview{background:linear-gradient(135deg,#0a0a0f,#1a1a2e);padding:0 8px}
.bcp-price-cards{display:flex;gap:4px;align-items:flex-end}
.bcp-pc{width:28px;height:28px;background:rgba(255,255,255,.1);border-radius:4px}
.bcp-pc.featured{height:36px;background:var(--ui-accent)}
.cta-preview{background:linear-gradient(135deg,var(--ui-accent),#ff3d00)}
.bcp-cta-inner{display:flex;flex-direction:column;align-items:center;gap:6px}
.bcp-cta-line{width:80px;height:6px;background:rgba(255,255,255,.4);border-radius:3px}
.bcp-cta-btn{width:40px;height:8px;background:white;border-radius:4px;opacity:.8}
.nav-preview{background:rgba(15,15,20,.9);padding:0 8px}
.bcp-nav-inner{display:flex;align-items:center;justify-content:space-between;width:100%}
.bcp-nav-logo{width:20px;height:10px;background:var(--ui-accent);border-radius:2px}
.bcp-nav-links{display:flex;gap:4px}
.bcp-nav-links div{width:14px;height:4px;background:rgba(255,255,255,.3);border-radius:2px}
.feat-preview{background:linear-gradient(135deg,#0d1117,#161b22);padding:0 8px}
.bcp-feat-grid{display:flex;gap:6px}
.bcp-feat-grid div{flex:1;height:30px;background:rgba(255,255,255,.08);border-radius:4px}
.gallery-preview{background:#111;padding:0 8px}
.bcp-gallery-grid{display:grid;grid-template-columns:1fr 1fr;gap:3px}
.bcp-gallery-grid div{height:20px;background:rgba(255,255,255,.15);border-radius:2px}
.widget-preview{background:linear-gradient(135deg,#0d2137,#1a3a5c);padding:0 10px}
.bcp-widget-inner{display:flex;align-items:center;gap:8px;width:100%}
.bcp-w-icon{font-size:18px}
.bcp-w-lines{display:flex;flex-direction:column;gap:3px;flex:1}
.bcp-w-lines div{height:5px;background:rgba(255,255,255,.2);border-radius:2px}
.bcp-w-lines div:nth-child(2){width:60%}
.footer-preview{background:#050508;padding:0 8px;flex-direction:column;gap:4px}
.bcp-footer-inner{width:100%;display:flex;flex-direction:column;gap:4px}
.bcp-footer-cols{display:flex;gap:6px}
.bcp-footer-cols div{flex:1;height:16px;background:rgba(255,255,255,.08);border-radius:2px}
.bcp-footer-line{height:2px;background:rgba(255,255,255,.06);border-radius:1px}
.block-card-label{display:flex;align-items:center;gap:10px;padding:7px 12px;border-top:1px solid var(--ui-border)}
.block-icon{font-size:16px}
.block-card-label strong{display:block;font-size:12px;font-weight:600;color:var(--ui-text)}
.block-card-label small{display:block;font-size:10px;color:var(--ui-text2);margin-top:1px}

/* Templates */
.template-list{padding:10px 8px;display:flex;flex-direction:column;gap:8px}
.template-card{background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:var(--r-md);overflow:hidden;cursor:pointer;transition:var(--t);position:relative}
.template-card:hover{border-color:var(--ui-accent);transform:translateY(-1px)}
.template-card.active{border-color:var(--ui-accent);box-shadow:0 0 0 1px var(--ui-accent)}
.tpl-preview{height:72px;position:relative;overflow:hidden}
.glass-tpl-prev{background:linear-gradient(135deg,#e8e8f0,#c8c8d8)}
.glp-blur-card{position:absolute;top:10px;left:16px;width:80px;height:45px;background:rgba(255,255,255,.4);backdrop-filter:blur(8px);border-radius:10px;border:1px solid rgba(255,255,255,.6);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.glp-blur-card2{position:absolute;top:20px;right:12px;width:60px;height:35px;background:rgba(255,255,255,.3);backdrop-filter:blur(6px);border-radius:8px;border:1px solid rgba(255,255,255,.5)}
.glp-bg-orb{position:absolute;bottom:-20px;left:-10px;width:80px;height:80px;background:radial-gradient(circle,rgba(255,107,53,.4),transparent);border-radius:50%}
.bold-tpl-prev{background:#fafaf8;padding:10px 14px;display:flex;flex-direction:column;gap:5px}
.btp-line{height:6px;background:#1a1a2e;border-radius:3px}
.btp-line.big{width:80%;height:10px}
.btp-line.med{width:55%}
.btp-accent{width:30%;height:4px;background:var(--ui-accent);border-radius:2px}
.custom-tpl-prev{background:#0d1117;display:flex;align-items:center;justify-content:center}
.ctp-code{font-family:'Courier New',monospace;font-size:11px;color:#22c55e}
.tpl-info{padding:10px 12px}
.tpl-info strong{display:block;font-size:12px;font-weight:600;color:var(--ui-text)}
.tpl-info small{display:block;font-size:10px;color:var(--ui-text2);margin-top:2px}
.tpl-check{position:absolute;top:8px;right:8px;width:20px;height:20px;background:var(--ui-accent);border-radius:50%;display:none;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:white}
.template-card.active .tpl-check{display:flex}
.custom-css-panel{padding:12px;border-top:1px solid var(--ui-border)}
.custom-css-panel label{display:block;font-size:11px;color:var(--ui-text2);margin-bottom:6px;font-weight:600}
.custom-css-panel textarea{width:100%;height:120px;background:var(--ui-bg);border:1px solid var(--ui-border2);border-radius:var(--r-sm);padding:8px;color:#22c55e;font-family:'Courier New',monospace;font-size:11px;outline:none;resize:vertical;transition:var(--t)}
.custom-css-panel textarea:focus{border-color:var(--ui-accent)}
.custom-css-panel button{width:100%;margin-top:8px;background:var(--ui-accent);border:none;border-radius:var(--r-sm);padding:8px;color:white;font-size:12px;font-weight:600;cursor:pointer}
.custom-css-panel button:hover{background:var(--ui-accent2)}

/* Styles Tab */
.style-section{padding:14px;border-bottom:1px solid var(--ui-border)}
.style-section h4{font-family:'Syne',sans-serif;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--ui-text2);margin-bottom:10px}
.style-row{display:flex;align-items:center;margin-bottom:8px;gap:8px}
.style-row label{font-size:12px;color:var(--ui-text2);flex:1;min-width:70px}
.style-row select{flex:1.4;background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:var(--r-sm);padding:6px 8px;color:var(--ui-text);font-size:12px;font-family:'DM Sans',sans-serif;outline:none;cursor:pointer}
.style-row select:focus{border-color:var(--ui-accent)}
.color-input-wrap{display:flex;align-items:center;gap:6px;flex:1.4}
.color-input-wrap input[type="color"]{width:32px;height:30px;border:2px solid var(--ui-border2);border-radius:var(--r-sm);background:none;cursor:pointer;padding:2px}
.color-input-wrap input[type="color"]:hover{border-color:var(--ui-accent)}
.color-hex{flex:1;background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:var(--r-sm);padding:5px 7px;color:var(--ui-text);font-size:11px;font-family:'Courier New',monospace;outline:none}
.color-hex:focus{border-color:var(--ui-accent)}
.slider-wrap{display:flex;align-items:center;gap:8px;flex:1.4}
.slider-wrap input[type="range"]{flex:1;-webkit-appearance:none;height:4px;border-radius:2px;background:var(--ui-border2);outline:none;cursor:pointer}
.slider-wrap input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:var(--ui-accent);cursor:pointer;box-shadow:var(--sh-sm)}
.slider-wrap span{font-size:11px;color:var(--ui-text2);min-width:36px;text-align:right}

/* Projects Tab */
.projects-toolbar{display:flex;gap:8px;padding:10px;border-bottom:1px solid var(--ui-border);flex-shrink:0}
.proj-btn-new,.proj-btn-save{flex:1;border:none;border-radius:var(--r-sm);padding:8px;font-size:12px;font-weight:600;font-family:'DM Sans',sans-serif;cursor:pointer;transition:var(--t)}
.proj-btn-new{background:var(--ui-accent);color:white}
.proj-btn-new:hover{background:var(--ui-accent2)}
.proj-btn-save{background:var(--ui-surface2);border:1px solid var(--ui-border);color:var(--ui-text)}
.proj-btn-save:hover{border-color:var(--ui-accent);color:var(--ui-accent)}
.projects-list{padding:8px;display:flex;flex-direction:column;gap:4px}
.project-item{background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:var(--r-sm);padding:10px 12px;cursor:pointer;transition:var(--t);display:flex;align-items:center;gap:10px}
.project-item:hover{border-color:var(--ui-accent)}
.project-item.active{border-color:var(--ui-accent);background:rgba(255,107,53,.08)}
.project-item-icon{font-size:18px}
.project-item-info{flex:1;min-width:0}
.project-item-name{font-size:13px;font-weight:600;color:var(--ui-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-item-meta{font-size:10px;color:var(--ui-text2);margin-top:2px}
.project-item-actions{display:flex;gap:4px}
.proj-action-btn{width:22px;height:22px;background:none;border:1px solid transparent;border-radius:4px;color:var(--ui-text2);cursor:pointer;font-size:11px;display:flex;align-items:center;justify-content:center;transition:var(--t)}
.proj-action-btn:hover{background:var(--ui-surface3);border-color:var(--ui-border);color:var(--ui-text)}
.proj-action-btn.danger:hover{background:rgba(239,68,68,.1);border-color:var(--ui-danger);color:var(--ui-danger)}
.projects-empty{font-size:12px;color:var(--ui-text2);text-align:center;padding:24px 12px}

/* Layers */
.layers-list{padding:8px;display:flex;flex-direction:column;gap:4px}
.empty-layers{font-size:12px;color:var(--ui-text2);text-align:center;padding:24px 12px}
.layer-item{display:flex;align-items:center;gap:8px;background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:var(--r-sm);padding:8px 10px;cursor:pointer;transition:var(--t);user-select:none}
.layer-item:hover{border-color:var(--ui-accent)}
.layer-item.active{border-color:var(--ui-accent);background:rgba(255,107,53,.08)}
.layer-drag-handle{color:var(--ui-text2);cursor:grab;font-size:14px}
.layer-icon{font-size:14px}
.layer-label{flex:1;font-size:12px;color:var(--ui-text);font-weight:500}
.layer-actions{display:flex;gap:3px}
.layer-btn{width:22px;height:22px;background:none;border:1px solid transparent;border-radius:4px;color:var(--ui-text2);cursor:pointer;font-size:11px;display:flex;align-items:center;justify-content:center;transition:var(--t)}
.layer-btn:hover{background:var(--ui-surface3);border-color:var(--ui-border);color:var(--ui-text)}
.layer-btn.danger:hover{background:rgba(239,68,68,.1);border-color:var(--ui-danger);color:var(--ui-danger)}

/* Canvas */
.canvas-area{flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--ui-bg)}
.canvas-toolbar{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;border-bottom:1px solid var(--ui-border);background:var(--ui-surface);flex-shrink:0}
.canvas-info{font-size:12px;color:var(--ui-text2);font-weight:500}
.zoom-controls{display:flex;align-items:center;gap:4px}
.zoom-controls button{width:28px;height:28px;background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:var(--r-sm);color:var(--ui-text);cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center;transition:var(--t)}
.zoom-controls button:hover{border-color:var(--ui-accent);color:var(--ui-accent)}
#zoom-label{font-size:12px;color:var(--ui-text2);min-width:40px;text-align:center}
.canvas-scroll-area{flex:1;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:24px;background:repeating-linear-gradient(0deg,transparent,transparent 39px,rgba(255,255,255,.02) 39px,rgba(255,255,255,.02) 40px),repeating-linear-gradient(90deg,transparent,transparent 39px,rgba(255,255,255,.02) 39px,rgba(255,255,255,.02) 40px)}
.canvas-wrapper{transform-origin:top center;transition:width .3s ease;box-shadow:0 0 0 1px var(--ui-border),var(--sh-lg);border-radius:4px;overflow:hidden;background:white}
.preview-frame{width:100%;height:800px;border:none;display:block}

/* Right Panel */
.right-panel{width:var(--rp-w);flex-shrink:0;background:var(--ui-surface);border-left:1px solid var(--ui-border);display:flex;flex-direction:column;transition:width .3s ease}
.right-panel.closed{width:0;overflow:hidden}
.right-panel-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--ui-border);flex-shrink:0}
.right-panel-header h3{font-family:'Syne',sans-serif;font-weight:700;font-size:13px;color:var(--ui-text)}
.rp-close{background:none;border:none;color:var(--ui-text2);cursor:pointer;font-size:14px;padding:4px;border-radius:4px;transition:var(--t)}
.rp-close:hover{background:var(--ui-surface2);color:var(--ui-text)}
.rp-content{flex:1;overflow-y:auto;padding:12px}
.rp-empty{display:flex;flex-direction:column;align-items:center;padding:40px 20px;text-align:center;gap:12px}
.rp-empty-icon{font-size:32px;opacity:.5}
.rp-empty p{font-size:13px;color:var(--ui-text2);line-height:1.5}

/* ═══════════════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════════════ */
.modal-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.72);backdrop-filter:blur(4px);animation:fadeIn .2s ease}
.modal-box{background:var(--ui-surface);border:1px solid var(--ui-border2);border-radius:var(--r-xl);width:620px;max-width:calc(100vw - 32px);max-height:90vh;display:flex;flex-direction:column;box-shadow:var(--sh-lg),0 0 0 1px rgba(255,255,255,.04);animation:slideUp .3s cubic-bezier(.34,1.56,.64,1) both}
.modal-narrow{width:460px}
.modal-fullscreen{width:calc(100vw - 48px);height:calc(100vh - 48px)}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--ui-border);flex-shrink:0}
.modal-header h3{font-family:'Syne',sans-serif;font-weight:700;font-size:16px;color:var(--ui-text)}
.modal-header button{background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:var(--r-sm);padding:6px 12px;color:var(--ui-text2);cursor:pointer;font-size:13px;font-family:'DM Sans',sans-serif;transition:var(--t)}
.modal-header button:hover{border-color:var(--ui-accent);color:var(--ui-text)}
.modal-body{flex:1;overflow-y:auto;padding:24px}
.preview-body{padding:0}
.modal-footer{display:flex;gap:10px;justify-content:flex-end;padding:16px 24px;border-top:1px solid var(--ui-border);flex-shrink:0}
.btn-primary{background:linear-gradient(135deg,var(--ui-accent),#ff3d00);border:none;border-radius:var(--r-md);padding:10px 24px;color:white;font-weight:600;font-size:13px;cursor:pointer;transition:var(--t-spring);font-family:'DM Sans',sans-serif}
.btn-primary:hover{transform:translateY(-1px);box-shadow:var(--sh-accent)}
.btn-primary.full-width{width:100%}
.btn-secondary{background:var(--ui-surface2);border:1px solid var(--ui-border2);border-radius:var(--r-md);padding:10px 24px;color:var(--ui-text);font-weight:500;font-size:13px;cursor:pointer;transition:var(--t);font-family:'DM Sans',sans-serif}
.btn-secondary:hover{background:var(--ui-surface3)}

/* Block Settings */
.bsm-tabs{display:flex;gap:2px;margin-bottom:20px;border-bottom:1px solid var(--ui-border)}
.bsm-tab{padding:8px 16px;background:none;border:none;border-bottom:2px solid transparent;color:var(--ui-text2);font-size:13px;font-family:'DM Sans',sans-serif;font-weight:500;cursor:pointer;transition:var(--t);margin-bottom:-1px}
.bsm-tab:hover{color:var(--ui-text)}
.bsm-tab.active{border-bottom-color:var(--ui-accent);color:var(--ui-accent)}
.bsm-panel{display:none}
.bsm-panel.active{display:block}
.bsm-field{margin-bottom:16px}
.bsm-field label{display:block;font-size:12px;color:var(--ui-text2);margin-bottom:6px;font-weight:500}
.bsm-field input[type="text"],.bsm-field input[type="url"],.bsm-field textarea,.bsm-field select{width:100%;background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:var(--r-sm);padding:10px 12px;color:var(--ui-text);font-size:13px;font-family:'DM Sans',sans-serif;outline:none;transition:var(--t)}
.bsm-field input:focus,.bsm-field textarea:focus,.bsm-field select:focus{border-color:var(--ui-accent)}
.bsm-field textarea{resize:vertical;min-height:80px}
.bsm-color-row{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.bsm-color-row label{font-size:12px;color:var(--ui-text2);flex:1}
.bsm-color-row input[type="color"]{width:36px;height:32px;border:1px solid var(--ui-border);border-radius:var(--r-sm);background:none;cursor:pointer;padding:2px}

/* Export */
.export-success{text-align:center;padding:20px 0}
.export-rocket{font-size:56px;margin-bottom:16px;animation:rocketBounce 1s ease infinite alternate}
@keyframes rocketBounce{from{transform:translateY(0)}to{transform:translateY(-8px)}}
.export-success h4{font-family:'Syne',sans-serif;font-size:20px;font-weight:700;color:var(--ui-text);margin-bottom:8px}
.export-success p{font-size:14px;color:var(--ui-text2);margin-bottom:16px}
.export-success code{background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:4px;padding:2px 6px;font-family:'Courier New',monospace;font-size:12px;color:var(--ui-accent)}
.export-files-list{display:flex;flex-direction:column;gap:8px;background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:var(--r-md);padding:16px;margin-bottom:16px}
.efl-item{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--ui-text)}
.export-note{font-size:12px!important;color:var(--ui-text2)!important}

/* Block Selector */
.bsl-list{display:flex;flex-direction:column;gap:6px}
.bsl-item{display:flex;align-items:center;gap:12px;background:var(--ui-surface2);border:1px solid var(--ui-border);border-radius:var(--r-sm);padding:10px 14px;cursor:pointer;transition:var(--t);user-select:none}
.bsl-item:hover{border-color:var(--ui-accent)}
.bsl-item.enabled{border-color:rgba(34,197,94,.3)}
.bsl-check{width:18px;height:18px;border-radius:4px;border:2px solid var(--ui-border2);display:flex;align-items:center;justify-content:center;font-size:11px;flex-shrink:0;transition:var(--t)}
.bsl-item.enabled .bsl-check{background:var(--ui-success);border-color:var(--ui-success);color:white}
.bsl-icon{font-size:18px}
.bsl-label{font-size:13px;font-weight:500;color:var(--ui-text);flex:1}
.bsl-desc{font-size:11px;color:var(--ui-text2)}

/* Collaboration Modal */

.collab-section h4{font-family:'Syne',sans-serif;font-size:14px;font-weight:700;color:var(--ui-text);margin-bottom:8px}





/* Toasts */
.toast-container{position:fixed;bottom:24px;right:24px;z-index:9998;display:flex;flex-direction:column;gap:8px;pointer-events:none}
.toast{background:var(--ui-surface);border:1px solid var(--ui-border2);border-radius:var(--r-md);padding:12px 16px;color:var(--ui-text);font-size:13px;box-shadow:var(--sh-md);display:flex;align-items:center;gap:10px;animation:toastSlide .3s cubic-bezier(.34,1.56,.64,1) both;pointer-events:all;max-width:320px}
@keyframes toastSlide{from{opacity:0;transform:translateX(40px)}to{opacity:1;transform:translateX(0)}}
.toast.success{border-color:var(--ui-success)}
.toast.error{border-color:var(--ui-danger)}
.toast.info{border-color:var(--ui-blue)}
.toast-icon{font-size:18px;flex-shrink:0}
.toast-title{font-weight:600;font-size:13px}
.toast-msg{font-size:12px;color:var(--ui-text2);margin-top:1px}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media(max-width:1100px){:root{--rp-w:260px}}
@media(max-width:900px){
  .lp-features-grid{grid-template-columns:repeat(2,1fr)}
  .lp-pricing-grid{grid-template-columns:repeat(2,1fr)}
  .lp-nav-links,.lp-nav-cta{display:none}
  .lp-hamburger{display:flex}
  .right-panel{display:none}
  :root{--sidebar-w:260px}
}
@media(max-width:640px){
  .lp-features-grid{grid-template-columns:1fr}
  .lp-pricing-grid{grid-template-columns:1fr}
  .lp-hero{padding:60px 16px 48px}
  .lp-hero-ctas{flex-direction:column;align-items:stretch}
  .lp-btn-primary,.lp-btn-ghost{text-align:center;justify-content:center}
  .lp-hero-stats{gap:16px}
  .lp-stat-divider{display:none}
  .lp-section-inner{padding:0 16px}
  .lp-features,.lp-pricing,.lp-faq{padding:56px 0}
  .lp-demo-sidebar,.lp-demo-right{display:none}
  .lp-demo-screen{height:180px}
  .lp-footer-inner{flex-direction:column;text-align:center}
  .login-modal-card{padding:32px 20px}
  .lmt-limit{display:none}
  .nav-session-info,.nav-logo-text{display:none}
  .nav-site-name{display:none}
  .top-nav{padding:0 8px;gap:6px}
  .btn-export{font-size:11px;padding:7px 10px}
  
}
@media(max-width:480px){
  .lp-pricing-grid{grid-template-columns:1fr}
  .modal-box{border-radius:var(--r-lg)}
  .device-switcher{display:none}
}


/* ═══════════════════════════════════════════════════════════════
   SSV26.1 PATCHES — All Critical Bug Fixes & Feature Additions
═══════════════════════════════════════════════════════════════ */

/* ── FIX 8: IMPROVED CLOSE BUTTON VISIBILITY & HITBOX ──────── */
.modal-close-btn {
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--ui-surface3) !important;
  border: 1px solid var(--ui-border2) !important;
  border-radius: var(--r-sm) !important;
  color: var(--ui-text) !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  transition: background .15s, border-color .15s, color .15s !important;
  flex-shrink: 0 !important;
}
.modal-close-btn:hover {
  background: var(--ui-danger) !important;
  border-color: var(--ui-danger) !important;
  color: white !important;
  transform: none !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.2) !important;
}

/* ── FIX 9: HISTORY NAV ARROWS ─────────────────────────────── */
.history-nav-arrows { display: flex; gap: 4px; align-items: center; }
.hist-arrow-btn {
  min-width: 32px;
  min-height: 32px;
  padding: 0 10px;
  background: var(--ui-surface2);
  border: 1px solid var(--ui-border);
  border-radius: var(--r-sm);
  color: var(--ui-text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hist-arrow-btn:hover:not(:disabled) {
  background: var(--ui-surface3);
  border-color: var(--ui-accent);
  color: var(--ui-accent);
}
.hist-arrow-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── FIX 1: COLLAB SYNC BAR ─────────────────────────────────── */
.collab-sync-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--r-sm);
  margin-bottom: 10px;
  transition: all .3s;
}
.collab-sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ui-success);
  animation: syncPulse 1.5s ease infinite;
  flex-shrink: 0;
}
@keyframes syncPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.collab-sync-bar.syncing { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.3); }
.collab-sync-bar.syncing .collab-sync-dot { background: var(--ui-warning); animation: none; }
.collab-sync-bar.syncing 
.collab-sync-bar.error { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.3); }
.collab-sync-bar.error .collab-sync-dot { background: var(--ui-danger); animation: none; }
.collab-sync-bar.error 

/* ── FIX 2: GLASS SQUARE COLOR SYSTEM UI ───────────────────── */
.bsm-glass-swatch {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.glass-swatch-item {
  aspect-ratio: 1;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s, border-color .2s;
}
.glass-swatch-item.active { border-color: var(--ui-accent); transform: scale(1.1); }
.glass-swatch-item:hover { transform: scale(1.08); }
.glass-range-group { margin-bottom: 12px; }
.glass-range-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ui-text2);
  margin-bottom: 6px;
}
.glass-range-group input[type="range"] { width: 100%; accent-color: var(--ui-accent); }

/* ── FIX 3: PRICING TIER CONTROLS ──────────────────────────── */
.pricing-tier-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}
.pricing-tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.pricing-tier-label { font-size: 11px; font-weight: 700; color: var(--ui-accent); text-transform: uppercase; letter-spacing: .5px; }
.pricing-tier-actions { display: flex; gap: 4px; }
.tier-action-btn {
  min-width: 28px;
  min-height: 28px;
  padding: 0 6px;
  background: var(--ui-surface3);
  border: 1px solid var(--ui-border);
  border-radius: var(--r-sm);
  color: var(--ui-text2);
  cursor: pointer;
  font-size: 12px;
  transition: var(--t);
  display: flex; align-items: center; justify-content: center;
}
.tier-action-btn:hover { border-color: var(--ui-accent); color: var(--ui-accent); }
.tier-action-btn.danger:hover { border-color: var(--ui-danger); color: var(--ui-danger); }
.add-tier-btn {
  width: 100%;
  padding: 10px;
  background: rgba(255,107,53,0.06);
  border: 1px dashed rgba(255,107,53,0.35);
  border-radius: var(--r-sm);
  color: var(--ui-accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: var(--t);
  font-family: 'DM Sans', sans-serif;
  margin-top: 4px;
}
.add-tier-btn:hover { background: rgba(255,107,53,0.12); }

/* ── FIX 6: NEW THEME PREVIEW TILES ────────────────────────── */
.neon-tpl-prev { background: #0a0a0f; position: relative; overflow: hidden; }
.ntp-line { position: absolute; top: 35%; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg,#00ff88,#00d4ff); box-shadow: 0 0 10px #00ff88; border-radius: 2px; }
.ntp-glow { position: absolute; top: 5%; left: 15%; width: 70%; height: 30%; background: radial-gradient(ellipse, rgba(0,255,136,0.12), transparent); }
.ntp-badge { position: absolute; bottom: 15%; left: 50%; transform: translateX(-50%); width: 45%; height: 22%; background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.4); border-radius: 3px; box-shadow: 0 0 8px rgba(0,255,136,0.25); }

.editorial-tpl-prev { background: #faf8f5; display: flex; flex-direction: column; gap: 5px; padding: 10px; }
.etp-serif { height: 10px; background: #1a1a1a; width: 78%; border-radius: 1px; }
.etp-rule { height: 2px; background: #c5a35e; margin: 1px 0; }
.etp-cols { display: flex; gap: 5px; flex: 1; }
.etp-cols > div { flex: 1; background: #e8e4df; border-radius: 2px; }

/* ── FIX 11: WEBHOOK SECTION ───────────────────────────────── */
.webhook-section {
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--r-md);
  padding: 14px;
}
.webhook-section h5 { font-size: 11px; font-weight: 700; color: var(--ui-blue); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.webhook-test-btn {
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: var(--r-sm);
  padding: 6px 14px;
  color: var(--ui-blue);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: var(--t);
  margin-top: 8px;
}
.webhook-test-btn:hover { background: rgba(59,130,246,0.22); }
.webhook-status { font-size: 11px; margin-top: 6px; min-height: 14px; }
.webhook-status.ok { color: var(--ui-success); }
.webhook-status.fail { color: var(--ui-danger); }

/* ── FIX 7/10: PER-ELEMENT COLOR CONTROLS ──────────────────── */
.element-color-grid { display: flex; flex-direction: column; gap: 8px; }
.ecg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-sm);
}
.ecg-label { flex: 1; font-size: 12px; color: var(--ui-text2); font-weight: 500; }
.ecg-colors { display: flex; gap: 5px; align-items: center; }
.ecg-colors input[type="color"] { width: 28px; height: 26px; border-radius: 4px; border: 1px solid var(--ui-border); cursor: pointer; padding: 1px; background: none; }

/* ── FIX 13: HERO EDITOR COMPACT STYLES ────────────────────── */
.hero-live-preview-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--r-sm);
  font-size: 11px;
  color: var(--ui-text2);
  margin-bottom: 12px;
}
.hero-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ui-success);
  animation: syncPulse 1.5s ease infinite;
  flex-shrink: 0;
}

/* ── CANVAS TOOLBAR LAYOUT FIX ─────────────────────────────── */
.canvas-toolbar { display: flex; align-items: center; gap: 12px; }



/* ═══════════════════════════════════════════════════════════════════
   SSV26.2 — FEATURE 4: LIQUID GLASS UI UPGRADE (builder only)
═══════════════════════════════════════════════════════════════════ */
:root {
  --glass-blur: 10px;
  --glass-blur-strong: 18px;
  --glass-bg-bg: rgba(15,15,19,0.55);
  --glass-bg-panel: rgba(22,22,30,0.62);
  --glass-bg-fg: rgba(30,30,40,0.78);
  --glass-border: 1px solid rgba(255,255,255,0.08);
  --glass-border-strong: 1px solid rgba(255,255,255,0.14);
}

/* Layered transparency: panels < modals < foreground popovers */
.modal-overlay {
  background: rgba(5,5,10,0.55) !important;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.modal-box {
  background: var(--glass-bg-fg) !important;
  border: var(--glass-border-strong) !important;
  backdrop-filter: blur(var(--glass-blur-strong));
  -webkit-backdrop-filter: blur(var(--glass-blur-strong));
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
}
.sidebar, .right-panel {
  background: var(--glass-bg-panel) !important;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-right: var(--glass-border);
}
.right-panel { border-left: var(--glass-border); border-right: none; }
.top-nav {
  background: rgba(15,15,19,0.78) !important;
  backdrop-filter: blur(var(--glass-blur-strong));
  -webkit-backdrop-filter: blur(var(--glass-blur-strong));
  border-bottom: var(--glass-border);
}
.canvas-toolbar {
  background: rgba(22,22,30,0.55);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: var(--glass-border);
}
.lp-nav {
  background: rgba(15,15,19,0.7) !important;
  backdrop-filter: blur(var(--glass-blur-strong));
  -webkit-backdrop-filter: blur(var(--glass-blur-strong));
}
.toast-container .toast {
  background: var(--glass-bg-fg) !important;
  backdrop-filter: blur(var(--glass-blur));
  border: var(--glass-border-strong);
}
.login-modal-card {
  background: var(--glass-bg-fg) !important;
  backdrop-filter: blur(var(--glass-blur-strong));
  border: var(--glass-border-strong) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   SSV26.2 — F5: SCROLL ANIMATION PICKER (in Styles tab)
═══════════════════════════════════════════════════════════════════ */
.scroll-anim-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.scroll-anim-chip {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  background: var(--ui-surface2);
  border: 1px solid var(--ui-border);
  border-radius: var(--r-md);
  color: var(--ui-text);
  cursor: pointer;
  transition: var(--t);
  font-family: 'DM Sans', sans-serif;
  text-align: left;
}
.scroll-anim-chip:hover {
  border-color: var(--ui-accent);
  background: var(--ui-surface3);
  transform: translateY(-1px);
}
.scroll-anim-chip.active {
  border-color: var(--ui-accent);
  background: rgba(255,107,53,0.12);
  box-shadow: var(--sh-accent);
}
.scroll-anim-chip strong { font-size: 13px; font-weight: 700; }
.scroll-anim-chip small { font-size: 11px; color: var(--ui-text2); }

/* ═══════════════════════════════════════════════════════════════════
   SSV26.2 — FEATURE 9: AI ONBOARDING MODAL
═══════════════════════════════════════════════════════════════════ */
.onboarding-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(5,5,10,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.onboarding-card {
  width: 100%; max-width: 540px;
  background: var(--glass-bg-fg);
  backdrop-filter: blur(var(--glass-blur-strong));
  border: var(--glass-border-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 32px;
  color: var(--ui-text);
  font-family: 'DM Sans', sans-serif;
  animation: ob-pop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes ob-pop { from { opacity: 0; transform: scale(.92) translateY(12px); } to { opacity: 1; transform: none; } }

.ob-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ui-border);
  margin-bottom: 20px;
}
.ob-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: white;
  box-shadow: var(--sh-accent);
}
.ob-title { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; }
.ob-sub { font-size: 12px; color: var(--ui-text2); }

.ob-progress {
  width: 100%; height: 4px;
  background: var(--ui-surface3);
  border-radius: 999px; overflow: hidden;
  margin-bottom: 14px;
}
.ob-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--ui-accent), var(--ui-accent2));
  transition: width .35s cubic-bezier(.4,0,.2,1);
  border-radius: 999px;
}
.ob-step-label {
  font-size: 11px; color: var(--ui-text2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.ob-question {
  font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; line-height: 1.2;
  margin-bottom: 16px;
}
.ob-input-wrap { margin-bottom: 24px; }
.ob-field-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--ui-surface2);
  border: 1px solid var(--ui-border2);
  border-radius: var(--r-md);
  color: var(--ui-text); font-size: 15px; font-family: 'DM Sans', sans-serif;
  outline: none; transition: var(--t);
}
.ob-field-input:focus { border-color: var(--ui-accent); box-shadow: 0 0 0 3px rgba(255,107,53,0.15); }
textarea.ob-field-input { resize: vertical; min-height: 100px; line-height: 1.5; }

.ob-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ob-actions-right { display: flex; gap: 8px; }
.ob-btn {
  padding: 11px 18px;
  font-size: 14px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  border-radius: var(--r-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--t);
}
.ob-btn-primary {
  background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent2));
  color: white;
  box-shadow: var(--sh-accent);
}
.ob-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(255,107,53,0.5); }
.ob-btn-ghost {
  background: var(--ui-surface3);
  color: var(--ui-text);
  border-color: var(--ui-border2);
}
.ob-btn-ghost:hover { background: var(--ui-surface2); }
.ob-btn-skip {
  background: transparent;
  color: var(--ui-text2);
  font-size: 12px; padding: 6px 8px;
}
.ob-btn-skip:hover { color: var(--ui-text); text-decoration: underline; }

/* New industry template cards in template list */
#tpl-pressure  .tpl-preview { background: linear-gradient(135deg,#0a4da3,#0c1a36); position:relative; }
#tpl-pressure  .tpl-preview::after { content:'💧'; position:absolute; right:12px; bottom:8px; font-size:24px; opacity:.7; }
#tpl-lawn      .tpl-preview { background: linear-gradient(135deg,#2d7a3a,#16361b); position:relative; }
#tpl-lawn      .tpl-preview::after { content:'🌿'; position:absolute; right:12px; bottom:8px; font-size:24px; opacity:.7; }
#tpl-lifestyle .tpl-preview { background: linear-gradient(135deg,#0d0d10,#e63946); position:relative; }
#tpl-lifestyle .tpl-preview::after { content:'⚡'; position:absolute; right:12px; bottom:8px; font-size:24px; opacity:.7; }

/* ═══════════════════════════════════════════════════════════════════
   SSV26.2 — VERSION TAG NORMALIZATION
═══════════════════════════════════════════════════════════════════ */
.lp-version-tag::after { content: ''; }

@media (max-width: 600px) {
  .onboarding-card { padding: 22px 18px; }
  .ob-question { font-size: 18px; }
}


/* ════════════════════════════════════════════════════════════════════════
   SSV26.3 — AI Chatbot, MotionFX, micro-interactions
   Builder UI only — does NOT affect exported sites.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Floating AI button ── */
#ai-chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 9998;
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 60%, #06b6d4 100%);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 12px 40px rgba(124,58,237,.45), 0 4px 12px rgba(0,0,0,.25);
  transition: transform .25s cubic-bezier(.2,.9,.3,1.4), box-shadow .25s;
  overflow: hidden;
}
#ai-chat-fab:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 18px 50px rgba(124,58,237,.55); }
#ai-chat-fab.active { transform: rotate(90deg) scale(1.05); }
#ai-chat-fab .ai-fab-glow {
  position: absolute; inset: -2px; border-radius: 50%;
  background: conic-gradient(from 0deg, #7c3aed, #06b6d4, #f43f5e, #7c3aed);
  animation: aiFabSpin 6s linear infinite; opacity: .55; z-index: -1; filter: blur(6px);
}
@keyframes aiFabSpin { to { transform: rotate(360deg); } }

/* ── Chat panel ── */
#ai-chat-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 9997;
  width: min(420px, calc(100vw - 32px)); height: min(600px, calc(100vh - 140px));
  display: flex; flex-direction: column;
  background: rgba(20, 16, 36, .85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(124,58,237,.15) inset;
  color: #f1f1f7;
  opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
  transition: opacity .28s cubic-bezier(.2,.9,.3,1.2), transform .28s cubic-bezier(.2,.9,.3,1.2);
  overflow: hidden;
}
#ai-chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.ai-chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(124,58,237,.18), transparent);
}
.ai-chat-title { font-weight: 600; font-size: 14px; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; }
.ai-chat-title small { opacity: .55; font-weight: 500; margin-left: 4px; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 12px #22c55e; animation: aiDotPulse 1.8s ease-in-out infinite; }
@keyframes aiDotPulse { 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.55; transform:scale(.85);} }
.ai-chat-tools { display: flex; gap: 4px; }
.ai-icon-btn {
  width: 30px; height: 30px; border-radius: 8px; border: none;
  background: rgba(255,255,255,.06); color: #f1f1f7; cursor: pointer;
  font-size: 14px; display: grid; place-items: center; position: relative; overflow: hidden;
  transition: background .2s, transform .15s;
}
.ai-icon-btn:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }

/* Stream */
.ai-chat-stream {
  flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.ai-chat-stream::-webkit-scrollbar { width: 6px; }
.ai-chat-stream::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

.ai-msg { display: flex; animation: aiMsgIn .35s cubic-bezier(.2,.9,.3,1.2) both; }
.ai-msg-user { justify-content: flex-end; }
.ai-bubble {
  max-width: 86%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45;
  word-wrap: break-word;
}
.ai-msg-user .ai-bubble {
  background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg-assistant .ai-bubble {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08);
  border-bottom-left-radius: 4px;
}
.ai-msg-thinking .ai-bubble { opacity: .75; font-style: italic; }
@keyframes aiMsgIn { from { opacity: 0; transform: translateY(8px);} to { opacity:1; transform:translateY(0);} }

.ai-typing { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.ai-typing span { width: 5px; height: 5px; border-radius: 50%; background: #c4b5fd; animation: aiTypingBounce 1.1s ease-in-out infinite; }
.ai-typing span:nth-child(2) { animation-delay: .15s; }
.ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes aiTypingBounce { 0%,80%,100% { transform: translateY(0); opacity:.4;} 40% { transform: translateY(-4px); opacity:1;} }

/* Suggestions */
.ai-chat-suggest {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0;
}
.ai-sugg {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: #ddd; padding: 5px 10px; border-radius: 100px; font-size: 11.5px;
  cursor: pointer; transition: all .18s; position: relative; overflow: hidden;
}
.ai-sugg:hover { background: rgba(124,58,237,.25); border-color: rgba(124,58,237,.5); transform: translateY(-1px); }

/* Input */
.ai-chat-input {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}
#ai-chat-text {
  flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; color: #f1f1f7; padding: 10px 12px; font: inherit; font-size: 13.5px;
  resize: none; min-height: 40px; max-height: 140px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
#ai-chat-text:focus { border-color: rgba(124,58,237,.6); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
#ai-chat-text:disabled { opacity: .55; }
#ai-chat-send {
  width: 40px; height: 40px; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff;
  display: grid; place-items: center; transition: transform .15s, opacity .2s; position: relative; overflow: hidden;
}
#ai-chat-send:hover:not(:disabled) { transform: translateY(-1px) scale(1.04); }
#ai-chat-send:disabled { opacity: .5; cursor: not-allowed; }

/* ── MotionFX ── */
.mfx-magnetic { transition: transform .25s cubic-bezier(.2,.9,.3,1.2), box-shadow .25s; will-change: transform; }
.mfx-magnetic:hover { box-shadow: 0 10px 30px rgba(0,0,0,.18); }

.mfx-ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 70%);
  transform: scale(0); animation: mfxRipple .6s cubic-bezier(.2,.9,.3,1) forwards;
}
@keyframes mfxRipple { to { transform: scale(2.5); opacity: 0; } }

/* Buttons need overflow:hidden + relative for ripple */
.ss-btn, [data-cta], .ai-icon-btn, .ob-btn, .ai-sugg, #ai-chat-send { position: relative; overflow: hidden; }

/* Page transition: stagger blocks in on each refresh */
.mfx-page-in .ss-block {
  animation: mfxBlockIn .55s cubic-bezier(.2,.9,.3,1.1) both;
  animation-delay: var(--mfx-stagger, 0ms);
}
@keyframes mfxBlockIn { from { opacity: 0; transform: translateY(14px);} to { opacity:1; transform: translateY(0);} }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mfx-magnetic, .mfx-ripple, .mfx-page-in .ss-block, .ai-msg, #ai-chat-panel, #ai-chat-fab .ai-fab-glow { animation: none !important; transition: none !important; }
}

/* Mobile */
@media (max-width: 600px) {
  #ai-chat-panel { right: 12px; left: 12px; width: auto; bottom: 84px; height: 70vh; }
  #ai-chat-fab { right: 16px; bottom: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════
   SSV26.4 — Prominent AI buttons + keyless badge
═══════════════════════════════════════════════════════════════════ */
.btn-ai-generate {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: none; border-radius: 999px;
  font: 600 13px/1 'Inter', system-ui, sans-serif;
  letter-spacing: .2px;
  color: #fff; cursor: pointer;
  background: linear-gradient(120deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%);
  background-size: 200% 200%;
  box-shadow: 0 4px 14px rgba(236,72,153,.35), 0 0 0 1px rgba(255,255,255,.08) inset;
  animation: aiGenShimmer 4s ease-in-out infinite;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-ai-generate:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 24px rgba(236,72,153,.5), 0 0 0 1px rgba(255,255,255,.18) inset;
}
.btn-ai-generate:active { transform: translateY(0) scale(.99); }
.btn-ai-generate .btn-ai-spark {
  display: inline-block;
  animation: aiGenSpin 3s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.7));
}
@keyframes aiGenShimmer {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
@keyframes aiGenSpin {
  0%,100% { transform: rotate(0deg) scale(1); }
  50%     { transform: rotate(180deg) scale(1.2); }
}

/* Prominent FAB upgrade — adds a label pill next to the spark */
#ai-chat-fab.ai-fab-prominent {
  width: auto !important;
  padding: 0 18px 0 14px !important;
  border-radius: 999px !important;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#7c3aed,#ec4899) !important;
  box-shadow: 0 10px 30px rgba(124,58,237,.45), 0 0 0 1px rgba(255,255,255,.1) inset !important;
}
#ai-chat-fab .ai-fab-label {
  font: 700 13px/1 'Inter', system-ui, sans-serif;
  color: #fff; letter-spacing: .3px;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
#ai-chat-fab.ai-fab-prominent::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 999px;
  background: linear-gradient(135deg,#7c3aed,#ec4899);
  filter: blur(14px); opacity: .55; z-index: -1;
  animation: aiFabPulse 2.4s ease-in-out infinite;
}
@keyframes aiFabPulse {
  0%,100% { opacity: .35; transform: scale(1); }
  50%     { opacity: .7;  transform: scale(1.08); }
}

@media (max-width: 720px) {
  .btn-ai-generate { padding: 8px 12px; font-size: 12px; }
  .btn-ai-generate span:not(.btn-ai-spark) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-ai-generate, .btn-ai-generate .btn-ai-spark,
  #ai-chat-fab.ai-fab-prominent::after { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   SSV26.8 — UNIFIED TOP-BAR BUTTON SYSTEM
   Every nav-right button shares height, padding, radius, and font.
   Only the Vercel "Deploy" button keeps its distinct dark style.
═══════════════════════════════════════════════════════════════════ */
.nav-right > button,
.nav-right .nav-right .btn-preview,
.nav-right .btn-export,
.nav-right .btn-ai-generate,
.nav-right #regen-btn,
.nav-right #ss-dash-btn,
.nav-right #ai-generate-btn {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font: 600 13px/1 'Inter', system-ui, sans-serif !important;
  letter-spacing: .2px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  cursor: pointer;
  box-sizing: border-box !important;
  margin: 0 !important;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.nav-right > button svg,
.nav-right .btn-preview svg {
  width: 14px !important;
  height: 14px !important;
}
.nav-right > button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* AI buttons keep their gradient + glow but share the unified geometry */
.nav-right .btn-ai-generate,
.nav-right #regen-btn {
  background: linear-gradient(120deg,#7c3aed 0%, #ec4899 50%, #f59e0b 100%) !important;
  background-size: 200% 200% !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 4px 14px rgba(236,72,153,.35), 0 0 0 1px rgba(255,255,255,.08) inset !important;
}

/* Dashboard — share unified shape but distinct accent */
.nav-right #ss-dash-btn {
  background: linear-gradient(135deg,#10b981,#06b6d4) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 4px 12px rgba(16,185,129,.35) !important;
}

/* Deploy is intentionally the odd one out */
.nav-right #ss-vercel-btn {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  font: 700 13px/1 'Inter', system-ui, sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg,#000,#333) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.35) !important;
  cursor: pointer;
  margin-left: 8px !important;
  box-sizing: border-box !important;
}
.nav-right #ss-vercel-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.45) !important;
}

@media (max-width: 720px) {
  .nav-right > button,
  .nav-right #ss-vercel-btn {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   SSV26.7 — LIQUID GLASS BUILDER UI (depth + translucency)
═══════════════════════════════════════════════════════════════════ */

/* Subtle ambient gradient mesh behind the entire builder for depth */
.app-shell{
  background:
    radial-gradient(1100px 720px at 8% -10%,  rgba(255,107,53,0.10), transparent 60%),
    radial-gradient(900px  640px at 100% 0%, rgba(139,92,246,0.10), transparent 55%),
    radial-gradient(1000px 700px at 50% 110%, rgba(59,130,246,0.08), transparent 60%),
    var(--ui-bg);
}

/* Frosted top nav */
.top-nav{
  background:linear-gradient(180deg, rgba(22,22,30,0.78), rgba(22,22,30,0.62)) !important;
  border-bottom:1px solid rgba(255,255,255,0.06) !important;
  backdrop-filter:blur(22px) saturate(160%);
  -webkit-backdrop-filter:blur(22px) saturate(160%);
  box-shadow:0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 40px -12px rgba(0,0,0,0.55);
}

/* Frosted sidebar — translucent glass plate */
.sidebar{
  background:linear-gradient(180deg, rgba(30,30,40,0.62), rgba(22,22,30,0.55)) !important;
  border-right:1px solid rgba(255,255,255,0.06) !important;
  backdrop-filter:blur(26px) saturate(150%);
  -webkit-backdrop-filter:blur(26px) saturate(150%);
  box-shadow:inset -1px 0 0 rgba(255,255,255,0.04), 18px 0 48px -28px rgba(0,0,0,0.6);
}

/* Sidebar tabs glass */
.sidebar-tabs{ background:rgba(22,22,30,0.4); backdrop-filter:blur(8px); }
.stab.active{
  background:linear-gradient(180deg, rgba(255,107,53,0.14), rgba(255,107,53,0.04)) !important;
  box-shadow:inset 0 -2px 0 var(--ui-accent), 0 6px 18px -8px rgba(255,107,53,0.45);
}

/* Floating block cards with subtle inner highlight */
.block-card{
  background:linear-gradient(180deg, rgba(40,40,52,0.72), rgba(28,28,36,0.62)) !important;
  border:1px solid rgba(255,255,255,0.08) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.06), 0 6px 18px -10px rgba(0,0,0,0.55);
}
.block-card:hover{
  background:linear-gradient(180deg, rgba(50,50,66,0.85), rgba(34,34,44,0.78)) !important;
  border-color:rgba(255,107,53,0.55) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.10), 0 14px 36px -14px rgba(255,107,53,0.45) !important;
}

/* Canvas area gets layered light + soft vignette */
.canvas-area{
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(255,255,255,0.045), transparent 60%),
    linear-gradient(180deg, rgba(15,15,19,0.45), rgba(15,15,19,0.85));
  position:relative;
}
.canvas-area::before{
  content:'';
  position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(900px 600px at 80% 100%, rgba(59,130,246,0.06), transparent 60%);
}
.canvas-toolbar{
  background:linear-gradient(180deg, rgba(22,22,30,0.7), rgba(22,22,30,0.45)) !important;
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  border-bottom:1px solid rgba(255,255,255,0.06) !important;
}

/* Canvas wrapper (the device frame) — thicker glass shell */
#canvas-wrapper{
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 30px 80px -20px rgba(0,0,0,0.7),
    0 12px 40px -8px rgba(255,107,53,0.10);
  border-radius:14px;
}

/* Right panel */
.right-panel{
  background:linear-gradient(180deg, rgba(30,30,40,0.62), rgba(22,22,30,0.55)) !important;
  backdrop-filter:blur(26px) saturate(150%);
  -webkit-backdrop-filter:blur(26px) saturate(150%);
  border-left:1px solid rgba(255,255,255,0.06) !important;
  box-shadow:inset 1px 0 0 rgba(255,255,255,0.04), -18px 0 48px -28px rgba(0,0,0,0.6);
}

/* Top-bar buttons — glass pills */
.btn-collab,.btn-preview{
  background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)) !important;
  border:1px solid rgba(255,255,255,0.10) !important;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 12px -4px rgba(0,0,0,0.5);
}
.btn-collab:hover,.btn-preview:hover{
  background:linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05)) !important;
  border-color:rgba(255,107,53,0.55) !important;
}
.btn-export{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 6px 18px -4px rgba(255,107,53,0.55),
    0 16px 48px -10px rgba(255,61,0,0.40) !important;
}

/* Session info chip glass */
.nav-session-info{
  background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
  border:1px solid rgba(255,255,255,0.10) !important;
  backdrop-filter:blur(10px);
}

/* Device switcher glass */
.device-switcher{
  background:rgba(255,255,255,0.04) !important;
  border:1px solid rgba(255,255,255,0.10) !important;
  backdrop-filter:blur(10px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Style/Projects/Layers panels — glass cards */
.style-section,.projects-toolbar,.layers-list{
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-radius:12px;
}

/* ═══════════════════════════════════════════════════════════════════
   SSV26.7 — DIALOG SYSTEM (SSPrompt / SSConfirm / AIImprover)
═══════════════════════════════════════════════════════════════════ */
.ss-dialog-overlay{
  position:fixed;inset:0;z-index:10010;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,0.62);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  animation:fadeIn .2s ease;
  padding:20px;
}
.ss-dialog-card{
  width:min(440px, 100%);
  background:linear-gradient(180deg, rgba(28,28,38,0.95), rgba(22,22,30,0.95));
  border:1px solid rgba(255,255,255,0.08);
  border-radius:18px;
  padding:26px 24px;
  color:var(--ui-text);
  font-family:'DM Sans',system-ui,sans-serif;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 24px 80px -10px rgba(0,0,0,0.7),
    0 4px 24px -4px rgba(255,107,53,0.18);
  animation:slideUp .35s cubic-bezier(.34,1.56,.64,1) both;
}
.ss-dialog-title{
  font-family:'Syne',sans-serif;font-weight:800;font-size:18px;
  color:var(--ui-text);margin-bottom:6px;
}
.ss-dialog-label{font-size:13px;color:var(--ui-text2);margin-bottom:12px}
.ss-dialog-body{font-size:13px;color:var(--ui-text2);margin:8px 0 16px;line-height:1.5}
.ss-dialog-input{
  width:100%;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:10px;
  padding:12px 14px;
  color:var(--ui-text);
  font-size:14px;
  font-family:inherit;
  outline:none;
  transition:var(--t);
}
.ss-dialog-input:focus{
  border-color:var(--ui-accent);
  background:rgba(255,107,53,0.06);
  box-shadow:0 0 0 3px rgba(255,107,53,0.18);
}
.ss-dialog-actions{
  display:flex;justify-content:flex-end;gap:8px;margin-top:18px;
}
.ss-dialog-btn{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:10px;
  padding:9px 16px;
  color:var(--ui-text);
  font-size:13px;font-weight:600;font-family:inherit;
  cursor:pointer;transition:var(--t);
}
.ss-dialog-btn:hover{background:rgba(255,255,255,0.10);border-color:rgba(255,255,255,0.18)}
.ss-dialog-btn.ss-dialog-ok{
  background:linear-gradient(135deg, var(--ui-accent), #ff3d00);
  color:white;border-color:transparent;
  box-shadow:0 6px 20px -4px rgba(255,107,53,0.55);
}
.ss-dialog-btn.ss-dialog-ok:hover{transform:translateY(-1px);box-shadow:0 10px 28px -4px rgba(255,107,53,0.65)}
.ss-dialog-btn.ss-dialog-ok.danger{
  background:linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow:0 6px 20px -4px rgba(239,68,68,0.55);
}

/* AI Improver panel */
.ai-improve-card{width:min(560px,100%)}
.ai-improve-list{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-direction:column;gap:10px;max-height:60vh;overflow-y:auto}
.ai-improve-item{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:12px;padding:14px;
}
.ai-improve-head{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-size:14px}
.ai-improve-kind{
  font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;
  background:rgba(255,107,53,0.16);color:var(--ui-accent);
  border:1px solid rgba(255,107,53,0.30);border-radius:20px;padding:2px 8px;
}
.ai-improve-why{font-size:12px;color:var(--ui-text2);margin-bottom:4px}
.ai-improve-value{font-size:12px;color:var(--ui-text);background:rgba(255,255,255,0.04);border-radius:8px;padding:8px 10px;margin:6px 0}
.ai-improve-actions{display:flex;gap:6px;margin-top:8px}
.ai-improve-actions .ss-dialog-btn{padding:6px 12px;font-size:12px}

/* ═══════════════════════════════════════════════════════════════════
   SSV26.7 — REMEMBER ME (login modal)
═══════════════════════════════════════════════════════════════════ */
.gate-remember-row{
  display:flex;align-items:center;gap:8px;
  margin-top:14px;font-size:12px;color:var(--ui-text2);
  user-select:none;cursor:pointer;
}
.gate-remember-row input[type="checkbox"]{
  width:16px;height:16px;cursor:pointer;accent-color:var(--ui-accent);
}
.gate-remember-row label{cursor:pointer}


/* ═══════════════════════════════════════════════════════════════════
   SSV26.8 — EMAIL AUTH TABS + STUDIO MODE
═══════════════════════════════════════════════════════════════════ */

/* ---- Login tabs ---- */
.login-tabs {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px;
  border-radius: 12px;
  backdrop-filter: blur(20px);
}
.login-tab {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
  letter-spacing: .01em;
}
.login-tab:hover { color: #fff; }
.login-tab.active {
  background: linear-gradient(135deg, rgba(255,107,53,0.95), rgba(255,140,90,0.95));
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(255,107,53,0.6);
}
.login-pane { margin-top: 14px; }

/* ---- Email auth fields ---- */
.email-auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.eat-btn {
  flex: 1;
  padding: 8px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.eat-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.eat-btn.active {
  background: rgba(255,107,53,0.18);
  border-color: rgba(255,107,53,0.55);
  color: #fff;
}
.ea-field { margin-bottom: 12px; }
.ea-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 5px;
}
.ea-field input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.ea-field input:focus {
  border-color: rgba(255,107,53,0.7);
  background: rgba(255,255,255,0.08);
}
.ea-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}
.ea-submit-btn {
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #ff6b35, #ff8c5a);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .02em;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 22px -8px rgba(255,107,53,0.6);
}
.ea-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -8px rgba(255,107,53,0.7); }
.ea-helper {
  margin-top: 12px;
  font-size: 12px;
  text-align: center;
  color: rgba(255,255,255,0.55);
}
.ea-helper a { color: rgba(255,107,53,0.95); text-decoration: none; }
.ea-helper a:hover { text-decoration: underline; }
.ea-divider { margin: 0 8px; color: rgba(255,255,255,0.25); }

/* ---- Studio launch button ---- */
.btn-studio {
  background: linear-gradient(135deg, rgba(140,90,255,0.18), rgba(90,180,255,0.18));
  border: 1px solid rgba(140,90,255,0.45);
  color: #fff;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px -6px rgba(140,90,255,0.35);
}
.btn-studio:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(140,90,255,0.32), rgba(90,180,255,0.32));
  box-shadow: 0 8px 20px -8px rgba(140,90,255,0.55);
}
.btn-studio.locked {
  opacity: .55;
  filter: grayscale(.4);
  cursor: not-allowed;
}

/* ---- Studio panel ---- */
.studio-root {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}
.studio-root.open { pointer-events: auto; }
.studio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,10,18,0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .25s ease;
}
.studio-root.open .studio-overlay { opacity: 1; }
.studio-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(960px, 92vw);
  background: linear-gradient(180deg, rgba(18,18,28,0.94), rgba(12,12,20,0.96));
  border-left: 1px solid rgba(140,90,255,0.25);
  box-shadow: -30px 0 80px -20px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.2,.7,.2,1);
  backdrop-filter: blur(20px);
  color: #f4f4fb;
}
.studio-root.open .studio-panel { transform: translateX(0); }
.studio-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(135deg, rgba(140,90,255,0.08), rgba(90,180,255,0.05));
}
.studio-title { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.studio-icon { font-size: 18px; }
.studio-beta {
  font-size: 9px; font-weight: 800; letter-spacing: .1em;
  background: linear-gradient(135deg, #ff6b35, #ff3a8c);
  padding: 3px 7px; border-radius: 4px; color: #fff;
}
.studio-routes { display: flex; gap: 4px; flex: 1; justify-content: center; }
.studio-route {
  padding: 7px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.studio-route:hover { background: rgba(255,255,255,0.1); color: #fff; }
.studio-route.active {
  background: linear-gradient(135deg, rgba(140,90,255,0.4), rgba(90,180,255,0.4));
  border-color: rgba(140,90,255,0.6);
  color: #fff;
}
.studio-close {
  background: transparent; border: none; color: rgba(255,255,255,0.6);
  font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.studio-close:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ---- Studio body (developer) ---- */
.studio-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px 18px;
  gap: 12px;
}
.studio-dev-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px;
  border-radius: 9px;
}
.sdt-btn {
  padding: 6px 12px;
  background: transparent; border: none; border-radius: 6px;
  color: rgba(255,255,255,0.65);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.sdt-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.sdt-btn.active { background: rgba(140,90,255,0.4); color: #fff; }
.sdt-spacer { flex: 1; }
.sdt-action {
  padding: 6px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 11px; font-weight: 600; cursor: pointer;
}
.sdt-action:hover { background: rgba(255,255,255,0.12); }
.sdt-action.primary {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  border-color: rgba(74,222,128,0.6);
  color: #06210e;
}
.studio-dev-views { flex: 1; position: relative; overflow: hidden; }
.sdv {
  position: absolute; inset: 0;
  display: none;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}
.sdv.active { display: flex; }
.sdv textarea {
  flex: 1;
  width: 100%; height: 100%;
  padding: 14px 16px;
  background: transparent; border: none; outline: none; resize: none;
  color: #d6e1ff;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.55;
}
.sdv-preview-frame { flex: 1; background: #fff; }
.sdv-preview-frame iframe { width: 100%; height: 100%; border: none; }
.studio-dev-warn {
  font-size: 11px;
  color: rgba(255,200,120,0.85);
  background: rgba(255,150,50,0.08);
  border: 1px solid rgba(255,150,50,0.25);
  border-radius: 7px;
  padding: 8px 12px;
}

/* ---- Studio body (agent) ---- */
.studio-agent-shell {
  display: flex; flex-direction: column;
  flex: 1; gap: 10px;
  height: 100%; overflow: hidden;
}
.studio-agent-stream {
  flex: 1; overflow-y: auto;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px; line-height: 1.55;
  display: flex; flex-direction: column; gap: 10px;
}
.sas-msg {
  padding: 10px 14px;
  border-radius: 9px;
  word-wrap: break-word;
  max-width: 100%;
}
.sas-system {
  background: rgba(140,90,255,0.1);
  border-left: 3px solid rgba(140,90,255,0.6);
  color: rgba(220,220,255,0.92);
}
.sas-user {
  background: rgba(255,107,53,0.13);
  border-left: 3px solid rgba(255,107,53,0.7);
  align-self: flex-end;
  max-width: 85%;
}
.sas-assistant {
  background: rgba(90,180,255,0.1);
  border-left: 3px solid rgba(90,180,255,0.6);
}
.sas-tool-call {
  font-size: 11px;
  color: rgba(255,200,120,0.95);
  background: rgba(255,150,50,0.06);
  padding: 6px 10px;
  border-radius: 6px;
}
.sas-tool-result {
  font-size: 11px;
  color: rgba(120,220,160,0.95);
  background: rgba(50,200,120,0.06);
  padding: 6px 10px;
  border-radius: 6px;
}
.sas-thinking {
  color: rgba(255,255,255,0.5);
  font-style: italic;
  background: rgba(255,255,255,0.03);
}
.studio-agent-tools {
  display: flex; flex-direction: column; gap: 6px;
}
.studio-agent-tools details {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
}
.studio-agent-tools summary {
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  padding: 2px 0;
  outline: none;
}
.sat-config { padding: 10px 0 4px; }
.sat-help {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}
.sat-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
}
.sat-toggle input { accent-color: #8c5aff; }
.sat-api-row {
  display: grid; grid-template-columns: 1fr 2fr auto; gap: 6px;
  margin-bottom: 6px;
}
.sat-api-row input {
  padding: 6px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  outline: none;
}
.sat-api-row input:focus { border-color: rgba(140,90,255,0.6); }
.sat-del {
  padding: 6px 10px;
  background: rgba(255,90,90,0.15);
  border: 1px solid rgba(255,90,90,0.35);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
}
.sat-del:hover { background: rgba(255,90,90,0.3); }
.sat-add-btn {
  margin-top: 4px;
  padding: 6px 12px;
  background: rgba(140,90,255,0.18);
  border: 1px dashed rgba(140,90,255,0.5);
  border-radius: 6px;
  color: #fff; font-size: 11px; font-weight: 600;
  cursor: pointer;
}
.sat-add-btn:hover { background: rgba(140,90,255,0.3); }
.sat-empty {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}
.studio-agent-input {
  display: flex; flex-direction: column; gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 12px;
}
.studio-agent-input textarea {
  width: 100%;
  background: transparent; border: none; outline: none; resize: none;
  color: #fff; font-size: 13px; line-height: 1.5;
  font-family: inherit;
  min-height: 38px;
}
.sai-row {
  display: flex; gap: 8px; justify-content: flex-end;
}
.sai-clear {
  padding: 6px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 11px; cursor: pointer;
}
.sai-clear:hover { background: rgba(255,255,255,0.12); color: #fff; }
.sai-send {
  padding: 7px 18px;
  background: linear-gradient(135deg, #8c5aff, #5ab4ff);
  border: none;
  border-radius: 6px;
  color: #fff; font-size: 12px; font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 14px -4px rgba(140,90,255,0.5);
}
.sai-send:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(140,90,255,0.7); }
.sai-send:disabled { opacity: .55; cursor: wait; transform: none; }

/* Responsive */
@media (max-width: 720px) {
  .studio-panel { width: 100vw; }
  .studio-routes { flex-wrap: wrap; }
  .sat-api-row { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════════
   SSV26.8.1 — COMPACT TOP-BAR
   Reduces nav height + button density to fix "too congested" feedback.
═══════════════════════════════════════════════════════════════════ */
:root { --nav-h: 48px; }

.top-nav {
  height: 48px !important;
  padding: 0 12px !important;
  gap: 8px !important;
}

/* Logo: smaller mark + slightly tighter wordmark */
.nav-logo-mark {
  width: 26px !important;
  height: 26px !important;
  font-size: 10px !important;
  border-radius: 7px !important;
}
.nav-logo-text {
  font-size: 14px !important;
}

/* Site-name input: narrower + shorter */
.nav-site-name input {
  padding: 4px 10px !important;
  font-size: 12px !important;
  width: 150px !important;
  height: 28px !important;
}

/* Device switcher: smaller buttons + tighter padding */
.device-switcher { padding: 2px !important; border-radius: 8px !important; }
.device-btn { width: 28px !important; height: 26px !important; }
.device-btn svg { width: 13px !important; height: 13px !important; }

/* Session info chip + tier badge */
.nav-session-info { padding: 3px 8px !important; gap: 6px !important; border-radius: 8px !important; }
.nav-tier-badge { font-size: 10px !important; padding: 1px 7px !important; }
.nav-timer { font-size: 11px !important; min-width: 32px !important; }

/* Unified button system — shrink height + padding (overrides 36px rule) */
.nav-right > button,
.nav-right .nav-right .btn-preview,
.nav-right .btn-export,
.nav-right .btn-studio,
.nav-right .btn-ai-generate,
.nav-right #regen-btn,
.nav-right #ss-dash-btn,
.nav-right #ai-generate-btn,
.nav-right #ss-vercel-btn {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 11px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  gap: 5px !important;
  margin-left: 0 !important;
}
.nav-right > button svg,
.nav-right .btn-preview svg {
  width: 12px !important;
  height: 12px !important;
}

/* Studio + collab + export keep their flair but skinnier */
.btn-studio { padding: 0 11px !important; margin-right: 4px !important; font-size: 12px !important; }
.btn-export { padding: 0 14px !important; }

/* Slightly tighter gap between nav-right items */
.nav-right { gap: 6px !important; }

/* Hide the timer entirely under 1100px to free up space */
@media (max-width: 1100px) {
  .nav-timer { display: none !important; }
  .nav-session-info { padding: 3px 6px !important; }
}

/* On narrow screens, drop the site-name input (still editable via Project panel) */
@media (max-width: 900px) {
  .nav-site-name { display: none !important; }
}

/* On very narrow screens collapse to icons-only spirit */
@media (max-width: 720px) {
  .top-nav { height: 44px !important; padding: 0 8px !important; }
  .nav-right > button,
  .nav-right #ss-vercel-btn { height: 28px !important; min-height: 28px !important; padding: 0 9px !important; font-size: 11px !important; }
  
}

/* ════════════════════════════════════════════════════════════════
   SSV26.9 — STUDIO AGENT (landing card + gate modal + full shell)
   ════════════════════════════════════════════════════════════════ */

/* Landing nav: bold orange "Studio Agent" CTA */
.lp-nav-cta-agent {
  background: linear-gradient(135deg, #ff6b35 0%, #ff3d8b 100%) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 18px -8px rgba(255,61,139,0.55);
  margin-right: 8px;
}
.lp-nav-cta-agent:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Landing-page Studio Agent showcase section */
.lp-studio-agent {
  position: relative;
  background: radial-gradient(1200px 600px at 90% -10%, rgba(255,107,53,0.18), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(139,92,246,0.18), transparent 60%),
              linear-gradient(180deg, #0b0d18 0%, #11132a 100%);
  color: #f5f6fb;
  padding: 110px 24px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.lp-sa-orb { position:absolute; border-radius:50%; filter: blur(60px); opacity:.55; pointer-events:none; }
.lp-sa-orb-a { top:-120px; right:-100px; width:480px; height:480px; background:#ff6b35; }
.lp-sa-orb-b { bottom:-160px; left:-80px;  width:520px; height:520px; background:#7c5cff; }
.lp-sa-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.lp-sa-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .lp-sa-grid { grid-template-columns: 1fr; gap: 36px; }
  .lp-studio-agent { padding: 72px 20px; }
}
.lp-sa-eyebrow {
  display:inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,107,53,0.15);
  border: 1px solid rgba(255,107,53,0.4);
  color: #ffb088;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.lp-sa-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.05;
  margin: 0 0 18px;
  color: #fff;
  letter-spacing: -1px;
}
.lp-sa-title-accent {
  background: linear-gradient(135deg, #ff6b35 0%, #ff3d8b 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-sa-lede {
  font-size: 18px;
  line-height: 1.55;
  color: #c8cce2;
  max-width: 540px;
  margin: 0 0 22px;
}
.lp-sa-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}
.lp-sa-bullets li {
  position: relative;
  padding-left: 24px;
  color: #d5d8eb;
  font-size: 15px;
}
.lp-sa-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: #ff6b35;
  font-weight: 700;
}
.lp-sa-bullets strong { color: #fff; }
.lp-sa-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.lp-sa-btn-primary {
  background: linear-gradient(135deg, #ff6b35 0%, #ff3d8b 100%);
  color: #fff;
  border: none;
  padding: 14px 26px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 14px 40px -14px rgba(255,61,139,0.6);
  transition: transform .15s ease, filter .15s ease;
}
.lp-sa-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.lp-sa-btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 14px 22px;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.lp-sa-btn-ghost:hover { background: rgba(255,255,255,0.1); }
.lp-sa-codes {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: #9aa0c0;
}
.lp-sa-codes code {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #ffb088;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
}
.lp-sa-codes-label { margin-right: 4px; }

/* The mock agent terminal card on the right */
.lp-sa-card {
  background: linear-gradient(180deg, #161930 0%, #0e1023 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6),
              0 0 0 1px rgba(255,107,53,0.12) inset;
}
.lp-sa-card-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lp-sa-card-dots { display: flex; gap: 6px; }
.lp-sa-card-dots span { width: 10px; height: 10px; border-radius: 50%; background: #2a2d4a; }
.lp-sa-card-dots span:first-child { background: #ff5f57; }
.lp-sa-card-dots span:nth-child(2) { background: #febc2e; }
.lp-sa-card-dots span:nth-child(3) { background: #28c840; }
.lp-sa-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; color: #c8cce2; letter-spacing: 0.3px;
}
.lp-sa-card-body { padding: 18px; display: grid; gap: 10px; }
.lp-sa-msg {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; line-height: 1.5; padding: 10px 12px; border-radius: 10px;
}
.lp-sa-msg-user {
  background: rgba(255,107,53,0.1); color: #ffd0b8; border:1px solid rgba(255,107,53,0.25);
}
.lp-sa-msg-tool {
  background: rgba(255,255,255,0.04); color: #a8b0d6; border:1px solid rgba(255,255,255,0.06);
}
.lp-sa-msg-tool-ok { color: #84e0a8; }
.lp-sa-msg-agent {
  background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(139,92,246,0.08));
  color: #f0f2ff; border:1px solid rgba(255,255,255,0.08);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
}
.lp-sa-msg-cursor { display:inline-block; animation: sa-blink 1s infinite; color:#ff6b35; }
@keyframes sa-blink { 50% { opacity: 0; } }

/* ─── Studio Agent gate modal ────────────────────────────────────── */
.sag-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 9, 18, 0.78);
  backdrop-filter: blur(8px);
  z-index: 10500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: sag-fade .2s ease;
}
@keyframes sag-fade { from { opacity:0; } to { opacity:1; } }
.sag-card {
  position: relative;
  background: linear-gradient(180deg, #161930 0%, #0e1023 100%);
  border: 1px solid rgba(255,107,53,0.25);
  border-radius: 18px;
  padding: 36px 32px 28px;
  width: 100%; max-width: 460px;
  color: #f5f6fb;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,107,53,0.08);
}
.sag-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: none; color: #8a90b8;
  font-size: 18px; cursor: pointer; padding: 6px 8px; border-radius: 6px;
}
.sag-close:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sag-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,107,53,0.15);
  color: #ffb088;
  border: 1px solid rgba(255,107,53,0.4);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}
.sag-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 32px;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff3d8b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sag-sub { color: #c8cce2; font-size: 14px; line-height: 1.5; margin: 0 0 22px; }
.sag-input-wrap {
  display: flex; gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 6px;
}
.sag-input-wrap input {
  flex: 1;
  background: transparent;
  border: none; outline: none;
  color: #fff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  padding: 10px 12px;
}
.sag-input-wrap input::placeholder { color: #6e749a; }
.sag-input-wrap button {
  background: linear-gradient(135deg, #ff6b35 0%, #ff3d8b 100%);
  color: #fff;
  border: none; border-radius: 8px;
  padding: 10px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 14px;
  cursor: pointer;
}
.sag-input-wrap button:hover { filter: brightness(1.06); }
.sag-error {
  color: #ff7a8c;
  font-size: 13px;
  min-height: 18px;
  margin: 10px 0 0;
}
.sag-hints {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 18px; font-size: 12px; color: #9aa0c0;
}
.sag-hints code {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ffb088;
  padding: 3px 8px; border-radius: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
}
.sag-hints-note { margin-left: 4px; color:#7d83a4; }

/* ─── Studio Agent — full-screen standalone shell ────────────────── */
.sa-shell {
  position: fixed; inset: 0;
  background: #0a0b14;
  color: #f5f6fb;
  z-index: 10400;
  display: flex; flex-direction: column;
  font-family: 'DM Sans', sans-serif;
}
.sa-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(180deg, #11132a 0%, #0d0f22 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 56px;
}
.sa-topbar-left { display: flex; align-items: center; gap: 10px; }
.sa-logo-mark {
  display:inline-flex; align-items:center; justify-content:center;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff3d8b 100%);
  color: #fff; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 13px;
}
.sa-logo-text { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: 0.2px; }
.sa-beta {
  background: rgba(255,107,53,0.18); color: #ffb088;
  border: 1px solid rgba(255,107,53,0.4);
  font-family: 'Space Grotesk', sans-serif; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; letter-spacing: 0.5px;
}
.sa-topbar-right { display: flex; align-items: center; gap: 8px; }
.sa-tier-pill {
  background: rgba(124,92,255,0.2); color:#c4b5ff;
  border: 1px solid rgba(124,92,255,0.35);
  padding: 4px 10px; border-radius: 999px; font-size: 11px;
  font-family:'Space Grotesk', sans-serif; font-weight: 600; text-transform: uppercase;
}
.sa-link-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #d5d8eb;
  padding: 7px 12px; font-size: 12px; border-radius: 8px;
  cursor: pointer; font-family: 'Space Grotesk', sans-serif; font-weight: 600;
}
.sa-link-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sa-link-btn.sa-danger { color: #ff9aa7; border-color: rgba(255,80,100,0.3); }
.sa-link-btn.sa-danger:hover { background: rgba(255,80,100,0.12); color: #fff; }

.sa-main { flex: 1; display: grid; grid-template-columns: 260px 1fr; min-height: 0; }
@media (max-width: 800px) { .sa-main { grid-template-columns: 1fr; } .sa-sidebar { display: none; } }

.sa-sidebar {
  background: #0d0f22;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 18px 14px; overflow-y: auto;
}
.sa-side-section { margin-bottom: 22px; }
.sa-side-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px;
  color: #7d83a4; margin-bottom: 10px;
}
.sa-side-prompt {
  display:block; width:100%; text-align:left;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: #c8cce2;
  padding: 9px 11px; margin-bottom: 6px; border-radius: 9px;
  font-size: 13px; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.sa-side-prompt:hover { background: rgba(255,107,53,0.08); border-color: rgba(255,107,53,0.3); color: #fff; }
.sa-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #c8cce2; padding: 6px 4px; cursor: pointer;
}
.sa-toggle input { accent-color: #ff6b35; }

.sa-stage { display: flex; flex-direction: column; min-width: 0; }
.sa-stream {
  flex: 1; overflow-y: auto;
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.sa-msg {
  max-width: 760px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px; line-height: 1.55;
}
.sa-msg-system {
  background: rgba(124,92,255,0.08);
  border: 1px solid rgba(124,92,255,0.18);
  color: #d8dcff;
  align-self: stretch;
  max-width: 100%;
}
.sa-msg-user {
  background: linear-gradient(135deg, rgba(255,107,53,0.18), rgba(255,61,139,0.18));
  border: 1px solid rgba(255,107,53,0.3);
  color: #fff;
  align-self: flex-end;
}
.sa-msg-assistant {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f0f2ff;
}
.sa-msg-tool-call, .sa-msg-tool-result {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; padding: 8px 12px;
  background: rgba(255,255,255,0.02); color: #9aa0c0;
  border: 1px dashed rgba(255,255,255,0.08);
}
.sa-msg-thinking { color: #c4b5ff; font-style: italic; background: rgba(124,92,255,0.06); border:1px solid rgba(124,92,255,0.12); }

.sa-input {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #0d0f22;
  padding: 14px 18px;
}
.sa-input textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff; font-family: 'DM Sans', sans-serif; font-size: 14px;
  padding: 12px 14px; resize: none; min-height: 56px; max-height: 220px;
  outline: none;
}
.sa-input textarea:focus { border-color: rgba(255,107,53,0.5); }
.sa-input-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.sa-btn-ghost {
  background: transparent; border: 1px solid rgba(255,255,255,0.12);
  color: #c8cce2; padding: 9px 14px; border-radius: 9px; font-size: 13px; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
}
.sa-btn-ghost:hover { background: rgba(255,255,255,0.06); }
.sa-btn-send {
  background: linear-gradient(135deg, #ff6b35 0%, #ff3d8b 100%);
  color: #fff; border: none; padding: 9px 22px; border-radius: 9px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px;
  cursor: pointer;
}
.sa-btn-send:disabled { opacity: 0.5; cursor: not-allowed; }
.sa-btn-send:hover:not(:disabled) { filter: brightness(1.06); }

.sa-drawer {
  position: absolute; inset: 0;
  background: rgba(8,9,18,0.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
.sa-drawer-card {
  position: relative;
  background: #11132a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 24px;
  width: 100%; max-width: 520px;
  color: #f5f6fb;
}
.sa-drawer-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: #8a90b8; font-size: 18px; cursor: pointer; }
.sa-drawer-help { color: #c8cce2; font-size: 13px; margin: 0 0 14px; }
.sa-api-row { display: grid; grid-template-columns: 1fr 1.6fr 32px; gap: 6px; margin-bottom: 6px; }
.sa-api-row input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff; padding: 7px 9px; font-size: 12px; border-radius: 7px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.sa-api-row button { background: rgba(255,80,100,0.12); color: #ff9aa7; border: none; border-radius: 7px; cursor: pointer; }
.sa-btn-add {
  margin-top: 8px;
  background: rgba(255,107,53,0.12); color: #ffb088;
  border: 1px dashed rgba(255,107,53,0.4);
  padding: 9px 14px; border-radius: 9px; cursor: pointer; font-size: 12px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
}
.sa-empty { color: #6e749a; font-size: 12px; }

/* ════════════════════════════════════════════════════════════════════
   SSV26.13 — UNIFIED DARK GLASS + COMPACT TOPBAR + LIVELY MOTION
   ────────────────────────────────────────────────────────────────────
   Goals (per user feedback):
   • ONE cohesive dark theme everywhere — no mixed light/dark surfaces.
   • Builder topbar buttons must fit in a single straight line.
   • Heavy "iOS 26 liquid glass" on the landing page (very noticeable).
   • More motion / micro-interactions throughout.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --ss-glass-bg:        rgba(20, 22, 38, 0.42);
  --ss-glass-bg-strong: rgba(18, 20, 34, 0.66);
  --ss-glass-border:    rgba(255, 255, 255, 0.14);
  --ss-glass-sheen:     rgba(255, 255, 255, 0.10);
  --ss-glass-blur:      saturate(180%) blur(28px);
  --ss-glass-blur-xl:   saturate(200%) blur(38px);
  --ss-glass-shadow:
      0 24px 60px -18px rgba(0, 0, 0, 0.7),
      0 1px 0  rgba(255, 255, 255, 0.08) inset,
      0 -1px 0 rgba(255, 255, 255, 0.04) inset;
}

/* Force single dark surface — patch any stray light card backgrounds */
.bold-tpl-prev { background: #14151c !important; color: #e8eaf2 !important; }

/* ── Landing page: liquid glass nav + sections ───────────────────── */
.lp-nav {
  background: var(--ss-glass-bg) !important;
  -webkit-backdrop-filter: var(--ss-glass-blur-xl);
  backdrop-filter: var(--ss-glass-blur-xl);
  border-bottom: 1px solid var(--ss-glass-border) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 8px 24px rgba(0,0,0,0.4);
}
.lp-nav-cta { transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, filter .25s; }
.lp-nav-cta:hover { transform: translateY(-2px) scale(1.04); filter: brightness(1.08); }

/* Aurora orbs gently breathe behind hero */
@keyframes ss-aurora-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(30px,-20px) scale(1.08); }
}
.lp-hero-orb { animation: ss-aurora-drift 14s ease-in-out infinite; }
.lp-hero-orb:nth-of-type(2) { animation-duration: 18s; animation-delay: -4s; }
.lp-hero-orb:nth-of-type(3) { animation-duration: 22s; animation-delay: -8s; }

/* Glass cards across the landing page */
.lp-section .card,
.lp-feature-card,
.lp-pricing-card,
.lp-testimonial,
.lp-glass-card,
.lp-sa-card,
.bold-tpl,
.lp-pricing-tier {
  background: var(--ss-glass-bg) !important;
  -webkit-backdrop-filter: var(--ss-glass-blur);
  backdrop-filter: var(--ss-glass-blur);
  border: 1px solid var(--ss-glass-border) !important;
  box-shadow: var(--ss-glass-shadow) !important;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.lp-section .card:hover,
.lp-feature-card:hover,
.lp-pricing-card:hover,
.lp-testimonial:hover,
.lp-glass-card:hover,
.lp-sa-card:hover,
.bold-tpl:hover,
.lp-pricing-tier:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 53, 0.45) !important;
  box-shadow:
    0 32px 70px -20px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,107,53,0.25) inset,
    0 1px 0 rgba(255,255,255,0.10) inset !important;
}

/* Subtle sheen sweep on glass cards */
.lp-feature-card, .lp-pricing-card, .lp-sa-card, .bold-tpl { position: relative; overflow: hidden; }
.lp-feature-card::before, .lp-pricing-card::before, .lp-sa-card::before, .bold-tpl::before {
  content:"";
  position:absolute; top:0; left:-60%;
  width: 50%; height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.10) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left .9s ease;
  pointer-events: none;
}
.lp-feature-card:hover::before, .lp-pricing-card:hover::before,
.lp-sa-card:hover::before, .bold-tpl:hover::before { left: 130%; }

/* Heading shimmer */
@keyframes ss-shimmer {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
.lp-hero-accent {
  background-size: 200% 200% !important;
  animation: ss-shimmer 6s ease-in-out infinite;
}

/* Hero badge floats */
@keyframes ss-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
.lp-hero-badge { animation: ss-float 3.5s ease-in-out infinite; }

/* Studio Agent landing card glow */
.lp-sa-card {
  box-shadow:
    var(--ss-glass-shadow),
    0 0 0 1px rgba(255,107,53,0.20) inset,
    0 0 80px -10px rgba(255,107,53,0.25) !important;
}

/* Buttons everywhere on landing get spring */
.lp-root button { transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s, filter .22s; }
.lp-root button:hover:not(:disabled) { transform: translateY(-1px); }
.lp-root button:active { transform: translateY(0) scale(.98); }

/* ── Builder topbar: ultra-compact so all buttons fit one line ──── */
:root { --nav-h: 44px; }
.top-nav {
  height: 44px !important;
  padding: 0 10px !important;
  gap: 6px !important;
  background: var(--ss-glass-bg-strong) !important;
  -webkit-backdrop-filter: var(--ss-glass-blur);
  backdrop-filter: var(--ss-glass-blur);
  border-bottom: 1px solid var(--ss-glass-border) !important;
}
.nav-logo-mark { width: 24px !important; height: 24px !important; font-size: 9px !important; }
.nav-logo-text { font-size: 13px !important; }
.nav-site-name input {
  padding: 3px 8px !important;
  font-size: 11px !important;
  width: 130px !important;
  height: 26px !important;
}
.device-switcher { padding: 2px !important; }
.device-btn { width: 26px !important; height: 24px !important; }
.device-btn svg { width: 12px !important; height: 12px !important; }

.nav-session-info { padding: 2px 7px !important; gap: 5px !important; }
.nav-tier-badge { font-size: 9px !important; padding: 1px 6px !important; }
.nav-timer { font-size: 10px !important; min-width: 28px !important; }

/* Single-line button row — shrink uniformly */
.nav-right { gap: 5px !important; flex-wrap: nowrap !important; }
.nav-right > button,
.nav-right .nav-right .btn-preview,
.nav-right .btn-export,
.nav-right .btn-studio,
.nav-right .btn-ai-generate,
.nav-right #regen-btn,
.nav-right #ss-dash-btn,
.nav-right #ai-generate-btn,
.nav-right #ss-vercel-btn {
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 9px !important;
  font-size: 11px !important;
  border-radius: 7px !important;
  gap: 4px !important;
  margin-left: 0 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.nav-right > button svg, .nav-right .btn-preview svg { width: 11px !important; height: 11px !important; }
.nav-right > button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.1); }
.btn-studio { padding: 0 10px !important; font-size: 11px !important; }
.btn-export { padding: 0 12px !important; }

/* Free up pixels at narrower widths so buttons stay inline */
@media (max-width: 1280px) {
  .nav-timer { display: none !important; }
  .nav-tier-badge { display: none !important; }
}
@media (max-width: 1100px) {
  .nav-site-name { display: none !important; }
}
@media (max-width: 980px) {
  
}

/* ── Modals + dialog also get cohesive glass ─────────────────────── */
.ss-modal-card, .ss-prompt, .ss-confirm, .ai-improver, .sa-drawer-card {
  background: var(--ss-glass-bg-strong) !important;
  -webkit-backdrop-filter: var(--ss-glass-blur-xl);
  backdrop-filter: var(--ss-glass-blur-xl);
  border: 1px solid var(--ss-glass-border) !important;
  box-shadow: var(--ss-glass-shadow) !important;
}

/* Studio Agent shell — slightly more glassy inputs */
.sa-input { background: var(--ss-glass-bg-strong) !important; -webkit-backdrop-filter: var(--ss-glass-blur); backdrop-filter: var(--ss-glass-blur); }
.sa-topbar { background: var(--ss-glass-bg-strong) !important; -webkit-backdrop-filter: var(--ss-glass-blur); backdrop-filter: var(--ss-glass-blur); }
.sa-sidebar { background: rgba(13,15,34,0.7) !important; -webkit-backdrop-filter: var(--ss-glass-blur); backdrop-filter: var(--ss-glass-blur); }

/* Reveal-on-scroll fallback (pure CSS) for hero + section headings */
@keyframes ss-rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lp-hero-heading, .lp-hero-sub, .lp-hero-ctas, .lp-hero-stats { animation: ss-rise-in .8s cubic-bezier(.2,.8,.2,1) both; }
.lp-hero-sub   { animation-delay: .12s; }
.lp-hero-ctas  { animation-delay: .22s; }
.lp-hero-stats { animation-delay: .32s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lp-hero-orb, .lp-hero-accent, .lp-hero-badge,
  .lp-hero-heading, .lp-hero-sub, .lp-hero-ctas, .lp-hero-stats { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SUPERSUITE V27 — PHASE 1 CLEANUP CSS
   Hides any UI that managed to slip past the JS scrubber.
   These selectors target legacy features removed in v27.
═══════════════════════════════════════════════════════════════════════ */
#ai-chat-fab,
#ai-chat-panel,
#ai-generate-btn,
#regen-btn,
#regen-modal,
#studio-launch-btn,
#studio-mode-root,
#ss-dashboard-btn,
#ss-dashboard-root,
#ss-dashboard-overlay,
.btn-studio,
.studio-root,
.studio-overlay,
.studio-panel,
.ai-fab-prominent {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   SSV27 · NEW ONBOARDING STYLES
═══════════════════════════════════════════════════════════════════ */
.ob-overlay {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(8,8,14,.82); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: ob-fade .25s ease;
}
@keyframes ob-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ob-shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-8px); }
  40%,80% { transform: translateX(8px); }
}

.ob-card {
  width: min(500px, 100%);
  background: linear-gradient(180deg, #1c1c26, #14141e);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  overflow: hidden;
  position: relative;
}
.ob-card-wide { width: min(900px, 100%); }

.ob-progress {
  height: 3px; background: rgba(255,255,255,.06);
}
.ob-progress-bar {
  height: 100%; background: linear-gradient(90deg, #ff6b35, #ffd166);
  transition: width .4s ease;
}

.ob-body { padding: 32px 32px 8px; }
.ob-eyebrow {
  font-family: 'JetBrains Mono', 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .25em;
  color: #ff6b35; text-transform: uppercase; margin-bottom: 10px;
}
.ob-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 24px; color: #f4f4f8; letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.ob-sub { color: #8888a8; font-size: 13.5px; margin-bottom: 24px; line-height: 1.5; }

.ob-field { display: block; margin-bottom: 14px; }
.ob-label {
  display: block; font-family: monospace;
  font-size: 10px; letter-spacing: .18em;
  color: #6666aa; text-transform: uppercase; margin-bottom: 6px;
}
.ob-input, .ob-select {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; color: #f4f4f8;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  transition: border-color .15s;
  -webkit-appearance: none; appearance: none;
}
.ob-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236666aa' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.ob-input:focus, .ob-select:focus { outline: none; border-color: #ff6b35; }
.ob-select option { background: #1c1c26; }

/* Vibe chips */
.ob-chip-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ob-chip {
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #b4b4c8; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .15s;
}
.ob-chip:hover { border-color: rgba(255,107,53,.4); color: #f4f4f8; }
.ob-chip.selected { background: rgba(255,107,53,.15); border-color: #ff6b35; color: #ff8c5a; font-weight: 600; }
.ob-chip-hint { font-size: 12px; color: #6666aa; }

/* Radio list */
.ob-radio-list { display: flex; flex-direction: column; gap: 8px; }
.ob-radio {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  cursor: pointer; transition: all .15s;
  color: #b4b4c8; font-size: 13.5px;
}
.ob-radio input[type=radio] { accent-color: #ff6b35; }
.ob-radio:hover { border-color: rgba(255,107,53,.3); background: rgba(255,107,53,.05); }
.ob-radio.selected { border-color: #ff6b35; background: rgba(255,107,53,.1); color: #f4f4f8; }

/* Palette grid */
.ob-palette-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ob-palette-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 8px; border-radius: 12px;
  border: 2px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  cursor: pointer; transition: all .15s;
}
.ob-palette-card:hover { border-color: rgba(255,107,53,.4); }
.ob-palette-card.selected { border-color: #ff6b35; background: rgba(255,107,53,.08); }
.ob-swatches { display: flex; gap: 4px; }
.ob-swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.ob-palette-label { font-size: 10px; text-align: center; color: #8888a8; line-height: 1.3; }

/* Logo drop */
.ob-logo-drop {
  border: 2px dashed rgba(255,255,255,.12);
  border-radius: 12px; padding: 32px 20px;
  text-align: center; cursor: pointer; transition: all .15s;
  margin-bottom: 14px;
}
.ob-logo-drop:hover { border-color: #ff6b35; background: rgba(255,107,53,.04); }
.ob-logo-icon { font-size: 28px; margin-bottom: 8px; }
.ob-logo-text { color: #f4f4f8; font-size: 14px; font-weight: 500; }
.ob-logo-sub { color: #6666aa; font-size: 12px; margin-top: 4px; }
.ob-skip-link {
  background: none; border: 0; color: #6666aa;
  font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.ob-skip-link:hover { color: #b4b4c8; }

/* Footer */
.ob-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 32px 24px;
}
.ob-foot-left, .ob-foot-right { display: flex; align-items: center; gap: 10px; }
.ob-btn { padding: 10px 18px; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 13.5px; font-weight: 600; cursor: pointer; border: 0; transition: all .15s; }
.ob-btn-primary { background: linear-gradient(135deg, #ff6b35, #ff8c5a); color: #fff; box-shadow: 0 6px 20px rgba(255,107,53,.3); }
.ob-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,107,53,.4); }
.ob-btn-ghost { background: rgba(255,255,255,.06); color: #b4b4c8; border: 1px solid rgba(255,255,255,.1); }
.ob-btn-ghost:hover { background: rgba(255,255,255,.1); color: #f4f4f8; }
.ob-btn-skip { background: none; color: #6666aa; font-size: 12px; padding: 8px 12px; }
.ob-btn-skip:hover { color: #b4b4c8; }

/* Generating state */
.ob-generating { padding: 60px 32px; text-align: center; }
.ob-spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.08);
  border-top-color: #ff6b35;
  animation: ob-spin .8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes ob-spin { to { transform: rotate(360deg); } }
.ob-gen-title { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; color: #f4f4f8; margin-bottom: 8px; }
.ob-gen-sub { color: #8888a8; font-size: 13.5px; line-height: 1.5; }

/* Design picker */
.ob-design-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 24px; }
.ob-design-card {
  border: 2px solid rgba(255,255,255,.08);
  border-radius: 14px; overflow: hidden;
  cursor: pointer; transition: all .2s;
}
.ob-design-card:hover { border-color: rgba(255,107,53,.5); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.4); }
.ob-design-card.selected { border-color: #ff6b35; box-shadow: 0 0 0 3px rgba(255,107,53,.2); }
.ob-design-preview { height: 160px; position: relative; overflow: hidden; }
.ob-design-hero { height: 100%; display: flex; flex-direction: column; }
.ob-design-nav-bar { height: 22px; width: 100%; }
.ob-design-hero-text { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 12px 16px; gap: 10px; }
.ob-design-h1 { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-design-btn { height: 20px; width: 70px; border-radius: 4px; opacity: .9; }
.ob-design-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; pointer-events: none; }
.ob-design-info { padding: 12px 14px; background: rgba(255,255,255,.03); }
.ob-design-name { font-weight: 700; font-size: 13.5px; color: #f4f4f8; margin-bottom: 3px; }
.ob-design-vibe { font-size: 11px; color: #8888a8; margin-bottom: 8px; line-height: 1.4; }
.ob-design-swatches { display: flex; gap: 5px; }
.ob-design-swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); }
.ob-design-foot { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 28px; gap: 12px; }

/* ═══════════════════════════════════════════════════════════════════
   SSV27 · CENTRAL AI HUB
═══════════════════════════════════════════════════════════════════ */
.aihub-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #ff6b35, #ff4500);
  color: #fff; border: 0; border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(255,107,53,.45);
  transition: all .2s;
}
.aihub-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(255,107,53,.55); }
.aihub-fab.active { background: linear-gradient(135deg, #1c1c26, #2a2a3a); box-shadow: 0 8px 28px rgba(0,0,0,.45); }
.aihub-fab-icon { font-size: 16px; }

.aihub-panel {
  position: fixed; bottom: 0; right: 28px; z-index: 499;
  width: 360px;
  background: linear-gradient(180deg, #1e1e28, #16161e);
  border: 1px solid rgba(255,255,255,.08);
  border-bottom: 0; border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 60px rgba(0,0,0,.5);
  display: flex; flex-direction: column;
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.aihub-panel.open { max-height: 70vh; overflow: visible; }

.aihub-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.aihub-eyebrow { font-family: monospace; font-size: 9px; letter-spacing: .2em; color: #ff6b35; text-transform: uppercase; }
.aihub-title { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; color: #f4f4f8; margin-top: 3px; }
.aihub-close { background: none; border: 0; color: #6666aa; font-size: 20px; cursor: pointer; padding: 0; line-height: 1; }
.aihub-close:hover { color: #f4f4f8; }

.aihub-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 0;
}
.aihub-welcome { text-align: center; padding: 12px 8px; color: #8888a8; font-size: 13px; }
.aihub-welcome-icon { font-size: 28px; margin-bottom: 8px; }
.aihub-suggestions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.aihub-suggestions button {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: #b4b4c8; font-family: 'DM Sans', sans-serif; font-size: 12px;
  padding: 6px 12px; border-radius: 100px; cursor: pointer; transition: all .15s;
}
.aihub-suggestions button:hover { background: rgba(255,107,53,.1); border-color: rgba(255,107,53,.4); color: #f4f4f8; }

.aihub-msg { display: flex; }
.aihub-msg-user { justify-content: flex-end; }
.aihub-msg-assistant { justify-content: flex-start; }
.aihub-msg-bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.5;
}
.aihub-msg-user .aihub-msg-bubble {
  background: linear-gradient(135deg, #ff6b35, #ff4500);
  color: #fff; border-radius: 14px 14px 4px 14px;
}
.aihub-msg-assistant .aihub-msg-bubble {
  background: rgba(255,255,255,.06); color: #d8d8ea;
  border-radius: 14px 14px 14px 4px;
}

.aihub-input-area {
  padding: 12px 16px 16px; border-top: 1px solid rgba(255,255,255,.06); flex-shrink: 0;
}
.aihub-input-row { display: flex; gap: 8px; }
.aihub-textarea {
  flex: 1; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; color: #f4f4f8;
  font-family: 'DM Sans', sans-serif; font-size: 13.5px;
  padding: 10px 12px; resize: none; min-height: 44px;
  transition: border-color .15s;
}
.aihub-textarea:focus { outline: none; border-color: #ff6b35; }
.aihub-send {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, #ff6b35, #ff4500);
  color: #fff; border: 0; font-size: 18px; font-weight: 700;
  cursor: pointer; transition: all .15s; flex-shrink: 0;
  align-self: flex-end;
}
.aihub-send:hover { transform: scale(1.05); }
.aihub-send:disabled { opacity: .5; cursor: wait; transform: none; }
.aihub-foot-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.aihub-undo {
  background: none; border: 0; color: #6666aa; font-size: 12px;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.aihub-undo:hover { color: #b4b4c8; }
.aihub-model { font-family: monospace; font-size: 10px; color: #4a4a6a; letter-spacing: .08em; }

/* ═══════════════════════════════════════════════════════════════════
   SSV27 · MOBILE STYLES
═══════════════════════════════════════════════════════════════════ */
.ss-mobile-banner {
  position: sticky; top: 0; z-index: 600;
  background: linear-gradient(135deg, #1c1c26, #2a1a2e);
  border-bottom: 1px solid rgba(255,107,53,.3);
  padding: 10px 16px;
}
.smb-inner { display: flex; align-items: center; gap: 12px; }
.smb-icon { font-size: 20px; flex-shrink: 0; }
.smb-text { flex: 1; font-size: 13px; color: #d8d8ea; line-height: 1.4; }
.smb-text strong { color: #ff8c5a; }
.smb-text span { display: block; color: #8888a8; font-size: 12px; margin-top: 2px; }
.smb-close { background: none; border: 0; color: #8888a8; font-size: 18px; cursor: pointer; flex-shrink: 0; }

.ss-mobile-canvas-msg {
  display: flex; align-items: center; justify-content: center;
  min-height: 300px; padding: 40px 24px; text-align: center;
}
.smcm-inner { max-width: 300px; }
.smcm-inner h3 { color: #f4f4f8; font-size: 20px; margin-bottom: 10px; }
.smcm-inner p { color: #8888a8; font-size: 14px; line-height: 1.6; }

@media (max-width: 768px) {
  .aihub-panel { width: 100%; right: 0; border-radius: 18px 18px 0 0; }
  .aihub-fab { bottom: 80px; right: 16px; }
  .ob-palette-grid { grid-template-columns: repeat(2, 1fr); }
  .ob-design-grid { grid-template-columns: 1fr; }
  .ob-card-wide { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════
   SSV27 · LAUNCH PAGE (POST-EXPORT)
═══════════════════════════════════════════════════════════════════ */
.sslp-overlay {
  position: fixed; inset: 0; z-index: 9995;
  background: rgba(8,8,14,.9); backdrop-filter: blur(16px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 20px; overflow-y: auto;
  animation: ob-fade .25s ease;
}
.sslp-card {
  width: 100%; max-width: 1000px;
  background: linear-gradient(180deg, #1c1c26, #14141e);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.7);
  margin: auto;
}
.sslp-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sslp-eyebrow { font-family: monospace; font-size: 10px; letter-spacing: .2em; color: #4ade80; text-transform: uppercase; margin-bottom: 6px; }
.sslp-title { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 700; color: #f4f4f8; letter-spacing: -0.02em; }
.sslp-sub { color: #8888a8; font-size: 14px; margin-top: 4px; }
.sslp-close { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #b4b4c8; font-size: 16px; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; }
.sslp-close:hover { background: rgba(255,255,255,.12); color: #f4f4f8; }

.sslp-body { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 480px; }
.sslp-preview-col { border-right: 1px solid rgba(255,255,255,.06); padding: 20px; display: flex; flex-direction: column; }
.sslp-preview-label { font-family: monospace; font-size: 10px; letter-spacing: .2em; color: #6666aa; text-transform: uppercase; margin-bottom: 10px; }
.sslp-preview-frame { flex: 1; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.08); position: relative; min-height: 300px; }
.sslp-preview-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #6666aa; font-size: 13px; }
.sslp-spinner { width: 20px; height: 20px; border: 2px solid rgba(255,107,53,.2); border-top-color: #ff6b35; border-radius: 50%; animation: ob-spin .8s linear infinite; }
.sslp-iframe { width: 100%; height: 100%; border: 0; display: block; }
.sslp-preview-error { padding: 20px; color: #6666aa; font-size: 13px; text-align: center; }

.sslp-options-col { padding: 20px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.sslp-option { padding: 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); margin-bottom: 4px; }
.sslp-option-plain { opacity: .8; }
.sslp-option-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.sslp-option-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.sslp-option-title { font-weight: 700; color: #f4f4f8; font-size: 14px; }
.sslp-option-sub { color: #8888a8; font-size: 12px; margin-top: 3px; line-height: 1.4; }
.sslp-option-badge { margin-left: auto; font-family: monospace; font-size: 10px; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; background: rgba(255,107,53,.12); color: #ff8c5a; border: 1px solid rgba(255,107,53,.25); white-space: nowrap; }
.sslp-option-badge.free { background: rgba(74,222,128,.1); color: #4ade80; border-color: rgba(74,222,128,.25); }

.sslp-subdomain-row { display: flex; align-items: center; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.sslp-subdomain-input { background: none; border: 0; color: #f4f4f8; font-family: monospace; font-size: 13px; padding: 10px 12px; flex: 1; }
.sslp-subdomain-input:focus { outline: none; }
.sslp-subdomain-suffix { font-family: monospace; font-size: 12px; color: #6666aa; padding-right: 12px; white-space: nowrap; }
.sslp-vercel-row { margin-bottom: 8px; }
.sslp-input { width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #f4f4f8; font-family: 'DM Sans', sans-serif; font-size: 13px; padding: 10px 12px; }
.sslp-input:focus { outline: none; border-color: #ff6b35; }

.sslp-btn-primary, .sslp-btn-secondary, .sslp-btn-ghost {
  width: 100%; padding: 11px 16px;
  border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 0; transition: all .15s;
}
.sslp-btn-primary { background: linear-gradient(135deg, #ff6b35, #ff4500); color: #fff; box-shadow: 0 4px 16px rgba(255,107,53,.3); }
.sslp-btn-primary:hover { transform: translateY(-1px); }
.sslp-btn-secondary { background: rgba(255,255,255,.08); color: #f4f4f8; border: 1px solid rgba(255,255,255,.12); }
.sslp-btn-secondary:hover { background: rgba(255,255,255,.14); }
.sslp-btn-ghost { background: none; color: #8888a8; border: 1px solid rgba(255,255,255,.08); }
.sslp-btn-ghost:hover { color: #f4f4f8; border-color: rgba(255,255,255,.2); }

.sslp-divider { display: flex; align-items: center; gap: 10px; padding: 2px 0; color: #4a4a6a; font-size: 12px; }
.sslp-divider::before, .sslp-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.06); }

.sslp-status { margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 12px; line-height: 1.5; }
.sslp-status-loading { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.2); color: #fbbf24; }
.sslp-status-success { background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.2); color: #4ade80; }
.sslp-status-error { background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.2); color: #f87171; }
.sslp-status a { color: inherit; text-decoration: underline; }

@media (max-width: 720px) {
  .sslp-body { grid-template-columns: 1fr; }
  .sslp-preview-col { display: none; }
}
