:root {
  --cc-accent: #3b82f6;
  --cc-accent-2: #1d4ed8;
  --cc-good: #10b981;
  --cc-warn: #f59e0b;
  --cc-bad: #ef4444;
  --cc-bg: #0a0a0f;
  --cc-card: #0e1118;
  --cc-border: #1c2230;
  --cc-text: #eef1f7;
  --cc-text-gray: #8993a8;
  --cc-text-dark: #545c6e;
}

.cc-wrapper { max-width: 760px; margin: 0 auto; font-family: 'Space Grotesk', sans-serif; color: var(--cc-text); }
.cc-nav { margin-bottom: 1.5rem; }
.cc-nav a { color: var(--cc-accent); text-decoration: none; font-size: 0.9rem; font-weight: 600; }

.cc-header { text-align: center; margin-bottom: 2rem; animation: ccFadeIn 0.6s ease both; }
.cc-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--cc-accent); background: rgba(59,130,246,0.12);
  padding: 0.4rem 0.9rem; border-radius: 20px; margin-bottom: 0.9rem;
}
.cc-header h1 {
  font-size: 2.1rem; font-weight: 700; margin: 0.3rem 0 0.6rem;
  background: linear-gradient(135deg, #ffffff, var(--cc-accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cc-subtitle { color: var(--cc-text-gray); font-size: 1.0rem; max-width: 580px; margin: 0 auto; }

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

.cc-field-row { margin-bottom: 1.3rem; }
.cc-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--cc-text-gray); margin-bottom: 0.5rem; }
.cc-radio-group { display: flex; gap: 1rem; }
.cc-radio {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.1rem;
  background: rgba(255,255,255,0.03); border: 1px solid var(--cc-border); border-radius: 10px;
  cursor: pointer; color: var(--cc-text); font-size: 0.92rem; transition: border-color 0.2s;
}
.cc-radio:hover { border-color: var(--cc-accent); }
.cc-radio input { accent-color: var(--cc-accent); }

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

