/* ==========================================================================
   FACEBOOK HASHTAG GENERATOR — CORE SCOPED STYLES
   Prefix: .fbhg- to prevent global WordPress theme style bleed
   ========================================================================== */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
.fbhg-root {
  --fbhg-primary: #4f46e5;
  --fbhg-primary-light: #6366f1;
  --fbhg-primary-dark: #3730a3;
  --fbhg-secondary: #06b6d4;
  --fbhg-accent: #f59e0b;
  --fbhg-success: #10b981;
  --fbhg-danger: #ef4444;
  --fbhg-warning: #f59e0b;
  --fbhg-bg: #ffffff;
  --fbhg-bg-card: #ffffff;
  --fbhg-bg-glass: #ffffff;
  --fbhg-text: #1e293b;
  --fbhg-text-secondary: #64748b;
  --fbhg-text-muted: #94a3b8;
  --fbhg-border: rgba(148,163,184,0.25);
  --fbhg-shadow: 0 4px 24px rgba(0,0,0,0.06);
  --fbhg-shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
  --fbhg-radius: 16px;
  --fbhg-radius-sm: 10px;
  --fbhg-radius-xs: 6px;
  --fbhg-transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --fbhg-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-family: var(--fbhg-font);
  color: var(--fbhg-text);
  background: var(--fbhg-bg);
  line-height: 1.6;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.fbhg-root.fbhg-dark {
  --fbhg-bg: #0f172a;
  --fbhg-bg-card: rgba(30,41,59,0.85);
  --fbhg-bg-glass: rgba(30,41,59,0.6);
  --fbhg-text: #e2e8f0;
  --fbhg-text-secondary: #94a3b8;
  --fbhg-text-muted: #64748b;
  --fbhg-border: rgba(148,163,184,0.15);
  --fbhg-shadow: 0 4px 24px rgba(0,0,0,0.3);
  --fbhg-shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
}

.fbhg-root *, .fbhg-root *::before, .fbhg-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.fbhg-bg-gradient {
  display: none;
}

.fbhg-dark .fbhg-bg-gradient {
  opacity: 0.12;
}

@keyframes fbhg-gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fbhg-container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.fbhg-hero {
  text-align: center;
  padding: 48px 20px 36px;
  margin-bottom: 32px;
}

.fbhg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--fbhg-primary), var(--fbhg-secondary));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fbhg-fadeInDown 0.6s ease;
}

.fbhg-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--fbhg-primary), var(--fbhg-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fbhg-fadeInUp 0.6s ease;
}

.fbhg-hero p {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--fbhg-text-secondary);
  max-width: 620px;
  margin: 0 auto 24px;
  animation: fbhg-fadeInUp 0.6s 0.15s ease both;
}

.fbhg-stats-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  animation: fbhg-fadeInUp 0.6s 0.3s ease both;
}

.fbhg-stat {
  text-align: center;
}

.fbhg-stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--fbhg-primary);
}

.fbhg-stat-label {
  font-size: 12px;
  color: var(--fbhg-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fbhg-card {
  background: var(--fbhg-bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--fbhg-border);
  border-radius: var(--fbhg-radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--fbhg-shadow);
  transition: box-shadow var(--fbhg-transition), transform var(--fbhg-transition);
  animation: fbhg-fadeInUp 0.5s ease both;
}

.fbhg-card:hover {
  box-shadow: var(--fbhg-shadow-lg);
}

.fbhg-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fbhg-card-title .fbhg-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.fbhg-icon-blue { background: rgba(79,70,229,0.1); color: var(--fbhg-primary); }
.fbhg-icon-cyan { background: rgba(6,182,212,0.1); color: var(--fbhg-secondary); }
.fbhg-icon-green { background: rgba(16,185,129,0.1); color: var(--fbhg-success); }
.fbhg-icon-amber { background: rgba(245,158,11,0.1); color: var(--fbhg-accent); }

.fbhg-dark-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--fbhg-border);
  background: var(--fbhg-bg-card);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--fbhg-shadow);
  transition: all var(--fbhg-transition);
}

.fbhg-dark-toggle:hover {
  transform: rotate(30deg) scale(1.1);
  box-shadow: var(--fbhg-shadow-lg);
}

.fbhg-textarea-wrap {
  position: relative;
  margin-bottom: 12px;
}

.fbhg-textarea {
  width: 100%;
  min-height: 130px;
  padding: 16px 18px;
  border: 2px solid var(--fbhg-border);
  border-radius: var(--fbhg-radius-sm);
  background: var(--fbhg-bg-glass);
  color: var(--fbhg-text);
  font-family: var(--fbhg-font);
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color var(--fbhg-transition), box-shadow var(--fbhg-transition);
  outline: none;
}

