/* Learn4Funs.com — Architectural Studio & Editorial Design System
   Distinct palette: Warm Ivory Canvas (#F7F8FA), Deep Slate Ink (#0F172A),
   Emerald Workbench (#0D7A5F), Cobalt Discovery (#1D4ED8), Amber Signal (#D97706) */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-alt: #f0f3f7;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --emerald: #0d7a5f;
  --emerald-dark: #095c47;
  --emerald-soft: #e6f5f0;
  --cobalt: #1d4ed8;
  --cobalt-soft: #eff6ff;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --danger: #dc2626;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 28px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -4px rgba(15, 23, 42, 0.04);
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* Architectural Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald), #065f46);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(13, 122, 95, 0.25);
}
.brand-logo-img {
  width: auto;
  max-width: 210px;
  object-fit: contain;
}
.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 2px 8px;
  border-radius: 999px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-link {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 13px;
  border-radius: 9px;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover, .nav-link.active {
  background: var(--surface-alt);
  color: var(--ink);
  text-decoration: none;
}
.nav-link.nav-ai {
  color: var(--cobalt);
  background: var(--cobalt-soft);
}
.nav-link.nav-ai:hover { background: #dbeafe; }
.nav-toggle {
  display: none;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Architectural Hero with Subtle Blueprint Grid */
.hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(29, 78, 216, 0.08), transparent 36%),
    radial-gradient(circle at 12% 85%, rgba(13, 122, 95, 0.10), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 44px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: var(--ink);
}
.hero p.lead {
  font-size: 1.07rem;
  color: var(--ink-2);
  margin: 0 0 22px;
  max-width: 58ch;
}
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.trust-pill {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-dark); }
.btn-cobalt { background: var(--cobalt); color: #fff; }
.btn-cobalt:hover { background: #1e40af; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-alt); }
.btn-sm { padding: 7px 12px; font-size: 0.84rem; border-radius: 8px; }

/* Interactive Local-First Dropzone Card */
.dropzone-card {
  background: var(--surface);
  border: 2px dashed #94a3b8;
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s, background 0.2s;
}
.dropzone-card.dragover {
  border-color: var(--emerald);
  background: var(--emerald-soft);
}
.dropzone-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}
.dropzone-card h3 { margin: 0 0 6px; font-size: 1.12rem; }
.dropzone-card p { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; }
.dropzone-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 12px;
}

/* Section Layout & Filter Bar */
.section { padding: 48px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0 0 4px;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--muted); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}
.pill-btn.active, .pill-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.search-input {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.92rem;
  min-width: 240px;
  font-family: var(--font-sans);
}
.search-input:focus { outline: 2px solid rgba(13, 122, 95, 0.25); border-color: var(--emerald); }

/* Tool Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  color: var(--ink);
}
.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--emerald);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tool-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
}
.tool-cat {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}
.tool-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.tool-card p { margin: 0; font-size: 0.89rem; color: var(--ink-2); flex: 1; }
.tool-formats {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid var(--surface-alt);
}

/* AI News & Discover Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.news-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.news-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-thumb-tag {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
}
.news-thumb-title {
  position: relative;
  z-index: 2;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.news-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.news-meta { font-size: 0.79rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.news-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.news-body h3 a { color: var(--ink); }
.news-body h3 a:hover { color: var(--cobalt); }
.news-body p { margin: 0; font-size: 0.9rem; color: var(--ink-2); flex: 1; }

/* Workbench Tool Workspace */
.workbench {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}
.wb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; }
.wb-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.field-label { display: block; font-size: 0.83rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  background: #fff;
  color: var(--ink);
}
.textarea.mono, .code-out {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.code-out {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.table-wrap {
  overflow: auto;
  max-height: 460px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
table.data-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
table.data-grid th, table.data-grid td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  min-width: 90px;
}
table.data-grid th {
  background: var(--surface-alt);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 2;
}
table.data-grid td[contenteditable="true"]:focus {
  outline: 2px solid var(--emerald);
  background: var(--emerald-soft);
}
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.kpi-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.kpi-box .kpi-val { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.kpi-box .kpi-lbl { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

/* Editorial Article Layout */
.article-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.article-wrap h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.18; margin: 10px 0 14px; }
.article-wrap h2 { font-size: 1.35rem; margin: 26px 0 10px; color: var(--ink); }
.article-wrap h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.article-wrap p, .article-wrap li { color: var(--ink-2); font-size: 1.02rem; }
.why-matters {
  background: var(--cobalt-soft);
  border-left: 4px solid var(--cobalt);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
}
.author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-top: 28px;
}
.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--emerald);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Comparison / Info Strip & Footer */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.pillar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 0.96rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 0.88rem; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
  color: #94a3b8;
}

