.gmp {
  --gmp-red: #d70018;
  --gmp-gold-2: #ffe7a0;
  --gmp-text: #1f1f28;
  color: var(--gmp-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0 auto;
  max-width: 760px;
}

.gmp * {
  box-sizing: border-box;
}

.gmp__panel {
  margin: 0;
  padding: clamp(24px, 4vw, 38px);
  border: 4px solid var(--gmp-red);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 0 rgba(215, 0, 24, 0.12);
}

.gmp__title {
  margin: 0 0 22px;
  color: #061536;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center;
}

.gmp__form {
  display: grid;
  gap: 16px;
}

.gmp__input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 2px solid #d6dce6;
  border-radius: 8px;
  background: #fff;
  color: var(--gmp-text);
  font-size: 17px;
  font-weight: 700;
  outline: none;
}

.gmp__input:focus {
  border-color: var(--gmp-red);
  box-shadow: 0 0 0 4px rgba(215, 0, 24, 0.12);
}

.gmp__button {
  min-height: 58px;
  padding: 0 28px;
  border: 3px solid var(--gmp-red);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, #fff8dc 48%, var(--gmp-gold-2) 100%);
  color: var(--gmp-red);
  cursor: pointer;
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 4px 0 rgba(167, 0, 18, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.gmp__button:hover,
.gmp__button:focus {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 6px 0 rgba(167, 0, 18, 0.2);
}

.gmp-modal-open {
  overflow: hidden;
}

.gmp__modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  padding: 22px;
}

.gmp__modal[hidden] {
  display: none !important;
}

.gmp__modal.is-open {
  display: grid;
  place-items: center;
}

.gmp__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 14, 0.58);
  animation: gmpFadeIn 0.18s ease both;
}

.gmp__modal-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: min(82vh, 760px);
  padding: clamp(20px, 3vw, 30px);
  border: 4px solid var(--gmp-red);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: gmpPopIn 0.2s ease both;
}

.gmp__modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--gmp-red);
  border-radius: 999px;
  background: #fff;
  color: var(--gmp-red);
  cursor: pointer;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.gmp__modal-head {
  display: grid;
  gap: 8px;
  padding-right: 46px;
  margin-bottom: 14px;
}

.gmp__modal-head h3 {
  margin: 0;
  color: var(--gmp-red);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.25;
}

.gmp__modal-head p {
  margin: 0;
  color: #4d5664;
  font-size: 14px;
  font-weight: 800;
}

.gmp__note {
  margin: 0 0 14px;
  color: #5f6570;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.gmp__table-wrap {
  max-height: min(58vh, 560px);
  overflow: auto;
  border: 1px solid #e0e4eb;
  border-radius: 10px;
}

.gmp__table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

.gmp__table th,
.gmp__table td {
  padding: 13px 15px;
  border-bottom: 1px solid #e6e9ee;
  text-align: left;
  vertical-align: top;
}

.gmp__table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff4f5;
  color: #2b2d34;
  font-size: 14px;
  font-weight: 900;
}

.gmp__table td {
  color: #172033;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.gmp__table th:nth-child(2),
.gmp__table td:nth-child(2) {
  width: 24%;
}

.gmp__table th:nth-child(3),
.gmp__table td:nth-child(3) {
  width: 18%;
  text-align: right;
}

.gmp__empty {
  color: #6b7280;
  text-align: center !important;
}

@keyframes gmpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gmpPopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .gmp {
    max-width: 100%;
  }

  .gmp__panel {
    border-width: 3px;
    border-radius: 16px;
  }

  .gmp__modal {
    padding: 12px;
  }

  .gmp__modal-dialog {
    max-height: 88vh;
    border-width: 3px;
    border-radius: 14px;
  }

  .gmp__table {
    min-width: 620px;
  }
}
