/* ============================================================
   Zepto Seller Profit Calculator — WordPress Plugin Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

.zpc-wrap {
  --zp:    #4f1f8c;
  --zv:    #7c3aed;
  --zl:    #ede9fe;
  --zll:   #f5f3ff;
  --ag:    #059669;
  --agl:   #d1fae5;
  --ar:    #dc2626;
  --arl:   #fee2e2;
  --aa:    #d97706;
  --aal:   #fef3c7;
  --bg:    #f7f5ff;
  --card:  #ffffff;
  --tx:    #1e1b4b;
  --mu:    #64748b;
  --bd:    #ddd6fe;
  --sh:    0 4px 28px rgba(92,45,145,.10);

  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--tx);
  background: var(--bg);
  padding: 32px 16px 48px;
  max-width: 820px;
  margin: 0 auto;
}

/* ---- Header ---- */
.zpc-header {
  text-align: center;
  margin-bottom: 32px;
}

.zpc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--zl);
  color: var(--zp);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.zpc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--zv);
  animation: zpc-pulse 1.8s ease-in-out infinite;
}

@keyframes zpc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .35; transform: scale(.65); }
}

.zpc-title {
  font-family: 'Syne', sans-serif !important;
  font-size: clamp(24px, 4.5vw, 38px) !important;
  font-weight: 800 !important;
  color: var(--zp) !important;
  line-height: 1.18 !important;
  margin: 0 0 8px !important;
  background: linear-gradient(135deg, var(--zp) 0%, var(--zv) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.zpc-subtitle {
  font-size: 14px;
  color: var(--mu);
  margin: 0;
}

/* ---- Card ---- */
.zpc-card {
  background: var(--card);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: var(--sh);
  border: 1px solid var(--bd);
  margin-bottom: 18px;
  transition: box-shadow .2s;
}

.zpc-card:hover {
  box-shadow: 0 8px 36px rgba(92,45,145,.13);
}

.zpc-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--zp);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.zpc-card-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  background: linear-gradient(to bottom, var(--zv), var(--zp));
  border-radius: 4px;
  flex-shrink: 0;
}

/* ---- Grid ---- */
.zpc-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 540px) {
  .zpc-grid2 { grid-template-columns: 1fr; }
}

/* ---- Fields ---- */
.zpc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zpc-field label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mu);
  letter-spacing: .2px;
}

.zpc-pfx {
  position: relative;
}

.zpc-pfx input {
  padding-left: 28px !important;
}

.zpc-pi {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--mu);
  pointer-events: none;
  font-family: 'DM Mono', monospace;
}

.zpc-wrap input[type="number"],
.zpc-wrap select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--bd);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--tx);
  background: var(--zll);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -moz-appearance: textfield;
  appearance: auto;
}

.zpc-wrap input[type="number"]::-webkit-outer-spin-button,
.zpc-wrap input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.zpc-wrap input[type="number"]:focus,
.zpc-wrap select:focus {
  border-color: var(--zv);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}

.zpc-hint {
  font-size: 10.5px;
  color: #a78bfa;
  margin-top: 2px;
}

/* ---- Category Buttons ---- */
.zpc-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 8px;
}

.zpc-cat-btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--bd);
  background: var(--zll);
  font-size: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  text-align: left;
  transition: all .18s;
  color: var(--tx);
  line-height: 1.35;
  font-weight: 500;
}

.zpc-cat-btn:hover {
  border-color: var(--zv);
  background: var(--zl);
  transform: translateY(-1px);
}

.zpc-cat-btn.active {
  border-color: var(--zv);
  background: linear-gradient(135deg, var(--zl), #f3e8ff);
  color: var(--zp);
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(124,58,237,.15);
}

.zpc-cat-rate {
  display: block;
  font-size: 10px;
  color: var(--mu);
  margin-top: 3px;
  font-weight: 400;
}

.zpc-cat-btn.active .zpc-cat-rate {
  color: var(--zv);
}

/* ---- Slider ---- */
.zpc-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zpc-wrap input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 5px;
  border-radius: 10px;
  background: linear-gradient(to right, var(--zv) var(--pct, 57%), var(--bd) var(--pct, 57%));
  outline: none;
  cursor: pointer;
  border: none;
  padding: 0;
  box-shadow: none;
}

