/* License page */
.license-stack {
  display: grid;
  gap: 20px;
}

.license-section p + p,
.license-section p + .list-clean,
.license-section .list-clean + p {
  margin-top: 12px;
}

.license-section strong {
  color: var(--text);
  font-weight: 700;
}

.license-section a {
  color: var(--blue);
}

/* Support Center page */
.page-hero {
  padding-top: 54px;
  padding-bottom: 36px;
}

.page-hero-card {
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 18%, rgba(77, 163, 255, 0.12), transparent 24rem),
    rgba(43, 52, 66, 0.78);
  padding: 34px;
}

.page-title {
  margin: 10px 0 16px;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.page-intro {
  max-width: 820px;
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
}

.subpage-section {
  padding-top: 0;
}

.subpage-stack {
  display: grid;
  gap: 20px;
}

.subpage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.support-stack {
  display: grid;
  gap: 20px;
}

.support-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.content-card,
.form-card {
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: rgba(43, 52, 66, 0.72);
  padding: 24px;
}

.content-card h2,
.form-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.form-card h2 {
  margin-bottom: 12px;
}

.content-card p,
.form-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.content-card p + p {
  margin-top: 12px;
}

.list-clean {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
}

.list-clean li {
  margin: 0 0 10px;
  line-height: 1.65;
}

.list-clean li:last-child {
  margin-bottom: 0;
}

.support-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: rgba(27, 33, 43, 0.72);
  color: var(--text);
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field textarea {
  min-height: 160px;
  padding: 13px 14px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.form-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 13px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(77, 163, 255, 0.62);
  box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.10);
}

.file-field input[type="file"] {
  min-height: auto;
  padding: 13px 14px;
  cursor: pointer;
}

.file-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 1px solid rgba(77, 163, 255, 0.42);
  border-radius: 8px;
  background: rgba(77, 163, 255, 0.14);
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.form-help {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.support-message-card {
  border-color: rgba(77, 163, 255, 0.28);
}

.support-message-success {
  background:
    radial-gradient(circle at 10% 18%, rgba(114, 214, 163, 0.10), transparent 24rem),
    rgba(43, 52, 66, 0.72);
}

.support-message-warning {
  background:
    radial-gradient(circle at 10% 18%, rgba(210, 173, 130, 0.12), transparent 24rem),
    rgba(43, 52, 66, 0.72);
}

.support-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 18, 0.58);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.support-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.support-modal-dialog {
  position: relative;
  width: min(480px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 6%, rgba(210, 173, 130, 0.14), transparent 15rem),
    rgba(43, 52, 66, 0.96);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
  padding: 26px;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.18s ease;
}

.support-modal-overlay.is-visible .support-modal-dialog {
  transform: translateY(0) scale(1);
}

.support-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  background: rgba(27, 33, 43, 0.66);
  color: var(--text-soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.support-modal-close:hover {
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.support-modal-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 16px;
  font-size: 25px;
  font-weight: 900;
}

.support-modal-success .support-modal-icon {
  background: rgba(114, 214, 163, 0.14);
  color: var(--green);
  box-shadow: 0 0 0 1px rgba(114, 214, 163, 0.18) inset;
}

.support-modal-error .support-modal-icon,
.support-modal-warning .support-modal-icon {
  background: rgba(210, 173, 130, 0.14);
  color: var(--gold);
  box-shadow: 0 0 0 1px rgba(210, 173, 130, 0.20) inset;
}

.support-modal-title {
  margin: 0 34px 10px 0;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.support-modal-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}

.support-modal-reason {
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 14px;
  background: rgba(27, 33, 43, 0.60);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.support-modal-reason strong {
  color: var(--text);
}

.support-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.support-modal-actions .btn {
  min-width: 118px;
}

body.support-modal-open {
  overflow: hidden;
}


@media (max-width: 1080px) {
  .support-info-grid,
  .subpage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .page-hero-card,
  .content-card,
  .form-card {
    padding: 22px;
  }

  .page-intro {
    font-size: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    justify-content: stretch;
  }

  .support-form .btn {
    width: 100%;
  }
}
