:root {
  --gp-accent: #dc2626;
  --gp-accent-2: #991b1b;
  --gp-bg: #0a0a0f;
  --gp-card: #12121e;
  --gp-border: #1e1e2e;
  --gp-text: #e8e8f0;
  --gp-text-gray: #888899;
  --gp-text-dark: #555566;
}

.gp-wrapper {
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--gp-text);
}

.gp-nav { margin-bottom: 1.5rem; }
.gp-nav a {
  color: var(--gp-accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.gp-header { text-align: center; margin-bottom: 2rem; animation: gpFadeIn 0.6s ease both; }
.gp-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gp-accent);
  background: rgba(220,38,38,0.12);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.9rem;
  animation: gpPulse 2.4s ease-in-out infinite;
}
.gp-header h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0.3rem 0 0.6rem;
  background: linear-gradient(135deg, #ffffff, var(--gp-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gp-subtitle { color: var(--gp-text-gray); font-size: 1.02rem; max-width: 540px; margin: 0 auto; }

.gp-card {
  background: var(--gp-card);
  border: 1px solid var(--gp-border);
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  animation: gpFadeIn 0.6s ease 0.1s both;
}

.gp-field-row { margin-bottom: 1.3rem; }
.gp-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gp-text-gray);
  margin-bottom: 0.5rem;
}

.gp-radio-group { display: flex; gap: 1rem; }
.gp-radio {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gp-border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--gp-text);
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
}
.gp-radio:hover { border-color: var(--gp-accent); }
.gp-radio input { accent-color: var(--gp-accent); }

.gp-field-grid {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-spacing: 0.7rem 0;
  margin-bottom: 1.3rem;
}
.gp-field { display: table-cell; vertical-align: top; padding: 0 0.35rem; }
.gp-field:first-child { padding-left: 0; }
.gp-field:last-child { padding-right: 0; }

#root input, #root select {
  background-color: rgba(10,10,15,0.8) !important;
  color: #f0f0f5 !important;
  -webkit-text-fill-color: #f0f0f5 !important;
  border: 1px solid var(--gp-border) !important;
  border-radius: 10px !important;
  padding: 0.65rem 0.8rem !important;
  font-size: 0.95rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: 'Space Grotesk', sans-serif !important;
}
#root input:focus, #root select:focus {
  outline: none !important;
  border-color: var(--gp-accent) !important;
  background-color: rgba(10,10,15,0.95) !important;
}
#root input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(10,10,15,0.9) inset !important;
  -webkit-text-fill-color: #f0f0f5 !important;
}
#root input::placeholder { color: #666677 !important; }

.gp-slider-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.4rem;
}
.gp-slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.gp-slider-label { font-size: 0.88rem; font-weight: 600; color: var(--gp-text); }
.gp-slider-amount { font-size: 0.88rem; font-weight: 700; color: var(--gp-accent); }

.gp-slider-row input[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 6px !important;
  background: var(--gp-border) !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  border-radius: 3px !important;
}
.gp-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: var(--gp-accent) !important;
  border: 3px solid var(--gp-card) !important;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.2);
}
.gp-slider-row input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gp-accent); border: 3px solid var(--gp-card); cursor: pointer;
}
.gp-slider-hint { font-size: 0.78rem; color: var(--gp-text-dark); margin-top: 0.45rem; }

.gp-error {
  background: rgba(220,38,38,0.12);
  border: 1px solid var(--gp-accent);
  color: #ff8a8a;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.gp-btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
#gp-calc-btn {
  flex: 1;
  min-width: 200px;
  background: linear-gradient(135deg, var(--gp-accent), var(--gp-accent-2)) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: none !important;
  border-radius: 10px;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
#gp-calc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(220,38,38,0.35); }
#gp-calc-btn:disabled { opacity: 0.75; cursor: wait; }

#gp-reset-btn {
  background: transparent !important;
  color: #888899 !important;
  -webkit-text-fill-color: #888899 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 10px;
  padding: 0.85rem 1.3rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
#gp-reset-btn:hover { border-color: var(--gp-text-gray); color: var(--gp-text) !important; }

.gp-results {
  background: var(--gp-card);
  border: 1px solid var(--gp-border);
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  animation: gpFadeIn 0.5s ease both;
}

.gp-result-header { text-align: center; margin-bottom: 1.4rem; }
.gp-frame-badge {
  display: inline-block;
  background: rgba(220,38,38,0.14);
  color: var(--gp-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.9rem;
}
.gp-ffmi-big {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--gp-text);
  line-height: 1;
}
.gp-ffmi-big span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gp-text-gray);
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}
.gp-ffmi-sub { color: var(--gp-text-gray); font-size: 0.92rem; margin-top: 0.5rem; }
.gp-ffmi-sub strong { color: var(--gp-accent); }