.zpc-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--zv);
  box-shadow: 0 2px 8px rgba(124,58,237,.35);
  cursor: pointer;
  transition: transform .15s;
}

.zpc-wrap input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.zpc-slider-val {
  width: 50px;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  font-size: 14px;
  color: var(--zp);
  background: var(--zl);
  border-radius: 8px;
  padding: 4px 6px;
  flex-shrink: 0;
}

/* ---- Results Card ---- */
.zpc-results-card {
  background: linear-gradient(160deg, #fefcff 0%, #f5f3ff 100%);
  border: 2px solid var(--bd);
}

.zpc-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.zpc-stat {
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.zpc-stat::after {
  content: '';
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: currentColor;
  opacity: .07;
}

.zpc-stat.primary { background: var(--zl);  color: var(--zv); }
.zpc-stat.red     { background: var(--arl); color: var(--ar); }
.zpc-stat.green   { background: var(--agl); color: var(--ag); }
.zpc-stat.dark    { background: var(--zp);  color: #fff; }

.zpc-stat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  opacity: .8;
}

.zpc-stat-val {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.5px;
}

.zpc-stat-sub {
  font-size: 10.5px;
  opacity: .6;
}

/* ---- Meter ---- */
.zpc-meter-wrap { margin-top: 4px; }

.zpc-meter-lr {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--mu);
  margin-bottom: 7px;
}

.zpc-meter-center {
  font-weight: 700;
  color: var(--zp);
  font-size: 12px;
}

.zpc-meter-track {
  height: 12px;
  background: var(--bd);
  border-radius: 12px;
  overflow: hidden;
}

.zpc-meter-fill {
  height: 100%;
  border-radius: 12px;
  width: 0%;
  transition: width .6s cubic-bezier(.4,0,.2,1), background .4s;
  background: var(--ag);
}

.zpc-meter-zones {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.zpc-meter-zones .zone {
  font-size: 10px;
  color: var(--mu);
}

/* ---- Breakdown ---- */
.zpc-breakdown {
  border: 1.5px solid var(--bd);
  border-radius: 12px;
  overflow: hidden;
}

.zpc-brow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--bd);
  transition: background .15s;
}

.zpc-brow:last-child { border-bottom: none; }
.zpc-brow:hover { background: var(--zll); }

.zpc-brl { color: var(--mu); }

.zpc-brv {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  font-size: 13px;
}

.zpc-brv.neg { color: var(--ar); }
.zpc-brv.pos { color: var(--ag); }
.zpc-brv.neu { color: var(--zv); }

.zpc-brow-total {
  background: var(--zl) !important;
  font-weight: 700;
}

.zpc-brow-total .zpc-brl {
  color: var(--zp);
  font-weight: 700;
}

.zpc-brow-total .zpc-brv {
  font-size: 15px;
  color: var(--zp);
}

/* ---- Buttons ---- */
.zpc-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.zpc-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .5px;
  transition: transform .15s, box-shadow .2s;
  min-width: 120px;
}

.zpc-btn:active { transform: scale(.97) !important; }

.zpc-btn.primary {
  background: linear-gradient(135deg, var(--zv), var(--zp));
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,.35);
}

.zpc-btn.primary:hover {
  box-shadow: 0 7px 22px rgba(124,58,237,.45);
  transform: translateY(-1px);
}

.zpc-btn.secondary {
  background: var(--zl);
  color: var(--zp);
}

.zpc-btn.secondary:hover {
  background: #e0d4fc;
}

/* ---- Tips ---- */
.zpc-tips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zpc-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--tx);
  line-height: 1.6;
}

.zpc-tip-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--zl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.zpc-tip p { margin: 0; }

/* ---- Footer ---- */
.zpc-footer {
  text-align: center;
  font-size: 11px;
  color: #a78bfa;
  margin-top: 20px;
  line-height: 1.6;
}
