.autx-rzp {
  --autx-accent: #0088b0;
  --autx-accent-hover: #007498;
  --autx-text: #0f172a;
  --autx-muted: #64748b;
  --autx-line: #e2e8f0;
  --autx-bg: #ffffff;
  max-width: 520px;
  margin: 1.25rem 0;
  padding: 1.35rem 1.3rem 1.25rem;
  border: 1px solid var(--autx-line);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(0, 136, 176, 0.1), transparent 55%),
    var(--autx-bg);
  box-shadow: 0 14px 36px -24px rgba(15, 23, 42, 0.4);
  font-family: "Segoe UI", "Noto Sans", system-ui, sans-serif;
  color: var(--autx-text);
}

.autx-pricing {
  max-width: 560px;
  margin: 1.5rem 0;
}

.autx-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0 2rem;
  align-items: stretch;
}

@media (min-width: 760px) {
  .autx-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .autx-pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.autx-plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 100%;
  gap: 0;
  padding: 1.15rem 1.1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px -22px rgba(15, 23, 42, 0.45);
  box-sizing: border-box;
}

.autx-plan-card__top {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.autx-plan-card__mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 136, 176, 0.12);
  border: 1px solid rgba(0, 136, 176, 0.22);
  color: #0088b0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.autx-plan-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 3.4rem;
}

.autx-plan-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 136, 176, 0.12);
  color: #0e7490;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.autx-plan-card__badge--he,
.autx-plan-card--school_admin_pro .autx-plan-card__badge--he {
  background: rgba(14, 116, 144, 0.2);
  color: #0f766e;
}

.autx-plan-card__price-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 3.55rem;
}

.autx-plan-card__price {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.25;
}

.autx-plan-card__price-note {
  margin: 0;
  min-height: 1.15rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #0e7490;
  line-height: 1.3;
}

.autx-plan-card__name {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.autx-plan-card__subtitle {
  margin: 0;
  min-height: 1.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0088b0;
}

.autx-plan-card__tagline {
  margin: 0;
  min-height: 4.2rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #64748b;
}

.autx-plan-card__features {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  flex: 1 1 auto;
}

.autx-plan-card__features li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #0f172a;
}

.autx-plan-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 2px;
  background: #0088b0;
}

.autx-plan-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1rem;
}

.autx-plan-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  box-sizing: border-box;
}

.autx-plan-card__btn--store {
  background: #0088b0;
  color: #fff;
}

.autx-plan-card__btn--buy {
  background: #0f172a;
  color: #fff;
}

.autx-plan-card__fee-note {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #64748b;
  text-align: center;
}

.autx-rzp__price {
  margin: 0.2rem 0 0.15rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.autx-rzp__price-note {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0e7490;
}

.autx-rzp__summary {
  display: grid;
  gap: 0.4rem;
  margin: 0.55rem 0 0;
  padding: 0.75rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.autx-rzp__summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #334155;
}

.autx-rzp__summary-row strong {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

.autx-rzp__summary-row--total {
  margin-top: 0.15rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #cbd5e1;
  font-size: 0.95rem;
}

.autx-rzp__summary-row--total strong {
  font-size: 1.05rem;
}

.autx-rzp__amount-period {
  font-weight: 600;
  color: #64748b;
  font-size: 0.85rem;
}

.autx-rzp__fee-note {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #64748b;
}

.autx-rzp__plan {
  margin-bottom: 1.15rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--autx-line);
}

.autx-rzp__plan-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.autx-rzp__badge--he {
  background: linear-gradient(90deg, rgba(0, 136, 176, 0.18), rgba(14, 116, 144, 0.22));
  color: #0e7490;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.78rem;
}

.autx-rzp__badge--ml {
  background: #fff7ed;
  color: #9a3412;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.autx-rzp__plan-name {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--autx-text);
}

.autx-rzp__plan-tagline {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--autx-muted);
}

.autx-rzp__features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.autx-rzp__features li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--autx-text);
}

.autx-rzp__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--autx-accent);
  box-shadow: inset 0 0 0 2px #fff;
}

.autx-rzp__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.autx-rzp__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 136, 176, 0.12);
  color: var(--autx-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.autx-rzp__amount {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--autx-text);
}

.autx-rzp__user {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--autx-muted);
}

.autx-rzp__guest {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.autx-rzp__guest label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--autx-text);
}

.autx-rzp__guest input {
  width: 100%;
  border: 1px solid var(--autx-line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.autx-rzp__guest input:focus {
  outline: none;
  border-color: var(--autx-accent);
  box-shadow: 0 0 0 3px rgba(0, 136, 176, 0.18);
}

.autx-rzp-button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  background: linear-gradient(180deg, #009ec8 0%, var(--autx-accent) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 136, 176, 0.28);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.autx-rzp-button:hover:not(:disabled) {
  background: linear-gradient(180deg, #0090b8 0%, var(--autx-accent-hover) 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 136, 176, 0.34);
}

.autx-rzp-button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.autx-rzp-status {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.autx-rzp-status--info {
  background: #e0f2fe;
  color: #0369a1;
}

.autx-rzp-status--success {
  background: #dcfce7;
  color: #15803d;
}

.autx-rzp-status--error {
  background: #fee2e2;
  color: #b91c1c;
}

.autx-rzp-error {
  color: #b91c1c;
  font-weight: 600;
}

/* Result modal */
.autx-rzp-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.autx-rzp-modal[hidden] {
  display: none !important;
}

.autx-rzp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.autx-rzp-modal__dialog {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem 1.35rem 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  text-align: center;
  animation: autxRzpPop 0.22s ease;
}

@keyframes autxRzpPop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.autx-rzp-modal__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 700;
}

.autx-rzp-modal--success .autx-rzp-modal__icon {
  background: #dcfce7;
  color: #15803d;
}

.autx-rzp-modal--error .autx-rzp-modal__icon {
  background: #fee2e2;
  color: #b91c1c;
}

.autx-rzp-modal__title {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--autx-text);
}

.autx-rzp-modal__message {
  margin: 0 0 1.15rem;
  color: var(--autx-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.autx-rzp-modal__actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.autx-rzp-modal__btn {
  border: 0;
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.autx-rzp-modal__btn--primary {
  background: var(--autx-accent);
  color: #fff;
}

.autx-rzp-modal__btn--primary:hover {
  background: var(--autx-accent-hover);
}

.autx-rzp-modal__btn--ghost {
  background: #f1f5f9;
  color: var(--autx-text);
}
