
.cuentas-search {
    display: flex;
    gap: .5rem;
    max-width: 500px;
}
.cuentas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
}
.cuenta-card {
    background: var(--tbt-bg-1);
    border: 1px solid var(--tbt-bg-3);
    border-radius: var(--tbt-r-lg);
    overflow: hidden;
    transition: border-color var(--tbt-t2) var(--tbt-ease), transform var(--tbt-t2) var(--tbt-ease), box-shadow var(--tbt-t2) var(--tbt-ease);
    display: flex;
    flex-direction: column;
    position: relative;
}
.cuenta-card:hover {
    border-color: var(--tbt-jade-30);
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 0 1px var(--tbt-jade-15), 0 0 30px var(--tbt-jade-08);
}
.cuenta-card__img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.cuenta-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.cuenta-card:hover .cuenta-card__img { transform: scale(1.05); }
.cuenta-card__sold-badge {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #f87171;
    letter-spacing: .1em;
}
.cuenta-card__body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    flex: 1;
}
.cuenta-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tbt-txt-white);
    line-height: 1.35;
}
.cuenta-card__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .4rem;
}
.cuenta-stat {
    background: var(--tbt-bg-2);
    border: 1px solid var(--tbt-bg-3);
    border-radius: var(--tbt-r-md);
    padding: .45rem .75rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    transition: border-color var(--tbt-t1);
}
.cuenta-stat__label {
    font-size: .68rem;
    color: var(--tbt-txt-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.cuenta-stat__val {
    font-size: .9rem;
    font-weight: 700;
    color: var(--tbt-txt-white);
}
.cuenta-card__desc {
    font-size: .83rem;
    color: var(--tbt-txt-base);
    line-height: 1.5;
}
.cuenta-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
    padding-top: .65rem;
    border-top: 1px solid var(--tbt-bg-4);
}
.cuenta-price {
    display: flex;
    align-items: baseline;
    gap: .3rem;
}
.cuenta-price__val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--tbt-jade-light);
}
.cuenta-price__cur {
    font-size: .75rem;
    color: var(--tbt-txt-muted);
    text-transform: uppercase;
}
.cuenta-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #25D366;
    color: #fff;
    padding: .5rem 1rem;
    border-radius: var(--tbt-r-sm);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
    white-space: nowrap;
}
.cuenta-wa-btn:hover { opacity: .88; transform: scale(1.03); }
.cuenta-wa-btn--sold {
    background: var(--tbt-bg-3);
    color: var(--tbt-txt-muted);
    cursor: not-allowed;
    pointer-events: none;
}

/* ── PWA manual-install modal ──────────────────────────────
   Styling now lives in components.css (loaded sitewide via the
   'app' bundle) since #pwa-manual-modal is rendered by
   includes/footer.php on every page, not just this one. */

.pwa-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--tbt-bg-2);
    border: 1px solid var(--tbt-jade-40);
    border-radius: var(--tbt-r-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 16px 48px rgba(0,0,0,.7), 0 0 0 1px var(--tbt-jade-20);
    z-index: 9999;
    max-width: 420px;
    width: calc(100% - 2rem);
    transition: transform .4s var(--tbt-ease);
}
.pwa-banner--visible { transform: translateX(-50%) translateY(0); }
.pwa-banner__icon { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--tbt-jade); }
.pwa-banner__text { flex: 1; }
.pwa-banner__text strong { display: block; color: var(--tbt-txt-white); font-size: .95rem; margin-bottom: .2rem; }
.pwa-banner__text span  { font-size: .8rem; color: var(--tbt-txt-sub); }
.pwa-banner__actions { display: flex; flex-direction: column; gap: .4rem; flex-shrink: 0; }
#pwa-btn-install {
    background: var(--tbt-jade);
    color: #fff;
    border: none;
    border-radius: var(--tbt-r-md);
    padding: .45rem 1rem;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s;
}
#pwa-btn-install:hover { opacity: .85; }
#pwa-btn-dismiss {
    background: none;
    border: none;
    color: var(--tbt-txt-muted);
    font-size: .78rem;
    cursor: pointer;
    text-align: center;
    transition: color .2s;
}
#pwa-btn-dismiss:hover { color: var(--tbt-txt-base); }

/* bf-func-card SVG icon fix */
.bf-func-card__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tbt-jade-08);
    border: 1px solid var(--tbt-jade-15);
    border-radius: var(--tbt-r-md);
    color: var(--tbt-jade);
    transition: background var(--tbt-t1), box-shadow var(--tbt-t1);
}

.bf-func-card:hover .bf-func-card__icon {
    background: var(--tbt-jade-15);
    box-shadow: 0 0 16px var(--tbt-jade-15);
}

/* ── cd-stat icon fix for SVG ──────────────────────────────── */
.cd-stat__icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tbt-jade);
    opacity: 0.75;
}

.cd-stat__icon svg {
    width: 100%;
    height: 100%;
}

/* ── cd-nav SVG buttons ────────────────────────────────────── */
.cd-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── cd-lb lightbox buttons ────────────────────────────────── */
#cd-lb-close,
#cd-lb-prev,
#cd-lb-next {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── auth-rune SVG sizing ──────────────────────────────────── */
.auth-rune svg {
    width: 100%;
    height: 100%;
}

/* ── bw-card icon container ────────────────────────────────── */
.bw-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── bi-card icon container ────────────────────────────────── */
.bi-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── pwa-modal title with icon ─────────────────────────────── */
.pwa-modal__title {
    display: flex;
    align-items: center;
}

/* ── cw-titulo icon ────────────────────────────────────────── */
.cw-titulo__icono {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cw-estado__icono {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tbt-txt-muted);
}

.offline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tbt-jade);
    opacity: 0.5;
}

.admin-ticket-panel__title {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cuenta-stat:hover {
    border-color: var(--tbt-jade-20);
}
.cuenta-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tbt-jade-30), transparent);
    opacity: 0;
    transition: opacity var(--tbt-t2);
}
.cuenta-card:hover::after { opacity: 1; }


/* ── Pagination (pages/cuentas.php) ─────────────────────────
   .pagination / .page-btn had no CSS anywhere — rendered as bare,
   unstyled links. */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 .6rem;
    border-radius: var(--tbt-r-md);
    background: var(--tbt-bg-1);
    border: 1px solid var(--tbt-bg-4);
    color: var(--tbt-txt-sub);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--tbt-font-mono);
    transition: all var(--tbt-t1);
}
.page-btn:hover { border-color: var(--tbt-jade-30); color: var(--tbt-txt-white); }
.page-btn.active {
    background: var(--tbt-jade);
    border-color: var(--tbt-jade);
    color: #fff;
}

/* .cd-gallery is a CSS grid item (see .cd-layout in the page's own inline
   style) with no size rule of its own — give it min-width:0 so a wide
   gallery image can never force the 2-col grid to overflow on tablet. */
.cd-gallery { min-width: 0; }
