*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Golos Text', sans-serif;
  background: #f5f4f0;
  color: #1a1a1a;
  min-height: 100vh;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.header {
  padding: 24px 0 8px;
  text-align: center;
}
.header h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.3px; }
.header p { font-size: 13px; color: #666; margin-top: 4px; }

.card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.07);
  overflow: hidden;
  margin-top: 16px;
}

.upload-zone { padding: 20px; display: flex; flex-direction: column; gap: 12px; }

.drop-area {
  border: 1.5px dashed #ccc;
  border-radius: 12px;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.drop-area:hover { background: #f9f8f5; }
.drop-area input { display: none; }
.drop-area span { font-size: 13px; color: #888; text-align: center; }

.btn-primary {
  width: 100%;
  padding: 13px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

.loader {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.spinner {
  width: 36px; height: 36px;
  border: 2.5px solid #e0e0e0;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader p { font-size: 13px; color: #888; }

.filename-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
}

.result-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.result-header h2 { font-size: 16px; font-weight: 600; }

.consumer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  gap: 12px;
}
.consumer-row:last-child { border-bottom: none; }

.c-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.c-details { display: flex; flex-wrap: wrap; gap: 10px; }
.c-detail { font-size: 12px; color: #888; }
.c-detail strong { color: #1a1a1a; }

.c-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.c-total { font-size: 15px; font-weight: 600; }

.qr-btn {
  padding: 5px 10px;
  background: #f5f4f0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  transition: background 0.2s;
}
.qr-btn:hover { background: #ebebeb; }

.back-link {
  display: inline-block;
  padding: 20px 4px 8px;
  font-size: 13px;
  color: #888;
  text-decoration: none;
}
.back-link:hover { color: #1a1a1a; }

/* === index.html === */
.hero {
  padding: 32px 0 8px;
  text-align: center;
}
.hero h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.4px;
  line-height: 1.3;
}
.hero p {
  font-size: 13px;
  color: #888;
  margin-top: 6px;
  line-height: 1.6;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.feat {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feat-icon { font-size: 22px; }
.feat-title { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.feat-desc  { font-size: 12px; color: #999; line-height: 1.5; }

.cta { margin-top: 16px; }
.btn-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-main:hover { opacity: 0.85; }
.note {
  text-align: center;
  font-size: 12px;
  color: #bbb;
  margin-top: 10px;
}

/* === qr.html === */
.card-header {
  padding: 20px 20px 16px;
  border-bottom: 0.5px solid rgba(0,0,0,0.07);
}
.card-header h1 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.meta {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 0.5px solid rgba(0,0,0,0.07);
}
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.meta-label { font-size: 13px; color: #888; }
.meta-value  { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.amount-value { font-size: 22px; font-weight: 600; color: #1a1a1a; }

.qr-section {
  padding: 28px;
  display: flex;
  justify-content: center;
}
.qr-section img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  object-fit: contain;
}

.hint {
  text-align: center;
  font-size: 12px;
  color: #bbb;
  padding: 0 20px 20px;
  line-height: 1.5;
}