/* ══════════════════════════════════════════════════════════════════════════
   TOPBOARD — Exact High-Fidelity Design System
   Matches user uploaded UI reference exactly
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --tb-bg: #fffdfb;
  --tb-card-bg: #ffffff;
  --tb-text: #0f172a;
  --tb-muted: #64748b;
  --tb-border: #e2e8f0;
  --tb-border-subtle: #f1f5f9;
  
  --tb-primary: #ea580c;
  --tb-primary-hover: #c2410c;
  --tb-primary-light: #fff7ed;
  --tb-peach-pill: #ffedd5;
  --tb-primary-border: #fed7aa;

  --tb-gold: #f59e0b;
  --tb-gold-light: #fefce8;
  --tb-gold-border: #fef08a;
  --tb-gold-btn: #fbbf24;

  --tb-green: #16a34a;
  --tb-green-light: #ecfdf5;
  --tb-red: #dc2626;
  --tb-red-light: #fef2f2;
}

body {
  background-color: var(--tb-bg);
  background-image: radial-gradient(ellipse 60% 45% at 85% 10%, rgba(254, 215, 170, 0.35) 0%, rgba(255, 237, 213, 0.15) 50%, transparent 75%);
  background-repeat: no-repeat;
  color: var(--tb-text);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── Top Global Navbar ─────────────────────────────────────────── */
.tb-navbar-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.tb-navbar {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-sizing: border-box;
}

.tb-nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.tb-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.tb-brand-crown {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.tb-brand-text {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #7c3aed;
}

.tb-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.tb-nav-link {
  color: #475569;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.tb-nav-link:hover {
  color: #0f172a;
}

.tb-nav-link.active {
  color: #ea580c;
  font-weight: 700;
}

.tb-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--tb-primary);
  border-radius: 9999px;
}

.tb-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tb-search-container {
  position: relative;
  width: 250px;
}

.tb-search-input {
  width: 100%;
  box-sizing: border-box;
  background: #f8fafc;
  border: 1px solid var(--tb-border);
  border-radius: 9999px;
  padding: 9px 16px 9px 36px;
  font-size: 13.5px;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.tb-search-input:focus {
  background: #ffffff;
  border-color: var(--tb-primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.14);
  width: 280px;
}

.tb-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
}

.tb-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--tb-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 15px;
  transition: all 0.15s ease;
}

.tb-icon-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.tb-btn-login {
  background: #ffffff;
  border: 1px solid var(--tb-border);
  border-radius: 9999px;
  padding: 8px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tb-btn-login:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.tb-btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 9999px;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
  transition: all 0.18s ease;
}

.tb-btn-primary:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.38);
}

/* ─── Page Layout (2 Columns: Main Left, Sidebar Right from top) ─── */
.tb-page-layout {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 20px 32px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.tb-main-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

/* ─── Hero Top 3 Podium (Single Unified Card) ────────────────────── */
.tb-top3-single-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 44px 24px 24px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  position: relative;
}

.tb-hero-section {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  box-sizing: border-box;
}

.tb-hero-left {
  max-width: 480px;
  flex: 1;
  min-width: 300px;
}

.tb-hero-right {
  flex-shrink: 0;
}

.tb-hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #0f172a;
  margin: 0;
}

.tb-hero-title span.highlight {
  color: var(--tb-primary);
}

.tb-hero-desc {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--tb-muted);
  margin-top: 18px;
  max-width: 480px;
}

