/* ============================================================
   TOOLBOX HUB — Global Styles
   Shared across all tool pages
   ============================================================ */

/* Google Fonts loaded via <link> in HTML head for better PageSpeed */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* --- CSS Variables --- */
:root {
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --red-500: #ef4444;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --max-width: 1200px;
  --nav-height: 64px;
}

/* --- Shared Nav --- */
.tb-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--nav-height);
}
.tb-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  white-space: nowrap;
  text-decoration: none;
}
.tb-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}
.tb-nav-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.tb-nav-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 14px;
  background: var(--gray-50);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tb-nav-search input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
  background: #fff;
}
.tb-nav-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  pointer-events: none;
}
.tb-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tb-nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  transition: all 0.15s;
}
.tb-nav-links a:hover {
  background: var(--gray-100);
  color: var(--brand-600);
}

/* --- Language Switcher --- */
.lang-switcher {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  background: none;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.lang-btn:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
}
.lang-btn svg { flex-shrink: 0; }
.lang-flag { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 16px; border-radius: 3px; font-size: 9px; font-weight: 800; color: #fff; background: var(--brand-500); letter-spacing: 0.5px; flex-shrink: 0; }
.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  z-index: 2000;
  overflow: hidden;
}
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
.lang-dropdown.show { display: block; }
.lang-option {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.1s;
}
.lang-option:hover {
  background: var(--gray-50);
  color: var(--brand-600);
}
.lang-option.active {
  background: var(--brand-50);
  color: var(--brand-600);
  font-weight: 700;
}

/* --- RTL Support --- */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .tb-nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .tb-breadcrumb { flex-direction: row-reverse; }
[dir="rtl"] .tb-footer-inner { direction: rtl; }
[dir="rtl"] .tb-related-card { flex-direction: row-reverse; }

/* --- Breadcrumb --- */
.tb-breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 13px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tb-breadcrumb a {
  color: var(--gray-500);
  transition: color 0.15s;
}
.tb-breadcrumb a:hover { color: var(--brand-600); }
.tb-breadcrumb .sep { color: var(--gray-300); }

/* --- Ad Slots --- */
.ad-slot {
  max-width: var(--max-width);
  margin: 16px auto;
  padding: 0 24px;
}
.ad-slot-inner {
  background: var(--gray-100);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ad-slot-sidebar .ad-slot-inner { min-height: 250px; }

/* --- Tool Page Layout --- */
.tb-tool-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}
.tb-tool-header {
  margin-bottom: 24px;
}
.tb-tool-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 8px;
}
.tb-tool-header p {
  font-size: 15px;
  color: var(--gray-500);
  max-width: 640px;
  line-height: 1.6;
}

/* --- Tool Container --- */
.tb-tool-container {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

/* --- How To Use Section --- */
.tb-how-to {
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}
.tb-how-to h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.tb-how-to ol, .tb-how-to ul {
  padding-left: 20px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 2;
}

/* --- Related Tools Section --- */
.tb-related {
  margin-bottom: 32px;
}
.tb-related h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.tb-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.tb-related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  transition: all 0.2s;
  text-decoration: none;
}
.tb-related-card:hover {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tb-related-card .rc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.tb-related-card .rc-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}
.tb-related-card .rc-sub {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* --- Footer --- */
.tb-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 24px 32px;
  margin-top: 48px;
}
.tb-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.tb-footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.tb-footer-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray-400);
}
.tb-footer h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.tb-footer ul { list-style: none; }
.tb-footer ul li { margin-bottom: 8px; }
.tb-footer ul a {
  font-size: 13px;
  color: var(--gray-400);
  transition: color 0.15s;
}
.tb-footer ul a:hover { color: #fff; }
.tb-footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
}

/* --- Homepage: Tool Cards Grid --- */
.tb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.tb-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.tb-card:hover {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.tb-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.tb-card-text h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 3px;
}
.tb-card-text p {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.4;
}

/* --- Category Sections --- */
.tb-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 40px;
}
.tb-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.tb-section-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
}
.tb-section-header .count {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-600);
  background: var(--brand-50);
  padding: 4px 10px;
  border-radius: 20px;
}

/* --- Hero (Homepage) --- */
.tb-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 40px;
  text-align: center;
}
.tb-hero h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 12px;
}
.tb-hero h1 span {
  background: linear-gradient(135deg, var(--brand-500), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tb-hero p {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.tb-hero-search {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}
.tb-hero-search input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  font-size: 16px;
  background: #fff;
  outline: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-md);
}
.tb-hero-search input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12), var(--shadow-md);
}
.tb-hero-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--gray-400);
  pointer-events: none;
}
.tb-hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--gray-500);
}
.tb-hero-stats strong {
  color: var(--gray-800);
  font-weight: 700;
}

