.pinoygpt-ai-detector {
  max-width: 980px;
  margin: 34px auto;
  font-family: inherit;
  color: #0f172a;
}

.pinoygpt-ai-detector * {
  box-sizing: border-box;
}

.pinoygpt-ai-detector__card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 30%),
    #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  padding: clamp(20px, 4vw, 34px);
}

.pinoygpt-ai-detector__hero {
  display: grid;
  grid-template-columns: 1fr minmax(210px, 280px);
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
}

.pinoygpt-ai-detector__badge,
.pinoygpt-ai-detector__risk {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 7px 12px;
  margin-bottom: 12px;
}

.pinoygpt-ai-detector__badge {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.pinoygpt-ai-detector h1 {
  margin: 2px 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.pinoygpt-ai-detector p {
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
  margin-top: 0;
}

.pinoygpt-ai-detector__seo-intro {
  max-width: 720px;
  margin: -2px 0 0 !important;
  color: #334155 !important;
  font-size: 15px !important;
}

.pinoygpt-ai-detector__trust {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.86);
  border: 1px solid #e2e8f0;
}

.pinoygpt-ai-detector__trust span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.pinoygpt-ai-detector__trust span::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
}

.pinoygpt-ai-detector__input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.pinoygpt-ai-detector__label {
  display: block;
  font-weight: 900;
  color: #0f172a;
}

.pinoygpt-ai-detector__mini-actions,
.pinoygpt-ai-detector__result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pinoygpt-ai-detector__mini-actions button,
.pinoygpt-ai-detector__result-actions button {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pinoygpt-ai-detector__textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 22px;
  padding: 19px;
  font-size: 16px;
  line-height: 1.7;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pinoygpt-ai-detector__textarea:focus {
  border-color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.12);
}

.pinoygpt-ai-detector__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.pinoygpt-ai-detector__stats div,
.pinoygpt-ai-detector__grid div {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
}

.pinoygpt-ai-detector__stats strong,
.pinoygpt-ai-detector__grid strong {
  display: block;
  color: #0f172a;
  font-size: 21px;
  line-height: 1.1;
}

.pinoygpt-ai-detector__stats span,
.pinoygpt-ai-detector__grid span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pinoygpt-ai-detector__quality {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px 12px;
  align-items: start;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 18px;
  padding: 14px 16px;
}

.pinoygpt-ai-detector__quality span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #f59e0b;
  margin-top: 5px;
}

.pinoygpt-ai-detector__quality strong {
  color: #0f172a;
  font-size: 14px;
}

.pinoygpt-ai-detector__quality p {
  grid-column: 2;
  margin: -4px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
}

.pinoygpt-ai-detector__quality.is-good span {
  background: #22c55e;
}

.pinoygpt-ai-detector__quality.is-low span {
  background: #ef4444;
}

.pinoygpt-ai-detector__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.pinoygpt-ai-detector__button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  padding: 14px 24px;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.22);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.pinoygpt-ai-detector__button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.pinoygpt-ai-detector__button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.pinoygpt-ai-detector__button--ghost {
  background: #e2e8f0;
  color: #0f172a;
  box-shadow: none;
}

.pinoygpt-ai-detector__button--small {
  padding: 10px 16px;
  font-size: 13px;
}

.pinoygpt-ai-detector__notice {
  margin-top: 16px;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-weight: 700;
}

.pinoygpt-ai-detector__result {
  margin-top: 24px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 26px);
}

.pinoygpt-ai-detector__result-top {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 20px;
  align-items: center;
}

.pinoygpt-ai-detector__score {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#4f46e5 0deg, #dbeafe 0deg);
  color: #111827;
  font-size: 30px;
  font-weight: 950;
  border: 8px solid #ffffff;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.10);
}

.pinoygpt-ai-detector__risk {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.pinoygpt-ai-detector__result.is-low .pinoygpt-ai-detector__risk {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.pinoygpt-ai-detector__result.is-medium .pinoygpt-ai-detector__risk {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.pinoygpt-ai-detector__result.is-high .pinoygpt-ai-detector__risk {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.pinoygpt-ai-detector__result h3 {
  color: #0f172a;
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.03em;
}

.pinoygpt-ai-detector__meter {
  height: 14px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 20px 0;
}

.pinoygpt-ai-detector__meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444);
  border-radius: inherit;
  transition: width 0.45s ease;
}

.pinoygpt-ai-detector__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.pinoygpt-ai-detector__insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.pinoygpt-ai-detector__insights > div {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
}

.pinoygpt-ai-detector h4 {
  color: #0f172a;
  margin: 0 0 10px;
  font-size: 16px;
}

.pinoygpt-ai-detector ul {
  margin: 0;
  padding-left: 20px;
  color: #334155;
}

.pinoygpt-ai-detector li {
  margin: 7px 0;
}

.pinoygpt-ai-detector__result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pinoygpt-ai-detector__button--pdf {
  background: linear-gradient(135deg, #0f172a, #334155);
}

.pinoygpt-ai-detector__cta {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  border: 1px solid #dbeafe;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border-radius: 18px;
  padding: 16px;
}

.pinoygpt-ai-detector__cta strong {
  color: #0f172a;
  font-size: 15px;
}

.pinoygpt-ai-detector__cta span {
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.pinoygpt-ai-detector__cta a {
  width: fit-content;
  color: #1d4ed8;
  font-weight: 900;
  text-decoration: none;
}

.pinoygpt-ai-detector__cta a:hover {
  text-decoration: underline;
}

.pinoygpt-ai-detector__disclaimer {
  font-size: 13px !important;
  color: #64748b !important;
  margin: 14px 0 0 !important;
}

@media (max-width: 760px) {
  .pinoygpt-ai-detector__hero,
  .pinoygpt-ai-detector__result-top,
  .pinoygpt-ai-detector__insights {
    grid-template-columns: 1fr;
  }

  .pinoygpt-ai-detector__stats,
  .pinoygpt-ai-detector__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pinoygpt-ai-detector__input-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .pinoygpt-ai-detector {
    margin: 18px auto;
  }

  .pinoygpt-ai-detector__card {
    border-radius: 22px;
  }

  .pinoygpt-ai-detector__stats,
  .pinoygpt-ai-detector__grid {
    grid-template-columns: 1fr;
  }

  .pinoygpt-ai-detector__score {
    width: 112px;
    height: 112px;
  }
}
