/* Caesar Pro Tools CSS */
.cp-tool-wrap {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 32px;
  margin: 28px 0 36px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.cp-tool-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}

.cp-tool-badge {
  display: inline-block;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.cp-tool-header h3 {
  margin: 4px 0 8px;
  font-size: 22px;
  color: #111827;
}

.cp-tool-header p {
  color: #64748B;
  font-size: 14px;
  margin: 0;
}

.cp-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.cp-form-group {
  margin-bottom: 16px;
}

.cp-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.cp-form-group .cp-hint {
  font-size: 12px;
  color: #64748B;
  margin-top: 4px;
  display: block;
}

.cp-input,
.cp-textarea,
.cp-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  background-color: #FFFFFF;
  color: #111827;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cp-input:focus,
.cp-textarea:focus,
.cp-select:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cp-textarea {
  min-height: 120px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.cp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
}

.cp-btn-primary {
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cp-btn-primary:hover {
  background: #1D4ED8;
}

.cp-btn-sec {
  background: #F1F5F9;
  color: #374151;
  border: 1px solid #CBD5E1;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cp-btn-sec:hover {
  background: #E2E8F0;
  color: #111827;
}

.cp-btn-teal {
  background: #0F9F9A;
  color: #FFFFFF;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.cp-btn-teal:hover {
  background: #0D827D;
}

.cp-output-box {
  background: #0F172A;
  color: #E2E8F0;
  border-radius: 8px;
  padding: 18px;
  margin-top: 20px;
  position: relative;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid #1E293B;
  min-height: 80px;
}

.cp-copy-toast {
  display: inline-block;
  font-size: 13px;
  color: #0F9F9A;
  font-weight: 600;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cp-copy-toast.show {
  opacity: 1;
}

/* Stat Counters */
.cp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.cp-stat-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}

.cp-stat-val {
  font-size: 26px;
  font-weight: 800;
  color: #2563EB;
  line-height: 1.1;
}

.cp-stat-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Live SERP Preview */
.cp-serp-preview {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  max-width: 650px;
}

.cp-serp-site {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #202124;
  margin-bottom: 4px;
}

.cp-serp-favicon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563EB;
}

.cp-serp-title {
  color: #1A0DAB;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-serp-title:hover {
  text-decoration: underline;
}

.cp-serp-desc {
  color: #4D5156;
  font-size: 14px;
  line-height: 1.58;
  word-wrap: break-word;
}

/* Social Card Preview */
.cp-og-preview-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  overflow: hidden;
  max-width: 520px;
  margin-top: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.cp-og-preview-img {
  width: 100%;
  height: 220px;
  background-color: #0A0F1D;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 14px;
}

.cp-og-preview-content {
  padding: 16px;
}

.cp-og-domain {
  font-size: 12px;
  color: #64748B;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cp-og-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  line-height: 1.3;
}

.cp-og-desc {
  font-size: 13px;
  color: #4B5563;
  line-height: 1.4;
}

/* Directory Grid */
.cp-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.cp-dir-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cp-dir-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.08);
  border-color: #2563EB;
}

.cp-dir-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #EFF6FF;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.cp-dir-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #111827;
}

.cp-dir-card p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.6;
  margin: 0 0 16px;
  flex-grow: 1;
}

.cp-dir-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #2563EB;
  text-decoration: none;
}

.cp-dir-link:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

/* Revenue Calc Result Card */
.cp-calc-result-box {
  background: linear-gradient(135deg, #111827 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 28px;
  margin-top: 24px;
}

.cp-calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.cp-calc-tier {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cp-calc-num {
  font-size: 28px;
  font-weight: 800;
  color: #0F9F9A;
  margin-bottom: 4px;
}

.cp-calc-lbl {
  font-size: 12px;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .cp-tool-wrap { padding: 20px 16px; }
  .cp-calc-grid { grid-template-columns: 1fr; gap: 12px; }
}
