/* New functionality, using the original WhiteTools light layout and controls.
   Deliberately scoped: original homepage, dashboard, auth and ticket CSS stay intact. */
.wt-store{--bg:#f8f9fa;--panel:#fff;--line:#e8eaed;--muted:#5f6368;--text:#202124;--purple:#1a73e8;--green:#188038;--red:#d93025;color:#202124;font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;line-height:1.5}
.wt-store.wrap{max-width:1200px;margin:0 auto;padding-left:24px;padding-right:24px}.wt-store.page{padding-top:32px;padding-bottom:56px;min-height:65vh}.wt-store h1{font-size:2rem;line-height:1.2;margin:0 0 12px;font-weight:700;color:#202124}.wt-store h2{font-size:1.65rem;line-height:1.3;margin:0 0 12px;font-weight:650;color:#202124}.wt-store h3{font-size:1.15rem;line-height:1.4;margin:0 0 10px;color:#202124}.wt-store p{color:#5f6368;margin:0 0 18px;font-size:.9rem}.wt-store a{color:#1a73e8}.wt-store section{padding:32px 0}.wt-store .eyebrow{font-size:.72rem;color:#1a73e8;font-weight:700;letter-spacing:.1em;text-transform:uppercase;margin-bottom:12px;display:block}.wt-store .section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.wt-store .section-head p{margin:0}.wt-store .grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.wt-store .card{background:#fff;border:1px solid #e8eaed;border-radius:12px;padding:24px;box-shadow:0 2px 8px rgba(0,0,0,.04)}.wt-store .product{display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}.wt-store .product:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(0,0,0,.07)}.wt-store .card-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.wt-store .logo-tile{width:44px;height:44px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:#e8f0fe;color:#1a73e8;font-size:1.15rem;flex-shrink:0}.wt-store .stock{font-size:.75rem;font-weight:600;color:#188038;white-space:nowrap}.wt-store .stock i{font-size:.55rem;margin-right:4px}.wt-store .stock.off{color:#d93025}.wt-store .category{font-size:.7rem;font-weight:500;color:#5f6368;text-transform:uppercase;letter-spacing:.04em;margin-bottom:7px}.wt-store .product h3{font-size:1.1rem}.wt-store .product p{font-size:.83rem}.wt-store .product-bottom{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:auto;padding-top:20px}.wt-store .price{font-size:1.2rem;font-weight:700;color:#202124}.wt-store .price small{display:block;font-size:.72rem;color:#5f6368;font-weight:400}.wt-store .tag{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border:1px solid #d2e3fc;border-radius:5px;color:#1967d2;background:#e8f0fe;font-size:.7rem;font-weight:500;width:fit-content}.wt-store .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-weight:500;font-size:.85rem;line-height:1.4;border-radius:6px;padding:10px 18px;border:1px solid #dadce0;background:#fff;color:#1a73e8;text-decoration:none;transition:background .15s}.wt-store .btn:hover{background:#f1f3f4}.wt-store .btn.btn-primary,.wt-store .btn.primary{background:#1a73e8;color:#fff;border-color:#1a73e8}.wt-store .btn.btn-primary:hover,.wt-store .btn.primary:hover{background:#1557b0}.wt-store .btn.green{background:#188038;border-color:#188038;color:white}.wt-store .btn.small{padding:6px 12px;font-size:.75rem}.wt-store .btn:disabled{cursor:not-allowed;background:#f1f3f4;border-color:#e8eaed;color:#80868b}.wt-store .filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:20px 0}.wt-store .filter{border:1px solid #dadce0;background:#fff;color:#5f6368;padding:7px 14px;border-radius:6px;cursor:pointer;font:inherit;font-size:.8rem}.wt-store .filter.on{color:#1967d2;background:#e8f0fe;border-color:#d2e3fc}.wt-store .search{margin-left:auto;width:270px}.wt-store .layout{display:grid;grid-template-columns:1.4fr 1fr;gap:24px}.wt-store .narrow{max-width:550px;margin:20px auto}.wt-store .field{margin:16px 0}.wt-store .field label{display:block;font-size:.8rem;font-weight:500;margin-bottom:7px;color:#3c4043}.wt-store input,.wt-store textarea,.wt-store select{font:inherit;font-size:.88rem;max-width:100%;width:100%;padding:10px 12px;border:1px solid #dadce0;border-radius:6px;color:#202124;background:#fff}.wt-store textarea{resize:vertical}.wt-store input:focus,.wt-store textarea:focus,.wt-store select:focus{outline:2px solid #d2e3fc;border-color:#1a73e8}.wt-store input[type=checkbox]{width:auto}.wt-store .help,.wt-store .muted{font-size:.76rem;color:#5f6368}.wt-store .splitfields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.wt-store .divider{height:1px;background:#e8eaed;margin:24px 0}.wt-store .notice{display:flex;align-items:center;gap:18px;padding:18px 22px;border:1px solid #d2e3fc;background:#e8f0fe;color:#3c4043;border-radius:10px;margin:24px 0;font-size:.85rem}.wt-store .notice strong{color:#202124}.wt-store .notice .btn{margin-left:auto;flex-shrink:0}.wt-store .alert{padding:14px 18px;border:1px solid #d2e3fc;background:#e8f0fe;border-radius:8px;margin-bottom:20px;font-size:.85rem;color:#1967d2}.wt-store .alert.error{background:#fce8e6;border-color:#fad2cf;color:#c5221f}.wt-store .alert.success{background:#e6f4ea;border-color:#ceead6;color:#137333}.wt-store .subnav{display:flex;gap:8px;margin-bottom:30px;flex-wrap:wrap}.wt-store .subnav a{padding:8px 14px;border:1px solid #e8eaed;border-radius:6px;color:#5f6368;background:#fff;font-size:.8rem}.wt-store .subnav a.on{background:#e8f0fe;color:#1967d2;border-color:#d2e3fc}.wt-store .table-wrap{overflow:auto;border:1px solid #e8eaed;border-radius:10px;background:#fff}.wt-store table{width:100%;border-collapse:collapse;background:#fff;font-size:.8rem}.wt-store th,.wt-store td{padding:14px 16px;border-bottom:1px solid #e8eaed;text-align:left}.wt-store th{background:#f8f9fa;color:#5f6368;font-weight:600;white-space:nowrap}.wt-store td small{display:block;color:#5f6368;font-size:.72rem}.wt-store .row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.wt-store .order{display:flex;align-items:center;gap:18px;margin-bottom:16px}.wt-store .order p{font-size:.8rem;margin:0}.wt-store .order h3{margin-bottom:5px;font-size:1rem}.wt-store .right{margin-left:auto;text-align:right}.wt-store .state{font-size:.75rem;color:#1967d2;text-transform:capitalize}.wt-store .credentials{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.7 monospace;border:1px solid #e8eaed;background:#f8f9fa;padding:18px;border-radius:8px;margin:14px 0}.wt-store .empty{padding:32px;text-align:center;border:1px dashed #dadce0;background:#fff;border-radius:12px;color:#5f6368}.wt-store .actions{display:flex;gap:12px;flex-wrap:wrap}.wt-store [hidden]{display:none!important}.wt-store .inline{display:inline}.wt-store .thread-message{border:1px solid #e8eaed;background:#fff;padding:20px;border-radius:10px;margin:15px 0}.wt-store .thread-message.staff{border-left:3px solid #1a73e8;background:#f8fbff}.wt-store .thread-message p{white-space:pre-wrap;margin-top:12px;color:#202124}.wt-store .ticket-meta{font-size:.75rem;color:#5f6368;display:flex;justify-content:space-between;gap:10px}.wt-store a:focus-visible,.wt-store button:focus-visible{outline:3px solid #a8c7fa;outline-offset:3px}
@media(max-width:900px){.wt-store .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.wt-store .grid,.wt-store .layout,.wt-store .splitfields{grid-template-columns:1fr}.wt-store .section-head{align-items:flex-start;flex-direction:column;gap:12px}.wt-store.wrap{padding-left:16px;padding-right:16px}.wt-store .search{margin:4px 0;width:100%}.wt-store .notice{flex-wrap:wrap}.wt-store .notice .btn{margin-left:0}.wt-store h1{font-size:1.65rem}.wt-store .card{padding:20px}.wt-store .order{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.wt-store *{transition:none!important}}

/* Compact quick-menu cards (match dashboard) + mobile-friendly browse */
.wt-store .quick-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(158px,1fr));
  gap:14px;
  margin:4px 0 8px;
}
.wt-store .quick-card{
  position:relative;
  overflow:hidden;
  background:#fff;
  border:1px solid #e8eaed;
  border-radius:16px;
  padding:20px 16px;
  text-decoration:none;
  color:#202124;
  text-align:left;
  min-height:0;
  box-shadow:0 1px 2px rgba(20,18,43,.05);
  transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;
}
.wt-store .quick-card::after{
  content:'';
  position:absolute;
  inset:auto -30% -60% auto;
  width:120px;height:120px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(109,94,246,.16),transparent 70%);
  opacity:0;
  pointer-events:none;
  transition:opacity .35s ease;
}
.wt-store .quick-card:hover{transform:translateY(-4px);border-color:transparent;box-shadow:0 20px 44px -22px rgba(77,63,214,.6)}
.wt-store .quick-card:hover::after{opacity:1}
.wt-store .quick-card i{
  display:grid;
  place-items:center;
  width:40px;height:40px;
  border-radius:13px;
  background:rgba(109,94,246,.1);
  color:#6D5EF6;
  font-size:1rem;
  margin-bottom:14px;
  transition:transform .35s ease;
}
.wt-store .quick-card:hover i{transform:rotate(-8deg) scale(1.08)}
.wt-store .quick-card b{display:block;font-size:1rem;font-weight:600;line-height:1.3}
.wt-store .quick-card small{display:block;color:#5f6368;font-size:.78rem;margin-top:3px}

.wt-store .section-head,
.wt-store .section-head.compact{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:flex-start;
  text-align:left;
  margin-bottom:16px;
}
.wt-store .section-head > *,
.wt-store .section-head.compact > *{
  margin-left:0;
  margin-right:0;
  width:100%;
  text-align:left;
}
.wt-store .section-head.compact h1{font-size:1.55rem;margin-bottom:6px}
.wt-store .section-head.compact h2{font-size:1.15rem;margin:0 0 4px}
.wt-store .section-head.compact p{margin:0;font-size:.84rem}

.wt-store .grid.products,
.wt-store .grid{
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:14px;
}
.wt-store .product{padding:16px;min-height:0}
.wt-store .product .card-top{margin-bottom:10px}
.wt-store .product .logo-tile{width:36px;height:36px;border-radius:10px;font-size:1rem}
.wt-store .product h3{font-size:.98rem;margin:0 0 10px;line-height:1.35}
.wt-store .product .category{margin-bottom:4px}
.wt-store .product-bottom{padding-top:10px;gap:10px;flex-wrap:wrap}
.wt-store .product .price{font-size:1.05rem}
.wt-store .product .price small{display:block;margin-top:2px}
.wt-store .product .btn{padding:8px 14px;font-size:.8rem;white-space:nowrap}

.wt-store.page{padding-top:24px;padding-bottom:40px}
.single-browse{margin:6px 0 22px}
.single-browse .section-head h2{font-size:1.15rem}

@media (max-width:820px){
  .wt-store.wrap{padding-left:16px;padding-right:16px}
  .wt-store .subnav{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px;margin-bottom:20px}
  .wt-store .subnav a{flex:none}
}
@media (max-width:650px){
  .wt-store .grid,.wt-store .grid.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .wt-store .quick-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .wt-store .quick-card{padding:16px 12px}
  .wt-store .quick-card i{width:36px;height:36px;margin-bottom:10px}
  .wt-store .quick-card b{font-size:.92rem}
  .wt-store .product{padding:12px}
  .wt-store .product .product-bottom{flex-direction:column;align-items:stretch}
  .wt-store .product .btn{width:100%;box-sizing:border-box}
  .wt-store h1{font-size:1.4rem}
  .wt-store.page{padding-top:18px}
}
@media (max-width:380px){
  .wt-store .grid,.wt-store .grid.products{grid-template-columns:1fr}
}

.plan-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end}
.plan-actions form{margin:0}
button.plan-cta{font:inherit;cursor:pointer}
@media (max-width:820px){
  .plan-actions{width:100%}
  .plan-actions .plan-cta{width:100%;box-sizing:border-box}
}
.wt-store .product-mark{display:flex;align-items:center;justify-content:center;min-height:72px;margin:-4px 0 16px;padding:4px}
.wt-store .product-mark img{max-width:100%;max-height:68px;width:auto;object-fit:contain;display:block}
.wt-store .product.has-logo .card-top{justify-content:flex-end}

