* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #0f172a;
  margin: 0;
  color: #e2e8f0;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.container {
  width: 100%;
  max-width: 460px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon svg {
  width: 28px;
  height: 28px;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #FFE699 0%, #D4AF37 45%, #AA7C11 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0px 2px 6px rgba(212, 175, 55, 0.4));
}

.brand-subtitle {
  font-size: 12px;
  color: #94a3b8;
}

.card {
  background: #111827;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid #1f2937;
}

.section {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.section.active {
  display: flex;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #f8fafc;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.form-input {
  background: #0b1220;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.form-input:focus {
  border-color: #22c55e;
}

.form-hint {
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}

.btn-primary {
  width: 100%;
  background: #22c55e;
  color: #0f172a;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  background: #1f2937;
  color: #e2e8f0;
  border: 1px solid #334155;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.login-error {
  min-height: 18px;
  font-size: 13px;
  color: #fca5a5;
}

.package-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package-card {
  background: #0b1220;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #1f2937;
}

.package-card.selected {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25);
}

.package-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.package-name {
  font-weight: 600;
  font-size: 15px;
  color: #f1f5f9;
}

.package-badges {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #1f2937;
  color: #cbd5e1;
}

.badge-primary {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.package-price {
  font-size: 18px;
  font-weight: 700;
  color: #22c55e;
  white-space: nowrap;
}

.divider {
  height: 1px;
  background: #1f2937;
  margin: 18px 0;
}

.qr-section {
  margin-top: 2px;
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qr-section img {
  width: 260px;
  height: 260px;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
}

.status {
  text-align: center;
  font-weight: 600;
  color: #e2e8f0;
}

.countdown {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

.btn-mock {
  width: 100%;
  background: #f59e0b;
  color: #0f172a;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

.btn-mock:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #1f2937;
  font-size: 14px;
}

.info-row span {
  color: #94a3b8;
}

.info-row strong {
  color: #f8fafc;
}

.credential-box {
  margin-top: 8px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.credential-header {
  font-weight: 700;
  margin-bottom: 10px;
  color: #4ade80;
}

.credential {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #1f2937;
}

.credential:last-child {
  border-bottom: none;
}

.credential span {
  color: #94a3b8;
  font-size: 13px;
}

.credential-value-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.credential strong {
  color: #f8fafc;
  font-size: 14px;
}

.btn-copy {
  background: #1f2937;
  color: #e2e8f0;
  border: 1px solid #334155;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}

.actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

.hidden {
  display: none !important;
}

textarea.form-input {
  resize: vertical;
}
