/* Account listing — brighter charcoal/red theme. */
.accounts-page {
    --accounts-bg: #0b0c0e;
    --accounts-surface: #15171a;
    --accounts-surface-2: #1b1e22;
    --accounts-border: rgba(255, 255, 255, 0.12);
    --accounts-muted: #aeb4be;
    --accounts-red: #ff464b;
    --accounts-red-dark: #c81e2a;
    position: relative;
    min-height: calc(100vh - 180px);
    color: #f8f9fb;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 70, 75, 0.13), transparent 28rem),
        radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.04), transparent 24rem),
        var(--accounts-bg) !important;
}

.account-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1760px;
    margin: 0 auto;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--accounts-border);
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(255, 70, 75, 0.1), rgba(255, 255, 255, 0.025));
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.account-list-heading > div { min-width: 0; }

.account-list-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.22rem;
    color: #ff8588;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.accounts-page .section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(1.25rem, 1.8vw, 1.65rem) !important;
    font-weight: 850 !important;
    line-height: 1.08;
    letter-spacing: -0.035em !important;
    text-transform: none !important;
}

.accounts-page .section-title i {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    margin-right: 0;
    place-items: center;
    border: 1px solid rgba(255, 70, 75, .22);
    border-radius: 8px;
    background: rgba(255, 70, 75, .08);
    color: var(--accounts-red) !important;
    font-size: .95rem;
}

.account-list-heading p {
    margin: 0.28rem 0 0 2.5rem;
    color: var(--accounts-muted);
    font-size: 0.76rem;
}

.account-result-count {
    flex: 0 0 auto;
    padding: 0.4rem 0.65rem;
    border: 1px solid rgba(255, 70, 75, 0.25);
    border-radius: 999px;
    color: #d9dde3;
    background: rgba(255, 70, 75, 0.08);
    font-size: 0.7rem;
    white-space: nowrap;
}

.account-result-count strong {
    color: #fff;
    font-size: 0.82rem;
}

.account-result-count small {
    margin-left: 0.32rem;
    padding-left: 0.38rem;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--accounts-muted);
    font-size: 0.58rem;
    font-weight: 600;
}

.accounts-page > .row:not(:first-child) {
    max-width: 1760px;
    margin-right: auto;
    margin-left: auto;
}

.filter-card {
    position: sticky;
    top: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accounts-border);
    border-radius: 16px;
    background: linear-gradient(160deg, #191b1f, #121315);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.category-seo-section {
    max-width: 1760px;
    margin: 1.25rem auto 0;
    padding: 1rem 1.15rem;
    scroll-margin-top: 1rem;
    border: 1px solid rgba(255, 70, 75, .24);
    border-radius: 16px;
    background: linear-gradient(125deg, rgba(255, 70, 75, .08), rgba(21, 23, 26, .96) 42%);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
}

