/*
Theme Name: Founder Money Tools
Theme URI: https://founder-money.jp
Author: Founder Money
Author URI: https://founder-money.jp
Description: Modern, light, professional theme for Founder Money Tools platform.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: founder-money
*/

:root {
  --fm-bg: #ffffff;
  --fm-bg-soft: #f8fafc;
  --fm-bg-muted: #f1f5f9;
  --fm-bg-card: #ffffff;
  --fm-border: #e2e8f0;
  --fm-border-strong: #cbd5e1;
  --fm-text: #0f172a;
  --fm-text-muted: #475569;
  --fm-text-soft: #94a3b8;
  --fm-accent: #059669;
  --fm-accent-strong: #047857;
  --fm-accent-bg: #ecfdf5;
  --fm-danger: #dc2626;
  --fm-warn: #d97706;
  --fm-warn-bg: #fef3c7;
  --fm-radius: 12px;
  --fm-radius-sm: 8px;
  --fm-shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --fm-shadow: 0 4px 12px rgba(15,23,42,0.06);
  --fm-shadow-lg: 0 12px 32px rgba(15,23,42,0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--fm-bg);
  color: var(--fm-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--fm-accent); text-decoration: none; }
a:hover { color: var(--fm-accent-strong); }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
img { max-width: 100%; height: auto; }

.fm-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.fm-container--narrow { max-width: 960px; }

/* Header */
.fm-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fm-border);
}
.fm-header__inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.fm-logo { font-weight: 700; font-size: 17px; color: var(--fm-text); letter-spacing: -0.01em; white-space: nowrap; }
.fm-logo__accent { color: var(--fm-accent); }
.fm-nav { display: flex; align-items: center; gap: 20px; }
.fm-nav a { color: var(--fm-text-muted); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.fm-nav a:hover { color: var(--fm-text); }

.fm-header__search { flex: 1; max-width: 460px; }
.fm-search-wrap { position: relative; }
.fm-search-wrap::before {
  content: ''; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain; pointer-events: none;
}
.fm-search-input {
  width: 100%; height: 38px; padding: 0 12px 0 36px;
  border: 1px solid var(--fm-border); border-radius: var(--fm-radius-sm);
  background: var(--fm-bg-soft); color: var(--fm-text); font-size: 14px; outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.fm-search-input:focus {
  border-color: var(--fm-accent); background: var(--fm-bg);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
}

.fm-header__right { display: flex; align-items: center; gap: 10px; }
.fm-locale-select {
  height: 36px; padding: 0 28px 0 10px;
  border: 1px solid var(--fm-border); border-radius: var(--fm-radius-sm);
  background: var(--fm-bg-soft); color: var(--fm-text); font-size: 13px;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 14px;
}

/* Buttons */
.fm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: var(--fm-radius-sm);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.15s; border: 1px solid transparent; text-decoration: none; white-space: nowrap;
}
.fm-btn--primary { background: var(--fm-text); color: white; }
.fm-btn--primary:hover { background: #1e293b; color: white; }
.fm-btn--accent { background: var(--fm-accent); color: white; }
.fm-btn--accent:hover { background: var(--fm-accent-strong); color: white; }
.fm-btn--ghost { background: var(--fm-bg); color: var(--fm-text); border-color: var(--fm-border); }
.fm-btn--ghost:hover { background: var(--fm-bg-soft); border-color: var(--fm-border-strong); color: var(--fm-text); }
.fm-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* Hero */
.fm-hero { padding: 80px 0 56px; text-align: center; }
.fm-hero__eyebrow {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--fm-accent-bg); color: var(--fm-accent-strong);
  font-size: 12px; font-weight: 600; margin-bottom: 18px; letter-spacing: 0.02em;
}
.fm-hero__title {
  font-size: 48px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em;
  margin: 0 0 18px; color: var(--fm-text);
}
.fm-hero__title-accent { color: var(--fm-accent); }
.fm-hero__subtitle {
  font-size: 18px; color: var(--fm-text-muted); max-width: 640px; margin: 0 auto 28px;
}
.fm-hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 700px) {
  .fm-header__inner { flex-wrap: wrap; height: auto; padding: 10px 16px; row-gap: 8px; }
  .fm-header__search { display: none; }
  .fm-nav { gap: 14px; }
  .fm-nav a { white-space: nowrap; }
  .fm-header__right { flex-wrap: wrap; gap: 8px; }
  .fm-locale-select { font-size: 12px; padding: 0 24px 0 8px; }
}

@media (max-width: 640px) {
  .fm-hero { padding: 48px 0 32px; }
  .fm-hero__title { font-size: 32px; }
  .fm-hero__subtitle { font-size: 16px; }
}

