/* ============================================
   ChildCareCostCalc.com - Global Stylesheet
   Theme: Warm Orange (#f97316)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background: #fef7f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }
a { color: #f97316; text-decoration: none; transition: color 0.2s; }
a:hover { color: #c2410c; text-decoration: underline; }
a:focus { outline: 2px solid #f97316; outline-offset: 2px; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* --- Header --- */
.site-header {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo:hover { text-decoration: none; color: #f97316; }
.logo-icon { font-size: 1.5rem; }

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Navigation --- */
.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  transition: all 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  color: #f97316;
  background: #fef2e6;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  color: #1f2937;
  line-height: 1;
}

/* --- Dropdown Nav (Mobile) --- */
.nav-select-wrap {
  display: none;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.nav-select-wrap select {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  appearance: auto;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.92;
  line-height: 1.5;
}

/* --- Page Title (inner pages) --- */
.page-title {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.page-title h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.page-title p { font-size: 1.05rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* --- Section --- */
.section { padding: 40px 0; }
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1f2937;
}

/* --- Calculator Box --- */
.calculator-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.calculator-box h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1f2937;
}

/* --- Tabs --- */
.tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 2px solid #e5e7eb; flex-wrap: wrap; }

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover { color: #f97316; }
.tab-btn.active { color: #f97316; border-bottom-color: #f97316; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- Form Elements --- */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-group select,
.form-group input[type="number"],
.form-group input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select:focus,
.form-group input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
  outline: none;
}

.form-group .unit-hint {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 2px;
}

.form-group .field-note {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.4;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  gap: 6px;
}

.btn-primary {
  background: #f97316;
  color: #fff;
}

.btn-primary:hover { background: #ea580c; }

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover { background: #e5e7eb; }

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}

.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* --- Results --- */
.result-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  display: none;
}

.result-box.show { display: block; }

.result-amount {
  font-size: 2rem;
  font-weight: 800;
  color: #16a34a;
  margin: 8px 0;
}

.result-amount .currency { font-size: 1.2rem; }

.result-detail {
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: 8px;
  line-height: 1.5;
}

.result-breakdown {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.result-breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.9rem;
}

.result-note {
  display: none;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #9a3412;
  line-height: 1.5;
}

.result-note strong { color: #c2410c; }

/* --- Table Styles --- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background: #fef2e6;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
}

tr:hover { background: #fafafa; }

/* --- Info Cards --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.info-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.info-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 8px;
}

.info-card p { font-size: 0.9rem; color: #4b5563; line-height: 1.6; }

/* --- FAQ --- */
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-q:hover { background: #fef2e6; }
.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: #f97316;
  transition: transform 0.2s;
}

.faq-q.open::after { content: '−'; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fafafa;
}

.faq-a-inner {
  padding: 0 18px 14px;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
}

.faq-q.open + .faq-a { max-height: 500px; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 14px 0;
  font-size: 0.85rem;
  color: #6b7280;
  gap: 6px;
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 6px;
  color: #d1d5db;
}

.breadcrumb a { color: #f97316; }
.breadcrumb a:hover { text-decoration: underline; }

/* --- Sidebar --- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 32px 0;
}

.sidebar-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1f2937;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li { margin-bottom: 6px; }

.sidebar-links a {
  font-size: 0.9rem;
  color: #4b5563;
  display: block;
  padding: 4px 0;
}

.sidebar-links a:hover { color: #f97316; }

/* --- Footer --- */
.site-footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 48px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a {
  color: #9ca3af;
  font-size: 0.85rem;
}

.footer-col a:hover { color: #f97316; }

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #6b7280;
}

.footer-cross-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 10px;
}

.footer-cross-links a {
  color: #9ca3af;
  font-size: 0.8rem;
}

.footer-cross-links a:hover { color: #f97316; }

/* --- Print Styles --- */
.print-btn-wrap { margin: 16px 0; }

@media print {
  .site-header, .site-footer, .breadcrumb, .print-btn-wrap,
  .sidebar-card, .nav-select-wrap, .tabs, .share-bar, 
  .sticky-calc-btn, .trust-bar, .recent-estimates,
  .fab-container { display: none !important; }
  .page-layout { display: block; }
  .calculator-box { break-inside: avoid; border: 1px solid #ddd; box-shadow: none; page-break-inside: avoid; }
  body { background: #fff; font-size: 12px; color: #000; }
  .result-box { border: 1px solid #ccc; background: #fff; }
  .result-amount { color: #000; }
  .result-note { border: 1px solid #ddd; background: #fafafa; }
  .chart-container { max-width: 400px; height: 220px; page-break-inside: avoid; }
  input, select { border: 1px solid #ccc !important; }
  a { color: #000 !important; text-decoration: underline; }
  .btn, .btn-calc, .btn-primary, .btn-secondary { display: none !important; }
  .bookmark-toast { display: none !important; }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-list { display: none; }
  .nav-toggle { display: block; }
  .nav-select-wrap { display: block; }
  .header-inner { height: 56px; }
  .hero h1 { font-size: 1.6rem; }
  .hero { padding: 40px 16px; }
  .page-title { padding: 28px 16px; }
  .page-title h1 { font-size: 1.4rem; }
  .section { padding: 24px 0; }
  .calculator-box { padding: 18px; }
  .hero p { font-size: 1rem; }
  .result-amount { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 14px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .chart-container { height: 220px; }
  .share-bar { padding: 8px 0; gap: 4px; }
  .share-btn { padding: 5px 10px; font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; }
}

/* --- Share Buttons --- */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.share-bar-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  display: flex;
  align-items: center;
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.share-btn:hover { text-decoration: none; }
.share-btn-reddit:hover { background: #ff4500; color: #fff; border-color: #ff4500; }
.share-btn-facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn-twitter:hover { background: #000; color: #fff; border-color: #000; }
.share-btn-whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-btn-copy:hover { background: #f97316; color: #fff; border-color: #f97316; }
.share-btn-print:hover { background: #1f2937; color: #fff; border-color: #1f2937; }
.share-btn-bookmark {
  border-color: #f97316;
  color: #f97316;
}
.share-btn-bookmark:hover { background: #f97316; color: #fff; }

/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 32px;
  padding: 16px 0;
  margin: 20px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #6b7280;
}
.trust-icon {
  font-size: 1.2rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef2e6;
  border-radius: 50%;
}

/* --- Sticky Mobile Button --- */
.sticky-calc-btn {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 10px 16px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}
.sticky-calc-btn .btn {
  width: 100%;
  font-size: 1rem;
  padding: 12px;
}
@media (max-width: 768px) {
  .sticky-calc-btn { display: block; }
  body { padding-bottom: 60px; }
}

/* --- Chart Container --- */
.chart-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 280px;
  margin: 16px auto;
}

/* --- Bookmark Indicator --- */
.bookmarked {
  background: #fef2e6;
  border-left: 3px solid #f97316;
}
.bookmark-indicator {
  font-size: 0.78rem;
  color: #f97316;
  font-weight: 600;
  display: none;
}
.bookmark-indicator.show { display: inline; }
.bookmark-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  background: #1f2937;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  z-index: 2000;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
  pointer-events: none;
}
.bookmark-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Recent Estimates --- */
.recent-estimates {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
}
.recent-estimates h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1f2937;
}
.recent-item {
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  color: #4b5563;
}
.recent-item:last-child { border-bottom: none; }
.recent-clear {
  font-size: 0.78rem;
  color: #9ca3af;
  cursor: pointer;
  margin-top: 6px;
  display: inline-block;
}
.recent-clear:hover { color: #dc2626; }

/* --- Comparison Highlight Table --- */
.compare-best {
  background: #f0fdf4;
  font-weight: 600;
}
.compare-worst {
  background: #fef2f2;
}

/* --- Rating Stars --- */
.star-rating {
  display: flex;
  gap: 4px;
  margin: 10px 0;
}
.star {
  font-size: 1.2rem;
  cursor: pointer;
  color: #d1d5db;
  transition: color 0.2s;
}
.star:hover, .star.active { color: #fbbf24; }

/* --- Gradient accent on hero */
.hero-accent {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

/* Card hover effect */
.info-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* --- Composition / Layout classes used across pages --- */
.main-content { min-width: 0; }
.info-section { padding: 32px 0; }
.tab-section { padding: 32px 0; }
.tab-nav { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 2px solid #e5e7eb; flex-wrap: wrap; }
.blog-list { display: flex; flex-direction: column; gap: 16px; }
.btn-calc {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 24px; font-size: 0.95rem; font-weight: 600; border: none;
  border-radius: 8px; cursor: pointer; background: #f97316; color: #fff; transition: all 0.2s;
}
.btn-calc:hover { background: #ea580c; }
.result-compare { margin-top: 16px; }
.result-onetime { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e5e7eb; }
.cross-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-orange { color: #f97316; }
.text-green { color: #16a34a; }
.text-red { color: #dc2626; }
.text-sm { font-size: 0.85rem; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 8px; }
.hidden { display: none; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* --- Dark Mode --- */
:root {
  --bg: #fef7f0;
  --bg-card: #fff;
  --text: #1f2937;
  --text-muted: #4b5563;
  --border: #e5e7eb;
}
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}
body.dark-mode {
  --bg: #111827;
  --bg-card: #1f2937;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --border: #374151;
}
body.dark-mode { background: var(--bg); color: var(--text); }
body.dark-mode .site-header { background: var(--bg-card); }
body.dark-mode .calculator-box,
body.dark-mode .info-card,
body.dark-mode .sidebar-card,
body.dark-mode .faq-q,
body.dark-mode .nav-select-wrap select,
body.dark-mode .share-btn { background: var(--bg-card); color: var(--text); border-color: var(--border); }
body.dark-mode .site-footer { background: #0f172a; }
body.dark-mode .result-box { background: #064e3b; border-color: #065f46; }
body.dark-mode .result-note { background: #451a03; border-color: #78350f; color: #fdba74; }
body.dark-mode .hero,
body.dark-mode .page-title { background: linear-gradient(135deg, #9a3412 0%, #c2410c 100%); }
body.dark-mode .result-amount { color: #34d399; }
body.dark-mode input, body.dark-mode select { background: #374151; color: #f3f4f6; border-color: #4b5563; }
body.dark-mode th { background: #374151; color: #f3f4f6; }
body.dark-mode tr:hover { background: #1f2937; }
body.dark-mode a, body.dark-mode .nav-list a:hover { color: #fb923c; }
body.dark-mode .logo { color: var(--text); }
body.dark-mode .nav-list a { color: var(--text-muted); }
body.dark-mode .dark-toggle { border-color: #4b5563; }
body.dark-mode .dark-toggle:hover { background: #374151; }
body.dark-mode .field-note { color: #9ca3af; }
.dark-toggle {
  background: none; border: 1px solid #d1d5db; border-radius: 6px;
  padding: 6px 10px; font-size: 1rem; cursor: pointer; line-height: 1;
  transition: all 0.2s;
}
.dark-toggle:hover { background: #f3f4f6; }

/* --- Floating Action Button --- */
.fab-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fab-main {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #f97316;
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(249,115,22,0.35);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fab-main:hover { background: #ea580c; transform: scale(1.08); }
.fab-main.open { transform: rotate(45deg); background: #dc2626; }

.fab-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.fab-menu.open { display: flex; }

.fab-item {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.fab-item:hover { transform: scale(1.1); }
.fab-item .fab-label {
  position: absolute;
  right: 54px;
  background: #1f2937;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.fab-item:hover .fab-label { opacity: 1; }

.fab-top { background: #1f2937; color: #fff; }
.fab-top:hover { background: #374151; }
.fab-print { background: #3b82f6; color: #fff; }
.fab-print:hover { background: #2563eb; }
.fab-dark { background: #8b5cf6; color: #fff; }
.fab-dark:hover { background: #7c3aed; }
.fab-share { background: #10b981; color: #fff; }
.fab-share:hover { background: #059669; }

/* Share sub-menu */
.fab-share-sub {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.fab-share-sub.open { display: flex; }

.fab-share-item {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.fab-share-item:hover { transform: scale(1.1); }
.fab-reddit { background: #ff4500; }
.fab-facebook { background: #1877f2; }
.fab-twitter { background: #000; }
.fab-whatsapp { background: #25d366; }
.fab-copy { background: #6b7280; }

@media (max-width: 768px) {
  .fab-container { bottom: 72px; right: 14px; }
  .fab-main { width: 46px; height: 46px; font-size: 1.2rem; }
  .fab-item { width: 40px; height: 40px; font-size: 1rem; }
}

body.dark-mode .fab-top { background: #4b5563; }
body.dark-mode .fab-top:hover { background: #6b7280; }
