.dbo-page {
    --dbo-primary: var(--tblr-primary);
    --dbo-primary-soft: rgba(32, 107, 196, .09);
    --dbo-border: #e5e7eb;
    --dbo-text: #182433;
    --dbo-muted: #667382;
    --dbo-surface: #fff;

    min-height: 60vh;
}

/* Navbar kategori */
.dbo-category-nav {
    display: flex;
    align-items: center;
    gap: .6rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    padding: .75rem;
    border: 1px solid var(--dbo-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(32, 43, 54, .05);
    scrollbar-width: thin;
}

.dbo-category-nav::-webkit-scrollbar {
    height: 5px;
}

.dbo-category-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #d9dee5;
}

.dbo-category-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
    padding: .58rem .8rem;
    border: 1px solid #e7ebef;
    border-radius: 999px;
    background: #fff;
    color: #536271;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all .2s ease;
}

.dbo-category-chip:hover {
    border-color: rgba(32, 107, 196, .35);
    color: var(--dbo-primary);
    transform: translateY(-1px);
}

.dbo-category-chip span {
    display: inline-grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    padding: 0 .4rem;
    border-radius: 999px;
    background: #f0f2f5;
    color: #667382;
    font-size: .69rem;
    line-height: 1;
}

.dbo-category-chip.active {
    border-color: var(--dbo-primary);
    background: var(--dbo-primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(32, 107, 196, .18);
}

.dbo-category-chip.active span {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

/* Grid & card */
.dbo-link-grid {
    align-items: stretch;
}

.dbo-link-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
    padding: 1.15rem;
    border: 1px solid var(--dbo-border);
    border-radius: 16px;
    background: var(--dbo-surface);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(32, 43, 54, .04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dbo-link-card:hover {
    border-color: rgba(32, 107, 196, .32);
    color: inherit;
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(32, 43, 54, .09);
}

.dbo-link-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dbo-link-logo {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--tblr-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(32, 107, 196, .16);
}

.dbo-external-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f4f6f8;
    color: #8090a0;
    transition: all .2s ease;
}

.dbo-link-card:hover .dbo-external-icon {
    background: var(--dbo-primary-soft);
    color: var(--dbo-primary);
}

.dbo-link-body {
    flex: 1;
    padding: 1rem 0 .9rem;
}

.dbo-link-category {
    display: inline-flex;
    margin-bottom: .55rem;
    padding: .28rem .55rem;
    border-radius: 999px;
    background: var(--dbo-primary-soft);
    color: var(--dbo-primary);
    font-size: .67rem;
    font-weight: 700;
    line-height: 1;
}

.dbo-link-body h3 {
    margin: 0 0 .45rem;
    color: var(--dbo-text);
    font-size: 1rem;
    line-height: 1.4;
}

.dbo-link-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--dbo-muted);
    font-size: .82rem;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.dbo-link-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-top: .8rem;
    border-top: 1px solid #edf0f3;
}

.dbo-domain {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
    overflow: hidden;
    color: #83909d;
    font-size: .73rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dbo-domain svg {
    flex: 0 0 auto;
}

.dbo-open-label {
    flex: 0 0 auto;
    color: var(--dbo-primary);
    font-size: .74rem;
    font-weight: 700;
}

/* Empty state */
.dbo-empty-state {
    padding: 4rem 1.25rem;
    border: 1px dashed #cfd6dd;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.dbo-empty-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    background: var(--dbo-primary-soft);
    color: var(--dbo-primary);
}

.dbo-empty-state h3 {
    margin: 0 0 .35rem;
    color: var(--dbo-text);
}

.dbo-empty-state p {
    margin: 0;
    color: var(--dbo-muted);
}

@media (max-width: 575.98px) {
    .dbo-page {
        padding-top: 1rem;
        padding-bottom: 2.5rem;
    }

    .dbo-category-nav {
        margin-inline: -.25rem;
        padding: .65rem;
        border-radius: 14px;
    }

    .dbo-category-chip {
        padding: .52rem .72rem;
        font-size: .78rem;
    }

    .dbo-link-card {
        min-height: 200px;
    }
}