.alert { padding: 12px 16px; border-radius: 10px; font-size: 0.9rem; margin: 12px 0; font-weight: 600; }
.alert-ok { background: var(--emerald-soft); color: var(--emerald-dark); border: 1px solid #a7f3d0; }
.alert-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-info { background: var(--cobalt-soft); color: #1e40af; border: 1px solid #bfdbfe; }
.ad-slot { margin: 18px 0; text-align: center; }

@media (max-width: 900px) {
  .hero-grid, .wb-row, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; width: 100%; padding-bottom: 12px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; padding: 10px 0; }
  .article-wrap { padding: 20px; }
}

/* v3 Modern 5-Column Architectural Footer & Contextual Interlinking */
.related-box {
  margin-top: 28px;
  padding: 22px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.related-box h3 { margin: 0 0 14px; font-size: 1.08rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.related-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.15s, transform 0.15s;
}
.related-item:hover { border-color: var(--emerald); transform: translateY(-1px); text-decoration: none; }
.related-item small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 4px; font-size: 0.75rem; }
.footer-trust-bar {
  background: rgba(13, 122, 95, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: #e2e8f0;
}
.footer-grid-5 {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}
@media (max-width: 960px) {
  .footer-grid-5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid-5 { grid-template-columns: 1fr; }
}

/* v4 Local Upload -> Process -> Done -> Download Pipeline Box */
.l4f-pipeline {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid var(--border-strong);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.l4f-pipe-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.l4f-pipe-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald-dark);
  background: var(--emerald-soft);
  padding: 4px 11px;
  border-radius: 999px;
}
.l4f-pipe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.l4f-prog-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.l4f-prog-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.l4f-prog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.l4f-prog-track {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.l4f-prog-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.18s ease;
}
.l4f-prog-fill.upload { background: linear-gradient(90deg, #0d7a5f, #10b981); }
.l4f-prog-fill.process { background: linear-gradient(90deg, #1d4ed8, #0d7a5f); }
.btn-done {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}
.btn-done:hover { background: #15803d; }

/* Fancy Text Studio UI */
.ft-list { display: grid; gap: 10px; }
.ft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.15s;
}
.ft-row:hover { border-color: var(--emerald); }
.ft-label { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.ft-out { font-size: 1.15rem; color: var(--ink); word-break: break-word; line-height: 1.45; }
.ft-chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.ft-chip {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 15px;
  font-size: 1.02rem;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
}
.ft-chip:hover { border-color: var(--emerald); background: var(--emerald-soft); }
@media (max-width: 720px) {
  .l4f-prog-group { grid-template-columns: 1fr; }
}

/* v5 Exact Excel-Sheet Widget Box (Inspired by Clean Spreadsheet Dropzone Card) */
.l4f-xbox {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.12);
  margin-bottom: 22px;
}
.l4f-xbox-head {
  background: #1b6e44;
  color: #ffffff;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.08rem;
}
.l4f-xbox-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #ffffff;
  color: #1b6e44;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.l4f-xbox-canvas {
  padding: 24px 22px;
  background-color: #f8fafc;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 76px 32px;
}
.l4f-xbox-inner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.l4f-xbox-drop {
  border: 2px dashed #1b6e44;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  background: #ffffff;
  transition: background 0.15s, border-color 0.15s;
}
.l4f-xbox-drop.dragover {
  background: #ecfdf5;
  border-color: #059669;
}
.l4f-xbox-upcircle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1b6e44;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.l4f-xbox-drop h3 { margin: 0 0 6px; font-size: 1.2rem; color: #0f172a; }
.l4f-xbox-drop p { margin: 0 0 16px; color: #64748b; font-size: 0.92rem; }
.l4f-xbox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1b6e44;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.l4f-xbox-btn:hover { background: #145333; }
.l4f-xbox-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.l4f-xbox-btn.cobalt { background: #1d4ed8; }
.l4f-xbox-btn.cobalt:hover { background: #1e40af; }
.l4f-xbox-btn.done { background: #16a34a; }
.l4f-xbox-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.l4f-xbox-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
}
.l4f-xbox-foot {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
}
.l4f-xbox-tab {
  background: #ffffff;
  color: #1b6e44;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 11px 18px;
  border-right: 1px solid #cbd5e1;
  border-bottom: 3px solid #1b6e44;
  margin-left: -16px;
}
.l4f-xbox-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: #475569;
}
.l4f-share-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: none;
}
.l4f-share-btn:hover { background: #e2e8f0; text-decoration: none; }

/* WhatsApp Channel CTA & Banner (v7) */
.btn-wa{background:#16a34a;color:#fff !important;border:1px solid #15803d;font-weight:700;display:inline-flex;align-items:center;gap:6px}
.btn-wa:hover{background:#15803d;color:#fff !important;transform:translateY(-1px)}
.wa-banner{margin:28px 0 20px;padding:18px 22px;background:linear-gradient(135deg,#f0fdf4,#dcfce7);border:1px solid #86efac;border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.wa-banner strong{color:#14532d;font-size:1.05rem}