#root input, #root select {
  background-color: rgba(10,10,15,0.8) !important; color: #eef1f7 !important;
  -webkit-text-fill-color: #eef1f7 !important; border: 1px solid var(--cc-border) !important;
  border-radius: 10px !important; padding: 0.65rem 0.8rem !important; font-size: 0.92rem !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(--cc-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: #eef1f7 !important; }
#root input::placeholder { color: #4a5266 !important; }
#root select { appearance: auto !important; }

.cc-checkbox-row { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.3rem; }
.cc-checkbox { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.86rem; color: var(--cc-text); cursor: pointer; line-height: 1.4; }
.cc-checkbox input { accent-color: var(--cc-accent); margin-top: 0.15rem; flex-shrink: 0; }

.cc-error { background: rgba(239,68,68,0.12); border: 1px solid var(--cc-bad); color: #fca5a5; padding: 0.8rem 1rem; border-radius: 10px; font-size: 0.88rem; margin-bottom: 1rem; }

.cc-btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
#cc-calc-btn {
  flex: 1; min-width: 200px;
  background: linear-gradient(135deg, var(--cc-accent), var(--cc-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.93rem; font-weight: 700; letter-spacing: 0.03em; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
#cc-calc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.35); }
#cc-calc-btn:disabled { opacity: 0.75; cursor: wait; }
#cc-reset-btn {
  background: transparent !important; color: #8993a8 !important; -webkit-text-fill-color: #8993a8 !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;
}
#cc-reset-btn:hover { border-color: var(--cc-text-gray); }

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

.cc-range-card { text-align: center; padding: 1.6rem; border-radius: 14px; margin-bottom: 1.3rem; background: rgba(59,130,246,0.06); border: 2px solid rgba(59,130,246,0.3); }
.cc-range-label { font-size: 0.8rem; font-weight: 700; color: var(--cc-text-gray); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.8rem; }
.cc-range-amount { font-size: 1.9rem; font-weight: 800; color: var(--cc-text); }
.cc-range-amount span { font-size: 0.95rem; font-weight: 600; color: var(--cc-text-gray); }
.cc-range-most-likely { font-size: 0.92rem; color: var(--cc-text-gray); margin-top: 0.6rem; }
.cc-range-most-likely strong { color: var(--cc-accent); }
.cc-confidence-tag { display: inline-block; font-size: 0.8rem; font-weight: 700; border: 1px solid; border-radius: 20px; padding: 0.3rem 0.9rem; margin-top: 0.8rem; }

.cc-mismatch-box { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.3); border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: 1.3rem; }
.cc-mismatch-header { font-size: 0.92rem; font-weight: 700; color: var(--cc-warn); margin-bottom: 0.5rem; }
.cc-mismatch-text { font-size: 0.85rem; color: #c8c0a8; line-height: 1.6; }

.cc-section-title { font-size: 0.78rem; font-weight: 700; color: var(--cc-text-gray); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.9rem; }

.cc-contrib-wrap { margin-bottom: 1.4rem; }
.cc-contrib-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.cc-contrib-label { font-size: 0.82rem; color: var(--cc-text); width: 42%; flex-shrink: 0; }
.cc-contrib-tag { font-size: 0.68rem; font-weight: 700; color: var(--cc-warn); background: rgba(245,158,11,0.12); padding: 0.1rem 0.4rem; border-radius: 8px; }
.cc-contrib-bar-wrap { flex: 1; height: 8px; background: var(--cc-border); border-radius: 4px; overflow: hidden; }
.cc-contrib-bar { height: 100%; border-radius: 4px; background: var(--cc-accent); transition: width 0.8s ease; }
.cc-contrib-bar-biggest { background: var(--cc-warn); }
.cc-contrib-val { font-size: 0.78rem; font-weight: 700; color: var(--cc-text); width: 90px; text-align: right; flex-shrink: 0; }

.cc-ifwrong-box { background: rgba(255,255,255,0.02); border: 1px solid var(--cc-border); border-radius: 12px; padding: 1.2rem 1.4rem; margin-bottom: 1.4rem; }
.cc-ifwrong-row { display: table; width: 100%; table-layout: fixed; border-spacing: 0.6rem 0; margin-bottom: 0.8rem; }
.cc-ifwrong-item { display: table-cell; text-align: center; padding: 0.8rem 0.5rem; border-radius: 10px; background: rgba(255,255,255,0.02); }
.cc-ifwrong-dir { font-size: 0.74rem; color: var(--cc-text-gray); margin-bottom: 0.5rem; line-height: 1.3; }
.cc-ifwrong-val { font-size: 1.3rem; font-weight: 800; }
.cc-ifwrong-over .cc-ifwrong-val, .cc-ifwrong-item:first-child .cc-ifwrong-val { color: var(--cc-warn); }
.cc-ifwrong-item:nth-child(2) .cc-ifwrong-val { color: var(--cc-accent); }
.cc-ifwrong-sub { font-size: 0.72rem; color: var(--cc-text-dark); margin-top: 0.3rem; }
.cc-ifwrong-note { font-size: 0.8rem; color: var(--cc-text-gray); line-height: 1.5; border-top: 1px dashed var(--cc-border); padding-top: 0.8rem; }

.cc-method-box { background: rgba(255,255,255,0.02); border: 1px solid var(--cc-border); border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: 1.4rem; }
.cc-method-text { font-size: 0.85rem; color: #c0c5d4; line-height: 1.6; }

.cc-calibration-box { background: rgba(59,130,246,0.04); border: 1px solid rgba(59,130,246,0.18); border-radius: 14px; padding: 1.3rem 1.5rem; }
.cc-cal-steps { margin-bottom: 1.3rem; }
.cc-cal-step { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.86rem; color: #c0c5d4; line-height: 1.55; margin-bottom: 0.8rem; }
.cc-cal-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--cc-accent); color: #fff; font-size: 0.78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cc-cal-step strong { color: var(--cc-text); }

.cc-cal-form { border-top: 1px solid var(--cc-border); padding-top: 1.2rem; }
.cc-cal-field-grid { display: table; width: 100%; table-layout: fixed; border-spacing: 0.6rem 0; margin-bottom: 0.8rem; }
.cc-cal-field { display: table-cell; padding: 0 0.3rem; }
.cc-cal-field:first-child { padding-left: 0; }
.cc-cal-field:last-child { padding-right: 0; }
.cc-cal-field label { display: block; font-size: 0.76rem; color: var(--cc-text-gray); margin-bottom: 0.35rem; }
.cc-cal-submit-btn {
  width: 100%; background: rgba(59,130,246,0.12) !important; color: var(--cc-accent) !important;
  -webkit-text-fill-color: var(--cc-accent) !important; border: 1px solid rgba(59,130,246,0.4) !important;
  border-radius: 10px; padding: 0.75rem; font-size: 0.88rem; font-weight: 700; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; margin-top: 0.4rem; transition: background 0.2s;
}
.cc-cal-submit-btn:hover { background: rgba(59,130,246,0.2) !important; }

.cc-cal-results-box { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px dashed var(--cc-border); text-align: center; }
.cc-cal-result-label { font-size: 0.78rem; color: var(--cc-text-gray); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.cc-cal-result-amount { font-size: 1.7rem; font-weight: 800; color: var(--cc-good); margin-bottom: 0.6rem; }
.cc-cal-result-text { font-size: 0.84rem; color: #c0c5d4; line-height: 1.6; text-align: left; }
.cc-cal-error { font-size: 0.84rem; color: #fca5a5; }

.cc-share-wrap { text-align: center; margin-bottom: 2rem; }
.cc-share-title { font-size: 0.85rem; color: var(--cc-text-gray); margin-bottom: 0.8rem; }
.cc-share-block { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
.cc-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(--cc-border); color: var(--cc-text); background: rgba(255,255,255,0.04); cursor: pointer; transition: transform 0.15s, border-color 0.2s; }
.cc-share-btn:hover { transform: translateY(-2px); border-color: var(--cc-accent); }

.cc-seo { margin-top: 2rem; line-height: 1.7; }
.cc-seo h2 { font-size: 1.4rem; margin-top: 2.2rem; color: var(--cc-text); }
.cc-seo h3 { font-size: 1.1rem; margin-top: 1.6rem; color: var(--cc-text); }
.cc-seo p { color: #c0c5d4; margin: 0.9rem 0; }
.cc-seo strong { color: var(--cc-text); }
.cc-seo hr { border: none; border-top: 1px solid var(--cc-border); margin: 2rem 0; }

.cc-example-box { background: rgba(59,130,246,0.05); border: 1px solid rgba(59,130,246,0.2); border-radius: 12px; padding: 1.2rem 1.4rem; margin: 1.2rem 0; }
.cc-example-box ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.cc-example-box li { color: #c0c5d4; margin-bottom: 0.4rem; }

.cc-related { margin-top: 2.5rem; }
.cc-related h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.wp-block-latest-posts li { background: #10131c !important; border: 1px solid rgba(255,255,255,0.08) !important; border-radius: 12px !important; padding: 1rem !important; margin-bottom: 0.5rem !important; }

@keyframes ccFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .cc-header, .cc-card, .cc-results { animation: none !important; } }

@media (max-width: 640px) {
  .cc-field-grid, .cc-cal-field-grid { display: block; }
  .cc-field, .cc-cal-field { display: block; padding: 0; margin-bottom: 0.8rem; }
  .cc-header h1 { font-size: 1.6rem; }
  .cc-range-amount { font-size: 1.4rem; }
  .cc-contrib-label { width: 100%; margin-bottom: 0.2rem; }
  .cc-contrib-row { flex-wrap: wrap; }
  .cc-ifwrong-row { display: block; }
  .cc-ifwrong-item { display: block; margin-bottom: 0.6rem; }
}
