/* ==========================================================================
   AMILMA CODE — DevTool design (GitHub / VS Code inspired)
   Clean, dense, utilitarian. Flat surfaces, hairline borders, mono details.
   Purple = action/selection. Green = success. Amber = warning. Red = error.
   Loads AFTER app.css / custom.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts & tokens
   -------------------------------------------------------------------------- */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Sora-600.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Sora-700.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/Sora-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Inter-700.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/JetBrainsMono-500.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/JetBrainsMono-600.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/JetBrainsMono-700.woff2') format('woff2'); }

:root {
    /* Brand */
    --ac-primary: #6D28D9;
    --ac-primary-600: #5B21B6;
    --ac-primary-active: #4C1D95;
    --ac-primary-soft: #EDE9FE;
    --ac-violet-300: #C4B5FD;
    --ac-violet-400: #A78BFA;
    --ac-violet-500: #8B5CF6;
    --ac-focus: 0 0 0 3px rgba(109, 40, 217, .32);

    /* Neutrals (slate) */
    --ac-canvas: #F8FAFC;
    --ac-surface: #FFFFFF;
    --ac-surface-2: #F1F5F9;
    --ac-ink: #0F172A;
    --ac-ink-soft: #0F172A;
    --ac-ink-border: #1E293B;
    --ac-text: #0F172A;
    --ac-muted: #475569;
    --ac-border: #E2E8F0;
    --ac-border-input: #CBD5E1;
    --ac-border-strong: #B6C2D2;

    /* Semantic */
    --ac-success: #16A34A;
    --ac-warning: #F59E0B;
    --ac-danger: #DC2626;
    --ac-amber: #F59E0B;

    /* Flat shadows (GitHub-like) */
    --ac-shadow-xs: 0 1px 0 rgba(15, 23, 42, .04);
    --ac-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --ac-shadow-md: 0 4px 12px rgba(140, 149, 159, .18);
    --ac-shadow-lg: 0 8px 24px rgba(140, 149, 159, .22);
    --ac-ease: cubic-bezier(.3, .8, .3, 1);

    /* Bridge legacy theme tokens (mirrors colors.css) */
    --primary_color: #6D28D9;
    --secondary_color: #0F172A;
    --background_color: #F8FAFC;
    --navbar1_background_color: #0F172A;
    --navbar2_background_color: #FFFFFF;
    --trending_item_badge_color: #8B5CF6;
    --sale_item_badge_color: #6D28D9;
    --free_item_badge_color: #475569;
    --header_background_color: #F8FAFC;
    --swiper_background_color: #F1F5F9;
    --text_color: #0F172A;
    --heading_color: #0F172A;
    --text_muted: #475569;
    --border_color: #E2E8F0;
    --dashboard_sidebar_header_background_color: #0F172A;
    --dashboard_sidebar_body_background_color: #111A2E;
    --dashboard_sidebar_elements_background_color: #1E293B;
    --files_icon_color: #6D28D9;
    --item_preview_navbar_background: #0F172A;
    --footer_background_color: #0F172A;
    --footer_border_color: #1E293B;
    --footer_text_color: #94A3B8;
    --bs-primary: #6D28D9;
    --bs-primary-rgb: 109, 40, 217;
    --bs-link-color: #5B21B6;
    --bs-link-hover-color: #6D28D9;
    --bs-success: #16A34A;
    --bs-success-rgb: 22, 163, 74;
    --bs-warning: #F59E0B;
    --bs-warning-rgb: 245, 158, 11;
    --bs-danger: #DC2626;
    --bs-danger-rgb: 220, 38, 38;
    --bs-border-color: #E2E8F0;
    --bs-border-radius: 6px;
    --bs-border-radius-lg: 8px;
    --bs-focus-ring-color: rgba(109, 40, 217, .3);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ac-text);
    background-color: var(--ac-canvas);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.bg-white { background-color: var(--ac-canvas) !important; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', 'Inter', sans-serif;
    color: var(--ac-ink);
    letter-spacing: -0.01em;
    font-weight: 700;
}

h6 { font-size: 14px; font-weight: 600; }

a { color: var(--ac-primary-600); transition: color .15s var(--ac-ease); }
a:hover { color: var(--ac-primary); opacity: 1; }

::selection { background: rgba(109, 40, 217, .22); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C3CBD6; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #9AA5B4; }

:focus-visible {
    outline: 2px solid var(--ac-primary);
    outline-offset: 1px;
    border-radius: 4px;
}

.font-mono, .mono {
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    letter-spacing: -0.01em;
}

/* GitHub-style kbd chips */
kbd, .ac-kbd {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ac-muted);
    background: #F6F8FA;
    border: 1px solid var(--ac-border-input);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 5px;
    white-space: nowrap;
}

/* Blinking terminal cursor */
.ac-cursor {
    display: inline-block;
    width: 8px;
    height: 1.05em;
    margin-left: 3px;
    background: var(--ac-primary);
    vertical-align: -0.15em;
    animation: ac-blink 1.1s steps(2, start) infinite;
    border-radius: 1px;
}
@keyframes ac-blink {
    to { visibility: hidden; }
}

/* Hacker logo (inline SVG) */
.ac-logo { flex-shrink: 0; }
.ac-logo svg { height: 100%; width: auto; display: block; }
.ac-logo .ac-logo-cursor { animation: ac-cursor-blink 1.15s steps(2, start) infinite; }
@keyframes ac-cursor-blink {
    to { opacity: .12; }
}

/* Typed search placeholder cursor (ac-fx.js) */
.ac-type-cursor {
    position: absolute;
    height: 18px;
    width: 2px;
    background: var(--ac-primary);
    border-radius: 1px;
    pointer-events: none;
    animation: ac-blink 1.1s steps(2, start) infinite;
}

/* --------------------------------------------------------------------------
   3. Buttons (compact, flat)
   -------------------------------------------------------------------------- */
.btn {
    --bs-btn-border-radius: 6px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13.5px;
    padding: 5px 14px;
    border: 1px solid transparent;
    transition: background-color .15s var(--ac-ease), border-color .15s var(--ac-ease), box-shadow .15s var(--ac-ease);
    box-shadow: none !important;
}

.btn:active { transform: none; }

