/* ============================================================
   BrandBrahma AI Logo Generator — Frontend Styles
   Theme: Orange (#FF6B00) + Navy (#0D1B3E) + Roboto Condensed
   ============================================================ */

/* ── Google Fonts fallback (loaded via PHP wp_enqueue_style) ── */

/* ── CSS Variables ─────────────────────────────────────────── */
#bb-root {
  --bb-orange:      #FF6B00;
  --bb-orange-dk:   #E05A00;
  --bb-orange-lt:   #FF8A33;
  --bb-navy:        #0D1B3E;
  --bb-navy-md:     #1A2F5E;
  --bb-navy-lt:     #2D4A8A;
  --bb-white:       #FFFFFF;
  --bb-off-white:   #F5F7FA;
  --bb-border:      #DDE2EB;
  --bb-text:        #1A1E2A;
  --bb-text-muted:  #5A6580;
  --bb-input-bg:    #FFFFFF;
  --bb-input-text:  #1A1E2A;
  --bb-input-ph:    #8A96A8;
  --bb-radius:      10px;
  --bb-radius-lg:   16px;
  --bb-shadow:      0 4px 20px rgba(13, 27, 62, 0.10);
  --bb-shadow-lg:   0 8px 40px rgba(13, 27, 62, 0.16);
  --bb-font:        'Roboto Condensed', 'Roboto', Arial, sans-serif;
  --bb-font-body:   'Roboto', Arial, sans-serif;
  --bb-trans:       0.22s ease;
}

/* ── Reset scoped to plugin ────────────────────────────────── */
#bb-root *, #bb-root *::before, #bb-root *::after {
  box-sizing: border-box;
}
#bb-root {
  font-family: var(--bb-font);
  font-size: 16px;
  color: var(--bb-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ─────────────────────────────────────────────── */
#bb-root [hidden] { display: none !important; }

/* ── HERO ───────────────────────────────────────────────────── */
.bb-hero {
  background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-navy-md) 55%, var(--bb-navy-lt) 100%);
  color: var(--bb-white);
  position: relative;
  padding: 56px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.bb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,107,0,0.18) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(255,107,0,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.bb-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.bb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bb-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-orange-lt);
  background: rgba(255,107,0,0.15);
  border: 1px solid rgba(255,107,0,0.30);
  border-radius: 50px;
  padding: 6px 16px;
  margin-bottom: 20px;
}
.bb-dot {
  width: 8px;
  height: 8px;
  background: var(--bb-orange-lt);
  border-radius: 50%;
  display: inline-block;
  animation: bb-pulse 2s infinite;
}
@keyframes bb-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(1.4); }
}
.bb-h1 {
  font-family: var(--bb-font);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--bb-white);
}
.bb-h1-accent {
  display: block;
  color: var(--bb-orange-lt);
}
.bb-hero-desc {
  font-family: var(--bb-font-body);
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  max-width: 540px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.bb-hero-desc strong { color: var(--bb-white); }
.bb-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bb-pills li {
  font-family: var(--bb-font);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  padding: 5px 14px;
}
/* Wave divider */
.bb-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 56px;
  pointer-events: none;
}
.bb-wave svg { width:100%; height:100%; display:block; }

/* ── BODY ───────────────────────────────────────────────────── */
.bb-body {
  background: var(--bb-off-white);
  padding: 40px 20px 60px;
}

/* ── CARD ───────────────────────────────────────────────────── */
.bb-card {
  background: var(--bb-white);
  border-radius: var(--bb-radius-lg);
  box-shadow: var(--bb-shadow);
  border: 1px solid var(--bb-border);
  max-width: 800px;
  margin: 0 auto 28px;
  overflow: hidden;
}

/* ── FORM CARD ──────────────────────────────────────────────── */
.bb-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--bb-border);
  background: linear-gradient(180deg, rgba(13,27,62,0.03) 0%, transparent 100%);
}
.bb-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--bb-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--bb-navy);
  margin: 0;
}
.bb-card-title svg { color: var(--bb-orange); flex-shrink:0; }
.bb-free-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--bb-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bb-white);
  background: linear-gradient(135deg, var(--bb-orange), var(--bb-orange-dk));
  border-radius: 50px;
  padding: 5px 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

