/* Службові сторінки: замовлення клієнта (order.html) та адмінка (admin.html).
   Без бібліотеки скла — проста «скляна» панель через backdrop-filter на фоні сторінки реєстрації */
* { box-sizing: border-box; margin: 0; }
.panel-page {
  min-height: 100vh;
  padding: 40px 16px;
  display: flex; justify-content: center; align-items: flex-start;
  font-family: 'Inter', system-ui, sans-serif;
  color: #fff;
  background: #0b2a8a url('signup-bg.jpg') center / cover fixed;
}
.panel {
  width: min(520px, 100%);
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,25,90,.5);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0,20,80,.35);
}
.panel.wide { width: min(900px, 100%); }
.brand { color: #fff; font-size: 14px; font-weight: 600; opacity: .85; text-decoration: none; }
.brand:hover { opacity: 1; }
.eyebrow { display: block; margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.panel-page h1 { margin-top: 6px; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.lead { margin-top: 10px; font-size: 15px; line-height: 1.5; opacity: .9; }
.items { list-style: none; padding: 0; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.panel > .items li {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06);
}
.items .lbl { font-size: 12px; font-weight: 600; opacity: .7; }
.items .val { grid-column: 1; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.panel > .items b { grid-column: 2; grid-row: 1 / span 2; font-weight: 800; white-space: nowrap; }
.items li.manual { border-style: dashed; border-color: rgba(255,255,255,.4); }
.total {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2);
  display: flex; justify-content: space-between; align-items: baseline;
}
.total b { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.note { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 14px; line-height: 1.45; }
.msg { margin-top: 12px; min-height: 20px; font-size: 14px; color: #ffe1e8; overflow-wrap: anywhere; }
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.1); color: #fff;
  font: 600 15px 'Inter', system-ui, sans-serif; cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.btn:hover, .btn:focus-visible { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.7); outline: none; box-shadow: 0 0 16px rgba(170,225,255,.35); }
.btn.primary { background: rgba(255,255,255,.22); }
.btn.danger:hover { background: rgba(255,90,120,.3); }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btn.tiny { height: 28px; padding: 0 10px; font-size: 12px; }
#pay { margin-top: 18px; width: 100%; height: 50px; font-size: 17px; }

.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.field input {
  height: 40px; padding: 0 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1);
  color: #fff; font: 400 15px 'Inter', system-ui, sans-serif; outline: none;
}
.field input:focus { border-color: rgba(255,255,255,.75); }
.login { margin-top: 18px; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.login .field { flex: 1; min-width: 220px; }

.toolbar { margin-top: 18px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font: 600 13px 'Inter', sans-serif; cursor: pointer; }
.chip[aria-pressed="true"] { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.7); }
.orders { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.order { padding: 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.order header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.order .num { font-size: 17px; }
.order .status { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.15); }
.order .status[data-status="pricing"] { background: rgba(255,200,80,.3); }
.order .status[data-status="paid"] { background: rgba(80,220,140,.3); }
.order .status[data-status="cancelled"] { background: rgba(255,90,120,.3); }
.order time { margin-left: auto; font-size: 12px; opacity: .7; }
.order .items { margin-top: 10px; gap: 4px; font-size: 14px; }
.order .items li.manual { font-weight: 700; }
.order .meta { margin-top: 10px; font-size: 13px; opacity: .9; overflow-wrap: anywhere; }
.order .meta a { color: #fff; }
.price-edit { margin-top: 12px; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.price-edit .field { width: 150px; }
.price-edit .field.grow { flex: 1; min-width: 200px; }
.actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.empty { opacity: .75; }

/* Демо-сторінка оплати (demo-pay.html) */
.demo-banner {
  padding: 8px 12px; border-radius: 12px;
  background: rgba(255,200,80,.25); border: 1px dashed rgba(255,220,140,.8);
  font-size: 13px; font-weight: 700; line-height: 1.4;
}
.demo-pay-page h1 { font-size: 36px; }
.pay-form { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-btn { width: 100%; height: 48px; font-size: 16px; text-decoration: none; }
.test-cards { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; opacity: .9; }
.test-cards .chip { height: auto; padding: 6px 12px; text-align: left; }
.step-title { font-size: 22px; font-weight: 800; }
.pay-result { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.result-icon {
  width: 64px; height: 64px; display: grid; place-items: center;
  border-radius: 50%; font-size: 30px; font-weight: 800;
  background: rgba(80,220,140,.3); border: 1px solid rgba(160,255,200,.8);
}
.pay-result.fail .result-icon { background: rgba(255,90,120,.3); border-color: rgba(255,160,180,.8); }
