/* AlCashLabs Free Tools — light premium style, orange accents */
.aft-wrap { max-width: min(1600px, 94%); margin: 0 auto; padding: 46px 20px 70px; box-sizing: border-box; }
/* Hub page: break out of the theme's narrow content container so the card
   grid uses the full screen width on desktop (tool pages stay narrow). */
main.aft-wrap:not(.aft-tool-wrap) {
  --aft-w: min(1600px, 96vw);
  width: var(--aft-w);
  max-width: none;
  margin-left: calc(50% - var(--aft-w) / 2);
  margin-right: calc(50% - var(--aft-w) / 2);
}
body.alc-free-tools-page .site-content, body.alc-free-tools-page #primary { width: 100%; }

/* Hero */
.aft-hero { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.aft-badge { display: inline-flex; align-items: center; gap: 7px; background: #fff4e5; border: 1px solid #ffd9a3; color: #b45309; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; padding: 8px 16px; border-radius: 999px; margin-bottom: 18px; }
.aft-badge-ic { width: 15px; height: 15px; }
.aft-hero h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 0 auto 12px; color: #101828; letter-spacing: -.02em; }
.aft-hero p { color: #667085; font-size: 16.5px; line-height: 1.6; margin: 0 0 24px; }
.aft-search { position: relative; max-width: 520px; margin: 0 auto; }
.aft-search-ic { position: absolute; right: 16px; left: auto; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #98a2b3; pointer-events: none; }
.aft-hero .aft-search input { width: 100%; padding: 15px 48px 15px 18px; border: 2px solid #e4e7ec; border-radius: 14px; font-size: 15.5px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; box-sizing: border-box; }
.aft-search input:focus { border-color: #ff8a00; box-shadow: 0 0 0 4px rgba(255,138,0,.12); }

/* Layout */
.aft-layout { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.aft-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid #eaecf0; border-radius: 18px; padding: 14px; }
.aft-cat { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border: none; border-radius: 12px; padding: 10px 12px; cursor: pointer; font-size: 14.5px; font-weight: 600; color: #344054; transition: background .15s; }
.aft-cat:hover { background: #f8fafc; }
.aft-cat.active { background: #fff4e5; color: #b45309; }
.aft-cat-ic { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: #f2f4f7; color: #475467; }
.aft-cat-ic svg { width: 20px; height: 20px; }
.aft-cat-name { flex: 1; }
.aft-cat-count { background: #f2f4f7; color: #667085; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.aft-cat.active .aft-cat-count { background: #ffd9a3; color: #9a3412; }
.aft-side-note { margin-top: 8px; background: #f8fafc; border: 1px dashed #d0d5dd; border-radius: 12px; padding: 14px; display: flex; gap: 10px; }
.aft-side-note-ic { width: 22px; height: 22px; color: #12b76a; flex-shrink: 0; }
.aft-side-note p { font-size: 13px; color: #667085; line-height: 1.55; margin: 0; }
.aft-side-note strong { color: #344054; }

/* Category brand colors */
.aft-cat-ic-facebook { background: #e7f0fe; color: #1877f2; }
.aft-cat-ic-youtube  { background: #fee4e2; color: #f04438; }
.aft-cat-ic-instagram{ background: #fae0f5; color: #c13584; }
.aft-cat-ic-tiktok   { background: #e8e8ec; color: #111; }
.aft-cat-ic-seo      { background: #e0f2fe; color: #0ea5e9; }
.aft-cat-ic-text     { background: #ede9fe; color: #7c3aed; }
.aft-cat-ic-image    { background: #fce7f3; color: #db2777; }
.aft-cat-ic-convert  { background: #fef3c7; color: #d97706; }
.aft-cat-ic-utility  { background: #d1fae5; color: #059669; }

/* Groups + cards */
.aft-group { margin-bottom: 38px; }
.aft-group-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.aft-group-ic { width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.aft-group-ic svg { width: 24px; height: 24px; }
.aft-group-head h2 { margin: 0 0 3px; font-size: 20px; color: #101828; }
.aft-group-head p { margin: 0; font-size: 14px; color: #667085; }
.aft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.aft-card { display: flex; gap: 13px; align-items: flex-start; background: #fff; border: 1px solid #eaecf0; border-radius: 16px; padding: 18px; text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s; }
.aft-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,24,40,.09); border-color: #ffd9a3; }
.aft-card-ic { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.aft-card-ic svg { width: 22px; height: 22px; }
.aft-card-body { flex: 1; min-width: 0; }
.aft-card-title { display: block; font-weight: 700; font-size: 15px; color: #101828; margin-bottom: 4px; }
.aft-card-desc { display: block; font-size: 13.5px; color: #667085; line-height: 1.5; }
.aft-card-go { width: 20px; height: 20px; color: #d0d5dd; flex-shrink: 0; margin-top: 2px; transition: color .15s, transform .15s; }
.aft-card:hover .aft-card-go { color: #ff8a00; transform: translateX(3px); }
.aft-empty { text-align: center; padding: 60px 20px; color: #667085; }
.aft-empty-ic { width: 44px; height: 44px; color: #d0d5dd; margin-bottom: 12px; }
.aft-empty h3 { color: #101828; margin: 0 0 6px; }
.aft-empty p { margin: 0; }

/* Tool page */
.aft-tool-wrap { max-width: 920px; }
.aft-crumb { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #98a2b3; margin-bottom: 22px; }
.aft-crumb a { color: #667085; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.aft-crumb a:hover { color: #ff8a00; }
.aft-crumb-ic { width: 15px; height: 15px; }
.aft-crumb-here { color: #101828; font-weight: 600; }
.aft-tool-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.aft-tool-ic { width: 62px; height: 62px; border-radius: 17px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.aft-tool-ic svg { width: 32px; height: 32px; }
.aft-tool-head h1 { margin: 0 0 6px; font-size: clamp(24px, 3.5vw, 32px); color: #101828; letter-spacing: -.01em; }
.aft-tool-head p { margin: 0 0 12px; color: #667085; font-size: 15.5px; }
.aft-tool-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.aft-tag { display: inline-flex; align-items: center; gap: 6px; background: #f2f4f7; color: #475467; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 5px 12px; }
.aft-tag-ic { width: 14px; height: 14px; color: #12b76a; }
.aft-app { background: #fff; border: 1px solid #eaecf0; border-radius: 20px; padding: 30px; box-shadow: 0 8px 30px rgba(16,24,40,.05); }
.aft-related { margin-top: 46px; }
.aft-related h2 { font-size: 20px; color: #101828; margin: 0 0 16px; }

/* Tool UI components (used by tools.js) */
.aft-field { margin-bottom: 18px; }
.aft-label { display: block; font-weight: 600; font-size: 14px; color: #344054; margin-bottom: 8px; }
.aft-input, .aft-textarea, .aft-select { width: 100%; box-sizing: border-box; border: 1.5px solid #e4e7ec; border-radius: 10px; padding: 12px 14px; font-size: 15px; font-family: inherit; background: #fff; color: #101828; outline: none; transition: border-color .15s, box-shadow .15s; }
.aft-input:focus, .aft-textarea:focus, .aft-select:focus { border-color: #ff8a00; box-shadow: 0 0 0 4px rgba(255,138,0,.12); }
.aft-textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.aft-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.aft-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aft-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 10px; padding: 13px 24px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .15s, background .15s; text-decoration: none; }
.aft-btn-primary { background: linear-gradient(135deg, #ffa940, #ff7a00); color: #fff; box-shadow: 0 6px 18px rgba(255,138,0,.35); }
.aft-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,138,0,.45); color: #fff; }
.aft-btn-quiet { background: #fff; border: 1.5px solid #e4e7ec; color: #344054; }
.aft-btn-quiet:hover { border-color: #ff8a00; color: #e65c00; }
.aft-copy { display: inline-flex; align-items: center; gap: 6px; background: #fff4e5; border: 1px solid #ffd9a3; color: #b45309; border-radius: 8px; padding: 7px 13px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.aft-copy:hover { background: #ffedd5; }
.aft-copy svg { width: 15px; height: 15px; }
.aft-result { background: #f8fafc; border: 1px solid #eaecf0; border-radius: 12px; padding: 18px; margin-top: 18px; }
.aft-result pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; line-height: 1.65; color: #1d2939; max-height: 320px; overflow: auto; }
.aft-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 4px 0 18px; }
.aft-stat { background: #f8fafc; border: 1px solid #eaecf0; border-radius: 12px; padding: 14px; text-align: center; }
.aft-stat b { display: block; font-size: 24px; color: #101828; }
.aft-stat span { font-size: 12.5px; color: #667085; font-weight: 600; }
.aft-error { color: #d92d20; font-size: 14px; font-weight: 600; }
.aft-muted { color: #98a2b3; font-size: 13.5px; }
.aft-checks { display: flex; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; }
.aft-checks label { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: #344054; font-weight: 500; cursor: pointer; }
.aft-checks input[type="checkbox"] { width: 17px; height: 17px; accent-color: #ff8a00; }
.aft-range { width: 100%; accent-color: #ff8a00; }
.aft-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
.aft-table th, .aft-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #eaecf0; }
.aft-table th { color: #667085; font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.aft-table td { color: #1d2939; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.aft-img-preview { max-width: 100%; border-radius: 12px; border: 1px solid #eaecf0; margin-top: 12px; }
.aft-drop { border: 2px dashed #d0d5dd; border-radius: 14px; padding: 34px 20px; text-align: center; color: #667085; cursor: pointer; transition: border-color .15s, background .15s; font-size: 14.5px; }
.aft-drop:hover, .aft-drop.aft-over { border-color: #ff8a00; background: #fff8f0; }
.aft-timer { font-size: 40px; font-weight: 800; color: #101828; text-align: center; margin: 8px 0; font-variant-numeric: tabular-nums; }
.aft-big-code { font-size: 44px; font-weight: 800; letter-spacing: .35em; text-align: center; color: #101828; font-variant-numeric: tabular-nums; margin: 10px 0; }
.aft-progress { height: 8px; background: #f2f4f7; border-radius: 999px; overflow: hidden; margin: 12px 0; }
.aft-progress i { display: block; height: 100%; background: linear-gradient(90deg, #ffa940, #ff7a00); border-radius: 999px; transition: width .3s; }
.aft-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; font-family: inherit; }
.aft-pill-live { background: #e6f9ec; color: #15803d; border: 1px solid #bbf7d0; }
.aft-pill-die { background: #fdecec; color: #b91c1c; border: 1px solid #fecaca; }
.aft-pill-unknown { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.aft-sec-h { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #667085; margin: 26px 0 12px; padding-left: 10px; border-left: 3px solid #ff8a00; }
.aft-sec-h:first-child { margin-top: 4px; }

/* Responsive */
@media (max-width: 900px) {
    .aft-layout { grid-template-columns: 1fr; }
    .aft-sidebar { position: static; flex-direction: row; overflow-x: auto; padding: 10px; }
    .aft-cat { white-space: nowrap; width: auto; }
    .aft-cat-count { display: none; }
    .aft-side-note { display: none; }
    .aft-app { padding: 20px; }
    .aft-grid-2 { grid-template-columns: 1fr; }
}

/* v1.0.6 — centered hero title + SEO sections */
/* Less empty space above the hub content */
main.aft-wrap:not(.aft-tool-wrap) { padding-top: 24px; }

/* Compact hero: badge + title centered, search on the right */
.aft-hero-compact { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; max-width: none; margin: 0 0 26px; }
.aft-hero-left { grid-column: 2; text-align: center; min-width: 0; }
.aft-hero-compact .aft-badge { margin-bottom: 10px; }
.aft-hero-compact h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; }
.aft-hero-compact .aft-search { grid-column: 3; justify-self: end; width: min(460px, 100%); margin: 0; }
.aft-hero-compact .aft-search input { padding: 13px 48px 13px 18px; font-size: 15px; }

/* SEO content sections (hub bottom + below each tool) */
.aft-seo { max-width: 880px; margin: 56px auto 0; padding-top: 40px; border-top: 1px solid #eaecf0; }
.aft-tool-seo { max-width: 880px; margin: 48px auto 0; }
.aft-seo h2 { font-size: 24px; color: #101828; letter-spacing: -.01em; margin: 34px 0 14px; }
.aft-seo h2:first-child { margin-top: 0; }
.aft-seo p { color: #475467; font-size: 15.5px; line-height: 1.75; margin: 0 0 14px; }
.aft-seo-why { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.aft-seo-why li { background: #f8fafc; border: 1px solid #eaecf0; border-radius: 12px; padding: 12px 16px; font-size: 15px; color: #475467; line-height: 1.6; }
.aft-seo-why li strong { color: #101828; }

/* FAQ accordions */
.aft-faq { display: grid; gap: 10px; margin-top: 6px; }
.aft-faq details { background: #fff; border: 1px solid #eaecf0; border-radius: 12px; overflow: hidden; }
.aft-faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 15px; color: #1d2939; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aft-faq summary::-webkit-details-marker { display: none; }
.aft-faq summary::after { content: "+"; font-size: 20px; font-weight: 400; color: #ff8a00; flex-shrink: 0; }
.aft-faq details[open] summary::after { content: "–"; }
.aft-faq details p { padding: 0 18px 16px; margin: 0; font-size: 15px; color: #475467; line-height: 1.7; }
.aft-faq details[open] { border-color: #ffd9a3; }

@media (max-width: 900px) {
    .aft-hero-compact { grid-template-columns: 1fr; gap: 16px; margin-bottom: 22px; }
    .aft-hero-left { grid-column: 1; }
    .aft-hero-compact .aft-search { grid-column: 1; justify-self: stretch; width: 100%; }
    .aft-seo { margin-top: 40px; padding-top: 28px; }
    .aft-seo h2 { font-size: 20px; }
}