/* Tools grid */
.fm-tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.fm-tool-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--fm-bg-card); border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius); padding: 20px;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.fm-tool-card:hover {
  border-color: var(--fm-border-strong); box-shadow: var(--fm-shadow);
  transform: translateY(-2px); color: inherit;
}
.fm-tool-card__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.fm-tool-card__title { font-size: 16px; font-weight: 600; color: var(--fm-text); line-height: 1.35; margin: 0; }
.fm-tool-card__badge {
  flex-shrink: 0; padding: 2px 8px; border-radius: 999px;
  background: var(--fm-accent-bg); color: var(--fm-accent-strong);
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.fm-tool-card__badge--pro { background: var(--fm-warn-bg); color: var(--fm-warn); }
.fm-tool-card__desc { font-size: 13px; color: var(--fm-text-muted); line-height: 1.5; margin: 0; }
.fm-tool-card__cat { font-size: 12px; color: var(--fm-text-soft); margin-top: auto; }

/* Single tool layout */
.fm-tool-header { padding: 32px 0 8px; }
.fm-breadcrumb { font-size: 13px; color: var(--fm-text-muted); margin-bottom: 4px; }
.fm-breadcrumb a { color: var(--fm-text-muted); }
.fm-breadcrumb a:hover { color: var(--fm-text); }
.fm-cat-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--fm-accent-bg); color: var(--fm-accent-strong);
  font-size: 12px; font-weight: 600; margin-bottom: 12px;
}
.fm-tool-header__title {
  font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em;
  margin: 4px 0 10px; color: var(--fm-text);
}
.fm-tool-header__excerpt { font-size: 17px; color: var(--fm-text-muted); max-width: 720px; margin: 0; }

.fm-tool-layout {
  display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 28px;
}
@media (max-width: 900px) {
  .fm-tool-layout { grid-template-columns: 1fr; }
}
.fm-tool-block {
  background: var(--fm-bg-card); border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius); padding: 20px;
}
.fm-tool-block__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px;
}
.fm-tool-block__title {
  font-size: 12px; font-weight: 700; color: var(--fm-text);
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0;
}
.fm-tool-block__badge {
  padding: 3px 8px; border-radius: 999px;
  background: var(--fm-bg-muted); color: var(--fm-text-muted);
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
}
.fm-tool-block__badge--live { background: var(--fm-accent-bg); color: var(--fm-accent-strong); }

.fm-tutorial {
  background: var(--fm-bg-soft); border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius); padding: 24px 28px; margin-top: 20px;
}
.fm-tutorial h3 { font-size: 20px; font-weight: 700; margin: 0 0 12px; color: var(--fm-text); }
.fm-tutorial h4 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; color: var(--fm-text); }
.fm-tutorial p, .fm-tutorial li { font-size: 14px; color: var(--fm-text-muted); line-height: 1.6; }
.fm-tutorial ol, .fm-tutorial ul { padding-left: 22px; margin: 8px 0; }
.fm-tutorial code { background: var(--fm-bg-muted); padding: 1px 6px; border-radius: 4px; font-size: 13px; color: var(--fm-text); }

/* Inputs */
.fm-input, .fm-textarea, .fm-select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--fm-border); border-radius: var(--fm-radius-sm);
  background: var(--fm-bg); color: var(--fm-text); font-size: 14px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fm-textarea {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: 13px; resize: vertical;
}
.fm-input:focus, .fm-textarea:focus, .fm-select:focus {
  border-color: var(--fm-accent); box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
}
.fm-label { display: block; font-size: 13px; font-weight: 500; color: var(--fm-text); margin-bottom: 6px; }
.fm-help { font-size: 12px; color: var(--fm-text-soft); margin-top: 4px; }
.fm-status { font-size: 13px; margin-top: 8px; min-height: 1.2em; }
.fm-status--ok { color: var(--fm-accent-strong); }
.fm-status--err { color: var(--fm-danger); }
.fm-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }

/* Demo block content styling */
.fm-demo-pre {
  background: var(--fm-bg-soft); border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-sm); padding: 12px;
  font-family: ui-monospace, monospace; font-size: 12px;
  color: var(--fm-text); overflow-x: auto; line-height: 1.5; white-space: pre;
}
.fm-demo-note { font-size: 12px; color: var(--fm-text-soft); margin-top: 10px; line-height: 1.5; }

