/* ====
   BAZAAR IMPORT — BOTÓN
   ==== */
.tibia-bazaar-import-wrap {
    text-align: left;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.tibia-bazaar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 5px;
    border: none;
    background: rgba(49,67,226,0.8);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tibia-bazaar-btn:hover {
    background: #3143e2;
}

.tibia-bazaar-btn-primary {
    background: rgba(49,67,226,0.8);
    color: #fff;
    border:none;
}

.tibia-bazaar-btn-primary:hover {
    background: #3143e2;
    border:none;
}

.tibia-bazaar-btn-secondary {
    background: transparent;
    color: #34495e;
    border: none;
}

.tibia-bazaar-btn-secondary:hover {
    background: #ddd;
}

/* ====
   BAZAAR IMPORT — MODAL OVERLAY
   ==== */
.tibia-bazaar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
}

.tibia-bazaar-modal.active {
    display: block;
}

.tibia-bazaar-modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 5px;
    padding: 28px 28px 22px;
    width: calc(100% - 32px);
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    z-index: 100000;
}

@keyframes tcsFadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.tibia-bazaar-modal.active .tibia-bazaar-modal-box {
    animation: tcsFadeIn 0.3s ease forwards;
}

.tibia-bazaar-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 30px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.tibia-bazaar-modal-close:hover {
    color: #3143e2;
}

.tibia-bazaar-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px;
    border-bottom: 1px solid #ddd;
}

.tibia-bazaar-modal-desc {
    font-size: 13px;
    color: #34495e;
    margin: 0 0 16px;
    line-height: 1.5;
}

.tibia-bazaar-modal-warning {
    font-size: 13px;
    color: #34495e;
    margin: 0 0 16px;
    line-height: 1.5;
}

.tibia-bazaar-field {
    margin-bottom: 14px;
}

.tibia-bazaar-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tibia-bazaar-field input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #34495e;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.tibia-bazaar-field input[type="number"]:focus {
    border-color: #3143e2;
}

.tibia-bazaar-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

/* ====
   FEEDBACK & SPINNER
   ==== */
.tibia-bazaar-feedback {
    font-size: 13px;
    line-height: 1.5;
    min-height: 20px;
    margin-bottom: 4px;
}

.tibia-bazaar-feedback.is-loading {
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tibia-bazaar-feedback.is-success {
    color: #1a7c3e;
}

.tibia-bazaar-feedback.is-error {
    color: #c0392b;
}

.tibia-bazaar-warn {
    color: #e67e22;
}

.tibia-bazaar-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top-color: #2c3e50;
    border-radius: 50%;
    animation: tibia-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes tibia-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
    .tibia-bazaar-import-wrap {
    text-align: center;
    }
}
@media (max-width: 480px) {
    .tibia-bazaar-modal-box {
        width: calc(100% - 24px);
        padding: 20px 16px 16px;
    }

    .tibia-bazaar-import-wrap {
    text-align: center;
    }
}