/* Product preview before buy */
.wt-store .preview-mark{display:flex;align-items:center;justify-content:center;min-height:88px;margin:0 0 18px;padding:8px;background:#f8f9fa;border-radius:10px;border:1px solid #e8eaed}
.wt-store .preview-mark img{max-width:100%;max-height:80px;width:auto;object-fit:contain;display:block}
.wt-store .preview-desc{color:#3c4043;font-size:.92rem;line-height:1.65;margin:0 0 18px;overflow-wrap:anywhere}
.wt-store .preview-meta{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin:0 0 16px}
.wt-store .preview-actions{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.wt-store .preview-actions .btn{width:100%;box-sizing:border-box}
.wt-store .preview-login{font-size:.85rem;text-align:center;margin:4px 0 0;color:#5f6368}
.wt-store .preview-price{font-size:1.45rem;font-weight:700;color:#202124;margin:0 0 6px}

/* ─── PRIVATE WATERMARK (single-tool cards only) ─── */
.wt-store .product.wt-private{position:relative}
.wt-store .product.wt-private .card-top{justify-content:flex-start;gap:10px;padding-right:80px}
.wt-store .product.wt-private .wt-private-badge{position:absolute;top:16px;right:16px;z-index:4;display:inline-flex;align-items:center;gap:5px;background:#1a73e8;color:#fff;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:4px 11px;border-radius:999px;box-shadow:0 3px 8px rgba(26,115,232,.3);pointer-events:none;line-height:1}
.wt-store .product.wt-private .wt-private-badge i{font-size:9px;opacity:.9}
@media(max-width:650px){.wt-store .product.wt-private .card-top{padding-right:66px}.wt-store .product.wt-private .wt-private-badge{top:14px;right:14px;font-size:9px;padding:3px 9px}}
