.gmenti-detector {
  --gd-primary: var(--primary-color, #39d353);
  --gd-dark: var(--dark-color, #000000);
  width: min(100%, 1060px);
  margin: 0 auto;
  text-align: left;
  color: #050505;
}

.gd-stage {
  transition: opacity 180ms ease, transform 180ms ease;
}

.gd-fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

.gd-fade-in {
  animation: gdFadeIn 260ms ease both;
}

@keyframes gdFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.gd-state-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px 0;
  font-size: 0.82rem;
  line-height: 1;
}

.gd-state-heading span {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 12px;
  border-radius: 3px;
  background: var(--gd-dark);
  color: #fff;
  font-weight: 900;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.gd-state-heading strong {
  color: #050505;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.gd-dropzone {
  position: relative;
  min-height: 238px;
  border: 1.5px dashed rgba(0,0,0,.82);
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(255,255,255,.2);
  cursor: pointer;
  outline: none;
  overflow: hidden;
}

.gd-dropzone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,.04), transparent 55%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.gd-dropzone:hover::before,
.gd-dropzone:focus-visible::before,
.gd-dropzone.is-dragging::before {
  opacity: 1;
}

.gd-dropzone.is-dragging {
  border-color: var(--gd-primary);
}

.gd-media-icon {
  color: #050505;
  margin-bottom: 15px;
}

.gd-image-icon {
  width: 104px;
  height: auto;
}

.gd-drop-title {
  margin: 0 0 2px;
  font-size: 1.18rem;
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
}

.gd-drop-subtitle {
  margin: 0 0 17px;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
}

.gd-browse-button {
  position: relative;
  z-index: 1;
  appearance: none;
  min-width: 206px;
  height: 45px;
  border: 1px solid var(--gd-dark);
  border-radius: 6px;
  background: var(--gd-dark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.gd-browse-button:hover { transform: translateY(-1px); }
.gd-browse-button svg { width: 23px; height: 23px; }

.gd-loading-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--gd-primary);
}

.gmenti-detector.is-loading .gd-dropzone {
  pointer-events: none;
  border-color: var(--gd-primary);
  animation: gdPulse 1.15s ease-in-out infinite;
}

.gmenti-detector.is-loading .gd-loading-line {
  animation: gdLoading 2.15s ease-in-out infinite;
}

@keyframes gdLoading {
  0% { transform: scaleX(0); }
  55% { transform: scaleX(.78); }
  100% { transform: scaleX(1); }
}

@keyframes gdPulse {
  0%, 100% { background-color: rgba(255,255,255,.2); }
  50% { background-color: color-mix(in srgb, var(--gd-primary) 8%, transparent); }
}

.gd-supports {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(0,0,0,.86);
}

.gd-error {
  min-height: 22px;
  margin: 8px 0 0;
  color: #b42318;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.gd-result-card {
  display: grid;
  grid-template-columns: 355px 1fr;
  width: 100%;
  min-height: 238px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gd-dark);
  color: #fff;
  box-shadow: none;
}

.gd-result-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 58px;
  border-right: 1px solid rgba(255,255,255,.32);
}

.gd-score-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.gd-score {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(4.9rem, 9vw, 7.25rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  color: #fff;
}

.gd-check {
  width: 36px;
  height: 36px;
  margin-top: 8px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gd-primary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
}

.gd-verdict {
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(2.05rem, 4.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.gd-summary {
  padding: 28px 48px 22px;
}

.gd-summary h3 {
  margin: 0 0 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.gd-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 0;
}

.gd-summary-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  min-height: 62px;
  gap: 14px;
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.22);
}

.gd-summary-item:nth-child(odd) {
  border-right: 1px solid rgba(255,255,255,.22);
  padding-right: 22px;
}

.gd-summary-item:nth-child(even) {
  padding-left: 22px;
}

.gd-summary-icon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  color: #fff;
}

.gd-summary-icon svg { width: 20px; height: 20px; }

.gd-summary-item p { margin: 0; min-width: 0; }
.gd-summary-item small {
  display: block;
  margin-bottom: 4px;
  color: rgba(255,255,255,.72);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
}
.gd-summary-item strong {
  display: block;
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.15;
  font-weight: 800;
}
.gd-summary-item .gd-primary { color: var(--gd-primary); }

.gd-reset-button {
  appearance: none;
  margin: 18px auto 0;
  min-width: 255px;
  height: 43px;
  border: 1px solid rgba(0,0,0,.8);
  border-radius: 5px;
  background: transparent;
  color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
}

.gd-reset-button svg { width: 22px; height: 22px; }
.gd-reset-button:hover { background: rgba(0,0,0,.04); }

@media (max-width: 900px) {
  .gd-result-card { grid-template-columns: 1fr; }
  .gd-result-left { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.26); padding: 34px; }
  .gd-summary { padding: 24px; }
}

@media (max-width: 640px) {
  .gd-dropzone { min-height: 230px; padding: 28px 18px; }
  .gd-summary-grid { grid-template-columns: 1fr; }
  .gd-summary-item,
  .gd-summary-item:nth-child(odd),
  .gd-summary-item:nth-child(even) { border-right: 0; padding-left: 0; padding-right: 0; }
  .gd-result-left { padding: 28px; }
  .gd-score { font-size: 5rem; }
}
