@font-face {
    font-family: 'DelaGothicOne';
    src: url('../fonts/DelaGothicOne-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'NotoSerifCJKsc-Bold';
    src: url('../fonts/NotoSerifCJKsc-Bold.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'AlibabaSans-Regular';
    src: url('../fonts/AlibabaSans-Regular.otf') format('opentype');
    font-display: swap;
}

.db-landing {
    --db-primary: #16647f;
    --db-secondary: #20d4f8;
    --db-bg: #0f0f13;
    --db-panel: rgba(22, 24, 29, 0.94);
    --db-border: #3a3f4b;
    --db-text: #dbe2ee;
    --db-muted: #8e9ab0;
    --db-danger: #ff6f7f;

    position: relative;
    min-height: 100vh;
    padding: 120px 0 140px;
    color: var(--db-text);
    font-family: 'AlibabaSans-Regular', 'Segoe UI', Tahoma, sans-serif;
    overflow: hidden;
}

.db-landing * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.db-landing #particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.db-landing .db-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(32, 212, 248, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 20% 30%, rgba(22, 100, 127, 0.1) 2px, transparent 2px);
    background-size: 100px 100px, 150px 150px;
    animation: dbFloatParticles 20s linear infinite;
}

@keyframes dbFloatParticles {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 50px 50px, -30px 60px; }
}