/* Locked panel */
.fm-locked { text-align: center; padding: 32px 16px; }
.fm-locked__title { font-size: 18px; font-weight: 600; margin: 0 0 8px; color: var(--fm-text); }
.fm-locked__desc { font-size: 14px; color: var(--fm-text-muted); max-width: 360px; margin: 0 auto 20px; }
.fm-locked__price {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--fm-accent-bg); color: var(--fm-accent-strong);
  font-size: 12px; font-weight: 700; margin-bottom: 12px;
}

/* Footer */
.fm-footer { border-top: 1px solid var(--fm-border); margin-top: 80px; padding: 28px 0; background: var(--fm-bg-soft); }
.fm-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--fm-text-muted);
}
.fm-footer a { color: var(--fm-text-muted); }
.fm-footer a:hover { color: var(--fm-text); }

/* Sections */
.fm-section { padding: 40px 0; }
.fm-section__title { font-size: 24px; font-weight: 700; margin: 0 0 4px; color: var(--fm-text); letter-spacing: -0.01em; }
.fm-section__subtitle { font-size: 15px; color: var(--fm-text-muted); margin: 0 0 24px; }

/* Category filter pills */
.fm-filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.fm-filter-pill {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  background: var(--fm-bg); border: 1px solid var(--fm-border); color: var(--fm-text-muted);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.fm-filter-pill:hover { border-color: var(--fm-border-strong); color: var(--fm-text); }
.fm-filter-pill.is-active { background: var(--fm-text); border-color: var(--fm-text); color: white; }

/* RTL */
[dir="rtl"] .fm-search-wrap::before { left: auto; right: 12px; }
[dir="rtl"] .fm-search-input { padding: 0 36px 0 12px; }

/* Skeleton loader */
@keyframes fm-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.fm-skeleton {
  background: linear-gradient(90deg, var(--fm-bg-muted) 25%, var(--fm-border) 50%, var(--fm-bg-muted) 75%);
  background-size: 200% 100%;
  animation: fm-shimmer 1.4s infinite linear;
  border-radius: 6px;
}

/* Pagination */
.fm-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.fm-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--fm-border); border-radius: var(--fm-radius-sm);
  background: var(--fm-bg); color: var(--fm-text); font-size: 13px; font-weight: 500;
}
.fm-pagination .page-numbers:hover { border-color: var(--fm-border-strong); color: var(--fm-text); }
.fm-pagination .page-numbers.current { background: var(--fm-text); border-color: var(--fm-text); color: white; }

/* No results */
.fm-empty {
  text-align: center; padding: 48px 16px; color: var(--fm-text-muted); font-size: 15px;
}

/* Hidden utility (Tailwind CDN removed, nothing replaced this) */
.hidden { display: none !important; }

/* Auth modal (passwordless email + code sign-in) */
.fm-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.fm-modal__backdrop {
  position: absolute; inset: 0; background: rgba(15,23,42,0.5);
}
.fm-modal__card {
  position: relative; z-index: 1; width: 100%; max-width: 360px;
  background: var(--fm-bg-card); border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius); box-shadow: var(--fm-shadow-lg);
  padding: 28px 24px; margin: 16px;
}
.fm-modal__close {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--fm-text-muted);
  font-size: 20px; line-height: 1; cursor: pointer; border-radius: var(--fm-radius-sm);
}
.fm-modal__close:hover { background: var(--fm-bg-soft); color: var(--fm-text); }
.fm-modal__card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.fm-modal__card p { margin: 0 0 16px; font-size: 14px; color: var(--fm-text-muted); }
.fm-modal__sent-to { font-weight: 600; color: var(--fm-text); }
.fm-modal__input {
  width: 100%; height: 40px; padding: 0 12px; margin-bottom: 12px;
  border: 1px solid var(--fm-border); border-radius: var(--fm-radius-sm);
  font-size: 14px; color: var(--fm-text); background: var(--fm-bg);
}
.fm-modal__input:focus { outline: none; border-color: var(--fm-accent); }
.fm-modal__step .fm-btn { width: 100%; margin-bottom: 8px; }
.fm-modal__error { color: var(--fm-danger); font-size: 13px; margin: 8px 0 0; }

/* Pricing page */
.fm-pricing-card { max-width: 420px; margin: 0 auto; text-align: center; }
.fm-pricing-card__price { font-size: 40px; font-weight: 700; color: var(--fm-text); margin: 0 0 4px; }
.fm-pricing-card__price span { font-size: 16px; font-weight: 500; color: var(--fm-text-muted); }
.fm-pricing-card__features { list-style: none; padding: 0; margin: 20px 0; text-align: left; display: inline-block; }
.fm-pricing-card__features li { padding: 6px 0; font-size: 14px; color: var(--fm-text-muted); }
.fm-pricing-card__features li::before { content: "\2713  "; color: var(--fm-accent); font-weight: 700; }
.fm-pricing-card .fm-btn { width: 100%; margin-top: 8px; }