.tb-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.tb-hero-btn-cta {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tb-hero-btn-cta:hover {
  background: var(--tb-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.38);
}

.tb-hero-btn-sec {
  background: #fff7ed;
  color: #0f172a;
  border: 1px solid #fed7aa;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.18s ease;
}

.tb-hero-btn-sec:hover {
  background: #ffedd5;
  border-color: #ea580c;
  color: #ea580c;
}

/* ─── Hero Podium (Top 3 Cards) ─────────────────────────────────── */
.tb-podium-wrap {
  display: grid;
  grid-template-columns: 1fr 1.06fr 1fr;
  align-items: stretch;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 2px;
  width: 100%;
}

.tb-podium-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.tb-podium-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -2px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.tb-podium-card.rank-1 {
  background: #fffcf9;
  border: 1.5px solid #fed7aa;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.08);
  z-index: 2;
}

.tb-podium-card.rank-1:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.14);
}

/* Pinned Shield Badges */
.tb-podium-shield {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  border-radius: 6px;
  z-index: 4;
}

.shield-silver {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.shield-gold {
  position: static;
  transform: none;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  color: #ea580c;
  font-weight: 800;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.12);
  margin-top: 1px;
}

.shield-bronze {
  background: #ffedd5;
  border: 1px solid #fed7aa;
  color: #c2410c;
  box-shadow: 0 2px 4px rgba(194, 65, 12, 0.1);
}

/* Crown & Badge Anchor for #1 */
.tb-crown-badge-anchor {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 5;
}

.tb-crown-glow-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tb-hero-crown {
  width: 34px;
  height: 26px;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.35));
  margin-bottom: 2px;
}

/* Horizontal Podium Header: Avatar + Info */
.tb-podium-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.tb-avatar-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.tb-podium-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
}

.tb-company-name {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  text-decoration: none;
  display: block;
  transition: color 0.15s ease;
}
.tb-company-name:hover {
  color: #ea580c;
}

.tb-company-domain {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  text-decoration: none;
  display: block;
  transition: color 0.15s ease;
}
.tb-company-domain:hover {
  color: #ea580c;
}

.tb-podium-price {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin: 18px 0 16px;
  letter-spacing: -0.02em;
}

.tb-btn-challenge-subtle {
  background: #fff8f5;
  border: 1px solid #ffedd5;
  color: #ea580c;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.tb-btn-challenge-subtle:hover {
  background: #ffedd5;
  border-color: #fed7aa;
  color: #c2410c;
}

.tb-btn-challenge-gold {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(234, 88, 12, 0.28);
  transition: all 0.15s ease;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.tb-btn-challenge-gold:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(234, 88, 12, 0.35);
}

/* ─── Main Two-Column Layout ────────────────────────────────────── */
.tb-main-container {
  width: 100%;
  max-width: 100%;
  margin: 0 0 60px 0;
  padding: 0 40px;
  display: grid;
  grid-template-columns: minmax(700px, 980px) 340px;
  justify-content: start;
  gap: 32px;
  align-items: start;
  box-sizing: border-box;
}

/* ─── Left Section: Filter Tabs & Leaderboard Table ─────────────── */
.tb-table-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tb-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.tb-filters-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tb-filters-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
}

.tb-filters-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #ea580c;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
}