.fbhg-textarea:focus {
  border-color: var(--fbhg-primary-light);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.12);
}

.fbhg-textarea::placeholder {
  color: var(--fbhg-text-muted);
}

.fbhg-textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--fbhg-text-muted);
  margin-bottom: 20px;
}

.fbhg-char-warn {
  color: var(--fbhg-danger);
  font-weight: 600;
}

.fbhg-keyword-density {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.fbhg-keyword-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: rgba(79,70,229,0.08);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fbhg-primary);
  transition: all var(--fbhg-transition);
}

.fbhg-keyword-chip:hover {
  background: rgba(79,70,229,0.16);
}

.fbhg-keyword-count {
  background: var(--fbhg-primary);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 50px;
  font-weight: 700;
}

.fbhg-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.fbhg-filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--fbhg-text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fbhg-select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--fbhg-border);
  border-radius: var(--fbhg-radius-xs);
  background: var(--fbhg-bg-glass);
  color: var(--fbhg-text);
  font-size: 14px;
  font-family: var(--fbhg-font);
  cursor: pointer;
  transition: border-color var(--fbhg-transition);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.fbhg-select:focus {
  border-color: var(--fbhg-primary-light);
}

.fbhg-count-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.fbhg-count-btn {
  padding: 8px 20px;
  border: 2px solid var(--fbhg-border);
  border-radius: 50px;
  background: transparent;
  color: var(--fbhg-text-secondary);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--fbhg-font);
  cursor: pointer;
  transition: all var(--fbhg-transition);
}

.fbhg-count-btn:hover {
  border-color: var(--fbhg-primary-light);
  color: var(--fbhg-primary);
}

.fbhg-count-btn.fbhg-active {
  background: linear-gradient(135deg, var(--fbhg-primary), var(--fbhg-primary-light));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.fbhg-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.fbhg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--fbhg-radius-xs);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--fbhg-font);
  cursor: pointer;
  transition: all var(--fbhg-transition);
  position: relative;
  overflow: hidden;
}

.fbhg-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.2s;
}

.fbhg-btn:hover::after {
  opacity: 1;
}

.fbhg-btn:active {
  transform: scale(0.97);
}

.fbhg-btn-primary {
  background: linear-gradient(135deg, var(--fbhg-primary), var(--fbhg-primary-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(79,70,229,0.3);
}

.fbhg-btn-primary:hover {
  box-shadow: 0 6px 24px rgba(79,70,229,0.4);
  transform: translateY(-1px);
}

.fbhg-btn-secondary {
  background: var(--fbhg-bg-glass);
  color: var(--fbhg-text);
  border: 2px solid var(--fbhg-border);
}

.fbhg-btn-secondary:hover {
  border-color: var(--fbhg-primary-light);
  color: var(--fbhg-primary);
}

.fbhg-btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}

.fbhg-btn-danger {
  background: var(--fbhg-bg-glass);
  color: var(--fbhg-danger);
  border: 2px solid rgba(239,68,68,0.2);
}

.fbhg-btn-danger:hover {
  background: rgba(239,68,68,0.08);
}

.fbhg-loader {
  display: none;
  text-align: center;
  padding: 32px;
}

.fbhg-loader.fbhg-visible {
  display: block;
}

.fbhg-loader-dots {
  display: inline-flex;
  gap: 8px;
}

.fbhg-loader-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fbhg-primary);
  animation: fbhg-bounce 1.4s ease-in-out infinite;
}

.fbhg-loader-dot:nth-child(2) { animation-delay: 0.16s; }
.fbhg-loader-dot:nth-child(3) { animation-delay: 0.32s; }

@keyframes fbhg-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.fbhg-loader-text {
  margin-top: 16px;
  font-size: 14px;
  color: var(--fbhg-text-muted);
  font-weight: 500;
}

.fbhg-results {
  display: none;
}

.fbhg-results.fbhg-visible {
  display: block;
}

.fbhg-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.fbhg-results-title {
  font-size: 18px;
  font-weight: 700;
}

.fbhg-results-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.fbhg-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fbhg-text-secondary);
}

.fbhg-meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.fbhg-meta-dot-green { background: var(--fbhg-success); }
.fbhg-meta-dot-amber { background: var(--fbhg-accent); }
.fbhg-meta-dot-blue { background: var(--fbhg-primary); }

.fbhg-score-bar {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--fbhg-radius-sm);
  background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(6,182,212,0.05));
  border: 1px solid var(--fbhg-border);
}

.fbhg-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.fbhg-score-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fbhg-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fbhg-score-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--fbhg-success);
}