#bb-form {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── FIELDS ─────────────────────────────────────────────────── */
.bb-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bb-label {
  font-family: var(--bb-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--bb-navy);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.bb-label-hint {
  font-weight: 400;
  text-transform: none;
  color: var(--bb-text-muted);
  letter-spacing: 0;
}
.bb-req { color: var(--bb-orange); margin-left: 1px; }

/* !! KEY FIX: Fully visible inputs with strong contrast !! */
.bb-input {
  width: 100%;
  padding: 11px 15px;
  font-family: var(--bb-font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--bb-input-text) !important; /* FORCE dark text */
  background: var(--bb-input-bg) !important;
  border: 1.5px solid var(--bb-border);
  border-radius: var(--bb-radius);
  outline: none;
  transition: border-color var(--bb-trans), box-shadow var(--bb-trans);
  appearance: none;
  -webkit-appearance: none;
}
.bb-input::placeholder {
  color: var(--bb-input-ph) !important;
  opacity: 1;
}
.bb-input:focus {
  border-color: var(--bb-orange);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
  background: #FFFDF9 !important;
}
.bb-input:hover:not(:focus) {
  border-color: #B0BAC8;
}
.bb-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
}
/* Ensure input color in all themes/browsers */
input.bb-input, textarea.bb-input, select.bb-input {
  color: #1A1E2A !important;
  -webkit-text-fill-color: #1A1E2A !important;
}
input.bb-input::placeholder, textarea.bb-input::placeholder {
  color: #8A96A8 !important;
  -webkit-text-fill-color: #8A96A8 !important;
  opacity: 1 !important;
}

/* ── STYLE CHIPS ────────────────────────────────────────────── */
.bb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.bb-chip {
  font-family: var(--bb-font);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border: 1.5px solid var(--bb-border);
  border-radius: 50px;
  background: var(--bb-white);
  color: var(--bb-text-muted);
  cursor: pointer;
  transition: all var(--bb-trans);
  user-select: none;
  white-space: nowrap;
}
.bb-chip:hover {
  border-color: var(--bb-orange);
  color: var(--bb-orange);
  background: rgba(255,107,0,0.04);
}
.bb-chip.active {
  border-color: var(--bb-orange);
  background: var(--bb-orange);
  color: var(--bb-white);
  box-shadow: 0 2px 8px rgba(255,107,0,0.30);
}

/* ── PRICING STRIP ──────────────────────────────────────────── */
.bb-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(13,27,62,0.04), rgba(255,107,0,0.05));
  border: 1.5px solid rgba(255,107,0,0.20);
  border-radius: var(--bb-radius);
  flex-wrap: wrap;
}
.bb-strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bb-tag {
  font-family: var(--bb-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--bb-orange), var(--bb-orange-dk));
  color: var(--bb-white);
}
.bb-tag.paid { background: linear-gradient(135deg, var(--bb-navy), var(--bb-navy-md)); }
.bb-strip-text {
  font-family: var(--bb-font-body);
  font-size: 14px;
  color: var(--bb-text-muted);
}
.bb-strip-price {
  font-family: var(--bb-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--bb-navy);
  white-space: nowrap;
}

/* ── PRIMARY BUTTON ─────────────────────────────────────────── */
.bb-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--bb-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border: none;
  border-radius: var(--bb-radius);
  background: linear-gradient(135deg, var(--bb-orange) 0%, var(--bb-orange-dk) 100%);
  color: var(--bb-white);
  cursor: pointer;
  transition: all var(--bb-trans);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255,107,0,0.28);
  position: relative;
  overflow: hidden;
  width: 100%;
}
.bb-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--bb-trans);
}
.bb-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,107,0,0.40);
}
.bb-btn-primary:hover::before { background: rgba(255,255,255,0.08); }
.bb-btn-primary:active { transform: translateY(0); }
.bb-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.bb-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--bb-font);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  border: 2px solid var(--bb-navy);
  border-radius: var(--bb-radius);
  background: transparent;
  color: var(--bb-navy);
  cursor: pointer;
  transition: all var(--bb-trans);
  text-decoration: none;
}
.bb-btn-outline:hover {
  background: var(--bb-navy);
  color: var(--bb-white);
}
.bb-btn-full { width: 100%; }
.bb-btn-sm { padding: 9px 18px; font-size: 14px; }
.bb-btn-cta { width: auto; }
@keyframes bb-spin { to { transform: rotate(360deg); } }
.bb-spin { animation: bb-spin 0.8s linear infinite; }