.gp-honesty { margin-bottom: 1.4rem; }
.gp-honesty-label { font-size: 0.82rem; color: var(--gp-text-gray); margin-bottom: 0.5rem; }
.gp-honesty-bar {
  width: 100%;
  height: 14px;
  background: var(--gp-border);
  border-radius: 7px;
  overflow: hidden;
}
.gp-honesty-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gp-accent-2), var(--gp-accent));
  border-radius: 7px;
  transition: width 1s ease;
  position: relative;
  overflow: hidden;
}
.gp-honesty-fill::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: gpShimmer 2s ease-in-out infinite;
}
.gp-honesty-pct { text-align: right; font-size: 0.85rem; font-weight: 700; color: var(--gp-accent); margin-top: 0.4rem; }

.gp-verdict {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--gp-accent);
  padding: 0.9rem 1.1rem;
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
  color: var(--gp-text);
  margin-bottom: 1.6rem;
}

.gp-silhouette-row {
  display: table;
  width: 100%;
  table-layout: fixed;
  margin-bottom: 1.6rem;
}
.gp-silhouette-card {
  display: table-cell;
  text-align: center;
  vertical-align: bottom;
  padding: 0 0.3rem;
  animation: gpFadeIn 0.5s ease both;
}
.gp-silhouette-card:nth-child(1) { animation-delay: 0.05s; }
.gp-silhouette-card:nth-child(2) { animation-delay: 0.15s; }
.gp-silhouette-card:nth-child(3) { animation-delay: 0.25s; }
.gp-silhouette-card:nth-child(4) { animation-delay: 0.35s; }
.gp-silhouette svg, .gp-silhouette { width: 100%; max-width: 80px; height: auto; }
.gp-sil-bf { font-size: 0.78rem; font-weight: 700; color: var(--gp-accent); margin-top: 0.5rem; }
.gp-sil-weight { font-size: 0.82rem; color: var(--gp-text-gray); }

.gp-table-wrap { overflow-x: auto; }
.gp-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.gp-result-table th, .gp-result-table td {
  padding: 0.6rem 0.8rem;
  text-align: center;
  border-bottom: 1px solid var(--gp-border);
}
.gp-result-table th { color: var(--gp-text-gray); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.gp-result-table td { color: var(--gp-text); font-weight: 600; }

.gp-share-wrap { text-align: center; margin-bottom: 2rem; }
.gp-share-title { font-size: 0.85rem; color: var(--gp-text-gray); margin-bottom: 0.8rem; }
.gp-share-block { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
.gp-share-btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--gp-border);
  color: var(--gp-text);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
}
.gp-share-btn:hover { transform: translateY(-2px); border-color: var(--gp-accent); }

.gp-seo { margin-top: 2rem; line-height: 1.7; }
.gp-seo h2 { font-size: 1.4rem; margin-top: 2.2rem; color: var(--gp-text); }
.gp-seo h3 { font-size: 1.1rem; margin-top: 1.6rem; color: var(--gp-text); }
.gp-seo p { color: #c8c8d8; margin: 0.9rem 0; }
.gp-seo strong { color: var(--gp-text); }

.gp-seo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.92rem;
}
.gp-seo-table th, .gp-seo-table td {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--gp-border);
  text-align: left;
}
.gp-seo-table th { background: rgba(220,38,38,0.08); color: var(--gp-accent); }
.gp-seo-table td { color: #c8c8d8; }

.gp-example-box {
  background: rgba(220,38,38,0.06);
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0;
}
.gp-example-box ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.gp-example-box li { color: #c8c8d8; margin-bottom: 0.4rem; }

.gp-related { margin-top: 2.5rem; }
.gp-related h2 { font-size: 1.3rem; margin-bottom: 1rem; }

/* Related calculators always visible (mandatory fix) */
.wp-block-latest-posts li {
  background: #111118 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 12px !important;
  padding: 1rem !important;
  margin-bottom: 0.5rem !important;
}
.sa-bg-wave, .wz-nebula, .f-bg, [class*="-bg-"], [class*="-nebula"] {
  z-index: -1 !important;
}

@keyframes gpFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.0); }
  50% { box-shadow: 0 0 0 6px rgba(220,38,38,0.08); }
}
@keyframes gpShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gp-header, .gp-card, .gp-results, .gp-silhouette-card { animation: none !important; }
  .gp-eyebrow { animation: none !important; }
  .gp-honesty-fill::after { animation: none !important; }
}

@media (max-width: 640px) {
  .gp-field-grid { display: block; }
  .gp-field { display: block; padding: 0; margin-bottom: 0.8rem; }
  .gp-header h1 { font-size: 1.6rem; }
  .gp-silhouette-row { display: flex; flex-wrap: wrap; }
  .gp-silhouette-card { display: block; width: 48%; margin-bottom: 0.8rem; }
}
