/* ai4crafts design system v1: tokens and components (Step 4, UI-1). Adapted from cookaifood's theme.css (67c03ad).
   Loaded AFTER custom.css. New components are prefixed ac-. The "legacy bridge" section restyles the old Bootstrap 4
   classes with the tokens, so pages that still use them (account, gallery, modals, home) match without new markup.
   Palette: ai4crafts teal + amber. Contrast on white: brand-600 5.2:1 and brand-900 7.5:1 (text, buttons);
   brand-500 4.0:1 is for fills and large text only; amber-500 is decorative, amber-700 7.2:1 is its text colour. */

:root {
  /* brand (teal) */
  --brand-50: #EEF7F6;
  --brand-100: #D6EDEA;
  --brand-300: #6FBFB6;
  --brand-500: #1F8E86;
  --brand-600: #177A73;
  --brand-900: #0E5F5B;
  --brand-950: #0A4744;
  /* ink and lines */
  --ink-900: #0F172A;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-400: #94A3B8;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  /* accents */
  --amber-50: #FFF6E6;
  --amber-line: #F2DCB0;
  --amber-500: #D49A3A;
  --amber-700: #7A4E0C;
  --cream-50: #FFF4E0;
  --slate-50: #F1F5F9;
  --slate-line: #D5DEE8;
  /* status */
  --danger-600: #B42318;
  --danger-50: #FEF3F2;
  --success-600: #2E7D32;
  --success-50: #EEF7EE;
  --info-50: #EFF4FF;
  /* type scale (Inter) */
  --text-h1: 1.75rem;
  --text-h2: 1.375rem;
  --text-h3: 1.125rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-min: 0.8125rem;
  /* space, shape, elevation (radius names differ from custom.css's --radius-md / --radius-lg on purpose) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-pill: 999px;
  --shadow-float: 0 6px 24px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.08);
  --focus-ring: 0 0 0 3px rgba(23, 122, 115, 0.45);
  --tap: 44px;
  /* the old custom.css names, aimed at accessible shades */
  --color-primary: #177A73;
  --color-primary-dark: #0E5F5B;
}
@media (max-width: 575.98px) { :root { --text-h1: 1.5rem; --text-h2: 1.25rem; } }

/* ---------- typography ---------- */
.ac-h1 { font-size: var(--text-h1); font-weight: 700; line-height: 1.2; color: var(--ink-900); }
.ac-h2 { font-size: var(--text-h2); font-weight: 600; line-height: 1.25; color: var(--ink-900); }
.ac-h3 { font-size: var(--text-h3); font-weight: 600; line-height: 1.3; color: var(--ink-900); }
.ac-muted { color: var(--ink-600); }
.ac-small { font-size: var(--text-small); }

