/* style.css */
:root{
  --text:#111111;
  --muted:#6b6b6b;
  --stroke:#e5e5e5;

  --primary:#8B5A2B;
  --primary-dark:#6F451E;
  --primary-border: rgba(139,90,43,0.45);

  --shadow: 0 10px 30px rgba(0,0,0,.12);

  --glass-bg: rgba(255,255,255,.72);
  --glass-stroke: rgba(255,255,255,.70);
  --glass-blur: 18px;

  --bg-dim-top: rgba(0,0,0,0.65);
  --bg-dim-mid: rgba(0,0,0,0.35);
  --bg-dim-bot: rgba(0,0,0,0.18);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,Inter,Arial,sans-serif;
  -webkit-font-smoothing: antialiased;

  background-image: url("./bg-coffee.jpg"); /* при желании замени на фон под курение */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg-dim-top) 0%,
    var(--bg-dim-mid) 35%,
    var(--bg-dim-bot) 100%
  );
  z-index: -1;
}

.app{
  max-width:420px;
  margin:0 auto;
  padding:12px;
  min-height:100vh;
}

.glass{
  background:var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border:1px solid var(--glass-stroke);
  box-shadow:0 18px 45px rgba(0,0,0,0.24);
  border-radius:16px;
}

.topbar{
  padding:10px 12px 14px;
  margin-bottom:8px;
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.title{ display:flex; gap:12px; }
.logo{ font-size:28px; }

.h1{ font-size:18px; font-weight:800; }
.sub,.sub2{ font-size:13px; margin-top:2px; }
.muted{ color:var(--muted); }

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

.card{
  padding:14px;
}

.cardTitle{
  font-size:14px;
  color:rgba(0,0,0,.55);
  margin-bottom:10px;
}

.big{
  font-size:44px;
  font-weight:900;
  margin-bottom:6px;
}

button{ font-family:inherit; cursor:pointer; }

.primary{
  width:100%;
  background:var(--primary);
  color:#fff;
  border:none;
  border-radius:14px;
  padding:14px;
  font-size:16px;
}
.primary:active{ background:var(--primary-dark); }
.primary:disabled{ opacity:0.65; cursor:default; }

.secondary{
  background: rgba(255,255,255,0.90);
  border:1px solid var(--primary-border);
  border-radius:12px;
  padding:10px 14px;
  color:var(--primary-dark);
}

.inlineBtn{
  padding:10px 14px;
}

.iconbtn{
  background: rgba(255,255,255,0.9);
  border:1px solid var(--primary-border);
  border-radius:12px;
  padding:10px 12px;
  font-size:16px;
  color:var(--primary-dark);
}

.linkbtn{
  border:none;
  background:none;
  color:var(--primary);
  font-size:14px;
  font-weight:600;
  padding:6px 0;
}

.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.hintLine{
  margin-top:10px;
  font-size:12px;
}

.actionsRow{
  margin-top:10px;
}

/* === Подтверждение: текст + две равные кнопки на всю ширину === */
.miniRow{
  display:none;              /* по умолчанию скрыто */
  flex-direction:column;
  align-items:stretch;
  margin-top:10px;
  gap:10px;
}
.miniRow.visible{
  display:flex;              /* показывается через JS */
}

.confirmText{
  font-size:14px;
}

.confirmBtns{
  display:grid;
  grid-template-columns:1fr 1fr; /* две равные колонки */
  gap:10px;
  width:100%;
}

.confirmBtn{
  width:100%;
  text-align:center;
}

/* TOAST */
.toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  background:#111;
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  box-shadow:var(--shadow);
  max-width:calc(100% - 24px);
  z-index:9998;
}

/* SHEET */
.sheetBackdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.25);
  z-index:9990;
}

.sheet{
  position:fixed;
  left:0; right:0;
  bottom:0;
  background:#fff;
  border-top-left-radius:18px;
  border-top-right-radius:18px;
  border:1px solid var(--stroke);
  padding:12px 14px 18px;
  z-index:9991;
  max-width:420px;
  margin:0 auto;
}

.sheetHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom:10px;
}

.sheetTitle{
  font-weight:800;
}

.sheetBody .field{
  margin-top:8px;
}
.sheetBody label{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-bottom:6px;
}
.sheetBody input{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  font-size:16px;
}

.hint{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
}

.sheetButtons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}

/* MODAL */
.modalBackdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.25);
  z-index:9992;
}

.modal{
  position:fixed;
  left:50%;
  top:14%;
  transform:translateX(-50%);
  width:calc(100% - 24px);
  max-width:420px;
  background:#fff;
  border:1px solid var(--stroke);
  border-radius:18px;
  box-shadow:var(--shadow);
  z-index:9993;
}

.modalHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  border-bottom:1px solid var(--stroke);
}

.modalTitle{
  font-weight:800;
}
.modalBody{
  padding:14px;
}
.modalText{
  white-space:pre-line;
  font-size:13px;
}