/* ==========================================================================
   SPYGI V8 TOKENS — single source of truth
   ========================================================================== */

:root {
  --spygi-black: #050505;
  --spygi-dark: #0F0F0F;
  --spygi-sidebar: #111111;

  --spygi-red: #9E1110;
  --spygi-red-dark: #5B0505;
  --spygi-red-deep: #2A0505;

  --spygi-orange: #F4A936;
  --spygi-orange-deep: #C2410C;

  --spygi-cream: #F6EFE3;
  --spygi-cream-soft: #FBF7EF;

  --spygi-white: #FFFFFF;
  --spygi-text: #111111;
  --spygi-muted: #6B6B6B;
  --spygi-border: rgba(17, 17, 17, 0.10);

  --spygi-grad-dark: linear-gradient(135deg, #050505 0%, #2A0505 45%, #9E1110 100%);
  --spygi-grad-luxury: linear-gradient(135deg, #5B0505 0%, #9E1110 55%, #F4A936 100%);
  --spygi-grad-promo: linear-gradient(90deg, #050505 0%, #2A0505 50%, #5B0505 100%);
  --spygi-grad-warm: linear-gradient(135deg, #9E1110 0%, #C2410C 55%, #F4A936 100%);

  --spygi-sidebar-w: 264px;
  --spygi-max: 1240px;
  --spygi-pad-d: 40px;
  --spygi-pad-t: 24px;
  --spygi-pad-m: 16px;
  --spygi-gap: 32px;
  --spygi-card-pad: 28px;
  --spygi-radius: 20px;
  --spygi-radius-sm: 16px;
  --spygi-radius-btn: 12px;
  --spygi-input-h: 52px;
  --spygi-search-h: 56px;
  --spygi-shadow: 0 1px 2px rgba(15, 15, 15, 0.04), 0 8px 24px rgba(15, 15, 15, 0.06);
  --spygi-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Kill background-image buttons from legacy sheets */
.am-body-content a.button,
.am-body-content button,
.am-body-content input[type="button"],
.am-body-content input[type="submit"] {
  background-image: none !important;
}

/* Logo */
.spygi-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none !important;
  color: #fff !important;
}

.spygi-logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--spygi-grad-luxury);
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spygi-logo__text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.spygi-logo--dark { color: var(--spygi-text) !important; }
.spygi-logo--dark .spygi-logo__text { color: var(--spygi-text); }

/* Shared buttons */
.spygi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: var(--spygi-input-h);
  padding: 0 1.35rem;
  border: none;
  border-radius: var(--spygi-radius-btn);
  background: var(--spygi-red);
  color: #fff !important;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s;
}

.spygi-btn:hover {
  background: var(--spygi-red-dark);
  color: #fff !important;
}

.spygi-btn--accent {
  background: var(--spygi-orange);
  color: var(--spygi-text) !important;
}

.spygi-btn--accent:hover {
  background: #e09820;
  color: var(--spygi-text) !important;
}

.spygi-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: var(--spygi-input-h);
  padding: 0 1.25rem;
  border: none;
  border-radius: var(--spygi-radius-btn);
  background: var(--spygi-red);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
}

.spygi-btn-primary:hover {
  background: var(--spygi-red-dark);
  color: #fff !important;
}

.spygi-btn-ghost {
  width: var(--spygi-input-h);
  height: var(--spygi-input-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--spygi-border);
  border-radius: var(--spygi-radius-btn);
  background: var(--spygi-white);
  color: var(--spygi-text);
  text-decoration: none !important;
}

.spygi-btn-ghost:hover {
  border-color: var(--spygi-red);
  color: var(--spygi-red);
}

.spygi-chip {
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--spygi-border);
  border-radius: 999px;
  background: var(--spygi-white);
  color: var(--spygi-text);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.spygi-chip.is-active,
.spygi-chip:hover {
  background: var(--spygi-red);
  border-color: var(--spygi-red);
  color: #fff;
}

.spygi-badge {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.92);
  color: var(--spygi-red);
}

.spygi-tool-card.is-hidden,
.resource-item.is-hidden { display: none !important; }
