:root {
  --bg: #edf0f4;
  --card: #ffffff;
  --title: #123157;
  --text: #4f5f75;
  --text-strong: #1f3552;
  --border: #dde3ea;
  --yellow-bg: #fff0b9;
  --yellow-border: #f0be35;
  --yellow-title: #7b3b11;
  --yellow-text: #72371b;
  --green-bg: #e7f6ec;
  --green-border: #c6e7d0;
  --green-text: #178348;
  --gray-box: #f4f6f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  padding: 18px;
}

.card {
  width: min(92vw, 520px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px 30px 32px;
  box-shadow: 0 14px 28px rgba(13, 27, 45, 0.1);
}

h1 {
  margin: 0 0 12px;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--title);
}

.subtitle {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}

.subtitle strong {
  color: var(--text-strong);
}

.referral-card {
  border: 2px solid var(--yellow-border);
  background: var(--yellow-bg);
  border-radius: 16px;
  padding: 16px 18px 14px;
  margin-bottom: 16px;
}

.referral-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.gift-icon {
  font-size: 24px;
  line-height: 1;
}

h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--yellow-title);
  font-weight: 800;
}

.referral-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--yellow-text);
}

.referral-text strong {
  font-size: 1em;
  line-height: inherit;
  font-weight: 800;
  white-space: nowrap;
}

.referral-divider {
  height: 1px;
  background: rgba(123, 60, 17, 0.2);
  margin: 12px 0 12px;
}

.referral-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.credit-label {
  font-size: 13px;
  font-style: italic;
  color: #93613d;
  font-weight: 600;
}

.credit-badge {
  background: #fff5df;
  color: #7a3d1b;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.info-note {
  margin: 0 0 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.info-icon {
  font-size: 18px;
  line-height: 1;
  color: #99a6b7;
  margin-top: 2px;
}

.info-note-text {
  display: block;
  flex: 1;
  font-size: 14px;
  line-height: 1.45;
  color: #66758a;
  word-break: normal;
  overflow-wrap: anywhere;
}

.info-note-text strong {
  color: var(--text-strong);
}

.status {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.status::before {
  content: "\2713";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  background: #cbedd5;
  color: #11793f;
}

.status.ok {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green-text);
}

.status.info {
  background: #e1f1fb;
  border: 1px solid #b5d8ee;
  color: #0f6b9a;
}

.status.info::before {
  content: "i";
  background: #cbe6f7;
  color: #0f6b9a;
}

.status.error {
  background: #fde7e7;
  border: 1px solid #f2c1c1;
  color: #9a1c1c;
}

.status.error::before {
  content: "!";
  background: #f8cbcb;
  color: #9a1c1c;
}

.safe-note {
  margin: 0;
  border: 1px solid #e4e9ef;
  border-radius: 14px;
  background: var(--gray-box);
  color: #677587;
  text-align: center;
  padding: 18px 16px;
  font-size: 16px;
  line-height: 1.55;
}

.safe-note strong {
  color: #263c56;
}

@media (max-width: 560px) {
  .card {
    width: 100%;
    border-radius: 18px;
    padding: 22px 18px 22px;
  }

  h1 {
    font-size: 32px;
  }

  .subtitle {
    font-size: 15px;
  }

  .referral-text {
    font-size: 16px;
  }

  .referral-text strong {
    font-size: 1em;
  }

  .referral-footer {
    flex-wrap: wrap;
  }
}
