

  /* تایپ‌رایتر hero */
  .type-cursor{display:inline-block;width:2px;height:1em;background:var(--accent,#22c55e);vertical-align:middle;margin-right:2px;border-radius:1px;animation:blink .7s step-end infinite}
  @keyframes blink{0%,100%{opacity:1}50%{opacity:0}}
  /* ناحیه آپلود */
  .panel{margin-bottom:24px}
  .drop{
    position:relative; background:var(--surface); border-radius:var(--radius);
    padding:38px 22px; text-align:center; cursor:pointer; overflow:hidden;
    transition:background .18s, transform .18s;
  }
  .drop:hover{background:var(--surface-2)}
  .drop:active{transform:scale(.995)}
  .drop.drag{background:var(--accent-soft)}
  .drop .ic{width:46px; height:46px; margin:0 auto 14px; border-radius:14px; background:var(--surface-2);
    display:flex; align-items:center; justify-content:center; color:var(--accent); transition:background .18s}
  .drop.drag .ic{background:var(--accent-soft)}
  .drop .ic svg{width:23px; height:23px}
  .drop .title{font-size:14.5px; font-weight:700; margin-bottom:4px}
  .drop .sub{color:var(--muted); font-size:12px; font-weight:400}
  audio{width:100%; margin-top:14px; height:40px}
  .controls{display:flex; gap:9px; flex-wrap:nowrap; align-items:center; margin-top:15px}
  .controls .btn{white-space:nowrap; flex-shrink:0}
  .fname{color:var(--muted); font-size:12.5px; flex:1; min-width:0; font-weight:400; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align:center}
  @media (max-width:430px){
    .controls{gap:6px}
    .controls .btn{padding:9px 11px; font-size:11.5px}
    .controls .fname{font-size:11px}
    .drop{padding:30px 18px}
  }

  .progress{margin-top:18px; display:none}
  .progress.show{display:block}
  .bar{height:6px; background:var(--surface-2); border-radius:99px; overflow:hidden}
  .bar > i{display:block; height:100%; width:0; border-radius:99px; transition:width .25s ease;
    background:linear-gradient(90deg,var(--accent),var(--accent-2),var(--accent)); background-size:200% 100%; animation:nq-flow 1.6s linear infinite}
  .progress .label{display:flex; justify-content:space-between; color:var(--muted); font-size:12px; margin-top:8px; font-weight:400}

  .result{display:none; margin-top:26px}
  .result.show{display:block}
  .rtop{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px}
  .state{display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700}
  .state.proc{color:var(--muted)}
  .state.done{color:var(--ok)}
  .state.err{color:var(--err)}
  .state.done::before{content:""; width:7px; height:7px; border-radius:50%; background:var(--ok)}
  .rfname{color:var(--faint); font-size:12px; font-weight:400; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:50%}
  .text{background:var(--surface); border-radius:var(--radius); padding:19px 21px; line-height:1.9; font-size:13px; white-space:pre-wrap; word-break:break-word; min-height:56px; font-weight:300}
  .text.empty{color:var(--faint)}
  .meta{white-space:nowrap; overflow-x:auto; color:var(--faint); font-size:12px; margin-top:12px; font-weight:400; scrollbar-width:none}
  .meta::-webkit-scrollbar{display:none}
  .meta b{color:var(--muted); font-weight:600}
  .rowact{display:flex; gap:9px; margin-top:14px; flex-wrap:wrap}
  .icon-act{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;border:none;background:transparent;color:var(--muted);cursor:pointer;transition:background .15s,color .15s;flex-shrink:0;padding:0}
  .icon-act:hover{background:var(--surface-2);color:var(--ink)}

  .ai{margin-top:28px; display:none}
  .ai.show{display:block}
  .ai h2{font-size:12.5px; font-weight:700; color:var(--muted); margin-bottom:12px}
  .chips{display:flex; flex-wrap:nowrap; overflow-x:auto; gap:7px; scrollbar-width:none; padding-bottom:2px}
  .chips::-webkit-scrollbar{display:none}
  .chip{padding:7px 13px; background:var(--surface); color:var(--ink); font-size:12px; font-weight:600; border-radius:99px; border:none; cursor:pointer; transition:background .15s, color .15s, transform .15s; flex-shrink:0; white-space:nowrap}
  .chip:hover{background:var(--surface-2); transform:translateY(-1px)}
  .chip.active{background:var(--grad-2); color:#04221A}
  .chip:disabled{opacity:.5; cursor:not-allowed; transform:none}
  .askrow{display:flex; gap:9px; margin-top:12px}
  .askrow input{flex:1; min-width:0; font-size:13px; font-weight:400; color:var(--ink); background:var(--surface); border:none; border-radius:var(--radius-sm); padding:11px 14px; transition:outline .15s}
  .askrow input:focus{outline:2px solid var(--accent-line); outline-offset:0}
  .askrow input::placeholder{color:var(--faint)}
  .aiout{margin-top:15px; background:var(--accent-soft); border-radius:var(--radius); padding:19px 21px; line-height:1.9; font-size:13px; font-weight:300; word-break:break-word; display:none}
  .aiout.show{display:block}
  .aiout p{margin:5px 0}
  .aiout h3{font-size:13px; font-weight:600; color:var(--ink); margin:12px 0 4px}
  .aiout h3:first-child{margin-top:0}
  .aiout b{font-weight:500; color:var(--ink)}
  .aiout ul{margin:5px 20px}
  .aiout li{margin:3px 0}
  .aihint{color:var(--muted); font-size:12.5px; margin-top:14px; line-height:1.85; font-weight:400; display:none}
  .aihint.show{display:block}
  .aihint a{color:var(--accent); text-decoration:none}

  .histhead{display:flex; align-items:center; justify-content:space-between; margin-top:44px; margin-bottom:14px}
  .histhead h2{font-size:12.5px; font-weight:700; color:var(--muted)}
  /* پیش از مشخص‌شدنِ وضعیتِ ورود، این بخش‌ها پنهان‌اند تا «پرش» نشان داده نشود؛
     سپس JS بخشِ درست (تاریخچه برای کاربر یا معرفی برای مهمان) را نمایش می‌دهد */
  #histHead{display:none}
  #hist{display:none}
  .guest-about{margin-top:10px; display:none}
  .guest-about .ga-head{text-align:center; padding:28px 16px 22px}
  .guest-about .ga-head h3{font-size:21px; font-weight:800; letter-spacing:-.4px; margin-bottom:8px}
  .guest-about .ga-head p{font-size:13px; color:var(--muted); max-width:400px; margin:0 auto; line-height:1.8}
  .ga-cards{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:18px}
  @media(max-width:540px){.ga-cards{grid-template-columns:1fr}}
  .ga-card{background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:18px 16px; display:flex; flex-direction:column; gap:10px}
  .ga-card .ga-ic{width:38px; height:38px; border-radius:11px; background:var(--accent-soft); display:flex; align-items:center; justify-content:center; color:var(--accent); flex-shrink:0}
  .ga-card .ga-ic svg{width:19px; height:19px}
  .ga-card .ga-title{font-size:13px; font-weight:700}
  .ga-card .ga-desc{font-size:12px; color:var(--muted); line-height:1.75; margin:0}
  .ga-cta{text-align:center; padding-bottom:6px}
  /* ─── لندینگ مهمانِ حرفه‌ای ─── */
  .ga-kicker{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;font-weight:700;color:var(--accent);background:var(--accent-soft);border:1px solid var(--accent-line);padding:6px 14px;border-radius:99px;margin-bottom:15px}
  .ga-kicker::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--accent);animation:nq-pulse 2s ease-in-out infinite}
  .ga-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:6px 0 14px}
  @media(max-width:560px){.ga-stats{grid-template-columns:repeat(2,1fr)}}
  .ga-stat{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px 12px;text-align:center}
  .ga-stat b{display:block;font-size:22px;font-weight:800;background:var(--grad-2);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;letter-spacing:-.5px}
  .ga-stat small{display:block;font-size:11px;color:var(--muted);margin-top:5px}
  .ga-sec-head{text-align:center;margin:46px 0 22px}
  .ga-sec-head h3{font-size:19px;font-weight:800;letter-spacing:-.4px;margin-bottom:7px}
  .ga-sec-head p{font-size:12.5px;color:var(--muted);max-width:390px;margin:0 auto;line-height:1.8}
  .ga-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
  @media(max-width:560px){.ga-steps{grid-template-columns:1fr}}
  .ga-step{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:22px 18px;text-align:center}
  .ga-step .num{width:34px;height:34px;border-radius:50%;background:var(--grad-2);color:#fff;font-weight:800;font-size:15px;display:flex;align-items:center;justify-content:center;margin:0 auto 12px}
  .ga-step h4{font-size:13.5px;font-weight:700;margin-bottom:6px}
  .ga-step p{font-size:12px;color:var(--muted);line-height:1.75;margin:0}
  .ga-uses{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
  @media(max-width:560px){.ga-uses{grid-template-columns:1fr}}
  .ga-use{display:flex;gap:13px;align-items:flex-start;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px}
  .ga-use .ga-ic{width:36px;height:36px;border-radius:10px;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;flex-shrink:0}
  .ga-use .ga-ic svg{width:18px;height:18px}
  .ga-use h4{font-size:13px;font-weight:700;margin-bottom:4px}
  .ga-use p{font-size:11.5px;color:var(--muted);line-height:1.7;margin:0}
  .ga-faq{display:flex;flex-direction:column;gap:10px;max-width:560px;margin:0 auto}
  .ga-faq details{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:0 16px}
  .ga-faq summary{list-style:none;cursor:pointer;padding:15px 0;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:10px}
  .ga-faq summary::-webkit-details-marker{display:none}
  .ga-faq summary::after{content:"+";font-size:19px;color:var(--accent);font-weight:400;transition:transform .2s;line-height:1}
  .ga-faq details[open] summary::after{transform:rotate(45deg)}
  .ga-faq p{font-size:12px;color:var(--muted);line-height:1.85;padding:0 0 15px;margin:0}
  .ga-final{text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:36px 22px;margin-top:46px;position:relative;overflow:hidden}
  .ga-final::before{content:"";position:absolute;inset:0;background:radial-gradient(60% 90% at 50% 0%,var(--accent-soft),transparent 70%);pointer-events:none}
  .ga-final h3{font-size:20px;font-weight:800;letter-spacing:-.4px;margin-bottom:9px;position:relative}
  .ga-final p{font-size:13px;color:var(--muted);max-width:400px;margin:0 auto 20px;line-height:1.8;position:relative}
  .ga-final .btn{position:relative;min-width:200px}
  @media (max-width:560px){ .rfname{display:none} .text{padding:17px} }

  /* ─── باکس اشتراک ─── */
  .sub-status-box{margin-top:20px;background:var(--surface);border-radius:var(--radius);padding:18px 20px;border:1px solid var(--border)}
  .sub-status-box.no-sub{border:1px dashed var(--border)}
  .sub-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:10px;flex-wrap:wrap}
  .sub-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;padding:4px 11px;border-radius:99px;background:var(--accent-soft);color:var(--accent)}
  .sub-badge.free{background:var(--surface-2);color:var(--muted)}
  .sub-badge .dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}
  .sub-expiry{font-size:11.5px;color:var(--muted);font-weight:400}
  .sub-rows{display:flex;flex-direction:column;gap:10px}
  .sub-row{display:flex;align-items:center;gap:12px}
  .sub-row-label{font-size:12px;color:var(--muted);font-weight:500;white-space:nowrap;min-width:90px}
  .sub-bar-wrap{flex:1;min-width:0}
  .sub-bar-bg{height:5px;background:var(--surface-2);border-radius:99px;overflow:hidden}
  .sub-bar-fg{height:100%;border-radius:99px;background:linear-gradient(90deg,var(--accent),var(--accent-2));transition:width .4s ease;min-width:3px}
  .sub-bar-fg.warn{background:linear-gradient(90deg,#f59e0b,#ef4444)}
  .sub-val{font-size:11.5px;color:var(--muted);font-weight:400;white-space:nowrap;min-width:70px;text-align:left}
  .sub-buy-btn{display:block;text-align:center;text-decoration:none;width:100%;margin-top:16px}
  @media(max-width:430px){.sub-row-label{min-width:70px}.sub-val{min-width:56px;font-size:11px}}

  /* ─── پاپ‌آپ لیمت تمام شد ─── */
  .limit-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(4px);z-index:9999;display:none;align-items:center;justify-content:center;padding:20px;animation:nq-fade .2s ease both}
  .limit-overlay.show{display:flex}
  .limit-modal{background:var(--bg);border-radius:18px;padding:28px 24px 24px;max-width:360px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,.4);border:1px solid var(--border);text-align:center}
  .limit-ic{width:56px;height:56px;border-radius:16px;background:rgba(239,68,68,.12);color:#ef4444;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
  .limit-ic svg{width:26px;height:26px}
  .limit-modal h3{font-size:16px;font-weight:800;margin-bottom:10px;letter-spacing:-.3px}
  .limit-modal p{font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:20px;font-weight:400}
  .limit-modal .limit-actions{display:flex;flex-direction:column;gap:9px}
  .limit-modal .limit-actions .btn{display:block;text-align:center;text-decoration:none}
  .hidden{display:none}
  .limit-modal .btn-close-limit{background:transparent;border:1px solid var(--border);color:var(--muted);font-size:13px;padding:10px;border-radius:var(--radius-sm);cursor:pointer;transition:background .15s}
  .limit-modal .btn-close-limit:hover{background:var(--surface)}