/* ---------- skip link and top progress bar (replaces the full-screen preloader) ---------- */
.ac-skip { position: absolute; left: 8px; top: -60px; z-index: 5000; background: var(--brand-900); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.ac-skip:focus { top: 8px; color: #fff; }
.ac-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 4000; pointer-events: none; opacity: 0; transition: opacity .2s; }
.ac-bar.is-on { opacity: 1; }
.ac-bar i { display: block; height: 3px; width: 0; background: var(--brand-500); box-shadow: 0 0 8px rgba(31, 142, 134, .6); border-radius: 0 2px 2px 0; }

/* ---------- buttons ---------- */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 10px 20px; border: 1px solid transparent; border-radius: var(--r-sm); font-family: inherit; font-size: var(--text-body); font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.ac-btn:hover { text-decoration: none; }
.ac-btn--primary { background: var(--brand-600); color: #fff; }
.ac-btn--primary:hover, .ac-btn--primary:focus { background: var(--brand-900); color: #fff; }
.ac-btn--secondary { background: #fff; color: var(--brand-600); border-color: var(--brand-600); }
.ac-btn--secondary:hover { background: var(--brand-50); color: var(--brand-900); }
.ac-btn--quiet { background: #fff; color: var(--ink-700); border-color: var(--line-strong); }
.ac-btn--quiet:hover, .ac-btn--quiet:focus { background: var(--brand-50); color: var(--brand-900); border-color: var(--brand-600); }
.ac-btn--quiet.active { background: var(--brand-50); color: var(--brand-900); border-color: var(--brand-600); }
.ac-btn--danger-outline { background: #fff; color: var(--danger-600); border-color: var(--danger-600); }
.ac-btn--danger-outline:hover { background: var(--danger-50); color: var(--danger-600); }
.ac-btn--sm { min-height: 36px; padding: 6px 14px; font-size: var(--text-small); }
.ac-btn--block { display: flex; width: 100%; }
.ac-btn[disabled], .ac-btn.disabled { opacity: .55; cursor: not-allowed; }

/* ---------- cards, pills, stat tiles ---------- */
.ac-card { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-4); }
.ac-card__title { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--space-3); font-size: var(--text-h3); font-weight: 600; line-height: 1.3; color: var(--ink-900); }
.ac-card__title i { color: var(--brand-600); }
.ac-card--mint { background: var(--brand-50); border-color: var(--brand-100); }
.ac-card--mint .ac-card__title { color: var(--brand-900); }
.ac-card--amber { background: var(--amber-50); border-color: var(--amber-line); color: var(--amber-700); }
.ac-card--amber .ac-card__title, .ac-card--amber .ac-card__title i { color: var(--amber-700); }
.ac-card--slate { background: var(--slate-50); border-color: var(--slate-line); }
.ac-card--danger { background: var(--danger-50); border-color: #F5C0BB; }
.ac-card--danger .ac-card__title, .ac-card--danger .ac-card__title i { color: var(--danger-600); }
.ac-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-100); color: var(--brand-900); border-radius: var(--r-pill); padding: 3px 12px; font-size: var(--text-min); font-weight: 600; text-decoration: none; }
a.ac-pill:hover { background: var(--brand-50); color: var(--brand-900); text-decoration: none; }
.ac-pill--amber { background: var(--amber-50); color: var(--amber-700); border: 1px solid var(--amber-line); }
.ac-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: var(--space-4); }
.ac-stat { background: var(--brand-50); border-radius: var(--r-md); padding: 10px 8px; text-align: center; }
.ac-stat__value { display: block; font-size: var(--text-h3); font-weight: 700; color: var(--brand-900); line-height: 1.2; }
.ac-stat__label { display: block; font-size: var(--text-min); color: var(--brand-600); }

/* ---------- lists ---------- */
.ac-list, .ac-check, .ac-alts { list-style: none; margin: 0; padding: 0; }
.ac-list li { position: relative; padding: 3px 0 3px 18px; line-height: 1.6; }
.ac-list li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ac-check li label { display: flex; gap: 10px; align-items: flex-start; min-height: 32px; padding: 4px 0; margin: 0; cursor: pointer; line-height: 1.5; color: var(--ink-700); }
.ac-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand-600); }
.ac-check input:checked + span { text-decoration: line-through; color: var(--ink-400); }
.ac-steps { list-style: none; counter-reset: ac-step; margin: 0; padding: 0; }
.ac-steps li { counter-increment: ac-step; display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; line-height: 1.6; color: var(--ink-700); }
.ac-steps li::before { content: counter(ac-step); flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: var(--brand-600); color: #fff; font-size: var(--text-min); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ac-alts li { padding: 6px 0; line-height: 1.5; border-top: 1px solid rgba(122, 78, 12, .15); }
.ac-alts li:first-child { border-top: 0; padding-top: 0; }

/* ---------- accordion (native details/summary, works without JavaScript) ---------- */
.ac-accordion { border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.ac-accordion details { border-top: 1px solid var(--line); }
.ac-accordion details:first-child { border-top: 0; }
.ac-accordion summary { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 10px 16px; cursor: pointer; font-weight: 600; color: var(--ink-900); list-style: none; }
.ac-accordion summary::-webkit-details-marker { display: none; }
.ac-accordion summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; font-size: .75rem; color: var(--ink-600); transition: transform .15s; }
.ac-accordion details[open] summary::after { transform: rotate(180deg); }
.ac-accordion__q { margin: 0; font-size: var(--text-body); font-weight: 600; line-height: 1.4; }
.ac-accordion__body { padding: 0 16px 14px; color: var(--ink-700); line-height: 1.6; }

/* ---------- craft page (UI-3): action bar, owner row, sticky phone bar ---------- */
.ac-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-3); }
.ac-owner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 var(--space-3); padding: 6px 8px; background: var(--slate-50); border-radius: var(--r-sm); }
.ac-owner__label { font-size: var(--text-min); color: var(--ink-600); margin-right: auto; padding-left: 4px; }
.ac-crumbs { font-size: var(--text-small); color: var(--ink-600); margin-bottom: var(--space-2); }
.ac-crumbs a { color: var(--brand-600); }
.ac-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line-strong); box-shadow: 0 -4px 12px rgba(15, 23, 42, .06); }
.ac-sticky .ac-btn { flex: 1; padding-left: 8px; padding-right: 8px; }
@media (max-width: 991.98px) { body.has-sticky main[role="main"] { padding-bottom: 76px; } }
@media (min-width: 992px) { .ac-sticky { display: none; } }

