/* ===========================================================
   Infloowo — brand theme for Bootstrap 5
   Page layout is handled by Bootstrap's grid, flex, and spacing
   utilities in the markup. This file only carries brand colors/
   button theming, plus styling for the opportunity/applicant
   content that js/opportunities.js and js/brand-opportunities.js
   render dynamically into the page.
   =========================================================== */

:root {
  --color-primary: #187c9b;        /* deepened brand blue — passes AA contrast on white */
  --color-primary-hover: #146a85;
  --color-primary-light: #e9f3f6;  /* light tint of brand blue, for chips/highlights */
  --color-logo-blue: #26b3de;      /* true brand blue, decorative use only (logo, large fills) */
  --color-accent: #fd9c2d;         /* true brand orange, decorative use only */
  --color-accent-dark: #cb6c01;    /* darkened orange — safe for text/icons on white */
  --color-accent-light: #fef3e6;   /* light tint of brand orange, for chips/highlights */
  --color-text-muted: #6b6560;
  --color-border: #e5e9eb;
  --color-error: #b91c1c;
  --color-error-bg: #fef2f2;
  --color-success: #15803d;
  --color-success-bg: #f0fdf4;
}

body {
  background-color: #f7f9fa;  
}

a {
  color: var(--color-primary);
}
a:hover {
  color: var(--color-primary-hover);
}

/* Brand colors layered onto Bootstrap's CSS-variable-driven components */
.btn-primary {
  --bs-btn-bg: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-primary-hover);
  --bs-btn-hover-border-color: var(--color-primary-hover);
  --bs-btn-active-bg: var(--color-primary-hover);
  --bs-btn-active-border-color: var(--color-primary-hover);
  --bs-btn-disabled-bg: var(--color-primary);
  --bs-btn-disabled-border-color: var(--color-primary);
}

.btn-outline-primary {
  --bs-btn-color: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-primary);
  --bs-btn-hover-border-color: var(--color-primary);
  --bs-btn-active-bg: var(--color-primary);
  --bs-btn-active-border-color: var(--color-primary);
}

.form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Matches Bootstrap's .is-invalid glow color/shape, for the two group
   containers (niches checkboxes, platforms list) that aren't a single
   form control and so can't use .is-invalid directly. */
.invalid-group {
  border-radius: var(--bs-border-radius, 0.375rem);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb, 220, 53, 69), 0.25);
}

/* Content niche checkboxes get a rounded pill backdrop, tinted with the
   light brand color, that encompasses both the checkbox and its label. */
#niches-group .form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary-light);
  border-radius: 999px;
  padding: 0.375rem 0.9rem 0.375rem 0.75rem;
  margin-bottom: 0;
}
#niches-group .form-check .form-check-input {
  float: none;
  margin-top: 0;
  margin-left: 0;
}

/* Consent box (privacy policy checkbox) — brand-tinted instead of Bootstrap's default grey */
.alert-light {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
}

/* "Platform" placeholder reads as muted text, like a real placeholder,
   until the user picks an actual platform. */
.form-select:has(option[value=""]:checked) {
  color: var(--color-text-muted);
}

/* Content language(s) tag input — pills + inline autocomplete field
   rendered inside a Bootstrap .form-control look-alike container. */
#languages-control {
  min-height: 2.75rem;
  height: auto;
  cursor: text;
}
#languages-control:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.25rem rgba(24, 124, 155, 0.25);
}

#languages-typeahead {
  flex: 1 1 auto;
  min-width: 120px;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
}

.language-pill .btn-close {
  font-size: 0.55rem;
}

#languages-dropdown {
  top: 100%;
  left: 0;
  z-index: 1000;
  width: auto;
  min-width: 60%;
  max-width: 100%;
  max-height: 220px;
  overflow-y: auto;
}
#languages-dropdown .list-group-item {
  cursor: pointer;
  white-space: nowrap;
}
#languages-dropdown .list-group-item-action:hover,
#languages-dropdown .list-group-item-action:focus {
  background-color: var(--color-primary-light);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.25rem rgba(24, 124, 155, 0.25);
}

