/*
Theme Name: Astra Child - Tools
Template: astra
Version: 1.2.1
*/

/* ============ Dark SaaS theme ============ */
:root{
  --bg:#1E1E2E;
  --surface:#2A2A3C;
  --surface-2:#33334a;
  --border:#3c3c52;
  --text:#e6e6f0;
  --text-muted:#a0a0b8;
  --brand:#2563eb;
  --brand-hover:#1d4ed8;
  --vip:#f59e0b;
  --vip-hover:#d97706;
  --radius:16px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
html{background:var(--bg) !important;}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  margin:0;
  background:var(--bg) !important;
  color:var(--text);
  line-height:1.5;
}

/* ============ Top navigation (fixed) ============ */
.tools-nav{
  position:fixed;
  top:0;left:0;right:0;
  z-index:1000;
  background:rgba(30,30,46,.85);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}
/* Legacy topbar (used by inner tool & pricing pages — keep them looking right) */
.tools-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  max-width:1200px;
  margin:0 auto;
  flex-wrap:wrap;
  gap:10px;
}
.tools-auth{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.tools-nav-inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.tools-brand{
  font-weight:800;
  font-size:1.12rem;
  color:#fff;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}
.tools-brand .logo-ico{font-size:1.25rem;}
.tools-nav-menu{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
}
.nav-link{
  color:var(--text-muted);
  text-decoration:none;
  font-size:.92rem;
  font-weight:600;
  padding:8px 14px;
  border-radius:10px;
  transition:color .15s,background .15s;
}
.nav-link:hover{color:#fff;background:var(--surface);}
.lang-switch{display:inline-flex;align-items:center;gap:2px;font-size:.88rem;}
.lang-switch .lang-active{color:#fff;font-weight:800;}
.lang-switch .lang-sep{color:#5a5a72;margin:0 2px;}
.lang-switch:hover .lang-sep{color:#888;}

.tools-auth{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

/* ============ Buttons ============ */
.btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:9px 18px;
  border-radius:12px;
  font-size:.9rem;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
  border:none;
  white-space:nowrap;
  transition:background .15s,transform .15s,box-shadow .15s;
}
.btn-vip{
  background:var(--vip);
  color:#1f2937;
  box-shadow:0 2px 8px rgba(245,158,11,.25);
}
.btn-vip:hover{background:var(--vip-hover);color:#fff;transform:translateY(-1px);}
.btn-ghost{
  background:transparent;
  color:var(--text);
  border:1px solid var(--border);
}
.btn-ghost:hover{background:var(--surface);border-color:#4a4a66;}
.btn-lg{padding:14px 28px;font-size:1rem;border-radius:14px;}

.user-chip{
  background:var(--surface);
  color:var(--text);
  padding:6px 14px;
  border-radius:20px;
  font-size:.88rem;
  font-weight:600;
}
.vip-chip{
  background:linear-gradient(135deg,#f59e0b,#d97706);
  color:#fff;
  padding:4px 12px;
  border-radius:20px;
  font-size:.82rem;
  font-weight:700;
}

/* ============ Hero ============ */
.tools-hero{
  padding:128px 20px 56px;
  text-align:center;
  background:
    radial-gradient(600px 280px at 50% -80px, rgba(37,99,235,.25), transparent 70%);
}
.tools-hero h1{
  font-size:2.6rem;
  margin:0 0 14px;
  color:#fff;
  letter-spacing:-.02em;
  font-weight:800;
}
.tools-hero p{
  font-size:1.15rem;
  color:var(--text-muted);
  margin:0;
}

.tools-search{max-width:560px;margin:32px auto 0;}
.tools-search input{
  width:100%;
  padding:15px 22px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  font-size:1rem;
  outline:none;
  transition:border-color .15s,box-shadow .15s;
}
.tools-search input::placeholder{color:#6b6b86;}
.tools-search input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(37,99,235,.25);}

/* ============ Layout ============ */
.tools-wrap{max-width:1200px;margin:0 auto;padding:8px 24px 72px;}

.site-intro{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px 28px;
  margin-bottom:40px;
  color:var(--text-muted);
  line-height:1.7;
}
.site-intro p{margin:0 0 10px;}
.site-intro p:last-child{margin:0;}
.site-intro strong{color:var(--text);}
.site-intro a{color:var(--brand);}

/* ============ Category sections ============ */
.tools-cat{margin-bottom:44px;}
.tools-cat-head{display:flex;align-items:center;gap:12px;margin:0 0 20px;}
.tools-cat h2{
  font-size:1.35rem;
  margin:0;
  color:#fff;
  font-weight:700;
}
.tools-cat-head::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--border);
}

/* ============ Tool cards (rounded grid) ============ */
.tools-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.tool-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:22px 20px;
  display:flex;
  flex-direction:column;
  gap:10px;
  text-decoration:none;
  color:var(--text);
  position:relative;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.tool-card:hover{
  transform:translateY(-4px);
  border-color:#4a4a66;
  box-shadow:0 12px 28px rgba(0,0,0,.35);
}
.tool-card .ico{
  font-size:2rem;
  line-height:1;
  display:inline-block;
  width:46px;height:46px;
  display:flex;align-items:center;justify-content:center;
  background:var(--surface-2);
  border-radius:12px;
}
.tool-card h3{font-size:1.08rem;margin:0;color:#fff;font-weight:700;}
.tool-card p{font-size:.86rem;margin:0;color:var(--text-muted);line-height:1.45;}

.lock-badge{
  position:absolute;
  top:16px;right:16px;
  background:rgba(245,158,11,.16);
  color:var(--vip);
  border:1px solid rgba(245,158,11,.35);
  padding:3px 10px;
  border-radius:20px;
  font-size:.72rem;
  font-weight:700;
}

/* ============ Footer ============ */
.tools-footer{
  text-align:center;
  padding:32px 24px;
  color:#7c7c96;
  font-size:.85rem;
  border-top:1px solid var(--border);
  background:var(--bg);
}

/* ============ Pricing / Paywall / Tool (unchanged logic, restyled) ============ */
.paywall{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:40px 32px;text-align:center;box-shadow:0 4px 16px rgba(0,0,0,.25);}
.paywall-ico{font-size:3rem;margin-bottom:16px;}
.paywall h2{font-size:1.5rem;margin:0 0 12px;color:#fff;}
.paywall p{color:var(--text-muted);line-height:1.6;}
.preview-list{list-style:none;padding:0;margin:20px 0;text-align:left;display:inline-block;}
.preview-list li{margin:8px 0;color:var(--text);}
.hint{font-size:.85rem;color:var(--text-muted);margin-top:16px;}
.hint a{color:var(--brand);}

.pricing-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:40px 32px;text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.3);}
.price{font-size:3.2rem;font-weight:800;color:#fff;}
.price-label{color:var(--text-muted);margin:4px 0 16px;font-size:.92rem;}

.tool-active{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:32px;box-shadow:0 4px 16px rgba(0,0,0,.25);}
.tool-active-head{display:flex;align-items:center;gap:12px;margin-bottom:12px;}
.tool-active-head h2{margin:0;color:#fff;}
.tool-runner{margin-top:20px;padding:24px;background:var(--surface-2);border:1px dashed var(--border);border-radius:12px;text-align:center;}

@media(max-width:640px){
  .tools-hero h1{font-size:1.9rem;}
  .price{font-size:2.6rem;}
}

/* ============ live tool runner ============ */
.tool-runner-live{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:24px;}
.tool-runner-live h3{margin:0 0 12px;font-size:1.1rem;color:#fff;}

/* locked preview overlay */
.locked-overlay-wrap{position:relative;}
.locked-ui{opacity:.55;filter:grayscale(30%);pointer-events:none;user-select:none;}
.locked-veil{position:absolute;inset:0;background:rgba(30,30,46,.05);}
.locked-cta{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:var(--surface-2);border:1px solid var(--border);border-radius:16px;padding:32px;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.4);max-width:340px;width:90%;z-index:10;}
.locked-cta p{color:var(--text-muted);line-height:1.5;}

.stat-box{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:16px;text-align:center;}
.stat-val{font-size:1.8rem;font-weight:700;color:var(--brand);}
.stat-label{font-size:.82rem;color:var(--text-muted);margin-top:4px;}

.file-row{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;margin:6px 0;font-size:.9rem;}
.file-row em{color:var(--text-muted);font-style:normal;font-size:.8rem;}
.file-row .rm{background:#3a2a2a;color:#f87171;border:none;border-radius:50%;width:24px;height:24px;cursor:pointer;}

.tool-placeholder{text-align:center;padding:40px 20px;color:var(--text-muted);}
.tool-placeholder h3{margin:8px 0;color:var(--text);}

.uuid-row{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;margin:6px 0;font-family:monospace;font-size:.85rem;}
.uuid-copy{background:#1e3a6e;color:#93c5fd;border:none;padding:4px 10px;border-radius:6px;cursor:pointer;font-size:.8rem;}

/* ============ Responsive ============ */
@media(max-width:1024px){
  .tools-grid{grid-template-columns:repeat(3,1fr);}
}
@media(max-width:768px){
  .tools-grid{grid-template-columns:repeat(2,1fr);}
  .tools-nav-inner{flex-wrap:wrap;height:auto;padding-top:10px;padding-bottom:10px;gap:10px;}
  .tools-nav-menu{margin-left:0;}
  .tools-hero{padding-top:120px;}
}
@media(max-width:480px){
  .tools-grid{grid-template-columns:1fr;}
  .tools-hero h1{font-size:1.7rem;}
  .tools-hero{padding-top:132px;}
  .tools-nav-inner{gap:8px;}
  .nav-link{padding:8px 10px;font-size:.85rem;}
}
