/* IZY AntiSpam web additions on top of Velzon + izy-table. */

.navbar-menu .navbar-brand-box .logo img { object-fit: contain; }

/* ---------------------------------------------------------------- Layout shell (ported from jupiter-truck master) */
/* Sidebar brand: icon + name + tagline. Lives inside .logo-lg so Velzon still swaps logo-sm/-lg and logo-dark/-light. */
.izy-brand { display: inline-flex; align-items: center; gap: .65rem; line-height: 1.2; text-align: left; vertical-align: middle; }
.izy-brand img { flex-shrink: 0; box-shadow: 0 4px 12px rgba(211, 47, 58, .35); }
.izy-brand-text { display: flex; flex-direction: column; min-width: 0; }
.izy-brand-name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--vz-heading-color, var(--vz-body-color)); white-space: nowrap; }
.izy-brand-sub { font-size: 11px; font-weight: 500; color: var(--vz-secondary-color); white-space: nowrap; }
.navbar-menu .logo-light .izy-brand-name { color: #fff; }
.navbar-menu .logo-light .izy-brand-sub { color: rgba(255, 255, 255, .6); }
.navbar-menu .navbar-brand-box { border-bottom: 1px solid rgba(255, 255, 255, .08); }
[data-sidebar="light"] .navbar-menu .navbar-brand-box { border-bottom-color: var(--vz-border-color); }

/* Font scale ("Aa" in the topbar, izy-shell.js) — same steps as truck. */
:root { --f-inc: 0px; }
html[data-font-size="md"] { --f-inc: 2px; }
html[data-font-size="lg"] { --f-inc: 4px; }
html[data-font-size="xl"] { --f-inc: 6px; }
html[data-font-size="sm"] { --f-inc: -2px; }
html[data-font-size] { font-size: calc(16px + var(--f-inc)) !important; }
html[data-font-size] body { font-size: calc(13px + var(--f-inc)) !important; }
html[data-font-size] .fs-12 { font-size: calc(12px + var(--f-inc)) !important; }
html[data-font-size] .fs-13 { font-size: calc(13px + var(--f-inc)) !important; }
html[data-font-size] .fs-14 { font-size: calc(14px + var(--f-inc)) !important; }
html[data-font-size] .fs-15 { font-size: calc(15px + var(--f-inc)) !important; }
html[data-font-size] .fs-16 { font-size: calc(16px + var(--f-inc)) !important; }
#font-size-scaler .font-size-indicator { position: absolute; bottom: 5px; right: 5px; font-size: 9px; font-weight: 800; line-height: 1; }

/* Topbar breadcrumb (truck 2026-09-24). */
.jt-topbar-crumb { flex-wrap: nowrap; white-space: nowrap; min-width: 0; font-size: 14px; }
.jt-topbar-crumb .breadcrumb-item { min-width: 0; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.jt-topbar-crumb .breadcrumb-item.active { color: var(--vz-heading-color, var(--vz-body-color)); font-weight: 600; }
.jt-topbar-crumb .breadcrumb-item a { color: var(--vz-secondary-color); }
@media (max-width: 767.98px) {
    .jt-topbar-crumb .breadcrumb-item:not(:last-child) { display: none; }
    .jt-topbar-crumb .breadcrumb-item.active::before { display: none; }
}

/* Focus mode: truck hides the first content row (its page-title row); AntiSpam pages start with content. */
[data-focus-mode="true"] .page-content > .container-fluid > .row:first-child { display: flex; }
[data-focus-mode="true"] .page-content > .container-fluid { padding: 1.25rem !important; }
[data-focus-mode="true"] .jt-edge-dock { display: none !important; }

/* Help offcanvas (partials/help.blade.php). */
.text-white-75 { color: rgba(255, 255, 255, .75); }
.izy-help-steps li { display: flex; gap: .75rem; margin-bottom: .9rem; }
.izy-help-step {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--vz-success-rgb), .15); color: var(--vz-success); font-weight: 700; font-size: 13px;
}
.izy-help-faq .accordion-button { background: transparent; box-shadow: none; font-weight: 500; }
.izy-help-faq .accordion-button:not(.collapsed) { color: var(--vz-primary); }
.header-profile-user { width: 32px; height: 32px; }
.stat-icon { width: 48px; height: 48px; font-size: 24px; }
.list-card { transition: transform .15s ease, box-shadow .15s ease; }
.list-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30, 32, 37, .08); }
.text-pre-line { white-space: pre-line; }
.min-w-0 { min-width: 0; }

