* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #f7d8e5;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  border-bottom: 1px solid rgba(235, 99, 149, 0.2);
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(6px);
}

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

.logo {
  color: #eb6395;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

main {
  padding: 28px 0 36px;
}

.payment-modal {
  display: flex;
  flex-direction: column;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(235, 99, 149, 0.3);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.payment-title {
  margin: 0;
  color: #eb6395;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.payment-intro {
  color: #cccccc;
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 15px;
}

.payment-intro strong {
  color: #eb6395;
}

.form-group {
  margin-bottom: 10px;
}

.form-label {
  color: #eb6395;
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  min-height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(235, 99, 149, 0.22);
  background: rgba(13, 11, 18, 0.8);
  color: #f7d8e5;
  padding: 0 16px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: #7d6772;
}

input:focus {
  outline: none;
  border-color: rgba(235, 99, 149, 0.7);
  box-shadow: 0 0 0 3px rgba(235, 99, 149, 0.12);
}

button {
  font-family: inherit;
}

.payment-cta-btn,
.upgrade-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(45deg, #eb6395, #ff8fab);
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-cta-btn:hover,
.upgrade-now-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(235, 99, 149, 0.4);
}

.payment-methods {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.payment-icon {
  font-size: 32px;
  color: #eb6395;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.payment-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.coins-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.coin-btn {
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(235, 99, 149, 0.25);
  background: rgba(13, 11, 18, 0.8);
  color: #f7d8e5;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.coin-btn.is-loading {
  pointer-events: none;
}

.coin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(235, 99, 149, 0.25);
  border-color: #eb6395;
}

.coin-btn img {
  width: 38px;
  height: 38px;
}

.coin-btn small {
  color: #ff93b2;
  font-size: 12px;
}

.coin-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.back-button {
  background: none;
  border: none;
  color: #eb6395;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.back-button:hover {
  opacity: 0.8;
}

.payment-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.payment-summary-hidden {
  display: none;
}

.summary-chip {
  color: #eb6395;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.summary-separator {
  color: rgba(235, 99, 149, 0.85);
  font-size: 20px;
}

.invoice-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.invoice-left,
.invoice-right {
  border: 1px solid rgba(235, 99, 149, 0.16);
  border-radius: 12px;
  background: rgba(13, 11, 18, 0.8);
  padding: 14px;
}

.invoice-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.label {
  margin: 0 0 6px;
  color: #cccccc;
  font-size: 14px;
}

.amount-big {
  margin: 0 0 8px;
  color: #eb6395;
  font-size: 30px;
  font-weight: 800;
}

.ltc-address {
  background: rgba(235, 99, 149, 0.2);
  border: 2px solid rgba(235, 99, 149, 0.5);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 14px;
  color: #ff8fab;
  word-break: break-all;
  margin-top: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(235, 99, 149, 0.3);
}

.fast-download-btn {
  background: none;
  border: 1px solid #eb6395;
  color: #eb6395;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  transition: all 0.2s ease;
  margin-top: 10px;
  font-size: 13px;
}

.fast-download-btn:hover {
  background: rgba(235, 99, 149, 0.1);
  transform: translateY(-1px);
}

.fast-download-btn.copied {
  border-color: #4caf50;
  color: #4caf50;
  background: rgba(76, 175, 80, 0.18);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 10px;
  color: #cccccc;
  font-size: 13px;
}

.progress-wrap {
  position: relative;
  width: 100%;
  height: 12px;
  background: #2a2a2a;
  border: none;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(45deg, #eb6395, #ff8fab);
  transition: width 0.35s ease;
}

.qr-box {
  min-height: 260px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box canvas {
  border-radius: 10px;
  border: 2px solid rgba(235, 99, 149, 0.45);
  box-shadow: 0 8px 24px rgba(235, 99, 149, 0.2);
}

.message {
  min-height: 20px;
  margin-top: 14px;
  color: #eb6395;
  font-size: 13px;
}

.change-crypto-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.delivery-details {
  margin-top: 12px;
  border-top: 1px dashed rgba(235, 99, 149, 0.3);
  padding-top: 12px;
}

.delivery-title {
  margin: 0 0 8px;
  color: #eb6395;
  font-size: 13px;
  font-weight: 700;
}

.delivery-list {
  margin: 0;
  padding-left: 20px;
  color: #cccccc;
  font-size: 13px;
  line-height: 1.6;
}

.delivery-note {
  margin: 8px 0 0;
  color: #a99aa1;
  font-size: 12px;
  line-height: 1.55;
}

.refund-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(235, 99, 149, 0.25);
  background: rgba(235, 99, 149, 0.08);
}

@media (max-width: 768px) {
  .header-content {
    min-height: 66px;
  }

  .logo {
    font-size: 28px;
  }

  .payment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .invoice-grid {
    grid-template-columns: 1fr;
  }

  .payment-summary {
    gap: 8px;
    flex-wrap: wrap;
  }

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

  .coin-btn {
    width: 100%;
    min-width: 0;
  }
}
