:root {
    --pbb-bg: #020b16;
    --pbb-card: rgba(7, 19, 33, 0.78);
    --pbb-stroke: rgba(255, 255, 255, 0.08);
    --pbb-text: #e6f4ff;
    --pbb-muted: rgba(230, 244, 255, 0.75);
    --pbb-accent: #ef4444;
    --pbb-accent-alt: #dc2626;
    --pbb-gradient-start: #0a1628;
    --pbb-gradient-end: #1a2f4a;
    --pbb-shadow: 0 25px 55px rgba(4, 20, 40, 0.45);
    --pbb-radius: 0;
}

.pbb-hero {
    background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.25), transparent),
        linear-gradient(135deg, rgba(10, 22, 40, 0.95), rgba(26, 47, 74, 0.95));
    padding: 40px 0 24px;
    color: var(--pbb-text);
    position: relative;
    overflow: hidden;
}

.pbb-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/icon-hero.jpeg') center/cover;
    opacity: 0.08;
    mix-blend-mode: screen;
}

.pbb-hero .dp-container {
    position: relative;
    z-index: 1;
}

.pbb-hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}

.pbb-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    color: var(--pbb-accent);
}

.pbb-hero__content h1 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    margin: 16px 0;
    line-height: 1.2;
    font-weight: 700;
}

.pbb-hero__content p {
    color: var(--pbb-muted);
    max-width: 560px;
    line-height: 1.6;
}

.pbb-hero__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.pbb-hero__meta article {
    border: 1px solid var(--pbb-stroke);
    padding: 16px;
    border-radius: var(--pbb-radius);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.pbb-hero__meta article:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.pbb-hero__meta span {
    font-size: 0.85rem;
    color: var(--pbb-muted);
    display: block;
    margin-bottom: 4px;
}

.pbb-hero__meta strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pbb-text);
}

.pbb-hero__visual {
    text-align: center;
    position: relative;
    padding: 20px;
}

.pbb-hero__device {
    position: relative;
    width: 280px;
    height: 200px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 16px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.pbb-hero__screen {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pbb-hero__coins {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 100%;
}

.coin {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(245, 158, 11, 0.3));
    border: 2px solid rgba(239, 68, 68, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pbb-accent);
    font-size: 1.5rem;
    animation: coin-rotate 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes coin-rotate {
    0%, 100% { transform: rotateY(0deg) scale(1); opacity: 0.7; }
    50% { transform: rotateY(180deg) scale(1.1); opacity: 1; }
}

.pbb-hero__bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.bubble {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle, rgba(239, 68, 68, 0.1), transparent);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    animation: bubble-float var(--duration) ease-in-out infinite;
}

@keyframes bubble-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(20px, -30px) scale(1.1); opacity: 0.8; }
}

.pbb-main {
    background: var(--pbb-bg);
    color: var(--pbb-text);
    padding: 40px 0;
    min-height: 60vh;
}

.pbb-main__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.pbb-section {
    background: var(--pbb-card);
    border: 1px solid var(--pbb-stroke);
    padding: 32px;
    margin-bottom: 24px;
    border-radius: var(--pbb-radius);
    box-shadow: var(--pbb-shadow);
}

.pbb-section__header {
    margin-bottom: 24px;
}

.pbb-section__header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pbb-text);
}

.pbb-section__header h2 i {
    color: var(--pbb-accent);
}

.pbb-section__header p {
    color: var(--pbb-muted);
    margin: 0;
}

.pbb-filter-form {
    margin-top: 24px;
}

.pbb-filter-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.pbb-filter-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pbb-filter-form__field label {
    font-size: 0.85rem;
    color: var(--pbb-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.pbb-filter-form__field label i {
    color: var(--pbb-accent);
}

.pbb-filter-form__field input {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--pbb-stroke);
    border-radius: var(--pbb-radius);
    color: var(--pbb-text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pbb-filter-form__field input:focus {
    outline: none;
    border-color: var(--pbb-accent);
    background: rgba(0, 0, 0, 0.4);
}

.pbb-filter-form__field input::placeholder {
    color: var(--pbb-muted);
}

.pbb-filter-form__submit {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--pbb-accent), var(--pbb-accent-alt));
    border: none;
    border-radius: var(--pbb-radius);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.pbb-filter-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.pbb-table-wrapper {
    overflow-x: auto;
    position: relative;
}

/* Scroll indicator untuk mobile */
.pbb-table-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to left, var(--pbb-card), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .pbb-table-wrapper::after {
        opacity: 1;
    }
}

.pbb-table {
    width: 100%;
    border-collapse: collapse;
}

.pbb-table thead {
    background: rgba(0, 0, 0, 0.3);
}

.pbb-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pbb-text);
    border-bottom: 2px solid var(--pbb-stroke);
}

.pbb-table td {
    padding: 16px;
    border-bottom: 1px solid var(--pbb-stroke);
    color: var(--pbb-muted);
    font-size: 0.9rem;
}

.pbb-table tbody tr {
    transition: all 0.3s ease;
}

.pbb-table tbody tr:hover {
    background: rgba(239, 68, 68, 0.05);
    border-left: 3px solid var(--pbb-accent);
}

.pbb-table__nop {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--pbb-text);
}

.pbb-table__nama {
    font-weight: 500;
    color: var(--pbb-text);
}