/* ---------------------------------------------------------------- IzySheet (spreadsheet editor) */
.izy-sheet { border: 1px solid var(--vz-border-color); border-radius: .375rem; background: var(--vz-secondary-bg, #fff); }
.izy-sheet .izs-scroll { max-height: calc(100vh - 330px); min-height: 360px; overflow: auto; }
.izy-sheet .izs-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: 100%; font-size: 13px; }
.izy-sheet .izs-table thead th {
    position: sticky; top: 0; z-index: 3; background: var(--vz-light, #f3f6f9); font-weight: 600; white-space: nowrap;
    padding: .45rem .5rem; border-bottom: 1px solid var(--vz-border-color);
}
.izy-sheet .izs-table td { padding: 0; vertical-align: middle; border-color: var(--vz-border-color); }
.izy-sheet .izs-table td.izs-no,
.izy-sheet .izs-table th.izs-no { width: 54px; text-align: right; color: var(--vz-secondary-color); padding: 0 .5rem; font-variant-numeric: tabular-nums; background: var(--vz-light, #f8f9fa); }
.izy-sheet .izs-table .izs-check { width: 36px; text-align: center; }
.izy-sheet .izs-table .izs-state { width: 34px; text-align: center; font-size: 16px; }
.izy-sheet .izs-input {
    border: 0; border-radius: 0; background: transparent; box-shadow: none; height: 32px; padding: 0 .5rem; font-size: 13px; width: 100%;
}
.izy-sheet select.izs-input { padding-right: 1.6rem; background-position: right .4rem center; }
.izy-sheet .izs-input:focus { outline: 2px solid var(--vz-primary); outline-offset: -2px; background: var(--vz-body-bg, #fff); position: relative; z-index: 1; }
.izy-sheet .izs-input::placeholder { color: var(--vz-secondary-color); opacity: .45; font-style: italic; }
.izy-sheet tr.is-new:not(.is-dirty) .izs-input:not(:focus) { color: var(--vz-secondary-color); }
.izy-sheet tr.is-dirty td { background: rgba(247, 184, 75, .10); }
.izy-sheet tr.is-error td { background: rgba(240, 101, 72, .12); }
.izy-sheet tr.is-selected td { background: rgba(64, 81, 137, .10); }
.izy-sheet tbody tr:hover td.izs-no { color: var(--vz-body-color); }

.izs-toolbar { gap: .5rem; }
.izs-toolbar .btn i { font-size: 16px; vertical-align: -3px; }
.izs-help kbd { font-size: 11px; padding: .1rem .3rem; }

/* izy-table lists in admin */
.izy-list-scroll { max-height: calc(100vh - 290px); overflow: auto; }
.izy-list-scroll thead th { position: sticky; top: 0; z-index: 2; background: var(--vz-light, #f3f6f9); }

@media (max-width: 767.98px) {
    .izy-sheet .izs-scroll { max-height: none; }
}

/* ---------------------------------------------------------------- Store (portal/store/index) */
.izy-store-hero {
    position: relative; overflow: hidden; padding: 2rem 2rem 1.75rem; border-radius: 1rem; color: #fff;
    background:
        radial-gradient(600px 300px at 85% 0%, rgba(255, 77, 94, .35), transparent 70%),
        radial-gradient(700px 400px at 0% 100%, rgba(79, 107, 255, .45), transparent 70%),
        linear-gradient(135deg, #121a46 0%, #1d2468 55%, #2a2f86 100%);
    box-shadow: 0 10px 30px rgba(18, 26, 70, .18);
}
.izy-store-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    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: 40px 40px; mask-image: linear-gradient(90deg, transparent 30%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.izy-store-eyebrow {
    display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 50rem; font-size: 12px; font-weight: 600;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .9);
}
.izy-store-title { margin: .75rem 0 .4rem; color: #fff; font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; }
.izy-store-lead { max-width: 720px; margin-bottom: 1.25rem; color: rgba(226, 231, 255, .8); font-size: 14.5px; }
.izy-store-lead .bxf { color: #8ab4ff; vertical-align: -2px; }
.izy-store-search { display: grid; grid-template-columns: minmax(0, 1fr) 150px 210px auto; gap: .5rem; max-width: 980px; }
.izy-store-search .form-control, .izy-store-search .form-select {
    height: 44px; border-radius: 10px; border-color: transparent; background-color: #fff; color: #212529;
}
.izy-store-search-q { position: relative; }
.izy-store-search-q i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); font-size: 18px; color: #878a99; pointer-events: none; }
.izy-store-search-q .form-control { padding-left: 2.5rem; }
.izy-store-search-btn { height: 44px; padding: 0 1.4rem; border-radius: 10px; font-weight: 600; box-shadow: 0 6px 16px rgba(240, 101, 72, .35); }
.izy-store-hero-art { position: absolute; right: 2.5rem; top: 1.5rem; width: 220px; height: 150px; }
@media (min-width: 1400px) { .izy-store-search { max-width: calc(100% - 250px); } }
.izy-art-bubble {
    position: absolute; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
    color: #fff; animation: izyArtFloat 6s ease-in-out infinite;
}
.izy-art-1 { right: 110px; top: 0; width: 64px; height: 64px; font-size: 30px; color: #ff8a96; }
.izy-art-2 { right: 0; top: 30px; width: 76px; height: 76px; font-size: 36px; color: #ffd27a; animation-delay: -2s; }
.izy-art-3 { right: 70px; top: 96px; width: 56px; height: 56px; font-size: 26px; color: #7cf0d6; animation-delay: -4s; }
@keyframes izyArtFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1399.98px) { .izy-store-hero-art { display: none; } }
@media (max-width: 991.98px) {
    .izy-store-hero { padding: 1.5rem 1.25rem; }
    .izy-store-title { font-size: 1.5rem; }
    .izy-store-search { grid-template-columns: 1fr 1fr; }
    .izy-store-search-q { grid-column: 1 / -1; }
    .izy-store-search-btn { grid-column: 1 / -1; }
}

.izy-channel-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.izy-channel-tab {
    display: inline-flex; align-items: center; gap: .4rem; height: 38px; padding: 0 .9rem; border-radius: 50rem;
    border: 1px solid var(--vz-border-color); background: var(--vz-secondary-bg); color: var(--vz-body-color); font-weight: 500;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.izy-channel-tab i { font-size: 17px; }
.izy-channel-tab:hover { border-color: var(--vz-primary); color: var(--vz-primary); }
.izy-channel-count { min-width: 22px; padding: 0 .4rem; border-radius: 50rem; background: var(--vz-light); color: var(--vz-secondary-color); font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.izy-channel-tab.active { background: var(--vz-primary); border-color: var(--vz-primary); color: #fff; box-shadow: 0 4px 12px rgba(var(--vz-primary-rgb), .3); }
.izy-channel-tab.active .izy-channel-count { background: rgba(255, 255, 255, .22); color: #fff; }
.izy-channel-danger i { color: var(--vz-danger); }
.izy-channel-warning i { color: var(--vz-warning); }
.izy-channel-info i { color: var(--vz-info); }
.izy-channel-tab.active i { color: inherit; }

.list-card { border: 1px solid var(--vz-border-color); border-radius: .85rem; }
.list-card:hover { border-color: rgba(var(--vz-primary-rgb), .45); }
.izy-list-meta { display: flex; align-items: center; gap: 1rem; padding-top: .85rem; border-top: 1px dashed var(--vz-border-color); font-size: 13px; color: var(--vz-secondary-color); }
.izy-list-meta i { font-size: 15px; vertical-align: -2px; }
.izy-list-cta { color: var(--vz-primary); font-weight: 600; }
.list-card:hover .izy-list-cta i { transform: translateX(3px); }
.izy-list-cta i { transition: transform .15s ease; }
[data-bs-theme="dark"] .list-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.list-card .izy-list-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }

/* Dark mode: truck's white "active" block (fixed.css REGION 8) glares on the dark sidebar — tint it instead. */
html[data-bs-theme="dark"] .navbar-menu {
    --jt-menu-active-bg: rgba(var(--vz-primary-rgb), .22);
    --jt-menu-active-fg: #fff;
    --jt-menu-hover-bg: rgba(255, 255, 255, .06);
    --jt-menu-hover-fg: #fff;
}
html[data-bs-theme="dark"]:not([data-layout="horizontal"]) .navbar-menu .navbar-nav .nav-link.active { box-shadow: inset 3px 0 0 var(--vz-primary); }

/* Legal pages (/dieu-khoan, /yeu-cau-go) inside the portal frame */
.izy-legal h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.izy-legal h2 { font-size: 1.1rem; margin-bottom: .75rem; scroll-margin-top: 90px; }
.izy-legal section { scroll-margin-top: 90px; }
.izy-legal h3 { font-size: .95rem; margin: 1rem 0 .4rem; }
.izy-legal ol, .izy-legal ul { padding-left: 1.3rem; margin-bottom: .5rem; }
.izy-legal li { margin: .2rem 0; }
.izy-legal .toc ol { columns: 2; column-gap: 2rem; margin: .5rem 0 0; }
.izy-legal .toc li { break-inside: avoid; }
@media (max-width: 767.98px) { .izy-legal .toc ol { columns: 1; } }
.izy-legal .formula { font-family: var(--vz-font-monospace, monospace); background: var(--vz-light); border: 1px solid var(--vz-border-color); border-radius: .5rem; padding: .6rem .8rem; margin: .5rem 0; overflow-x: auto; }
.izy-legal .hp { position: absolute; left: -9999px; }
