* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg,#0d1b3e 0%,#1656d1 55%,#0ca678 130%);
}
.shop-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.shop-shell {
  display: flex; align-items: stretch; width: 100%; max-width: 980px;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
}

/* ── Left: buy panel ──
   Compacted (2-col QB grid + tighter spacing throughout) so all 7 question
   banks + the total + the 3 form fields + the pay button are visible on one
   screen at a glance, without scrolling. */
.shop-buy {
  flex: 1 1 58%; padding: 22px 28px; background: linear-gradient(165deg,#f0f6ff 0%,#ffffff 65%);
}
.shop-buy h1 { font-size: 18px; color: #111827; margin: 0 0 3px; font-weight: 800; }
.shop-sub { color: #6b7280; font-size: 12px; margin: 0 0 10px; }

.qb-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.qb-item {
  display: flex; align-items: center; gap: 7px; background: #f9fafb;
  border: 1.5px solid #e5e7eb; border-radius: 8px; padding: 7px 9px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.qb-item:hover { border-color: #93c5fd; }
.qb-item.checked { border-color: #1656d1; background: #eef4ff; }
.qb-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: #1656d1; flex: 0 0 auto; cursor: pointer; }
.qb-item-text { flex: 1 1 auto; min-width: 0; }
.qb-item-name { display: block; font-size: 11.5px; font-weight: 700; color: #1f2937; line-height: 1.25; }
.qb-item-group { display: block; font-size: 9.5px; color: #9ca3af; margin-top: 1px; }
.qb-item-price { font-size: 11.5px; font-weight: 800; color: #1656d1; flex: 0 0 auto; }

.shop-total {
  display: flex; align-items: center; justify-content: space-between;
  background: #111827; color: #fff; border-radius: 9px; padding: 8px 14px; margin-bottom: 10px;
}
.shop-total span { font-size: 11px; color: #cbd5e1; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.shop-total b { font-size: 17px; font-weight: 800; }

.shop-buy input[type="text"], .shop-buy input[type="email"], .shop-buy input[type="tel"] {
  width: 100%; padding: 8px 12px; border: 1.5px solid #d1d5db; border-radius: 9px;
  font-size: 13px; outline: none; box-sizing: border-box; margin-bottom: 6px; transition: border-color .15s;
}
.shop-buy input:focus { border-color: #1656d1; }
.shop-buy button#buy-submit {
  width: 100%; padding: 10px 14px; border: none; border-radius: 9px;
  background: #0ca678; color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; margin-top: 2px; transition: background .15s;
}
.shop-buy button#buy-submit:hover { background: #099268; }
.shop-buy button#buy-submit:disabled { opacity: .6; cursor: not-allowed; }

.shop-error { color: #e03131; font-size: 11.5px; margin-top: 6px; min-height: 14px; font-weight: 600; }
.shop-secure { margin-top: 8px; font-size: 10.5px; color: #9ca3af; text-align: center; }

@media (max-width: 860px) {
  .qb-list { grid-template-columns: 1fr; }
}

.shop-success {
  margin-top: 10px; background: #f0fdf7; border: 1.5px solid #b8f0d8;
  border-radius: 12px; padding: 18px; animation: shop-in .3s ease;
}
.shop-success-title { font-weight: 800; color: #087f5b; margin-bottom: 4px; font-size: 16px; }
.shop-success p { font-size: 12.5px; color: #374151; margin: 4px 0 12px; }
.shop-cred-row {
  display: flex; justify-content: space-between; align-items: center; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 8px; padding: 9px 13px; margin-bottom: 6px; font-size: 13.5px;
}
.shop-cred-row span { color: #6b7280; }
.shop-cred-row b { color: #111827; letter-spacing: .02em; font-family: monospace; font-size: 14px; }
.shop-cred-warn { font-size: 11px; color: #e8590c; font-weight: 700; margin-bottom: 12px; }
.shop-success button {
  width: 100%; padding: 12px 12px; border: none; border-radius: 9px;
  background: #1656d1; color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer;
}
@keyframes shop-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Divider ── */
.shop-divider {
  flex: 0 0 auto; width: 1px; background: #e5e7eb; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.shop-divider span {
  position: absolute; background: #fff; border: 1px solid #e5e7eb; color: #9ca3af;
  font-size: 10.5px; font-weight: 800; padding: 4px 8px; border-radius: 20px;
}

/* ── Right: login panel ── */
.shop-login {
  flex: 1 1 38%; padding: 34px 30px; display: flex; flex-direction: column;
  justify-content: center; text-align: center;
}
.shop-login .lg-icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 12px;
  background: #eef2ff; display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.shop-login h2 { font-size: 17px; color: #111827; margin: 0 0 4px; font-weight: 800; }
.shop-login input[type="text"], .shop-login input[type="password"] {
  width: 100%; padding: 12px 14px; border: 1.5px solid #d1d5db; border-radius: 10px;
  font-size: 15px; outline: none; box-sizing: border-box; margin-bottom: 10px; transition: border-color .15s;
}
.shop-login input:focus { border-color: #1656d1; }
.shop-login button#login-submit {
  width: 100%; padding: 12px 14px; border: none; border-radius: 10px;
  background: #1656d1; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.shop-login button#login-submit:hover { background: #1245ac; }
.shop-login button#login-submit:disabled { opacity: .6; cursor: not-allowed; }
.shop-footer { margin-top: 18px; font-size: 11.5px; color: #9ca3af; }

@media (max-width: 860px) {
  .shop-shell { flex-direction: column; max-width: 460px; }
  .shop-divider { width: 100%; height: 1px; }
  .shop-login { border-top: 1px solid #e5e7eb; }
}
