/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body.page {
  background: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

/* Container */
.container {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  text-align: center;
  animation: fadeIn 0.6s ease;
}

.title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.form__label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.form__input,
.form__select {
  width: 100%;
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form__input:focus,
.form__select:focus {
  border-color: #fff;
  outline: none;
  background: rgba(255,255,255,0.12);
}

.form__submit {
  padding: 1rem;
  border-radius: 12px;
  border: none;
  background: #fff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form__submit:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

/* QR Code */
.qrcode {
  margin: 1.5rem auto;
  display: flex;
  justify-content: center;
}

/* Merchant Info */
.merchant-info {
  margin: 1rem 0;
  text-align: left;
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: 12px;
}

.merchant-info__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.merchant-info__text {
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

/* Invoice Card */
.card-invoice {
  width: 100%;
  max-width: 420px;
  margin: 1.5rem auto 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  padding: 1rem;
  box-sizing: border-box;
}

/* Invoice Header */
.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}

.invoice-brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
}

.brand-info .brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.brand-info .brand-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

/* Invoice Meta */
.invoice-meta .meta-line {
  text-align: right;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}
.invoice-meta .meta-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

/* Invoice Body */
.invoice-body {
  padding-top: 0.9rem;
}

.line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-radius: 6px;
}

.label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  margin: 0.6rem 0;
  border-radius: 2px;
}

/* Total */
.total .label {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
}
.total .value {
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Invoice QR */
.invoice-qrcode {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.invoice-qrcode canvas {
  width: 120px !important;
  height: 120px !important;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.3rem;
  background: rgba(255,255,255,0.05);
}

/* Invoice Footer */
.invoice-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.9rem;
  gap: 0.6rem;
}

.footer-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}

.invoice-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-print {
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-print:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    max-width: 90%;
    padding: 1.5rem;
  }
  .title { font-size: 1.4rem; }
  .form__input, .form__select { font-size: 0.95rem; padding: 0.8rem; }
  .form__submit { padding: 0.9rem; }
}

@media (max-width: 480px) {
  .container {
    max-width: 95%;
    padding: 1.2rem;
  }
  .title { font-size: 1.2rem; }
}