/* ---------- mascot, panels, empty states ---------- */
.ac-mascot { display: inline-block; max-width: 100%; width: auto; height: auto; }
.ac-empty { text-align: center; padding: var(--space-6) var(--space-4); }
.ac-empty .ac-mascot { max-height: 220px; margin-bottom: var(--space-4); }
.ac-empty__title { font-size: var(--text-h2); font-weight: 700; color: var(--ink-900); margin-bottom: var(--space-2); }
.ac-empty__text { color: var(--ink-600); max-width: 460px; margin: 0 auto var(--space-4); }
.ac-error { padding-top: var(--space-6); padding-bottom: var(--space-6); } /* only vertical: .container keeps its side padding */
.ac-error .ac-mascot { max-height: 340px; }

/* ---------- header and footer (UI-2) ---------- */
.ac-header .navbar { padding: 6px 0; }
.ac-header .navbar-brand { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); }
.ac-header .nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 500; color: var(--ink-700) !important; border-radius: var(--r-sm); padding-left: 12px !important; padding-right: 12px !important; }
.ac-header .nav-link:hover, .ac-header .nav-link:focus { color: var(--brand-900) !important; background: var(--brand-50); }
.ac-header .nav-link.active, .ac-header .nav-link[aria-current="page"] { color: var(--brand-900) !important; background: var(--brand-50); }
.ac-header .nav-link i { color: var(--brand-600); }
.ac-header .ac-credits { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-small); font-weight: 600; color: var(--amber-700); background: var(--amber-50); border: 1px solid var(--amber-line); border-radius: var(--r-pill); padding: 2px 10px; }
.ac-header .navbar-toggler { min-height: var(--tap); min-width: var(--tap); border-color: var(--line-strong); }
.ac-footer { background: var(--brand-950); color: #fff; margin-top: var(--space-7); }
.ac-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.ac-footer a:hover, .ac-footer a:focus { color: #fff; text-decoration: underline; }
.ac-footer__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; font-weight: 700; font-size: 1.15rem; }
.ac-footer__brand img { background: #fff; border-radius: 50%; padding: 2px; }
.ac-footer__text { color: rgba(255, 255, 255, .78); max-width: 360px; font-size: var(--text-small); }
.ac-footer__h { font-size: var(--text-min); font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .65); text-transform: uppercase; margin: 0 0 var(--space-3); }
.ac-footer__list { list-style: none; margin: 0; padding: 0; }
.ac-footer__list a { display: inline-block; padding: 5px 0; font-size: var(--text-small); }
.ac-footer__list small { color: rgba(255, 255, 255, .6); }
.ac-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: var(--space-4) 0 var(--space-5); border-top: 1px solid rgba(255, 255, 255, .14); font-size: var(--text-min); color: rgba(255, 255, 255, .7); }

