body {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.coffee-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.coffee-title {
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #8B4513;
    margin: 10px 0;
}

.loyalty-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.progress {
    height: 25px;
    border-radius: 12px;
    background: #f0f0f0;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #8B4513, #D2691E);
    transition: width 0.5s ease;
}

.stat-item h3 {
    color: #8B4513;
    margin: 0;
}

.btn-scan {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 1.2em;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
}

.btn-scan:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.btn-earn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
}

.btn-spend {
    background: #ffc107;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
}

.qr-code {
    width: 200px;
    height: 200px;
    border: 10px solid white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hidden {
    display: none;
}

.customer-info {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.coffee-cup {
    font-size: 3em;
    display: inline-block;
}

.steam {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
}
.btn-accent { background:#6b5cff; color:#fff; border:none; border-radius:12px; padding:12px 16px; font-weight:700; }
.modal { position:fixed; inset:0; display:grid; place-items:center; background:rgba(0,0,0,.4); z-index:9999; }
.modal-card { width:min(420px, 92vw); background:#fff; color:#111; border-radius:16px; padding:16px; }
.chips { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.chip { padding:8px 12px; border-radius:999px; border:1px solid #e5e7eb; background:#f7f7fb; }
.chip--active { background:#111; color:#fff; border-color:#111; }
.modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:12px; }


/* метрики-полоски */
.bars { margin-top: 10px; display: grid; gap: 10px; }
.bar-row { display:grid; grid-template-columns: 110px 1fr max-content; align-items:center; gap:12px; }
.bar-row .name { font-weight:600; color:#111; }
.bar {
  height: 12px; background: #eef0f3; border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}
.bar > i {
  display:block; height:100%;
  background: linear-gradient(90deg,#8c5b3a,#c28755);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.45);
}
.bar-value { font-weight:800; color:#111; min-width:2ch; text-align:right; }
.badge { background:#111; color:#fff; border-radius:999px; padding:2px 8px; font-weight:700; }
@media (prefers-color-scheme: dark) {
  .bar { background:#1f2937; box-shadow: inset 0 0 0 1px #374151; }
  .bar-row .name, .bar-value { color:#fff; }
  .badge { background:#fff; color:#111; }
}
.modal[hidden]{ display:none; }
.modal{
  position:fixed; inset:0; background:rgba(0,0,0,.5);
  display:grid; place-items:center; z-index:1000;
}
.modal-card{
  width:min(420px, 92vw);
  background:#fff; color:#111;
  border-radius:14px; padding:16px; box-shadow:0 12px 40px rgba(0,0,0,.25);
}
.chips{ display:flex; flex-wrap:wrap; gap:8px; margin:8px 0; }
.chip{
  border:1px solid #e5e7eb; background:#f8fafc; border-radius:999px;
  padding:8px 12px; font-weight:700; cursor:pointer;
}

