/* ===== Force Bytescare Theme Buttons (Override) ===== */

/* Primary CTA buttons (Lookup, Next, Confirm, etc.) */
.btn-brand,
.btn-blue,
.btn-green{
  background: var(--primary) !important;
  color: var(--primaryText) !important;
  border: none !important;
  box-shadow: 0 10px 22px rgba(255,163,0,0.25) !important;
}

.btn-brand:hover,
.btn-blue:hover,
.btn-green:hover{
  background: var(--primaryHover) !important;
}

/* Secondary buttons (Back / outline buttons) */
.btn-light{
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  box-shadow: none !important;
}

/* Small buttons (Select all / Clear / Collapse) */
.mini-btn{
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  box-shadow: none !important;
}
.mini-btn:hover{
  background:#f3f4f6 !important;
}

/* If you want "Select all" to look like primary too, use this class */
.mini-btn.primary-mini{
  background: var(--primary) !important;
  border-color: rgba(0,0,0,0.08) !important;
  color: #111827 !important;
}
.mini-btn.primary-mini:hover{
  background: var(--primaryHover) !important;
}

/* Toggle active color to match primary */
.toggle input:checked + .toggle-ui{
  background: rgba(255,163,0,.28) !important;
  border-color: rgba(255,163,0,.55) !important;
}
:root{
  --primary: #ffa300;
  --primaryHover: #ffb733;
  --primaryText: #111827;
  --bg1:#e3f2fd;
  --bg2:#ffffff;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:rgba(0,0,0,0.08);
  --shadow: 0 12px 30px rgba(0,0,0,0.08);
  --radius:16px;
}

*{ box-sizing: border-box; }

body{
  margin:0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, var(--bg1), var(--bg2));
  color: var(--text);
}

.container{
  max-width: 1320px;
  margin: 26px auto;
  padding: 0 16px 30px;
}

.header{
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 18px;

  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 14px;

  overflow: hidden; /* ✅ prevents logo spilling out */
}


/* Make logo merge with header background (no white badge) */
.logo-wrap{
  width: 140px;          /* ✅ give enough space */
  height: 44px;          /* ✅ nice header height */
  flex: 0 0 140px;       /* ✅ fixed width so it won’t push outside */
  display:flex;
  align-items:center;
  justify-content:flex-start;

  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;      /* ✅ crop safely if needed */
  mix-blend-mode: multiply;

}


.logo-wrap img{
  width: 140px;          /* ✅ exactly matches wrapper */
  height: 44px;
  object-fit: contain;
  display:block;

  background: transparent;
}


.title{
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .2px;
}

.subtitle{
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 980px){
  .grid{
    grid-template-columns: 0.95fr 1.05fr;
    align-items:start;
  }
}

.panel{
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 16px;
}

.panel-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 12px;
  font-weight: 900;
  letter-spacing: .2px;
}

.badge{
  font-size: 12px;
  font-weight: 900;
  color: #1f6feb;
  border: 1px solid rgba(31,111,235,.25);
  background: rgba(31,111,235,.08);
  padding: 4px 10px;
  border-radius: 999px;
}

label{
  display:block;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 13px;
  color: #111827;
}

.input, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  outline: none;
  font-size: 14px;
  background:#fff;
}

.input:focus, select:focus{
  border-color: rgba(33,150,243,.55);
  box-shadow: 0 0 0 4px rgba(33,150,243,.12);
}

.client-result{
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
}

.btn{
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  cursor:pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,0.10);
}

.btn:hover{ opacity: .96; }

.btn-brand{
  background: #111827;
  color:#fff;
}

.btn-blue{
  background: #1f6feb;
  color:#fff;
}

.btn-green{
  background: #16a34a;
  color:#fff;
}

.btn-light{
  background: #f3f4f6;
  color:#111827;
  box-shadow: none;
  border: 1px solid rgba(0,0,0,0.08);
}

.btn:disabled{
  opacity: .55;
  cursor:not-allowed;
}

.muted{
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.group{
  margin-top: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 12px;
  background: #fbfdff;
}

.group-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 10px;
}

.pill{
  font-size: 11px;
  font-weight: 900;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.03);
  padding: 3px 10px;
  border-radius: 999px;
  color: #374151;
}

.asset-toolbar{
  display:flex;
  gap: 10px;
  align-items:center;
}

.mini-btn{
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
  font-weight: 900;
  font-size: 12.5px;
  white-space: nowrap;
}