/* ---------- auth pages (login, register, reset) ---------- */
.ac-auth-card { background: #fff; border-radius: var(--r-md); padding: var(--space-6) var(--space-5); box-shadow: var(--shadow-float); }
@media (min-width: 768px) { .ac-auth-card { padding: var(--space-6) 48px; } }
.ac-auth-links { margin-top: var(--space-4); font-size: var(--text-small); color: var(--ink-600); }
.ac-auth-links a { display: inline-block; padding: 10px 4px; min-height: var(--tap); font-weight: 600; color: var(--brand-600); }

/* =====================================================================
   Legacy bridge: the old Bootstrap 4 / custom.css classes restyled with the tokens
   ===================================================================== */
body { color: var(--ink-700); }
.text-main { color: var(--brand-600) !important; }          /* was the soft teal (2.1:1 on white) */
a.text-main:hover, a .text-main:hover { color: var(--brand-900) !important; }
.text-black-70 { color: var(--ink-700) !important; }
.text-black-50 { color: var(--ink-600) !important; }         /* 50% black was 3.9:1 */
.text-warning { color: var(--amber-700) !important; }        /* Bootstrap yellow is 1.6:1 on white */
.bg-main { background-color: var(--brand-600) !important; }
.btn { font-family: inherit; font-weight: 600 !important; letter-spacing: 0; text-transform: none !important; }
.btn-transform { border-radius: var(--r-sm) !important; }
.btn-main { background: var(--brand-600) !important; border: 1px solid var(--brand-600) !important; color: #fff !important; box-shadow: none !important; }
.btn-main:hover, .btn-main:focus, .btn-main:active, .btn-main.active { background: var(--brand-900) !important; border-color: var(--brand-900) !important; color: #fff !important; }
.btn-main.disabled, .btn-main[disabled] { background: var(--brand-600) !important; opacity: .55; }
.btn-outline-dark, .btn-outline-secondary { background: #fff; border: 1px solid var(--line-strong); color: var(--ink-900); }
.btn-outline-dark:hover, .btn-outline-dark:focus, .btn-outline-secondary:hover, .btn-outline-secondary:focus { background: var(--brand-50) !important; border-color: var(--brand-600) !important; color: var(--brand-900) !important; }
.btn-outline-dark.active, .btn-outline-secondary.active { background: var(--brand-600) !important; border-color: var(--brand-600) !important; color: #fff !important; }
.btn-dark { background: var(--ink-900) !important; border-color: var(--ink-900) !important; }
.btn-danger { background: var(--danger-600); border-color: var(--danger-600); }
.btn-outline-danger { background: #fff; border: 1px solid var(--danger-600); color: var(--danger-600); }
.btn-outline-danger:hover, .btn-outline-danger:focus { background: var(--danger-50) !important; color: var(--danger-600) !important; }
.badge-secondary { background: var(--brand-100) !important; color: var(--brand-900) !important; }
.badge-main { background: var(--brand-600) !important; color: #fff !important; }
.card { border: 1px solid var(--line-strong); border-radius: var(--r-md) !important; }
.card.shadow-lg, .shadow-lg { box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .05) !important; }
.form-control { border: 1px solid var(--line-strong) !important; border-radius: var(--r-sm) !important; color: var(--ink-900) !important; }
input.form-control, select.form-control:not(.selectpicker) { min-height: var(--tap); }
.form-control:focus { border-color: var(--brand-600) !important; box-shadow: var(--focus-ring) !important; }
.control-label, .text-label { color: var(--ink-700); font-weight: 600; }
.alert-danger { background: var(--danger-50); border: 1px solid #F5C0BB; color: #7A1B12; border-radius: var(--r-sm); }
.alert-success { background: var(--success-50); border: 1px solid #BFE0C2; color: #1B5E20; border-radius: var(--r-sm); }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--ink-600); font-weight: 600; min-height: var(--tap); }
.nav-tabs .nav-link.active { color: var(--brand-600); background: transparent; border-bottom-color: var(--brand-600); }
.table thead th, table.dataTable thead th { font-weight: 600 !important; color: var(--ink-900); background: var(--slate-50); }
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--brand-600) !important; border-color: var(--brand-600) !important; color: #fff !important; }
.modal-content { border: 0; border-radius: var(--r-md); box-shadow: var(--shadow-float); }
.dropdown-menu { border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-float); }
.dropdown-item { min-height: 40px; display: flex; align-items: center; gap: 8px; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--brand-50); color: var(--brand-900); }
.dropdown-item i { color: var(--brand-600); width: 18px; text-align: center; }
.card.ac-tint-mint { background: var(--brand-50); border-color: var(--brand-100); }
.card.ac-tint-slate { background: var(--slate-50); border-color: var(--slate-line); }
.card.ac-tint-danger { background: var(--danger-50); border-color: #F5C0BB; }

/* ---------- accessibility, site-wide ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(23, 122, 115, .6);
  outline-offset: 2px;
}
@media (pointer: coarse) {
  .btn:not(.btn-xs):not(.btn-sm) { min-height: var(--tap); }
  .btn-sm { min-height: var(--tap); min-width: var(--tap); }
  .ac-btn--sm { min-height: var(--tap); }
  .ac-footer__list a { padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- image placeholders (UI-7): reserve the space, soft shimmer while loading, fade in when loaded ---------- */
.ac-thumb { display: block; position: relative; width: 100%; padding-top: 100%; overflow: hidden; border-radius: 0.9rem; background: linear-gradient(90deg, var(--slate-50) 25%, #E7EDF3 50%, var(--slate-50) 75%); background-size: 200% 100%; animation: ac-shimmer 1.4s ease-in-out infinite; }
.ac-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease-in; }
.ac-thumb.is-loaded { animation: none; background: var(--slate-50); }
.ac-thumb.is-loaded img { opacity: 1; }
.ac-thumb.is-broken { animation: none; background: var(--brand-50) url("../img/mascot/empty.svg") center / 55% no-repeat; }
.card-hover:hover .ac-thumb img { transform: scale(1.04); transition: opacity .35s ease-in, transform .25s ease-out; }
@keyframes ac-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------- home v2 (Step 5, UI-5) ---------- */
.ac-hero { padding: var(--space-6) 0 var(--space-7); }
.ac-display { font-size: 2.5rem; font-weight: 800; line-height: 1.1; color: var(--ink-900); letter-spacing: -.01em; }
@media (max-width: 575.98px) { .ac-display { font-size: 2rem; } }
.ac-lead { font-size: 1.125rem; line-height: 1.6; color: var(--ink-700); max-width: 560px; }
.ac-checks { list-style: none; margin: 0; padding: 0; }
.ac-checks li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; color: var(--ink-700); }
.ac-checks i { color: var(--brand-600); }
.ac-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ac-mosaic__tile { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; text-decoration: none; }
.ac-mosaic__tile .ac-thumb { border-radius: var(--r-md); }
.ac-mosaic__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: var(--text-min); font-weight: 600; line-height: 1.25; color: #fff; background: linear-gradient(to top, rgba(10, 30, 28, .8), rgba(10, 30, 28, 0)); opacity: 0; transition: opacity .2s; }
.ac-mosaic__tile:hover .ac-mosaic__title, .ac-mosaic__tile:focus .ac-mosaic__title { opacity: 1; }
@media (pointer: coarse) { .ac-mosaic__title { opacity: 1; } }
.ac-section { padding: var(--space-7) 0; }
.ac-section--tight { padding: var(--space-5) 0; }
.ac-section--tint { background: var(--brand-50); }
.ac-step { text-align: center; }
.ac-step .ac-mascot { max-width: 140px; }
.ac-step__n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-600); color: #fff; font-size: var(--text-min); font-weight: 700; margin-right: 4px; vertical-align: middle; }
.ac-feature__ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--brand-100); color: var(--brand-900); font-size: 1.25rem; margin-bottom: var(--space-3); }
.ac-stat--lg { padding: var(--space-5) var(--space-4); }
.ac-stat--lg .ac-stat__value { font-size: 2rem; }
.ac-stat--lg .ac-stat__label { font-size: var(--text-small); }
.ac-model { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; padding: var(--space-4) var(--space-3); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-md); text-align: center; }
.ac-model__name { font-weight: 700; color: var(--ink-900); }
.ac-model__note { font-size: var(--text-small); color: var(--ink-600); flex-grow: 1; }
.ac-plan { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.ac-plan li { position: relative; padding: 5px 0 5px 28px; color: var(--ink-700); }
.ac-plan li::before { position: absolute; left: 0; top: 5px; font-family: "Font Awesome 6 Free"; font-weight: 900; }
.ac-plan li.is-yes::before { content: "\f00c"; color: var(--brand-600); }
.ac-plan li.is-no { color: var(--ink-600); }
.ac-plan li.is-no::before { content: "\f00d"; color: var(--ink-400); }
.ac-card--featured { box-shadow: var(--shadow-float); border-color: var(--brand-300); }
.ac-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); padding: var(--space-5); background: var(--cream-50); border-radius: var(--r-md); }
.ac-cta .ac-mascot { max-width: 180px; }
/* home cards: a plain responsive grid (no Isotope on the home page): 2, 3 or 5 per row */
.ac-home-grid .grid-item { flex: 0 0 50%; max-width: 50%; padding: 0 8px; }
.ac-home-grid .pagination__next { display: none; }
@media (min-width: 768px) { .ac-home-grid .grid-item { flex-basis: 33.333%; max-width: 33.333%; } }
@media (min-width: 1200px) { .ac-home-grid .grid-item { flex-basis: 20%; max-width: 20%; } }
/* craft cover and the image dialog: block containers so width="600" on the img (kept for the aspect ratio, no layout
   shift) never widens the page; custom.css made .image-container inline-block, which shrink-wraps to that width */
#imgCraft .image-container, #modalImage .image-container { display: block; max-width: 100%; }
#imgCraft .imageCover, #modalImage .imgClick { width: 100%; height: auto; }
/* select dropdowns (bootstrap-select 1.13.14): its CSS hides a select until the script draws the button, so the form
   grew by 40 px per select when the script ran (layout shift). Reserve the same box until then; once wrapped in
   .bootstrap-select the select is absolutely positioned by the library and this rule no longer matches. */
:not(.bootstrap-select) > select.selectpicker { display: block !important; visibility: hidden; height: 40px; }
/* gallery filters (data-width="fit"): the button is as wide as its label. custom.css capped it at 150 px and the library
   gives the label width: 100% next to the caret, so long labels were cut ("Select Categor", "Choose Materi"). */
.bootstrap-select.fit-width > .form-control-custom-list { max-width: none !important; }
.bootstrap-select.fit-width .dropdown-toggle .filter-option { width: auto; flex: 0 0 auto; overflow: visible; }

/* ---------- crawlable index and pager (SEO-6) and hub pages (SEO-5) ---------- */
.ac-index__list { columns: 3 260px; column-gap: var(--space-5); list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.ac-index__list li { break-inside: avoid; padding: 3px 0; font-size: var(--text-small); }
.ac-index__list a { color: var(--brand-600); }
.ac-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ac-pager > a:not(.ac-btn), .ac-pager__current { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 0 8px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); color: var(--ink-700); text-decoration: none; }
.ac-pager > a:not(.ac-btn):hover { background: var(--brand-50); color: var(--brand-900); }
.ac-pager__current { background: var(--brand-600); border-color: var(--brand-600); color: #fff; font-weight: 700; }
.ac-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ac-hub-card { display: block; text-decoration: none; color: var(--ink-900); }
.ac-hub-card:hover { text-decoration: none; color: var(--brand-900); }
.ac-hub-card__title { display: block; margin-top: 6px; font-size: var(--text-small); font-weight: 600; line-height: 1.3; }
.ac-footer__hubs { font-size: var(--text-small); line-height: 2; }
.ac-footer__hubs span { color: rgba(255, 255, 255, .45); margin: 0 4px; }

/* ---------- Step 7: legal pages, cookie banner, legal bar, payment result, onboarding ---------- */
.ac-prose { padding: var(--space-5); color: var(--ink-700); line-height: 1.65; }
.ac-prose h2 { font-size: 1.1rem; font-weight: 600; color: var(--ink-900); margin: var(--space-5) 0 var(--space-2); }
.ac-prose h2:first-child { margin-top: 0; }
.ac-prose ul { padding-left: 1.2rem; }
.ac-prose table { font-size: .9rem; }
.ac-prose th { color: var(--ink-900); font-weight: 600; }
.ac-prose a { color: var(--brand-600); text-decoration: underline; }
@media (max-width: 575px) { .ac-prose { padding: var(--space-4); } }

.ac-consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1085; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: 0 8px 30px rgba(15, 23, 42, .18); padding: 14px 16px; display: flex; gap: 16px; align-items: center; }
.ac-consent__text { margin: 0; font-size: .9rem; color: var(--ink-700); line-height: 1.45; }
.ac-consent__text a { color: var(--brand-600); text-decoration: underline; }
.ac-consent__btns { display: flex; gap: 8px; flex: none; }
.ac-consent__btns .ac-btn { min-width: 92px; }
@media (max-width: 575px) { .ac-consent { flex-direction: column; align-items: stretch; gap: 10px; } .ac-consent__btns .ac-btn { flex: 1; } }

.ac-legalbar { margin: var(--space-4) 0 0; text-align: center; }
.ac-legalbar p { margin: 0; }
.ac-legalbar__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: .8rem; margin-bottom: 4px !important; }
.ac-legalbar__links a { color: var(--ink-600); }
.ac-legalbar__links a:hover { color: var(--brand-600); }
.ac-legalbar__text { font-size: .75rem; color: var(--ink-600); }
/* label on AI-generated project images (OTH-1, as on cookaifood) */
.ac-ai-chip { position: absolute; left: 10px; bottom: 10px; z-index: 2; background: rgba(15, 23, 42, .72); color: #fff; font-size: .72rem; line-height: 1; padding: 5px 9px; border-radius: 999px; pointer-events: none; letter-spacing: .01em; }

.ac-consent-box { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-700); }
.ac-consent-box input { margin-top: 4px; flex: none; width: 18px; height: 18px; }
.ac-consent-box a { color: var(--brand-600); text-decoration: underline; }

.ac-result { padding: var(--space-6) var(--space-5); }
.ac-result a:not(.ac-btn) { color: var(--brand-600); text-decoration: underline; }