.tb-tag-clear {
  background: transparent;
  border: none;
  color: #ea580c;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.tb-cat-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tb-cat-pill {
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.tb-cat-pill {
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  border: 1px solid var(--tb-border);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.tb-cat-pill:hover {
  color: #ea580c;
  background: #fff7ed;
  border-color: #fed7aa;
}

.tb-cat-pill.active {
  background: #ffedd5;
  color: #ea580c;
  border-color: #fed7aa;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12);
}

.tb-time-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 3px;
  border-radius: 9999px;
}

.tb-time-pill {
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tb-time-pill.active {
  background: var(--tb-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.22);
}

/* ─── Table Card ────────────────────────────────────────────────── */
.tb-table-card {
  background: #ffffff;
  border: 1px solid var(--tb-border);
  border-radius: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.tb-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tb-table th {
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  border-bottom: 1px solid var(--tb-border);
  background: #ffffff;
}

.tb-table td {
  padding: 16px 18px;
  font-size: 14px;
  color: #0f172a;
  border-bottom: 1px solid var(--tb-border-subtle);
  vertical-align: middle;
}

.tb-table tr:last-child td {
  border-bottom: none;
}

.tb-table tbody tr {
  transition: background-color 0.15s ease;
}

.tb-table tbody tr:hover {
  background-color: #fffaf5;
}

/* Row 1 Golden Highlight */
.tb-table tbody tr.row-rank-1 {
  background-color: #fffbf5;
  border-bottom: 1px solid #fed7aa;
}

.tb-table tbody tr.row-rank-1:hover {
  background-color: #fff6eb;
}

.tb-rank-col {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  width: 44px;
}

.tb-rank-crown-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tb-company-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.tb-table-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.tb-table-company-info {
  display: flex;
  flex-direction: column;
}

.tb-table-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.tb-table-name:hover {
  color: var(--tb-primary);
}

.tb-table-domain {
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}
.tb-table-domain:hover {
  color: var(--tb-primary);
}

.tb-table-desc {
  color: #475569;
  font-size: 13.5px;
  max-width: 240px;
  line-height: 1.4;
}

.tb-contrib-amount {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.tb-stat-cell {
  font-size: 13.5px;
  color: #475569;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.tb-stat-icon {
  color: #94a3b8;
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.tb-impressions-cell {
  font-size: 13.5px;
  color: #475569;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tb-impressions-cell:hover .tb-stat-icon {
  color: #ea580c;
  transform: scale(1.12);
}

.tb-clicks-cell {
  font-size: 13.5px;
  color: #475569;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tb-clicks-cell:hover .tb-stat-icon {
  color: #2563eb;
  transform: scale(1.12);
}

.tb-trend-up {
  color: #16a34a;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.tb-trend-down {
  color: #dc2626;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.tb-trend-same {
  color: #94a3b8;
  font-weight: 700;
  font-size: 13px;
}

.tb-btn-table-challenge {
  background: #fff8f5;
  border: 1px solid #ffedd5;
  color: #ea580c;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tb-btn-table-challenge:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.25);
}

.tb-load-more-wrap {
  padding: 16px;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid var(--tb-border-subtle);
}

.tb-btn-load-more {
  background: #ffffff;
  border: 1px solid var(--tb-border);
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tb-btn-load-more:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* ─── Right Section: Sidebar Cards ──────────────────────────────── */
.tb-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tb-card {
  background: #ffffff;
  border: 1px solid var(--tb-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* ─── Card 1: Join a Board (Inline Form Card, No Popups) ─── */
.tb-card-join-form {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.tb-card-join-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #f97316 0%, #ea580c 50%, #f59e0b 100%);
}

.tb-card-join-form:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
}

.tb-card-form-header {
  margin-bottom: 16px;
}

.tb-card-form-header .tb-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-card-form-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.tb-card-form-sub {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0;
  line-height: 1.35;
}

.tb-inline-join-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.tb-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tb-form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tb-form-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
}

.tb-url-scraping-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #ea580c;
  font-weight: 700;
}

.tb-scrape-mini-spinner {
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(234, 88, 12, 0.25);
  border-top-color: #ea580c;
  border-radius: 50%;
  animation: tbSpin 0.7s linear infinite;
}

.tb-url-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 600;
  margin-top: 4px;
}

.tb-url-status-banner.social {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.tb-url-status-banner.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.tb-status-icon {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

.tb-select-wrap {
  position: relative;
}

.tb-form-select {
  padding-right: 28px !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-color: #f8fafc;
}

.tb-select-chevron {
  position: absolute;
  right: 12px;
  font-size: 11px;
  color: #94a3b8;
  pointer-events: none;
}

.tb-logo-origin-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tb-logo-origin-badge.auto {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.tb-logo-origin-badge.manual {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.tb-form-upload-zone.highlight-social {
  border-color: #f59e0b;
  background: #fffdf5;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.12);
}

.tb-preview-change-btn {
  font-size: 11px;
  font-weight: 700;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tb-preview-change-btn:hover {
  background: #ffedd5;
  border-color: #fb923c;
}

.tb-form-req {
  color: #ef4444;
  font-size: 13px;
}

.tb-form-opt {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.tb-form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tb-form-input-icon {
  position: absolute;
  left: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.tb-form-input {
  width: 100%;
  box-sizing: border-box;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9.5px 12px 9.5px 34px;
  font-size: 13px;
  color: #0f172a;
  outline: none;
  transition: all 0.16s ease;
  font-family: inherit;
}

.tb-form-input:focus {
  background: #ffffff;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.tb-form-input::placeholder {
  color: #94a3b8;
  font-size: 12.5px;
}

/* Image Upload Zone */
.tb-form-upload-zone {
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.18s ease;
  display: block;
}

.tb-form-upload-zone:hover {
  border-color: #ea580c;
  background: #fff7ed;
}

.tb-upload-zone-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-upload-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
}

.tb-form-upload-zone:hover .tb-upload-icon-box {
  color: #ea580c;
  border-color: #fed7aa;
}

.tb-upload-texts {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.tb-upload-prompt {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
}

.tb-upload-specs {
  font-size: 11px;
  color: #94a3b8;
}

/* Selected Logo Preview Row */
.tb-preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
}

.tb-preview-thumb {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  flex-shrink: 0;
}

.tb-preview-details {
  flex: 1;
  min-width: 0;
}

.tb-preview-filename {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-preview-status {
  font-size: 11px;
  color: #16a34a;
  font-weight: 600;
}

.tb-preview-del {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.tb-preview-del:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Tier Segmented Control (Free vs Paid) */
.tb-tier-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
}

.tb-tier-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  transition: all 0.16s ease;
  font-family: inherit;
}

.tb-tier-pill:hover {
  color: #0f172a;
}

.tb-tier-pill.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tb-tier-pill-icon {
  font-size: 14px;
}

.tb-tier-pill-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1.5px 6.5px;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #475569;
}

.tb-tier-pill.active .tb-tier-pill-badge {
  background: #dcfce7;
  color: #15803d;
}

.tb-tier-pill.active:nth-child(2) .tb-tier-pill-badge {
  background: #ffedd5;
  color: #c2410c;
}

/* Amount Reveal Field (When Paid is clicked) */
.tb-amount-reveal-field {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 12px 14px;
  animation: tbAmountSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tbAmountSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tb-amount-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.tb-amount-currency-sym {
  position: absolute;
  left: 12px;
  font-size: 15px;
  font-weight: 900;
  color: #ea580c;
  pointer-events: none;
}

.tb-amount-number-input {
  padding-left: 28px !important;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  background: #ffffff;
}

.tb-chip-group {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.tb-mini-chip {
  flex: 1;
  padding: 5px 0;
  border-radius: 7px;
  border: 1px solid #fed7aa;
  background: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  color: #9a3412;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  font-family: inherit;
}

.tb-mini-chip:hover,
.tb-mini-chip.active {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}

.tb-form-subhint {
  font-size: 11px;
  color: #9a3412;
  margin-top: 6px;
  line-height: 1.35;
}

/* Free tier notice */
.tb-free-tier-notice {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 12px;
  color: #15803d;
  font-weight: 600;
  line-height: 1.38;
}

.tb-free-icon {
  font-weight: 800;
  color: #16a34a;
}

/* Inline Alerts (No popups) */
.tb-inline-alert {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.tb-inline-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.tb-inline-alert.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

/* Submit Button */
.tb-btn-join-form-submit {
  width: 100%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 11px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.32);
  transition: all 0.18s ease;
  box-sizing: border-box;
  font-family: inherit;
  margin-top: 2px;
}

.tb-btn-join-form-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.42);
}

.tb-btn-join-form-submit:active:not(:disabled) {
  transform: translateY(0);
}

.tb-btn-join-form-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.tb-submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tb-btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: tbSpin 0.7s linear infinite;
}

@keyframes tbSpin {
  to { transform: rotate(360deg); }
}

/* Card 2: Live Activity */
.tb-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tb-card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
  animation: tbPulse 2s infinite;
}

@keyframes tbPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(234, 88, 12, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

.tb-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.tb-card-action-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tb-primary);
  text-decoration: none;
}

.tb-card-action-link:hover {
  text-decoration: underline;
}

.tb-activity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tb-activity-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tb-activity-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tb-activity-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.tb-activity-icon.icon-crown { background: #fef3c7; color: #b45309; }
.tb-activity-icon.icon-up { background: #ecfdf5; color: #16a34a; font-weight: 800; }
.tb-activity-icon.icon-down { background: #fef2f2; color: #dc2626; font-weight: 800; }
.tb-activity-icon.icon-join { background: #f1f5f9; color: #475569; font-weight: 800; }

.tb-activity-avatar-sq {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tb-activity-details {
  display: flex;
  flex-direction: column;
}

.tb-activity-text {
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.35;
}

.tb-activity-time {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.tb-activity-amount {
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
  white-space: nowrap;
}

.tb-activity-amount.free {
  color: #64748b;
}

/* Card 2: Wall of Fame */
.tb-wof-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 0 0 16px;
}

.tb-wof-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.tb-wof-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tb-wof-item .tb-wof-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
  margin: 0;
}

.tb-wof-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tb-wof-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.tb-wof-meta {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.2;
}

.tb-wof-footer-btn {
  display: block;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  background: #ffffff;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.tb-wof-footer-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* Card 4: Join TOPBOARD Today */
.tb-card-join {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tb-join-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tb-join-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.tb-join-desc {
  font-size: 13px;
  color: var(--tb-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ─── Bottom Live Bar ───────────────────────────────────────────── */
.tb-live-bar {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.tb-live-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #ffffff;
  border: 1px solid var(--tb-border);
  border-radius: 12px;
  font-size: 13px;
  color: #475569;
}

.tb-live-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-live-bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* ─── Responsive Adjustments ────────────────────────────────────── */
/* ─── Responsive Adjustments (Desktop preserved down to 992px, Mobile at <=768px) ─── */
@media (min-width: 992px) and (max-width: 1320px) {
  .tb-page-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    padding: 18px 22px 50px;
    gap: 22px;
  }
  .tb-podium-wrap {
    gap: 14px;
  }
  .tb-company-name {
    font-size: 14px;
  }
  .tb-podium-price {
    font-size: 22px;
  }
  .tb-btn-challenge-subtle,
  .tb-btn-challenge-gold {
    font-size: 13px;
    padding: 9px 12px;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .tb-page-layout {
    grid-template-columns: 1fr;
    padding: 20px 20px 50px;
    gap: 24px;
  }
  .tb-podium-wrap {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .tb-page-layout {
    grid-template-columns: 1fr;
    padding: 16px 14px 40px;
    gap: 20px;
  }
  .tb-top3-single-card {
    padding: 24px 14px 20px;
    border-radius: 16px;
  }
  /* On mobile, stack podium cards cleanly so name, avatar, price, and challenge button are large and legible */
  .tb-podium-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 4px;
  }
  .tb-podium-card {
    width: 100%;
    max-width: 100%;
    padding: 26px 18px 18px;
    box-sizing: border-box;
  }
  .tb-podium-card.rank-1 {
    order: -1; /* Keep champion #1 at top */
    padding: 30px 18px 20px;
  }
  .tb-podium-header-row {
    justify-content: flex-start;
    gap: 14px;
  }
  .tb-avatar-box {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .tb-company-name {
    font-size: 16px;
  }
  .tb-company-domain {
    font-size: 13px;
  }
  .tb-podium-price {
    font-size: 26px;
    margin: 14px 0;
    text-align: left;
    padding-left: 2px;
  }
  .tb-table-card {
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tb-table {
    min-width: 520px;
  }
  .tb-table th,
  .tb-table td {
    padding: 12px 12px;
    font-size: 13px;
  }
  .tb-table-desc,
  .tb-table th:nth-child(3),
  .tb-table td:nth-child(3) {
    display: none;
  }
  .tb-sidebar {
    gap: 18px;
  }
  .tb-card {
    padding: 20px 16px;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .tb-page-layout {
    padding: 12px 10px 36px;
    gap: 16px;
  }
  .tb-filters-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .tb-time-pills {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .tb-time-pill {
    flex: 1;
    text-align: center;
    padding: 6px 6px;
    font-size: 12px;
  }
}

/* ─── Identity & Live Logo / Avatar Component (Join Card) ─────────────── */
.tb-identity-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 2px;
}

.tb-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.tb-avatar-trigger {
  display: block;
  cursor: pointer;
  position: relative;
  border-radius: 12px;
  transition: transform 0.15s ease;
  user-select: none;
}

.tb-avatar-trigger:hover {
  transform: scale(1.04);
}

.tb-live-logo-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  position: relative;
}

.tb-live-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  display: block;
}

.tb-avatar-edit-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ea580c;
  color: #ffffff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.tb-live-avatar-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  position: relative;
  letter-spacing: -0.02em;
}

.tb-avatar-upload-hint {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tb-avatar-loading {
  background: #f1f5f9 !important;
  border: 1.5px dashed #cbd5e1;
}

.tb-avatar-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(234, 88, 12, 0.25);
  border-top-color: #ea580c;
  border-radius: 50%;
  animation: tbSpin 0.7s linear infinite;
}

@keyframes tbSpin {
  to {
    transform: rotate(360deg);
  }
}

.tb-identity-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tb-form-label-compact {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
  margin: 0;
}

.tb-form-opt {
  font-size: 9.5px;
  font-weight: 500;
  color: #94a3b8;
  text-transform: none;
}

.tb-form-input-compact {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tb-form-input-compact:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.12);
}

.tb-avatar-actions-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.tb-btn-subtle-upload {
  font-size: 11px;
  font-weight: 700;
  color: #ea580c;
  cursor: pointer;
  transition: color 0.15s;
}

.tb-btn-subtle-upload:hover {
  color: #c2410c;
  text-decoration: underline;
}

.tb-btn-subtle-remove {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s;
}

.tb-btn-subtle-remove:hover {
  color: #dc2626;
  text-decoration: underline;
}

/* ─── Lock Policy Notice ─────────────────────────────────────────────── */
.tb-lock-policy-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  margin-top: 8px;
  padding: 6px 2px 0;
  text-align: left;
}

.tb-lock-icon {
  font-size: 12px;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── Universal Inner Page Content Adaptation inside .tb-main-column ─── */
.tb-main-column .hiw-page-wrapper,
.tb-main-column .cat-page-wrapper,
.tb-main-column .wof-page-wrapper,
.tb-main-column .abt-page-wrapper,
.tb-main-column .search-universe {
  min-height: auto;
  background: none !important;
  overflow: visible;
  width: 100%;
  padding: 0;
  margin: 0;
}

.tb-main-column .hiw-container,
.tb-main-column .cat-container,
.tb-main-column .wof-container,
.tb-main-column .abt-container,
.tb-main-column .search-container {
  padding: 0 0 30px 0 !important;
  max-width: 100% !important;
  margin: 0;
}

.tb-main-column .hiw-hero-section,
.tb-main-column .cat-hero-section,
.tb-main-column .wof-hero-section,
.tb-main-column .abt-hero-section {
  margin-bottom: 36px;
}

@media (max-width: 1200px) {
  .tb-main-column .hiw-hero-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .tb-main-column .cat-hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tb-main-column .abt-hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


