/* TOAST */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  z-index: 500;
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── SPINNER ── */
.spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--t3); }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
  .astrip-sep { display: none; }
  .about-strip { gap: 8px; }
  .astrip-item { padding: 12px 20px; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --nav-h: 56px; }

  nav { padding: 0 14px; gap: 8px; }
  .logo-text { display: none; }
  .nav-center { gap: 2px; padding: 3px; }
  .nav-tab { font-size: 12px; padding: 5px 12px; }
  .user-pill { display: none; }

  .hero { padding: 40px 16px; }
  .hero-stats { gap: 16px; }
  .hstat-num { font-size: 24px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { width: 100%; justify-content: center; max-width: 280px; }

  .showcase-section,
  .freetools-section,
  .faq-section { padding: 48px 16px; }

  .services-section { padding: 48px 16px 60px; }
  .services-grid { grid-template-columns: 1fr; }

  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

  .showcase-grid { grid-template-columns: 1fr 1fr; }

  .about-strip { flex-direction: column; align-items: flex-start; padding: 40px 20px; }
  .astrip-sep { display: none; }

  .drawer { width: 100%; }

  .admin-modal { max-width: 100% !important; }

  .offers-banner { padding: 16px; }
  .shop-controls { padding: 16px 16px 0; }
  .products-section { padding: 16px 16px 48px; }
}

/* Large screen */
@media (min-width: 1200px) {
  .showcase-grid { grid-template-columns: repeat(4, 1fr); }
}

/* iPad portrait */
@media (min-width: 641px) and (max-width: 1024px) {
  .showcase-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════
   NEW FEATURES CSS
═══════════════════════════════════════════ */

/* ─── ANIMATED LOGO PLACEHOLDER ─────────── */
.pcard-img { display: block; }
.pcard-logo-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, rgba(29,78,216,.08) 0%, rgba(59,130,246,.04) 100%);
  border-bottom: 1px solid var(--border);
  gap: 8px;
  position: relative;
  overflow: hidden;
}
/* Show placeholder when no image */
.pcard:not(:has(img.pcard-img[src])) .pcard-logo-placeholder,
.pcard img.pcard-img[style*="display:none"] + .pcard-logo-placeholder {
  display: flex;
}
/* Always show placeholder in showcase if no image set */
.pcard-logo-placeholder {
  display: flex; /* default show, img will hide it */
}
.pcard:has(img.pcard-img) .pcard-logo-placeholder {

/* ─── DISCORD LOGIN ─────────────────────── */
.btn-discord-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(88,101,242,.15);
  border: 1px solid rgba(88,101,242,.35);
  border-radius: 8px;
  color: #7289da;
  font-size: 12px;
  font-family: var(--sans);
  cursor: pointer;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-discord-nav:hover {
  background: rgba(88,101,242,.28);
  border-color: rgba(88,101,242,.6);
}
.btn-discord-nav.logged-in {
  color: #57f287;
  border-color: rgba(87,242,135,.35);
  background: rgba(87,242,135,.1);
}
.owner-pill {
  border-color: rgba(255,215,0,.4) !important;
  background: rgba(255,215,0,.08) !important;
}

/* Discord Modal */
.discord-modal {
  max-width: 340px;
  width: 92%;
  background: #141824;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  animation: dcModalIn .25s cubic-bezier(.16,1,.3,1);
}
@keyframes dcModalIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1)  translateY(0);    }
}
.dc-top-bar {
  height: 3px;
  background: #5865F2;
  width: 100%;
}
.dc-close-btn {
  position: absolute;
  top: 14px; left: 14px;
  background: none;
  border: none;
  color: rgba(255,255,255,.3);
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: color .15s, background .15s;
  z-index: 2;
}
.dc-close-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
.discord-modal-body {
  padding: 32px 26px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.dc-glow-ring {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(88,101,242,.12);
  border: 1px solid rgba(88,101,242,.22);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.dc-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -.2px;
}
.dc-modal-desc {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  line-height: 1.55;
  margin-bottom: 6px;
}
.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 18px;
  background: #5865F2;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--ar);
  cursor: pointer;
  transition: background .15s, transform .1s;
  letter-spacing: .1px;
}
.btn-discord:hover { background: #4752c4; }
.btn-discord:active { transform: scale(.98); }
.dc-modal-note {
  font-size: 11px;
  color: rgba(255,255,255,.25);
  line-height: 1.5;
}