.category-seo-content { color:rgba(229,231,235,.76); font-size:.79rem; line-height:1.65; transition:max-height .3s ease; }
.category-seo-section.is-collapsed .category-seo-content { position:relative; max-height:12rem; overflow:hidden; }
.category-seo-section.is-collapsed.is-overflowing .category-seo-content::after { position:absolute; right:0; bottom:0; left:0; height:4.8rem; content:""; pointer-events:none; background:linear-gradient(180deg, transparent, rgba(20,22,25,.98)); }
.category-seo-content h1,.category-seo-content h2,.category-seo-content h3,.category-seo-content h4 { color:#fff; font-weight:850; line-height:1.3; }
.category-seo-content h1 { margin:.35rem 0 .55rem; font-size:clamp(1.15rem,1.8vw,1.5rem); }
.category-seo-content h2 { margin:.75rem 0 .4rem; font-size:clamp(1.02rem,1.5vw,1.28rem); }
.category-seo-content h3 { margin:.68rem 0 .32rem; font-size:.96rem; }
.category-seo-content h4 { margin:.62rem 0 .28rem; font-size:.86rem; }
.category-seo-content p { margin:.38rem 0; }
.category-seo-content ul,.category-seo-content ol { margin:.45rem 0; padding-left:1.25rem; }
.category-seo-content a { color:#ff6f74; font-weight:750; text-underline-offset:3px; }
.category-seo-content img { display:block; max-width:100%; height:auto; margin:.8rem auto; border-radius:12px; }
.category-seo-content table { width:100%; margin:.75rem 0; overflow:hidden; border-collapse:collapse; border-radius:10px; }
.category-seo-content th,.category-seo-content td { padding:.55rem .65rem; border:1px solid rgba(255,255,255,.12); }
.category-seo-content blockquote { margin:.75rem 0; padding:.65rem .8rem; border-left:3px solid #ff464b; border-radius:0 9px 9px 0; background:rgba(255,70,75,.07); }
.category-seo-toggle-row { display:flex; justify-content:center; margin-top:.65rem; padding-top:.62rem; border-top:1px solid rgba(255,255,255,.08); }
.category-seo-toggle { display:inline-flex; align-items:center; justify-content:center; gap:.42rem; min-height:34px; padding:.4rem .78rem; border:1px solid rgba(255,70,75,.42); border-radius:9px; color:#f4f4f5; background:rgba(255,70,75,.1); font-size:.7rem; font-weight:800; }
.category-seo-toggle:hover { color:#fff; background:rgba(255,70,75,.18); }
.category-seo-toggle i { transition:transform .25s ease; }
.category-seo-section:not(.is-collapsed) .category-seo-toggle i { transform:rotate(180deg); }
.category-seo-section:not(.is-overflowing) .category-seo-toggle-row { display:none; }

@media (max-width: 767.98px) {
    .category-seo-section { padding:.85rem; }
    .category-seo-section.is-collapsed .category-seo-content { max-height:10.5rem; }
    .category-seo-toggle { width:100%; }
}

.filter-header {
    padding: 0.66rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    background: linear-gradient(115deg, #ed343b, #b91725);
}

.filter-header h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
}

.filter-body {
    padding: 0.72rem;
}

.filter-field {
    margin-bottom: 0.56rem;
}

.filter-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.filter-price-grid .filter-field {
    min-width: 0;
}

.filter-body .form-label {
    margin-bottom: 0.24rem;
    color: #c9ced6;
    font-size: 0.68rem;
    font-weight: 700;
}

.filter-body .form-label i {
    margin-right: 0.28rem;
    color: #ff686c;
}

.filter-body .form-select,
.filter-body .form-control {
    min-height: 36px;
    padding: 0.4rem 2rem 0.4rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #f7f8fa;
    background-color: #202328;
    font-size: 0.72rem;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.filter-body .form-select:focus,
.filter-body .form-control:focus {
    border-color: rgba(255, 70, 75, 0.8);
    color: #fff;
    background-color: #25292e;
    box-shadow: 0 0 0 0.2rem rgba(255, 70, 75, 0.16);
}

.filter-body .form-select option {
    color: #fff;
    background: #202328;
}

.filter-body .btn {
    min-height: 36px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
}

.filter-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.filter-actions.has-reset {
    grid-template-columns: minmax(78px, 0.7fr) minmax(0, 1.3fr);
}

.filter-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    width: 100%;
    margin: 0 !important;
    padding: 0.38rem 0.5rem;
    white-space: nowrap;
}

.filter-body .btn-primary {
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    background: linear-gradient(115deg, #ff4046, #c51d2a);
    box-shadow: 0 8px 20px rgba(197, 29, 42, 0.25);
}

.filter-body .btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(115deg, #ff565b, #d22330);
}

.filter-body .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e7e9ed;
    background: #24262a;
}

.filter-body .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: #2d3035;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 1.15rem;
}

.account-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--accounts-border);
    border-radius: 15px;
    background: linear-gradient(155deg, #1b1d21, #131416 70%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.account-card::before {
    position: absolute;
    inset: 0 0 auto;
    z-index: 3;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accounts-red), transparent);
    content: "";
    opacity: 0.75;
}

.account-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 70, 75, 0.48);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 70, 75, 0.08);
}

.account-card > a {
    display: block;
    overflow: hidden;
}

.card-image-section {
    position: relative;
    overflow: hidden;
    padding: 0.55rem;
    background: #202226;
}

.card-main-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    background: #282b30;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.account-card:hover .card-main-image {
    transform: scale(1.025);
    filter: brightness(1.06);
}