/* Accent top borders used on featured cards (audience cards, signup forms) */
.card-accent-blue { border-top: 3px solid var(--color-logo-blue); }
.card-accent-orange { border-top: 3px solid var(--color-accent); }

/* ===========================================================
   Opportunity marketplace — rendered dynamically by
   js/opportunities.js and js/brand-opportunities.js
   =========================================================== */
.opportunity-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 22px 24px;
}
.opportunity-card .opp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.opportunity-card h4 { margin: 0 0 4px; }
.opportunity-card .company { color: var(--color-text-muted); font-size: 0.88rem; margin: 0 0 10px; }
.opportunity-card p.description { margin: 10px 0; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-open { background: var(--color-success-bg); color: var(--color-success); }
.badge-closed { background: var(--color-border); color: var(--color-text-muted); }

.opp-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.link-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.applicants-panel { margin-top: 14px; border-top: 1px solid var(--color-border); padding-top: 14px; display: none; }
.applicants-panel.open { display: block; }

.applicant-item { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.applicant-item:last-child { border-bottom: none; }
.applicant-item .name { font-weight: 600; }
.applicant-item .meta-line { color: var(--color-text-muted); font-size: 0.85rem; margin-top: 2px; }

.empty-state { color: var(--color-text-muted); font-size: 0.92rem; padding: 24px 0; }

/* ===========================================================
   Fixed-bottom icon-only nav — mobile only (see .d-md-none on
   the markup), sized so up to 5 icon buttons fit comfortably
   without crowding.
   =========================================================== */
.bottom-tab-bar {
  background-color: #fff;
  opacity: 1;
  padding: 0.25rem 0.25rem calc(0.25rem + env(safe-area-inset-bottom));
}
.bottom-tab-bar .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  border-radius: 999px;
}
.bottom-tab-bar .nav-link.active,
.bottom-tab-bar .nav-link:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}
/* Keep page content clear of the floating bar on the pages that use it. */
@media (max-width: 767.98px) {
  body:has(.bottom-tab-bar) {
    padding-bottom: 80px;
  }
}

/* Account menu (dropup) anchored to the bottom-right tab-bar icon */
.bottom-tab-bar .dropdown-menu {
  margin-bottom: 0.5rem;
}
.bottom-tab-bar .dropdown-item:hover,
.bottom-tab-bar .dropdown-item:focus {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

/* Platform card edit/delete icon buttons (creators.php, creator_profile.php) —
   quiet gray by default, tinted brand color on hover/focus for feedback. */
.platform-row .btn-link.text-muted:hover,
.platform-row .btn-link.text-muted:focus {
  color: var(--color-primary) !important;
}

/* ===========================================================
   Creator sign-up wizard (creators.php) — progress bar, one
   step card at a time, footer nav and the "all done" card.
   Step switching/animation lives in js/creator-form.js.
   =========================================================== */

/* Orange call-to-action used for Continue / Create / Sign in now. */
.btn-continue {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: #fff;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 253, 156, 45;
  background-image: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  font-size: 1.2rem;   /* bold + large keeps white-on-orange readable */
  font-weight: 700;
  padding: 0.6rem 1.6rem;
  border-radius: 0.6rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 12px rgba(203, 108, 1, 0.25);
}
.btn-continue:hover,
.btn-continue:focus-visible {
  background-image: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent-dark));
}
.btn-continue:disabled {
  opacity: 0.75;
}