/* --- Theme Switcher --- */
.theme-switcher { display: flex; gap: 4px; margin-left: 6px; }
.theme-btn { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--gray-200); cursor: pointer; transition: all 0.15s; padding: 0; }
.theme-btn:hover { transform: scale(1.15); }
.theme-btn.active { border-color: var(--brand-500); box-shadow: 0 0 0 2px rgba(99,102,241,0.3); }
.theme-btn-light { background: #f8fafc; }
.theme-btn-dark { background: #1e293b; }
.theme-btn-vibrant { background: linear-gradient(135deg, #f472b6, #818cf8, #34d399); }

/* --- Dark Theme --- */
[data-theme="dark"] { --brand-50: #1e1b4b; --brand-100: #312e81; --brand-200: #4338ca; --gray-50: #1e293b; --gray-100: #1e293b; --gray-200: #334155; --gray-300: #475569; --gray-400: #94a3b8; --gray-500: #cbd5e1; --gray-600: #e2e8f0; --gray-700: #f1f5f9; --gray-800: #f8fafc; --gray-900: #ffffff; }
[data-theme="dark"] body { background: #0f172a; color: #e2e8f0; }
[data-theme="dark"] .tb-nav { background: rgba(15,23,42,0.92); border-bottom-color: #334155; }
[data-theme="dark"] .tb-nav-search input { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .tb-nav-search input:focus { background: #1e293b; }
[data-theme="dark"] .tb-card, [data-theme="dark"] .tb-related-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .tb-card:hover, [data-theme="dark"] .tb-related-card:hover { border-color: var(--brand-500); }
[data-theme="dark"] .tb-how-to { background: #1e1b4b; border-color: #312e81; }
[data-theme="dark"] .tb-hero-search input { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .lang-dropdown { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .lang-option:hover { background: #334155; }
[data-theme="dark"] .lang-option.active { background: #312e81; }
[data-theme="dark"] .lang-btn { border-color: #334155; color: #cbd5e1; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { background: #1e293b; border-color: #334155; color: #e2e8f0; }

/* --- Vibrant Theme --- */
[data-theme="vibrant"] { --brand-50: #fdf2f8; --brand-100: #fce7f3; --brand-200: #fbcfe8; --brand-500: #ec4899; --brand-600: #db2777; --brand-700: #be185d; }
[data-theme="vibrant"] body { background: linear-gradient(135deg, #fdf2f8 0%, #ede9fe 50%, #ecfdf5 100%); }
[data-theme="vibrant"] .tb-nav { background: rgba(255,255,255,0.85); }
[data-theme="vibrant"] .tb-hero h1 span { background: linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4); -webkit-background-clip: text; background-clip: text; }
[data-theme="vibrant"] .tb-card:hover { border-color: #ec4899; box-shadow: 0 4px 20px rgba(236,72,153,0.15); }
[data-theme="vibrant"] .tb-footer { background: linear-gradient(135deg, #1e1b4b, #4a044e); }

/* --- Health Disclaimer --- */
.tb-disclaimer { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-size: 12px; color: #92400e; line-height: 1.6; display: flex; gap: 8px; align-items: flex-start; }
.tb-disclaimer .icon { font-size: 16px; flex-shrink: 0; }
[data-theme="dark"] .tb-disclaimer { background: #451a03; border-color: #92400e; color: #fde68a; }

/* --- Game Rankings --- */
.tb-rankings{max-width:600px;margin:24px auto 0;background:linear-gradient(135deg,#f8fafc,#eef2ff);border:1px solid var(--gray-200);border-radius:var(--radius);padding:20px 24px}
.tb-rankings h3{font-size:14px;font-weight:700;margin-bottom:12px;display:flex;align-items:center;gap:6px}
.tb-rankings table{width:100%;border-collapse:collapse;font-size:13px}
.tb-rankings th{text-align:left;padding:8px 10px;font-size:11px;font-weight:600;color:var(--gray-500);text-transform:uppercase;border-bottom:2px solid var(--gray-200)}
.tb-rankings td{padding:8px 10px;border-bottom:1px solid var(--gray-100)}
.tb-rankings tr:last-child td{border-bottom:none}
.tb-rankings .rank-medal{font-size:16px;text-align:center;width:30px}
.tb-rankings .rank-you{background:var(--brand-50);font-weight:700;color:var(--brand-600)}
[data-theme="dark"] .tb-rankings{background:linear-gradient(135deg,#1e293b,#1e1b4b);border-color:#334155}
[data-theme="dark"] .tb-rankings th{border-bottom-color:#334155}
[data-theme="dark"] .tb-rankings td{border-bottom-color:#334155}

/* --- Utility --- */
.hidden { display: none !important; }

/* --- Print --- */
@media print {
  .tb-nav, .tb-breadcrumb, .ad-slot, .tb-related, .tb-footer, .tb-how-to, .theme-switcher, .lang-switcher { display: none !important; }
  body { background: #fff !important; }
  [data-theme="dark"] body { background: #fff !important; color: #000 !important; }
  .tb-tool-container { box-shadow: none; border: none; }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .tb-hero h1 { font-size: 28px; }
  .tb-hero p { font-size: 15px; }
  .tb-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .tb-nav-search { display: none; }
  .tb-nav-links { display: none; }
  .tb-grid { grid-template-columns: 1fr; }
  .tb-related-grid { grid-template-columns: 1fr; }
  .tb-tool-header h1 { font-size: 22px; }
  .tb-hero-stats { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .tb-hero { padding: 32px 16px; }
  .tb-section { padding: 0 16px 32px; }
  .tb-tool-page { padding: 16px; }
  .tb-tool-container { padding: 16px; }
}

/* --- Affiliate Widget --- */
.tb-aff-widget { max-width: var(--max-width); margin: 0 auto; padding: 0 24px 24px; }
.tb-aff-inner { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 12px; padding: 16px 20px; position: relative; }
.tb-aff-badge { position: absolute; top: -10px; left: 20px; background: var(--brand-500); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 100px; letter-spacing: 0.3px; }
.tb-aff-card { display: flex; align-items: center; gap: 14px; }
.tb-aff-emoji { font-size: 32px; flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; border: 1px solid var(--gray-200); }
.tb-aff-info { flex: 1; min-width: 0; }
.tb-aff-title { font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 2px; }
.tb-aff-desc { font-size: 12px; color: var(--gray-500); line-height: 1.5; margin-bottom: 6px; }
.tb-aff-link { display: inline-block; font-size: 12px; font-weight: 600; color: var(--brand-600); text-decoration: none; padding: 4px 12px; border: 1px solid var(--brand-200); border-radius: 6px; transition: all .15s; }
.tb-aff-link:hover { background: var(--brand-50); border-color: var(--brand-500); }
.tb-aff-disc { font-size: 10px; color: var(--gray-400); margin-top: 10px; line-height: 1.4; }
@media (max-width: 480px) { .tb-aff-emoji { width: 40px; height: 40px; font-size: 24px; } }

/* --- Visible FAQ Section --- */
.tb-faq { max-width: var(--max-width); margin: 0 auto; padding: 0 24px 32px; }
.tb-faq h2 { font-size: 22px; font-weight: 700; color: var(--gray-800); margin-bottom: 16px; }
.tb-faq-item { border: 1px solid var(--gray-200); border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: var(--gray-50); transition: all .2s; }
.tb-faq-item.open { border-color: var(--brand-200); background: #fff; }
.tb-faq-q { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--gray-700); gap: 12px; user-select: none; }
.tb-faq-q:hover { color: var(--brand-600); }
.tb-faq-q svg { flex-shrink: 0; width: 18px; height: 18px; transition: transform .2s; color: var(--gray-400); }
.tb-faq-item.open .tb-faq-q svg { transform: rotate(180deg); color: var(--brand-500); }
.tb-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.tb-faq-a-inner { padding: 0 18px 16px; font-size: 14px; line-height: 1.7; color: var(--gray-600); }
.tb-faq-item.open .tb-faq-a { max-height: 300px; }
[data-theme="dark"] .tb-faq-item { background: var(--gray-800); border-color: var(--gray-700); }
[data-theme="dark"] .tb-faq-item.open { background: var(--gray-900); border-color: var(--brand-400); }
[data-theme="dark"] .tb-faq-q { color: var(--gray-200); }
[data-theme="dark"] .tb-faq-a-inner { color: var(--gray-400); }

/* --- Social Share Buttons --- */
.tb-share { max-width: var(--max-width); margin: 0 auto; padding: 0 24px 28px; }
.tb-share h3 { font-size: 15px; font-weight: 600; color: var(--gray-500); margin-bottom: 10px; }
.tb-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; border: none; cursor: pointer; text-decoration: none; color: #fff; transition: opacity .15s, transform .1s; }
.tb-share-btn:hover { opacity: .85; transform: translateY(-1px); }
.tb-share-btn:active { transform: scale(.97); }
.tb-share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.tb-share-btn.tw { background: #1da1f2; }
.tb-share-btn.fb { background: #1877f2; }
.tb-share-btn.wa { background: #25d366; }
.tb-share-btn.li { background: #0a66c2; }
.tb-share-btn.cp { background: var(--gray-600); }
.tb-share-btn.cp.copied { background: #16a34a; }
@media (max-width: 480px) { .tb-share-btn span { display: none; } .tb-share-btn { padding: 10px; } }

/* --- Embed Mode --- */
body.tb-embed .tb-nav, body.tb-embed .tb-footer, body.tb-embed .tb-breadcrumb,
body.tb-embed .tb-ad, body.tb-embed .tb-related, body.tb-embed .tb-faq,
body.tb-embed .tb-share, body.tb-embed .tb-aff, body.tb-embed .tb-disclaimer { display: none !important; }
body.tb-embed { background: transparent !important; }
body.tb-embed .tool-container { max-width: 100%; padding: 12px; }