.fbhg-score-track {
  height: 8px;
  background: var(--fbhg-border);
  border-radius: 50px;
  overflow: hidden;
}

.fbhg-score-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--fbhg-success), var(--fbhg-secondary));
  transition: width 1s ease;
  width: 0;
}

.fbhg-category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 2px;
}

.fbhg-cat-tab {
  padding: 7px 16px;
  border: 1.5px solid var(--fbhg-border);
  border-radius: 50px;
  background: transparent;
  color: var(--fbhg-text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--fbhg-font);
  cursor: pointer;
  transition: all var(--fbhg-transition);
  white-space: nowrap;
}

.fbhg-cat-tab:hover {
  border-color: var(--fbhg-primary-light);
  color: var(--fbhg-primary);
}

.fbhg-cat-tab.fbhg-active {
  background: var(--fbhg-primary);
  color: #fff;
  border-color: var(--fbhg-primary);
}

.fbhg-cat-tab .fbhg-tab-count {
  margin-left: 4px;
  opacity: 0.7;
}

.fbhg-hashtag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.fbhg-hashtag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--fbhg-bg-glass);
  border: 1.5px solid var(--fbhg-border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fbhg-text);
  cursor: pointer;
  transition: all var(--fbhg-transition);
  user-select: none;
  animation: fbhg-chipIn 0.4s ease both;
}

.fbhg-hashtag-chip:hover {
  border-color: var(--fbhg-primary);
  background: rgba(79,70,229,0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79,70,229,0.12);
}

.fbhg-hashtag-chip.fbhg-selected {
  background: linear-gradient(135deg, var(--fbhg-primary), var(--fbhg-primary-light));
  color: #fff;
  border-color: transparent;
}

@keyframes fbhg-chipIn {
  from { opacity: 0; transform: scale(0.85) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.fbhg-chip-popularity {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fbhg-pop-high { background: var(--fbhg-success); box-shadow: 0 0 6px rgba(16,185,129,0.5); }
.fbhg-pop-medium { background: var(--fbhg-accent); box-shadow: 0 0 6px rgba(245,158,11,0.5); }
.fbhg-pop-low { background: var(--fbhg-text-muted); }

.fbhg-copy-box {
  position: relative;
  background: var(--fbhg-bg-glass);
  border: 2px solid var(--fbhg-border);
  border-radius: var(--fbhg-radius-sm);
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--fbhg-text);
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}

.fbhg-copy-box-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.fbhg-copy-mini-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--fbhg-border);
  background: var(--fbhg-bg-card);
  color: var(--fbhg-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--fbhg-transition);
}

.fbhg-copy-mini-btn:hover {
  background: var(--fbhg-primary);
  color: #fff;
  border-color: var(--fbhg-primary);
}

.fbhg-suggestions {
  padding: 16px 20px;
  border-radius: var(--fbhg-radius-sm);
  background: linear-gradient(135deg, rgba(245,158,11,0.05), rgba(239,68,68,0.03));
  border: 1px solid rgba(245,158,11,0.15);
  margin-bottom: 20px;
}

.fbhg-suggestions-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fbhg-accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.fbhg-suggestion-chip {
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(245,158,11,0.1);
  color: var(--fbhg-accent);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(245,158,11,0.2);
  transition: all var(--fbhg-transition);
}

.fbhg-suggestion-chip:hover {
  background: rgba(245,158,11,0.2);
  transform: translateY(-1px);
}

.fbhg-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--fbhg-success), #059669);
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(16,185,129,0.4);
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68,-0.55,0.27,1.55);
  pointer-events: none;
  white-space: nowrap;
}

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

.fbhg-accordion {
  margin-bottom: 12px;
  border: 1px solid var(--fbhg-border);
  border-radius: var(--fbhg-radius-sm);
  overflow: hidden;
  transition: box-shadow var(--fbhg-transition);
}

.fbhg-accordion:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.fbhg-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--fbhg-text);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--fbhg-font);
  cursor: pointer;
  text-align: left;
  transition: background var(--fbhg-transition);
}

.fbhg-accordion-header:hover {
  background: rgba(79,70,229,0.03);
}

.fbhg-accordion-icon {
  font-size: 18px;
  transition: transform var(--fbhg-transition);
  flex-shrink: 0;
  color: var(--fbhg-text-muted);
}

.fbhg-accordion.fbhg-open .fbhg-accordion-icon {
  transform: rotate(180deg);
}

.fbhg-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.fbhg-accordion.fbhg-open .fbhg-accordion-body {
  max-height: 500px;
  padding: 0 20px 16px;
}

