body.tier-calculator-page {
  background: #111827;
  color: #d1d5db;
}

/* ===== Main calculator ===== */

.tier-calc-main {
  max-width: 1200px;
}

.tier-calc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}

.tier-calc-hero h1 {
  margin: 0 0 10px;
  color: #f9fafb;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
}

.tier-calc-hero p {
  max-width: 760px;
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.tier-calc-rules-card,
.tier-calc-panel,
.tier-calc-result,
.tier-calc-info-card {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.tier-calc-rules-card {
  padding: 18px;
}

.tier-calc-rules-title {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tier-calc-rules-value {
  margin-top: 8px;
  color: #dbeafe;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.tier-calc-rules-caption {
  margin-top: 10px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.tier-calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.tier-calc-panel {
  padding: 18px;
}

.tier-calc-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.tier-calc-panel-header h2 {
  margin: 0;
  color: #f3f4f6;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.tier-calc-panel-header span {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tier-calc-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tier-calc-member label {
  display: block;
  margin-bottom: 7px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 900;
}

.tier-calc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
}

.tier-calc-select,
.tier-calc-input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: #e5e7eb;
  background: #111827;
  border: 1px solid #4b5563;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  outline: none;
}

.tier-calc-select:focus,
.tier-calc-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18);
}

.tier-calc-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tier-calc-side-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 2px;
}

.tier-calc-mini-card {
  padding: 10px;
  background: rgba(17, 24, 39, 0.54);
  border: 1px solid rgba(75, 85, 99, 0.8);
  border-radius: 12px;
}

.tier-calc-mini-label {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

.tier-calc-mini-value {
  margin-top: 6px;
  color: #f9fafb;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

/* ===== Calculate button ===== */

.tier-calc-submit-btn {
  width: 100%;
  max-width: 360px;
  min-height: 46px;
  margin: 4px auto 18px;
  padding: 12px 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  background: #7c3aed;
  border: 1px solid rgba(167, 139, 250, 0.55);
  border-radius: 12px;

  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;

  cursor: pointer;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.24);

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.tier-calc-submit-btn:hover {
  background: #6d28d9;
  border-color: rgba(196, 181, 253, 0.75);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.32);
}

/* ===== Result ===== */

.tier-calc-result {
  padding: 18px;
  margin-bottom: 18px;
}

.tier-calc-result-title {
  margin-bottom: 12px;
  color: #f9fafb;
  font-size: 20px;
  font-weight: 900;
}

.tier-calc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 12px;
}

.tier-calc-result-card {
  padding: 14px;
  background: rgba(17, 24, 39, 0.48);
  border: 1px solid rgba(75, 85, 99, 0.8);
  border-radius: 14px;
}

.tier-calc-result-label {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tier-calc-result-value {
  margin-top: 8px;
  color: #dbeafe;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.tier-calc-result-note {
  margin-top: 8px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

/* ===== Info cards ===== */

.tier-calc-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tier-calc-info-card {
  padding: 16px;
}

.tier-calc-info-card h3 {
  margin: 0 0 8px;
  color: #f3f4f6;
  font-size: 16px;
  font-weight: 900;
}

.tier-calc-info-card p {
  margin: 0;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

/* ===== Mobile ===== */

@media (max-width: 768px) {
  .tier-calc-main {
    width: 100%;
    max-width: 100%;
    padding: 16px 12px !important;
  }

  .tier-calc-hero,
  .tier-calc-layout,
  .tier-calc-result-grid,
  .tier-calc-info-grid {
    grid-template-columns: 1fr;
  }

  .tier-calc-hero h1 {
    font-size: 24px;
  }

  .tier-calc-panel,
  .tier-calc-result,
  .tier-calc-info-card,
  .tier-calc-rules-card {
    border-radius: 14px;
  }

  .tier-calc-row {
    grid-template-columns: minmax(0, 1fr) 90px;
  }

  .tier-calc-side-summary {
    grid-template-columns: 1fr 1fr;
  }

  .tier-calc-mini-card {
    padding: 8px;
  }

  .tier-calc-mini-value {
    font-size: 16px;
  }

  .tier-calc-submit-btn {
    max-width: 100%;
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .tier-calc-side-summary {
    grid-template-columns: 1fr;
  }

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