/* ── LOADING CARD ───────────────────────────────────────────── */
.bb-loading-card {
  text-align: center;
  padding: 52px 28px;
}
.bb-ring-wrap {
  width: 72px;
  height: 72px;
  position: relative;
  margin: 0 auto 24px;
}
.bb-ring {
  position: absolute;
  border-radius: 50%;
  animation: bb-spin 1.2s linear infinite;
}
.bb-ring-outer {
  inset: 0;
  border: 4px solid var(--bb-border);
  border-top-color: var(--bb-orange);
}
.bb-ring-inner {
  inset: 10px;
  border: 3px solid var(--bb-border);
  border-bottom-color: var(--bb-navy);
  animation-duration: 0.8s;
  animation-direction: reverse;
}
.bb-loading-title {
  font-family: var(--bb-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--bb-navy);
  margin: 0 0 8px;
}
.bb-loading-sub {
  font-family: var(--bb-font-body);
  font-size: 14px;
  color: var(--bb-text-muted);
  margin: 0 0 24px;
}
.bb-prog-track {
  height: 6px;
  background: var(--bb-border);
  border-radius: 50px;
  max-width: 340px;
  margin: 0 auto 20px;
  overflow: hidden;
}
.bb-prog-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--bb-orange), var(--bb-orange-lt));
  border-radius: 50px;
  transition: width 0.5s ease;
}
.bb-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bb-step {
  font-family: var(--bb-font);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  color: var(--bb-text-muted);
  background: var(--bb-off-white);
  border: 1px solid var(--bb-border);
  transition: all var(--bb-trans);
}
.bb-step-active {
  color: var(--bb-orange);
  background: rgba(255,107,0,0.08);
  border-color: rgba(255,107,0,0.30);
}
.bb-step-done {
  color: #2E7D32;
  background: rgba(46,125,50,0.08);
  border-color: rgba(46,125,50,0.30);
}

/* ── RESULTS BAR ────────────────────────────────────────────── */
.bb-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  flex-wrap: wrap;
}
.bb-results-title {
  font-family: var(--bb-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--bb-navy);
  margin: 0 0 4px;
}
.bb-brand-accent { color: var(--bb-orange); }
.bb-results-meta {
  font-family: var(--bb-font-body);
  font-size: 13px;
  color: var(--bb-text-muted);
  margin: 0;
}
.bb-label-free  { color: #2E7D32; font-weight: 600; }
.bb-label-paid  { color: var(--bb-navy); font-weight: 600; }
.bb-balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--bb-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--bb-navy);
  background: rgba(13,27,62,0.06);
  border: 1px solid rgba(13,27,62,0.12);
  border-radius: 50px;
  padding: 6px 14px;
  white-space: nowrap;
}