/* Designer-tools shapes: image-upload, form-generator, text-in-image-out, wireframe-export */
.fm-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fm-form-row { display: flex; flex-direction: column; gap: 6px; }
.fm-form-row input[type="color"] { height: 40px; padding: 4px; cursor: pointer; }
.fm-form-row input[type="range"] { padding: 0; }

.fm-file-input { display: block; width: 100%; padding: 10px 12px; border: 1px dashed var(--fm-border-strong); border-radius: var(--fm-radius-sm); background: var(--fm-bg-soft); color: var(--fm-text-muted); font-size: 14px; }
.fm-upload-preview:empty, .fm-upload-output:empty, .fm-visual-preview:empty { display: none; }
.fm-upload-preview { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.fm-upload-preview img { max-width: 160px; max-height: 160px; border-radius: var(--fm-radius-sm); border: 1px solid var(--fm-border); }
.fm-upload-output img { max-width: 100%; border-radius: var(--fm-radius-sm); border: 1px solid var(--fm-border); margin-bottom: 10px; }
.fm-upload-output .fm-swatch-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.fm-color-swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--fm-text-muted); }
.fm-color-swatch__chip { width: 48px; height: 48px; border-radius: var(--fm-radius-sm); border: 1px solid var(--fm-border); }

.fm-visual-preview { min-height: 60px; border-radius: var(--fm-radius-sm); }
.fm-visual-preview img { max-width: 100%; border-radius: var(--fm-radius-sm); border: 1px solid var(--fm-border); }

.fm-wireframe-canvas { position: relative; width: 100%; height: 420px; background: var(--fm-bg-soft); border: 1px dashed var(--fm-border-strong); border-radius: var(--fm-radius-sm); overflow: hidden; }
.fm-wireframe-item { position: absolute; cursor: move; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--fm-text-muted); user-select: none; box-sizing: border-box; }
.fm-wireframe-item__del { position: absolute; top: -8px; right: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--fm-danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center; cursor: pointer; }

/* ══════════════════════════════════════════════════════════════════════════════
   BtoB Lead Finder — tool-specific styles (v1.4.0)
══════════════════════════════════════════════════════════════════════════════ */

/* ── Filter bar ────────────────────────────────────────────────────────────── */
.btob-filter-bar { margin-bottom: 1.25rem; }
.btob-filter-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.btob-select {
  flex: 1 1 160px; max-width: 220px;
  padding: .55rem .8rem; border: 1px solid var(--fm-border-strong);
  border-radius: var(--fm-radius-sm); background: var(--fm-bg-soft);
  color: var(--fm-text); font-size: .9rem; cursor: pointer;
  transition: border-color .15s;
}
.btob-select:focus { outline: none; border-color: var(--fm-accent); }
.btob-query-input {
  flex: 2 1 200px; padding: .55rem .8rem;
  border: 1px solid var(--fm-border-strong); border-radius: var(--fm-radius-sm);
  background: var(--fm-bg-soft); color: var(--fm-text); font-size: .9rem;
  transition: border-color .15s;
}
.btob-query-input:focus { outline: none; border-color: var(--fm-accent); }
.btob-search-btn { flex-shrink: 0; white-space: nowrap; }

/* ── Loader ─────────────────────────────────────────────────────────────────── */
.btob-loader { padding: 1.5rem 0; text-align: center; }
.btob-loader__bar {
  height: 4px; background: var(--fm-border); border-radius: 99px;
  overflow: hidden; margin-bottom: .9rem;
}
.btob-loader__fill {
  height: 100%; background: linear-gradient(90deg, var(--fm-accent), #4ecdc4);
  border-radius: 99px; width: 0%; transition: width 2.5s ease-out;
}
.btob-loader__msg { color: var(--fm-text-muted); font-size: .9rem; margin: 0; }

/* ── Results header ──────────────────────────────────────────────────────────── */
.btob-results-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  margin-bottom: .75rem;
}
.btob-total-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--fm-accent-bg); color: var(--fm-accent-strong);
  border: 1px solid var(--fm-accent); border-radius: 99px;
  padding: .3rem .85rem; font-size: .82rem; font-weight: 700;
}
.btob-filter-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.btob-tag {
  background: var(--fm-bg-soft); border: 1px solid var(--fm-border-strong);
  border-radius: 99px; padding: .25rem .7rem; font-size: .78rem; color: var(--fm-text-muted);
}
.btob-export-btn {
  margin-left: auto; padding: .35rem .9rem;
  background: var(--fm-accent); color: #fff; border: none; border-radius: var(--fm-radius-sm);
  font-size: .82rem; font-weight: 700; cursor: pointer; transition: opacity .15s;
}
.btob-export-btn:hover { opacity: .85; }