.db-landing .db-container {
    position: relative;
    z-index: 3;
    width: min(1480px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.db-landing .db-header {
    text-align: center;
    padding: 22px 0;
}

.db-landing .main-title {
    font-family: 'DelaGothicOne', 'Segoe UI', Tahoma, sans-serif;
    font-size: clamp(42px, 5vw, 73px);
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px var(--db-primary);
    background: linear-gradient(180deg, #ffffff 20%, var(--db-primary) 60%, var(--db-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
    text-shadow: 0 0 30px var(--db-secondary);
    letter-spacing: 4px;
}

.db-landing .main-title::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    color: transparent;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: dbShimmer 3s infinite linear;
    pointer-events: none;
}

.db-landing .subtitle {
    margin-top: 8px;
    font-family: 'NotoSerifCJKsc-Bold', 'Times New Roman', serif;
    font-size: clamp(14px, 1.4vw, 20px);
    color: #b3c2d8;
    letter-spacing: 1px;
}

.db-landing .filter-panel {
    background: linear-gradient(180deg, #1e2129 0%, #15171e 100%);
    border: 2px solid var(--db-border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.db-landing .corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--db-secondary);
}

.db-landing .corner-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.db-landing .corner-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.db-landing .corner-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.db-landing .corner-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.db-landing .categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.db-landing .cat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: #90a3bf;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid #33465f;
    border-radius: 10px;
    min-height: 56px;
    transition: all 0.22s ease;
}

.db-landing .cat-item:hover,
.db-landing .cat-item.active {
    color: #d8fbff;
    border-color: var(--db-secondary);
    box-shadow: 0 0 18px rgba(32, 212, 248, 0.3);
    background: rgba(22, 100, 127, 0.24);
}

.db-landing .cat-icon-frame {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.db-landing .cat-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.db-landing .search-container {
    margin-top: 14px;
}

.db-landing .search-form {
    display: flex;
    gap: 10px;
}

.db-landing .search-input {
    width: 100%;
    min-height: 50px;
    background: rgba(8, 11, 16, 0.85);
    border: 1px solid #33465f;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    padding: 0 14px;
}

.db-landing .search-input:focus {
    outline: none;
    border-color: var(--db-secondary);
    box-shadow: 0 0 14px rgba(32, 212, 248, 0.25);
}

.db-landing .search-btn {
    width: 50px;
    min-height: 50px;
    border: 1px solid var(--db-secondary);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(32, 212, 248, 0.35), rgba(22, 100, 127, 0.35));
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.db-landing .search-btn:hover {
    box-shadow: 0 0 16px rgba(32, 212, 248, 0.35);
}

.db-landing .search-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.db-landing .action-btn {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--db-secondary);
    border-radius: 8px;
    color: #d8fbff;
    background: rgba(10, 25, 41, 0.55);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.6px;
}

.db-landing .action-btn:hover {
    box-shadow: 0 0 16px rgba(32, 212, 248, 0.35);
}

.db-landing .filter-form {
    margin-top: 12px;
}

.db-landing .radio-item {
    display: flex;
    align-items: center;
    min-height: 42px;
}

.db-landing .radio-item input[type='radio'] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.db-landing .radio-item label {
    width: 100%;
    min-height: 40px;
    border: 1px solid #33465f;
    border-radius: 8px;
    background: rgba(7, 10, 15, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #a8b5c8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-align: center;
    padding: 4px 8px;
}

.db-landing .radio-item input[type='radio']:checked + label {
    color: #d8fbff;
    border-color: var(--db-secondary);
    background: rgba(22, 100, 127, 0.35);
    box-shadow: 0 0 12px rgba(32, 212, 248, 0.25);
}

.db-landing .mini-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.db-landing .table-container {
    background: var(--db-panel);
    border: 1px solid #32445f;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.db-landing .table-responsive {
    border: 1px solid rgba(32, 212, 248, 0.2);
    border-radius: 8px;
    overflow: auto;
}

.db-landing .db-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.db-landing .db-table thead {
    background: linear-gradient(180deg, #252a33 0%, #1e2129 100%);
    border-bottom: 1px solid var(--db-secondary);
}

.db-landing .db-table th,
.db-landing .db-table td {
    padding: 14px 12px;
    text-align: left;
    vertical-align: middle;
}

.db-landing .db-table th {
    color: #9feefd;
    font-family: 'NotoSerifCJKsc-Bold', 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 13px;
}

.db-landing .db-table tbody tr {
    border-bottom: 1px solid rgba(62, 68, 82, 0.35);
    transition: background 0.2s ease;
}

.db-landing .db-table tbody tr:nth-child(even) {
    background: rgba(24, 28, 35, 0.55);
}

.db-landing .db-table tbody tr:hover {
    background: rgba(32, 212, 248, 0.08);
}

.db-landing .db-table a {
    color: #dbe2ee;
    text-decoration: none;
}

.db-landing .db-table a:hover {
    color: #9feefd;
}

.db-landing .item-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.db-landing .item-thumb {
    width: 38px;
    height: 38px;
    border: 1px solid #3a4d67;
    border-radius: 6px;
    background: rgba(11, 14, 19, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.db-landing .item-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.db-landing .item-name {
    font-weight: 700;
}

.db-landing .item-name.item-mvp {
    color: var(--db-danger);
}

.db-landing .badge-mvp {
    margin-left: 8px;
    border: 1px solid rgba(255, 111, 127, 0.65);
    border-radius: 999px;
    color: #ffb4be;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
}

.db-landing .tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(32, 212, 248, 0.35);
    border-radius: 999px;
    padding: 3px 10px;
    color: #9feefd;
    font-size: 12px;
    font-weight: 700;
    background: rgba(10, 25, 41, 0.55);
}

.db-landing .col-id {
    width: 86px;
    text-align: center;
}

.db-landing .col-name {
    min-width: 320px;
}

.db-landing .col-price,
.db-landing .col-weight {
    text-align: center;
    width: 120px;
}

.db-landing .map-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #3a4d67;
}

.db-landing .empty-state {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9db1cb;
    font-size: 16px;
}

.db-landing .footer-table {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.db-landing .btn-footer-anterior,
.db-landing .btn-footer-proximo,
.db-landing .go-button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--db-secondary);
    border-radius: 8px;
    background: rgba(10, 25, 41, 0.55);
    color: #d8fbff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.db-landing .btn-footer-anterior:hover,
.db-landing .btn-footer-proximo:hover,
.db-landing .go-button:hover {
    box-shadow: 0 0 14px rgba(32, 212, 248, 0.35);
}

.db-landing .btn-footer-anterior.disabled,
.db-landing .btn-footer-proximo.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.db-landing .footer-table span#paginas {
    min-height: 40px;
    border: 1px solid rgba(32, 212, 248, 0.35);
    border-radius: 999px;
    background: rgba(7, 10, 15, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    width: auto;
    margin-bottom: 0;
    color: #9feefd;
    font-weight: 700;
    text-transform: none;
}

.db-landing .footer-table #page-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-basis: 100%;
    justify-content: center;
    margin-top: 6px;
}

.db-landing .footer-table #page-form label {
    color: #b0c4de;
    font-size: 13px;
    margin: 0;
}

.db-landing .footer-table #page-number {
    width: 78px;
    min-height: 40px;
    border: 1px solid #33465f;
    border-radius: 8px;
    background: rgba(8, 11, 16, 0.85);
    color: #fff;
    text-align: center;
}

@keyframes dbShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@media (max-width: 1200px) {
    .db-landing {
        margin-top: 100px;
    }

    .db-landing .categories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .db-landing {
        margin-top: 82px;
        padding: 20px 10px 90px;
    }

    .db-landing .search-form {
        flex-direction: column;
    }

    .db-landing .search-btn {
        width: 100%;
    }

    .db-landing .footer-table #page-form {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .db-landing .filterdb {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    /* Neutraliza zoom global de main.css nessa pagina */
    .db-landing .btn-footer-anterior,
    .db-landing .btn-footer-proximo,
    .db-landing #paginas,
    .db-landing #page-number,
    .db-landing #go-button,
    .db-landing .footer-table label {
        zoom: 1;
    }
}