.btn.btn-primary {
    background: var(--ac-primary);
    border-color: var(--ac-primary);
    color: #fff;
}
.btn.btn-primary:hover, .btn.btn-primary:focus { background: var(--ac-primary-600); border-color: var(--ac-primary-600); color: #fff; }
.btn.btn-primary:active { background: var(--ac-primary-active); border-color: var(--ac-primary-active); color: #fff; }
.btn.btn-secondary { background: var(--ac-ink); border-color: var(--ac-ink); color: #fff; }
.btn.btn-secondary:hover { background: #1E293B; border-color: #1E293B; color: #fff; }

.btn.btn-outline-primary {
    color: var(--ac-primary);
    border-color: var(--ac-violet-300);
    background: #fff;
}
.btn.btn-outline-primary:hover, .btn.btn-outline-primary:active, .btn.btn-outline-primary:focus {
    background: var(--ac-primary-soft);
    border-color: var(--ac-primary);
    color: var(--ac-primary-600);
}
.btn-check:active + .btn-outline-primary, .btn-check:checked + .btn-outline-primary,
.btn-outline-primary.active, .btn-outline-primary.dropdown-toggle.show, .btn-outline-primary:active {
    background: var(--ac-primary) !important;
    border-color: var(--ac-primary) !important;
    color: #fff !important;
}

/* GitHub-style neutral secondary button */
.btn.btn-outline-secondary {
    color: var(--ac-text);
    border-color: var(--ac-border-input);
    background: #F6F8FA;
}
.btn.btn-outline-secondary:hover { background: #EEF2F6; border-color: var(--ac-border-strong); color: var(--ac-text); }
.btn.btn-soft { background: #fff; color: var(--ac-text); border-color: var(--ac-border); }
.btn.btn-soft:hover { border-color: var(--ac-border-input) !important; background: var(--ac-surface-2); }

.btn.btn-premium { background: var(--ac-primary); border: none; color: #fff; }
.btn.btn-premium:hover { background: var(--ac-primary-600); color: #fff; }
.btn.btn-outline-premium {
    border: 1px solid var(--ac-violet-300);
    color: var(--ac-primary-600);
    background: #fff;
}
.btn.btn-outline-premium:hover, .btn.btn-outline-premium:active, .btn.btn-outline-premium:focus {
    background: var(--ac-primary-soft);
    color: var(--ac-primary-600);
    border-color: var(--ac-primary);
}

.btn.btn-light { background: #fff; border-color: #fff; color: var(--ac-primary-600); }
.btn:hover { opacity: 1; }
.btn[class*="outline"]:hover { opacity: 1 !important; }

.btn.btn-md { padding: 7px 18px; font-size: 14px; }
.btn.btn-lg { padding: 9px 22px; font-size: 14.5px; }

.btn-gradient {
    background: var(--ac-primary);
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-gradient:hover { background: var(--ac-primary-600); color: #fff; }

/* --------------------------------------------------------------------------
   4. Forms (compact, crisp borders)
   -------------------------------------------------------------------------- */
.form-control, .form-select {
    border-color: var(--ac-border-input);
    border-radius: 6px;
    color: var(--ac-text);
    padding: 5px 12px;
    font-size: 13.5px;
    transition: border-color .15s var(--ac-ease), box-shadow .15s var(--ac-ease);
    background-color: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ac-primary);
    box-shadow: var(--ac-focus);
    background-color: #fff;
}
.form-control::placeholder { color: #94A3B8; }
.form-control.form-control-md { padding: 8px 14px; font-size: 14px; }
.form-control.form-control-lg { padding: 10px 16px; font-size: 14.5px; }
.form-check-input:checked { background-color: var(--ac-primary); border-color: var(--ac-primary); }
.form-check-input:focus { border-color: var(--ac-primary); box-shadow: var(--ac-focus); }
.form-switch .form-check-input:checked { background-color: var(--ac-primary); }

.input-group.custom .form-control { border-radius: 6px !important; }
.input-group.custom button { border-radius: 5px !important; }
.input-group button { border-top-right-radius: 5px !important; border-bottom-right-radius: 5px !important; }

/* Search (GitHub-style: compact, kbd hints) */
.form-search .form-control { border-radius: 6px; }
.ac-nav-search { width: 240px; flex-shrink: 1; min-width: 0; }
.ac-nav-search .form-control {
    border-radius: 6px;
    background: #F6F8FA;
    border-color: var(--ac-border-input);
    font-size: 13px;
    padding-block: 5px;
    padding-inline-start: 34px;
    padding-inline-end: 30px;
}
.ac-nav-search .form-control:focus { background: #fff; }
.ac-nav-search .icon { color: var(--ac-muted); width: 34px; }
.ac-nav-kbd {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.search .search-input input {
    border-radius: 6px;
    padding: 11px 150px 11px 16px;
    font-size: 14.5px;
    color: var(--ac-text);
    box-shadow: var(--ac-shadow-xs);
    border: 1px solid var(--ac-border-input);
    transition: box-shadow .15s var(--ac-ease), border-color .15s var(--ac-ease);
}
.search .search-input input:focus { border-color: var(--ac-primary); box-shadow: var(--ac-focus); }
.search .search-input .btn {
    border-radius: 5px;
    padding: 8px 18px;
    background: var(--ac-primary);
    border: none;
    font-weight: 600;
    font-size: 13.5px;
}
.search .search-input .btn:hover { background: var(--ac-primary-600); }
.ac-search-kbds {
    position: absolute;
    right: 152px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   5. Badges, labels, ratings, pagination, breadcrumbs
   -------------------------------------------------------------------------- */
.user-badge {
    background: var(--ac-primary);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
}

.ac-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.5;
}
.ac-badge-sale { background: var(--ac-primary); color: #fff; }
.ac-badge-free { background: #475569; color: #fff; }
.ac-badge-trending { background: var(--ac-violet-500); color: #fff; }
.ac-badge-new { background: var(--ac-primary-soft); color: var(--ac-primary-600); }
.ac-badge-soft { background: var(--ac-surface-2); color: var(--ac-muted); border: 1px solid var(--ac-border); }
.ac-badge-premium { background: var(--ac-primary); color: #fff; }

.item-badge {
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 2px 8px;
    text-transform: uppercase;
    top: 10px;
    inset-inline-start: 10px;
    left: auto;
    background-color: var(--ac-primary);
    box-shadow: none;
}
.item-badge.item-badge-trending { background: var(--ac-violet-500); }
.item-badge.item-badge-sale { background: var(--ac-primary); }
.item-badge.item-badge-free { background: #475569; }
.item-badge.item-badge-premium { background: var(--ac-primary); }

.ratings { color: var(--ac-amber); font-size: 12.5px; }
.ratings i { margin-right: 1px; }
.ratings .ratings-text { color: var(--ac-muted); font-weight: 500; }

.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border-color: var(--ac-border);
    color: var(--ac-text);
    font-weight: 500;
    font-size: 13px;
    min-width: 34px;
    padding: 4px 8px;
    text-align: center;
    transition: all .15s var(--ac-ease);
}
.pagination .page-link:hover { background: var(--ac-primary-soft); color: var(--ac-primary-600); border-color: var(--ac-violet-300); }
.pagination .page-item.active .page-link { background: var(--ac-primary); border-color: var(--ac-primary); color: #fff; }
.pagination .page-item.disabled .page-link { color: #A8B3C4; }

.breadcrumb.custom .breadcrumb-item { font-size: 13px; }
.breadcrumb.custom .breadcrumb-item a { color: var(--ac-muted); font-weight: 500; }
.breadcrumb.custom .breadcrumb-item a:hover { color: var(--ac-primary-600); opacity: 1; }
.breadcrumb.custom .breadcrumb-item.active { color: var(--ac-primary-600); font-weight: 600; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
/* Utility strip (deep navy) */
.ac-utility {
    background: var(--ac-ink-soft);
    color: #CBD5E1;
    font-size: 12.5px;
    min-height: 34px;
}
@media (min-width: 1200px) {
    .ac-utility { display: flex; align-items: center; }
}
.ac-utility .ac-utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 4px 0;
}
.ac-utility a { color: #E2E8F0; font-weight: 500; text-decoration: none; }
.ac-utility a:hover { color: var(--ac-violet-400); }
.ac-utility .ac-utility-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    background: var(--ac-primary);
    color: #fff;
    border-radius: 5px;
    padding: 2px 7px;
    margin-right: 10px;
    text-transform: uppercase;
}
.ac-utility .ac-utility-links { display: flex; align-items: center; gap: 18px; }

/* Main bar (GitHub-style: white, hairline border, compact) */
.nav-bar {
    background: #fff;
    color: var(--ac-text);
    font-size: 14px;
    border-bottom: 1px solid var(--ac-border);
    position: sticky;
    top: 0;
    z-index: 1040;
}
.nav-bar .nav-bar-container { height: 58px; }

.nav-bar .link, .nav-bar .drop-down { margin-right: 0; }
.nav-bar .link {
    color: var(--ac-text);
    font-weight: 500;
    font-size: 13.5px;
    padding: 6px 10px;
    border-radius: 6px;
    position: relative;
}
.nav-bar .link:hover { color: var(--ac-primary-600); background: var(--ac-primary-soft); opacity: 1; }
.nav-bar .link-btn:not(:last-child) { margin-right: 8px; }

.nav-bar .logo { height: 21px; }
.nav-bar .nav-bar-buttons { flex-shrink: 1; min-width: 0; gap: 6px; }
.nav-bar .nav-bar-buttons .link-btn { flex-shrink: 0; }

/* Categories take priority in the header */
.nav-bar .drop-down .drop-down-btn { font-weight: 600; }
/* Search takes priority: white field, visible border */
.ac-nav-search .form-control {
    background: #fff;
    border-color: var(--ac-border-input);
}
.ac-nav-search .form-control:focus { background: #fff; }

/* Compact category menu */
.nav-bar .drop-down { position: relative; }
.nav-bar .drop-down .drop-down-btn {
    color: var(--ac-text);
    font-weight: 500;
    font-size: 13.5px;
    padding: 6px 9px;
    border-radius: 6px;
    transition: all .15s var(--ac-ease);
}
.nav-bar .drop-down .drop-down-btn .fa-angle-down { display: none; }
.nav-bar .drop-down .drop-down-btn span.me-2 { margin-right: 0 !important; }
.nav-bar .drop-down .drop-down-btn .ac-nav-icon { margin-right: 6px; color: var(--ac-muted); font-size: 13px; }
.nav-bar .drop-down .drop-down-btn:hover,
.nav-bar .drop-down.active .drop-down-btn {
    color: var(--ac-primary-600);
    background: var(--ac-primary-soft);
}
.nav-bar .nav-bar-links { gap: 2px; }

.nav-bar .drop-down .drop-down-menu {
    top: calc(100% + 8px);
    border-radius: 8px;
    border: 1px solid var(--ac-border);
    box-shadow: var(--ac-shadow-lg);
    padding: 4px;
    min-width: 208px;
}
.nav-bar .drop-down .drop-down-item {
    border-radius: 6px;
    padding: 7px 10px;
    font-weight: 500;
    font-size: 13.5px;
    color: var(--ac-text);
    display: flex;
    align-items: center;
    gap: 9px;
}
.nav-bar .drop-down .drop-down-item i { width: 16px; text-align: center; color: var(--ac-primary); font-size: 13px; }
.nav-bar .drop-down .drop-down-item:hover { background: var(--ac-primary-soft); color: var(--ac-primary-600) !important; }

/* Premium icon pill below 1700px */
.nav-bar .btn-outline-premium { font-size: 0; padding-inline: 9px; }
.nav-bar .btn-outline-premium i { font-size: 13px; margin: 0 !important; }
@media (min-width: 1600px) {
    .nav-bar .btn-outline-premium { font-size: 13.5px; padding-inline: 14px; }
    .nav-bar .btn-outline-premium i { font-size: 13px; margin-right: 6px !important; }
}
.ac-nav-search { width: 240px; }
@media (min-width: 1400px) and (max-width: 1599.98px) { .ac-nav-search { width: 210px; } }

/* Responsive header budget */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .ac-nav-search { display: none; }
    .nav-bar .nav-bar-buttons .btn-outline-primary { font-size: 0; padding-inline: 9px; }
    .nav-bar .nav-bar-buttons .btn-outline-primary::before {
        content: "\f2bd";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 13px;
    }
}

/* Mobile drawer: navy panel with light links */
@media (max-width: 1199.98px) {
    .nav-bar .nav-bar-menu { margin-inline-start: 0 !important; }
    .nav-bar .nav-bar-menu-inner { background: var(--ac-ink-soft); }
    .nav-bar .nav-bar-menu-inner .link,
    .nav-bar .nav-bar-menu-inner .drop-down .drop-down-btn {
        color: #E2E8F0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .nav-bar .nav-bar-menu-inner .link:hover,
    .nav-bar .nav-bar-menu-inner .drop-down .drop-down-btn:hover {
        color: var(--ac-violet-400);
        background: rgba(255, 255, 255, .06);
    }
    .nav-bar .nav-bar-menu-inner .drop-down .drop-down-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        border: 0;
        border-inline-start: 2px solid rgba(167, 139, 250, .45);
        border-radius: 0;
        margin-inline-start: 10px;
        padding: 0 0 0 6px;
        background: transparent;
        min-width: 0;
    }
    .nav-bar .nav-bar-menu-inner .drop-down .drop-down-item {
        color: #CBD5E1;
        font-weight: 500;
        padding: 11px 10px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .nav-bar .nav-bar-menu-inner .drop-down .drop-down-item:hover {
        background: var(--ac-primary-soft);
        color: var(--ac-primary-600) !important;
    }
    .nav-bar .nav-bar-menu-inner .link-btn .btn { width: 100%; margin-bottom: 10px; }
    .nav-bar .nav-bar-menu-btn { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
    .nav-bar .nav-bar-menu-close { min-width: 40px; min-height: 40px; }
}

.cart-btn .cart-counter {
    background: var(--ac-primary);
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
}

/* --------------------------------------------------------------------------
   7. Hero (flat, editor-grid background)
   -------------------------------------------------------------------------- */
.header { overflow: hidden; }

.header-image {
    background: var(--ac-canvas) !important;
    background-image: none !important;
    position: relative;
}
/* subtle blue glow (center-right) + faint dot grid — layers under content */
.header-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(680px 460px at 72% 42%, rgba(37, 99, 235, .16), transparent 68%),
        radial-gradient(420px 300px at 88% 78%, rgba(109, 40, 217, .08), transparent 70%),
        radial-gradient(rgba(15, 23, 42, .13) 1px, transparent 1.4px);
    background-size: auto, auto, 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.45) 0%, #000 55%);
    mask-image: linear-gradient(90deg, rgba(0,0,0,.45) 0%, #000 55%);
}
.header-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 60%, var(--ac-canvas) 100%);
    pointer-events: none;
}

/* Slow dim terminal lines behind the hero content */
.ac-terminal-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
.ac-terminal-bg span {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: .04em;
    color: rgba(37, 99, 235, .22);
    white-space: nowrap;
    animation: ac-term-drift 55s ease-in-out infinite alternate;
}
.ac-terminal-bg span:nth-child(1) { left: 7%; top: 20%; animation-duration: 48s; }
.ac-terminal-bg span:nth-child(2) { right: 10%; top: 56%; animation-duration: 66s; animation-delay: -16s; }
.ac-terminal-bg span:nth-child(3) { left: 24%; top: 82%; animation-duration: 58s; animation-delay: -31s; }
@keyframes ac-term-drift {
    from { transform: translateY(0); opacity: .45; }
    to { transform: translateY(-26px); opacity: 1; }
}
@media (max-width: 767.98px) {
    .ac-terminal-bg span { color: rgba(37, 99, 235, .14); font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .ac-terminal-bg span { animation: none; }
}

.header-image .header-inner {
    min-height: 540px;
    padding-top: 64px;
    padding-bottom: 64px;
    color: var(--ac-text);
    z-index: 1;
}

.header-bg { border-bottom: 1px solid var(--ac-border); }
.header-bg .header-inner { padding-top: 36px; padding-bottom: 36px; }
.header-bg .header-title { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; width: 100%; margin-bottom: 6px; }

.header .header-container {
    max-width: 620px;
    text-align: left;
    margin: 0;
    position: relative;
    z-index: 2;
}

.header .header-title {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ac-ink);
    margin-bottom: 14px;
    width: 100%;
}
.header .header-title .ac-hero-highlight { color: var(--ac-primary); }

.header .header-text {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ac-muted);
    width: 100%;
    margin-bottom: 0;
    opacity: 1 !important;
}

.header .ac-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ac-primary-600);
    background: #fff;
    border: 1px solid var(--ac-border);
    border-radius: 6px;
    padding: 5px 12px;
    margin-bottom: 18px;
}
.header .ac-hero-eyebrow::before {
    content: '$';
    color: var(--ac-primary);
    font-weight: 700;
}

.header .header-search { margin-top: 20px; }
.header .search { width: 100%; max-width: 580px; margin: 0; }

/* GitHub topic-tag chips */
.ac-hero-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.ac-hero-tags .ac-hero-tags-label { font-size: 12.5px; color: var(--ac-muted); font-weight: 500; margin-right: 2px; }
.ac-hero-tags a {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ac-primary-600);
    background: var(--ac-primary-soft);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 2px 11px;
    text-decoration: none;
    transition: all .15s var(--ac-ease);
}
.ac-hero-tags a:hover { background: #DDD6FE; color: var(--ac-primary-600); }

/* Hero collage: flat editor window + terminal card */
.ac-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 44px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.ac-hero-collage { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; }
.ac-hero-collage .ac-hero-frame {
    width: min(560px, 100%);
    background: #fff;
    border: 1px solid var(--ac-border);
    border-radius: 10px;
    box-shadow: var(--ac-shadow-lg);
    overflow: hidden;
    position: relative;
}
.ac-hero-frame .ac-hero-frame-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--ac-border);
    background: var(--ac-surface-2);
}
.ac-hero-frame .ac-hero-frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: #CBD5E1; }
.ac-hero-frame .ac-hero-frame-bar span:first-child { background: #FCA5A5; }
.ac-hero-frame .ac-hero-frame-bar span:nth-child(2) { background: #FCD34D; }
.ac-hero-frame .ac-hero-frame-bar span:nth-child(3) { background: #86EFAC; }
.ac-hero-frame .ac-hero-frame-url {
    flex: 1;
    margin-left: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ac-muted);
    background: #EEF2F7;
    border-radius: 5px;
    padding: 3px 10px;
}
.ac-hero-frame img { display: block; width: 100%; height: auto; }

/* Terminal card over the frame */
.ac-terminal-card {
    position: absolute;
    bottom: -18px;
    right: -12px;
    background: var(--ac-ink-soft);
    color: #E2E8F0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    border-radius: 8px;
    border: 1px solid var(--ac-ink-border);
    box-shadow: var(--ac-shadow-lg);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.ac-terminal-card .ac-terminal-card-prompt { color: var(--ac-violet-400); font-weight: 700; }
.ac-terminal-card .ac-cursor { background: var(--ac-violet-400); }

/* Trust strip (compact GitHub-style meta row) */
.ac-trust { background: #fff; border-top: 1px solid var(--ac-border); border-bottom: 1px solid var(--ac-border); }
.ac-trust .ac-trust-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 22px;
    padding: 10px 0;
}
.ac-trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ac-muted); }
.ac-trust-item .ac-trust-icon { width: 26px; height: 26px; border-radius: 6px; background: var(--ac-surface-2); color: var(--ac-muted); display: flex; align-items: center; justify-content: center; font-size: 12.5px; }

/* --------------------------------------------------------------------------
   8. Sections
   -------------------------------------------------------------------------- */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-start { padding-top: 48px; }
.section-alt { background: #fff; }

.section-header { margin-bottom: 24px; }
.section-title .section-title-text {
    font-size: clamp(20px, 2.2vw, 25px);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ac-ink);
}
.section-title-divider { width: 44px; height: 3px; border-radius: 999px; background: var(--ac-primary); margin-top: 10px; }
.section-header > .col .section-title-divider { margin-top: 10px; }
.section-text { color: var(--ac-muted); font-size: 14.5px; line-height: 1.65; max-width: 640px; }
.section-header .text-center .section-title-divider { margin-left: auto; margin-right: auto; }

.ac-eyebrow {
    display: inline-flex;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ac-primary-600);
    margin-bottom: 8px;
}
.ac-eyebrow::before { content: '//'; margin-right: 7px; color: var(--ac-violet-400); font-weight: 700; }

.section-header a, .section-header .ac-view-all {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ac-primary-600);
    text-decoration: none;
}
.section-header a:hover, .section-header .ac-view-all:hover { color: var(--ac-primary); }
.section-header a i { transition: transform .15s var(--ac-ease); }
.section-header a:hover i { transform: translateX(3px); }

.card-v {
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--ac-border);
    padding: 24px;
    box-shadow: var(--ac-shadow-xs);
}
.card-v:hover { opacity: 1; }
.card-bg { background-color: var(--ac-surface-2) !important; }

/* --------------------------------------------------------------------------
   9. Category tiles
   -------------------------------------------------------------------------- */
.home-category {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ac-border);
    box-shadow: var(--ac-shadow-xs);
    transition: border-color .15s var(--ac-ease), box-shadow .15s var(--ac-ease);
}
.home-category:hover { box-shadow: var(--ac-shadow-md); border-color: var(--ac-violet-300); opacity: 1; }
.home-category .home-category-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24% 20% 32%;
    background: linear-gradient(160deg, #FFFFFF 0%, #F1F5F9 100%);
}
.home-category .home-category-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s var(--ac-ease), filter .25s var(--ac-ease);
}
.home-category:hover .home-category-img img {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 14px rgba(109, 40, 217, .28));
}
.home-category:focus-visible {
    outline: 2px solid var(--ac-primary);
    outline-offset: 2px;
    border-radius: 8px;
}
.home-category .home-category-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, .34) 60%, rgba(15, 23, 42, .86) 100%);
}
.home-category .home-category-title {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(15, 23, 42, .6);
}
.home-category .home-category-title i { font-size: 12px; opacity: 0; transform: translateX(-4px); transition: all .2s var(--ac-ease); }
.home-category:hover .home-category-title i { opacity: 1; transform: translateX(0); }

.categories-swiper .swiper-actions .swiper-button-prev,
.categories-swiper .swiper-actions .swiper-button-next {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--ac-border);
    color: var(--ac-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ac-shadow-xs);
    transition: all .15s var(--ac-ease);
}
.categories-swiper .swiper-actions .swiper-button-prev:hover,
.categories-swiper .swiper-actions .swiper-button-next:hover {
    background: var(--ac-primary);
    border-color: var(--ac-primary);
    color: #fff;
}

/* --------------------------------------------------------------------------
   10. Segmented tabs → GitHub UnderlineNav style
   -------------------------------------------------------------------------- */
.custom-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border-bottom: 1px solid var(--ac-border);
}
.custom-tabs .custom-tabs-item {
    border: none;
    background: transparent;
    color: var(--ac-muted);
    font-weight: 500;
    font-size: 13.5px;
    padding: 8px 14px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .15s var(--ac-ease);
    white-space: nowrap;
}
.custom-tabs .custom-tabs-item:hover { color: var(--ac-ink); }
.custom-tabs .custom-tabs-item.active {
    background: transparent;
    color: var(--ac-primary-600);
    font-weight: 600;
    border-bottom-color: var(--ac-primary);
    box-shadow: none;
}
@media (max-width: 767.98px) {
    .custom-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .custom-tabs .custom-tabs-item { padding: 8px 10px; font-size: 13px; }
}

/* --------------------------------------------------------------------------
   11. Item cards (flat, compact)
   -------------------------------------------------------------------------- */
.item {
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--ac-border);
    overflow: hidden;
    box-shadow: var(--ac-shadow-xs);
    transition: border-color .15s var(--ac-ease), box-shadow .15s var(--ac-ease);
}
.item:hover { box-shadow: var(--ac-shadow-md); border-color: var(--ac-violet-300); }

.item .item-header { position: relative; overflow: hidden; }
.item .item-img { height: auto; aspect-ratio: 16 / 10; border-radius: 0; object-fit: cover; width: 100%; transition: transform .25s var(--ac-ease); }
.item:hover .item-img { transform: scale(1.03); }
.item .item-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,.22) 0%, transparent 32%, transparent 62%, rgba(15,23,42,.22) 100%);
    opacity: 0;
    transition: opacity .2s var(--ac-ease);
    pointer-events: none;
}
.item:hover .item-header::after { opacity: 1; }