/* Progress bar: eyebrow + six segments, labels under each on md+. */
.signup-progress {
  scroll-margin-top: 5.5rem;  /* clear the sticky site header */
}
.signup-progress-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.5rem;
}
.signup-progress-steps {
  display: flex;
  gap: 0.375rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.signup-progress-step {
  flex: 1 1 0;
  min-width: 0;
}
.signup-progress-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: var(--color-text-muted);
}
.signup-progress-btn:disabled {
  cursor: default;
}
.signup-progress-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background-color: var(--color-border);
  transition: background-color 0.3s ease;
}
.signup-progress-label {
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.25;
}
.signup-progress-label .bi {
  display: none;
  color: var(--color-success);
}
.signup-progress-step.is-current .signup-progress-bar,
.signup-progress-step.is-complete .signup-progress-bar {
  background-color: var(--color-accent);
}
.signup-progress-step.is-current .signup-progress-label {
  color: var(--bs-body-color);
  font-weight: 600;
}
.signup-progress-step.is-complete .signup-progress-label .bi {
  display: inline;
}
.signup-progress-step.is-complete .signup-progress-btn:not(:disabled):hover .signup-progress-label {
  color: var(--color-primary);
  text-decoration: underline;
}
.signup-progress-step.is-complete .signup-progress-btn:not(:disabled):hover .signup-progress-bar {
  background-color: var(--color-accent-dark);
}

/* Step cards. While sliding, the outgoing card is lifted out of the flow
   and the container clips both cards. */
.signup-steps {
  position: relative;
}
.signup-steps.is-sliding {
  overflow: hidden;
}
.signup-step.is-leaving {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}
.signup-step {
  border-color: var(--color-border);
  border-radius: 1rem;
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
}
.signup-step-title,
.signup-done-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.signup-step-title:focus,
.signup-done-title:focus {
  outline: none;
}
.signup-step-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* Footer: sign-in hint / Back on the left, Continue on the right. */
.signup-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}
.signup-back {
  padding-left: 0;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
}
.signup-back:hover {
  color: var(--color-primary);
}
.signup-nav .btn,
.signup-nav a {
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .signup-nav {
    font-size: 0.9rem;
  }
  .signup-nav .btn-continue {
    font-size: 1.1rem;
    padding: 0.55rem 1.2rem;
  }
}

/* Final "you're in" card */
.signup-done {
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
  padding: 2.5rem 1.5rem;
}
.signup-done-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  font-size: 2.5rem;
  color: #fff;
  background-color: var(--color-success);
  box-shadow: 0 0 0 0.6rem var(--color-success-bg);
}
.signup-done-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
.signup-done-cards {
  margin-bottom: 2rem;
  text-align: left;
}
.signup-done-card {
  height: 100%;
  padding: 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: #fff;
}
.signup-done-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.75rem 0 0.25rem;
}
.signup-done-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.signup-done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  font-size: 1.1rem;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}
.signup-done-icon.is-success {
  color: var(--color-success);
  background-color: var(--color-success-bg);
}
@media (min-width: 768px) {
  .signup-done {
    padding: 3rem;
  }
}

/* ===========================================================
   My Profile section cards (creator_profile.php) — read-only
   summary with an Edit button; one card edited at a time while
   the rest are dimmed. Behaviour lives in js/creator-profile.js.
   =========================================================== */
.profile-section {
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.05);
  transition: opacity 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.profile-section.is-editing {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), 0 6px 24px rgba(24, 124, 155, 0.12);
}
.profile-section.is-locked {
  opacity: 0.5;
}
.profile-section.is-resizing {
  overflow: hidden;
}
@media (min-width: 768px) {
  .profile-section {
    padding: 1.5rem 1.75rem;
  }
}

.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.profile-section-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.profile-section-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.profile-edit-btn {
  --bs-btn-color: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-primary-light);
  --bs-btn-hover-border-color: var(--color-primary);
  --bs-btn-active-color: var(--color-primary);
  --bs-btn-active-bg: var(--color-primary-light);
  --bs-btn-active-border-color: var(--color-primary);
  border-width: 1.5px;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.profile-edit-btn .bi {
  font-size: 0.8rem;
  margin-right: 0.2rem;
}
.profile-editing-badge {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}
.profile-saved-note {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-success);
}

