@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bc-bg: #09090b;
  --bc-surface: #141417;
  --bc-surface-hover: #18181b;
  --bc-surface-dashed: #111114;
  --bc-border: rgba(255, 255, 255, 0.09);
  --bc-border-strong: rgba(255, 255, 255, 0.16);
  --bc-text: #fafafa;
  --bc-text-muted: #9f9fa9;
  --bc-text-subtle: #71717a;
  --bc-primary: #1f3fad;
  --bc-primary-hover: #254edb;
  --bc-primary-text: #eff6ff;
  --bc-yellow: #facc15;
  --bc-radius-card: 16px;
  --bc-radius-md: 12px;
  --bc-radius-sm: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bc-bg);
  color: var(--bc-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Sticky Top Header */
.bc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bc-border);
}

.bc-header-inner {
  max-width: 480px;
  margin: 0 auto;
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bc-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bc-logo-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--bc-yellow);
  flex-shrink: 0;
  display: inline-block;
}

.bc-logo-img {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.bc-brand-name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--bc-text);
}

.bc-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bc-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--bc-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bc-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--bc-text);
}

.bc-icon-btn svg {
  width: 19px;
  height: 19px;
}

/* Main App Container */
.bc-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 16px 36px;
  min-height: calc(100vh - 54px);
}

/* Intro Section */
.bc-eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--bc-text-muted);
}

.bc-page-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bc-text);
  line-height: 1.25;
}

.bc-info-box {
  background: var(--bc-surface-dashed);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--bc-radius-md);
  padding: 12px 14px;
  color: var(--bc-text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Search & Filter Toolbar */
.bc-search-wrap {
  margin-bottom: 16px;
}

.bc-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bc-search-input-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.bc-search-icon {
  position: absolute;
  left: 12px;
  color: var(--bc-text-subtle);
  pointer-events: none;
  display: inline-flex;
}

.bc-search-icon svg {
  width: 16px;
  height: 16px;
}

.bc-search-input {
  width: 100%;
  height: 40px;
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: 10px;
  padding: 0 36px 0 36px;
  color: var(--bc-text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.bc-search-input::placeholder {
  color: var(--bc-text-subtle);
}

.bc-search-input:focus {
  border-color: rgba(255, 255, 255, 0.24);
  background: var(--bc-surface-hover);
}

.bc-clear-btn {
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--bc-text-muted);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.bc-clear-btn.is-visible {
  display: inline-flex;
}

.bc-filter-toggle-btn {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  color: var(--bc-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.bc-filter-toggle-btn:hover,
.bc-filter-toggle-btn.is-active {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--bc-text);
  background: var(--bc-surface-hover);
}

.bc-filter-toggle-btn svg {
  width: 15px;
  height: 15px;
}

.bc-filter-badge {
  background: var(--bc-primary);
  color: var(--bc-primary-text);
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.bc-filter-badge.is-visible {
  display: inline-flex;
}

/* Quick Pills Row */
.bc-pills-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bc-pills-scroll::-webkit-scrollbar {
  display: none;
}

.bc-pill-btn {
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--bc-border);
  background: var(--bc-surface);
  color: var(--bc-text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.bc-pill-btn:hover {
  border-color: var(--bc-border-strong);
  color: var(--bc-text);
}

.bc-pill-btn.is-active {
  background: #fafafa;
  color: #09090b;
  border-color: #fafafa;
}

/* Expandable Filter Drawer */
.bc-filter-drawer {
  display: none;
  margin-top: 10px;
  padding: 12px;
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-md);
}

.bc-filter-drawer.is-open {
  display: block;
}

.bc-filter-section + .bc-filter-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--bc-border);
}

.bc-filter-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bc-text-subtle);
  margin-bottom: 8px;
}

.bc-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bc-chip-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--bc-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--bc-text-muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.bc-chip-btn.is-active {
  background: rgba(31, 63, 173, 0.28);
  border-color: rgba(96, 165, 250, 0.45);
  color: #dbeafe;
}

.bc-sort-select {
  width: 100%;
  height: 36px;
  background: #09090b;
  border: 1px solid var(--bc-border);
  border-radius: 8px;
  color: var(--bc-text);
  padding: 0 10px;
  font-size: 13px;
  outline: none;
}

.bc-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--bc-text-subtle);
}

.bc-reset-link {
  border: none;
  background: transparent;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

/* Campaign Card */
.bc-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bc-card {
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-card);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.bc-card:hover {
  border-color: var(--bc-border-strong);
}

.bc-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #101014;
  overflow: hidden;
  cursor: pointer;
}

