.bricknav-id-container {
    max-width: 700px;
    margin: 30px auto;
    text-align: center;
}

.bricknav-id-btn1,
.bricknav-id-btn2 {
    display: inline-block;
    font-weight: bold;
    margin: 20px;
    color: #fff;
    border: none;
    width: 200px;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease-in-out;
}

.bricknav-id-btn1 {
    background: #90000a;
}

.bricknav-id-btn2 {
    background: #3e0090;
}

.bricknav-id-btn1:hover,
.bricknav-id-btn2:hover {
    background: #009086;
}

#bricknav-id-result {
    margin-top: 15px;
    padding: 10px;
    background: #fff;
}

.bricknav-id-item {
    text-align: center;
    margin: 20px 0;
}

.bricknav-id-item a {
    color: inherit;
    text-decoration: none;
}

.bricknav-id-item img {
    max-width: 150px;
    height: auto;
}

#bricknav-id-splash {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    display: none;
}

.bricknav-id-loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #0073aa;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: bricknav-id-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes bricknav-id-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.bricknav-id-history {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.bricknav-id-history-item {
    text-align: center;
}

.bricknav-id-history-item img {
    width: 100%;
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 5px;
}

.bricknav-id-history-item strong {
    display: block;
    font-size: 0.9rem;
}

.bricknav-id-history-item span {
    font-size: 0.8rem;
    color: #666;
}
.bricknav-id-buttons {
    width: 100%;
    text-align: center;
    margin: 20px 0;
}

.bricknav-id-buttons form {
    display: inline-block;
    margin: 0 8px;
    vertical-align: top;
}

.bricknav-id-btn1,
.bricknav-id-btn2 {
    width: 100px;
    height: 120px;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}