.pbb-table__alamat {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pbb-table__terutang {
    font-weight: 600;
    color: var(--pbb-accent);
}

.pbb-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pbb-badge--lunas {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.pbb-badge--belum {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.pbb-badge--menunggak {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.pbb-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pbb-action-btn--kwitansi {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.pbb-action-btn--kwitansi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.pbb-action-btn--tagih {
    background: linear-gradient(135deg, var(--pbb-accent), var(--pbb-accent-alt));
    color: white;
}

.pbb-action-btn--tagih:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.pbb-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--pbb-muted);
}

.pbb-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Stats Grid */
.pbb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.pbb-stat-card {
    background: var(--pbb-card);
    border: 1px solid var(--pbb-stroke);
    border-radius: var(--pbb-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.pbb-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: var(--pbb-shadow);
}

.pbb-stat-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.pbb-stat-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pbb-stat-card__label {
    font-size: 0.85rem;
    color: var(--pbb-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.pbb-stat-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pbb-text);
    line-height: 1.2;
}

.pbb-stat-card__count {
    font-size: 0.9rem;
    color: var(--pbb-muted);
}

/* Pagination */
.pbb-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding: 20px;
    background: var(--pbb-card);
    border: 1px solid var(--pbb-stroke);
    border-radius: var(--pbb-radius);
    flex-wrap: wrap;
}

.pbb-pagination__info {
    color: var(--pbb-muted);
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
}

.pbb-pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--pbb-radius);
    color: var(--pbb-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pbb-pagination__btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--pbb-accent);
    transform: translateY(-2px);
}

.pbb-pagination__btn:disabled,
.pbb-pagination__btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pbb-table__tanggal {
    font-size: 0.9rem;
    color: var(--pbb-text);
    white-space: nowrap;
}

.pbb-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pbb-sidebar__card {
    background: var(--pbb-card);
    border: 1px solid var(--pbb-stroke);
    border-radius: var(--pbb-radius);
    box-shadow: var(--pbb-shadow);
    overflow: hidden;
}

.pbb-sidebar__card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border-bottom: 1px solid var(--pbb-stroke);
}

.pbb-sidebar__card-header i {
    color: var(--pbb-accent);
    font-size: 1.2rem;
}

.pbb-sidebar__card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--pbb-text);
}

.pbb-sidebar__stats {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pbb-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--pbb-stroke);
    border-radius: var(--pbb-radius);
    transition: all 0.3s ease;
}

.pbb-stat-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--pbb-accent);
    transform: translateX(4px);
}

.pbb-stat-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pbb-stat-item__content {
    flex: 1;
}

.pbb-stat-item__content span {
    display: block;
    font-size: 0.85rem;
    color: var(--pbb-muted);
    margin-bottom: 4px;
}

.pbb-stat-item__content strong {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pbb-text);
}

.pbb-sidebar__info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pbb-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--pbb-stroke);
    border-radius: var(--pbb-radius);
}

.pbb-info-item i {
    color: var(--pbb-accent);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.pbb-info-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--pbb-muted);
    margin-bottom: 4px;
}

.pbb-info-item strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pbb-text);
}

.pbb-sidebar__tips {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pbb-tip {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 16px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--pbb-radius);
}

.pbb-tip i {
    color: var(--pbb-accent);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.pbb-tip p {
    margin: 0;
    color: var(--pbb-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .pbb-main__grid {
        grid-template-columns: 1fr;
    }

    .pbb-sidebar {
        position: static;
    }

    .pbb-hero__grid {
        grid-template-columns: 1fr;
    }

    .pbb-hero__visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .pbb-hero {
        padding: 32px 0 20px;
    }

    .pbb-hero__meta {
        grid-template-columns: 1fr;
    }

    .pbb-section {
        padding: 20px 16px;
    }

    .pbb-filter-form__grid {
        grid-template-columns: 1fr;
    }

    /* Mobile table wrapper - horizontal scroll dengan styling lebih baik */
    .pbb-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        margin: 0 -16px;
        padding: 0 16px;
    }

    .pbb-table {
        min-width: 700px;
        font-size: 0.8rem;
    }

    .pbb-table th,
    .pbb-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .pbb-table th {
        font-size: 0.75rem;
        padding: 12px 8px;
    }

    .pbb-table__nop {
        font-size: 0.75rem;
        word-break: break-all;
    }

    .pbb-table__nama {
        font-size: 0.85rem;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pbb-table__alamat {
        max-width: 120px;
        font-size: 0.75rem;
    }

    .pbb-table__terutang {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .pbb-action-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .pbb-action-btn span {
        display: none;
    }

    .pbb-action-btn i {
        margin: 0;
    }

    .pbb-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .pbb-section {
        padding: 16px 12px;
    }

    .pbb-section__header h2 {
        font-size: 1.25rem;
    }

    .pbb-table-wrapper {
        margin: 0 -12px;
        padding: 0 12px;
    }

    .pbb-table {
        min-width: 600px;
    }

    .pbb-table th,
    .pbb-table td {
        padding: 8px 6px;
        font-size: 0.75rem;
    }

    .pbb-table th {
        font-size: 0.7rem;
        padding: 10px 6px;
    }

    .pbb-table__nop {
        font-size: 0.7rem;
    }

    .pbb-table__nama {
        font-size: 0.8rem;
        max-width: 120px;
    }

    .pbb-table__alamat {
        max-width: 100px;
        font-size: 0.7rem;
    }

    .pbb-action-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    /* Stats grid mobile */
    .pbb-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pbb-stat-card {
        padding: 20px;
        gap: 16px;
    }

    .pbb-stat-card__icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .pbb-stat-card__value {
        font-size: 1.3rem;
    }

    /* Pagination mobile */
    .pbb-pagination {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .pbb-pagination__info {
        order: 2;
        font-size: 0.85rem;
    }

    .pbb-pagination__btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}