/* ── Table ───────────────────────────────────────────────────────────────────── */
.btob-table-wrap { overflow-x: auto; border: 1px solid var(--fm-border); border-radius: var(--fm-radius-sm); }
.btob-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.btob-table thead tr { background: var(--fm-bg-soft); }
.btob-table th {
  padding: .65rem .9rem; text-align: left; font-weight: 700;
  color: var(--fm-text-muted); white-space: nowrap;
  border-bottom: 1px solid var(--fm-border);
}
.btob-table td { padding: .65rem .9rem; border-bottom: 1px solid var(--fm-border); vertical-align: middle; }
.btob-table tbody tr:last-child td { border-bottom: none; }
.btob-table tbody tr:hover { background: var(--fm-bg-soft); }
.btob-country-tag { color: var(--fm-text-muted); font-size: .77rem; }
.btob-link { color: var(--fm-accent); text-decoration: none; font-size: .85rem; }
.btob-link:hover { text-decoration: underline; }
.btob-phone { white-space: nowrap; color: var(--fm-text-muted); font-size: .84rem; }
.btob-emp-badge {
  display: inline-block; padding: .15rem .55rem;
  background: var(--fm-bg-soft); border: 1px solid var(--fm-border-strong);
  border-radius: 99px; font-size: .77rem; color: var(--fm-text-muted); white-space: nowrap;
}
.btob-desc { font-size: .83rem; color: var(--fm-text-muted); max-width: 280px; }

/* ── Row blur (for non-subscriber rows) ──────────────────────────────────────── */
.btob-row-blurred td { filter: blur(4px); user-select: none; pointer-events: none; }

/* ── Upgrade wall overlay ────────────────────────────────────────────────────── */
.btob-upgrade-wall {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent 0%, var(--fm-bg) 38%);
  padding: 6rem 1.5rem 2rem;
  display: flex; justify-content: center; align-items: flex-end;
}
.btob-upgrade-wall__inner {
  background: var(--fm-card-bg); border: 1px solid var(--fm-border-strong);
  border-radius: var(--fm-radius); padding: 1.75rem 2rem;
  text-align: center; max-width: 420px; width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.btob-upgrade-wall__icon { font-size: 2rem; margin-bottom: .5rem; }
.btob-upgrade-wall__title { font-size: 1.15rem; font-weight: 800; color: var(--fm-text); margin: 0 0 .6rem; }
.btob-upgrade-wall__desc { font-size: .88rem; color: var(--fm-text-muted); margin: 0 0 1.1rem; line-height: 1.6; }
.btob-upgrade-btn {
  display: inline-block; padding: .75rem 1.6rem;
  background: linear-gradient(135deg, var(--fm-accent), #4ecdc4); color: #fff;
  border-radius: var(--fm-radius-sm); font-weight: 700; font-size: .95rem;
  text-decoration: none; box-shadow: 0 4px 16px rgba(108,99,255,.35);
  transition: opacity .2s, transform .2s;
}
.btob-upgrade-btn:hover { opacity: .9; transform: translateY(-1px); }
.btob-upgrade-note { font-size: .77rem; color: var(--fm-text-muted); margin: .7rem 0 0; }

/* ── Intro placeholder ───────────────────────────────────────────────────────── */
.btob-intro { text-align: center; padding: 2.5rem 1rem; }
.btob-intro__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.btob-intro__heading { font-size: 1rem; font-weight: 600; color: var(--fm-text); margin: 0 0 .5rem; }
.btob-intro__note { font-size: .85rem; color: var(--fm-text-muted); line-height: 1.7; margin: 0 0 1rem; }
.btob-intro__stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem;
  font-size: .82rem; color: var(--fm-text-muted);
}

/* ── Empty / error states ────────────────────────────────────────────────────── */
.btob-empty { text-align: center; padding: 2rem; color: var(--fm-text-muted); }
.btob-error { text-align: center; padding: 1.25rem; color: var(--fm-danger); font-size: .9rem; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .btob-filter-row { flex-direction: column; }
  .btob-select, .btob-query-input { max-width: 100%; width: 100%; }
  .btob-upgrade-wall { padding: 5rem .75rem 1.5rem; }
  .btob-upgrade-wall__inner { padding: 1.25rem 1rem; }
  .btob-desc { display: none; }
}
