@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap");
﻿/*
  Re:Carp UI theme (Variant 1): light, clean, green accent.
  Palette is aligned with https://www.recarp.ru/ (brand green ~ #04663d).
*/

:root{
  --brand-700:#045e35;
  --brand-600:#04663d;
  --brand-500:#046f45;

  --text-900:#141414;
  --text-700:#2d2d2d;
  --muted:#6b7280;

  --bg:#f6f7f8;
  --card:#ffffff;
  --border:#e5e7eb;
  --shadow: 0 8px 26px rgba(20, 20, 20, 0.06);
  --shadow-sm: 0 2px 8px rgba(20, 20, 20, 0.05);

  --danger:#dc2626;
  --warning:#f59e0b;
  --info:#2563eb;

  --vm-green:#23673e;
  --vm-orange:#f7a409;
  --vm-yellow:#fbd11d;
  --vm-dark:#263135;
  --vm-leaf:#179146;
  --vm-bg:#f4f4f4;
  --vm-blue:#b9e2fb;
  --vm-card:#ffffff;
  --vm-tab:#ededed;
}

*{ box-sizing:border-box; }

body {
  font-family: Montserrat, "Segoe UI", Tahoma, sans-serif;
  margin:0;
  background:var(--bg);
  color:var(--text-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Auth (login) pages */
body.auth .container{
  max-width: 520px;
  min-height: 100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
body.auth h1{ text-align:center; margin-bottom:16px; }
body.auth .card{ margin-top:0; }

/* Unified auth shell for user/point PWA login */
body.auth.pwa-auth-zone{
  background:var(--vm-yellow) !important;
}
body.auth.pwa-auth-zone .container{
  max-width:560px;
  min-height:100vh;
  background:transparent !important;
}
.pwa-auth{
  width:100%;
  max-width:460px;
  margin:0 auto;
  display:grid;
  gap:18px;
}
.pwa-auth__topbar{
  display:none !important;
}
.pwa-auth__logo{
  height:132px;
  width:auto;
  object-fit:contain;
  display:block;
}
.pwa-auth__logo-hero{
  margin:0 auto;
}
.pwa-auth__card{
  border-radius:24px;
  border:1px solid #e8e8e8;
  background:#fff;
  box-shadow:0 8px 20px rgba(20,20,20,.05);
  padding:16px;
}
.pwa-auth__title{
  margin:2px 0 4px;
  font-size:48px;
  line-height:1;
  text-align:center;
  letter-spacing:-.02em;
}
.pwa-auth__subtitle{
  text-align:center;
  color:#6a6a6a;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:8px;
}
.pwa-auth__card .btn{
  width:100%;
}
body.auth.pwa-auth-zone .pwa-auth__card .btn-primary{
  background:var(--vm-green) !important;
  border-color:var(--vm-green) !important;
  color:#fff !important;
}
body.auth.pwa-auth-zone .pwa-auth__card .btn-primary:hover{
  background:var(--brand-700) !important;
  border-color:var(--brand-700) !important;
}
.pwa-auth__row-two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
@media (max-width: 420px){
  .pwa-auth{
    max-width:420px;
  }
  .pwa-auth__logo{
    height:104px;
  }
  .pwa-auth__title{
    font-size:40px;
  }
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px;
}

/* Mobile app shell for USER zone */
.container-mobile{
  max-width: 440px;
  padding: 0 0 108px;
}
.user-zone .topbar{ display:none; }
.pwa-zone{
  background:var(--vm-bg);
}
.pwa-zone .container-mobile{
  background:var(--vm-bg);
}

.pwa-topbar{
  margin:0 -16px;
  height:110px;
  background:var(--vm-yellow);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 20px;
  border-radius:0;
}
.pwa-topbar__logo{
  width:auto;
  height:52px;
  object-fit:contain;
  display:block;
}

.bottomnav{
  position: fixed;
  left: 50%;
  transform:translateX(-50%);
  width:min(440px, 100%);
  bottom: 0;
  z-index: 80;
  display: grid;
  grid-auto-flow:column;
  grid-auto-columns:1fr;
  gap: 2px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.98);
  border-top: 1px solid #ececec;
  box-shadow:0 -8px 30px rgba(13,25,19,.08);
}
.bottomnav a{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:8px 6px 9px;
  border-radius: 26px;
  text-decoration:none;
  color: #222;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight:500;
  line-height: 1;
}
.bottomnav a .ico{
  font-size:18px;
  line-height:1;
  color:#7d7d7d;
}
.bottomnav a.active{
  color:#1f3f2f;
  background: var(--vm-tab);
  border-color: #e3e3e3;
}
.bottomnav a.active .ico{
  color:var(--vm-green);
}

.card {
  background:var(--card);
  border:1px solid var(--border);
  border-radius: 22px;
  padding:16px;
  margin:12px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text-900);
  text-decoration:none;
  cursor:pointer;
  transition: transform .05s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}
.btn:hover{ border-color:#d1d5db; box-shadow: 0 6px 18px rgba(20,20,20,.06); }
.btn:active{ transform: translateY(1px); }

.btn-primary {
  background:var(--brand-600);
  border-color:var(--brand-600);
  color:#fff;
}
.btn-primary:hover{ background:var(--brand-700); border-color:var(--brand-700); }

.btn-secondary{
  background:#fff;
  border-color:rgba(4, 102, 61, .35);
  color:var(--brand-700);
}
.btn-secondary:hover{ border-color:rgba(4, 102, 61, .6); }

.btn-danger{
  background:var(--danger);
  color:#fff;
  border-color:var(--danger);
}
.btn-danger:hover{ filter:brightness(.95); }

.btn-sm { padding:7px 10px; font-size:13px; border-radius:10px; }

input, select, textarea {
  width:100%;
  padding:10px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  color:var(--text-900);
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(4, 102, 61, .55);
  box-shadow: 0 0 0 4px rgba(4, 102, 61, .12);
}

label { display:block; margin:12px 0 6px; font-size:13px; color:var(--text-700); }
h1 { font-size:22px; margin:6px 0 12px; letter-spacing:-0.01em; }
h2 { font-size:18px; margin:6px 0 10px; letter-spacing:-0.01em; }
.muted { color:var(--muted); font-size:13px; }

.pwa-zone h1{
  font-size:58px;
  line-height:1;
  margin:18px 0 14px;
  font-weight:800;
  letter-spacing:-.02em;
}
.pwa-zone h2{
  font-size:37px;
  line-height:1.08;
  font-weight:700;
}
.pwa-zone .muted{
  color:#6a6a6a;
}
.user-zone .btn-primary,
.point-zone .btn-primary{
  background:var(--vm-orange);
  border-color:var(--vm-orange);
  color:#fff;
}
.user-zone .btn-primary:hover,
.point-zone .btn-primary:hover{
  filter:brightness(.97);
}
.user-zone .btn-secondary,
.point-zone .btn-secondary{
  border-color:#dfdfdf;
  color:#1a1a1a;
}
.user-zone .btn-get-coffee{
  width:100%;
  min-height:64px;
  border-radius:14px;
  font-size:33px;
  font-weight:700;
  background:var(--vm-leaf);
  border-color:var(--vm-leaf);
  color:#fff;
}
.user-zone .btn-get-coffee:hover{
  filter:brightness(.97);
}
@media (max-width: 420px){
  .user-zone .btn-get-coffee{
    min-height:58px;
    font-size:28px;
  }
}
.vm-section-title{
  margin:18px 0 10px;
  font-size:23px;
  letter-spacing:-.01em;
}
.vm-banner{
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(122deg, #4c382f 0%, #8f5b2d 40%, #2d221c 100%);
  color:#fff;
  min-height:188px;
  position:relative;
  padding:14px 16px;
}
.vm-banner__title{
  font-size:29px;
  font-weight:800;
  line-height:1.05;
  text-transform:uppercase;
}
.vm-banner__subtitle{
  position:absolute;
  left:16px;
  right:16px;
  bottom:14px;
  font-size:12px;
  opacity:.95;
}
.vm-fest{
  background:var(--vm-blue);
  border-radius:24px;
  padding:16px 14px 14px;
  border:1px solid #a9d9f6;
}
.vm-fest__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.vm-fest__brand{
  font-size:27px;
  line-height:1;
  letter-spacing:.01em;
  font-weight:800;
  color:#f15f28;
}
.vm-fest__cta{
  background:#eaf4fc;
  border:1px solid #cbe0ef;
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
}
.vm-fest__cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.vm-fest-card{
  background:#fff;
  border-radius:18px;
  padding:12px;
  min-height:132px;
  border:1px solid #d8ecf8;
}
.vm-fest-card__time{
  margin-top:4px;
  font-size:12px;
  color:#6f6f6f;
}
.vm-fest-card__link{
  margin-top:12px;
  font-size:16px;
  font-weight:600;
}
.vm-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.vm-small-card{
  min-height:120px;
}
.points-fullscreen-wrap{
  margin:0 -16px;
}
.points-fullscreen-map{
  width:100%;
  height:calc(100vh - 110px - 82px - env(safe-area-inset-bottom));
  min-height:420px;
  background:#f2f2f2;
}
.points-map-card{
  padding:12px;
}
.points-toolbar{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  margin-bottom:10px;
}
.points-map{
  height:360px;
  min-height:300px;
  border-radius:14px;
  border:1px solid #e6e6e6;
  overflow:hidden;
}
.points-list{
  display:grid;
  gap:10px;
}
.points-item{
  border:1px solid #ececec;
  border-radius:14px;
  padding:12px;
  background:#fafafa;
}
.points-item__title{
  font-weight:800;
  font-size:16px;
}
.points-meta{
  margin-top:8px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
@media (max-width: 420px){
  .points-fullscreen-map{
    height:calc(100vh - 96px - 82px - env(safe-area-inset-bottom));
    min-height:360px;
  }
  .points-toolbar{
    grid-template-columns:1fr;
  }
  .points-map{
    height:300px;
    min-height:260px;
  }
}
.point-shell{
  display:grid;
  gap:12px;
}
.point-zone{
  background:#ffffff;
}
.point-zone .container-mobile{
  background:#ffffff;
}
.point-app .point-panel,
.point-app .point-hero{
  border-radius:22px;
  border:1px solid #e8e8e8;
  background:#fff;
  box-shadow:0 4px 16px rgba(0,0,0,.04);
  padding:16px;
}
.point-hero h1{
  margin:0;
  font-size:29px;
  line-height:1.05;
}
.point-sub{font-size:13px; margin-top:6px; color:#666;}
.point-grid{display:grid; gap:8px;}
.point-kpi{
  border-radius:16px;
  border:1px solid #efefef;
  background:#fafafa;
  padding:10px 12px;
}
.point-kpi .v{
  font-size:18px;
  margin-top:4px;
  font-weight:700;
}
.point-scanner{
  margin-top:10px;
  border:1px solid #efefef;
  border-radius:16px;
  overflow:hidden;
  background:#050505;
}
#qr-reader{
  width:100%;
  min-height:250px;
  background:#050505;
}
#qr-video{
  width:100%;
  max-height:320px;
  display:block;
  background:#050505;
}
.point-result{
  margin-top:12px;
  border-radius:16px;
  border:1px solid #ececec;
  background:#fbfbfb;
  padding:14px;
}
.point-result.allow{
  border-color:#f7b273;
  background:#fff9f1;
}
.point-result.deny{
  border-color:#efb0a8;
  background:#fff6f5;
}
.point-result-title{
  font-size:30px;
  line-height:1.03;
  font-weight:800;
}
.point-profile-list{display:grid; gap:8px; margin-top:10px;}
.point-profile-list .row-item{
  border:1px solid #ececec;
  border-radius:14px;
  background:#fafafa;
  padding:10px 12px;
}
.point-zone .point-panel{
  background:#ffffff;
  border:0;
  box-shadow:none;
  padding:10px 0 0;
}
.point-zone .point-panel > h2,
.point-zone .point-panel > .muted{
  text-align:center;
}
.point-zone .point-panel label{
  text-align:center;
}
.point-zone .point-panel .btn{
  width:100%;
}
/* Keep point history table inside viewport on small screens */
@media (max-width: 720px){
  .point-zone .point-panel{
    overflow:hidden;
  }
  .point-zone .table{
    width:100%;
    table-layout:fixed;
  }
  .point-zone .table th,
  .point-zone .table td{
    white-space:normal;
    word-break:break-word;
    overflow-wrap:anywhere;
    padding:8px 6px;
    font-size:12px;
  }
  .point-zone .table thead th{
    font-size:11px;
  }
}
@media (max-width: 420px){
  .pwa-zone h1{ font-size:48px; }
  .pwa-topbar{ height:96px; }
  .pwa-topbar__logo{ height:42px; }
}

.thumb{display:block; text-decoration:none; color:inherit;}
.thumb img{width:100%; height:120px; object-fit:cover; border-radius:12px; border:1px solid var(--border); background:var(--bg);}
.row { display:grid; grid-template-columns: 1fr; gap:12px; }
.row.two { grid-template-columns: 1fr; }
.row.three { grid-template-columns: 1fr; }
@media (min-width: 900px) { .row.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
table { width:100%; border-collapse: collapse; }
th, td { padding:10px; border-bottom:1px solid var(--border); text-align:left; font-size:14px; }
thead th{ font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }

.badge { display:inline-block; padding:4px 10px; border-radius:999px; border:1px solid var(--border); background:#f3f4f6; font-size:12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 10px;
  margin: -16px -16px 12px;
  background: rgba(246, 247, 248, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand { font-weight:800; letter-spacing:-0.02em; color:var(--brand-700); }
.userbox { display:flex; gap:10px; align-items:center; }
.nav { display:flex; gap:10px; flex-wrap:wrap; margin:8px 0 12px; }
.nav a {
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  text-decoration:none;
  color:var(--text-900);
  font-size:14px;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.nav a:hover{ border-color:#d1d5db; }
.nav a.active {
  border-color: rgba(4, 102, 61, .45);
  background: rgba(4, 102, 61, .08);
  color: var(--brand-700);
}
small { color:var(--muted); }

.notice{padding:10px 12px;border-radius:14px;border:1px solid var(--border);background:#fff;margin:10px 0;font-size:14px}
.notice-success{border-color:rgba(4, 102, 61, .25);background:rgba(4, 102, 61, .06)}
.notice-warn{border-color:rgba(245, 158, 11, .35);background:rgba(245, 158, 11, .08)}
.notice-error{border-color:rgba(220, 38, 38, .25);background:rgba(220, 38, 38, .06)}

/* Alpine: hide until ready */
[x-cloak]{display:none !important;}

/* Courier map */
.map{height:60vh;min-height:340px;border-radius:16px;overflow:hidden;border:1px solid var(--border);box-shadow: var(--shadow-sm)}

.btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}

/* Chat */
.chat-box{border:1px solid var(--border);background:#fff;border-radius:16px;padding:12px;max-height:340px;overflow:auto;box-shadow: var(--shadow-sm)}
.chat-msg{padding:10px 10px;border-radius:14px;background:#fff;border:1px solid var(--border);margin-bottom:10px}
.chat-meta{font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:10px;margin-bottom:6px}
.chat-time{color:#9ca3af}
.chat-text{white-space:pre-wrap;word-break:break-word;font-size:14px}
.chat-form{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px}
@media (min-width: 900px){.chat-form{grid-template-columns:1fr 160px;align-items:end}}

/* Push prompt */
.push-prompt{position:fixed;left:12px;right:12px;bottom:12px;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 10px 30px rgba(20,20,20,.14);padding:12px 12px;display:flex;gap:12px;align-items:center;justify-content:space-between;z-index:9999;}
.push-prompt__actions{display:flex;gap:8px;flex-wrap:wrap;}
.push-prompt__text{font-size:14px;line-height:1.2;}
@media (min-width: 900px){.push-prompt{max-width:720px;left:50%;transform:translateX(-50%);} }

/* Admin full-width shell */
.admin-shell{
  min-height:100vh;
  display:flex;
  width:100%;
  background:#dfe2e6;
}
.admin-sidebar{
  width:260px;
  flex:0 0 260px;
  background:linear-gradient(180deg, #0b2237 0%, #0a2033 100%);
  color:#d7e0ea;
  padding:0 0 18px;
  border-right:1px solid rgba(255,255,255,.08);
}
.admin-sidebar__brand{
  height:56px;
  display:flex;
  align-items:center;
  padding:0 16px;
  font-weight:700;
  font-size:29px;
  color:#fff;
  background:#2b3138;
}
.admin-sidebar__section{
  padding:16px 14px 8px;
  font-size:22px;
  color:#9bb0c5;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.admin-menu{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:0 10px;
}
.admin-menu a{
  text-decoration:none;
  color:#dbe7f3;
  padding:10px 12px;
  border-radius:10px;
  font-size:14px;
  border:1px solid transparent;
  display:flex;
  align-items:center;
  gap:10px;
}
.admin-menu a .ico{
  width:18px;
  text-align:center;
  opacity:.9;
  font-size:13px;
}
.admin-menu a:hover{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.08);
}
.admin-menu a.active{
  background:#1277e1;
  color:#fff;
  border-color:#1277e1;
  box-shadow:0 6px 18px rgba(12,95,185,.35);
}
.admin-main{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
}
.admin-topbar{
  height:56px;
  background:#2b3138;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.admin-topbar__title{
  font-weight:700;
  letter-spacing:.04em;
}
.admin-topbar .muted{ color:#c8d2dc; }
.admin-topbar .btn{
  background:#171c22;
  color:#fff;
  border-color:#2a323c;
}
.admin-topbar .btn:hover{
  border-color:#3c4b5d;
  background:#202834;
}
.admin-subnav{
  background:#e8eaed;
  padding:12px 16px 0;
}
.admin-subnav:empty{ display:none; }
.admin-subnav .nav-link{
  display:inline-flex;
  text-decoration:none;
  color:#233347;
  border:1px solid #c9d0d8;
  border-radius:999px;
  padding:8px 12px;
  margin:0 8px 10px 0;
  background:#fff;
  font-size:13px;
}
.admin-subnav .nav-link:hover{
  border-color:#98abc0;
}
.admin-content{
  flex:1;
  padding:16px;
}
.admin-content h1{
  margin:0 0 12px;
}
.admin-content .card{
  border-radius:10px;
  border-color:#454c55;
  background:#2f353d;
  color:#eef2f7;
  box-shadow:none;
}
.admin-content table thead th{
  background:#1f2328;
  color:#f2f4f7;
  text-transform:none;
  font-size:13px;
  letter-spacing:0;
}
.admin-content table tbody tr{
  background:#ffffff;
}
.admin-content table tbody tr:nth-child(even){
  background:#ffffff;
}
.admin-content table tbody td{
  color:#111827;
}
.admin-content table tbody td .muted,
.admin-content table tbody td small{
  color:#1f2937;
}
.admin-content .row .btn{
  white-space:nowrap;
}
.admin-page-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.admin-page-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.admin-toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:flex-end;
}
.admin-toolbar > div{
  min-width:160px;
}
.admin-content > .row[style*="justify-content:space-between"]{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
.admin-content .card{
  margin-top:12px !important;
  padding:14px;
}
.admin-content .card h1,
.admin-content .card h2,
.admin-content .card h3,
.admin-content .card h4,
.admin-content .card h5{
  color:#f4f7fb;
}
.admin-content .card h3{
  margin:0 0 10px;
  font-size:17px;
}
.admin-content form{
  margin:0;
}
.admin-content form.row{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:10px;
}
.admin-content form.row.two{
  display:grid;
  width:100%;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  align-items:end;
  gap:12px;
}
.admin-content form.row input,
.admin-content form.row select,
.admin-content form.row textarea{
  max-width:100%;
}
.admin-content form.row > div{
  min-width:180px;
}
.admin-content .table td form{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.admin-content table td input,
.admin-content table td select{
  min-width:120px;
}
.admin-content .btn{
  border-radius:10px;
}
.admin-content .muted{
  font-size:12px;
  color:#b8c1cc;
}
.admin-content .card input,
.admin-content .card select,
.admin-content .card textarea{
  background:#ffffff;
  border-color:#d1d5db;
  color:#111827;
}
.admin-content .card input::placeholder,
.admin-content .card textarea::placeholder{
  color:#6b7280;
}
.admin-content .card input:focus,
.admin-content .card select:focus,
.admin-content .card textarea:focus{
  border-color:#9ca3af;
  box-shadow:0 0 0 3px rgba(156, 163, 175, .2);
}
.admin-content pre{
  margin:0;
  white-space:pre-wrap;
  word-break:break-word;
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:12px;
}
.admin-content textarea{
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Admin buttons: blue by default, delete actions red */
.admin-shell .btn,
.admin-shell .btn.btn-primary{
  background:#2563eb !important;
  border-color:#2563eb !important;
  color:#ffffff !important;
}
.admin-shell .btn:hover,
.admin-shell .btn.btn-primary:hover{
  background:#1d4ed8 !important;
  border-color:#1d4ed8 !important;
}
.admin-shell .btn.btn-danger,
.admin-shell .btn.btn-danger:hover,
.admin-shell form[action*="/delete"] .btn,
.admin-shell form[action*="/delete"] .btn:hover{
  background:#dc2626 !important;
  border-color:#dc2626 !important;
  color:#ffffff !important;
}

/* Responsive tables */
@media (max-width: 720px){
  table{display:block; overflow-x:auto; -webkit-overflow-scrolling:touch;}
  th, td{white-space:nowrap;}
}

@media (max-width: 980px){
  .admin-shell{ flex-direction:column; }
  .admin-sidebar{
    width:100%;
    flex:initial;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .admin-menu{
    flex-direction:row;
    overflow-x:auto;
    padding-bottom:8px;
  }
  .admin-menu a{
    white-space:nowrap;
  }
}

.pwa-splash{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  background:
    radial-gradient(900px 420px at 50% -100px, #593d2d 0%, #1b1411 46%, #090909 100%);
  opacity:1;
  transition:opacity .38s ease, visibility .38s ease;
}
.pwa-splash.hide{
  opacity:0;
  visibility:hidden;
}
.pwa-splash__logo-wrap{
  width:94px;
  height:94px;
  border-radius:26px;
  background:linear-gradient(140deg, #9d6d4f, #36241a);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 16px 34px rgba(0,0,0,.38);
}
.pwa-splash__logo{
  width:66px;
  height:66px;
  object-fit:contain;
}
.pwa-splash__title{
  color:#fff;
  letter-spacing:.14em;
  font-weight:800;
  font-size:14px;
}


.vm-bonus-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
}
.vm-bonus-card__value{
  font-size:56px;
  font-weight:900;
  letter-spacing:-0.03em;
  line-height:1;
}

.vm-banner-image{
  min-height:0;
  padding:0;
  background:#ffffff;
  border-radius:24px;
}
.vm-banner-image__img{
  display:block;
  width:100%;
  height:auto;
  border-radius:24px;
  object-fit:cover;
}


body.user-zone,
body.point-zone {
  font-family: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
}

/* pwa-screen-lock: lock viewport for user/point apps */
body.user-zone,
body.point-zone {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}
body.user-zone .container-mobile,
body.point-zone .container-mobile {
  height: 100dvh;
  overflow: hidden;
}

/* pwa-smart-scroll: lock viewport, allow inner content scroll */
.pwa-zone .container-mobile {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.pwa-zone .pwa-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0 16px calc(98px + env(safe-area-inset-bottom));
}
.pwa-zone .pwa-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.pwa-zone .pwa-content .points-fullscreen-wrap {
  height: 100%;
  margin: 0 -16px;
}
.pwa-zone .pwa-content .points-fullscreen-map {
  height: 100%;
  min-height: 0;
}
@media (max-width: 420px) {
  .pwa-zone .pwa-content {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

/* vm-topbar-logo-big: yellow header + bigger logo */
.pwa-topbar{
  background: var(--vm-yellow) !important;
}
.pwa-topbar__logo{
  height: 72px;
}

/* vm-button-black-center: centered black CTA on user home */
.user-zone .btn-get-coffee{
  width: min(92%, 380px);
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 14px;
  font-size: 34px;
  font-weight: 700;
  background: #2f353d !important;
  border-color: #2f353d !important;
  color: #ffffff !important;
}
.user-zone .btn-get-coffee:hover,
.user-zone .btn-get-coffee.btn-secondary,
.user-zone .btn-get-coffee.btn-secondary:hover{
  background: #2f353d !important;
  border-color: #2f353d !important;
  color: #ffffff !important;
}
@media (max-width: 420px){
  .pwa-topbar__logo{ height: 64px; }
  .user-zone .btn-get-coffee{
    font-size: 28px;
    min-height: 58px;
  }
}

/* vm-fix-yellow-green: force yellow header and green CTA */
body.user-zone .pwa-topbar,
body.point-zone .pwa-topbar {
  background: #fbd11d !important;
}
body.user-zone .pwa-topbar__logo,
body.point-zone .pwa-topbar__logo {
  height: 78px !important;
}

.user-zone .btn-get-coffee,
.user-zone .btn-get-coffee:hover,
.user-zone .btn-get-coffee.btn-secondary,
.user-zone .btn-get-coffee.btn-secondary:hover {
  background: #179146 !important;
  border-color: #179146 !important;
  color: #ffffff !important;
}

/* points-page-lock: fixed page shell, movable map only */
body.user-zone.points-page .pwa-content {
  overflow: hidden;
  padding: 0 0 calc(82px + env(safe-area-inset-bottom));
}
body.user-zone.points-page .points-fullscreen-wrap {
  height: 100%;
  margin: 0;
}
body.user-zone.points-page .points-fullscreen-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #f2f2f2;
  touch-action: pan-x pan-y;
}

.push-prompt #pushEnableBtn{background:#1d7f49;border-color:#1d7f49;color:#fff;}
.push-prompt #pushEnableBtn:hover{background:#16653a;border-color:#16653a;}
