* { box-sizing: border-box; margin: 0; padding: 0; }

.fpc-wrap {
  font-family: 'Inter', sans-serif;
  max-width: 100%;
  width: 100%;
  background: #f8f9ff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(99,102,241,0.15);
}

/* Header */
.fpc-header {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  color: white;
  text-align: center;
  padding: 30px 20px;
}
.fpc-header h2 { font-size: clamp(20px, 4vw, 28px); font-weight: 700; }
.fpc-header p { font-size: 14px; opacity: 0.85; margin-top: 6px; }

/* Body Layout */
.fpc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 768px) {
  .fpc-body { grid-template-columns: 1fr; }
}

/* Left Panel */
.fpc-left {
  padding: 24px;
  background: #fff;
  border-right: 1px solid #e8e9ff;
}

.fpc-field { margin-bottom: 20px; }
.fpc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 8px;
}

.fpc-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fpc-slider-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #6366f1 0%, #e0e0e0 0%);
  outline: none;
  cursor: pointer;
}
.fpc-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 2px 6px rgba(99,102,241,0.4);
  cursor: pointer;
}

.fpc-val-box {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 4px 8px;
  min-width: 80px;
}
.fpc-val-box span {
  font-size: 13px;
  color: #6366f1;
  font-weight: 700;
}
.fpc-val-box input[type="number"] {
  width: 50px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  outline: none;
  text-align: center;
}

.fpc-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fpc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99,102,241,0.4);
}

/* Right Panel */
.fpc-right {
  padding: 24px;
  background: #fafbff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fpc-result-hero {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.fpc-result-hero p { font-size: 12px; opacity: 0.8; letter-spacing: 1px; }
.fpc-result-hero h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin: 8px 0; }
.fpc-result-hero span { font-size: 13px; opacity: 0.85; }

.fpc-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fpc-stat-card {
  background: white;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}
.fpc-stat-icon { font-size: 20px; }
.fpc-stat-card p { font-size: 11px; color: #6b7280; margin: 4px 0; }
.fpc-stat-card h3 { font-size: clamp(14px, 2.5vw, 18px); font-weight: 700; color: #6366f1; }

/* Chart */
.fpc-chart-wrap { text-align: center; }
#fpc-chart { max-width: 100%; height: auto; }
.fpc-chart-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}
.fpc-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}
.fpc-dot.contributed { background: #6366f1; }
.fpc-dot.earnings { background: #06b6d4; }

/* Table */
.fpc-table-wrap {
  padding: 24px;
  background: #fff;
  border-top: 1px solid #e8e9ff;
}
.fpc-table-wrap h3 {
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 16px;
}
.fpc-table-scroll { overflow-x: auto; }

#fpc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 500px;
}
#fpc-table thead tr {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}
#fpc-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
}
#fpc-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0f0f0;
  color: #374151;
}
#fpc-table tbody tr:nth-child(even) { background: #f8f9ff; }
#fpc-table tbody tr:hover { background: #eef0ff; }