.item .item-badge { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; }

.item .item-actions {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    z-index: 2;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all .2s var(--ac-ease);
}
.item:hover .item-actions { opacity: 1; transform: translateY(0); }
.item .item-actions .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--ac-border);
    color: var(--ac-ink);
    font-size: 13px;
    box-shadow: var(--ac-shadow-sm);
}
.item .item-actions .btn:hover { background: var(--ac-primary); border-color: var(--ac-primary); color: #fff; }

.item .item-body { padding: 14px 16px 16px; gap: 0; }
.item .item-title {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.45;
    color: var(--ac-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
    transition: color .15s var(--ac-ease);
    text-decoration: none;
}
.item .item-title:hover { color: var(--ac-primary-600); }
.item .item-text { color: var(--ac-muted); font-size: 12.5px; margin-top: 4px; }

.item .item-ratings { margin-top: 10px; }
.item .item-purchase { margin-top: 10px; }
.item .item-sales { color: var(--ac-muted); font-size: 12.5px; font-weight: 500; }

.item-price .item-price-number { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700; color: var(--ac-primary); }
.item-price .item-price-through { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #94A3B8; text-decoration: line-through; margin-inline-end: 6px; }

.item .ac-item-cat {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ac-primary-600);
    background: var(--ac-primary-soft);
    border-radius: 4px;
    padding: 2px 6px;
    margin-bottom: 8px;
}
.item .ac-item-author {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--ac-border);
}
.item .ac-item-author img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.item .ac-item-author .ac-item-author-name { font-size: 12.5px; font-weight: 600; color: var(--ac-text); }
.item .ac-item-author .ac-item-author-name:hover { color: var(--ac-primary-600); }
.item .ac-item-author .ac-item-author-level { font-size: 11.5px; color: var(--ac-muted); }
.item .ac-item-author .ac-item-author-check { font-size: 12.5px; color: var(--ac-primary); }

/* --------------------------------------------------------------------------
   12. Empty states
   -------------------------------------------------------------------------- */
.ac-empty {
    text-align: center;
    padding: 44px 20px;
    background: #fff;
    border: 1px dashed var(--ac-border-input);
    border-radius: 8px;
}
.ac-empty .ac-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 8px;
    background: var(--ac-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--ac-primary);
    position: relative;
}
.ac-empty h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--ac-ink); }
.ac-empty p { color: var(--ac-muted); font-size: 13.5px; max-width: 420px; margin: 0 auto 18px; }