.mini-btn:hover{ background:#f3f4f6; }

.mini-btn-ghost{
  background:#fff;
  box-shadow:none;
}

.asset-list{
  margin-top: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 10px;
  background: #fbfdff;
  max-height: 430px;
  overflow:auto;
}

.asset-empty{
  padding: 16px 12px;
  text-align:center;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.asset-item{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 10px 10px;
  border-radius: 12px;
  cursor:pointer;
  border: 1px solid transparent;
}

.asset-item:hover{
  background:#f8fafc;
  border-color: rgba(0,0,0,0.06);
}

.asset-item input{
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #1f6feb;
  flex: 0 0 auto;
}

.asset-title{
  font-weight: 900;
  font-size: 13px;
  color:#111827;
  line-height: 1.25;
}

.asset-sub{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 2px;
  line-height: 1.25;
}

.hint{
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align:right;
}

.footer{
  margin-top: 16px;
  text-align:center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

/* ========= Premium Wizard ========= */

.wizard-stepper{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 12px;
}

.wiz-pill{
  display:flex;
  align-items:center;
  gap: 10px;
  border: 1px solid rgba(0,0,0,0.10);
  background:#fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  font-size: 12.5px;
  color:#374151;
}

.wiz-active{
  border-color: rgba(31,111,235,.35);
  background: rgba(31,111,235,.08);
  color:#1f6feb;
}

.wiz-num{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 12px;
  background:#f3f4f6;
  border: 1px solid rgba(0,0,0,0.10);
}

.wiz-active .wiz-num{
  background: rgba(31,111,235,.18);
  border-color: rgba(31,111,235,.25);
}

.wiz-line{
  height: 1px;
  flex: 1;
  background: rgba(0,0,0,0.10);
}

.wizard-body{
  min-height: 520px;
}

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

.small-muted{
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.count-chip{
  font-weight: 900;
  font-size: 12px;
  color:#111827;
  border: 1px solid rgba(0,0,0,0.08);
  background:#f9fafb;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.wizard-actions{
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 12px;
  margin-top: 12px;
  display:flex;
  gap: 10px;
}

.wizard-actions .btn{
  box-shadow: none;
  width: auto;
  flex: 1;
}

/* ========= Review UI ========= */

.review-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-title{
  font-weight: 900;
  font-size: 14px;
  color:#111827;
}

.selected-assets{
  border: 1px solid rgba(0,0,0,0.08);
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.selected-assets-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.selected-assets-title{
  font-weight: 900;
  font-size: 13px;
  color: #111827;
  display:flex;
  align-items:center;
  gap: 8px;
}

.pill-soft{
  font-size: 12px;
  font-weight: 900;
  color: #6b7280;
  border: 1px solid rgba(0,0,0,0.06);
  background: #f9fafb;
  padding: 4px 10px;
  border-radius: 999px;
}

.selected-assets-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
  max-height: 220px;
  overflow:auto;
  padding-right: 4px;
}

.selected-row{
  border: 1px solid rgba(0,0,0,0.06);
  background: #fbfdff;
  border-radius: 12px;
  padding: 10px;
}

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

.selected-name{
  font-weight: 900;
  font-size: 13px;
  color: #111827;
  line-height: 1.25;
}

.selected-base{
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.25;
  font-weight: 700;
}

.selected-remove{
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor:pointer;
  font-weight: 900;
  font-size: 12px;
}

.selected-remove:hover{ background: #f3f4f6; }

/* Toggle */
.toggle{
  display:flex;
  align-items:center;
  gap: 10px;
  user-select:none;
}

.toggle input{ display:none; }

.toggle-ui{
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #e5e7eb;
  border: 1px solid rgba(0,0,0,0.08);
  display:flex;
  align-items:center;
  padding: 3px;
  cursor:pointer;
  transition: all .18s ease;
}

.toggle-dot{
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background:#fff;
  box-shadow: 0 6px 12px rgba(0,0,0,0.10);
  transform: translateX(0);
  transition: all .18s ease;
}

.toggle input:checked + .toggle-ui{
  background: rgba(33,150,243,.20);
  border-color: rgba(33,150,243,.35);
}

.toggle input:checked + .toggle-ui .toggle-dot{
  transform: translateX(18px);
}

.toggle-text{
  font-weight: 800;
  font-size: 12px;
  color:#111827;
}

/* Preview chips */
.preview-box{
  margin-top: 12px;
  border: 1px dashed rgba(0,0,0,0.18);
  background: #f9fafb;
  border-radius: 14px;
  padding: 12px;
}

.preview-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.preview-title{
  font-weight: 900;
  font-size: 13px;
  color:#111827;
}

.preview-sub{
  font-size: 12px;
  color:#6b7280;
  font-weight: 700;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  background:#fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color:#111827;
}

.chip .x{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background:#fff;
  cursor:pointer;
  font-weight: 900;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height: 1;
}

.chip .x:hover{
  background:#f3f4f6;
}

.preview-hint{
  margin-top: 8px;
  font-size: 12px;
  color:#6b7280;
  font-weight: 700;
}

/* Optional keyword add per asset (kept but only in review list) */
.asset-keyword-tools{
  margin-top: 8px;
  display:none;
  gap: 8px;
  align-items:center;
}

.asset-keyword-tools.show{
  display:flex;
}

.asset-add-input{
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  background:#fff;
}

.asset-add-btn{
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  font-size: 12.5px;
  cursor:pointer;
}

.asset-add-btn:hover{ background:#f3f4f6; }

.mini-chips{
  margin-top: 8px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