.fbhg-accordion-body p, .fbhg-accordion-body li {
  font-size: 14px;
  color: var(--fbhg-text-secondary);
  line-height: 1.7;
}

.fbhg-accordion-body ul {
  padding-left: 20px;
  margin-top: 8px;
}

.fbhg-accordion-body li {
  margin-bottom: 4px;
}

.fbhg-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.fbhg-tip-card {
  padding: 20px;
  border-radius: var(--fbhg-radius-sm);
  border: 1px solid var(--fbhg-border);
  background: var(--fbhg-bg-glass);
  transition: all var(--fbhg-transition);
}

.fbhg-tip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fbhg-shadow);
}

.fbhg-tip-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--fbhg-primary), var(--fbhg-secondary));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.fbhg-tip-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.fbhg-tip-desc {
  font-size: 13px;
  color: var(--fbhg-text-secondary);
  line-height: 1.6;
}

.fbhg-cta {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(6,182,212,0.06));
  border: 1px solid var(--fbhg-border);
  border-radius: var(--fbhg-radius);
  margin-bottom: 24px;
}

.fbhg-cta h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.fbhg-cta p {
  color: var(--fbhg-text-secondary);
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.fbhg-share-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.fbhg-share-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--fbhg-border);
  background: var(--fbhg-bg-glass);
  color: var(--fbhg-text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--fbhg-transition);
}

.fbhg-share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.fbhg-share-btn.fbhg-fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.fbhg-share-btn.fbhg-tw:hover { background: #1da1f2; color: #fff; border-color: #1da1f2; }
.fbhg-share-btn.fbhg-li:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.fbhg-share-btn.fbhg-wa:hover { background: #25d366; color: #fff; border-color: #25d366; }

.fbhg-footer {
  text-align: center;
  padding: 32px 16px 12px;
  font-size: 13px;
  color: var(--fbhg-text-muted);
}

.fbhg-footer strong {
  color: var(--fbhg-text-secondary);
}

.fbhg-recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fbhg-recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--fbhg-radius-xs);
  background: var(--fbhg-bg-glass);
  border: 1px solid var(--fbhg-border);
  font-size: 13px;
  color: var(--fbhg-text-secondary);
  cursor: pointer;
  transition: all var(--fbhg-transition);
}

.fbhg-recent-item:hover {
  border-color: var(--fbhg-primary-light);
  background: rgba(79,70,229,0.04);
}

.fbhg-recent-keyword {
  font-weight: 600;
  color: var(--fbhg-text);
}

.fbhg-recent-count {
  font-size: 12px;
  color: var(--fbhg-text-muted);
}

.fbhg-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--fbhg-text-muted);
}

.fbhg-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.fbhg-empty-text {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--fbhg-text-secondary);
}

.fbhg-empty-sub {
  font-size: 13px;
}

.fbhg-fab {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fbhg-primary), var(--fbhg-primary-light));
  color: #fff;
  font-size: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(79,70,229,0.4);
  z-index: 90;
  align-items: center;
  justify-content: center;
  transition: all var(--fbhg-transition);
}

.fbhg-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(79,70,229,0.5);
}

@keyframes fbhg-fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fbhg-fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fbhg-root ::-webkit-scrollbar {
  width: 6px;
}

.fbhg-root ::-webkit-scrollbar-track {
  background: transparent;
}

.fbhg-root ::-webkit-scrollbar-thumb {
  background: var(--fbhg-border);
  border-radius: 3px;
}

.fbhg-root ::-webkit-scrollbar-thumb:hover {
  background: var(--fbhg-text-muted);
}

.fbhg-root *:focus-visible {
  outline: 2px solid var(--fbhg-primary);
  outline-offset: 2px;
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 768px) {
  .fbhg-container { padding: 16px 12px 80px; }
  .fbhg-hero { padding: 32px 12px 24px; }
  .fbhg-hero h1 { font-size: 26px; }
  .fbhg-card { padding: 20px 16px; }
  .fbhg-stats-bar { gap: 20px; }
  .fbhg-filters { grid-template-columns: 1fr 1fr; }
  .fbhg-btn { padding: 10px 16px; font-size: 13px; }
  .fbhg-fab { display: flex; }
  .fbhg-results-header { flex-direction: column; align-items: flex-start; }
  .fbhg-tips-grid { grid-template-columns: 1fr; }
  .fbhg-dark-toggle { top: 12px; right: 12px; width: 42px; height: 42px; font-size: 18px; }
}

@media (max-width: 480px) {
  .fbhg-filters { grid-template-columns: 1fr; }
  .fbhg-count-selector { justify-content: center; }
  .fbhg-btn-row { flex-direction: column; }
  .fbhg-btn { width: 100%; }
}