.bc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bc-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
  color: var(--bc-text-subtle);
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.bc-card-placeholder-monogram {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.14);
  color: var(--bc-yellow);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bc-card-body {
  padding: 16px;
}

.bc-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bc-status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 999px;
}

.bc-status-open {
  background: rgba(20, 83, 45, 0.55);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.18);
}

.bc-status-coming_soon {
  background: rgba(113, 63, 18, 0.45);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.22);
}

.bc-status-closed {
  background: rgba(127, 29, 29, 0.45);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.bc-platforms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e4e4e7;
}

.bc-platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.bc-platform-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.bc-card-title {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--bc-text);
  cursor: pointer;
}

.bc-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.bc-brand-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #27272a;
}

.bc-brand-initial {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #27272a;
  color: #e4e4e7;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bc-brand-label {
  font-size: 13px;
  color: #a1a1aa;
  font-weight: 400;
}

.bc-card-fee {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bc-text);
}

.bc-card-summary {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #a1a1aa;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

.bc-card-meta {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--bc-text-subtle);
}

.bc-cta-btn {
  margin-top: 14px;
  width: 100%;
  height: 42px;
  border-radius: var(--bc-radius-sm);
  border: none;
  background: var(--bc-primary);
  color: var(--bc-primary-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.15s ease;
}

.bc-cta-btn:hover {
  background: var(--bc-primary-hover);
}

.bc-cta-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Empty & Secondary States */
.bc-empty-state {
  background: var(--bc-surface);
  border: 1px dashed var(--bc-border-strong);
  border-radius: var(--bc-radius-card);
  padding: 36px 20px;
  text-align: center;
  color: var(--bc-text-muted);
}

.bc-empty-state h3 {
  margin: 0 0 6px;
  color: var(--bc-text);
  font-size: 16px;
}

.bc-empty-state p {
  margin: 0 0 16px;
  font-size: 13px;
}

.bc-secondary-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--bc-border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--bc-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bc-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Fixed Bottom Navigation */
.bc-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(9, 9, 11, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--bc-border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bc-bottom-nav-inner {
  max-width: 480px;
  margin: 0 auto;
  height: 58px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.bc-nav-item {
  border: none;
  background: transparent;
  color: var(--bc-text-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.bc-nav-item svg {
  width: 20px;
  height: 20px;
}

.bc-nav-item.is-active {
  color: var(--bc-text);
}

/* Modal Sheet */
.bc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.bc-modal-backdrop.is-open {
  display: flex;
}

@media (min-width: 540px) {
  .bc-modal-backdrop {
    align-items: center;
    padding: 16px;
  }
}

.bc-modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  background: var(--bc-surface);
  border: 1px solid var(--bc-border-strong);
  border-radius: 18px 18px 0 0;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 540px) {
  .bc-modal-sheet {
    border-radius: 18px;
    max-height: 88vh;
  }
}

.bc-modal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(20, 20, 23, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bc-border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bc-modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--bc-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bc-modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bc-modal-body {
  padding: 16px;
}

.bc-detail-banner {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #101014;
}

.bc-detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bc-detail-brief {
  margin: 14px 0;
  padding: 12px 14px;
  background: #0e0e11;
  border: 1px solid var(--bc-border);
  border-radius: 12px;
  font-size: 13px;
  color: #d4d4d8;
  line-height: 1.6;
  white-space: pre-line;
}

.bc-apply-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--bc-border);
}

.bc-apply-box h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.bc-form-group {
  margin-bottom: 12px;
}

.bc-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--bc-text-muted);
  margin-bottom: 5px;
}

.bc-input, .bc-textarea {
  width: 100%;
  background: #09090b;
  border: 1px solid var(--bc-border);
  border-radius: 9px;
  color: var(--bc-text);
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}

.bc-input:focus, .bc-textarea:focus {
  border-color: rgba(96, 165, 250, 0.55);
}

.bc-textarea {
  min-height: 76px;
  resize: vertical;
}

.bc-alert-success {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(20, 83, 45, 0.45);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: #86efac;
  font-size: 13px;
  margin-top: 10px;
}

.bc-alert-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.45);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #fca5a5;
  font-size: 13px;
  margin-top: 10px;
}

/* Secondary Tab Panels */
.bc-panel-section {
  display: none;
}

.bc-panel-section.is-active {
  display: block;
}

.bc-profile-card {
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-card);
  padding: 16px;
}

.bc-sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.bc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #fafafa;
  color: #09090b;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bc-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