/* ── LOGO GRID ──────────────────────────────────────────────── */
.bb-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 0 0 8px;
}
.bb-logo-card {
  background: var(--bb-white);
  border: 1.5px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--bb-trans);
  box-shadow: var(--bb-shadow);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  animation: bb-card-in 0.4s ease forwards;
}
@keyframes bb-card-in {
  to { opacity:1; transform:translateY(0) scale(1); }
}
.bb-logo-card:hover {
  border-color: var(--bb-orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(255,107,0,0.18);
}
.bb-logo-preview {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #F8F9FC, #EEF0F5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.bb-logo-preview svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bb-logo-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--bb-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.bb-logo-name {
  font-family: var(--bb-font);
  font-size: 12px;
  font-weight: 700;
  color: var(--bb-navy);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.bb-logo-dl {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bb-text-muted);
  padding: 3px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color var(--bb-trans);
}
.bb-logo-dl:hover { color: var(--bb-orange); }

/* ── CTA BLOCK ──────────────────────────────────────────────── */
.bb-cta {
  max-width: 800px;
  margin: 0 auto 0;
  background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-navy-md) 100%);
  border-radius: var(--bb-radius-lg);
  overflow: hidden;
  box-shadow: var(--bb-shadow-lg);
  position: relative;
}
.bb-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255,107,0,0.20) 0%, transparent 60%);
  pointer-events: none;
}
.bb-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 40px;
  position: relative;
  z-index: 1;
}
.bb-cta-left { flex: 1; }
.bb-cta-eyebrow {
  font-family: var(--bb-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-orange-lt);
  margin: 0 0 6px;
}
.bb-cta-h {
  font-family: var(--bb-font);
  font-size: 26px;
  font-weight: 700;
  color: var(--bb-white);
  margin: 0 0 10px;
  line-height: 1.2;
}
.bb-cta-desc {
  font-family: var(--bb-font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  margin: 0 0 22px;
  line-height: 1.6;
}
.bb-cta-desc strong { color: var(--bb-white); }
.bb-cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.bb-cta-btns .bb-btn-primary {
  width: auto;
  background: linear-gradient(135deg, var(--bb-orange) 0%, var(--bb-orange-dk) 100%);
}
.bb-cta-btns .bb-btn-outline {
  border-color: rgba(255,255,255,0.40);
  color: var(--bb-white);
}
.bb-cta-btns .bb-btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.70);
  color: var(--bb-white);
}
.bb-cta-right {
  text-align: center;
  flex-shrink: 0;
}
.bb-cta-bubble {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255,107,0,0.20);
  border: 2px solid rgba(255,107,0,0.40);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.bb-cta-num {
  font-family: var(--bb-font);
  font-size: 28px;
  font-weight: 700;
  color: var(--bb-orange-lt);
  line-height: 1;
}
.bb-cta-per {
  font-family: var(--bb-font);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.70);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bb-cta-note {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--bb-font);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin: 0;
  justify-content: center;
}

/* ── AUTH OVERLAY & MODAL ───────────────────────────────────── */
.bb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,27,62,0.72);
  backdrop-filter: blur(4px);
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.bb-modal {
  background: var(--bb-white);
  border-radius: var(--bb-radius-lg);
  box-shadow: 0 24px 80px rgba(13,27,62,0.28);
  width: 100%;
  max-width: 460px;
  position: relative;
  animation: bb-modal-in 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes bb-modal-in {
  from { opacity:0; transform:scale(0.92) translateY(16px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.bb-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--bb-border);
  background: var(--bb-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bb-text-muted);
  transition: all var(--bb-trans);
  z-index: 1;
}
.bb-close:hover { background: var(--bb-off-white); color: var(--bb-text); }
.bb-modal-hero {
  background: linear-gradient(135deg, var(--bb-navy), var(--bb-navy-md));
  padding: 32px 28px 24px;
  text-align: center;
  border-radius: var(--bb-radius-lg) var(--bb-radius-lg) 0 0;
  position: relative;
  overflow: hidden;
}
.bb-modal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,107,0,0.20) 0%, transparent 70%);
}
.bb-modal-logo {
  font-family: var(--bb-font);
  font-size: 26px;
  font-weight: 700;
  color: var(--bb-white);
  margin-bottom: 8px;
  position: relative;
}
.bb-modal-logo span { color: var(--bb-orange-lt); }
.bb-modal-tagline {
  font-family: var(--bb-font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.80);
  margin: 0;
  position: relative;
}

/* Tabs */
.bb-tabs {
  display: flex;
  border-bottom: 1px solid var(--bb-border);
  background: #FAFBFC;
}
.bb-tab {
  flex: 1;
  font-family: var(--bb-font);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 8px;
  border: none;
  background: transparent;
  color: var(--bb-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--bb-trans);
  letter-spacing: 0.02em;
}
.bb-tab:hover { color: var(--bb-navy); }
.bb-tab-active {
  color: var(--bb-orange) !important;
  border-bottom-color: var(--bb-orange) !important;
}

