* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e7edf7;
  background: #0f1520;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  border-bottom: 1px solid #1f2a3b;
  background: #111a29;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
}

.logo {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.menu {
  display: flex;
  gap: 14px;
  align-items: center;
}

.menu a {
  color: #c7d4ea;
  text-decoration: none;
}

.hero {
  padding: 56px 0 30px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 36px;
}

.hero p {
  margin: 0 0 22px;
  color: #aebdd5;
  max-width: 800px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: #3069ff;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.2;
}

.btn-light {
  background: #24344f;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #2f476b;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 14px 0 34px;
}

.card {
  border: 1px solid #263449;
  border-radius: 14px;
  padding: 16px;
  background: #151f30;
}

.stack > * {
  margin-top: 0;
}

.price {
  font-size: 28px;
  font-weight: 700;
}

.footer {
  border-top: 1px solid #1f2a3b;
  margin-top: 24px;
  padding: 16px 0;
}

.footer-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #91a4c3;
  font-size: 14px;
}

.footer-row a {
  color: #b9cbeb;
}

.flash {
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 14px;
}

.flash-error {
  background: #48202a;
  border: 1px solid #7f3444;
}

.flash-ok {
  background: #1f3d2d;
  border: 1px solid #346b4c;
}

.input {
  width: 100%;
  background: #0f1725;
  color: #e7edf7;
  border: 1px solid #2b3f5d;
  border-radius: 8px;
  padding: 10px;
}

textarea.input {
  resize: vertical;
  min-height: 96px;
}

.purchase {
  background: #111a29;
  border: 1px solid #24344f;
  border-radius: 10px;
  padding: 10px;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #0c1220;
  border: 1px solid #2b3f5d;
  border-radius: 8px;
  padding: 10px;
}

.support-message {
  border: 1px solid #2b3f5d;
  border-radius: 10px;
  padding: 10px;
}

.support-message-out {
  background: #101b2a;
}

.support-message-in {
  background: #1a2531;
}

.support-message-time {
  color: #91a4c3;
  font-size: 12px;
  margin-bottom: 0;
}

button.support-fab {
  all: unset;
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #3069ff;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(25, 48, 108, 0.55);
  z-index: 50;
}

.support-widget {
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: 340px;
  max-width: calc(100vw - 24px);
  max-height: 70vh;
  border: 1px solid #2b3f5d;
  border-radius: 14px;
  background: #101a29;
  padding: 12px;
  box-shadow: 0 14px 32px rgba(5, 10, 20, 0.7);
  z-index: 60;
  display: none;
}

.support-widget-open {
  display: block;
}

.support-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

button.support-widget-close {
  all: unset;
  color: #c7d4ea;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  background: #1a273b;
}

button.support-widget-close:hover {
  background: #24344f;
}

.support-widget-body {
  overflow-y: auto;
  max-height: 36vh;
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.support-widget-form {
  margin-bottom: 8px;
}

.support-widget-meta {
  margin: 0;
  color: #91a4c3;
  font-size: 13px;
}

.toast-root {
  position: fixed;
  right: 16px;
  top: 16px;
  display: grid;
  gap: 10px;
  z-index: 200;
  max-width: min(420px, calc(100vw - 24px));
}

.toast {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(3, 8, 18, 0.55);
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-error {
  background: #48202a;
  border-color: #7f3444;
}

.toast-ok {
  background: #1f3d2d;
  border-color: #346b4c;
}

@media (max-width: 600px) {
  .support-widget {
    right: 12px;
    bottom: 80px;
    max-width: calc(100vw - 24px);
  }

  button.support-fab {
    right: 12px;
    bottom: 12px;
  }
}