/* --------------------------------------------------------------------------
   13. Value props & CTA band
   -------------------------------------------------------------------------- */
.ac-prop {
    background: #fff;
    border: 1px solid var(--ac-border);
    border-radius: 8px;
    padding: 18px 16px;
    height: 100%;
    box-shadow: var(--ac-shadow-xs);
    transition: border-color .15s var(--ac-ease);
}
.ac-prop:hover { border-color: var(--ac-violet-300); }
.ac-prop .ac-prop-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--ac-surface-2);
    color: var(--ac-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 10px;
}
.ac-prop h5 { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--ac-ink); }
.ac-prop p { font-size: 12.5px; color: var(--ac-muted); margin: 0; line-height: 1.55; }

/* VS Code-ish dark CTA panel */
.ac-cta-band {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: var(--ac-ink-soft);
    color: #fff;
    padding: 40px 36px;
    border: 1px solid var(--ac-ink-border);
}
.ac-cta-band::after {
    content: '</>';
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 110px;
    font-weight: 700;
    color: rgba(255, 255, 255, .04);
    pointer-events: none;
}
.ac-cta-band h2 { color: #F8FAFC; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.015em; margin-bottom: 8px; position: relative; z-index: 1; }
.ac-cta-band p { color: #94A3B8; font-size: 14px; max-width: 520px; margin-bottom: 20px; position: relative; z-index: 1; }
.ac-cta-band .ac-eyebrow { color: var(--ac-violet-400); }
.ac-cta-band .btn { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   14. Footer (navy + VS Code status-bar strip)
   -------------------------------------------------------------------------- */
.footer { background: var(--ac-ink-soft); color: var(--footer_text_color); }
.footer a:focus-visible { outline-color: #A78BFA; }
.footer-upper { padding: 48px 0 36px; }
.footer .logo { height: 21px; }
.footer-text { color: #A5B4C2; font-size: 13.5px; line-height: 1.65; }
.footer-title { margin-bottom: 14px; }
.footer-title .h5 { color: #F8FAFC; font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.footer-title-divider { width: 24px; height: 2px; border-radius: 999px; background: var(--ac-primary); margin-top: 8px; }
.footer-links .footer-link { margin-bottom: 8px; }
.footer-links .footer-link a {
    color: #A5B4C2;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s var(--ac-ease);
}
.footer-links .footer-link a:hover { color: var(--ac-violet-400); }

.ac-footer-subscribe { display: flex; gap: 6px; margin-top: 16px; max-width: 300px; }
.ac-footer-subscribe .form-control { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #F8FAFC; border-radius: 6px; }
.ac-footer-subscribe .form-control::placeholder { color: #64748B; }
.ac-footer-subscribe .btn { border-radius: 6px; }

/* Status-bar strip (VS Code style) */
.footer-lower {
    border-top: 1px solid var(--footer_border_color);
    padding: 0;
}
.footer-lower .container > .row { margin: 0; }
.footer-lower .col, .footer-lower .col-auto {
    padding: 8px 0;
    display: flex;
    align-items: center;
}
.footer-copyright { color: #7C8CA0; font-size: 12.5px; }
.footer-payment img { height: 22px; width: auto; border-radius: 4px; }

.ac-terminal-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: .03em;
    color: #64748B;
}
.ac-terminal-line .ac-terminal-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 6px rgba(34, 197, 94, .6);
    animation: ac-dot 2.4s ease-in-out infinite;
}
@keyframes ac-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ac-terminal-line .ac-cursor { background: var(--ac-violet-400); }
.ac-branch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ac-violet-400);
    border: 1px solid rgba(167, 139, 250, .35);
    border-radius: 999px;
    padding: 1px 9px;
}

/* Payment chips (only actually configured methods) */
.ac-pay-chips { display: flex; gap: 6px; }
.ac-pay-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #A5B4C2;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: 2px 10px;
    white-space: nowrap;
}

/* >_ Amilma / Design signature (red, royal blue on hover) */
.ac-am-design {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #F42543;
    text-decoration: none;
    display: inline-block;
    transition: color .15s var(--ac-ease);
}
.ac-am-design:hover { color: #2B4ACB; }
.ac-am-design .ac-am-design-sep { color: #64748B; font-weight: 500; }

.socials-footer { gap: 8px; }
.socials-footer .social-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #CBD5E1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s var(--ac-ease);
}
.socials-footer .social-btn:hover { background: var(--ac-primary); border-color: var(--ac-primary); color: #fff; }

/* --------------------------------------------------------------------------
   15. Misc components
   -------------------------------------------------------------------------- */
.announcement { background: var(--ac-primary); color: #fff; border-radius: 0; font-weight: 500; font-size: 13px; }

.cookies {
    background: #fff;
    border: 1px solid var(--ac-border);
    border-radius: 8px;
    box-shadow: var(--ac-shadow-lg);
    padding: 22px;
    max-width: 380px;
}
.cookies .cookies-img svg { fill: var(--ac-primary); }
.cookies-text { color: var(--ac-muted); font-size: 13px; }

.drop-down .drop-down-menu {
    border-radius: 8px;
    border: 1px solid var(--ac-border);
    box-shadow: var(--ac-shadow-lg);
    padding: 4px;
    min-width: 190px;
}
.drop-down .drop-down-menu .drop-down-item {
    border-radius: 6px;
    color: var(--ac-text);
    font-weight: 500;
    font-size: 13.5px;
    padding: 7px 10px;
}
.drop-down .drop-down-menu .drop-down-item:hover,
.drop-down .drop-down-menu .drop-down-item.active {
    background: var(--ac-primary-soft);
    color: var(--ac-primary-600) !important;
}
.custom-drop .dropdown-menu { border-radius: 8px; }
.custom-drop .dropdown-menu .dropdown-item { border-radius: 6px; margin: 2px 4px; padding: 7px 10px; width: calc(100% - 8px); font-weight: 500; }
.custom-drop .dropdown-menu .dropdown-item:hover { background: var(--ac-primary-soft); color: var(--ac-primary-600) !important; }

.user-menu .user-img { border-radius: 50%; border: 2px solid var(--ac-violet-300); }

.sign-box { border-radius: 8px; border: 1px solid var(--ac-border); box-shadow: var(--ac-shadow-md); overflow: hidden; }
.btn-social {
    border-radius: 6px;
    border-color: var(--ac-border-input);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ac-text);
    padding: 7px 14px;
}
.btn-social:hover { background: var(--ac-surface-2); border-color: var(--ac-border-input); }

.plan {
    border-radius: 8px;
    border: 1px solid var(--ac-border);
    overflow: hidden;
    transition: border-color .15s var(--ac-ease), box-shadow .15s var(--ac-ease);
    background: #fff;
}
.plan:hover { box-shadow: var(--ac-shadow-md); border-color: var(--ac-violet-300); }
.plan-switcher { background: var(--ac-surface-2); border-radius: 6px; padding: 3px; }
.period-select { border-radius: 6px; }

.testimonial { background: #fff; border: 1px solid var(--ac-border); border-radius: 8px; padding: 20px; box-shadow: var(--ac-shadow-xs); }

.error-card { border-radius: 8px; border: 1px solid var(--ac-border); box-shadow: var(--ac-shadow-md); }

.table-container { border-radius: 8px; border: 1px solid var(--ac-border); overflow: hidden; }
.table { --bs-table-hover-bg: #F5F3FF; }
.table thead th { background: var(--ac-surface-2); font-weight: 700; color: var(--ac-ink); font-size: 12.5px; }

.comment { border-radius: 8px; border: 1px solid var(--ac-border); background: #fff; padding: 16px; }

.item-single-title { font-family: 'Sora', sans-serif; letter-spacing: -0.015em; }
.item-single-preview { border-radius: 8px; overflow: hidden; border: 1px solid var(--ac-border); position: relative; }
.item-single-preview .item-single-img img { display: block; width: 100%; height: auto; }
.item-single-preview .item-badge { top: 12px; inset-inline-start: 12px; }
.item-swiper .item-slide-img { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--ac-border); }
.item-swiper .item-slide-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; display: block; }
.item-swiper .swiper-actions .swiper-button-prev,
.item-swiper .swiper-actions .swiper-button-next {
    width: 34px; height: 34px; border-radius: 6px; background: #fff;
    border: 1px solid var(--ac-border); color: var(--ac-ink);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--ac-shadow-xs);
}
.item-swiper .swiper-actions .swiper-button-prev:hover,
.item-swiper .swiper-actions .swiper-button-next:hover {
    background: var(--ac-primary); border-color: var(--ac-primary); color: #fff;
}
.preview-nav { background: var(--ac-ink-soft); }
.preview-btn { border-radius: 999px; }

/* Sticky buy panel (desktop) */
@media (min-width: 992px) {
    .ac-buy-col { position: sticky; top: 78px; align-self: start; }
}

/* License radio cards */
.form-check-lg .form-check-input { width: 18px; height: 18px; margin-top: 2px; }
.form-check-lg .form-check-label {
    cursor: pointer;
    padding: 12px 14px;
    border: 1px solid var(--ac-border);
    border-radius: 8px;
    transition: border-color .15s var(--ac-ease), background-color .15s var(--ac-ease);
}
.form-check-lg:has(.form-check-input:checked) .form-check-label { border-color: var(--ac-primary); background: var(--ac-primary-soft); }
.form-check-lg .form-check-input:focus-visible { outline: 2px solid var(--ac-primary); outline-offset: 2px; }

/* Checkout (modern banking-style, no fake seals) */
.payment-method {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    border: 1px solid var(--ac-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s var(--ac-ease), box-shadow .15s var(--ac-ease);
    min-height: 88px;
    justify-content: center;
}
.payment-method:hover { border-color: var(--ac-violet-300); }
.payment-method:has(.form-check-input:checked) {
    border-color: var(--ac-primary);
    background: var(--ac-primary-soft);
    box-shadow: 0 0 0 1px var(--ac-primary);
}
.payment-method .payment-img img { max-height: 34px; width: auto; }
.payment-method .form-check-input { position: absolute; top: 8px; inset-inline-end: 8px; }
.payment-method .form-check-label { position: absolute; inset: 0; cursor: pointer; }
.payment-method .form-check-input:focus-visible { outline: 2px solid var(--ac-primary); outline-offset: 2px; }
.ac-checkout-links { border-top: 1px solid var(--ac-border); font-size: 12.5px; }
.ac-checkout-links a { color: var(--ac-muted); text-decoration: underline; }
.ac-checkout-links a:hover { color: var(--ac-primary-600); }
.ac-checkout-links-sep { color: var(--ac-border-input); margin: 0 6px; }
@media (min-width: 1200px) {
    .ac-checkout-summary { position: sticky; top: 78px; }
}

/* Article figures & references */
.ac-fig { margin: 26px 0; }
.ac-fig-body {
    border: 1px solid var(--ac-border);
    border-radius: 10px;
    background: #fff;
    padding: 16px;
    box-shadow: var(--ac-shadow-xs);
    overflow-x: auto;
}
.ac-fig-body svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.ac-fig figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.ac-fig-title { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 700; color: #2563EB; }
.ac-fig-desc { font-size: 12px; color: var(--ac-muted); }
.ac-refs { font-size: 13px; color: var(--ac-muted); padding-left: 20px; }
.ac-refs li { margin-bottom: 6px; }
.ac-refs a { word-break: break-word; }

/* Mobile compact buy bar */
.ac-mobile-buy {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border-top: 1px solid var(--ac-border);
    box-shadow: 0 -6px 20px -10px rgba(15, 23, 42, .2);
}
.ac-mobile-buy-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 17px;
    font-weight: 700;
    color: var(--ac-primary);
}
.ac-mobile-buy .btn { min-height: 42px; }
@media (max-width: 991.98px) {
    body:has(.ac-mobile-buy) { padding-bottom: 64px; }
}

.filter-item .text-dark { color: var(--ac-text) !important; font-weight: 500; }
.filter-item a:hover { color: var(--ac-primary-600) !important; }

/* --------------------------------------------------------------------------
   16. Responsive & motion preferences
   -------------------------------------------------------------------------- */
/* Category-scoped theming (scoped CSS variables; neutral fallback = defaults) */
.ac-cat-scope {}

/* WordPress — editorial CMS blue */
body.ac-sub-wordpress {
    --ac-primary: #1D6A96;
    --ac-primary-600: #165473;
    --ac-primary-active: #12455E;
    --ac-primary-soft: #EAF4F9;
    --ac-violet-300: #A5CBDE;
    --ac-violet-400: #6FA6C4;
    --ac-violet-500: #4C86A8;
    --ac-gradient: linear-gradient(135deg, #1D6A96 0%, #3B8BB5 100%);
    --ac-focus: 0 0 0 3px rgba(29, 106, 150, .32);
}
body.ac-sub-wordpress .header-bg .header-title {
    font-family: Georgia, 'Times New Roman', 'Sora', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Shopify — fresh commerce green */
body.ac-sub-shopify {
    --ac-primary: #1B7A43;
    --ac-primary-600: #135C33;
    --ac-primary-active: #0F4A29;
    --ac-primary-soft: #E9F6EE;
    --ac-violet-300: #A9D8BC;
    --ac-violet-400: #5FAF85;
    --ac-violet-500: #3E946A;
    --ac-gradient: linear-gradient(135deg, #1B7A43 0%, #4CAF7D 100%);
    --ac-focus: 0 0 0 3px rgba(27, 122, 67, .32);
}

/* Video effects — violet timeline / keyframe motif */
body.ac-sub-effects {
    --ac-primary: #7C3AED;
    --ac-primary-600: #6D28D9;
    --ac-primary-active: #5B21B6;
    --ac-primary-soft: #F1EBFE;
    --ac-violet-300: #C9B8F5;
    --ac-violet-400: #A78BFA;
    --ac-violet-500: #8B5CF6;
    --ac-gradient: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
}
body.ac-sub-effects .header-bg { position: relative; }
body.ac-sub-effects .header-bg::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 8px;
    background: repeating-linear-gradient(90deg, var(--ac-violet-300) 0 3px, transparent 3px 14px);
    opacity: .55;
    pointer-events: none;
}
body.ac-sub-effects .filter-item { transition: transform .18s var(--ac-ease); }
body.ac-sub-effects .filter-item:hover { transform: translateX(4px); }

/* CSS code — modern CSS demo (cobalt, fluid type, container queries, light gradients) */
body.ac-sub-css {
    --ac-primary: #2563EB;
    --ac-primary-600: #1D4ED8;
    --ac-primary-active: #1E40AF;
    --ac-primary-soft: #EAF1FE;
    --ac-violet-300: #AECBFB;
    --ac-violet-400: #6E9EF7;
    --ac-violet-500: #4C82F0;
    --ac-gradient: linear-gradient(135deg, #2563EB 0%, #8B5CF6 100%);
    --ac-focus: 0 0 0 3px rgba(37, 99, 235, .32);
}
body.ac-sub-css .header-bg {
    background:
        linear-gradient(180deg, rgba(37, 99, 235, .05), transparent 55%),
        var(--ac-canvas) !important;
}
body.ac-sub-css .header-bg .header-title { font-size: clamp(24px, 3vw + 1rem, 34px); }
body.ac-sub-css .section-title .section-title-text { font-size: clamp(20px, 1.2rem + 1.2vw, 26px); }
body.ac-sub-css .items { container-type: inline-size; }
@container (max-width: 520px) {
    body.ac-sub-css .item .item-title { font-size: 13px; }
}
/* Compact empty state (profile tabs) */
.ac-empty-sm { padding: 34px 16px; }
.ac-empty-sm .ac-empty-icon { width: 54px; height: 54px; border-radius: 14px; font-size: 20px; margin-bottom: 14px; }
.ac-empty-sm .ac-empty-icon::after { inset: -6px; border-radius: 20px; }
.ac-empty-sm h4 { font-size: 15px; }
.ac-empty-sm p { font-size: 13px; }

/* Public author profile */
.header-profile { background-color: var(--ac-canvas); border-bottom: 1px solid var(--ac-border); position: relative; overflow: hidden; }
/* Author storefront: premium banner over the configured cover image */
.header-profile[style] {
    background-size: cover;
    background-position: center;
    color: #F8FAFC;
}
.header-profile[style]::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .78) 0%, rgba(15, 23, 42, .86) 100%),
        radial-gradient(700px 320px at 80% 0%, rgba(139, 92, 246, .28), transparent 70%);
    pointer-events: none;
}
.header-profile[style]::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}
.header-profile[style] .header-inner { position: relative; z-index: 1; }
.header-profile[style] h1 { color: #F8FAFC; }
.header-profile[style] .text-muted { color: #A5B4C2 !important; }
.header-profile[style] .user-stat-title { color: #94A3B8 !important; }
.header-profile[style] .user-stat-number { color: #A78BFA; }
.header-profile[style] .user-avatar { border-color: rgba(255, 255, 255, .85); }
.header-profile[style] .tabs-custom.v2 { border-bottom-color: rgba(226, 232, 240, .18); }
.header-profile[style] .tabs-custom.v2 .nav-link { color: #A5B4C2; }
.header-profile[style] .tabs-custom.v2 .nav-link:hover { color: #F8FAFC; }
.header-profile[style] .tabs-custom.v2 .nav-link.active { color: #C4B5FD; border-bottom-color: #A78BFA; }
.header-profile[style] .btn { color: #F8FAFC; }
.header-profile[style] .btn-primary { background: #6D28D9; border-color: #6D28D9; }
.header-profile .header-inner { padding-top: 34px; padding-bottom: 16px; }
.header-profile .user-avatar {
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--ac-border), var(--ac-shadow-sm);
    border-radius: 10px;
}
.header-profile .user-avatar img { border-radius: 7px; }
.header-profile h1 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.header-profile .text-muted { color: var(--ac-muted) !important; }
.header-profile .user-stat .user-stat-number { font-family: 'JetBrains Mono', monospace; color: var(--ac-ink); }
.header-profile .user-stat .user-stat-title { font-size: 12px; }

/* Become-an-author card */
.ac-become-author { text-align: center; }
.ac-become-author-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    border-radius: 10px;
    background: var(--ac-primary-soft);
    color: var(--ac-primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.ac-become-author p { font-size: 13px; color: var(--ac-muted); }

/* Profile tabs → underline style */
.tabs-custom.v2 { border-bottom: 1px solid var(--ac-border); margin-bottom: 24px; }
.tabs-custom.v2 .nav-tabs { border-bottom: 0; gap: 4px; }
.tabs-custom.v2 .nav-link {
    border: 0;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 9px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ac-muted);
    background: transparent;
    transition: color .15s var(--ac-ease), border-color .15s var(--ac-ease);
}
.tabs-custom.v2 .nav-link:hover { color: var(--ac-ink); }
.tabs-custom.v2 .nav-link.active {
    background: transparent;
    color: var(--ac-primary-600);
    font-weight: 600;
    border-bottom-color: var(--ac-primary);
}

/* Profile sidebar cards */
.section-profile { padding-top: 30px; }
.section-profile .card-v { box-shadow: var(--ac-shadow-xs); }
.profile .social-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--ac-border);
    color: var(--ac-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s var(--ac-ease);
}
.profile .social-btn:hover { background: var(--ac-primary-soft); border-color: var(--ac-violet-300); color: var(--ac-primary-600); }

/* Workspace (logged-in area) polish */
/* Publishing forms */
.dropzone {
    border-radius: 8px;
    border: 1.5px dashed var(--ac-border-input);
    background: #fff;
    transition: border-color .15s var(--ac-ease), background-color .15s var(--ac-ease);
}
.dropzone:hover, .dropzone.dropzone-drag {
    border-color: var(--ac-primary);
    background: var(--ac-primary-soft);
}
.dropzone .dropzone-box { border-radius: 8px; }
.dropzone .dropzone-container { gap: 10px; }
.uploaded-file {
    border-radius: 8px;
    border: 1px solid var(--ac-border);
    background: var(--ac-surface-2);
}
.form-section { border-bottom-color: var(--ac-border); }
.form-label { font-weight: 600; color: var(--ac-text); }
.invalid-feedback, .text-danger { font-size: 12.5px; }

/* Support tickets */
.conversation {
    border-radius: 8px;
    border: 1px solid var(--ac-border);
    background: #fff;
    padding: 16px;
}
.support-category-title { color: var(--ac-ink); }
.support-article-link { color: var(--ac-primary-600); }

/* Settings navigation */
.settings-links a, .settings-links .nav-link {
    border-radius: 8px;
    color: var(--ac-muted);
    font-weight: 500;
    transition: color .15s var(--ac-ease), background-color .15s var(--ac-ease);
}
.settings-links a:hover { color: var(--ac-primary-600); background: var(--ac-primary-soft); }
.settings-links a.active { background: var(--ac-primary-soft); color: var(--ac-primary-600); font-weight: 600; }
.settings-user-img { border-radius: 10px; }

/* Workspace tables */
.table-container { border-radius: 8px; border: 1px solid var(--ac-border); overflow: hidden; }
.workspace .card-v { border-radius: 8px; }

.dashboard-sidebar-link { border-radius: 8px; transition: background-color .15s var(--ac-ease); }
.dashboard-sidebar-link:hover { background: rgba(167, 139, 250, .08); }
.dashboard-sidebar-link.current { background: rgba(109, 40, 217, .16); }
.dashboard-sidebar-link.current .dashboard-sidebar-link-title { color: #C4B5FD; }
.dashboard-sidebar-link-title { transition: color .15s var(--ac-ease); }
.dashboard-card {
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, .12);
    box-shadow: none;
    transition: border-color .15s var(--ac-ease);
}
.dashboard-card:hover { border-color: rgba(167, 139, 250, .35); }
.dashboard-chart-card { border-radius: 8px; }
.dashboard-counter-number {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: -0.01em;
}
.dashboard-counter-title { color: #94A3B8; font-size: 12.5px; }
.dashboard-counter-icon {
    border-radius: 8px;
    background: rgba(109, 40, 217, .18);
    color: #C4B5FD;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dashboard-item { border-radius: 8px; border: 1px solid rgba(226, 232, 240, .1); }
.dashboard-item:hover { border-color: rgba(167, 139, 250, .3); }
/* Premium plans (pricing tables) */
.ac-plans-intro { max-width: 620px; margin: 0 auto 36px; }
.ac-plans-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.ac-plans-sub { color: var(--ac-muted); font-size: 14.5px; line-height: 1.65; }

.ac-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 400px));
    gap: 22px;
    justify-content: center;
    margin-bottom: 36px;
}

/* Plan card */
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid var(--ac-border);
    border-radius: 10px;
    padding: 26px 24px 22px;
    height: 100%;
    box-shadow: var(--ac-shadow-xs);
    transition: border-color .18s var(--ac-ease), box-shadow .18s var(--ac-ease), transform .18s var(--ac-ease);
    animation: ac-plan-in .5s var(--ac-ease) both;
}
.ac-plans-grid .plan:nth-child(2) { animation-delay: .08s; }
.ac-plans-grid .plan:nth-child(3) { animation-delay: .16s; }
@keyframes ac-plan-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.plan:hover { border-color: var(--ac-violet-300); box-shadow: var(--ac-shadow-md); transform: translateY(-3px); }
.plan:focus-within { border-color: var(--ac-violet-300); box-shadow: var(--ac-shadow-md); }

/* Featured: thin gradient border + soft shadow (no pulse) */
.plan.plan-featured {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--ac-violet-400), #2563EB) border-box;
    box-shadow: 0 12px 32px -16px rgba(37, 99, 235, .28);
}
.plan.plan-featured:hover { box-shadow: 0 16px 40px -18px rgba(37, 99, 235, .35); transform: translateY(-3px); }

.plan .plan-pro {
    position: absolute;
    top: -11px;
    left: 22px;
    background: var(--ac-primary);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 11px;
}
.plan .plan-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.plan .plan-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 700;
    color: var(--ac-ink);
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
}
.plan .plan-price span { font-size: 12.5px; color: var(--ac-muted); font-weight: 500; }

/* Technical detail (cobalt) — monthly equivalent */
.plan .plan-equivalent {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.plan .plan-equivalent-value { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: #2563EB; }
.plan .plan-equivalent-note { font-size: 12px; color: var(--ac-muted); }

/* Verified savings (green, factual only) */
.plan .plan-savings {
    display: inline-flex;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #15803D;
    background: #E8F7EE;
    border-radius: 999px;
    padding: 2px 10px;
    margin-bottom: 8px;
}

.plan .plan-text { font-size: 13px; color: var(--ac-muted); line-height: 1.6; margin-bottom: 16px; }
.plan .btn { width: 100%; margin-bottom: 18px; }
.plan .plan-features { border-top: 1px solid var(--ac-border); padding-top: 14px; margin-top: auto; }
.plan .plan-feat {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 4.5px 0;
    font-size: 13px;
    color: var(--ac-text);
    line-height: 1.5;
}
.plan .plan-feat-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ac-primary-soft);
    color: var(--ac-primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Comparison strip */
.ac-plans-compare {
    background: #fff;
    border: 1px solid var(--ac-border);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--ac-shadow-xs);
    margin-bottom: 28px;
}
.ac-plans-compare-grid { display: grid; gap: 2px; }
.ac-plans-compare-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 11px 12px;
    border-radius: 8px;
    transition: background-color .15s var(--ac-ease);
}
.ac-plans-compare-row:hover { background: var(--ac-surface-2); }
.ac-plans-compare-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ac-ink);
}
.ac-plans-compare-label i { color: #2563EB; font-size: 13px; width: 16px; text-align: center; }
.ac-plans-compare-value { font-size: 13.5px; color: var(--ac-muted); line-height: 1.6; }
.ac-plans-compare-value a { font-weight: 600; }

/* FAQ */
.ac-plans-faq { max-width: 760px; margin: 0 auto; }
.ac-plans-faq-list { display: grid; gap: 8px; }
.ac-faq {
    background: #fff;
    border: 1px solid var(--ac-border);
    border-radius: 8px;
    padding: 0 16px;
    box-shadow: var(--ac-shadow-xs);
    transition: border-color .15s var(--ac-ease);
}
.ac-faq[open] { border-color: var(--ac-violet-300); }
.ac-faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ac-ink);
    border-radius: 8px;
}
.ac-faq summary::-webkit-details-marker { display: none; }
.ac-faq summary::after {
    content: '+';
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 700;
    color: #2563EB;
    transition: transform .2s var(--ac-ease);
    flex-shrink: 0;
}
.ac-faq[open] summary::after { transform: rotate(45deg); }
.ac-faq p { font-size: 13.5px; color: var(--ac-muted); line-height: 1.65; padding: 0 0 14px; margin: 0; }
.ac-faq p a { font-weight: 600; }
.ac-plans-terms { font-size: 12.5px; color: var(--ac-muted); }

/* Premium page: two featured cards + compare table */
.ac-premium-intro { max-width: 620px; margin: 0 auto 36px; }
.ac-premium-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 400px));
    gap: 22px;
    justify-content: center;
}
.ac-premium-compare {
    margin-top: 44px;
    background: #fff;
    border: 1px solid var(--ac-border);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--ac-shadow-xs);
    scroll-margin-top: 90px;
}
.ac-compare-table-wrap { overflow-x: auto; }
.ac-compare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ac-compare-table th {
    text-align: left;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ac-muted);
    font-family: 'JetBrains Mono', monospace;
    border-bottom: 1px solid var(--ac-border);
    padding: 8px 12px;
}
.ac-compare-table td { padding: 12px; border-bottom: 1px solid var(--ac-border); color: var(--ac-text); }
.ac-compare-table tr:last-child td { border-bottom: 0; }
.ac-compare-available { color: #15803D; font-weight: 600; white-space: nowrap; }
.ac-compare-na td { color: var(--ac-muted); }
.ac-compare-na-label {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ac-muted);
    border: 1px dashed var(--ac-border-input);
    border-radius: 999px;
    padding: 2px 10px;
    white-space: nowrap;
}
.ac-premium-note { font-size: 12.5px; color: var(--ac-muted); }
@media (max-width: 767.98px) {
    .ac-premium-cards { grid-template-columns: 1fr; }
    .ac-compare-table { min-width: 560px; }
    .ac-compare-table th, .ac-compare-table td { padding: 8px; }
}

@media (max-width: 767.98px) {
    .ac-plans-grid { grid-template-columns: 1fr; }
    .ac-plans-compare-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 1199.98px) {
    .ac-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .header-image .header-inner { min-height: 0; }
    .ac-terminal-card { right: 0; bottom: -16px; }
}
@media (max-width: 991.98px) {
    .section { padding-top: 44px; padding-bottom: 44px; }
    .ac-cta-band { padding: 28px 22px; }
    .ac-cta-band::after { display: none; }
}
@media (max-width: 575.98px) {
    .header-image .header-inner { padding-top: 40px; padding-bottom: 40px; }
    .search .search-input input { padding: 10px 118px 10px 14px; font-size: 14px; }
    .search .search-input .btn { padding: 7px 14px; }
    .ac-search-kbds { display: none; }
    .ac-trust .ac-trust-inner { justify-content: center; }
    .card-v { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001s !important;
    }
}