/* Read-only summary: small uppercase labels over values, two columns
   (one for the lists in the content/platform cards). */
.profile-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.25rem;
  margin: 0;
}
.profile-summary-stacked {
  grid-template-columns: minmax(0, 1fr);
}
.profile-summary dt {
  margin-bottom: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.profile-summary dd {
  margin: 0;
  overflow-wrap: break-word;
}
.profile-empty {
  color: var(--color-text-muted);
}
.profile-pill {
  display: inline-block;
  margin: 0.15rem 0.4rem 0.15rem 0;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-hover);
  background-color: var(--color-primary-light);
}
.profile-platform-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  padding: 0.15rem 0;
}
.profile-platform-line .bi {
  color: var(--color-primary);
}

/* Edit view: label row with the "Edited" marker on the right */
.profile-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 600;
}
.profile-edited,
.profile-change-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent-dark);
}
.profile-edited::before,
.profile-change-count::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background-color: var(--color-accent);
}
.profile-change-count:empty {
  display: none;
}

.profile-section-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.profile-cancel-btn {
  padding-left: 0;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
}
.profile-cancel-btn:hover {
  color: var(--color-primary);
}
.profile-section-footer .btn-continue {
  margin-left: auto;
  font-size: 1rem;
  padding: 0.55rem 1.3rem;
  white-space: nowrap;
}
.profile-section-footer .btn-continue:disabled {
  opacity: 0.45;
  box-shadow: none;
}

/* ===========================================================
   Brand sign-up (brands.php) — the step frame, progress bar,
   footer and success card reuse the "creator signup wizard"
   styles above; these are the brand-only pieces. Behaviour in
   js/brand-form.js.
   =========================================================== */

/* Footer right side: optional "Skip for now" + Continue */
.signup-nav-end {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand-skip {
  padding: 0;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

/* Step heading row with "Optional" / "n selected" badges on the right */
.brand-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.brand-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}
/* Phones: badges sit above the heading instead of squeezing it */
@media (max-width: 575.98px) {
  .brand-step-head {
    flex-direction: column;
    gap: 0.5rem;
  }
  .brand-badges {
    order: -1;
    justify-content: flex-start;
  }
  .brand-badges:not(:has(.brand-badge:not([hidden]))) {
    display: none;
  }
}
.brand-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-primary-hover);
  background-color: var(--color-primary-light);
}
.brand-badge.is-muted {
  color: var(--color-text-muted);
  background-color: #eef0f2;
}

/* Popular-industry chips under the Industry dropdown */
.brand-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.brand-chips-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-right: 0.15rem;
}
.brand-chip {
  padding: 0.3rem 0.8rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bs-body-color);
  background-color: #eef0f2;
}
.brand-chip:hover,
.brand-chip.is-active {
  color: var(--color-primary-hover);
  background-color: var(--color-primary-light);
}

/* Selectable tiles (collaboration types, niches). Each tile is the label of
   a visually hidden Bootstrap .btn-check checkbox, so it works with the
   keyboard and screen readers. */
.brand-tiles {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .brand-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.brand-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin: 0;
  padding: 1.1rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.9rem;
  text-align: center;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .brand-tile:hover {
    border-color: var(--color-primary);
  }
}
.brand-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.45rem;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}
.brand-tile-title {
  font-weight: 700;
}
.brand-tile-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.brand-tile.is-compact {
  padding: 0.9rem 0.5rem;
}
.brand-tile.is-compact .brand-tile-title {
  font-weight: 500;
}
.brand-tile-check {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--color-primary);
  background-color: #fff;
}
.btn-check:checked + .brand-tile {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(160deg, var(--color-primary), #0f5d75);
  box-shadow: 0 6px 16px rgba(24, 124, 155, 0.25);
}
.btn-check:checked + .brand-tile .brand-tile-icon {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.22);
}
.btn-check:checked + .brand-tile .brand-tile-sub {
  color: rgba(255, 255, 255, 0.85);
}
.btn-check:checked + .brand-tile .brand-tile-title {
  font-weight: 700;
}
.btn-check:checked + .brand-tile .brand-tile-check {
  display: inline-flex;
}
.btn-check:focus-visible + .brand-tile {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(24, 124, 155, 0.35);
}