/* Panes */
.bb-pane {
  padding: 22px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bb-pass-row {
  position: relative;
  display: flex;
  align-items: stretch;
}
.bb-pass-row .bb-input { padding-right: 46px; }
.bb-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bb-text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
}
.bb-eye-btn:hover { color: var(--bb-navy); }
.bb-rc-field { margin-top: 4px; }
.bb-auth-err {
  font-family: var(--bb-font-body);
  font-size: 13px;
  color: #C62828;
  background: rgba(198,40,40,0.08);
  border: 1px solid rgba(198,40,40,0.20);
  border-radius: var(--bb-radius);
  padding: 10px 14px;
  line-height: 1.4;
}
.bb-btn-lbl, .bb-btn-busy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bb-or {
  position: relative;
  text-align: center;
  color: var(--bb-text-muted);
  font-family: var(--bb-font-body);
  font-size: 12px;
}
.bb-or::before, .bb-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--bb-border);
}
.bb-or::before { left: 0; }
.bb-or::after  { right: 0; }
.bb-or span {
  background: var(--bb-white);
  padding: 0 10px;
  position: relative;
}
.bb-forgot {
  text-align: center;
  margin: 0;
  font-family: var(--bb-font-body);
  font-size: 13px;
}
.bb-forgot a { color: var(--bb-orange); text-decoration: none; }
.bb-forgot a:hover { text-decoration: underline; }
.bb-legal {
  text-align: center;
  font-family: var(--bb-font-body);
  font-size: 12px;
  color: var(--bb-text-muted);
  padding: 0 28px 18px;
  margin: 0;
}
.bb-legal a { color: var(--bb-navy); text-decoration: underline; }

/* ── LOGO DETAIL MODAL ──────────────────────────────────────── */
.bb-detail-modal { max-width: 680px; }
.bb-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.bb-detail-preview {
  background: linear-gradient(135deg, #F8F9FC, #EEF0F5);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bb-radius-lg) 0 0 var(--bb-radius-lg);
  min-height: 260px;
}
.bb-detail-preview svg { width:100%; height:100%; max-width:200px; max-height:200px; }
.bb-detail-info {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bb-detail-style {
  font-family: var(--bb-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--bb-navy);
  margin: 0;
}
.bb-detail-desc {
  font-family: var(--bb-font-body);
  font-size: 14px;
  color: var(--bb-text-muted);
  margin: 0;
  line-height: 1.5;
}
.bb-detail-colors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.bb-color-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.08);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.bb-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ── TOAST ──────────────────────────────────────────────────── */
#bb-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: var(--bb-font);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--bb-radius);
  background: var(--bb-navy);
  color: var(--bb-white);
  box-shadow: var(--bb-shadow-lg);
  max-width: 320px;
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
#bb-toast.bb-toast-show {
  transform: translateY(0);
  opacity: 1;
}
#bb-toast.bb-toast-error { background: #C62828; }
#bb-toast.bb-toast-ok    { background: #2E7D32; }
#bb-toast.bb-toast-warn  { background: var(--bb-navy-md); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 680px) {
  .bb-detail-layout { grid-template-columns: 1fr; }
  .bb-detail-preview { border-radius: var(--bb-radius-lg) var(--bb-radius-lg) 0 0; min-height:180px; }
  .bb-cta-inner { flex-direction: column; padding: 28px 24px; }
  .bb-cta-right { display: none; }
}
@media (max-width: 560px) {
  .bb-row2 { grid-template-columns: 1fr; }
  .bb-card-head, #bb-form { padding-left: 18px; padding-right: 18px; }
  .bb-hero { padding: 40px 16px 68px; }
  .bb-grid { grid-template-columns: repeat(2, 1fr); gap:12px; }
  .bb-results-bar { padding: 16px 18px; }
}
@media (max-width: 360px) {
  .bb-grid { grid-template-columns: 1fr; }
}

/* ── Auth modal inputs — same strong contrast ───────────────── */
.bb-modal .bb-input {
  color: #1A1E2A !important;
  -webkit-text-fill-color: #1A1E2A !important;
  background: #FFFFFF !important;
}
.bb-modal .bb-input::placeholder {
  color: #8A96A8 !important;
  -webkit-text-fill-color: #8A96A8 !important;
}
