/* FULL REPLACEMENT — bb-loyalty.css */
/* Bowl & Brew Loyalty – Mobile App Styles */

/* Base layout */
.bb-wrap{
  max-width:520px;
  margin:0 auto;
  padding:16px;
}

.bb-card{
  background:#fff;
  border-radius:16px;
  padding:16px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  margin-bottom:14px;
}

.bb-subcard{
  background:#fafafa;
  border-radius:14px;
  padding:14px;
  margin:12px 0;
  border:1px solid rgba(0,0,0,.06);
}

.bb-center{
  text-align:center;
}

.bb-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.bb-user{
  display:flex;
  align-items:center;
  gap:12px;
}

.bb-name{
  font-weight:700;
}

.bb-muted{
  opacity:.7;
  font-size:13px;
}

/* Grids */
.bb-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.bb-grid-2{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

@media(min-width:520px){
  .bb-grid-2{
    grid-template-columns:1fr 1fr;
  }
}

/* Inputs */
label{
  display:block;
  margin-top:10px;
  margin-bottom:6px;
  font-weight:600;
}

input[type=text],
input[type=email],
input[type=password],
input[type=file]{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.15);
  box-sizing:border-box;
}

/* Alerts */
.bb-alert{
  background:#f3f7ff;
  border:1px solid rgba(17,76,155,.2);
  padding:10px;
  border-radius:12px;
  margin:10px 0;
  text-align:center;
}

/* Big numbers */
.bb-big{
  font-size:22px;
  font-weight:800;
  margin:6px 0;
}

/* Navigation buttons */
.bb-nav{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

/* Ledger */
.bb-ledger{
  margin-top:10px;
}

.bb-ledger-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid rgba(0,0,0,.06);
  padding:10px 0;
}

.bb-ledger-amt{
  font-weight:800;
}

/* Modal */
.bb-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:9999;
}

.bb-modal-inner{
  background:#fff;
  border-radius:16px;
  max-width:420px;
  width:100%;
  padding:18px;
  text-align:center;
}

/* QR */
.bb-qr{
  border-radius:12px;
  background:#fff;
  padding:8px;
  border:1px solid rgba(0,0,0,.08);
}

/* =========================
   AUTH / LOGIN SCREEN
   ========================= */

.bb-auth-card{
  background:#fff;
}

.bb-auth-header{
  text-align:center;
  margin-bottom:14px;
}

/* LOGO SIZE — EXACTLY 150px (theme-proof) */
.bb-wrap .bb-auth-header img,
.bb-wrap img.bb-auth-logo{
  width:150px !important;
  max-width:150px !important;
  height:auto !important;
  display:block !important;
  margin:0 auto !important;
}

.bb-auth{
  display:block;
  width:100%;
}

.bb-auth-login{
  width:100%;
}

.bb-auth-register{
  width:100%;
}

/* Login + Register buttons row */
.bb-auth-actions{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  margin-top:10px;
  padding-bottom:2px;
  flex-wrap:nowrap;
}

.bb-auth-actions .bb-btn{
  flex:1 1 0;
  width:100%;
  max-width:none;
  white-space:nowrap;
}

/* Forgot password */
.bb-forgot{
  text-align:center;
  margin-top:10px;
}

/* =========================
   BUTTONS (BRAND STYLING)
   ========================= */

.bb-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:3px solid #20BDC5;
  border-radius:19px;
  padding:12px 14px;
  background:#fa428d;
  color:#ffffff;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
  text-align:center;
  box-sizing:border-box;
  min-height:50px;
  line-height:1.2;
}

.bb-btn:hover,
.bb-btn:focus{
  color:#ffffff;
  opacity:0.95;
  text-decoration:none;
}

/* Ghost / Back buttons */
.bb-btn-ghost{
  background:transparent;
  color:#fa428d;
  border:3px solid #20BDC5;
}

.bb-btn-ghost:hover,
.bb-btn-ghost:focus,
.bb-btn-ghost:active{
  color:#20BDC5 !important;
  text-decoration:none !important;
  opacity:1 !important;
}

/* Inline forms */
.bb-inline{
  display:flex;
  gap:10px;
  align-items:end;
  flex-wrap:wrap;
}

/* =========================
   PROFILE: ACCOUNT BUTTONS ROW
   (Logout + Delete side-by-side)
   ========================= */

.bb-account-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:10px;
}

.bb-account-actions form{
  margin:0 !important;
}

.bb-account-actions button{
  width:100%;
}

/* On very small screens, stack */
@media(max-width:360px){
  .bb-account-actions{
    grid-template-columns:1fr;
  }

  .bb-auth-actions{
    flex-direction:column;
  }

  .bb-auth-actions .bb-btn{
    width:100%;
  }
}

/* Credit and Visits titles */
.bb-grid-2 .bb-card h4{
  font-size:15px;
}