/* ===== TikTok.Ai — Global Styles ===== */
:root {
  --red: #fe2c55;
  --cyan: #25f4ee;
  --gold: #ffd60a;
  --green: #2bff88;
  --bg: #000;
  --bg2: #0d0d0d;
  --bg3: #141414;
  --bg4: #1a1a1a;
  --border: rgba(255,255,255,0.07);
  --text1: #fff;
  --text2: rgba(255,255,255,0.55);
  --text3: rgba(255,255,255,0.3);
  --red-dim: rgba(254,44,85,0.1);
  --cyan-dim: rgba(37,244,238,0.08);
  --gold-dim: rgba(255,214,10,0.08);
  --green-dim: rgba(43,255,136,0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --topbar-h: 60px;
  --nav-h: 62px;
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { background:var(--bg); overflow:hidden; height:100%; }
body { font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display',sans-serif; background:var(--bg); color:var(--text1); height:100%; overflow:hidden; overscroll-behavior:none; }

/* ==================== SPLASH ==================== */
#splash {
  position:fixed; inset:0; background:#000; z-index:9999;
  display:flex; align-items:center; justify-content:center;
  flex-direction:column; overflow:hidden;
}
#splash-canvas { position:absolute; inset:0; opacity:0.3; }
.splash-content {
  position:relative; z-index:1; display:flex; flex-direction:column;
  align-items:center; gap:20px; padding:0 30px; width:100%;
}
.splash-logo-wrap { position:relative; }
.splash-logo-ring { position:relative; width:120px; height:120px; }
.splash-svg-ring {
  position:absolute; inset:0; width:100%; height:100%;
  transform:rotate(-90deg); animation:splash-ring-spin 0.5s linear;
}
.sring-bg { fill:none; stroke:rgba(255,255,255,0.06); stroke-width:3; }
.sring-fill {
  fill:none; stroke:url(#sGrad); stroke-width:3;
  stroke-dasharray:390; stroke-dashoffset:390;
  transition:stroke-dashoffset 0.4s ease; stroke-linecap:round;
}
.splash-logo-inner {
  position:absolute; inset:8px; background:linear-gradient(135deg,#fe2c55,#000,#25f4ee);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  animation:splash-pulse 2s ease-in-out infinite;
}
.splash-tt-icon { font-size:3rem; font-weight:900; color:#fff; text-shadow:0 0 20px rgba(254,44,85,0.8); }
@keyframes splash-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }

.splash-brand-wrap { text-align:center; }
.splash-brand { font-size:2.4rem; font-weight:900; letter-spacing:-1px; }
.brand-dot { color:var(--red); }
.brand-ai { background:linear-gradient(90deg,var(--red),var(--cyan)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.splash-tagline { font-size:0.8rem; color:var(--text2); margin-top:4px; }

.splash-loader { width:100%; max-width:280px; }
.sl-bar { height:3px; background:rgba(255,255,255,0.08); border-radius:99px; overflow:hidden; margin-bottom:8px; }
.sl-fill { height:100%; background:linear-gradient(90deg,var(--red),var(--cyan)); border-radius:99px; width:0%; transition:width 0.4s ease; }
.sl-txt { font-size:0.72rem; color:var(--text2); text-align:center; }
.splash-version { font-size:0.65rem; color:var(--text3); }

#splash.splash-out { animation:splash-fade-out 0.5s ease forwards; }
@keyframes splash-fade-out { to { opacity:0; transform:scale(1.05); } }

/* ==================== PWA SHEET ==================== */
.pwa-sheet {
  position:fixed; bottom:-100%; left:0; right:0; z-index:8000;
  background:var(--bg3); border-radius:24px 24px 0 0;
  border-top:1px solid var(--border); padding:0 20px 40px;
  transition:bottom 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow:0 -20px 60px rgba(0,0,0,0.8);
}
.pwa-sheet.show { bottom:0; }
.pwa-drag-handle { width:40px; height:4px; background:rgba(255,255,255,0.2); border-radius:99px; margin:12px auto 20px; }
.pwa-app-row { display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.pwa-app-icon { width:58px; height:58px; background:linear-gradient(135deg,#fe2c55,#000); border-radius:14px; display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:0 4px 20px rgba(254,44,85,0.4); }
.pwa-icon-tt { font-size:1.8rem; font-weight:900; color:#fff; }
.pwa-app-info strong { display:block; font-size:1.1rem; }
.pwa-app-info span { font-size:0.78rem; color:var(--text2); }
.pwa-stars { color:var(--gold); font-size:0.7rem; margin-top:2px; }
.pwa-desc { font-size:0.82rem; color:var(--text2); line-height:1.6; margin-bottom:16px; }
.pwa-install-btn { width:100%; padding:14px; background:linear-gradient(135deg,var(--red),#ff6b35); color:#fff; border:none; border-radius:14px; font-size:1rem; font-weight:700; cursor:pointer; margin-bottom:10px; display:flex; align-items:center; justify-content:center; gap:8px; }
.pwa-later { width:100%; padding:12px; background:transparent; color:var(--text2); border:none; font-size:0.85rem; cursor:pointer; }
.pwa-backdrop { position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:7999; opacity:0; pointer-events:none; transition:opacity 0.3s; }
.pwa-backdrop.show { opacity:1; pointer-events:all; }

/* ==================== TOAST ==================== */
#toast-root { position:fixed; top:24px; left:50%; transform:translateX(-50%); z-index:9000; display:flex; flex-direction:column; gap:8px; pointer-events:none; width:calc(100% - 40px); max-width:340px; }
.toast { background:var(--bg4); border:1px solid var(--border); padding:12px 16px; border-radius:12px; font-size:0.85rem; font-weight:500; box-shadow:var(--shadow); animation:toast-in 0.3s ease; }
.toast.out { animation:toast-out 0.2s ease forwards; }
@keyframes toast-in { from{opacity:0;transform:translateY(-12px)} to{opacity:1;transform:translateY(0)} }
@keyframes toast-out { to{opacity:0;transform:translateY(-8px)} }

/* ==================== MODAL ==================== */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.7); z-index:7000; opacity:0; pointer-events:none; transition:opacity 0.25s; }
.modal-overlay.show { opacity:1; pointer-events:all; }
.upgrade-modal { position:fixed; inset:0; z-index:7500; display:flex; align-items:center; justify-content:center; padding:20px; }
.um-card { background:var(--bg3); border:1px solid rgba(255,214,10,0.2); border-radius:24px; padding:28px 24px; max-width:340px; width:100%; text-align:center; animation:modal-pop 0.35s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes modal-pop { from{transform:scale(0.8);opacity:0} to{transform:scale(1);opacity:1} }
.um-icon { font-size:2.5rem; margin-bottom:12px; }
.um-card h3 { font-size:1.3rem; margin-bottom:8px; }
.um-card p { font-size:0.82rem; color:var(--text2); line-height:1.6; margin-bottom:16px; }
.um-price { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:16px; }
.um-old { font-size:0.85rem; color:var(--text3); text-decoration:line-through; }
.um-new { font-size:2rem; font-weight:900; color:var(--gold); }
.um-tag { background:var(--gold-dim); color:var(--gold); padding:2px 8px; border-radius:99px; font-size:0.7rem; }

/* ==================== APP SHELL ==================== */
#app { height:100dvh; overflow:hidden; }
.auth-root { height:100dvh; overflow-y:auto; }
.main-root { height:100dvh; display:flex; flex-direction:column; overflow:hidden; }

/* ==================== SCREENS / AUTH ==================== */
.screen { display:none; }
.screen.active { display:block; }

.auth-page {
  min-height:100dvh; padding:24px 20px 40px; max-width:420px; margin:0 auto;
  overflow-y:auto;
}
.back-btn { background:none; border:none; color:var(--text2); font-size:0.9rem; cursor:pointer; padding:0; margin-bottom:16px; display:flex; align-items:center; gap:6px; }
.auth-header { text-align:center; margin-bottom:28px; }
.step-dots { display:flex; justify-content:center; gap:6px; margin-bottom:12px; }
.sdot { width:8px; height:8px; border-radius:50%; background:var(--border); }
.sdot.active { background:var(--red); width:20px; border-radius:4px; }
.auth-logo { font-size:1.6rem; font-weight:900; margin-bottom:8px; }
.al-dot { color:var(--red); }
.al-ai { background:linear-gradient(90deg,var(--red),var(--cyan)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.auth-header h2 { font-size:1.5rem; font-weight:800; margin-bottom:6px; }
.auth-header p { font-size:0.82rem; color:var(--text2); }

.form-group { margin-bottom:14px; }
.form-group label { font-size:0.75rem; color:var(--text2); margin-bottom:6px; display:block; font-weight:600; letter-spacing:0.3px; }
.input-wrap { position:relative; display:flex; align-items:center; }
.ii { position:absolute; left:14px; font-size:1rem; z-index:1; }
.inp { width:100%; padding:13px 14px 13px 42px; background:var(--bg3); border:1px solid var(--border); border-radius:12px; color:var(--text1); font-size:0.9rem; outline:none; transition:border-color 0.2s; -webkit-appearance:none; }
.inp:focus { border-color:var(--red); }
.pass-eye { position:absolute; right:12px; background:none; border:none; color:var(--text2); cursor:pointer; font-size:1rem; }
.device-notice { background:var(--bg3); border:1px solid var(--border); border-radius:10px; padding:10px 14px; font-size:0.75rem; color:var(--text2); margin-bottom:14px; }
.auth-switch { text-align:center; font-size:0.82rem; color:var(--text2); margin-top:16px; }
.auth-switch span { color:var(--red); cursor:pointer; font-weight:600; }
.free-badge-box { background:var(--green-dim); border:1px solid rgba(43,255,136,0.2); border-radius:10px; padding:10px 14px; font-size:0.8rem; color:var(--green); margin-bottom:16px; text-align:center; }

/* ==================== LANDING ==================== */
.landing-hero { position:relative; min-height:85vh; display:flex; align-items:center; padding:40px 20px; overflow:hidden; }
.hero-bg { position:absolute; inset:0; overflow:hidden; }
.hero-orb { position:absolute; border-radius:50%; filter:blur(80px); opacity:0.15; }
.orb1 { width:280px; height:280px; background:var(--red); top:-80px; right:-60px; animation:orb-float1 8s ease-in-out infinite; }
.orb2 { width:200px; height:200px; background:var(--cyan); bottom:0; left:-60px; animation:orb-float2 10s ease-in-out infinite; }
.orb3 { width:150px; height:150px; background:var(--gold); top:50%; left:30%; animation:orb-float3 7s ease-in-out infinite; }
@keyframes orb-float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,20px)} }
@keyframes orb-float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-20px)} }
@keyframes orb-float3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-10px,10px)} }
.hero-grid { position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,0.02) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.02) 1px,transparent 1px); background-size:30px 30px; }
.hero-content { position:relative; z-index:1; width:100%; }
.hero-badge { display:inline-flex; align-items:center; gap:6px; background:rgba(254,44,85,0.12); border:1px solid rgba(254,44,85,0.25); color:var(--red); padding:5px 12px; border-radius:99px; font-size:0.72rem; font-weight:600; margin-bottom:16px; }
.badge-dot { width:6px; height:6px; border-radius:50%; background:var(--red); animation:pulse-dot 1.5s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero-title { font-size:2.6rem; font-weight:900; line-height:1.1; letter-spacing:-1.5px; margin-bottom:14px; }
.grad-text { background:linear-gradient(90deg,var(--red),var(--cyan)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.hero-sub { font-size:0.88rem; color:var(--text2); line-height:1.6; margin-bottom:20px; }
.hero-stats { display:flex; align-items:center; gap:0; margin-bottom:16px; }
.hstat { text-align:center; flex:1; }
.hstat-val { font-size:1.3rem; font-weight:800; color:var(--text1); }
.hstat-lbl { font-size:0.65rem; color:var(--text2); }
.hstat-sep { width:1px; height:30px; background:var(--border); }
.hero-free-badge { background:var(--gold-dim); border:1px solid rgba(255,214,10,0.2); color:var(--gold); padding:8px 14px; border-radius:10px; font-size:0.78rem; font-weight:600; margin-bottom:14px; text-align:center; }

/* ==================== LANDING SECTIONS ==================== */
.tools-preview-section, .how-section { padding:24px 20px; }
.tps-header { font-size:1rem; font-weight:700; margin-bottom:14px; }
.tools-scroll-row { display:flex; gap:8px; overflow-x:auto; padding-bottom:8px; margin-bottom:16px; scrollbar-width:none; }
.tools-scroll-row::-webkit-scrollbar { display:none; }
.tool-chip { white-space:nowrap; padding:7px 14px; background:var(--bg3); border:1px solid var(--border); border-radius:99px; font-size:0.75rem; cursor:pointer; transition:all 0.2s; }
.tool-chip:hover { border-color:var(--red); background:var(--red-dim); }
.feature-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.feat-card { background:var(--bg3); border:1px solid var(--border); border-radius:14px; padding:14px; }
.feat-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:1.1rem; margin-bottom:8px; }
.feat-card h4 { font-size:0.82rem; font-weight:700; margin-bottom:4px; }
.feat-card p { font-size:0.72rem; color:var(--text2); line-height:1.4; }
.how-section { border-top:1px solid var(--border); }
.how-title { font-size:1rem; font-weight:700; margin-bottom:16px; text-align:center; }
.how-steps { display:flex; align-items:center; gap:4px; overflow-x:auto; padding-bottom:4px; }
.how-step { flex-shrink:0; background:var(--bg3); border:1px solid var(--border); border-radius:12px; padding:10px; text-align:center; min-width:80px; }
.hs-num { width:24px; height:24px; border-radius:50%; background:var(--red); color:#fff; font-size:0.7rem; font-weight:700; display:flex; align-items:center; justify-content:center; margin:0 auto 6px; }
.hs-txt { font-size:0.65rem; line-height:1.4; color:var(--text2); }
.hs-txt strong { color:var(--text1); display:block; margin-bottom:2px; }
.how-arrow { flex-shrink:0; color:var(--text3); font-size:0.9rem; }

/* ==================== PAYMENT ==================== */
.lifetime-badge { background:linear-gradient(90deg,var(--gold),#ff9500); color:#000; padding:4px 12px; border-radius:99px; font-size:0.72rem; font-weight:800; display:inline-block; margin-bottom:8px; }
.lifetime-value-card { background:var(--bg3); border:1px solid rgba(255,214,10,0.2); border-radius:16px; padding:16px; margin-bottom:18px; }
.lvc-title { font-size:0.75rem; color:var(--text2); margin-bottom:10px; font-weight:600; }
.lvc-items { display:flex; flex-direction:column; gap:5px; margin-bottom:14px; }
.lvc-item { font-size:0.8rem; color:var(--text1); }
.lvc-price { display:flex; align-items:center; gap:8px; padding-top:12px; border-top:1px solid var(--border); }
.lvc-old { font-size:0.85rem; color:var(--text3); text-decoration:line-through; }
.lvc-new { font-size:1.8rem; font-weight:900; color:var(--gold); }
.lvc-forever { background:var(--gold-dim); color:var(--gold); padding:2px 8px; border-radius:99px; font-size:0.65rem; }
.pm-label { font-size:0.75rem; color:var(--text2); font-weight:600; margin-bottom:8px; }
.pm-options { display:flex; gap:10px; margin-bottom:14px; }
.pm-opt { flex:1; display:flex; align-items:center; gap:10px; background:var(--bg3); border:2px solid var(--border); border-radius:12px; padding:12px; cursor:pointer; transition:all 0.2s; }
.pm-opt.active { border-color:var(--red); background:var(--red-dim); }
.pm-logo { width:36px; height:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:0.7rem; font-weight:800; flex-shrink:0; }
.easy-logo { background:linear-gradient(135deg,#00a651,#007a3d); color:#fff; }
.jazz-logo { background:linear-gradient(135deg,#e4002b,#a3001f); color:#fff; }
.pm-info { flex:1; }
.pm-info strong { display:block; font-size:0.85rem; }
.pm-info span { font-size:0.7rem; color:var(--text2); }
.pm-tick { color:var(--red); font-weight:700; opacity:0; }
.pm-opt.active .pm-tick { opacity:1; }
.pay-number-box { background:var(--bg3); border:1px solid var(--border); border-radius:12px; padding:14px; margin-bottom:14px; }
.pnb-label { font-size:0.72rem; color:var(--text2); margin-bottom:4px; }
.pnb-num { font-size:1.4rem; font-weight:900; color:var(--cyan); letter-spacing:1px; margin-bottom:8px; }
.pnb-copy { background:var(--cyan-dim); border:1px solid rgba(37,244,238,0.2); color:var(--cyan); padding:6px 14px; border-radius:8px; font-size:0.78rem; cursor:pointer; }
.ss-upload-section { margin-bottom:14px; }
.ss-label { font-size:0.75rem; color:var(--text2); font-weight:600; margin-bottom:8px; }
.ss-dropzone { background:var(--bg3); border:2px dashed var(--border); border-radius:12px; padding:24px; text-align:center; cursor:pointer; transition:border-color 0.2s; min-height:100px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; }
.ss-dropzone:hover { border-color:var(--red); }
.ss-icon { font-size:2rem; }
.ss-hint { font-size:0.78rem; color:var(--text2); }
.ss-preview { max-width:100%; max-height:200px; border-radius:8px; object-fit:contain; }
.pending-page { min-height:100dvh; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:30px 20px; text-align:center; gap:16px; }
.pending-anim { position:relative; width:100px; height:100px; display:flex; align-items:center; justify-content:center; margin-bottom:8px; }
.pa-ring { position:absolute; border-radius:50%; border:2px solid transparent; animation:pa-spin 2s linear infinite; }
.r1 { width:100%; height:100%; border-top-color:var(--red); animation-duration:1.5s; }
.r2 { width:78%; height:78%; border-top-color:var(--cyan); animation-direction:reverse; animation-duration:2s; }
.r3 { width:56%; height:56%; border-top-color:var(--gold); animation-duration:2.5s; }
@keyframes pa-spin { to { transform:rotate(360deg); } }
.pa-icon { font-size:1.8rem; }
.pending-steps { text-align:left; width:100%; max-width:280px; }
.pstep { display:flex; align-items:center; gap:10px; padding:8px 0; }
.psdot { width:10px; height:10px; border-radius:50%; background:var(--border); flex-shrink:0; }
.pstep.done .psdot { background:var(--green); }
.pstep.active .psdot { background:var(--gold); animation:pulse-dot 1s infinite; }
.pstep span { font-size:0.82rem; color:var(--text2); }
.pstep.done span { color:var(--green); }
.pstep.active span { color:var(--gold); }
.wp-btn { display:inline-flex; align-items:center; gap:6px; background:rgba(37,211,102,0.12); border:1px solid rgba(37,211,102,0.3); color:#25d366; padding:10px 20px; border-radius:12px; font-size:0.85rem; font-weight:600; text-decoration:none; }

/* ==================== TOPBAR ==================== */
.topbar { height:var(--topbar-h); background:var(--bg); border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; padding:0 16px; flex-shrink:0; }
.tb-left { display:flex; align-items:center; gap:10px; }
.tb-avatar { width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,var(--red),var(--cyan)); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.9rem; flex-shrink:0; }
.tb-name { font-size:0.9rem; font-weight:700; }
.tb-status { display:flex; align-items:center; gap:4px; font-size:0.65rem; color:var(--text2); }
.ts-dot { width:5px; height:5px; border-radius:50%; background:var(--green); }
.tb-right { display:flex; align-items:center; gap:8px; }
.tb-plan-chip { background:linear-gradient(90deg,var(--red),#ff6b35); padding:4px 10px; border-radius:99px; font-size:0.65rem; font-weight:700; }
.tb-trial-chip { background:var(--green-dim); border:1px solid rgba(43,255,136,0.2); color:var(--green); padding:4px 10px; border-radius:99px; font-size:0.65rem; font-weight:700; }
.tb-notif { background:none; border:none; font-size:1.3rem; cursor:pointer; position:relative; }
.notif-dot { position:absolute; top:0; right:0; width:7px; height:7px; background:var(--red); border-radius:50%; border:1.5px solid var(--bg); }

/* ==================== PAGES ==================== */
.pages-wrap { flex:1; overflow:hidden; position:relative; }
.page { display:none; position:absolute; inset:0; overflow-y:auto; overflow-x:hidden; padding-bottom:calc(var(--nav-h) + 16px); }
.page.active { display:block; animation:page-in 0.25s ease; }
@keyframes page-in { from{opacity:0;transform:translateX(12px)} to{opacity:1;transform:translateX(0)} }
.page-header { display:flex; align-items:center; justify-content:space-between; padding:14px 16px 10px; position:sticky; top:0; background:var(--bg); z-index:10; border-bottom:1px solid var(--border); }
.page-header h3 { font-size:1rem; font-weight:700; }
.back-icon-btn { background:none; border:none; color:var(--text1); font-size:1.2rem; cursor:pointer; padding:4px 8px 4px 0; }
.run-btn { background:var(--red); color:#fff; border:none; border-radius:8px; padding:7px 14px; font-size:0.82rem; font-weight:700; cursor:pointer; }
.clear-btn { background:none; border:none; color:var(--text2); font-size:1.1rem; cursor:pointer; }
.tools-count-chip { background:var(--red-dim); color:var(--red); padding:4px 10px; border-radius:99px; font-size:0.7rem; font-weight:700; }

/* ==================== SCORE HERO ==================== */
.score-hero { position:relative; margin:0 16px 16px; border-radius:20px; overflow:hidden; background:var(--bg3); border:1px solid var(--border); margin-top:16px; }
.sh-bg { position:absolute; inset:0; background:radial-gradient(circle at 30% 50%,rgba(254,44,85,0.1),transparent 70%); }
.sh-content { position:relative; padding:20px; display:flex; flex-direction:column; align-items:center; gap:12px; }
.sh-label { font-size:0.72rem; color:var(--text2); font-weight:600; letter-spacing:1px; text-transform:uppercase; }
.sh-ring-wrap { position:relative; width:120px; height:120px; }
.score-svg { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }
.score-svg-bg { fill:none; stroke:rgba(255,255,255,0.06); stroke-width:6; }
.score-svg-fill { fill:none; stroke:url(#sGrad); stroke-width:6; stroke-dasharray:327; stroke-dashoffset:327; transition:stroke-dashoffset 1.5s cubic-bezier(0.34,1.56,0.64,1); stroke-linecap:round; }
.sh-score-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.sh-score { font-size:2.2rem; font-weight:900; }
.sh-score-max { font-size:0.65rem; color:var(--text2); }
.sh-msg { font-size:0.82rem; color:var(--text2); text-align:center; }
.sh-run-btn { background:linear-gradient(135deg,var(--red),#ff6b35); color:#fff; border:none; border-radius:12px; padding:10px 20px; font-size:0.85rem; font-weight:700; cursor:pointer; }

/* ==================== QUICK STATS ==================== */
.qstats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:0 16px 12px; }
.qstat-card { background:var(--bg3); border:1px solid var(--border); border-radius:12px; padding:10px 6px; text-align:center; }
.qsc-icon { font-size:1.1rem; margin-bottom:4px; }
.qsc-val { font-size:0.9rem; font-weight:800; margin-bottom:2px; }
.qsc-lbl { font-size:0.6rem; color:var(--text2); }

/* ==================== TRIAL WARNING ==================== */
.trial-warning { margin:0 16px 12px; background:var(--gold-dim); border:1px solid rgba(255,214,10,0.2); border-radius:12px; padding:10px 14px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.tw-text { font-size:0.78rem; color:var(--gold); }
.tw-upgrade { background:var(--gold); color:#000; border:none; border-radius:8px; padding:6px 12px; font-size:0.72rem; font-weight:700; cursor:pointer; white-space:nowrap; }

/* ==================== SECTIONS ==================== */
.section-row { display:flex; align-items:center; justify-content:space-between; padding:0 16px 8px; }
.section-title { font-size:0.88rem; font-weight:700; }
.section-more { font-size:0.72rem; color:var(--red); cursor:pointer; }

/* ==================== HOME TOOLS GRID ==================== */
.home-tools-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:0 16px 12px; }
.htool-card { background:var(--bg3); border:1px solid var(--border); border-radius:12px; padding:12px 8px; text-align:center; cursor:pointer; transition:all 0.2s; }
.htool-card:active { transform:scale(0.96); }
.htool-icon { font-size:1.6rem; margin-bottom:4px; }
.htool-name { font-size:0.65rem; font-weight:600; line-height:1.3; }

/* ==================== LAST ANALYSIS CARD ==================== */
.last-analysis-card { margin:0 16px 12px; background:var(--bg3); border:1px solid var(--border); border-radius:14px; padding:16px; }
.lac-empty { text-align:center; padding:16px 0; }
.lac-empty p { font-size:0.82rem; color:var(--text2); margin-top:6px; line-height:1.5; }

/* ==================== AI PAGE ==================== */
.ai-input-card { margin:12px 16px; background:var(--bg3); border:1px solid var(--border); border-radius:14px; padding:14px; }
.aic-title { font-size:0.82rem; font-weight:600; margin-bottom:8px; }
.aic-note { font-size:0.72rem; color:var(--text2); margin-top:6px; }
.ai-progress { margin:12px 16px; background:var(--bg3); border:1px solid var(--border); border-radius:14px; padding:14px; }
.ap-inner { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.ap-spinner { width:18px; height:18px; border:2px solid rgba(255,255,255,0.1); border-top-color:var(--red); border-radius:50%; animation:spin 0.8s linear infinite; flex-shrink:0; }
@keyframes spin { to { transform:rotate(360deg); } }
#ap-txt { font-size:0.82rem; color:var(--text2); }
.ap-bar { height:3px; background:rgba(255,255,255,0.06); border-radius:99px; overflow:hidden; margin-bottom:6px; }
.ap-fill { height:100%; background:linear-gradient(90deg,var(--red),var(--cyan)); border-radius:99px; width:0; transition:width 0.5s ease; }
.ap-engine { font-size:0.68rem; color:var(--text3); text-align:right; }
.ai-start-card { margin:16px; background:var(--bg3); border:1px solid var(--border); border-radius:16px; padding:24px 20px; text-align:center; }
.asc-icon { font-size:3rem; margin-bottom:12px; }
.ai-start-card h3 { font-size:1.1rem; font-weight:700; margin-bottom:10px; }
.ai-start-card p { font-size:0.82rem; color:var(--text2); line-height:1.8; margin-bottom:16px; text-align:left; }

/* ==================== AI RESULTS ==================== */
.ai-section { margin:0 16px 12px; background:var(--bg3); border:1px solid var(--border); border-radius:16px; overflow:hidden; }
.ais-header { display:flex; align-items:center; gap:8px; padding:14px 16px; border-bottom:1px solid var(--border); }
.ais-header-icon { font-size:1.1rem; }
.ais-header-title { font-size:0.88rem; font-weight:700; flex:1; }
.ais-body { padding:12px 16px; }

/* Score section */
.score-display { text-align:center; padding:16px; }
.sd-num { font-size:4rem; font-weight:900; }
.sd-label { font-size:0.78rem; color:var(--text2); }

/* Problems */
.prob-card { display:flex; align-items:flex-start; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); }
.prob-card:last-child { border-bottom:none; }
.prob-icon { font-size:1.4rem; flex-shrink:0; margin-top:1px; }
.prob-info h5 { font-size:0.82rem; font-weight:700; margin-bottom:3px; }
.prob-info p { font-size:0.75rem; color:var(--text2); line-height:1.5; }

/* Topics */
.topic-item { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); }
.topic-item:last-child { border-bottom:none; }
.ti-rank { width:22px; height:22px; border-radius:50%; background:var(--red-dim); color:var(--red); font-size:0.7rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ti-content { flex:1; }
.ti-name { font-size:0.82rem; font-weight:600; }
.ti-why { font-size:0.7rem; color:var(--text2); margin-top:2px; }
.ti-score-col { text-align:right; }
.ti-pct { font-size:0.82rem; font-weight:700; color:var(--red); }
.ti-bar { width:50px; height:3px; background:rgba(255,255,255,0.06); border-radius:99px; margin-top:3px; }
.ti-bar-fill { height:100%; background:linear-gradient(90deg,var(--red),var(--cyan)); border-radius:99px; }

/* Hashtags */
.ht-cloud { display:flex; flex-wrap:wrap; gap:6px; }
.ht-pill { padding:5px 10px; border-radius:99px; font-size:0.72rem; cursor:pointer; transition:opacity 0.15s; }
.ht-pill:active { opacity:0.7; }
.ht-hot { background:var(--red-dim); border:1px solid rgba(254,44,85,0.25); color:var(--red); }
.ht-warm { background:var(--gold-dim); border:1px solid rgba(255,214,10,0.2); color:var(--gold); }
.ht-cool { background:var(--cyan-dim); border:1px solid rgba(37,244,238,0.15); color:var(--cyan); }
.ht-copy-hint { font-size:0.68rem; color:var(--text3); margin-top:8px; }

/* Sounds */
.sound-item { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); }
.sound-item:last-child { border-bottom:none; }
.si-thumb { width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg,var(--bg),var(--red)); display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0; animation:si-spin 3s linear infinite paused; }
.si-info { flex:1; }
.si-name { font-size:0.82rem; font-weight:600; }
.si-artist { font-size:0.7rem; color:var(--text2); }
.si-viral { font-size:0.72rem; font-weight:700; color:var(--red); }

/* Strategy */
.strat-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:10px; }
.strat-card { background:var(--bg4); border-radius:10px; padding:10px; }
.sc-lbl { font-size:0.65rem; color:var(--text2); margin-bottom:4px; }
.sc-val { font-size:0.78rem; font-weight:700; }
.strat-tip { background:var(--red-dim); border:1px solid rgba(254,44,85,0.15); border-radius:10px; padding:10px 12px; margin-top:8px; }
.strat-tip-lbl { font-size:0.65rem; font-weight:700; color:var(--red); margin-bottom:4px; }
.strat-tip p { font-size:0.78rem; color:var(--text2); line-height:1.5; }

/* Planner */
.planner-day { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.planner-day:last-child { border-bottom:none; }
.pd-num { width:28px; height:28px; border-radius:8px; background:var(--red-dim); border:1px solid rgba(254,44,85,0.2); color:var(--red); font-size:0.7rem; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.pd-content { flex:1; }
.pd-topic { font-size:0.82rem; font-weight:600; }
.pd-note { font-size:0.7rem; color:var(--text2); margin-top:2px; }

/* ==================== TOOLS PAGE ==================== */
.cat-tabs { display:flex; gap:6px; overflow-x:auto; padding:10px 16px; scrollbar-width:none; border-bottom:1px solid var(--border); }
.cat-tabs::-webkit-scrollbar { display:none; }
.cat-tab { white-space:nowrap; padding:6px 14px; background:var(--bg3); border:1px solid var(--border); border-radius:99px; font-size:0.72rem; cursor:pointer; transition:all 0.2s; flex-shrink:0; }
.cat-tab.active { background:var(--red); border-color:var(--red); color:#fff; }

.tools-category { padding:0 16px 8px; }
.cat-label { font-size:0.78rem; font-weight:700; color:var(--text2); padding:12px 0 8px; text-transform:uppercase; letter-spacing:0.5px; }
.tools-cat-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.tool-card { background:var(--bg3); border:1px solid var(--border); border-radius:14px; padding:14px; cursor:pointer; transition:all 0.2s; }
.tool-card:active { transform:scale(0.97); }
.tc-icon { font-size:1.5rem; margin-bottom:6px; }
.tc-name { font-size:0.82rem; font-weight:700; margin-bottom:3px; }
.tc-desc { font-size:0.7rem; color:var(--text2); }
.tc-badge { display:inline-flex; padding:2px 7px; border-radius:99px; font-size:0.62rem; font-weight:700; margin-top:5px; }
.badge-ai { background:var(--red-dim); color:var(--red); border:1px solid rgba(254,44,85,0.2); }
.badge-live { background:var(--green-dim); color:var(--green); border:1px solid rgba(43,255,136,0.2); }
.badge-pro { background:var(--gold-dim); color:var(--gold); border:1px solid rgba(255,214,10,0.2); }
.badge-free { background:var(--cyan-dim); color:var(--cyan); border:1px solid rgba(37,244,238,0.2); }

/* ==================== TOOL RESULT ==================== */
.tr-loading { text-align:center; padding:40px 20px; }
.tr-loading .ap-spinner { margin:0 auto 12px; width:28px; height:28px; border-width:3px; }
.tr-loading p { color:var(--text2); font-size:0.82rem; }
.tr-section { margin:0 16px 12px; background:var(--bg3); border:1px solid var(--border); border-radius:14px; padding:14px; }
.tr-section h4 { font-size:0.88rem; font-weight:700; margin-bottom:10px; }
.tr-text { font-size:0.82rem; color:var(--text2); line-height:1.7; }
.tr-item { padding:8px 0; border-bottom:1px solid var(--border); font-size:0.82rem; }
.tr-item:last-child { border-bottom:none; }

/* ==================== HISTORY PAGE ==================== */
#history-list, #home-history-list { padding:0 16px 8px; }
.history-card { background:var(--bg3); border:1px solid var(--border); border-radius:12px; padding:12px; margin-bottom:8px; cursor:pointer; }
.hc-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.hc-score { font-size:1.1rem; font-weight:800; }
.hc-date { font-size:0.68rem; color:var(--text2); }
.hc-summary { font-size:0.75rem; color:var(--text2); line-height:1.4; }

/* ==================== SUPPORT / CHAT ==================== */
.chat-wrap { display:flex; flex-direction:column; height:calc(100dvh - var(--topbar-h) - var(--nav-h) - 55px); }
.chat-msgs { flex:1; overflow-y:auto; padding:12px 16px; display:flex; flex-direction:column; gap:10px; }
.chat-msg { display:flex; align-items:flex-end; gap:8px; }
.chat-msg.admin-msg { flex-direction:row; }
.chat-msg.user-msg { flex-direction:row-reverse; }
.cm-av { width:30px; height:30px; border-radius:50%; background:var(--bg3); display:flex; align-items:center; justify-content:center; font-size:0.9rem; flex-shrink:0; }
.cm-bubble { max-width:75%; padding:10px 13px; border-radius:14px; font-size:0.82rem; line-height:1.5; }
.admin-msg .cm-bubble { background:var(--bg3); border:1px solid var(--border); border-bottom-left-radius:4px; }
.user-msg .cm-bubble { background:var(--red); border-bottom-right-radius:4px; }
.cm-time { font-size:0.62rem; color:rgba(255,255,255,0.4); margin-top:4px; }
.chat-input-row { display:flex; gap:8px; padding:10px 16px; border-top:1px solid var(--border); }
.chat-inp { flex:1; background:var(--bg3); border:1px solid var(--border); border-radius:12px; padding:10px 14px; color:var(--text1); font-size:0.88rem; outline:none; }
.chat-inp:focus { border-color:var(--red); }
.chat-send { background:var(--red); border:none; color:#fff; width:40px; height:40px; border-radius:12px; font-size:1rem; cursor:pointer; display:flex; align-items:center; justify-content:center; }

/* ==================== PROFILE ==================== */
.profile-hero { background:linear-gradient(135deg,var(--bg3),var(--bg4)); padding:28px 20px 20px; display:flex; flex-direction:column; align-items:center; gap:8px; border-bottom:1px solid var(--border); }
.prof-avatar { width:68px; height:68px; border-radius:50%; background:linear-gradient(135deg,var(--red),var(--cyan)); display:flex; align-items:center; justify-content:center; font-size:1.6rem; font-weight:700; border:3px solid rgba(255,255,255,0.1); }
.prof-name { font-size:1.1rem; font-weight:800; }
.prof-tiktok { font-size:0.8rem; color:var(--text2); }
.prof-badge { background:linear-gradient(90deg,var(--red),#ff6b35); padding:4px 14px; border-radius:99px; font-size:0.72rem; font-weight:700; }
.profile-stats { display:flex; align-items:center; padding:16px 20px; border-bottom:1px solid var(--border); }
.pstat { flex:1; text-align:center; }
.ps-val { font-size:1.3rem; font-weight:800; }
.ps-lbl { font-size:0.65rem; color:var(--text2); margin-top:2px; }
.pstat-sep { width:1px; height:30px; background:var(--border); }
.profile-info-card { margin:12px 16px; background:var(--bg3); border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.pi-row { display:flex; align-items:center; justify-content:space-between; padding:11px 14px; border-bottom:1px solid var(--border); }
.pi-row:last-child { border-bottom:none; }
.pi-row span { font-size:0.78rem; color:var(--text2); }
.pi-row strong { font-size:0.78rem; max-width:55%; text-align:right; word-break:break-all; }
.profile-actions { padding:0 16px; display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.pa-btn { background:var(--bg3); border:1px solid var(--border); color:var(--text1); border-radius:12px; padding:13px; font-size:0.88rem; cursor:pointer; text-align:left; }
.pa-btn.danger { color:var(--red); border-color:rgba(254,44,85,0.2); background:var(--red-dim); }

/* ==================== BOTTOM NAV ==================== */
.bottom-nav { height:var(--nav-h); background:var(--bg); border-top:1px solid var(--border); display:flex; align-items:stretch; flex-shrink:0; padding-bottom:env(safe-area-inset-bottom); }
.bn-item { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; background:none; border:none; color:var(--text2); cursor:pointer; gap:3px; transition:color 0.2s; }
.bn-item.active { color:var(--red); }
.bn-icon { font-size:1.3rem; line-height:1; }
.bn-lbl { font-size:0.6rem; font-weight:600; }

/* ==================== BUTTONS ==================== */
.btn-primary { width:100%; padding:14px; background:linear-gradient(135deg,var(--red),#ff6b35); color:#fff; border:none; border-radius:14px; font-size:0.95rem; font-weight:700; cursor:pointer; transition:opacity 0.2s; }
.btn-primary:disabled { opacity:0.4; cursor:not-allowed; }
.btn-primary:active:not(:disabled) { opacity:0.85; }
.btn-ghost { width:100%; padding:13px; background:transparent; color:var(--text1); border:1px solid var(--border); border-radius:14px; font-size:0.9rem; font-weight:600; cursor:pointer; }

/* ==================== EMPTY STATE ==================== */
.empty-state { text-align:center; padding:24px 16px; font-size:0.82rem; color:var(--text2); }

/* ==================== SVG GRADIENT ==================== */
svg defs { display:none; }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width:3px; height:3px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.1); border-radius:99px; }
