#gekas-pet-root {
  --gp-bg: #ffffff;
  --gp-text: #0b3d91;
  --gp-muted: #4a6fa5;
  --gp-accent: #1a5fd0;
  --gp-accent-soft: #e8f0fe;
  --gp-ink: #ffffff;
  --gp-line: #d5e2f5;
  --gp-safe: env(safe-area-inset-bottom, 0px);
  --gp-z: 2147483646;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  position: fixed;
  inset: 0;
  z-index: var(--gp-z);
  pointer-events: none;
}

#gekas-pet-root * { box-sizing: border-box; }

#gekas-pet-root .hidden { display: none !important; }

.gp-flash,
.gp-bubble,
.gp-overlay,
.gp-modal {
  pointer-events: auto;
}

.gp-flash {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--gp-safe));
  z-index: var(--gp-z);
  background: var(--gp-bg);
  color: var(--gp-text);
  border: 1px solid var(--gp-line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(11, 61, 145, 0.2);
  display: grid;
  gap: 10px;
  animation: gp-in 0.35s ease;
}

@keyframes gp-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.gp-flash-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--gp-text);
}

.gp-flash-meta {
  color: var(--gp-muted);
  font-size: 0.88rem;
}

.gp-flash-actions {
  display: flex;
  gap: 8px;
}

.gp-btn {
  min-height: 44px;
  border-radius: 12px;
  border: 0;
  padding: 10px 14px;
  font-weight: 650;
  cursor: pointer;
  font-size: 0.95rem;
}

.gp-btn-primary {
  background: var(--gp-accent);
  color: var(--gp-ink);
  flex: 1;
}

.gp-btn-ghost {
  background: transparent;
  color: var(--gp-muted);
  border: 1px solid var(--gp-line);
}

.gp-bubble-wrap {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + var(--gp-safe));
  z-index: var(--gp-z);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.gp-bubble {
  pointer-events: auto;
  min-width: 108px;
  min-height: 108px;
  border-radius: 22px;
  border: 2px solid var(--gp-accent);
  background: #fff;
  color: var(--gp-accent);
  box-shadow: 0 12px 32px rgba(11, 61, 145, 0.28);
  cursor: pointer;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.15;
  text-align: center;
  padding: 12px 14px;
  animation: gp-in 0.3s ease;
}

.gp-bubble-label {
  display: block;
  letter-spacing: 0.01em;
}

.gp-bubble small {
  display: block;
  color: var(--gp-text);
  font-size: 0.72rem;
  font-weight: 600;
}

.gp-thumb {
  font-size: 1.85rem;
  line-height: 1;
  opacity: 0;
  transform: translateX(8px) rotate(-25deg) scale(0.7);
  filter: drop-shadow(0 4px 8px rgba(11, 61, 145, 0.25));
  pointer-events: none;
}

.gp-bubble-wrap.is-nudge .gp-thumb {
  animation: gp-thumb-point 2.2s ease;
}

.gp-bubble-wrap.is-nudge .gp-bubble {
  animation: gp-bubble-pulse 2.2s ease;
}

@keyframes gp-thumb-point {
  0% { opacity: 0; transform: translateX(14px) rotate(-35deg) scale(0.6); }
  18% { opacity: 1; transform: translateX(0) rotate(-12deg) scale(1.05); }
  35% { transform: translateX(6px) rotate(-18deg) scale(1); }
  50% { transform: translateX(-2px) rotate(-8deg) scale(1.08); }
  65% { transform: translateX(6px) rotate(-18deg) scale(1); }
  85% { opacity: 1; transform: translateX(0) rotate(-12deg) scale(1.02); }
  100% { opacity: 0; transform: translateX(10px) rotate(-30deg) scale(0.75); }
}

@keyframes gp-bubble-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 32px rgba(11, 61, 145, 0.28); }
  40%, 60% { transform: scale(1.06); box-shadow: 0 14px 36px rgba(26, 95, 208, 0.4); }
}

.gp-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--gp-z);
  background: rgba(8, 28, 64, 0.55);
  display: grid;
  place-items: end center;
  padding: 0;
}

.gp-modal {
  position: relative;
  z-index: calc(var(--gp-z) + 1);
  width: 100%;
  max-width: 560px;
  max-height: min(92dvh, 900px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  color: var(--gp-text);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(20px + var(--gp-safe));
  box-shadow: 0 -10px 40px rgba(11, 61, 145, 0.25);
}

.gp-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.gp-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--gp-text);
}

.gp-close {
  border: 0;
  background: var(--gp-accent-soft);
  color: var(--gp-accent);
  font-size: 1.4rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  cursor: pointer;
}

.gp-modal img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.gp-content {
  white-space: pre-wrap;
  color: #234a86;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.gp-bar {
  height: 8px;
  background: var(--gp-accent-soft);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 14px;
}

.gp-bar > span {
  display: block;
  height: 100%;
  background: var(--gp-accent);
  width: 0%;
}

.gp-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--gp-muted);
  margin-bottom: 4px;
}

.gp-form input:not([type="checkbox"]),
.gp-country-input {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--gp-line);
  background: #f5f9ff;
  color: var(--gp-text);
  padding: 12px;
  font-size: 16px;
}

.gp-country {
  position: relative;
  margin-bottom: 10px;
}

.gp-country-input { margin-bottom: 0; }

.gp-country-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 5;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--gp-line);
  border-radius: 12px;
  max-height: 220px;
  overflow: auto;
  box-shadow: 0 10px 24px rgba(11, 61, 145, 0.15);
}

.gp-country-list li {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--gp-text);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.gp-country-list li:hover,
.gp-country-list li:focus {
  background: var(--gp-accent-soft);
}

.gp-country-code {
  color: var(--gp-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gp-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0 12px;
  font-size: 0.9rem;
  color: var(--gp-text);
}

.gp-error {
  color: #c62828;
  min-height: 1.1em;
  font-size: 0.88rem;
}

.gp-thanks {
  text-align: center;
  padding: 18px 8px 8px;
}

.gp-thanks h3 {
  margin: 0 0 8px;
  color: var(--gp-text);
  font-size: 1.35rem;
}

.gp-thanks p {
  margin: 0 0 12px;
  color: var(--gp-muted);
}

.gp-thanks .gp-flash-meta {
  margin-bottom: 16px;
}

.gp-share {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gp-share-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gp-line);
  background: #f5f9ff;
  color: var(--gp-accent);
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(11, 61, 145, 0.08);
  transition: transform 0.15s ease, background 0.15s ease;
}

.gp-share-btn:hover {
  transform: translateY(-1px);
  background: var(--gp-accent-soft);
}

.gp-share-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.gp-share-btn.is-wa { color: #128c7e; }
.gp-share-btn.is-fb { color: #1877f2; }
.gp-share-btn.is-x { color: #111; }
.gp-share-btn.is-copy { color: var(--gp-accent); }

@media (min-width: 720px) {
  .gp-flash {
    left: auto;
    right: 20px;
    bottom: 20px;
    width: min(380px, calc(100vw - 40px));
  }
  .gp-overlay {
    place-items: center;
    padding: 24px;
  }
  .gp-modal {
    border-radius: 18px;
    max-height: 86vh;
  }
}