.account-id-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    padding: 0.38rem 0.58rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    background: rgba(219, 38, 45, 0.94);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
    font-size: 0.68rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.account-card .card-body {
    display: flex;
    flex-direction: column;
    flex: none;
    gap: 0.42rem;
    padding: 0.55rem;
    background: transparent;
}

.account-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.075);
}

.account-specs--random {
    grid-template-columns: 1fr;
}

.spec-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    min-width: 0;
    min-height: 31px;
    padding: 0.3rem 0.46rem;
    border: 0;
    background: rgba(19, 20, 22, 0.96);
}

.spec-label {
    color: var(--accounts-muted);
    font-size: 0.63rem;
    font-weight: 600;
    white-space: nowrap;
}

.spec-value {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 750;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.18rem 0.36rem;
    border: 1px solid rgba(255, 201, 71, 0.32);
    border-radius: 6px;
    color: #ffd45e;
    background: rgba(255, 183, 0, 0.11);
    font-size: 0.61rem;
    font-weight: 800;
}

.account-description-preview {
    padding: 0.32rem 0.48rem;
    border-left: 3px solid rgba(255, 70, 75, 0.72);
    border-radius: 6px 9px 9px 6px;
    background: rgba(255, 255, 255, 0.035);
}

.account-description-preview p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #d7dbe1;
    font-size: 0.62rem;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.card-price-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 0.4rem;
    padding-top: 0.1rem;
}

.price-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    min-width: 0;
    padding: 0.3rem 0.5rem;
    border: 1px solid rgba(255, 70, 75, 0.25);
    border-radius: 9px;
    background: rgba(255, 70, 75, 0.08);
}

.price-label {
    color: #aeb4be;
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.price-current {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    color: #ff6367;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.price-current::after {
    color: #ff8588;
    content: "₫";
    font-size: 0.72em;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 72px;
    min-height: 40px;
    padding: 0.4rem 0.5rem;
    border: 1px solid rgba(225, 74, 80, 0.75);
    border-radius: 9px;
    color: #fff;
    background: #cf3d44;
    box-shadow: none;
    font-size: 0.64rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.btn-detail:hover {
    color: #fff;
    border-color: #ec6267;
    background: #dc484e;
}

.empty-state {
    padding: 4rem 2rem;
    border: 1px solid var(--accounts-border);
    border-radius: 16px;
    color: var(--accounts-muted);
    background: var(--accounts-surface);
    text-align: center;
}

.empty-state i {
    color: #ff676b;
    font-size: 3rem;
}

.empty-state h3 {
    margin-top: 0.8rem;
    color: #fff;
}

.accounts-page .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

.accounts-page .page-link {
    border-color: var(--accounts-border);
    border-radius: 8px;
    color: #e7e9ed;
    background: var(--accounts-surface);
}

.accounts-page .page-item.active .page-link {
    border-color: var(--accounts-red);
    background: linear-gradient(120deg, #ef3b42, #bd1b28);
}

@media (max-width: 1199px) {
    .accounts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .accounts-page {
        padding: 0.9rem !important;
    }

    .account-list-heading {
        align-items: center;
        padding: 0.65rem;
        border-radius: 12px;
    }

    .account-list-heading p {
        display: none;
    }

    .account-list-eyebrow { margin-bottom: .18rem; font-size: .58rem; }
    .accounts-page .section-title { gap: .4rem; font-size: 1.12rem !important; }
    .accounts-page .section-title i { width: 27px; height: 27px; flex-basis: 27px; font-size: .82rem; }

    .account-result-count {
        padding: 0.34rem 0.5rem;
        font-size: 0.62rem;
    }

    .filter-card {
        position: static;
        margin-bottom: 1rem;
    }

    .accounts-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .account-card {
        border-radius: 14px;
    }

    .card-main-image {
        aspect-ratio: 16 / 8.8;
    }
}

@media (max-width: 420px) {
    .account-list-heading {
        display: flex;
        gap: .55rem;
    }

    .account-result-count {
        width: auto;
    }

    .card-price-section {
        grid-template-columns: minmax(0, 1fr) 76px;
    }
}
