.tool-hero {
  background: linear-gradient(135deg, #1dbf73 0%, #059669 100%);
  padding: 5rem 1.5rem 3rem;
  margin-top: 68px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tool-hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -150px; right: -100px;
}
.tool-hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -100px; left: -50px;
}
.tool-hero-content { position: relative; z-index: 1; }
.tool-hero-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.tool-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; color: white;
  letter-spacing: -1px; margin-bottom: 0.75rem;
}
.tool-hero p { font-size: 1rem; color: rgba(255,255,255,0.78); max-width: 480px; margin: 0 auto; }
.tool-main { max-width: 840px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }

.fiverr-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.calc-panel {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.calc-panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 0.75rem;
}

.calc-panel-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(29,191,115,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.calc-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.calc-panel-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }

.field-group { display: flex; flex-direction: column; gap: 0.4rem; }

.field-label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.4px;
}

.field-input-wrap { position: relative; }

.field-prefix {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

.field-input {
  width: 100%;
  padding: 0.7rem 0.9rem 0.7rem 2rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: 'Inter', sans-serif;
  color: var(--text); outline: none;
  transition: var(--transition);
  background: var(--bg);
}

.field-input.no-prefix { padding-left: 0.9rem; }

.field-input:focus {
  border-color: #1dbf73;
  background: white;
  box-shadow: 0 0 0 3px rgba(29,191,115,0.1);
}

.field-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: 'Inter', sans-serif;
  color: var(--text); outline: none;
  transition: var(--transition);
  background: var(--bg);
  cursor: pointer;
}
.field-select:focus { border-color: #1dbf73; background: white; box-shadow: 0 0 0 3px rgba(29,191,115,0.1); }

.btn-calc {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #1dbf73, #059669);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.25rem;
  box-shadow: 0 4px 12px rgba(29,191,115,0.3);
}
.btn-calc:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(29,191,115,0.4); }
.btn-calc:active { transform: translateY(0); }

.btn-reset-small {
  width: 100%;
  padding: 0.7rem;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}
.btn-reset-small:hover { border-color: var(--text-muted); color: var(--text); }

/* Result panel */
.result-panel {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.result-panel-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #1dbf73, #059669);
  color: white;
}

.result-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.result-panel-subtitle {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

.result-big {
  padding: 1.75rem 1.5rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.result-big-label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.result-big-value {
  font-size: 2.5rem; font-weight: 900;
  letter-spacing: -2px;
  color: #1dbf73;
  line-height: 1;
}

.result-rows { padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }

.result-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.result-row:hover { background: var(--bg); }

.result-row-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.result-row-value { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.result-row-value.negative { color: var(--danger); }
.result-row-value.positive { color: #1dbf73; }

.result-divider { border: none; border-top: 1px solid var(--border-light); margin: 0.25rem 0; }

.result-total-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 0.75rem;
  background: rgba(29,191,115,0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(29,191,115,0.15);
}
.result-total-label { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.result-total-value { font-size: 1.1rem; font-weight: 900; color: #1dbf73; }

.result-actions { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border-light); display: flex; gap: 0.75rem; }

.btn-copy {
  flex: 1;
  padding: 0.7rem;
  background: rgba(29,191,115,0.1);
  color: #059669;
  border: 1.5px solid rgba(29,191,115,0.25);
  border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}
.btn-copy:hover { background: rgba(29,191,115,0.18); }

.result-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text-light);
  text-align: center;
}
.result-placeholder-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.result-placeholder-text { font-size: 0.875rem; }

@media (max-width: 640px) {
  .fiverr-layout { grid-template-columns: 1fr; }
}