/* Budget: "RM [min] – RM [max]" */
.brand-budget {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}
.brand-budget .input-group-text {
  color: var(--color-text-muted);
  background-color: #fff;
}
.brand-budget-dash {
  color: var(--color-text-muted);
}
/* No spinner arrows: amounts are typed (digits only, js/rate-input.js) */
.brand-budget input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.brand-budget input[type="number"]::-webkit-outer-spin-button,
.brand-budget input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* "Not sure yet?" note on the Audience step */
.brand-info {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(24, 124, 155, 0.18);
  border-radius: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background-color: var(--color-primary-light);
}
.brand-info strong {
  color: var(--bs-body-color);
}
.brand-info-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-weight: 700;
  color: var(--color-primary);
  background-color: #fff;
}

/* Password with a show/hide eye inside the field */
.brand-password {
  position: relative;
}
.brand-password .form-control {
  padding-right: 3rem;
}
.brand-password .form-control.is-valid {
  background-image: none; /* the eye sits where the tick would be */
}
.brand-eye {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  padding: 0.25rem 0.4rem;
  border: 0;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--color-text-muted);
  background: none;
}
.brand-eye:hover {
  color: var(--color-primary);
}
.brand-match {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-success);
}

/* "Your details" review on the Consent step */
.brand-review {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.9rem;
}
.brand-review-title {
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.brand-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem 2rem;
  margin: 0;
}
@media (min-width: 768px) {
  .brand-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.brand-review-grid > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.75rem;
  font-size: 0.9rem;
}
.brand-review-grid dt {
  font-weight: 400;
  color: var(--color-text-muted);
}
.brand-review-grid dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: break-word;
}

/* Consent box */
.brand-consent {
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(24, 124, 155, 0.18);
  border-radius: 0.9rem;
  background-color: var(--color-primary-light);
}

/* Success card buttons */
.brand-done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.brand-done-secondary {
  padding: 0.6rem 1.6rem;
  border-radius: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bs-body-color);
  background-color: #fff;
  border-color: var(--color-border);
}
.brand-done-secondary:hover {
  color: var(--color-primary);
  background-color: #fff;
  border-color: var(--color-primary);
}

/* ===========================================================
   Sign-in tabs (signin.php): "Inflooencer" and "Brand" tabs on
   one card, each with its own form panel. Behaviour in
   js/signin.js.
   =========================================================== */
.signin-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
}
.signin-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--color-border);
}
.signin-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: -1px; /* sit on the tab bar's bottom border */
  padding: 1rem 0.75rem;
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background-color: #f1f4f6;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.signin-tab:hover {
  color: var(--color-primary);
}
.signin-tab[aria-selected="true"] {
  color: var(--bs-body-color);
  background-color: #fff;
  border-bottom-color: var(--color-primary);
}
.signin-tab[aria-selected="true"] .bi {
  color: var(--color-primary);
}
.signin-tab:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 0.2rem rgba(24, 124, 155, 0.35);
}
.signin-panel {
  padding: 1.75rem 1.5rem;
}
@media (min-width: 768px) {
  .signin-panel {
    padding: 2rem 2.75rem 2.25rem;
  }
}
.signin-title {
  margin-bottom: 0.35rem;
  font-size: 1.6rem;
  font-weight: 700;
}
.signin-subtitle {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}
.signin-signup {
  margin-top: 1.25rem;
  color: var(--color-text-muted);
}
.signin-signup a {
  font-weight: 700;
}
